/* =========================================================
   Asociación Civil Loberenses por la Educación Universitaria
   Estilos del sitio · Montserrat (sustituto de Proxima Nova)
   Marca: violeta #424494 · naranja #f29100
   ========================================================= */

:root {
  --violet: #424494;
  --violet-rgba: rgba(66, 68, 148, 0.9);
  --violet-dark: #353674;
  --violet-soft: #ecedf6;
  --orange: #f29100;
  --orange-dark: #d27e00;
  --ink: #262624;
  --gray: #8c8c8c;
  --light: #f2f2f2;
  --white: #ffffff;
  --placeholder-hero: url('../img/banner-uel.jpg');
  --placeholder-comunidad: url('../img/comunidad-uel.jpg');


  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1440px;
  --container-cta: 1080px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(38, 38, 36, 0.45);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container,
.hero__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px){
  .hero__container {
    padding: 0px!important;
  }
}

.container-cta {
  width: 100%;
  max-width: var(--container-cta);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--light { background: var(--light); }
.section--violet { background: var(--violet); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}
.section--violet .eyebrow { color: #ffce85; }
.section--violet .eyebrow::before,
.section--violet .eyebrow::after { background: #ffce85; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--gray); }
.section--violet .lead { color: rgba(255, 255, 255, 0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 14px 26px -12px rgba(242, 145, 0, 0.7); }
.btn--violet { background: var(--violet); color: var(--white); }
.btn--violet:hover { background: var(--violet-dark); }
.btn--ghost { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn--ghost:hover { background: var(--violet); color: var(--white); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--on-dark:hover { background: var(--white); color: var(--violet); }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--violet);
  backdrop-filter: saturate(180%) blur(8px);

}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
}
.nav__brand img { height: 60px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__menu a:hover { color: var(--orange); }
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav__menu a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--violet);
}
.nav__toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--placeholder-hero);
  aspect-ratio: 1920 / 1000;
  height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.hero__panel {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 24px;
  background: var(--violet-rgba);
  color: var(--white);
  padding: 48px 46px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__panel h1 { color: var(--white); }
.hero__panel p { color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Quiénes somos ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.placeholder-img {
  background: var(--placeholder-comunidad);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.placeholder-img--860 { aspect-ratio: 860 / 500; }
.placeholder-img::after { content: attr(data-label); }

.brand-mark {
  position: absolute;
  left: -22px; bottom: -22px;
  width: 92px; height: 92px;
  background: var(--orange);
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 46px; height: 46px; }
img.iso-uel {
    width: 65px;
}

/* ---------- Qué hacemos (pilares) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.pillar {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--violet-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.pillar__icon svg { width: 28px; height: 28px; color: var(--violet); }
.pillar h3 { color: var(--violet); }
.pillar p { margin: 0; color: var(--gray); font-size: 0.98rem; }

/* ---------- Por qué asociarte ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
}
.benefits .check {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.benefits .check svg { width: 15px; height: 15px; color: #fff; }
.section--violet .benefits li { color: rgba(255, 255, 255, 0.92); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--violet);
  color: var(--white);
  border-radius: 22px;
  padding: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background-image: radial-gradient(circle at 100% 0%, rgba(242, 145, 0, 0.28), transparent 45%);
}
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 22px 24px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__q:hover { color: var(--violet); }
.faq__q .sign {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq__item.open .faq__q .sign { background: var(--orange); color: #fff; transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__a p { padding: 0 24px 22px; margin: 0; color: var(--gray); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid #ececec;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--orange); }
.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(66, 68, 148, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--hp { position: absolute; left: -9999px; opacity: 0; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--gray);
}
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: 0 0 auto; }
.checkbox a { color: var(--violet); font-weight: 600; text-decoration: underline; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-status.is-ok { display: block; background: #e7f4ea; color: #1f7a3d; }
.form-status.is-error { display: block; background: #fdeaea; color: #b32424; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 22px; margin-top: 10px; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ic {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--violet-soft);
  display: grid; place-items: center;
}
.contact-info .ic svg { width: 24px; height: 24px; color: var(--violet); }
.contact-info .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin: 0; }
.contact-info .value { font-weight: 700; font-size: 1.1rem; margin: 0; }
.contact-info a.value:hover { color: var(--violet); }

/* ---------- Page header (hacete socio) ---------- */
.page-head {
  background: var(--violet);
  color: var(--white);
  padding: 70px 0 80px;
  background-image: radial-gradient(circle at 90% 10%, rgba(242, 145, 0, 0.3), transparent 50%);
}
.page-head h1 { color: #fff; max-width: 760px; }
.page-head p { color: rgba(255, 255, 255, 0.84); max-width: 640px; font-size: 1.1rem; margin: 0; }

.socio-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; margin-top: -56px; }
.socio-aside {
  background: var(--white);
  border-radius: 18px;
  padding: 34px;
  border: 1px solid #ececec;
  box-shadow: var(--shadow);
}
.socio-aside h3 { color: var(--violet); }

/* ---------- Footer ---------- */
.footer { background: var(--light); padding: 64px 0 0; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--gray); max-width: 340px; font-size: 0.96rem; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: var(--gray); transition: color var(--transition); }
.footer a:hover { color: var(--violet); }
.footer__contact a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.footer__contact svg { width: 18px; height: 18px; color: var(--violet); }
.footer__bottom {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 18px 0;
  font-size: 0.85rem;
}
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__menu {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid #ececec;
    box-shadow: var(--shadow);
  }
  .nav.open .nav__menu a { width: 100%; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .socio-layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { aspect-ratio: auto; max-height: none; }
  .hero__panel {
      margin: 0% 4%;
      padding: 6% 9%;
  }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 28px; }
  .form-card, .socio-aside { padding: 26px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
