/* =====================================================================
 * odorfAnalytica — landing «coming soon».
 * Los tokens y el lenguaje visual son los del Telón (menú principal de la
 * app): fondo casi negro, grilla de 48 px, luz radial del color de la
 * herramienta, esquinas de HUD, escudo redondo y tipografía SF + mono.
 * ===================================================================== */

@property --col {
  syntax: '<color>';
  inherits: true;
  initial-value: #22d3ee;
}

:root {
  --font-sans: system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme='dark'] {
  --bg: #0c0d10;
  --bg-elevated: #131418;
  --surface: #1a1b20;
  --text: #ebecf0;
  --text-muted: #9098a4;
  --text-faint: #62676f;
  --accent: #22d3ee;
  --accent-fg: #050608;
  --secondary: #ec4899;
  --app-analyzer: #22d3ee;
  --app-visualizer: #a3e635;
  --app-reviews: #f472b6;
  --app-blackbox: #fbbf24;
  --app-training: #4ade80;
  --app-exerciseLibrary: #a78bfa;
  --app-liveCapture: #fb7185;
  --app-stats: #fb923c;
  --escudo-chapa: #15161b;
  --trazo: 1;
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f7f4ed;
  --bg-elevated: #fffdf6;
  --surface: #efe9d8;
  --text: #2a2620;
  --text-muted: #6a6256;
  --text-faint: #8c8475;
  --accent: #0ea5e9;
  --accent-fg: #ffffff;
  --secondary: #ec4899;
  --app-analyzer: #0891b2;
  --app-visualizer: #65a30d;
  --app-reviews: #db2777;
  --app-blackbox: #d97706;
  --app-training: #16a34a;
  --app-exerciseLibrary: #7c3aed;
  --app-liveCapture: #e11d48;
  --app-stats: #ea580c;
  --escudo-chapa: #1d1f24;
  --trazo: 0.58;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

/* El color de la herramienta marcada vive en el body: la luz de fondo, los
 * kickers y el escudo lo toman y el cambio es un fundido de 700 ms. */
body {
  --col: var(--app-analyzer);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 400ms ease, color 400ms ease, --col 700ms ease;
}
body[data-col='analyzer'] { --col: var(--app-analyzer); }
body[data-col='visualizer'] { --col: var(--app-visualizer); }
body[data-col='reviews'] { --col: var(--app-reviews); }
body[data-col='blackbox'] { --col: var(--app-blackbox); }
body[data-col='stats'] { --col: var(--app-stats); }
body[data-col='liveCapture'] { --col: var(--app-liveCapture); }
body[data-col='training'] { --col: var(--app-training); }
body[data-col='exerciseLibrary'] { --col: var(--app-exerciseLibrary); }

a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--col) 40%, transparent); }

/* ---------- el fondo ---------- */

.fondo-grilla {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) calc(4% * var(--trazo)), transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) calc(4% * var(--trazo)), transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}
.fondo-luz {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 48% 58% at 72% 46%,
    color-mix(in srgb, var(--col) calc(18% * var(--trazo)), transparent) 0%,
    transparent 100%
  );
}
.fondo-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--col) calc(9% * var(--trazo)), transparent), transparent);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  transition: transform 500ms var(--ease);
}

.hud { position: fixed; width: 14px; height: 14px; border: 0 solid; pointer-events: none; z-index: 50; }
.hud.tl { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.hud.tr { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; border-color: color-mix(in srgb, var(--secondary) 32%, transparent); }
.hud.bl { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; border-color: color-mix(in srgb, var(--secondary) 32%, transparent); }
.hud.br { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; border-color: color-mix(in srgb, var(--accent) 38%, transparent); }

/* ---------- el escudo (mismas medidas que escudo.css de la app) ---------- */

.escudo {
  position: relative;
  display: inline-flex;
  flex: none;
  width: var(--escudo-size);
  height: var(--escudo-size);
}
.escudo-luz {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--escudo-size) * 3.2);
  height: calc(var(--escudo-size) * 3.2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--col) 30%, transparent) 0%,
    color-mix(in srgb, var(--col) 10%, transparent) 55%,
    transparent 100%
  );
  pointer-events: none;
  animation: luz-respira 5s ease-in-out infinite;
}
@keyframes luz-respira {
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.08); }
}
.escudo-chapa {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--escudo-chapa);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--col) 45%, transparent),
    0 0 0 calc(var(--escudo-size) * 0.048) color-mix(in srgb, var(--bg) 60%, transparent),
    0 calc(var(--escudo-size) * 0.1) calc(var(--escudo-size) * 0.24) calc(var(--escudo-size) * -0.09)
      color-mix(in srgb, var(--col) 50%, transparent);
  transition: box-shadow 600ms ease;
}
.escudo-chapa img { width: 72%; height: 72%; display: block; user-select: none; pointer-events: none; }

/* ---------- barra ---------- */

.barra {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 44px;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, padding 300ms ease;
}
.barra.is-pegada {
  padding-top: 12px;
  padding-bottom: 12px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: color-mix(in srgb, var(--text) 8%, transparent);
}
.marca { display: flex; align-items: center; gap: 12px; }
.marca-tx { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.marca-mono { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; color: var(--text-muted); }

.barra-nav { display: flex; gap: 28px; }
.barra-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 160ms ease;
}
.barra-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--col);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.barra-nav a:hover { color: var(--text); }
.barra-nav a:hover::after { transform: scaleX(1); }

.cromo { display: flex; align-items: center; gap: 8px; }
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(8px);
}
.seg button {
  border: 0;
  background: none;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.seg button.is-on { background: color-mix(in srgb, var(--text) 16%, transparent); color: var(--text); }
.ico {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: background 140ms ease, transform 500ms var(--ease);
}
.ico:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.ico.is-gira { transform: rotate(180deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 44px 96px;
  overflow: hidden;
}

.hero-escena {
  position: absolute;
  inset: 0;
  color: var(--app-analyzer);
  pointer-events: none;
}
.cancha-3d {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(1100px, 82vw);
  transform: translateY(-58%) perspective(1600px) rotateX(54deg) rotateZ(-14deg);
  animation: cancha-llega 1600ms var(--ease) both, deriva 46s ease-in-out 1600ms infinite;
}
@keyframes cancha-llega {
  from { opacity: 0; transform: translateY(-50%) perspective(1600px) rotateX(64deg) rotateZ(-4deg) scale(0.9); }
}
@keyframes deriva {
  50% { transform: translateY(-58%) translateX(-26px) perspective(1600px) rotateX(54deg) rotateZ(-14deg); }
}
.cancha { width: 100%; height: auto; display: block; overflow: visible; }
.cesped rect { fill: var(--text); fill-opacity: calc(0.018 * var(--trazo)); }
.cesped .franja { fill-opacity: calc(0.026 * var(--trazo)); }
.lineas * {
  fill: none;
  stroke: var(--text);
  stroke-opacity: calc(0.26 * var(--trazo));
  stroke-width: 2.5;
  stroke-dasharray: 3600;
  stroke-dashoffset: 3600;
  animation: traza 2.4s var(--ease) 300ms forwards;
}
.lineas .punto { fill: var(--text); fill-opacity: 0.3; }
@keyframes traza { to { stroke-dashoffset: 0; } }
.zonas line {
  stroke: var(--text);
  stroke-opacity: calc(0.1 * var(--trazo));
  stroke-width: 2;
  stroke-dasharray: 4 12;
}
.zona-viva rect {
  fill: currentColor;
  fill-opacity: 0.08;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: zona 7s ease-in-out infinite;
}
.zona-viva text {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: currentColor;
  animation: zona 7s ease-in-out infinite;
}
@keyframes zona {
  0%, 55% { opacity: 0; }
  65%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
.rivales circle {
  fill: color-mix(in srgb, var(--bg) 55%, transparent);
  stroke: var(--text);
  stroke-opacity: 0.42;
  stroke-width: 2.5;
}
.fichas circle { fill: currentColor; fill-opacity: 0.28; stroke: currentColor; stroke-width: 3; }
.pase {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px currentColor);
  animation: pase 7s linear infinite;
}
@keyframes pase {
  0%, 12% { stroke-dashoffset: 1; opacity: 1; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  95% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
.pelota { fill: var(--text); filter: drop-shadow(0 0 6px var(--text)); }
.aro-vivo circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  transform-origin: 820px 300px;
  animation: onda 2.4s ease-out infinite;
}
@keyframes onda {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* El timeline del Analyzer, abajo a la derecha: los bloques se abren y el
 * cabezal los recorre al ritmo de la jugada (7 s). */
.hero-tira {
  --label: 92px;
  position: absolute;
  right: 44px;
  bottom: 64px;
  width: min(460px, 40vw);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  animation: sube 900ms var(--ease) 900ms both;
  overflow: hidden;
}
.tira-fila { position: relative; height: 18px; display: flex; align-items: center; }
.tira-fila span {
  width: var(--label);
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.tira-fila.is-on span { color: currentColor; font-weight: 600; }
.tira-fila i {
  position: absolute;
  left: calc(var(--label) + (100% - var(--label)) * var(--x));
  width: calc((100% - var(--label)) * var(--w));
  height: 10px;
  border-radius: 3px;
  background: color-mix(in srgb, currentColor 22%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 70%, transparent);
  transform-origin: left;
  animation: bloque 7s var(--ease) infinite;
}
.tira-fila:nth-child(2) i { animation-delay: 300ms; }
.tira-fila:nth-child(3) i { animation-delay: 600ms; }
@keyframes bloque {
  0%, 8% { transform: scaleX(0); opacity: 0; }
  20%, 90% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.tira-cabezal {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(16px + var(--label));
  width: 1.6px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: cabezal 7s linear infinite;
}
@keyframes cabezal {
  from { transform: translateX(0); }
  to { transform: translateX(calc(min(460px, 40vw) - 32px - var(--label))); }
}

.hero-velo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 22%),
    linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 32%, transparent 62%);
}

.hero-col {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero-marca { display: flex; align-items: center; gap: 26px; margin-bottom: 18px; }
.escudo-hero .escudo-chapa { animation: chapa-flota 6s ease-in-out infinite; }
@keyframes chapa-flota {
  50% { transform: translateY(-5px); }
}

.filo { display: flex; align-items: stretch; gap: 14px; }
.filo-raya { width: 3px; flex: none; border-radius: 2px; background: var(--col); }
.filo-tx { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.filo-linea { display: flex; align-items: baseline; gap: 8px; }
.filo-marca { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--text-muted); }
.filo-app { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.filo-nota { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--col); }

.pronto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.pronto-punto { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pronto-punto::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: late 1.8s ease-out infinite;
}
@keyframes late {
  to { transform: scale(3.2); opacity: 0; }
}

.hero-titulo {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
}
.rota { display: inline-block; height: 1.14em; overflow: hidden; padding-bottom: 0.08em; }
.rota-palabra { display: inline-block; color: var(--col); }
.rota-palabra.is-sale { animation: palabra-sale 380ms var(--ease) forwards; }
.rota-palabra.is-entra { animation: palabra-entra 520ms var(--ease) both; }
@keyframes palabra-sale {
  to { transform: translateY(-110%); opacity: 0; filter: blur(4px); }
}
@keyframes palabra-entra {
  from { transform: translateY(110%); opacity: 0; filter: blur(4px); }
}

.hero-meta { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.hero-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-play,
.btn-mas {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 300ms ease;
}
.btn-play { padding: 0 26px 0 20px; background: var(--text); color: var(--bg); font-weight: 700; }
.btn-play:hover { background: var(--col); color: var(--accent-fg); box-shadow: 0 10px 40px -10px var(--col); }
.btn-mas {
  padding: 0 22px;
  background: color-mix(in srgb, var(--text-muted) 22%, transparent);
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.btn-mas:hover { background: color-mix(in srgb, var(--text-muted) 38%, transparent); }
.btn-play:active,
.btn-mas:active { transform: scale(0.97); }
[data-theme='light'] .btn-play { background: color-mix(in srgb, var(--text) 84%, var(--bg)); }

.hero-baja {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
}
.hero-baja span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: rueda 1.8s ease-in-out infinite;
}
@keyframes rueda {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* La entrada del hero: escalonada, como la del Telón. */
.entra { animation: sube 800ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes sube {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
}

/* ---------- cinta de tags ---------- */

.cinta {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.cinta-pista {
  display: flex;
  gap: 22px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-faint);
  animation: cinta 48s linear infinite;
}
.cinta-pista b { color: var(--col); font-weight: 400; }
@keyframes cinta {
  to { transform: translateX(-50%); }
}

/* ---------- secciones ---------- */

.seccion {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 44px 40px;
}
.seccion-cab { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 56px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--col);
}
.titulo {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}
.meta { margin: 0; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* Lo que entra al hacer scroll. */
.revela {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease) var(--d, 0ms),
    transform 900ms var(--ease) var(--d, 0ms),
    filter 900ms var(--ease) var(--d, 0ms),
    border-color 300ms ease;
}
.revela.is-visto { opacity: 1; transform: none; filter: none; }

/* ---------- tarjetas (pilares, pasos, detalles) ---------- */

.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pilar,
.detalle,
.paso {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
/* La luz que sigue al mouse dentro de cada tarjeta (--px/--py desde main.js). */
.pilar::before,
.detalle::before,
.paso::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--px, 50%) var(--py, 0%),
    color-mix(in srgb, var(--c, var(--col)) 14%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 300ms ease;
}
.pilar:hover,
.detalle:hover,
.paso:hover { border-color: color-mix(in srgb, var(--c, var(--col)) 50%, transparent); }
.pilar.is-visto:hover,
.detalle.is-visto:hover,
.paso.is-visto:hover { transform: translateY(-4px); transition-delay: 0ms; transition-duration: 400ms; }
.pilar:hover::before,
.detalle:hover::before,
.paso:hover::before { opacity: 1; }

.pilar::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 0;
  width: 40px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--c);
}
.pilar-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--c); }
.pilar h3 { margin: 18px 0 10px; font-size: 30px; font-weight: 650; letter-spacing: -0.035em; }
.pilar p,
.detalle p,
.paso p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- herramientas: el Telón ---------- */

/* La sección lleva siempre el color de la herramienta marcada, aunque el
 * body todavía tenga el del hero (Telón visto a medias, pantallas chicas). */
.telon[data-app='analyzer'] { --col: var(--app-analyzer); }
.telon[data-app='visualizer'] { --col: var(--app-visualizer); }
.telon[data-app='reviews'] { --col: var(--app-reviews); }
.telon[data-app='blackbox'] { --col: var(--app-blackbox); }
.telon[data-app='stats'] { --col: var(--app-stats); }
.telon[data-app='liveCapture'] { --col: var(--app-liveCapture); }
.telon[data-app='training'] { --col: var(--app-training); }
.telon[data-app='exerciseLibrary'] { --col: var(--app-exerciseLibrary); }
.telon { transition: --col 700ms ease; }

.telon-cuerpo {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px;
  align-items: stretch;
}
.telon-nav { display: flex; flex-direction: column; align-items: flex-start; }
.telon-item {
  --item-col: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 0 6px 18px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 420ms var(--ease);
}
.telon-item[data-app='analyzer'] { --item-col: var(--app-analyzer); }
.telon-item[data-app='visualizer'] { --item-col: var(--app-visualizer); }
.telon-item[data-app='reviews'] { --item-col: var(--app-reviews); }
.telon-item[data-app='blackbox'] { --item-col: var(--app-blackbox); }
.telon-item[data-app='stats'] { --item-col: var(--app-stats); }
.telon-item[data-app='liveCapture'] { --item-col: var(--app-liveCapture); }
.telon-item[data-app='training'] { --item-col: var(--app-training); }
.telon-item[data-app='exerciseLibrary'] { --item-col: var(--app-exerciseLibrary); }
.telon-item:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.telon-item-raya {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--item-col);
  transform: scaleY(0);
  transition: transform 300ms var(--ease);
}
.telon-item.is-on .telon-item-raya { transform: scaleY(1); }
.telon-item.is-on { transform: translateX(6px); }
.telon-item-nombre {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: color-mix(in srgb, var(--text-faint) 92%, transparent);
  transition: color 160ms ease;
}
.telon-item.is-on .telon-item-nombre,
.telon-item:hover .telon-item-nombre { color: var(--text); }
.telon-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.telon-item.is-on .telon-kbd { opacity: 1; }
.telon-tambien {
  margin: 22px 0 8px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.telon-item.is-chico .telon-item-nombre { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.01em; }
.telon-item.is-chico .telon-item-raya { top: 9px; bottom: 9px; }

.telon-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background:
    radial-gradient(ellipse 70% 60% at 60% 30%, color-mix(in srgb, var(--col) 16%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  overflow: hidden;
  box-shadow: 0 40px 120px -60px color-mix(in srgb, var(--col) 60%, transparent);
}
.telon-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) calc(5% * var(--trazo)), transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) calc(5% * var(--trazo)), transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.telon-pantalla { position: relative; flex: 1; min-height: 300px; color: var(--col); }
.telon-pantalla .escena { position: absolute; inset: 0; }
.telon-pantalla svg { width: 100%; height: 100%; display: block; overflow: visible; }
.escena { animation: escena-entra 700ms var(--ease) both; }
.escena.is-saliendo { animation: escena-sale 500ms ease both; }
@keyframes escena-entra { from { opacity: 0; transform: scale(1.04); filter: blur(6px); } }
@keyframes escena-sale { to { opacity: 0; transform: scale(0.985); } }

.telon-info { position: relative; padding: 0 34px 34px; display: flex; flex-direction: column; gap: 10px; }
.telon-info.is-anima > * { animation: sube 600ms var(--ease) both; }
.telon-info.is-anima > :nth-child(2) { animation-delay: 60ms; }
.telon-info.is-anima > :nth-child(3) { animation-delay: 120ms; }
.telon-info.is-anima > :nth-child(4) { animation-delay: 180ms; }
.telon-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--col); }
.telon-titulo { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.telon-meta { margin: 0; max-width: 560px; font-size: 15.5px; line-height: 1.55; color: var(--text-muted); }
.telon-flujo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.telon-flujo-paso { display: inline-flex; align-items: center; gap: 8px; color: var(--text-faint); }
.telon-flujo-chip {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.telon-flujo-chip.is-esta { border-color: var(--col); color: var(--col); }
.telon-progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.telon-progreso span { display: block; height: 100%; background: var(--col); transform-origin: left; transform: scaleX(0); }
.telon-progreso span.is-corre { animation: progreso var(--dur, 6s) linear forwards; }
.telon-cuerpo:hover .telon-progreso span { animation-play-state: paused; }
@keyframes progreso { to { transform: scaleX(1); } }

/* Trazos de las escenas del panel (las arma main.js). */
.e-linea { fill: none; stroke: var(--text); stroke-opacity: calc(0.22 * var(--trazo)); stroke-width: 1.5; }
.e-tinta { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.e-dibuja { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dibuja 1.6s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
.e-relleno { fill: currentColor; }
.e-suave { fill: currentColor; fill-opacity: 0.16; stroke: currentColor; stroke-width: 1.5; }
.e-carta { fill: var(--surface); stroke: var(--text); stroke-opacity: 0.16; stroke-width: 1.2; }
.e-texto { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; fill: var(--text); fill-opacity: 0.45; }
.e-texto.is-col { fill: currentColor; fill-opacity: 1; font-weight: 600; }
.e-rival { fill: color-mix(in srgb, var(--bg) 55%, transparent); stroke: var(--text); stroke-opacity: 0.42; stroke-width: 2; }
.e-crece { transform-box: fill-box; transform-origin: bottom; animation: crece 1.2s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes crece { from { transform: scaleY(0); } }
.e-ancho { transform-box: fill-box; transform-origin: left; animation: ancho 900ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes ancho { from { transform: scaleX(0); } }
.e-pop { transform-box: fill-box; transform-origin: center; animation: pop 700ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.e-onda { transform-box: fill-box; transform-origin: center; animation: onda 2.4s ease-out infinite; animation-delay: var(--d, 0ms); }
.e-late { animation: late-op 1.4s ease-in-out infinite; }
@keyframes late-op { 50% { opacity: 0.25; } }
.e-marcha { stroke-dasharray: 10 10; animation: marcha 2.4s linear infinite; }
@keyframes marcha { to { stroke-dashoffset: -40; } }
.e-flota { animation: flota 4s ease-in-out infinite; animation-delay: var(--d, 0ms); }
@keyframes flota { 50% { transform: translateY(-8px); } }
.e-barre { animation: barre 5s linear infinite; }
@keyframes barre { from { transform: translateX(0); } to { transform: translateX(440px); } }

/* ---------- pasos ---------- */

.pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.pasos::before {
  content: '';
  position: absolute;
  left: 40px;
  right: 40px;
  top: 47px;
  height: 1px;
  background: linear-gradient(to right, var(--app-analyzer), var(--app-reviews), var(--app-visualizer), var(--app-blackbox));
  opacity: 0.4;
}
.paso-n {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c);
  box-shadow: 0 0 24px -4px var(--c);
}
.paso h3 { margin: 22px 0 10px; font-size: 21px; font-weight: 650; letter-spacing: -0.025em; }

/* ---------- detalles ---------- */

.detalles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detalle-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--col) 45%, transparent);
  background: color-mix(in srgb, var(--col) 10%, transparent);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--col);
}
.detalle h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }

/* ---------- coming soon ---------- */

.pronto-final { padding-bottom: 120px; }
.pronto-caja {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 32px 72px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, color-mix(in srgb, var(--col) 18%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  overflow: hidden;
}
.pronto-caja .escudo { margin-bottom: 18px; }
.pronto-caja .meta { margin: 0 auto; }
.pronto-plataformas { display: flex; gap: 10px; margin-top: 10px; }
.pronto-plataformas span {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- pie ---------- */

.pie {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 44px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.pie-creador { display: flex; flex-direction: column; gap: 6px; }
.pie-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.pie-nombre { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.pie-copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-faint); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .barra-nav { display: none; }
  .pilares,
  .detalles,
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos::before { display: none; }
  .telon-cuerpo { grid-template-columns: 1fr; gap: 28px; }
  .telon-nav { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .telon-tambien { display: none; }
  .telon-item { width: auto; }
  .telon-item.is-chico .telon-item-nombre { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.035em; }
  .telon-kbd { display: none; }
  .hero-tira { display: none; }
  .cancha-3d { right: -30%; opacity: 0.55; }
}
@media (max-width: 640px) {
  .barra,
  .hero,
  .seccion,
  .pie { padding-left: 22px; padding-right: 22px; }
  .pilares,
  .detalles,
  .pasos { grid-template-columns: 1fr; }
  .hero-marca { gap: 18px; }
  .escudo-hero { --escudo-size: 80px !important; }
  .filo-app { font-size: 26px; }
  .telon-panel { min-height: 480px; }
  .telon-info { padding: 0 22px 26px; }
  .pie { flex-direction: column; align-items: flex-start; }
  .hud { display: none; }
  .marca-tx { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .revela { opacity: 1; transform: none; filter: none; }
}
