/* CEUC — Home institucional
   Sólo los colores del logo (azul #3C4395, rojo #E72E3A) con sus tonos, blanco y neutros.
   Tipografía de las landing: Lexend para títulos, Open Sans para texto. */

:root {
  --blue: #3C4395;
  --blue-900: #1E2255;
  --blue-800: #262B66;
  --blue-600: #4A51A6;
  --blue-100: #E9EAF5;
  --blue-50: #F4F5FB;
  --red: #E72E3A;
  --red-700: #C4202B;
  --ink: #191C1D;
  --ink-2: #3E4150;
  --line: #DADCEB;
  --white: #FFFFFF;

  --display: 'Lexend', system-ui, sans-serif;
  --text: 'Open Sans', system-ui, sans-serif;

  --fs-hero: clamp(2.75rem, 5.4vw, 5rem);
  --fs-h2: clamp(2rem, 3.4vw, 3rem);
  --fs-h3: 1.5rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 10vw, 152px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --head-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { font-family: var(--text); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: var(--fs-h2); color: var(--blue); }
h3 { font-size: var(--fs-h3); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--blue); color: #fff; padding: 12px 18px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--radius);
  font: 700 1.1875rem/1 var(--display); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { flex-shrink: 0; transition: transform 200ms var(--ease-out); }
.btn--red { background: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--line { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
@media (hover: hover) {
  .btn--red:hover { background: var(--red-700); }
  .btn--blue:hover { background: var(--blue-800); }
  .btn--white:hover { background: var(--blue-100); }
  .btn--line:hover { background: #fff; color: var(--blue); border-color: #fff; }
  .btn:hover svg { transform: translateX(3px); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-body) var(--display); color: var(--blue); text-decoration: none; }
.link-arrow svg { transition: transform 200ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--red); }

/* ---------- Barra de contacto ---------- */
.util { background: var(--blue-900); color: #fff; font-size: var(--fs-small); }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.util ul { display: flex; align-items: center; gap: 18px; }
.util a { text-decoration: none; display: inline-flex; align-items: center; }
.util a:hover { color: #C9CCEB; }
@media (max-width: 700px) { .util p { display: none; } .util__in { justify-content: center; } }

/* ---------- Encabezado y megamenú ---------- */
.head { position: sticky; top: 0; z-index: 100; background: var(--white); transition: box-shadow 200ms ease; }
.head.is-scrolled { box-shadow: 0 10px 30px -20px rgba(30, 34, 85, 0.45); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--head-h); }
.head__logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; white-space: nowrap;
  font: 500 var(--fs-body) var(--display); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  position: relative; transition: color 160ms ease;
}
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
.nav__link:hover, .nav__trigger[aria-expanded="true"] { color: var(--blue); }
.nav__link:hover::after, .nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__trigger svg { transition: transform 200ms var(--ease-out); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { margin-left: 14px; min-height: 48px; font-size: 1.1875rem; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
  box-shadow: 0 24px 40px -24px rgba(30, 34, 85, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top;
  transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s; }
.mega__in { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 40px; padding-block: 40px 48px; }
.mega__area { font: 600 var(--fs-small) var(--display); color: var(--red-700); letter-spacing: 0; margin-bottom: 14px; }
.mega__col a { display: block; padding: 10px 0; text-decoration: none; }
.mega__col a span { display: block; font: 500 var(--fs-lead)/1.3 var(--display); color: var(--blue); transition: color 160ms ease; }
.mega__col a small { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-top: 2px; }
.mega__col a:hover span { color: var(--red); }
.mega__promo { background: var(--blue-50); padding: 16px; border-radius: var(--radius); }
.mega__promo img { border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.mega__promo-title { font: 600 var(--fs-lead) var(--display); color: var(--blue); margin-top: 14px; }
.mega__promo p:not(.mega__promo-title) { font-size: var(--fs-small); color: var(--ink-2); margin: 4px 0 10px; }

.burger { display: none; width: 48px; height: 48px; border: 0; background: var(--blue-50); border-radius: var(--radius); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--blue); transition: transform 220ms var(--ease-out); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1200px) {
  :root { --head-h: 72px; }
  .head__logo img { height: 40px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: calc(var(--head-h) + 40px) 0 0 0; height: auto; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; background: var(--white);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .head.is-stuck .nav { inset-block-start: var(--head-h); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s; }
  .nav__item { display: block; height: auto; }
  .nav__link { width: 100%; height: auto; padding: 18px 0; font-size: var(--fs-lead); justify-content: space-between; }
  .nav__link::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item--mega.is-open .mega { display: block; }
  .mega__in { grid-template-columns: 1fr; gap: 20px; padding: 16px 0 8px; }
  .mega__promo { display: none; }
  .nav__cta { margin: 24px 0 0; }
}

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(560px, calc(100svh - 124px), 820px); display: flex; align-items: center; overflow: hidden; background: var(--blue-800); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 34, 85, 0.94) 0%, rgba(30, 34, 85, 0.82) 38%, rgba(30, 34, 85, 0.2) 70%, rgba(30, 34, 85, 0) 100%); }
.hero__in { padding-block: 96px 136px; }
.hero__text { max-width: 640px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; color: #fff; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.55; margin-top: 24px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 767px) {
  .hero { min-height: 640px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(30, 34, 85, 0.15) 0%, rgba(30, 34, 85, 0.55) 40%, rgba(30, 34, 85, 0.95) 72%); }
  .hero__in { padding-block: 220px 112px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Buscador y cifras ---------- */
.finder { position: relative; z-index: 2; margin-top: -72px; }
.finder__box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  background: var(--white); padding: 22px 24px; border-radius: var(--radius); border-top: 4px solid var(--red);
}
.finder__label { font: 600 var(--fs-lead) var(--display); color: var(--blue); }
.finder__field, .select { position: relative; }
.finder__field select, .select select {
  width: 100%; height: 54px; padding: 0 44px 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--blue-50); font: 400 var(--fs-body) var(--text); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.finder__field svg, .select svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.finder__field select:focus-visible, .select select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
@media (max-width: 860px) { .finder__box { grid-template-columns: 1fr; gap: 12px; } .finder { margin-top: -56px; } }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 7vw, 88px); }
.figures dd.figures__word { font-size: var(--fs-h2); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 4px 28px 4px 0; }
.figures dd { font: 600 clamp(2.75rem, 4.4vw, 4rem)/1 var(--display); color: var(--blue); letter-spacing: -0.03em; }
.figures dt { font-size: var(--fs-body); color: var(--ink-2); max-width: 15em; }
@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .figures > div { padding-right: 16px; }
}

/* ---------- Oferta académica ---------- */
.programs { padding-block: var(--section); }
.sec-head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px 64px; align-items: end; margin-bottom: 44px; }
.sec-head p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 36em; }
.sec-head--light h2, .sec-head--light p { color: #fff; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--blue-50);
  font: 500 var(--fs-body) var(--display); color: var(--ink); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab:hover { background: var(--blue-100); color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }

.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prog { transition: opacity 260ms ease, transform 320ms var(--ease-out); }
.prog.is-hidden { display: none; }
.prog.is-entering { opacity: 0; transform: translateY(12px); }
.prog__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--blue-50); border-radius: var(--radius); overflow: hidden; transition: background-color 220ms ease, transform 260ms var(--ease-out); }
.prog__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-100); }
.prog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.prog__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.prog__area { font: 600 var(--fs-small) var(--display); color: var(--red-700); }
.prog__name { font-size: var(--fs-h3); color: var(--blue); margin-top: 8px; }
.prog__desc { margin-top: 12px; color: var(--ink-2); }
.prog__meta { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.prog__meta span { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.prog__more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-body) var(--display); color: var(--blue); }
.prog__more svg { transition: transform 220ms var(--ease-out); }
@media (hover: hover) {
  .prog__link:hover { background: var(--blue-100); transform: translateY(-4px); }
  .prog__link:hover .prog__img img { transform: scale(1.05); }
  .prog__link:hover .prog__more { color: var(--red); }
  .prog__link:hover .prog__more svg { transform: translateX(4px); }
}
@media (max-width: 1000px) { .progs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .progs { grid-template-columns: 1fr; } }

/* ---------- Por qué CEUC ---------- */
.why { padding-block: var(--section); background: var(--blue-50); }
.why__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.why__photo { position: relative; }
.why__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why__photo figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.why__lead { font-size: var(--fs-lead); color: var(--ink-2); margin-top: 14px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 40px 0 44px; }
.pillars li { min-width: 0; padding-top: 18px; border-top: 3px solid var(--red); }
.pillars h3 { font-size: var(--fs-lead); color: var(--blue); }
.pillars p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 900px) { .why__in { grid-template-columns: minmax(0, 1fr); } .why__photo img { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Vida universitaria ---------- */
.life { padding-block: var(--section); background: var(--blue); color: #fff; }
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.mosaic figure { overflow: hidden; border-radius: var(--radius); background: var(--blue-600); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.mosaic__b { margin-top: 56px; }
.mosaic__c { margin-top: 112px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.values li { border-top: 3px solid var(--red); padding-top: 20px; }
.values h3 { font-size: var(--fs-h3); color: #fff; }
.values p { margin-top: 8px; color: #fff; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__a { grid-column: 1 / -1; }
  .mosaic__a img { aspect-ratio: 16 / 10; }
  .mosaic__b, .mosaic__c { margin-top: 0; }
  .values { grid-template-columns: 1fr 1fr; }
}

/* ---------- Admisiones ---------- */
.admit { padding-block: var(--section); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; }
.step { counter-increment: paso; position: relative; padding-top: 64px; }
.step::before { content: counter(paso); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 600 var(--fs-lead) var(--display); }
.step::after { content: ""; position: absolute; top: 20px; left: 56px; right: -16px; height: 4px; border-radius: 2px; background: var(--blue-100); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-lead); color: var(--blue); }
.step p { margin-top: 8px; color: var(--ink-2); }
.admit__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin-top: 64px; }
.docs, .grad { border-radius: var(--radius); padding: 32px; }
.docs { background: var(--blue); color: #fff; }
.docs h3 { color: #fff !important; }
.docs h3, .grad h3 { color: var(--blue); }
.docs ul { margin-top: 18px; display: grid; gap: 4px; font: 500 var(--fs-lead)/1.5 var(--display); }
.grad { background: var(--blue-50); }
.grad > p { margin-top: 10px; color: var(--ink-2); }
.grad__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.grad__opt { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--white); color: var(--blue); font: 600 var(--fs-body) var(--display); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.grad__opt:active { transform: scale(0.97); }
.grad__opt[aria-pressed="true"] { background: var(--blue); color: #fff; }
.track { display: flex; gap: 8px; margin-top: 24px; }
.track__flame { width: 24px; height: auto; color: var(--blue-100); transition: color 240ms ease, transform 280ms var(--ease-out); }
.track.is-lit .track__flame { color: var(--red); }
.track.is-lit .track__flame:last-child { color: var(--blue); }
.grad__out { margin-top: 16px; font-size: var(--fs-body); }
.grad__out strong { font-family: var(--display); font-weight: 600; color: var(--blue); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .step::after { display: none; }
  .admit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .docs, .grad { padding: 24px; } }

/* ---------- Preguntas ---------- */
.faq { padding-block: var(--section); background: var(--blue-50); }
.faq__in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px 80px; align-items: start; }
.faq__side p { margin: 16px 0 20px; font-size: var(--fs-lead); color: var(--ink-2); }
.qa { background: var(--white); border-radius: var(--radius); margin-bottom: 10px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font: 500 var(--fs-lead)/1.4 var(--display); color: var(--blue); }
.qa summary::-webkit-details-marker { display: none; }
.qa__sign { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.qa__sign::before, .qa__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--red); transition: transform 220ms var(--ease-out); }
.qa__sign::after { transform: rotate(90deg); }
.qa[open] .qa__sign::after { transform: rotate(0deg); }
.qa p { padding: 0 24px 22px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .faq__in { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { padding-block: var(--section); }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__info > p { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink-2); }
.contact__data { margin-top: 32px; display: grid; gap: 18px; }
.contact__data dt { font-size: var(--fs-small); color: var(--ink-2); }
.contact__data dd { font: 500 var(--fs-lead) var(--display); color: var(--blue); }
.contact__data a { text-decoration: none; }
.contact__data a:hover { color: var(--red); }
.contact__map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-top: 28px; background: var(--blue-50); }
.form-card { background: var(--blue-50); border-top: 4px solid var(--red); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); }
#lead-form { display: grid; gap: 18px; }
.field label { display: block; font: 600 var(--fs-small) var(--display); color: var(--blue); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font: 400 var(--fs-body) var(--text); color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field input::placeholder { color: #6B6E80; }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.field [aria-invalid="true"] { border-color: var(--red); }
.form__send { width: 100%; margin-top: 4px; }
.form__send:disabled { opacity: 0.8; cursor: default; }
.form__msg:empty { display: none; }
.form__msg { font-weight: 600; color: var(--blue); }
.form__msg.is-error { color: var(--red-700); }
.form__legal { font-size: var(--fs-small); color: var(--ink-2); text-align: center; }
@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } }

/* ---------- Cierre ---------- */
.band { background: var(--red); color: #fff; padding-block: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.band h2 { color: #fff; max-width: 16em; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn--white { color: var(--red-700); }
.band__flame { position: absolute; right: -2%; top: 50%; width: 220px; height: auto; transform: translateY(-50%) rotate(8deg); opacity: 0.12; pointer-events: none; }

/* ---------- Pie ---------- */
.foot { background: var(--blue-900); color: #fff; padding: 72px 0 28px; }
.foot__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; }
.foot__logo { width: 240px; height: auto; }
.foot__social { display: flex; gap: 10px; }
.foot__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background-color 180ms ease, transform 160ms var(--ease-out); }
.foot__social a:hover { background: var(--red); }
.foot__social a:active { transform: scale(0.95); }
.foot__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 44px; }
.foot h2 { font-size: var(--fs-body); color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.foot li { padding: 5px 0; font-size: var(--fs-small); }
.foot a { text-decoration: none; transition: color 160ms ease; }
.foot a:hover { color: #C9CCEB; text-decoration: underline; text-underline-offset: 3px; }
.foot__end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; margin-top: 8px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); font-size: var(--fs-small); }
.foot__end ul { display: flex; gap: 24px; }
@media (max-width: 760px) { .foot__cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: #177A3F; color: #fff; font: 600 var(--fs-body) var(--display); text-decoration: none; outline: 3px solid #fff; outline-offset: 0; transition: transform 160ms var(--ease-out), background-color 180ms ease; }
.wa-float:hover { background: #126632; }
.wa-float:active { transform: scale(0.96); }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; } }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero__media img { animation: settle 1600ms var(--ease-out) both; }
  .hero h1, .hero__lead, .hero__actions { animation: rise 800ms var(--ease-out) both; }
  .hero__lead { animation-delay: 100ms; }
  .hero__actions { animation-delay: 200ms; }
  .finder__box { animation: rise 800ms var(--ease-out) 300ms both; }
  .track.is-lit .track__flame { transition-delay: calc(var(--n, 0) * 50ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } }
  @keyframes settle { from { transform: scale(1.08); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__item--mega:not(.is-open) .mega { display: none; }
  .prog__link, .prog__img img, .mega, .nav { transition: none; }
}

@media (max-width: 520px) { .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; } }

/* WhatsApp flotante: aparece al pasar la portada para no tapar el buscador */
html.js .wa-float { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 220ms ease, transform 260ms var(--ease-out), background-color 180ms ease; }
html.js .wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
html.js .wa-float.is-shown:active { transform: scale(0.96); }

/* Foto de apoyo en preguntas frecuentes */
.faq__photo { margin-top: 36px; border-radius: var(--radius); overflow: hidden; }
.faq__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 900px) { .faq__photo { display: none; } }

.life__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }

.hero__start { display: inline-block; margin-top: 22px; padding: 10px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.14); font-size: var(--fs-body); }
.hero__start::before { content: ""; display: inline-block; margin-right: 10px; vertical-align: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.hero__start strong { font-family: var(--display); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .hero__start { animation: rise 800ms var(--ease-out) 150ms both; } }
.contact__route { margin-top: 16px; }

/* Educación continua en el home */
.ec-teaser { padding-block: var(--section); background: var(--blue-50); }
.ec-teaser__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ec-teaser__photo { border-radius: var(--radius); overflow: hidden; }
.ec-teaser__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ec-teaser__lead { font-size: var(--fs-lead); color: var(--ink-2); margin-top: 14px; }
.hero__start.ec-teaser__start { background: var(--white); color: var(--ink); }
.ec-teaser__list { margin: 24px 0 32px; display: grid; gap: 10px; }
.ec-teaser__list li { padding-left: 20px; position: relative; }
.ec-teaser__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (max-width: 900px) { .ec-teaser__in { grid-template-columns: 1fr; } }
.util ul a[href*="aviso"] { text-decoration: underline; text-underline-offset: 3px; }

.util a { white-space: nowrap; }
@media (max-width: 480px) { .util__long { display: none; } }
