/* =========================================================
   Marcela Gallego · Talleres 2026
   Identidad: noche de teatro. Base del manual de marca (casi negro,
   mostaza, Montserrat, logo oficial) + paleta de los programas (PDF),
   telón festoneado, fotos en arco de escenario y tarjetas tipo boleta.
   ========================================================= */

/* ---------- Fuentes (alojadas en assets/fonts, subconjunto latino: español completo) ---------- */
/* Son fuentes variables: un archivo por familia cubre todos los pesos usados */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --navy: #1d2625;      /* casi negro del manual de marca */
  --navy-deep: #141b1a;
  --gold: #eabe5d;      /* mostaza del manual de marca */
  --gold-soft: #f2d48f;
  --cream: #fbf7f1;
  --sand: #f3ece2;
  --white: #ffffff;
  --text: #26302f;
  --muted: #5a6462;
  --line: #e3d9cb;
  --wa: #1fa855;

  /* Colores de cada programa (tomados de sus PDF) */
  --c-lab: #815d91;
  --c-com: #287a79;
  --c-ninos: #d28a35;
  --c-jovenes: #477aa2;
  --plum: var(--c-lab);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; /* tipografías del manual de marca */

  --radius: 18px;
  --radius-btn: 12px;
  --shadow: 0 22px 44px -28px rgba(20, 27, 26, .45);
  --container: 1180px;
  --gutter: 20px;
  --header-h: 114px; /* valor de respaldo; main.js lo reemplaza por la altura real del encabezado */
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .section--night :focus-visible, .closing :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Tipografía ---------- */
.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--navy);
}
.title em { font-style: normal; color: var(--plum); }
.title--sm { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.title--light { color: var(--white); }
.title--light em { color: var(--gold); }

.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 14px;
}
.kicker--gold { color: var(--gold); }
.act {
  font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: 0;
  font-size: .85rem; padding: 2px 10px; border-radius: 6px;
  background: var(--navy); color: var(--gold);
}
.act--light { background: var(--gold); color: var(--navy); }
/* Tipo de experiencia (grupales / corporativas) más visible que un kicker normal */
.kicker--type { font-size: clamp(1rem, 1.7vw, 1.3rem); letter-spacing: .1em; gap: 14px; margin-bottom: 18px; }
.kicker--type .act { font-size: .95rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 22px;
  border-radius: var(--radius-btn); border: 2px solid transparent;
  font: 700 .97rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap; max-width: 100%;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 13px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(234, 190, 93, .9); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--ghost-dark { color: var(--navy); border-color: var(--line); background: var(--white); }
.btn--ghost-dark:hover { border-color: var(--navy); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fbf7f1; /* sólido: el desenfoque (backdrop-filter) trababa el scroll en celulares */ box-shadow: 0 1px 0 var(--line); }
.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px var(--gutter);
  background: var(--plum); color: var(--white);
  font-size: .82rem; text-align: center;
}
.announce__star { width: 13px; height: 13px; color: var(--gold-soft); flex: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
/* Logo: firma manuscrita + eslogan «Experiencias que transforman» en Montserrat Extra-light espaciada (manual de marca) */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; margin: 0; color: var(--navy); }
.brand__firma { width: 72px; height: 52px; flex: none; }
.brand__tag {
  font-family: var(--font-label); font-weight: 300; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  line-height: 1.5; color: var(--navy); padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap;
}
.brand__tag span { display: block; } /* «que transforman» en la segunda línea */
.nav__links { display: none; gap: 30px; white-space: nowrap; }
/* Portátiles angostos: menú más compacto para que quepan logo, 4 enlaces y 2 botones */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: .92rem; }
  .nav__actions .btn { padding-inline: 16px; }
}
/* Entre 960 y 1099 px no caben ambos botones: se deja «Inscríbete» (WhatsApp sigue en la portada y en cada sección) */
@media (min-width: 960px) and (max-width: 1099px) {
  .nav .nav__wa { display: none; }
}
.nav__links a {
  font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--navy); padding: 6px 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--gold);
  transition: width .2s ease, left .2s ease;
}
.nav__links a:hover::after { width: 100%; left: 0; }
.nav__actions { display: flex; gap: 10px; }
.nav__wa { display: none; }

/* ---------- Telón festoneado ---------- */
.valance {
  position: relative; z-index: 2; height: 26px; margin-top: -1px;
  background:
    radial-gradient(circle at 22px 0, var(--navy) 21px, transparent 21.5px) 0 0 / 44px 26px repeat-x,
    radial-gradient(circle at 22px 0, var(--gold) 24px, transparent 24.5px) 0 0 / 44px 26px repeat-x;
}
.valance--up {
  margin-top: 0; margin-bottom: -1px;
  background:
    radial-gradient(circle at 22px 100%, var(--navy) 21px, transparent 21.5px) 0 100% / 44px 26px repeat-x,
    radial-gradient(circle at 22px 100%, var(--gold) 24px, transparent 24.5px) 0 100% / 44px 26px repeat-x;
}

/* ---------- Destellos ---------- */
.spark { position: absolute; color: var(--gold); pointer-events: none; }

/* ---------- Marcos de escenario ---------- */
.arch { position: relative; margin: 0; --arch-color: var(--gold); }
.arch img, .arch video {
  position: relative; z-index: 1; display: block;
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 16px 16px;
}
.arch::before {
  content: ""; position: absolute; inset: -12px; z-index: 0;
  border: 2px solid var(--arch-color);
  border-radius: 999px 999px 26px 26px;
}
.arch--gold { --arch-color: var(--gold); }
.arch--plum { --arch-color: var(--plum); }

.polaroid {
  margin: 0; background: var(--white); padding: 10px 10px 12px; border-radius: 6px;
  box-shadow: 0 20px 40px -20px rgba(20, 27, 26, .5);
  transform: rotate(4deg);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 3px; }
.polaroid figcaption { font-size: .76rem; text-align: center; color: var(--muted); padding-top: 8px; line-height: 1.3; }

/* Boleta de entrada */
.ticket {
  display: grid; place-content: center; text-align: center;
  background: var(--gold); color: var(--navy);
  padding: 12px 26px;
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
}
.ticket strong { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; }
.ticket span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-top: 1.5px dashed rgba(29, 38, 37, .5); padding-top: 4px; margin-top: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 48px 0 64px; }
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 0%, rgba(234, 190, 93, .22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(129, 93, 145, .35), transparent 70%);
}
.hero__spark1 { width: 26px; height: 26px; top: 14%; left: 46%; }
@media (max-width: 959px) { .hero__spark1 { display: none; } }
.hero__spark2 { width: 16px; height: 16px; bottom: 16%; left: 6%; opacity: .7; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 52px; align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 8vw, 4.5rem);
  line-height: 1; letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero__title em { display: block; font-style: normal; color: var(--gold); }
.hero__lead { font-size: 1.1rem; color: rgba(255, 255, 255, .82); max-width: 33em; margin-bottom: 30px; }
.hero__lead strong { color: var(--white); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .84rem; padding: 6px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--lab { background: #b08cc0; }
.dot--com { background: #4fb3b1; }
.dot--ninos { background: var(--c-ninos); }
.dot--jovenes { background: #7aa9cf; }
.hero__media { width: min(78%, 380px); justify-self: center; margin-top: 12px; }
.hero__media img { object-position: 50% 30%; }
/* Entrada del hero solo con desplazamiento (sin opacidad 0): el contenido se ve desde el primer pintado */
@keyframes hero-in { from { translate: 0 18px; } }
.hero__copy > *, .hero__media { animation: hero-in .8s cubic-bezier(.22, 1, .36, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 60ms; }
.hero__copy > :nth-child(3) { animation-delay: 120ms; }
.hero__copy > :nth-child(n+4) { animation-delay: 180ms; }
.hero__ticket { position: absolute; z-index: 2; left: -14%; bottom: 10%; transform: rotate(-7deg); box-shadow: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }

/* ---------- Premisa ---------- */
.premise { padding: 70px 0 10px; }
.premise__text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem); line-height: 1.22; letter-spacing: -.02em;
  color: var(--navy); max-width: 26em; margin: 0 auto; text-align: center;
}
.premise__umbrella {
  margin: 0 auto 14px; text-align: center;
  font-family: var(--font-label); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--plum);
}
.premise__text em { font-style: normal; color: var(--plum); background: linear-gradient(transparent 62%, rgba(234, 190, 93, .45) 62%); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 76px 0; }
.section--sand { background: var(--sand); }
.section--night { background: var(--navy); color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__intro { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }
.section__cta { margin-top: 44px; display: flex; justify-content: center; }

/* ---------- Acto I · Marcela ---------- */
.split { display: grid; gap: 64px; align-items: center; }
.split__media { position: relative; padding: 14px; }
.split__main { margin-inline: auto; }
.split__main img { object-position: 50% 25%; }

/* Video de presentación dentro del arco */
/* Proporción real de los videos (9:16) para que no se recorte nada arriba ni abajo */
.video video { height: auto; aspect-ratio: 9 / 16; background: var(--navy-deep); transition: border-radius .4s ease; }
.video::before { transition: border-radius .4s ease; }
.video__play {
  position: absolute; inset: 0; z-index: 2;
  /* Alineado a la izquierda para que la polaroid no lo tape */
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px;
  padding: 0 20px 24px; border: 0; cursor: pointer; color: var(--white);
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(to top, rgba(20, 27, 26, .82) 0%, rgba(20, 27, 26, .25) 45%, transparent 70%);
}
.video__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 0 0 8px rgba(234, 190, 93, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video__icon svg { width: 30px; height: 30px; margin-left: 4px; }
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(234, 190, 93, .35); }
.video__play:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.video__label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-align: left; line-height: 1.2; }
.video__label small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .8rem; opacity: .85; margin-top: 4px; }
.video.is-playing .video__play { display: none; }
/* Al reproducir, el arco pasa a esquinas suaves para no tapar las esquinas del video */
.video.is-playing video { border-radius: 16px; }
.video.is-playing::before { border-radius: 26px; }
/* En pantalla completa el video se ve entero: sin forma de arco ni recorte */
.arch video:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #000; }
.arch video:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #000; }

/* Testimonios en video (Acto III) */
/* Móvil: texto → video → botón. Escritorio: texto y botón a la izquierda, video a la derecha */
.voices { display: grid; gap: 36px; margin-top: 64px; }
.voices__copy .title { margin-bottom: 16px; }
.voices__copy p:not(.kicker) { color: var(--muted); margin: 0; }
.voices__media { width: 100%; max-width: 360px; margin: 12px auto 0; }
.voices__cta { display: flex; justify-content: center; }
.video.is-playing ~ .split__float { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.split__float { position: absolute; right: 0; bottom: 0; width: 46%; z-index: 2; }
.split__copy .title { margin-bottom: 12px; }
.split__role {
  font-family: var(--font-label); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum) !important; margin-bottom: 18px;
}
.split__copy > p { color: #3d4a57; }
.facts { display: grid; gap: 12px; margin-top: 28px; }
.facts li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 var(--line);
}
.facts svg { width: 30px; height: 30px; flex: none; color: var(--plum); }
.facts span { display: flex; flex-direction: column; font-size: .84rem; color: var(--muted); line-height: 1.3; }
.facts strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--navy); }

/* ---------- Acto II · Talleres ---------- */
/* Los filtros bajan de línea en pantallas angostas para que todos queden a la vista */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip {
  flex: none; min-height: 44px; padding: 8px 18px; border-radius: 10px;
  border: 1.5px solid #cfc3b3; background: transparent; color: var(--navy);
  font: 600 .93rem var(--font-body); cursor: pointer; transition: all .18s ease;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.cards { display: grid; gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  /* --card-bg: color del curso · --card-fg: texto sobre él · --card-ink: acentos sobre blanco */
  --card-bg: var(--c-lab); --card-fg: var(--white); --card-ink: var(--c-lab);
}
/* Franjas de color a la misma altura en cada fila de tarjetas: la tarjeta comparte las filas
   (franja / cuerpo) con sus vecinas mediante subgrid. Sin soporte, cada tarjeta queda como antes. */
@supports (grid-template-rows: subgrid) {
  .card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
.card:hover { transform: translateY(-5px); box-shadow: 0 30px 54px -30px rgba(20, 27, 26, .55); }
.card[hidden] { display: none; }
.card--lab { --card-bg: var(--c-lab); --card-fg: var(--white); --card-ink: var(--c-lab); }
.card--com { --card-bg: var(--c-com); --card-fg: var(--white); --card-ink: var(--c-com); }
.card--ninos { --card-bg: var(--c-ninos); --card-fg: var(--navy); --card-ink: #a8661c; }
.card--jovenes { --card-bg: var(--c-jovenes); --card-fg: var(--white); --card-ink: var(--c-jovenes); }
.card__top {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 22px 20px;
  background: var(--card-bg); color: var(--card-fg);
  font-size: .84rem;
}
.card__tag { font-weight: 700; }
/* Aviso destacado sobre la franja de color (p. ej. «Último Bootcamp del año»):
   va a la derecha de la etiqueta y la cuenta regresiva; si no cabe (celulares angostos) baja a la línea siguiente */
.card__top--notice { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 8px; }
.card__top-text { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.card__notice {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 10px 6px 8px; border-radius: 10px; background: var(--gold); color: var(--navy);
  font-family: var(--font-label); font-size: .62rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.3;
}
.card__notice svg { width: 11px; height: 11px; flex: none; }
/* Experiencias sin fecha publicada («Próximamente») */
.card__notice--soon { background: rgba(255, 255, 255, .92); color: var(--card-ink); font-size: .66rem; letter-spacing: .08em; padding: 6px 11px; }
.card__cta { margin-top: auto; } /* tarjetas sin precio: el botón queda abajo, alineado con las vecinas */
.card__soon-note { margin: auto 0 14px; font-size: .9rem; font-weight: 600; color: var(--card-ink); }
/* Rango de edad junto al título (Connection Lab) */
.card__age {
  display: inline-block; vertical-align: middle; margin: 2px 0 0 4px; padding: 5px 12px; border-radius: 999px;
  background: var(--card-ink, var(--navy)); color: var(--white);
  font-family: var(--font-label); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
}
/* Dirección de las experiencias grupales */
.place { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--navy); font-size: 1rem; }
.place .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--plum); }
.place a { color: var(--plum); font-weight: 600; }
.card__countdown { font-weight: 500; opacity: .95; }
.card__countdown:empty { display: none; }
/* Perforación de boleta entre la franja y el cuerpo */
.card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; border-top: 2px dashed rgba(29, 38, 37, .18); }
.card__body::before, .card__body::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--sand);
}
.card__body::before { left: -11px; }
.card__body::after { right: -11px; }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; letter-spacing: -.025em; color: var(--navy); margin-bottom: 8px; }
.card__claim { font-weight: 700; font-size: .93rem; color: var(--card-ink); margin-bottom: 6px; line-height: 1.4; }
.card__subtitle { color: var(--muted); font-size: .93rem; }
.card__meta { margin: 4px 0 16px; display: grid; gap: 9px; }
.card__meta div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .91rem; }
.card__meta dt { color: var(--card-ink); padding-top: 2px; }
.card__meta dt svg { width: 20px; height: 20px; display: block; }
.card__meta dd { margin: 0; }
.card__details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.card__details summary {
  cursor: pointer; list-style: none; min-height: 44px; padding: 10px 0;
  font-weight: 700; font-size: .9rem; color: var(--card-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.card__details summary::-webkit-details-marker { display: none; }
.card__details summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--card-bg); color: var(--card-fg);
  font-size: 1.1rem; line-height: 1; transition: transform .2s;
}
.card__details[open] summary::after { transform: rotate(45deg); }
.card__details ul { padding: 0 0 14px; display: grid; gap: 7px; }
.card__details + .card__details { border-top: 0; margin-top: -18px; }
.card__details p { margin: 0 0 10px; font-size: .89rem; }
.card__details li strong { color: var(--card-ink); }
.card__details li { position: relative; padding-left: 18px; font-size: .89rem; }
.card__details li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--card-bg); }
.price { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 18px; margin: auto 0 16px; }
.price div { display: flex; flex-direction: column; }
.price__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.price__now { font-family: var(--font-display); font-weight: 800; font-size: 1.95rem; color: var(--navy); line-height: 1.05; letter-spacing: -.02em; }
.price__was { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.btn--course { background: var(--card-bg); color: var(--card-fg); }
.btn--course:hover { filter: brightness(.92); }
.fineprint { margin-top: 26px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Entreacto · Beneficios ---------- */
.section--night { overflow: hidden; }
.benefits { display: grid; gap: 14px; }
.benefit {
  padding: 24px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  --b: var(--c-lab); --b-fg: var(--white);
}
.benefit--lab { --b: var(--c-lab); }
.benefit--com { --b: var(--c-com); }
.benefit--ninos { --b: var(--c-ninos); --b-fg: var(--navy); }
.benefit--jovenes { --b: var(--c-jovenes); }
.benefit__icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--b); color: var(--b-fg);
  transform: rotate(-4deg);
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 6px; }
.benefit p { color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* ---------- Acto III · Galería ---------- */
.gallery {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; grid-auto-flow: dense; gap: 12px;
}
.gallery__item { margin: 0; overflow: hidden; border-radius: 14px; background: var(--sand); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(1) { grid-column: span 2; }
.gallery__item--arch { grid-row: span 2; border-radius: 999px 999px 14px 14px; }
.gallery__item:nth-child(3) { grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(5) img { object-position: 50% 70%; }

.quotes { display: grid; gap: 16px; margin-top: 40px; }
.quote { margin: 0; padding: 26px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.quote p { font-size: 1.05rem; color: var(--navy); }
.quote footer { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Empresas ---------- */
.corp { padding: 76px 0; }
.corp__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 6px solid var(--gold);
}
.corp__media { margin: 0; }
.corp__media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.corp__copy { padding: 32px 26px; }
.corp__copy .title { margin-bottom: 12px; }
.corp__copy p { color: var(--muted); margin-bottom: 18px; }
.corp__formats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.corp__formats li {
  font-size: .8rem; font-weight: 600; color: var(--navy);
  padding: 5px 11px; border-radius: 8px; background: var(--sand);
}
/* Líneas de formación + eventos */
.corp__more { display: grid; gap: 20px; margin-top: 20px; }
.corp__subtitle { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: var(--navy); margin-bottom: 16px; }
.corp__lines { padding: 28px 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.corp__lines ol { margin: 0; padding: 0; list-style: none; counter-reset: linea; display: grid; gap: 14px; }
.corp__lines li { counter-increment: linea; position: relative; padding-left: 44px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.corp__lines li::before {
  content: counter(linea, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #a8661c; line-height: 1.2; /* ocre oscuro: contraste 4.5+ sobre blanco */
}
.corp__lines strong { display: block; font-size: .98rem; color: var(--navy); }
.corp__events {
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: var(--radius);
  background: var(--navy); color: rgba(255, 255, 255, .8);
}
.corp__events::after { /* foco de escenario */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 100% 0%, rgba(234, 190, 93, .22), transparent 70%);
}
.corp__events > * { position: relative; z-index: 1; }
.corp__events .corp__subtitle { color: var(--white); }
.corp__events p { font-size: .93rem; margin-bottom: 14px; }
.corp__events strong { color: var(--white); }
.corp__events .btn { margin-top: 8px; }
.corp__events .corp__tag {
  display: inline-block; font-family: var(--font-label); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--gold); padding: 3px 10px; border-radius: 6px; margin-bottom: 12px !important;
}
.corp__motto {
  margin: 28px 0 0; text-align: center;
  font-family: var(--font-label); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plum);
}

/* Empresas que han vivido nuestras experiencias (muro de logos; mientras llegan los logos se muestran los nombres) */
.clients { margin-top: 56px; text-align: center; }
.clients__title {
  font-family: var(--font-label); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 22px;
}
/* Carrusel continuo: la pista contiene la lista dos veces y se desplaza la mitad de su ancho */
.clients__marquee {
  overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients__track { display: flex; width: max-content; animation: clients-marquee 60s linear infinite; }
.clients__marquee:hover .clients__track, .clients__marquee:focus-within .clients__track,
.clients__marquee.is-offscreen .clients__track { animation-play-state: paused; } /* is-offscreen: lo pone main.js */
@keyframes clients-marquee { to { transform: translateX(-50%); } }
.client {
  flex: none; width: 200px; min-height: 84px; margin-right: 12px; padding: 14px 18px;
  display: grid; place-items: center;
  background: var(--white); border-radius: 14px; box-shadow: 0 1px 0 var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.2; letter-spacing: -.01em;
  color: var(--navy); opacity: .78; transition: opacity .2s ease;
}
.client:hover { opacity: 1; }
.client--long { width: 250px; font-size: .82rem; }
/* Logos a color; se igualan por tipo para que todos tengan un peso visual parecido */
.client img { max-width: 150px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.client--logo { opacity: 1; }
.client--tall img { max-height: 62px; }                 /* escudos y logos verticales */
.client--wide img { max-width: 185px; max-height: 48px; } /* logotipos muy horizontales */
.client--sm img { max-height: 32px; }
.client--xl img { max-width: 175px; max-height: 56px; }   /* logotipos pequeños de origen (Gobernación de Caldas) */                   /* logotipos de letra grande */
.client--caption { gap: 6px; align-content: center; }
.client--caption img { max-height: 38px; }
.client--caption span { font-size: .82rem; }
@media (min-width: 960px) { .clients { margin-top: 72px; } .client { width: 220px; } .client--long { width: 270px; } }
/* Con «reducir movimiento» activo el carrusel sigue, pero mucho más lento */
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: clients-marquee 140s linear infinite !important; }
}

/* ---------- Acto IV · Reserva ---------- */
.reserve { display: grid; gap: 40px; align-items: start; }
.reserve__copy .title { margin-bottom: 18px; }
.reserve__copy > p { color: #3d4a57; font-size: 1.05rem; }
.reserve__points { display: grid; gap: 12px; margin: 22px 0 28px; }
.reserve__points li { position: relative; padding-left: 32px; font-weight: 600; color: var(--navy); }
.reserve__points li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23eabe5d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.wa-direct {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 12px 20px 12px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 var(--line);
}
.wa-direct .icon { width: 34px; height: 34px; color: var(--wa); }
.wa-direct span { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.wa-direct strong { font-size: 1.12rem; color: var(--navy); }

.form {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 0 22px 26px;
  display: grid; gap: 16px; box-shadow: var(--shadow);
}
.form__title {
  margin: 0 -22px 6px; padding: 16px 22px;
  background: var(--navy); color: var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em;
  border-bottom: 2px dashed rgba(234, 190, 93, .6);
}
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field-row { display: grid; gap: 16px; }
.field label { font-size: .87rem; font-weight: 700; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16px/1.4 var(--font-body); color: var(--text);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(29, 38, 37, .12);
}
.field .is-invalid, .check .is-invalid { border-color: #c62828; }
.field__error { margin: 0; font-size: .81rem; font-weight: 500; color: #b3261e; }
.field__error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #a12020; font-size: .88rem; }
.form__note { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; gap: 10px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 14px; padding: 0 20px; box-shadow: 0 1px 0 var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-weight: 700; font-size: 1rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--sand); color: var(--navy); font-size: 1.2rem; transition: transform .2s, background-color .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--gold); }
.faq details p { padding-bottom: 20px; color: #3d4a57; font-size: .96rem; }

/* ---------- Cierre ---------- */
.closing { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 80px 0; text-align: center; }
.closing__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.closing__logo { width: 190px; height: 152px; color: var(--white); margin-bottom: -6px; }
.closing__quote { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.closing__quote em { display: block; font-style: normal; color: var(--gold); }
.closing .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 52px 0 100px; font-size: .9rem; }
.footer__grid { display: grid; gap: 28px; }
.footer__logo { display: block; width: 140px; height: 112px; color: var(--white); margin: -10px 0 10px -8px; }
.footer__title { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer__muted { color: rgba(255, 255, 255, .65); margin: 6px 0 0; }
.footer__small { font-size: .82rem; }
.footer__link { color: var(--gold); font-weight: 600; text-decoration: none; }
.footer__link:hover { text-decoration: underline; }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.footer__icon { display: inline-flex; border-radius: 50%; transition: transform .2s ease, opacity .2s ease; }
.footer__icon img { display: block; width: 40px; height: 40px; }
.footer__icon:hover { transform: translateY(-2px); opacity: .9; }
.footer__icon:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer__bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(255, 255, 255, .55);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
}
/* Crédito de desarrollo (logo de Kmedia en versión para fondo oscuro) */
.credit { display: inline-flex; align-items: center; gap: 10px; }
.credit__logo { width: 150px; height: auto; }

/* ---------- Barra móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #141b1a; /* sólido, sin desenfoque */
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.mobile-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform .3s ease; }
.mobile-bar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; }
.mobile-bar__wa {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  border-radius: 12px; background: var(--wa); color: var(--white);
}
.mobile-bar__wa .icon { width: 26px; height: 26px; }

/* ---------- Animación de entrada ---------- */
/* Se usan translate/scale (no transform) para no pisar rotaciones ni efectos hover existentes */
.reveal {
  opacity: 0;
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms),
    translate .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms),
    scale .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms),
    transform .2s ease,
    box-shadow .2s ease;
}
.reveal--up { translate: 0 30px; }
.reveal--left { translate: -40px 0; }
.reveal--right { translate: 40px 0; }
.reveal--zoom { scale: .94; }
.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit:last-child:nth-child(odd) { grid-column: 1 / -1; } /* el 5.º beneficio ocupa toda la fila en vez de quedar solo */
  .field-row { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { flex-direction: column; align-items: flex-start; }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 250px 250px;
    grid-template-areas: "a a b c" "d d b e";
  }
  .gallery__item:nth-child(1) { grid-area: a; }
  .gallery__item:nth-child(2) { grid-area: b; }
  .gallery__item:nth-child(3) { grid-area: c; }
  .gallery__item:nth-child(4) { grid-area: d; }
  .gallery__item:nth-child(5) { grid-area: e; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.6fr; }
  .form { padding: 0 30px 30px; }
  .form__title { margin: 0 -30px 6px; padding: 18px 30px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .nav { height: 80px; }
  .brand__firma { width: 86px; height: 62px; }
  .nav__links { display: flex; }
  .nav__wa { display: inline-flex; }
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero__media { justify-self: end; margin-right: 24px; }
  .section { padding: 104px 0; }
  .split { grid-template-columns: .95fr 1.05fr; gap: 80px; }
  .benefits { grid-template-columns: repeat(5, 1fr); }
  .benefit:last-child:nth-child(odd) { grid-column: auto; }
  .voices {
    grid-template-columns: 1fr var(--video-w); grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". media" "copy media" "cta media" ". media";
    column-gap: 80px; row-gap: 28px; margin-top: 88px;
  }
  .voices__copy { grid-area: copy; align-self: end; }
  /* Mismo tamaño que el video del Acto I: el ancho se calcula según el alto disponible de la pantalla */
  /* (356 px es el ancho máximo que alcanza el video del Acto I dentro de su columna) */
  .voices { --video-w: clamp(220px, calc((100svh - var(--header-h) - 250px) * 9 / 16), 356px); }
  .voices__media { grid-area: media; max-width: none; margin: 0; align-self: center; width: 100%; }
  .voices__cta { grid-area: cta; justify-content: flex-start; }
  .corp__grid { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
  .corp__media { height: 100%; }
  .corp__media img { aspect-ratio: auto; height: 100%; min-height: 360px; object-position: 60% 50%; }
  .corp__copy { padding: 40px 48px; }
  .corp__more { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
  .corp__lines ol { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .corp__lines, .corp__events { padding: 32px 34px; }
  .reserve { grid-template-columns: .85fr 1.15fr; gap: 64px; }
  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-wrap .section__head { position: sticky; top: 120px; }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 52px; }
}

@media (min-width: 1140px) {
  /* Las 4 experiencias una al lado de la otra; la fila puede ser un poco más ancha que el contenedor */
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: min(1360px, calc(100vw - 2 * var(--gutter))); margin-inline: 50%; translate: -50% 0; }
  .cards > .card:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
  /* Según cuántas experiencias estén visibles (la clase cards--nN la pone el panel de administración) */
  .cards--n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .cards--n2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .cards--n3, .cards--n5, .cards--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1180px, calc(100vw - 2 * var(--gutter))); }
  /* Franja uniforme: etiqueta (y cuenta regresiva) arriba, aviso debajo y en una sola línea */
  .card__top--notice { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 2px; }
  .card__top--notice .card__notice { margin-top: 8px; }
  .card__notice br { display: none; }
  .card__top { padding: 16px 18px 18px; }
  .card__body { padding: 20px 18px 20px; }
  .card__title { font-size: 1.5rem; }
  .price__now { font-size: 1.75rem; }
}

/* Móvil y tablet en una columna: el bloque de video no crece más que la foto del hero */
@media (max-width: 959px) {
  /* En una columna las entradas laterales se salían de la pantalla y ensanchaban la página: aquí entran desde abajo */
  .reveal--left, .reveal--right { translate: 0 30px; }
  .split__media { width: 100%; max-width: 520px; margin-inline: auto; }
  .split__main { max-width: 250px; } /* sin la foto al lado, el video no debe ser más alto que la pantalla */
  .split__float { width: 42%; }
}

/* Celulares muy angostos (iPhone SE, Android pequeños) */
@media (max-width: 399px) {
  .video__play { padding: 0 14px 16px; gap: 8px; }
  .video__icon { width: 52px; height: 52px; }
  .video__icon svg { width: 24px; height: 24px; }
  .video__label { font-size: .98rem; }
  .video__label small { font-size: .72rem; }
  .btn { white-space: normal; text-align: center; }
  .nav__actions .btn { padding: 10px 14px; }
  .brand { gap: 8px; }
  .brand__firma { width: 52px; height: 38px; }
  .brand__tag { font-size: .55rem; letter-spacing: .08em; padding-left: 8px; }
  .chip { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Sin desplazamientos ni zoom: solo un fundido suave */
  .reveal { translate: none !important; scale: none !important; transition: opacity .7s ease var(--d, 0ms) !important; }
}

/* ---------- Secciones a altura de pantalla (ajuste de layout) ---------- */
/* Cada bloque ocupa al menos la pantalla completa y su contenido queda centrado.
   Si el contenido es más alto, la sección crece sin cortarse. */
/* La altura descuenta el encabezado fijo (--header-h, medido en main.js), que queda encima de cada sección al engancharse. */
.hero, .section, .corp, .closing {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* En escritorio, el desplazamiento "se engancha" al inicio de cada sección.
   Se usa "proximity" (no "mandatory") para que una sección más alta que la pantalla no quede atrapada.
   Solo se activa en pantallas con altura suficiente: en pantallas bajas el enganche dejaba secciones cortadas. */
@media (min-width: 960px) and (min-height: 700px) {
  html { scroll-snap-type: y proximity; }
  .hero, .premise, .section, .corp, .closing, .footer { scroll-snap-align: start; }
}

/* Espacio entre la premisa y el bloque de Marcela */
#marcela .premise__text { margin-bottom: 56px; }

/* ---------- Acto I · Marcela cabe en una pantalla (escritorio) ---------- */
/* El video (9:16) define el alto del bloque: su ancho se limita según el alto disponible
   (pantalla − encabezado − padding de la sección − premisa − márgenes del marco). */
@media (min-width: 960px) {
  #marcela { padding: 28px 0; }
  #marcela .premise__text { margin-bottom: 24px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
  #marcela .split { gap: 64px; }
  #marcela .split__media { padding-bottom: 14px; }
  #marcela .split__main {
    width: min(100%, calc((100svh - var(--header-h) - 250px) * 9 / 16));
    min-width: 220px;
  }
  #marcela .split__float { width: 40%; }
  #marcela .split__copy .title { font-size: clamp(2rem, 3.6vw, 3rem); }
  #marcela .split__role { margin-bottom: 14px; }
  #marcela .split__copy > p { margin-bottom: 12px; }
  #marcela .facts { margin-top: 18px; }
  #marcela .facts li { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
  #marcela .facts svg { width: 24px; height: 24px; }
  #marcela .facts strong { font-size: .98rem; }
}
/* Pantallas bajas (portátiles con zoom, 1366×768…): se compacta un poco más */
@media (min-width: 960px) and (max-height: 820px) {
  #marcela { padding: 20px 0; }
  #marcela .premise__text { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 18px; }
  #marcela .split__copy .title { font-size: clamp(1.9rem, 3vw, 2.5rem); }
  #marcela .split__copy > p { font-size: .96rem; line-height: 1.55; }
}

/* ---------- Rendimiento: el navegador no dibuja las secciones lejanas hasta que se acercan ---------- */
/* Desde la 3.ª sección (después de hero y Marcela) y el pie. "auto 900px" reserva un alto estimado
   y luego recuerda el real, para que la barra de scroll no salte. */
main > section:nth-of-type(n+3), .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
