/* ============================================================
   GYMKAI — Web Oficial · Stylesheet
   Paleta oficial: #000 / #111 / #6D28D2 / #944AFF / #00FBFF
   Tipografía: Jost 400/500/800 (Google Fonts)
   ============================================================ */

/* Jost auto-hospedada (sin Google Fonts: carga más rápida y sin terceros) */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-400.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-500.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/jost-800.woff2') format('woff2'); }

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #000000;
  --surface:    #111111;
  --surface-2:  #0D0D0D;
  --surface-3:  #1A1A1A;
  --purple-dark:#3E0D85;
  --purple:     #6D28D2;
  --purple-mid: #8C5DD2;
  --purple-hi:  #944AFF;
  --cyan:       #00FBFF;
  --white:      #FFFFFF;
  --grey:       #555555;
  --grey-2:     #333333;
  --font:       'Jost', sans-serif;

  /* Curvas de movimiento: la misma "física" en toda la web */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);     /* expo-out: arranque decidido, llegada suave */
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);    /* cámara: entra y sale sin tirones */
  --dur-reveal: 1.1s;
}

/* Transición nativa entre páginas (index ↔ legales) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-io); }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

:focus-visible {
  outline: 2px solid var(--purple-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--purple); color: var(--white); }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--purple);
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s, backdrop-filter .4s, transform .5s var(--ease-out);
}

.nav.is-solid {
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(109,40,210,0.2);
}

.nav.is-hidden { transform: translateY(-100%); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.nav-link {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 8px 0;
  transition: color .2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--purple-hi);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}

.nav-logo { display: inline-flex; align-items: center; }

.nav-logo img {
  display: block;
  height: 26px;
  width: auto;
  transition: opacity .2s;
}

.nav-logo:hover img { opacity: .85; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--purple);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  min-height: 40px;
  border-radius: 7px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--purple-hi);
  box-shadow: 0 0 20px rgba(148,74,255,0.4);
}

/* ── HERO (video) ─────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000 url('../images/gymkai-coach-gimnasio.webp') 70% 40% / cover no-repeat;
}

@media (max-width: 700px) {
  .hero-media { background-image: url('../images/gymkai-coach-gimnasio-movil.webp'); background-position: 50% 18%; }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  transform-origin: 68% 45%;
}

/* Sombra de composición: negro a la izquierda para el texto, fundido inferior hacia la stats bar */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 28%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 72%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 70%, #000 100%),
    radial-gradient(ellipse 60% 70% at 72% 55%, rgba(109,40,210,0.10) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,74,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,74,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 40%, transparent 65%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 40%, transparent 65%);
  pointer-events: none;
}

/* Línea de escaneo: un solo barrido lento, como un HUD calibrando */
.hero-scan {
  position: absolute;
  left: 0; right: 0;
  top: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,74,255,0.55) 30%, rgba(0,251,255,0.35) 50%, rgba(148,74,255,0.55) 70%, transparent);
  box-shadow: 0 0 18px rgba(148,74,255,0.45);
  opacity: 0;
  animation: scan 9s var(--ease-io) 1.6s infinite;
}

@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: .8; }
  60%  { opacity: .5; }
  75%  { transform: translateY(100dvh); opacity: 0; }
  100% { transform: translateY(100dvh); opacity: 0; }
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(96px, 15vh, 140px) 24px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--purple-hi);
  text-transform: uppercase;
}

.hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero-title .line > * { display: inline-block; }

.hero-title em {
  font-style: normal;
  color: var(--purple-hi);
  text-shadow: 0 0 40px rgba(148,74,255,0.35);
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 17px 32px;
  min-height: 52px;
  border-radius: 8px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.2s, transform 0.4s var(--ease-out);
  animation: glow-pulse 2.6s ease-in-out infinite;
  text-decoration: none;
}

/* Reflejo que cruza el botón al pasar el cursor */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn-primary:hover {
  background: var(--purple-hi);
  animation: none;
  box-shadow: 0 0 30px rgba(148,74,255,0.5);
  transform: translateY(-1px);
}

.btn-primary:hover::before { transform: translateX(120%); }

.btn-primary::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover::after { transform: translateX(3px); }

@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(109,40,210,0.4), 0 0 20px rgba(109,40,210,0.15); }
  50%      { box-shadow: 0 0 24px rgba(109,40,210,0.8), 0 0 48px rgba(109,40,210,0.3); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: border-color .25s, color .25s, background .25s;
}

.btn-ghost:hover {
  border-color: var(--purple-hi);
  color: var(--white);
  background: rgba(109,40,210,0.15);
}

.hero-note {
  text-wrap: balance;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* HUD inferior del hero */
.hero-hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
}

.hud-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.hud-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hud-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hud-ai { color: rgba(255,255,255,0.3); }

.hud-scroll { display: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hud-scroll-label {
  opacity: calc(1 - var(--a, 0));
  transition: opacity .2s;
}

.hud-scroll-bar {
  position: relative;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.hud-scroll-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-hi), var(--cyan));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.hud-toggle {
  margin-left: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7);
  transition: border-color .2s, color .2s;
}

.hud-toggle:hover { border-color: var(--purple-hi); color: var(--white); }
.hud-toggle svg { width: 10px; height: 10px; fill: currentColor; }
.hud-toggle .i-play { display: none; }
.hud-toggle[aria-pressed="true"] .i-play { display: block; }
.hud-toggle[aria-pressed="true"] .i-pause { display: none; }

/* Mientras el video carga, la barra respira */
.hero.is-loading .hud-scroll-bar i {
  transform: scaleX(.3);
  animation: loading-bar 1.4s var(--ease-io) infinite;
}

@keyframes loading-bar {
  from { transform: translateX(-100%) scaleX(.3); }
  to   { transform: translateX(340%) scaleX(.3); }
}

/* ── HERO · SCROLL CINEMATOGRÁFICO ────────────────────────
   La "pista" es más alta que la pantalla; el hero se queda
   pegado arriba y el recorrido del scroll mueve la cámara.
   JS publica --p (giro 0→1), --a (salida del texto) y --b (frase final). */
.hero-track { position: relative; }

.hero-track.is-scrub { height: 220vh; }

.hero-track.is-scrub .hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
}

.is-scrub .hero-media {
  transform: scale(calc(1.06 - var(--p, 0) * 0.06));
  transform-origin: 65% 45%;
}

.is-scrub .hero-shade { opacity: calc(1 - var(--a, 0) * 0.5); }
.is-scrub .hero-grid  { opacity: calc(1 - var(--a, 0)); }

.is-scrub .hero-inner {
  opacity: calc(1 - var(--a, 0));
  transform: translate3d(0, calc(var(--a, 0) * -56px), 0);
  filter: blur(calc(var(--a, 0) * 6px));
}

.hero.is-past .hero-inner { pointer-events: none; visibility: hidden; }

.hero-outro {
  position: absolute;
  left: max(24px, calc((100vw - 1100px) / 2 + 24px));
  bottom: 20%;
  z-index: 3;
  max-width: 520px;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  opacity: var(--b, 0);
  transform: translate3d(0, calc((1 - var(--b, 0)) * 32px), 0);
  pointer-events: none;
}

.hero-outro em { font-style: normal; color: var(--purple-hi); }

.hero-outro-tag {
  display: block;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-hi);
}


/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-top: 1px solid rgba(109,40,210,0.15);
  border-bottom: 1px solid rgba(109,40,210,0.15);
  padding: 40px 0;
}

/* Barrido de luz que cruza la barra cuando entra en pantalla */
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(148,74,255,0.10), transparent);
  transform: translateX(0);
  pointer-events: none;
}

.stats-bar.is-live::before { animation: stats-sweep 1.6s var(--ease-io) .2s 1 both; }

@keyframes stats-sweep { to { transform: translateX(560%); } }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(109,40,210,0.35), transparent);
}

/* Anillo tipo timer de la app */
.stat-ring {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 3;
}

.ring-fill,
.ring-seg {
  fill: none;
  stroke: var(--purple-hi);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(148,74,255,0.7));
}

.ring-fill { stroke-dasharray: var(--v, 0) 100; }

.is-drain .ring-fill { stroke-linecap: butt; stroke: var(--cyan); filter: drop-shadow(0 0 5px rgba(0,251,255,0.6)); }

.ring-seg {
  stroke-linecap: butt;
  stroke-dasharray: 30.33 69.67;
  stroke-dashoffset: calc(var(--o) * -33.33 - 1.5);
  opacity: .15;
  filter: none;
  transition: opacity .35s var(--ease-out), filter .35s;
}

.ring-seg.on { opacity: 1; filter: drop-shadow(0 0 5px rgba(148,74,255,0.7)); }

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}

.stat-value small {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--purple-hi);
  margin-left: 6px;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── SECTION BASE ─────────────────────────────────────────── */
section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .tag {
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FEATURES ────────────────────────────────────────────── */
.features {
  background: var(--black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--surface-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(148,74,255,0.10), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.feature-card:hover {
  background: #101010;
}

.feature-card:hover::after { opacity: 1; }

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-dark);
  border: 1px solid rgba(109,40,210,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--purple-hi);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-badge {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 6px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,251,255,0.35);
  border-radius: 4px;
  padding: 2px 6px;
}

.feature-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ── ARCHETYPES ──────────────────────────────────────────── */
.archetypes {
  background: var(--surface-2);
}

.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.archetype-card {
  background: var(--black);
  border: 1px solid rgba(109,40,210,0.25);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow .5s;
}

.archetype-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(109,40,210,0.45);
}

.archetype-img-wrap {
  position: relative;
  background: var(--surface-2);
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.archetype-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease-out), filter .6s;
}

.archetype-card:hover .archetype-img-wrap img { transform: scale(1.04); }

.archetype-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.archetype-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--purple);
  text-transform: uppercase;
}

.archetype-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.archetype-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

.archetype-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(109,40,210,0.15);
  border: 1px solid rgba(109,40,210,0.3);
  color: rgba(255,255,255,0.6);
}

/* ── FLOW (cómo funciona) ────────────────────────────────── */
.flow {
  background: var(--black);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.flow-step {
  background: var(--surface-2);
  padding: 40px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 36px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  z-index: 2;
}

.flow-n {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--purple);
  text-transform: uppercase;
}

.flow-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.flow-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

/* ── MODEL (free/pro) ────────────────────────────────────── */
.model {
  background: var(--surface-2);
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.model-card {
  background: var(--black);
  border: 1px solid rgba(109,40,210,0.2);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-card.pro {
  border-color: var(--purple);
  background: linear-gradient(160deg, #0A0014, var(--black));
  box-shadow: 0 0 40px rgba(109,40,210,0.15);
}

.model-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--purple);
  color: var(--white);
  align-self: flex-start;
  margin-bottom: 8px;
}

.model-promo {
  align-self: flex-start;
  margin: -4px 0 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,251,255,0.35);
  border-radius: 4px;
  padding: 3px 8px;
}

.model-badge.free {
  background: transparent;
  border: 1px solid var(--grey-2);
  color: var(--grey);
}

.model-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.model-price {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.model-price strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--purple-hi);
}

.model-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.model-feature .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(109,40,210,0.25);
  border: 1px solid rgba(109,40,210,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.model-card.pro .model-feature .check {
  background: var(--purple);
  border-color: var(--purple);
}

.model-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(109,40,210,0.2);
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

.check-svg {
  width: 8px;
  height: 8px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-section {
  background: var(--black);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(109,40,210,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.cta-title em {
  font-style: normal;
  color: var(--purple-hi);
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
}

.cta-legal {
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(255,255,255,0.35);
}

.cta-legal a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-decoration-color: rgba(148,74,255,0.6);
  text-underline-offset: 3px;
}

.cta-legal a:hover { color: var(--purple-hi); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--surface-2);
  border-top: 1px solid rgba(109,40,210,0.15);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

img.footer-logo {
  display: block;
  align-self: flex-start;
  height: 28px;
  width: auto;
}

.footer-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-link:hover,
.footer-link[aria-current="page"] {
  color: var(--purple-hi);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

.footer-dev {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── COACH VIRTUAL ───────────────────────────────────────── */
.coach {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 120px 0;
}

.coach-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 60% at 74% 50%, rgba(109,40,210,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 90% 90%, rgba(0,251,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.coach-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,74,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,74,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 40% 55% at 74% 50%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 40% 55% at 74% 50%, #000, transparent 75%);
}

.coach-statement {
  position: absolute;
  bottom: calc(95% + 10px);
  right: 14%;
  z-index: 2;
  margin: 0;
  text-align: right;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  pointer-events: none;
}

.coach-statement .w {
  color: rgba(255,255,255,0.1);
  transition: color .6s var(--ease-out), text-shadow .6s var(--ease-out);
}

.coach-statement .w.on { color: var(--white); }

.coach-statement .w.em.on {
  color: var(--purple-hi);
  text-shadow: 0 0 40px rgba(148,74,255,0.35);
}

.coach-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.coach-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.coach-title { text-align: left; }
.coach-title em { font-style: normal; color: var(--purple-hi); }

.coach-lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 480px;
}

.coach-steps {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.coach-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(109,40,210,0.18);
  transition: background .3s;
}

.coach-step:last-child { border-bottom: 1px solid rgba(109,40,210,0.18); }

.coach-step-n {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--purple);
  padding-top: 3px;
  transition: color .3s;
}

.coach-step:hover .coach-step-n { color: var(--purple-hi); }

.coach-step-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.coach-step-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-top: 4px;
}

.inline-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,251,255,0.35);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  vertical-align: 1px;
}

.coach-disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.38);
  max-width: 460px;
}

/* Escenario: capas con profundidad, como una pantalla de selección de personaje */
.coach-stage {
  --px: 0;
  --py: 0;
  position: relative;
  height: 640px;
  display: grid;
  place-items: center;
  perspective: 1200px;
  user-select: none;
}

.coach-stage [data-depth] {
  transform: translate3d(calc(var(--px) * var(--depth, 0) * 16px), calc(var(--py) * var(--depth, 0) * 10px), 0);
  transition: transform .9s var(--ease-out);
}

.coach-word {
  position: absolute;
  top: 6%;
  left: 50%;
  margin-left: -0.5em;
  width: 1em;
  display: flex;
  justify-content: center;
  font-size: clamp(9rem, 19vw, 16rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148,74,255,0.28);
  background: linear-gradient(180deg, rgba(109,40,210,0.28) 0%, rgba(109,40,210,0) 75%);
  -webkit-background-clip: text;
          background-clip: text;
  white-space: nowrap;
  pointer-events: none;
}

.coach-orbit {
  position: absolute;
  bottom: -196px;
  left: 50%;
  width: 460px;
  height: 460px;
  margin-left: -230px;
  pointer-events: none;
}

.coach-orbit::before,
.coach-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(148,74,255,0.45);
  transform: rotateX(76deg);
  animation: orbit 38s linear infinite;
}

.coach-orbit::after {
  inset: 60px;
  border: 1px solid rgba(0,251,255,0.18);
  animation-duration: 22s;
  animation-direction: reverse;
}

@keyframes orbit {
  from { transform: rotateX(76deg) rotateZ(0deg); }
  to   { transform: rotateX(76deg) rotateZ(360deg); }
}

.coach-floor {
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 300px;
  height: 60px;
  margin-left: -150px;
  background: radial-gradient(ellipse, rgba(148,74,255,0.55) 0%, rgba(109,40,210,0.15) 45%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.coach-frame {
  position: absolute;
  inset: 5% 14% 3%;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--purple-hi);
  opacity: .8;
}
.corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.coach-img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  margin: 0 auto;
  height: 86%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(148,74,255,0.6))
    drop-shadow(0 18px 40px rgba(109,40,210,0.35));
  animation: breathe 6s var(--ease-io) infinite;
}

@keyframes breathe {
  0%,100% { translate: 0 0; }
  50%     { translate: 0 -4px; }
}

.coach-scan {
  position: absolute;
  inset: 5% 14% 3%;
  overflow: hidden;
  pointer-events: none;
}

.coach-scan::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  top: -40%;
  background: linear-gradient(180deg, transparent, rgba(148,74,255,0.10) 85%, rgba(148,74,255,0.5) 100%);
  animation: coach-scan 7s var(--ease-io) infinite;
}

@keyframes coach-scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  70%  { transform: translateY(350%); opacity: .6; }
  80%, 100% { transform: translateY(350%); opacity: 0; }
}

/* Chips HUD: datos reales del flujo (descanso, calificación, series) */
.chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(13,13,13,0.72);
  border: 1px solid rgba(148,74,255,0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.8);
}

.chip-k {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.chip-v {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
}

.chip-v b {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.chip-bar {
  width: 96px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.chip-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-hi));
  transform-origin: left;
  transform: scaleX(var(--p, 1));
  transition: transform 1s linear;
}

.chip-seg { display: flex; gap: 4px; }

.chip-seg i {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}

.chip-seg i.on {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.chip-rest { top: 16%; left: 0; }
.chip-rate { top: 48%; right: -8px; }
.chip-set  { bottom: 14%; left: 6%; }

.coach-id {
  position: absolute;
  right: 14%;
  bottom: calc(3% - 22px);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ── COACH · SECUENCIA CIBERNÉTICA ──────────────────────
   Al entrar en pantalla el escenario "arranca": la coach se
   materializa como holograma, el retículo fija su rostro, los
   cables de datos se dibujan hacia su cuerpo y las fichas HUD
   aparecen con glitch. Todo se dispara con .is-live (JS). */
.coach-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.coach-circuit .wire {
  fill: none;
  stroke: rgba(148,74,255,0.75);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.coach-circuit .flow {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 0.07 0.93;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--cyan));
}

.coach-circuit .node { fill: var(--cyan); opacity: 0; }
.coach-circuit .node-start { fill: var(--purple-hi); opacity: 0; }

.coach-circuit .node-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.is-live .coach-circuit .wire {
  animation: wire-draw .9s var(--ease-out) forwards;
  animation-delay: calc(1s + var(--c) * .3s);
}

.is-live .coach-circuit .flow {
  animation: wire-flow 2.6s linear infinite;
  animation-delay: calc(2s + var(--c) * .45s);
}

.is-live .coach-circuit .node,
.is-live .coach-circuit .node-start {
  animation: node-in .4s var(--ease-out) forwards;
  animation-delay: calc(1.7s + var(--c) * .3s);
}

.is-live .coach-circuit .node-start { animation-delay: calc(1s + var(--c) * .3s); }

.is-live .coach-circuit .node-ring {
  animation: node-ping 2.2s var(--ease-out) infinite;
  animation-delay: calc(1.9s + var(--c) * .3s);
}

@keyframes wire-draw { to { stroke-dashoffset: 0; } }
@keyframes wire-flow {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes node-in {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  45%  { opacity: .2; }
  100% { opacity: 1; }
}
@keyframes node-ping {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Retículo que fija el rostro */
.coach-reticle {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.coach-reticle::before,
.coach-reticle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(0,251,255,0.55);
}

.coach-reticle::after {
  inset: 14px;
  border: 1px solid rgba(148,74,255,0.45);
  border-left-color: transparent;
  border-right-color: transparent;
}

.coach-reticle i {
  position: absolute;
  inset: -10px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 50% 0 / 1px 10px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 50% 100% / 1px 10px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 50% / 10px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 50% / 10px 1px no-repeat;
  opacity: .8;
}

.is-live .coach-reticle {
  animation: reticle-lock 1.1s var(--ease-out) .5s forwards;
}

.is-live .coach-reticle::before { animation: spin 14s linear infinite; }
.is-live .coach-reticle::after  { animation: spin 6s linear infinite reverse; }

@keyframes reticle-lock {
  0%   { opacity: 0; transform: scale(1.9) rotate(-45deg); }
  60%  { opacity: 1; transform: scale(.94) rotate(0deg); }
  75%  { opacity: .4; }
  85%  { opacity: 1; }
  100% { opacity: .75; transform: scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Ondas de energía que salen desde el piso */
.coach-pulse {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 220px;
  height: 56px;
  margin-left: -110px;
  pointer-events: none;
}

.coach-pulse::before,
.coach-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,251,255,0.5);
  opacity: 0;
}

.is-live .coach-pulse::before { animation: floor-wave 3.2s var(--ease-out) 1.2s infinite; }
.is-live .coach-pulse::after  { animation: floor-wave 3.2s var(--ease-out) 2.8s infinite; }

@keyframes floor-wave {
  0%   { transform: scale(.3); opacity: .8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Texto de arranque */
.coach-boot {
  position: absolute;
  top: calc(5% - 26px);
  left: 14%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0;
}

.coach-boot-txt {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}

.is-live .coach-boot { opacity: 1; transition: opacity .3s .2s; }
.is-live .coach-boot-txt { animation: type-in 1s steps(14) .4s forwards; }

@keyframes type-in { to { clip-path: inset(0 0 0 0); } }

/* Estados de entrada (solo con JS) */
.js .coach-stage .corner { opacity: 0; transform: scale(3); }
.js .coach-stage .corner.tl { transform-origin: 0 0; }
.js .coach-stage .corner.tr { transform-origin: 100% 0; }
.js .coach-stage .corner.bl { transform-origin: 0 100%; }
.js .coach-stage .corner.br { transform-origin: 100% 100%; }

.js .coach-stage.is-live .corner {
  opacity: .8;
  transform: none;
  transition: opacity .6s, transform .8s var(--ease-out);
}

.js .coach-stage .chip { opacity: 0; }

.js .coach-stage.is-live .chip {
  animation: chip-in .9s var(--ease-out) both;
  animation-delay: calc(1.3s + var(--c) * .3s);
}

@keyframes chip-in {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); }
  20%  { opacity: 1; }
  30%  { opacity: .25; }
  42%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

.js .coach-stage .coach-img { opacity: 0; }

.js .coach-stage.is-live .coach-img {
  animation:
    holo-in 1.1s steps(1, end) .15s forwards,
    breathe 6s var(--ease-io) 1.3s infinite;
}

@keyframes holo-in {
  0%   { opacity: 0; clip-path: inset(0 0 100% 0); }
  12%  { opacity: 1; clip-path: inset(8% 0 62% 0); }
  24%  { opacity: .6; clip-path: inset(40% 0 30% 0); }
  36%  { opacity: 1; clip-path: inset(0 0 45% 0); }
  48%  { opacity: .3; clip-path: inset(0 0 20% 0); }
  60%  { opacity: 1; clip-path: inset(0 0 8% 0); }
  72%  { opacity: .7; clip-path: inset(0); }
  100% { opacity: 1; clip-path: inset(0); }
}

/* ── MOTION SYSTEM ───────────────────────────────────────── */
/* 1 · Entrada del hero: la cámara hace "dolly-in" y el texto sube desde su máscara */
.js .hero-video {
  opacity: 0;
  scale: 1.12;
}

.js .is-loaded .hero-video {
  opacity: 1;
  scale: 1;
  transition: opacity 1.4s var(--ease-io), scale 3.2s var(--ease-io);
}

.js .intro {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.js .hero-title .intro {
  opacity: 1;
  transform: translate3d(0, 108%, 0);
}

.js .is-loaded .intro {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease-out) calc(var(--d, 0) * 110ms + 250ms),
    transform 1.2s var(--ease-out) calc(var(--d, 0) * 110ms + 250ms);
}

/* 2 · Revelado al hacer scroll (con escalonado por --i) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    filter var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 3 · Scroll ligado a la cámara (CSS scroll-driven animations, 2024+) */
@supports (animation-timeline: view()) {

  .coach-word {
    animation: word-slide linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  @keyframes word-slide {
    from { translate: 0 60px; }
    to   { translate: 0 -60px; }
  }

  .scroll-progress {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }

  @keyframes progress { to { transform: scaleX(1); } }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 101;
  background: linear-gradient(90deg, var(--purple), var(--purple-hi), var(--cyan));
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ── LA APP POR DENTRO (capturas reales) ─────────────────── */
.appshots { background: var(--black); overflow: hidden; }

.appshots-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.appshot { margin: 0; }
.appshot:nth-child(even) { margin-top: 56px; }

.phone {
  position: relative;
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1A1A1A, #0D0D0D);
  border: 1px solid rgba(148,74,255,0.22);
  box-shadow: 0 30px 60px -30px rgba(109,40,210,0.55);
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 945;
  border-radius: 22px;
}

.appshot:hover .phone {
  transform: translateY(-6px);
  border-color: var(--purple-hi);
  box-shadow: 0 36px 70px -28px rgba(148,74,255,0.6);
}

.appshot figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 0 4px;
}

.appshot-n { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--purple); }
.appshot-t { font-size: 1rem; font-weight: 800; letter-spacing: -0.2px; }
.appshot-d { font-size: 0.82rem; line-height: 1.55; color: rgba(255,255,255,0.5); }

@media (max-width: 960px) {
  .appshots-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 0 24px 12px;
    scrollbar-width: none;
  }
  .appshots-track::-webkit-scrollbar { display: none; }
  .appshot { flex: 0 0 min(62%, 260px); scroll-snap-align: center; }
  .appshot:nth-child(even) { margin-top: 0; }
}

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.legal-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 128px 24px 96px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px 72px;
}

.legal-header {
  grid-column: 1 / -1;
  border-bottom: 1px solid rgba(109,40,210,0.2);
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  max-width: 760px;
}

.legal-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.legal-switch {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-hi);
}

.legal-switch::after { content: ' →'; transition: margin .3s var(--ease-out); }
.legal-switch:hover::after { margin-left: 4px; }

.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  scrollbar-width: thin;
}

.legal-toc summary {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple);
  cursor: pointer;
  list-style: none;
  padding: 6px 0 14px;
}

.legal-toc summary::-webkit-details-marker { display: none; }

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.legal-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.45);
  transition: color .2s, border-color .2s;
}

.legal-toc a:hover { color: var(--white); }

.legal-toc a.is-active {
  color: var(--white);
  border-left-color: var(--purple-hi);
}

.legal-body { max-width: 720px; }

.legal-section { padding: 0 0 8px; }

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--white);
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(109,40,210,0.15);
}

.legal-section:first-child h2 { margin-top: 0; }

.legal-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  margin: 26px 0 10px;
}

.legal-body p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body strong { color: var(--white); font-weight: 500; }

.legal-body ul {
  list-style: none;
  margin-bottom: 14px;
}

.legal-body ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 6px;
  height: 1px;
  background: var(--purple-hi);
}

.legal-body a {
  color: var(--purple-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* "En resumen": la versión corta, destacada */
.legal-section.is-summary {
  margin-top: 36px;
  padding: 24px 28px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, #0A0014, var(--surface-2));
  border: 1px solid rgba(109,40,210,0.4);
}

.legal-section.is-summary h2 { margin-top: 0; border-bottom-color: rgba(109,40,210,0.3); }

.legal-ph {
  background: rgba(0,251,255,0.08);
  color: var(--cyan);
  border: 1px dashed rgba(0,251,255,0.45);
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 500;
}

.legal-table-wrap {
  margin: 8px 0 20px;
  border: 1px solid rgba(109,40,210,0.25);
  border-radius: 10px;
  overflow: hidden;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-hi);
  background: var(--surface-2);
  padding: 12px 16px;
}

.legal-table td {
  padding: 14px 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  vertical-align: top;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .coach-inner { grid-template-columns: 1fr; gap: 24px; }
  .coach-stage { order: -1; height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 112px; }
  .legal-toc {
    position: static;
    max-height: none;
    border: 1px solid rgba(109,40,210,0.25);
    border-radius: 10px;
    padding: 6px 16px 10px;
  }
  .legal-toc summary { padding: 10px 0; }
  .legal-toc summary::after { content: ' +'; }
  .legal-toc details[open] summary::after { content: ' −'; }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .archetypes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-step::after {
    display: none;
  }
}

@media (max-width: 700px) {
  section { padding: 72px 0; }

  /* Hero móvil: video a pantalla completa, texto sobre el fundido inferior */
  .hero { align-items: flex-end; }

  .hero-video { object-position: 50% 18%; transform-origin: 50% 35%; }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.82) 66%, #000 100%);
  }

  .hero-grid { display: none; }

  .hero-inner { padding: 0 24px 88px; }

  .hero-outro { bottom: 16%; right: 24px; font-size: clamp(1.9rem, 9vw, 2.6rem); }

  .hero-content { gap: 20px; }

  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); letter-spacing: -1.5px; }

  .hero-desc { font-size: 1rem; }

  .hero-actions .btn-primary { flex: 1 1 100%; }
  .hero-actions .btn-ghost { display: none; }
  .hud-scroll-bar { width: 72px; }

  .hud-inner { padding-bottom: 24px; gap: 12px; }
  .hud-ai { font-size: 9px; letter-spacing: 1.5px; }

  .nav-links { display: none; }

  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stat-item {
    flex-direction: column;
    gap: 10px;
    padding: 0 6px;
    text-align: center;
  }

  .stat-ring { width: 52px; height: 52px; }
  .stat-text { align-items: center; }

  .stat-value {
    font-size: 1.7rem;
  }

  .stat-value small { font-size: .7rem; margin-left: 3px; }
  .stat-label { font-size: 8px; letter-spacing: 1.2px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .archetypes-grid {
    grid-template-columns: 1fr;
  }

  .archetype-img-wrap {
    height: 240px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .coach { padding: 88px 0; }
  .coach-stage { height: 480px; }
  .coach-stage .coach-img { height: 78%; }
  .coach-statement { top: 10px; bottom: auto; right: 0; font-size: 1.3rem; }
  .chip { padding: 9px 11px; }
  .chip-v b { font-size: 18px; }
  .chip-rest { left: 0; top: auto; bottom: 31%; }
  .chip-rate { right: 0; }
  .chip-set { left: 0; bottom: 11%; }
  .coach-orbit { width: 340px; height: 340px; margin-left: -170px; bottom: -148px; }
  .hud-id { display: none; }
  .hud-ai { display: none; }

  /* Tabla legal apilada en móvil */
  .legal-table thead { display: none; }
  .legal-table tr { display: block; border-top: 1px solid rgba(255,255,255,0.08); padding: 6px 0; }
  .legal-table tr:first-child { border-top: 0; }
  .legal-table td { display: block; border: 0; padding: 6px 16px; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-hi);
    margin-bottom: 2px;
  }
  .legal-section.is-summary { padding: 20px 18px 8px; }

  .nav-logo img { height: 22px; }

  .nav-cta {
    padding: 9px 16px;
    font-size: 10px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-item::after {
    display: none;
  }

  .stat-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: left;
    border-bottom: 1px solid rgba(109,40,210,0.1);
    padding: 0 0 24px;
  }

  .stat-text { align-items: flex-start; }
  .stat-value { font-size: 2rem; }
  .stat-label { font-size: 9px; letter-spacing: 1.8px; }

  .stat-item:last-child {
    border: none;
    padding-bottom: 0;
  }
}

/* ── COACH · VERSIÓN SIMPLE (v3.2) ─────────────────────────
   Pedido de Jorge: animación más tranquila y liviana. Se quitan
   bucles infinitos, glitch, parpadeos y parallax; queda una
   entrada suave única al llegar a la sección. */
.coach-stage .coach-scan,
.coach-stage .coach-pulse,
.coach-circuit .flow,
.coach-circuit .node-ring { display: none; }

.coach-orbit::before,
.coach-orbit::after,
.is-live .coach-reticle::before,
.is-live .coach-reticle::after,
.coach-word { animation: none !important; }

.chip { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13,13,13,0.92); }

.js .coach-stage.is-live .coach-img {
  animation: coach-rise 1s var(--ease-out) .1s both;
}

@keyframes coach-rise {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

.is-live .coach-reticle { animation: fade-in .8s ease .6s forwards; }

.js .coach-stage.is-live .chip {
  animation: chip-rise .7s var(--ease-out) both;
  animation-delay: calc(.7s + var(--c) * .15s);
}

@keyframes chip-rise {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}

.is-live .coach-circuit .wire {
  animation: wire-draw .7s var(--ease-out) forwards;
  animation-delay: calc(1s + var(--c) * .15s);
}

.is-live .coach-circuit .node,
.is-live .coach-circuit .node-start {
  animation: fade-full .4s ease forwards;
  animation-delay: calc(1.5s + var(--c) * .15s);
}

@keyframes fade-full { to { opacity: 1; } }

.is-live .coach-boot-txt { animation: none; clip-path: none; }

/* Frase "Te guía serie por serie": entra una sola vez, sin efecto palabra por palabra */
.coach-statement .w { color: var(--white); text-shadow: none; transition: none; }
.coach-statement .w.em { color: var(--purple-hi); }

.js .coach-statement { opacity: 0; translate: 0 12px; }

.js .coach-stage.is-live .coach-statement {
  opacity: 1;
  translate: 0 0;
  transition: opacity .8s var(--ease-out) .4s, translate .8s var(--ease-out) .4s;
}

/* ── MOVIMIENTO REDUCIDO ─────────────────────────────────
   Si el sistema pide menos movimiento (en Windows: "Efectos de
   animación" apagado) se quitan desplazamientos, zoom, parallax
   y bucles infinitos, pero se conservan los fundidos, contadores
   y el encendido del holograma: la página sigue viva, sin mareo. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal] { transform: none; filter: none; }
  .js .intro, .js .hero-title .intro { transform: none; }
  .js .hero-video { scale: 1; }

  .hero-media, .hero-inner, .hero-hud, .coach-word,
  .coach-orbit::before, .coach-orbit::after,
  .coach-reticle::before, .coach-reticle::after,
  .hud-dot, .btn-primary,
  .coach-circuit .flow, .coach-circuit .node-ring { animation: none !important; }

  .coach-stage [data-depth] { transform: none !important; }
  .is-scrub .hero-media { transform: none; }
  .hero-scan, .coach-scan, .coach-pulse { display: none; }
  .scroll-progress { animation: none !important; }

  .js .coach-stage.is-live .coach-img { animation: fade-full .6s ease forwards; }
  .is-live .coach-reticle { animation: fade-in .8s ease .5s forwards; }
  .js .coach-stage .corner { transform: none; }
}

@keyframes fade-in { to { opacity: .75; } }

/* ── CTA Google Play (PLAY_STORE_URL en main.js) ───────────── */
[data-play-short] { display: none; }
.play-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan, #00FBFF);
  box-shadow: 0 0 10px rgba(0,251,255,.7);
  flex: none;
  animation: play-dot 1.8s ease-in-out infinite;
}
.nav-cta .play-dot { margin-right: 10px; }
@keyframes play-dot { 50% { opacity: .35; } }

/* Estado "Próximamente": parece botón, no navega */
.play-cta[aria-disabled="true"] { cursor: default; }
.btn-primary.play-cta::after { content: none; }
.btn-primary.play-cta[aria-disabled="true"] { animation: none; box-shadow: 0 0 0 1px rgba(148,74,255,.45) inset, 0 0 24px rgba(109,40,210,.25); }
.btn-primary.play-cta[aria-disabled="true"]:hover { transform: none; background: var(--purple); }
.btn-primary.play-cta[aria-disabled="true"]::before { display: none; }
.nav-cta.play-cta[aria-disabled="true"]:hover { background: var(--purple); box-shadow: none; }
.footer-link.play-cta[aria-disabled="true"]:hover { color: rgba(255,255,255,0.5); }
.play-cta:not([aria-disabled]) { cursor: pointer; }

@media (max-width: 640px) {
  .btn-primary.play-cta { white-space: nowrap; letter-spacing: 1.2px; font-size: 12px; padding-inline: 18px; }
  .nav-cta [data-play-long] { display: none; }
  .nav-cta [data-play-short] { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .play-dot { animation: none; } }
