/* sections.css — estilo por acto. Se viste cada acto en su paso (MASTER-BUILD §4). */

/* Placeholder de andamiaje (actos aún sin vestir) */
.act--placeholder { gap: 14px; opacity: 0.5; }
.act--placeholder h2 { color: var(--dim); }

/* ── ACTO 0 · LOADER (overlay transparente sobre la crema del body) ── */
#loader {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ld-phrase {
  position: absolute;
  text-align: center; font-family: var(--sans); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(24px, 4.4vw, 44px); color: var(--ink);
}
.ld-phrase .w { display: inline-block; white-space: pre; opacity: 0; will-change: opacity, transform, filter; }
.ld-phrase .accent { font-family: var(--serif-accent); font-style: italic; font-weight: 500; color: var(--accent-deep); }

/* Lockup de marca: logo ORIGINAL de Quota + "PLAYBOOK" debajo */
.ld-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(330px, 62vw); will-change: opacity, transform, filter; }
#ld-quota { width: 100%; height: auto; display: block; opacity: 0; }
.ld-pb {
  /* Mismo estilo que el acento "tu cancha" del hero: Fraunces itálica, verde. */
  font-family: var(--serif-accent); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: 0; padding-left: 0;
  color: var(--accent-deep); opacity: 0;
}

/* ── ACTO 1 · HERO (el cerebro 3D vive en el canvas; el titular en el tercio inferior) ── */
/* gutter horizontal propio (6vw): el hero NO tiene contenedor interno con 92vw, así que el
   padding lateral del .act —que ahora es 0— ya no lo separa del borde. */
#act-hero { justify-content: flex-end; padding: var(--act-pad) 6vw 14vh; text-align: left; align-items: flex-start; }
.hero-h { font-family: var(--sans); font-weight: 800; font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.02; max-width: 16ch; }
.hero-h .reveal-w { display: inline-block; will-change: opacity, transform, filter; }
.hero-h .accent { font-family: var(--serif-accent); font-style: italic; font-weight: 500; color: var(--accent-deep); }

/* anti-flash: el hero arranca oculto hasta que la costura lo revela (lo gestiona GSAP) */
html.loading #act-hero .reveal-w { opacity: 0; }

/* Botón temporal de revisión: reproducir el intro sin recargar */
#replay-intro{
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--cream); border: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

/* ── Revelado por scroll (lo anima GSAP; aquí solo el estado inicial anti-flash) ── */
.reveal { opacity: 0; will-change: opacity, transform; }

/* ── ACTO 2 · LA CANCHA / LA DUDA (4 realidades del closer) ── */
.act--cancha { justify-content: center; align-items: stretch; text-align: left; }
.cancha { width: min(1080px, 92vw); margin: 0 auto; }
.cancha__intro { max-width: 880px; }
.cancha__heading {
  font-family: var(--sans); font-weight: 800; font-size: var(--fs-h2);
  letter-spacing: -0.025em; line-height: 1.06; max-width: 20ch; margin: 0.5em 0 0;
}
.cancha__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px); margin-top: clamp(40px, 6vh, 72px);
}
.cancha__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: rgba(251,250,247,0.92); border: 1px solid rgba(17,17,17,0.08);
  border-radius: 20px; padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 14px 50px rgba(17,17,17,0.05);
  /* Reveal por CSS (corre en el COMPOSITOR, no en el hilo principal) → suave aunque el cerebro
     3D esté renderizando. Lo dispara un IntersectionObserver agregando .is-in (ver main.js).
     Antes con GSAP+scroll las tarjetas se "trababan"/entraban tarde. */
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.cancha__card.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cancha__card { opacity: 1; transform: none; transition: none; }
}
/* Número GRANDE de marca de agua DETRÁS del texto (reemplaza el [ 0X ] de antes). */
.cancha__wm {
  position: absolute; top: clamp(-16px, -1vw, -4px); right: clamp(6px, 1.5vw, 22px);
  font-family: var(--display); font-weight: 400; font-size: clamp(100px, 11vw, 160px);
  line-height: 0.8; letter-spacing: -0.02em; color: var(--ink); opacity: 0.055;
  z-index: 0; pointer-events: none; user-select: none;
}
/* Ícono en pastilla circular. Todos con el MISMO trazo (1.7) y tamaño → consistencia. */
.cancha__ico {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30,90,60,0.09); color: var(--accent-deep); margin-bottom: 20px;
}
.cancha__ico svg { width: 28px; height: 28px; display: block; }
.cancha__title {
  position: relative; z-index: 1;
  font-family: var(--sans); font-weight: 800; font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 12px;
}
.cancha__desc { position: relative; z-index: 1; font-size: var(--fs-body); color: var(--dim); line-height: 1.62; max-width: 48ch; margin: 0; }
.cancha__desc b { color: var(--ink); font-weight: 600; }
/* Pie de tarjeta (estilo del mockup de GPT): logo Quota + PlayBook + la acción. Anclado ABAJO
   (margin-top:auto) → alineado entre tarjetas de la misma fila. Separado por una línea sutil. */
.cancha__pb {
  position: relative; z-index: 1; margin: clamp(22px, 3vh, 32px) 0 0; padding-top: clamp(16px, 2vh, 22px);
  border-top: 1px solid rgba(17,17,17,0.10);
  display: flex; align-items: center; gap: 11px;
  font-size: clamp(14.5px, 1.05vw, 16.5px); color: var(--dim); line-height: 1.4;
}
.cancha__card .cancha__pb { margin-top: auto; }   /* empuja el pie al fondo de la tarjeta */
.cancha__pb-mark { width: 21px; height: auto; flex-shrink: 0; display: block; }
.cancha__pb-name { font-family: var(--serif-accent); font-style: italic; font-weight: 500; color: var(--accent-deep); }
.cancha__pb b { color: var(--ink); font-weight: 600; }
.cancha__statement {
  font-family: var(--serif-accent); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 3vw, 40px); line-height: 1.2; color: var(--ink);
  margin: clamp(56px, 9vh, 120px) 0 0; max-width: 22ch;
}
.cancha__statement .accent { color: var(--accent-deep); }
/* escalonado de las 4 tarjetas al entrar */
.cancha__grid .reveal:nth-child(2) { transition-delay: .08s; }
.cancha__grid .reveal:nth-child(3) { transition-delay: .16s; }
.cancha__grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (max-width: 760px) {
  .cancha__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ════════════ COLORES DE SECCIÓN (opacas → tapan el canvas; el cerebro se esconde detrás) ════════════ */
.act--cream   { background: var(--cream); }
.act--cream-2 { background: #f4f0e8; }
.act--cream-3 { background: #ece6db; }
.act--dark    { background: #000; color: var(--cream); }
.act--dark .eyebrow { color: rgba(251,250,247,0.55); }
.act--dark h2, .act--dark h3 { color: var(--cream); }
.act--dark .accent, .act--dark i { color: var(--accent); }
/* ACENTO DE TODOS LOS TITULARES = Fraunces itálica como en el HEAD (no la oblicua de Host).
   Unifica los <i>/<em> de los h1/h2/h3 con los .accent y con el hero → sinergia entre encabezados. */
h1 i, h1 em, h2 i, h2 em, h3 i, h3 em { font-family: var(--serif-accent); font-style: italic; font-weight: 500; color: var(--accent-deep); }
.act--dark h2 i, .act--dark h2 em, .act--dark h3 i, .act--dark h3 em { color: var(--accent); }

/* Secciones de contenido TRANSPARENTES → el cerebro 3D se ve de FONDO siempre, moviéndose
   con el scroll (decisión de Gabriel). La legibilidad la dan las cards (con fondo propio)
   y los titulares grandes en negrita. El cerebro va tenue (ghostOpacity) y gira/cambia de
   perspectiva con el scroll. Las secciones OSCURAS (jugada/ritmo/privacidad) sí lo tapan. */
.act--cancha,
.act--meet,
.act--funciones,
.act--finanzas,
.act--versus,
.act--niveles,
.act--cierre { background: transparent; }

/* NOTA: el empalme DARK→CREMA es un CORTE LIMPIO a propósito (decisión de Gabriel 2026-06-16:
   probé un degradado transparent→crema y NO le gustó, "antes se veía mejor"). El problema que
   reportó NO era el corte sino que el teléfono DESBORDABA la sección en ventanas bajas (vacío
   negro irregular) → eso se resolvió con `.phone` alto-driven + `@media (max-height:760px)`.
   NO volver a agregar el degradado en jugada/ritmo/privacidad. */

.brand-block-content { } /* reservado */
#brain-backdrop {
  position: fixed; inset: 0; z-index: 0;       /* detrás del canvas (mismo plano, antes en el DOM) */
  background: #000;                            /* negro total */
  opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
}
/* contenedor interno común */
.meet, .jugada, .func, .ritmo, .fin, .versus, .priv, .niveles, .cierre { width: min(1120px, 92vw); margin: 0 auto; }

/* ════════════ ACTO 3 · CONOCE A COACH Q ════════════ */
.act--meet { justify-content: center; align-items: stretch; text-align: left; }
.meet { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.meet__heading { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.025em; max-width: 18ch; margin: 0.4em 0 0.8em; }
.meet__p { color: var(--dim); line-height: 1.65; max-width: 56ch; margin: 0 0 1em; }
.meet__p i { color: var(--accent-deep); font-style: italic; }
.meet__left { background: rgba(251,250,247,0.88); border: 1px solid rgba(17,17,17,0.08); border-radius: 20px; padding: clamp(28px, 3.5vw, 52px); box-shadow: 0 14px 50px rgba(17,17,17,0.05); }
.meet__attrs { display: flex; flex-direction: column; align-self: start; background: rgba(251,250,247,0.92); border: 1px solid rgba(17,17,17,0.08); border-radius: 20px; padding: clamp(8px, 1.2vw, 16px) clamp(22px, 2.6vw, 34px); box-shadow: 0 14px 50px rgba(17,17,17,0.05); }
/* Cada atributo: ícono en pastilla (consistente con la sección "cancha") + etiqueta mono + valor.
   Filas con separador sutil → se siente editorial, no "ficha técnica". */
.attr { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: clamp(15px, 2vh, 22px) 0; }
.attr:not(:last-child) { border-bottom: 1px solid rgba(17,17,17,0.08); }
.attr__ico { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(30,90,60,0.09); color: var(--accent-deep); flex-shrink: 0; }
.attr__ico svg { width: 23px; height: 23px; display: block; }
.attr__txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.attr__k { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-deep); }
.attr__v { font-family: var(--sans); font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; color: var(--ink); line-height: 1.3; }

/* ════════════ ACTO 4 · EL DESCENSO (cerebro 4 capas, sobre telón oscuro) ════════════ */
.act--descenso { background: transparent; min-height: 360vh; padding: 0; display: block; }
.descenso__sticky {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  padding: clamp(40px, 7vh, 90px) 7vw; color: var(--cream); pointer-events: none;
  /* El contenido del descenso (contador 37 + etiquetas A/U/T/E + eyebrow) solo se ve mientras
     el descenso está ACTIVO (clase puesta por main.js, misma ventana que el telón/cerebro).
     Fuera de esa ventana se atenúa → el contador no se queda encimado con el teléfono entrante. */
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.descenso__sticky.is-active { opacity: 1; }
.descenso__eyebrow { position: absolute; left: 7vw; top: clamp(40px, 7vh, 90px); margin: 0; color: rgba(251,250,247,0.6); }
/* contador grande abajo-izquierda (fuera del centro donde se parte el cerebro) */
.descenso__counter { position: absolute; left: 7vw; bottom: clamp(40px, 8vh, 90px); display: flex; flex-direction: column; }
.descenso__num { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 9vw, 128px); line-height: 0.82; color: var(--accent); }
.descenso__num-label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(251,250,247,0.55); margin-top: 6px; }
/* etiquetas de capa: absolutas a la derecha; la JS pone cada una a la altura de SU rebanada */
.descenso__layers { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.capa { position: absolute; max-width: min(340px, 38vw); display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.capa[data-side="right"] { right: 7vw; text-align: right; align-items: flex-end;   transform: translate(40px, -50%); }
.capa[data-side="left"]  { left: 7vw;  text-align: left;  align-items: flex-start; transform: translate(-40px, -50%); }
.capa.is-on { opacity: 0.45; transform: translate(0, -50%); }
.capa.is-focus { opacity: 1; }
.capa[data-side="right"].is-focus { transform: translate(0, -50%) scale(1.08); transform-origin: right center; }
.capa[data-side="left"].is-focus  { transform: translate(0, -50%) scale(1.08); transform-origin: left center; }
.capa__code { font-family: var(--display); font-size: clamp(44px, 5.2vw, 80px); line-height: 0.9; }
.capa[data-capa="A"] .capa__code { color: var(--layer-a); }
.capa[data-capa="U"] .capa__code { color: var(--layer-u); }
.capa[data-capa="T"] .capa__code { color: var(--layer-t); }
.capa[data-capa="E"] .capa__code { color: var(--layer-e); }
.capa__name { font-family: var(--sans); font-weight: 800; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.02em; line-height: 1.04; }
.capa__meta { font-family: var(--mono); font-size: clamp(12px, 1vw, 15px); letter-spacing: 0.03em; color: rgba(251,250,247,0.62); }
.capa__meta b { color: rgba(251,250,247,0.92); font-weight: 500; }

/* ════════════ ACTO 5 · COACH Q EN ACCIÓN (teléfono) ════════════ */
/* Altura del padre = sticky (100vh) + tramo PEGADO para los 4 escenarios del chat.
   Antes 300vh → el chat se repartía en 300vh (pin de ~200vh) y el teléfono quedaba
   PEGADO y VACÍO demasiado tiempo: parecía que "desaparecía" dejando un hueco negro
   enorme. 220vh = 120vh de tramo pegado (30vh por escenario) → el teléfono se mantiene
   visible mientras corre el chat y, al terminar, funciones (opaca) entra de inmediato.
   El padre es #000 (act--dark): NO hay cola vacía porque el sticky cubre el viewport
   durante todo el pin y la siguiente sección sube pegada al sticply al despegarse. */
.act--jugada { display: block; min-height: 220vh; padding: 0; text-align: left; background: #000; }
.jugada {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  background: #000;                          /* fondo OPACO en el sticky de 100vh:
                                                tapa el viewport completo durante toda la fase
                                                del teléfono → oculta el descenso transparente y
                                                el canvas del cerebro. */
  display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(40px, 5vw, 80px);
  align-content: center; align-items: center; padding: clamp(48px, 8vh, 110px) 6vw;
}
.jugada__heading { font-size: var(--fs-h2); line-height: 1.08; max-width: 16ch; margin: 0.4em 0 1.2em; }
.jugada__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.jstep { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.jstep__n { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.18em; color: var(--accent); padding-top: 3px; }
.jstep p { margin: 0; color: rgba(251,250,247,0.75); line-height: 1.58; font-size: clamp(16px, 1.3vw, 18px); }
.jugada__phone { display: flex; justify-content: center; will-change: transform; perspective: 1500px; }
.phone {
  /* ALTO-driven: el teléfono se mide por su ALTURA (no por su ancho) y se topa a 84vh para que
     NUNCA desborde la sección en ventanas bajas (laptops/ventana corta). Antes era width:min(390,90vw)
     + aspect-ratio → 800px fijos de alto → en pantallas <~950px de alto el cuerpo negro del teléfono
     se salía de la sección sticky y creaba un vacío negro irregular en el empalme con funciones. */
  position: relative; width: auto; height: min(800px, 82vh); aspect-ratio: 390 / 800; max-width: 90vw;
  background: #000; border: 11px solid #1c2329; border-radius: 54px;
  box-shadow: 0 50px 120px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.05);
  overflow: hidden;
}
.phone::before { /* isla dinámica */
  content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 29px; background: #05080b; border-radius: 16px; z-index: 3;
}
/* ── UI del chat (Coach Q) — llena el teléfono ── */
.coach-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  font-family: var(--sans); color: var(--cream); border-radius: 43px;
  background: radial-gradient(ellipse 130% 55% at 50% 0%, rgba(15,184,127,0.10), transparent 70%), linear-gradient(180deg, #06120e 0%, #000 100%);
}
.coach-ui__statusbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px 4px; font-size: 12.5px; font-weight: 600; color: rgba(251,250,247,0.85); }
.coach-ui__sb-right { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.coach-ui__header { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; padding: 8px 18px 12px; border-bottom: 1px solid rgba(251,250,247,0.07); }
.coach-ui__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #0fb87f, #1f5f4a); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #04130d; flex-shrink: 0; }
.coach-ui__title { display: flex; flex-direction: column; line-height: 1.2; }
.coach-ui__name { font-weight: 700; font-size: 15px; }
.coach-ui__status { font-size: 12px; color: rgba(251,250,247,0.55); display: inline-flex; align-items: center; gap: 6px; }
.coach-ui__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(15,184,127,0.8); animation: coachDot 1.6s ease-in-out infinite; }
@keyframes coachDot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.coach-ui__messages { flex: 1; overflow: hidden; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.coach-bubble { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.42; word-wrap: break-word; animation: bubbleIn 0.4s var(--ease) both; flex-shrink: 0; }
.coach-bubble--user { align-self: flex-end; background: linear-gradient(135deg, #0fb87f, #0a9468); color: #04130d; border-bottom-right-radius: 6px; font-weight: 500; }
.coach-bubble--bot { align-self: flex-start; background: rgba(251,250,247,0.07); color: rgba(251,250,247,0.92); border: 1px solid rgba(251,250,247,0.08); border-bottom-left-radius: 6px; }
.coach-bubble--bot b { color: var(--accent); font-weight: 600; }
.coach-bubble--bot i { color: rgba(251,250,247,0.72); }
@keyframes bubbleIn { 0%{opacity:0; transform:translateY(8px) scale(0.96);} 100%{opacity:1; transform:none;} }
.coach-bubble--typing { align-self: flex-start; background: rgba(251,250,247,0.07); border: 1px solid rgba(251,250,247,0.08); padding: 13px 14px; border-radius: 16px 16px 16px 6px; display: inline-flex; gap: 4px; max-width: 56px; }
.coach-bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(251,250,247,0.6); animation: typingDot 1.2s ease-in-out infinite; }
.coach-bubble--typing span:nth-child(2){ animation-delay: 0.18s; }
.coach-bubble--typing span:nth-child(3){ animation-delay: 0.36s; }
@keyframes typingDot { 0%,60%,100%{transform:translateY(0); opacity:0.4;} 30%{transform:translateY(-4px); opacity:1;} }
.coach-ui__input { flex: 0 0 auto; margin: 8px 14px 18px; padding: 10px 6px 10px 16px; background: rgba(251,250,247,0.07); border: 1px solid rgba(251,250,247,0.10); border-radius: 22px; display: flex; align-items: center; gap: 8px; min-height: 46px; }
.coach-ui__input-text { flex: 1; font-size: 14px; color: rgba(251,250,247,0.95); min-height: 18px; }
.coach-ui__input-text:empty::before { content: 'Pregúntale al Coach…'; color: rgba(251,250,247,0.32); }
.coach-ui__input-text.is-typing::after { content: ''; display: inline-block; width: 1.5px; height: 15px; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: caret 0.7s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.coach-ui__send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #04130d; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s ease, box-shadow 0.2s; }
.coach-ui__send.is-active { transform: scale(1.1); box-shadow: 0 0 12px rgba(15,184,127,0.6); }
/* líneas que conectan el PASO activo con el teléfono (no flota) */
.jugada__leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 4; }
.jugada__leaders line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.6; }
.jugada__leaders circle { fill: var(--accent); }
.jstep { transition: opacity 0.4s var(--ease), background 0.4s, border-color 0.4s; padding: 10px 0 10px 18px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; }
.jstep:not(.is-active) { opacity: 0.3; }
.jstep.is-active { opacity: 1; border-left-color: var(--accent); background: rgba(15,184,127,0.07); }
.jstep.is-active .jstep__n { color: var(--accent); text-shadow: 0 0 12px rgba(15,184,127,0.7); }

/* En ventanas BAJAS el contenido de la sección del teléfono (titular + 4 pasos + teléfono) no
   cabía en 100vh → DESBORDABA la sección sticky y el paso 04 cruzaba la costura hacia funciones.
   CAUSA RAÍZ FINAL (4ª/5ª vuelta): los tamaños compactos usaban `vw` (ANCHO). En pantallas
   ANCHAS y bajas (p. ej. 1496×841 widescreen) los clamp llegaban a su MÁXIMO (titular 40px,
   pasos 17px) y NO se compactaban por más baja que estuviera la ventana → desborde. FIX: medir
   con `vh` (la ALTURA, que es la restricción real) → en ventanas bajas SÍ compacta sin importar
   el ancho. Así el contenido entra dentro del 100vh sticky y NO cruza la costura. No afecta
   pantallas altas (>1000px), donde sobra alto. */
/* UMBRAL 1200px (no 1000): muchas WIDESCREEN tienen el alto de ventana >1000px → con el umbral
   viejo NO compactaban y las fuentes salían a TAMAÑO COMPLETO → la columna de pasos se hacía
   altísima (≈866px) y desbordaba el 100vh. Compactando hasta 1200px (cubre casi toda ventana
   real) el contenido entra. Por encima de ~1031px las fuentes base ya caben solas, así que el
   relevo al pasar de 1200px es suave. El TELÉFONO se topa a 70vh (no 76) para dejar holgura
   amplia (antes 12-31px, ahora ~45-90px) — era el elemento que casi tocaba la costura. */
@media (max-height: 1200px) {
  .jugada { padding: clamp(20px, 3.2vh, 50px) 6vw; gap: clamp(24px, 3.5vw, 56px); }
  .jugada__heading { font-size: clamp(24px, 3.8vh, 40px); line-height: 1.12; margin: 0.25em 0 0.7em; }
  .jugada__steps { gap: clamp(10px, 1.6vh, 20px); }
  .jstep { padding: 7px 0 7px 16px; }
  .jstep p { font-size: clamp(13px, 1.75vh, 17px); line-height: 1.42; }
  .phone { height: min(700px, 70vh); }
}
/* Ventanas MUY bajas (<680px): un escalón más de compactado (también por `vh`). */
@media (max-height: 680px) {
  .jugada { padding: clamp(12px, 2vh, 26px) 6vw; gap: clamp(20px, 3vw, 44px); }
  .jugada__heading { font-size: clamp(20px, 3.4vh, 28px); margin: 0.2em 0 0.5em; }
  .jugada__steps { gap: clamp(8px, 1.2vh, 13px); }
  .jstep p { font-size: clamp(12px, 1.6vh, 14px); line-height: 1.36; }
  .phone { height: min(520px, 64vh); }
}

/* ════════════ ACTO 6 · QUÉ HACE (5 verbos) ════════════ */
.act--funciones { justify-content: center; text-align: left; }
.func__intro { max-width: 760px; margin-bottom: clamp(40px, 7vh, 80px); }
.func__heading { font-size: var(--fs-h2); line-height: 1.06; max-width: 16ch; margin: 0.4em 0 0; }
.func__rows { display: grid; gap: 0; border-top: 1px solid rgba(17,17,17,0.12); }
.frow { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 4vh, 40px) 0; border-bottom: 1px solid rgba(17,17,17,0.12); align-items: start; }
.frow__n { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.18em; color: var(--accent-deep); padding-top: 8px; }
.frow h3 { font-size: clamp(28px, 3.4vw, 46px); margin: 0 0 12px; letter-spacing: -0.02em; }
.frow p { margin: 0; color: var(--dim); line-height: 1.6; max-width: 60ch; }

/* ════════════ ACTO 7 · TU RITMO (2 columnas, oscuro) ════════════ */
.act--ritmo { justify-content: center; text-align: left; }
.ritmo__intro { max-width: 760px; margin-bottom: clamp(40px, 7vh, 80px); }
.ritmo__heading { font-size: var(--fs-h2); line-height: 1.08; max-width: 16ch; margin: 0.4em 0 0.6em; }
.ritmo__sub { color: rgba(251,250,247,0.65); line-height: 1.6; max-width: 60ch; }
.ritmo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.ritmo__col h3 { font-size: clamp(20px, 2.6vw, 28px); margin: 0 0 18px; }
.ritmo__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ritmo__col li { color: rgba(251,250,247,0.78); line-height: 1.5; padding-left: 20px; position: relative; }
.ritmo__col li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ritmo__statement { font-family: var(--serif-accent); font-style: italic; font-size: clamp(20px, 2.8vw, 34px); color: var(--cream); margin: clamp(48px, 8vh, 96px) 0 0; max-width: 28ch; line-height: 1.25; }

/* ════════════ ACTO 8 · SALUD FINANCIERA (4 cards) ════════════ */
.act--finanzas { justify-content: center; text-align: left; }
.fin__intro { max-width: 760px; margin-bottom: clamp(40px, 7vh, 72px); }
.fin__heading { font-size: var(--fs-h2); line-height: 1.06; max-width: 16ch; margin: 0.4em 0 0.6em; }
.fin__sub { color: var(--dim); line-height: 1.6; max-width: 58ch; }
.fin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.fincard { background: rgba(255,255,255,0.55); border: 1px solid rgba(17,17,17,0.08); border-radius: 18px; padding: clamp(24px, 3vw, 34px); }
.fincard h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; letter-spacing: -0.015em; }
.fincard p { margin: 0; color: var(--dim); line-height: 1.55; }

/* ════════════ ACTO 9 · VERSUS (tabla) ════════════ */
.act--versus { justify-content: center; text-align: center; }
.versus__intro { max-width: 900px; margin: 0 auto clamp(40px, 6vh, 72px); }
.versus__heading { font-size: var(--fs-h2); line-height: 1.05; max-width: 22ch; margin: 0.4em auto 0; }
.versus__heading .accent { color: var(--accent-deep); }
/* Tachado: la fuente del titular coloca su strikeout NATIVO demasiado alto. Para centrarlo de
   verdad en el texto: .strike como inline-block (caja bien definida) + línea absoluta calibrada
   a la mitad visual de "no sabe" (`top` afinado por captura). */
.versus__heading .strike { display: inline-block; position: relative; text-decoration: none; white-space: nowrap; }
.versus__heading .strike::after { content: ''; position: absolute; left: -0.03em; right: -0.03em; top: 60%; height: 4px; background: var(--accent); border-radius: 2px; transform: translateY(-50%); pointer-events: none; }
.vtable { width: 100%; max-width: 980px; margin: 0 auto; border-collapse: collapse; }
.vtable th, .vtable td { text-align: left; padding: clamp(16px, 2.4vh, 26px) 16px; border-bottom: 1px solid rgba(17,17,17,0.1); }
.vtable thead th { font-family: var(--mono); font-size: clamp(12px, 1.2vw, 14px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.vtable thead th:nth-child(2) { color: var(--accent-deep); }
/* Encabezados "Coach Q" / "Chatbot genérico" CENTRADOS sobre sus columnas de palomitas
   (las celdas ✓/✕ son text-align:center width 19%; los th venían a la izquierda → descuadre). */
.vtable thead th:nth-child(2), .vtable thead th:nth-child(3) { text-align: center; width: 19%; }
.vtable td:first-child { font-size: clamp(17px, 2vw, 24px); }
.vtable td.yes, .vtable td.no { text-align: center; font-size: clamp(22px, 2.4vw, 30px); width: 19%; }
.vtable td.yes { color: var(--accent-deep); }
.vtable td.no { color: rgba(17,17,17,0.28); }
.versus__note { color: var(--dim); line-height: 1.6; max-width: 64ch; margin: clamp(28px, 4vh, 44px) auto 0; }

/* ════════════ ACTO 10 · PRIVACIDAD (4 cards, oscuro) ════════════ */
.act--privacidad { justify-content: center; text-align: left; }
.priv__intro { max-width: 760px; margin-bottom: clamp(40px, 7vh, 72px); }
.priv__heading { font-size: var(--fs-h2); line-height: 1.06; max-width: 16ch; margin: 0.4em 0 0.6em; }
.priv__sub { color: rgba(251,250,247,0.65); line-height: 1.6; max-width: 58ch; }
.priv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.privcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: clamp(24px, 3vw, 34px); }
.privcard__n { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.18em; color: var(--accent); }
.privcard h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 12px 0 12px; letter-spacing: -0.015em; }
.privcard p { margin: 0; color: rgba(251,250,247,0.7); line-height: 1.55; }

/* ════════════ ACTO 11 · NIVELES (3 planes) ════════════ */
.act--niveles { justify-content: center; text-align: left; }
.niveles__intro { max-width: 760px; margin-bottom: clamp(40px, 7vh, 72px); }
.niveles__heading { font-size: var(--fs-h2); line-height: 1.06; max-width: 16ch; margin: 0.4em 0 0.6em; }
.niveles__sub { color: var(--dim); line-height: 1.6; max-width: 60ch; }
.niveles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.plan { background: rgba(255,255,255,0.6); border: 1px solid rgba(17,17,17,0.1); border-radius: 20px; padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; }
.plan--featured { background: #000; color: var(--cream); border-color: #000; }
.plan--featured .plan__pitch { color: rgba(251,250,247,0.7); }
.plan--featured .plan__feats li { color: rgba(251,250,247,0.85); }
.plan--featured .plan__name i, .plan--featured .plan__engine { color: var(--accent); }
.plan__tag { font-family: var(--mono); font-size: clamp(15px, 1.5vw, 18px); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--accent-deep); }
.plan--featured .plan__tag { color: var(--accent); }
.plan__name { font-size: clamp(28px, 3.2vw, 42px); margin: 14px 0 12px; letter-spacing: -0.02em; }
.plan__pitch { color: var(--dim); line-height: 1.5; margin: 0 0 20px; }
.plan__feats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__feats li { padding-left: 20px; position: relative; line-height: 1.45; font-size: 15px; }
.plan__feats li::before { content: "→"; position: absolute; left: 0; color: var(--accent-deep); }
.plan--featured .plan__feats li::before { color: var(--accent); }
.plan__engine { display: flex; align-items: center; gap: 14px; padding-top: 16px; margin-top: auto; border-top: 1px solid rgba(17,17,17,0.1); }
.plan--featured .plan__engine { border-top-color: rgba(255,255,255,0.14); }
.plan__engine-logo { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.plan__engine-logo img, .plan__engine-logo picture img { width: 100%; height: 100%; object-fit: contain; }
.plan__engine-logo img[src*="ChatGPT"] { transform: scale(1.18); }   /* el SVG trae padding interno */
.plan__engine-text { display: flex; flex-direction: column; gap: 1px; }
.plan__engine-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.plan__engine-name { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--accent-deep); }
.plan--featured .plan__engine-name { color: var(--accent); }
.plan--featured .plan__engine-label { color: rgba(251,250,247,0.55); }
/* Botón "i" del motor + tooltip (hover en desktop · tap en móvil vía :focus-within) */
.plan__infowrap { position: relative; margin-left: auto; display: inline-flex; align-items: center; }
.plan__info { width: 22px; height: 22px; padding: 0; border: none; background: none; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.plan__info svg { width: 18px; height: 18px; }
.plan__info:hover, .plan__info:focus-visible { color: var(--accent-deep); background: rgba(15,184,127,0.12); outline: none; }
.plan--featured .plan__info { color: rgba(251,250,247,0.6); }
.plan--featured .plan__info:hover, .plan--featured .plan__info:focus-visible { color: var(--accent); background: rgba(15,184,127,0.18); }
.plan__tip { position: absolute; bottom: calc(100% + 12px); right: -6px; width: 250px; max-width: 72vw; background: var(--ink); color: rgba(251,250,247,0.92); font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(251,250,247,0.14); box-shadow: 0 16px 38px rgba(0,0,0,0.28); opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 30; pointer-events: none; }
.plan__tip b { color: var(--accent); font-weight: 600; }
.plan__tip::after { content: ''; position: absolute; top: 100%; right: 12px; border: 7px solid transparent; border-top-color: var(--ink); }
.plan__infowrap:hover .plan__tip, .plan__infowrap:focus-within .plan__tip { opacity: 1; visibility: visible; transform: translateY(0); }
.niveles__cta { text-align: center; margin-top: clamp(48px, 8vh, 90px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.niveles__cta p { font-size: clamp(17px, 2vw, 22px); max-width: 30ch; margin: 0; }
.niveles__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--dim); }
.btn { display: inline-block; background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 12px; text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ════════════ ACTO 12 · CIERRE / FOOTER ════════════ */
.act--cierre { justify-content: center; text-align: center; min-height: 80vh; }
.cierre { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cierre__tagline { font-size: var(--fs-h1); line-height: 1.05; max-width: 18ch; }
/* acento del tagline = Fraunces itálica teal (mismo tratamiento que el hero/headlines) */
.cierre__tagline i, .cierre__tagline em { font-family: var(--serif-accent); font-style: italic; font-weight: 500; color: var(--accent-deep); }
.cierre__sub { color: var(--dim); line-height: 1.6; max-width: 52ch; margin: 0; }
/* Crédito legal: antes en Geist Mono (monoespaciada, desentonaba). Ahora en la sans del sitio
   (Host Grotesk), pequeña y discreta, consistente con el resto de la tipografía. */
.cierre__legal { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.01em; color: var(--dim); margin-top: clamp(40px, 8vh, 80px); }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 860px) {
  .meet, .jugada, .fin__grid, .priv__grid, .ritmo__cols { grid-template-columns: 1fr; }
  .niveles__grid { grid-template-columns: 1fr; }
  .descenso__sticky { grid-template-columns: 1fr; }
  .descenso__layers { text-align: left; }

  /* ── DESCENSO (móvil) ──────────────────────────────────────────────────────────────────
     En móvil (vertical) el cerebro ocupa todo el ancho, así que las etiquetas A/U/T/E que en
     desktop van a los lados quedaban ENCIMA del cerebro e ilegibles. No se reubican (eso sería
     reestructurar): se les pone un fondo oscuro translúcido + sombra de texto → chips legibles
     sobre el cerebro. Se compactan un poco y se sube la opacidad de las "ya vistas" para que se
     lean todas. */
  .capa { max-width: min(60vw, 250px); padding: 7px 11px; border-radius: 11px;
          background: rgba(6, 11, 9, 0.62); gap: 2px; }
  .capa.is-on { opacity: 0.82; }
  .capa__code { font-size: clamp(28px, 8.5vw, 44px); text-shadow: 0 2px 12px rgba(0,0,0,0.85); }
  .capa__name { font-size: clamp(16px, 4.4vw, 22px); text-shadow: 0 2px 10px rgba(0,0,0,0.92); }
  .capa__meta { font-size: clamp(10.5px, 2.8vw, 13px); text-shadow: 0 1px 8px rgba(0,0,0,0.95); }

  /* ── JUGADA / teléfono (móvil) ─────────────────────────────────────────────────────────
     En desktop la sección es STICKY 100vh con 2 columnas (pasos | teléfono) que caben. Al
     apilarlas en móvil NO caben en 100vh → el teléfono desbordaba ENCIMA de la sección
     "funciones" y el paso 01 se cortaba arriba. Solución móvil: la sección deja de ser sticky
     (flujo natural), se apilan titular + 4 pasos (todos legibles) + teléfono con el chat fijo
     (sin scrub, sin giro 3D — guardado también en JS). Cero desborde. Desktop intacto. */
  .act--jugada { min-height: 0; }
  .jugada { position: static; height: auto; align-content: initial;
            padding: clamp(54px, 9vh, 80px) 7vw; gap: clamp(30px, 6vh, 46px); }
  .jugada__phone { perspective: none; }
  .phone { width: min(330px, 76vw); height: auto; max-width: none; transform: none !important; margin: 8px auto 0; }
  .jstep { opacity: 1 !important; }                          /* todos legibles (sin scrub) */
  .jstep.is-active { background: transparent; border-left-color: transparent; }  /* sin caja activa */
  .jstep.is-active .jstep__n { color: var(--accent); text-shadow: none; }
  .jugada__leaders { display: none; }                        /* líneas conectoras: solo desktop */
}

/* ═══════════════ TEXTO JUSTIFICADO + DISPOSICIÓN CENTRADA (anotación Gabriel · 2026-06-17) ═══════════════
   Pedido: justificar el texto de TODA la página (lectura tipo libro, bordes parejos a ambos lados) y que
   la disposición quede SIEMPRE centrada en X e Y, con foco en una buena lectura.
   Nota de diseño: las secciones (.act flex center) y los contenedores (.cancha/.meet/.fin… con
   width:min(...) + margin:0 auto) YA están centrados en X e Y. Lo que faltaba era:
     (1) JUSTIFICAR el cuerpo de texto (iba a la izquierda, en bandera), y
     (2) CENTRAR los titulares e intros (iban pegados a la izquierda).
   `hyphens:auto` (lang="es" presente) corta palabras al justificar → evita los "ríos"/huecos feos y
   conserva la buena lectura. Bloque al final del archivo → gana por orden de cascada. No reestructura
   ninguna sección (las columnas de "conoce"/"jugada" se quedan igual; solo cambia el alineado del texto). */

/* ── (1) CUERPO DE TEXTO JUSTIFICADO — párrafos de lectura, bordes parejos a izquierda y derecha ── */
.cancha__desc, .meet__p, .jstep p, .frow p, .fincard p, .privcard p, .plan__pitch,
.versus__note, .ritmo__sub, .fin__sub, .priv__sub, .niveles__sub {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
          hyphens: auto;
}

/* ── (2) DISPOSICIÓN CENTRADA EN X — titulares e intros al centro (iban pegados a la izquierda) ──
   El sub/intro queda justificado pero su COLUMNA centrada (margin:auto) → texto parejo, bloque al medio. */
.cancha__intro, .func__intro, .ritmo__intro, .fin__intro, .priv__intro, .niveles__intro {
  margin-left: auto; margin-right: auto; text-align: center;
}
.cancha__heading, .func__heading, .ritmo__heading, .fin__heading, .priv__heading, .niveles__heading {
  margin-left: auto; margin-right: auto;
}
.ritmo__sub, .fin__sub, .priv__sub, .niveles__sub {            /* justificados, pero su columna centrada */
  margin-left: auto; margin-right: auto;
}
/* Frases-statement (una línea fuerte, Fraunces itálica) → centradas, no justificadas (queda mejor en display). */
.cancha__statement, .ritmo__statement {
  margin-left: auto; margin-right: auto; text-align: center;
}

/* ── (3) HERO — centrado horizontal. Se mantiene en el tercio inferior (justify-content:flex-end ya
   puesto) para que el titular se lea SOBRE el cerebro 3D; centrarlo del todo en Y lo pondría encima
   del cerebro y se perdería la lectura. ── */
#act-hero { align-items: center; text-align: center; }
.hero-h { margin-left: auto; margin-right: auto; }


/* ══ AVISO SUTIL DE SCROLL en el hero (2026-07-01) ══
   Aparece suave de abajo hacia arriba cuando TERMINA el intro del cerebro
   (loader.js agrega html.is-intro-done al completar su timeline) y se
   desvanece al primer scroll (html.is-hint-gone). */
#act-hero { position: relative; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px;
  transform: translate(-50%, 14px);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  opacity: 0; pointer-events: none;
  transition: opacity 1s ease, transform 1s cubic-bezier(.22, .61, .36, 1);
}
.scroll-hint__txt {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink); opacity: 0.42;
  /* compensa el tracking del último carácter para centrado óptico */
  margin-right: -0.34em;
}
.scroll-hint__line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent-deep), rgba(31, 95, 74, 0));
  transform-origin: top;
  animation: hintDrop 2.4s ease-in-out infinite;
}
html.is-intro-done .scroll-hint { opacity: 1; transform: translate(-50%, 0); }
html.is-hint-gone .scroll-hint { opacity: 0 !important; transition: opacity 0.45s ease; }
@keyframes hintDrop {
  0%   { transform: scaleY(0);   opacity: 0; }
  30%  { transform: scaleY(1);   opacity: 0.85; }
  70%  { transform: scaleY(1);   opacity: 0.25; }
  100% { transform: scaleY(1);   opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__line { animation: none; opacity: 0.5; }
  .scroll-hint, html.is-hint-gone .scroll-hint { transition: opacity 0.3s ease; }
}
