/* Dr. Feed — demo "Elige a tu maestro".
   Sistema: el de Raycast adaptado (casi negro, un solo acento, bordes finos, botones neutros, Inter).
   Movimiento: rápido y con frenado suave. Luz: túnel de color + luz que sigue al cursor.
   Reglas de Ángel: sin cajas redondeadas, sin numeraciones 01/02/03, sin letras espaciadas de "IA". */
:root {
  --canvas: #040506;
  --card: #07080a;
  --hundido: #111214;
  --grafito: #1b1c1e;
  --borde: #232426;
  --borde-2: #363739;
  --texto: #ffffff;
  --texto-2: #9c9c9d;
  --texto-3: #85868a;           /* texto chico y legible (más claro que el #6a6b6c de Raycast) */
  --niebla: #e6e6e6;            /* botón principal: neutro, como Raycast */
  --hierro: #1d1e20;
  --azul: #0074ff;              /* la D del logo */
  --rojo: #ff2d46;              /* Tesla */
  --acento: var(--azul);
  --lado: -1;                   /* de qué lado llega la luz de contorno */
  --tecla: rgba(255,255,255,.05) 0 1px 0 0 inset, rgba(255,255,255,.1) 0 0 0 1px, rgba(0,0,0,.2) 0 -1px 0 0 inset;
  --metal: linear-gradient(180deg, #ffffff 0%, #e6eaf2 40%, #8a93a6 62%, #dfe4ee 82%, #b9c0cf 100%);
  --salida: cubic-bezier(.16, 1, .3, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}
body[data-maestro="tesla"] { --acento: var(--rojo); --lado: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--canvas); color: var(--texto);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  font-feature-settings: "calt", "kern", "liga", "ss03", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.con-intro { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

/* letras que entran una por una, saliendo del desenfoque */
[data-split] .l { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.22em) scale(1.06);
  transition: opacity .45s, filter .45s, transform .6s var(--salida); transition-delay: calc(var(--i) * 26ms); }
[data-split] .l.esp { width: .26em; }
.is-in [data-split] .l, [data-split].is-in .l { opacity: 1; filter: none; transform: none; }

/* ---------- botones: neutros y con esquinas apenas suaves ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 44px; padding: 0 20px; border: 0; border-radius: 6px;
  background: var(--niebla); color: var(--hierro); text-decoration: none;
  font-weight: 500; font-size: .95rem;
  box-shadow: rgba(0,0,0,.03) 0 7px 3px 0, rgba(0,0,0,.25) 0 4px 4px 0;
  transition: transform .2s var(--salida), background .2s, box-shadow .3s;
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 25%, transparent), 0 10px 30px -10px var(--acento); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--texto); box-shadow: var(--tecla); }
.btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: rgba(255,255,255,.2) 0 0 0 1px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: var(--texto-2); }
.icon-btn:hover { color: var(--texto); }
.icon-btn[aria-pressed="false"] .ondas { opacity: 0; }

/* ---------- luz que sigue al cursor ---------- */
.luz-cursor {
  position: fixed; left: 0; top: 0; z-index: 40; width: 560px; height: 560px; border-radius: 50%;
  pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, color-mix(in srgb, var(--acento) 30%, transparent) 0%, transparent 62%);
  transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0) translate(-50%, -50%);
  transition: opacity .4s, background .4s;
}
.luz-cursor.is-on { opacity: 1; }

/* =========================================================
   ENTRADA
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 45%, rgba(4,63,150,.45) 0%, rgba(6,18,37,.25) 45%, var(--canvas) 100%), var(--canvas);
  transition: opacity .45s ease, transform .55s var(--salida), visibility .45s;
}
.intro.is-out, .intro.is-out * { animation-play-state: paused; }
.intro.is-out { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.intro-tunel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.intro.is-tunel .intro-tunel { opacity: 1; }

.intro-haces { position: absolute; inset: 0; pointer-events: none; }
.intro-haces::before, .intro-haces::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); }
.intro-haces::before { width: 70vmax; height: 9vmax; left: -28vmax; top: 6vh; transform: rotate(48deg);
  background: linear-gradient(90deg, transparent, rgba(0,116,255,.4), transparent); animation: haz 7s ease-in-out infinite alternate; }
.intro-haces::after { width: 40vmax; height: 30vmax; right: -14vmax; bottom: -10vmax; background: radial-gradient(closest-side, rgba(0,116,255,.28), transparent); }
@keyframes haz { to { transform: rotate(52deg) translateX(4vmax); opacity: .7; } }

.intro-logo { position: absolute; top: clamp(28px, 9vh, 90px); left: 50%; transform: translateX(-50%); width: clamp(140px, 16vw, 190px); height: auto; }

.intro-start { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; background: none; border: 0; padding: 0; margin-top: 4vh; }
.orbe { position: relative; width: clamp(190px, 26vmin, 280px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 20px; }
.orbe-cruz::before, .orbe-cruz::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbe-cruz::before { width: 190%; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,116,255,.55), transparent); }
.orbe-cruz::after { width: 1px; height: 170%; background: linear-gradient(transparent, rgba(0,116,255,.55), transparent); }
.orbe-anillo { position: absolute; border-radius: 50%; border: 1px solid rgba(0,116,255,.45); }
.orbe-anillo.a1 { inset: 0; border-color: rgba(0,116,255,.25); }
.orbe-anillo.a2 { inset: 11%; border-color: rgba(64,150,255,.55); box-shadow: 0 0 22px rgba(0,116,255,.25) inset; }
.orbe-anillo.a3 { inset: 21%; border-style: dashed; border-color: rgba(0,116,255,.4); animation: girar 24s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.orbe-bola {
  position: relative; width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #d6ecff 0%, #5fb0ff 14%, #1580ff 38%, #0052d6 70%, #00226b 100%);
  box-shadow: 0 0 30px rgba(0,116,255,.9), 0 0 90px rgba(0,116,255,.55), 0 0 180px rgba(0,116,255,.3);
  animation: pulso 1.6s var(--salida) infinite;
}
@keyframes pulso { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.07); } 22% { transform: scale(1); } 32% { transform: scale(1.04); } 46% { transform: scale(1); } }
.intro-start:hover .orbe-bola { box-shadow: 0 0 40px #3d94ff, 0 0 120px rgba(0,116,255,.75), 0 0 220px rgba(0,116,255,.4); }
.intro-start:hover .orbe-anillo.a2 { transform: scale(1.04); transition: transform .5s var(--salida); }

.intro-txt { display: grid; justify-items: center; line-height: 1.05; }
.intro-txt-1 { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 300; color: var(--texto-2); }
.intro-txt-2 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 600; letter-spacing: .004em; }
.intro-sonido { display: flex; align-items: center; gap: 14px; margin-top: 6px; color: var(--azul); }
.intro-sonido .raya { width: clamp(50px, 12vw, 140px); height: 1px; background: rgba(0,116,255,.4); }
.intro-start small { color: var(--texto-2); font-size: .85rem; margin-top: -4px; }

.intro-skip {
  position: absolute; z-index: 5; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 4vh, 40px);
  display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 6px;
  background: rgba(7,8,10,.6); color: var(--texto-2); font-size: .875rem; font-weight: 500; box-shadow: var(--tecla);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: color .2s, background .2s;
}
.intro-skip:hover { color: var(--texto); background: rgba(255,255,255,.08); }

/* al presionar: doble latido */
.intro.is-latido .orbe-bola { animation: dobleLatido .5s var(--salida) both; }
@keyframes dobleLatido { 0% { transform: scale(1); } 20% { transform: scale(1.18); } 40% { transform: scale(.96); } 62% { transform: scale(1.28); } 100% { transform: scale(1.1); } }
.intro.is-latido .orbe-anillo { animation: onda .65s var(--salida) both; }
.intro.is-latido .orbe-anillo.a2 { animation-delay: .06s; } .intro.is-latido .orbe-anillo.a3 { animation-delay: .12s; }
@keyframes onda { to { transform: scale(2.6); opacity: 0; } }

/* el monitor: 3 latidos y línea plana */
.intro.is-monitor .intro-start, .intro.is-monitor .intro-logo, .intro.is-monitor .intro-haces { opacity: 0; pointer-events: none; transition: opacity .3s; }
.intro-ecg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s;
  background-image: linear-gradient(rgba(89,242,154,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(89,242,154,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.intro.is-monitor .intro-ecg { opacity: 1; }
.ecg-punta { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px #59f29a, 0 0 30px #59f29a; opacity: 0; will-change: transform; }
.intro.is-monitor .ecg-punta { opacity: 1; }
.intro.is-plano .ecg-punta { box-shadow: 0 0 12px var(--rojo), 0 0 30px var(--rojo); }
.intro-monitor { position: absolute; top: 24px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: #59f29a; opacity: 0; transition: opacity .3s; }
.intro.is-monitor .intro-monitor { opacity: .85; }
.intro.is-plano .intro-monitor { color: var(--rojo); }
.intro.is-tunel .intro-ecg, .intro.is-tunel .ecg-punta, .intro.is-tunel .intro-monitor { opacity: 0; }

.intro-line {
  position: absolute; z-index: 4; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0 var(--gutter);
  text-align: center; pointer-events: none; opacity: 0;
  font-size: clamp(2.2rem, 6.6vw, 5.4rem); font-weight: 600; letter-spacing: .004em; line-height: 1.05;
}
.intro-line.is-on { opacity: 1; }
.intro-line em { font-style: normal; color: var(--rojo); }
.intro-line.is-glitch::before, .intro-line.is-glitch::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; mix-blend-mode: screen; }
.intro-line.is-glitch::before { color: var(--azul); transform: translateX(-3px); animation: g1 .3s steps(2) infinite; }
.intro-line.is-glitch::after { color: var(--rojo); transform: translateX(3px); animation: g2 .35s steps(2) infinite; }
@keyframes g1 { 0% { clip-path: inset(10% 0 55% 0); } 50% { clip-path: inset(40% 0 30% 0); } 100% { clip-path: inset(70% 0 5% 0); } }
@keyframes g2 { 0% { clip-path: inset(60% 0 8% 0); } 50% { clip-path: inset(15% 0 60% 0); } 100% { clip-path: inset(35% 0 40% 0); } }

/* el desfibrilador: la luz sale del centro */
.flor {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #ffffff 0%, #bfe0ff 12%, #3b93ff 32%, rgba(0,116,255,.5) 55%, rgba(0,116,255,0) 80%);
  clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
}
.intro.is-flor .flor { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
.intro.is-tunel .flor { opacity: 0; transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), opacity .5s .05s; }
.intro-logo-centro { position: absolute; z-index: 4; left: 50%; top: 50%; width: min(280px, 60vw); height: auto; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%); filter: drop-shadow(0 6px 30px rgba(0,8,30,.75)); }
.intro.is-tunel .intro-logo-centro { animation: logoEntra 1.1s var(--salida) forwards; }
@keyframes logoEntra {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); filter: blur(12px); }
  15% { opacity: 1; filter: blur(0) brightness(2.5); }
  45% { transform: translate(-50%, -50%) scale(1); filter: brightness(1) drop-shadow(0 6px 30px rgba(0,8,30,.75)); }
  100% { opacity: 1; transform: translate(-50%, -120%) scale(.7); filter: drop-shadow(0 6px 30px rgba(0,8,30,.75)); }
}
.intro.is-frase .intro-logo-centro { opacity: 0 !important; animation: none; transition: opacity .3s; }

/* la decisión, con tiempo para responder */
.pregunta { position: absolute; z-index: 4; left: 0; right: 0; top: 52%; display: grid; justify-items: center; gap: 22px; padding: 0 var(--gutter);
  animation: subir .5s var(--salida); }
.pregunta[hidden] { display: none; }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } }
.pregunta-q { margin: 0; text-align: center; font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: .004em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.pregunta-opts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.choice-btn {
  min-width: 180px; height: 52px; padding: 0 24px; border: 0; border-radius: 6px;
  background: rgba(7,8,10,.55); box-shadow: rgba(255,255,255,.08) 0 1px 0 0 inset, rgba(255,255,255,.35) 0 0 0 1px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 1rem; font-weight: 500;
  transition: background .2s, color .2s, transform .2s var(--salida);
}
.choice-btn:hover, .choice-btn:focus-visible { background: var(--niebla); color: var(--hierro); transform: scale(1.03); }
.choice-btn.is-picked { background: #fff; color: var(--hierro); transform: scale(1.06); }
.pregunta-tiempo { width: min(400px, 80vw); height: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.pregunta-tiempo span { display: block; height: 100%; background: #fff; transform-origin: left; }
.pregunta.is-contando .pregunta-tiempo span { animation: vaciar 8s linear forwards; }
@keyframes vaciar { to { transform: scaleX(0); } }

.intro-frase {
  position: absolute; z-index: 4; margin: 0; text-align: center; pointer-events: none;
  font-size: clamp(2.2rem, 6.4vw, 5.2rem); font-weight: 300; line-height: 1.05; letter-spacing: .004em;
  text-shadow: 0 4px 40px rgba(0,0,0,.45);
}
.intro-frase strong { font-weight: 600; }
.intro-frase .p { display: inline-block; margin: 0 .1em; }

/* =========================================================
   BARRA (vidrio)
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(4,5,6,.6); backdrop-filter: blur(48px) saturate(1.4); -webkit-backdrop-filter: blur(48px) saturate(1.4);
  border-bottom: 1px solid var(--borde);
}
.topbar-logo img { width: 100px; height: auto; }
.topbar-nav { display: flex; align-items: center; gap: 28px; font-size: .875rem; font-weight: 500; color: var(--texto-2); }
.topbar-nav a { text-decoration: none; transition: color .2s; }
.topbar-nav a:hover { color: var(--texto); }
.solo-menu { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.hamburguesa { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.hamburguesa span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--texto); transition: transform .3s var(--salida); }
.hamburguesa span:first-child { top: 18px; } .hamburguesa span:last-child { top: 25px; }
.hamburguesa[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   ELIGE A TU MAESTRO
   ========================================================= */
.select {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column;
  padding: 26px var(--gutter) 22px;
  background: var(--canvas);
}
.select-tunel {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .7;
  -webkit-mask-image: radial-gradient(46% 58% at 56% 50%, #000 0%, rgba(0,0,0,.55) 45%, transparent 80%);
  mask-image: radial-gradient(46% 58% at 56% 50%, #000 0%, rgba(0,0,0,.55) 45%, transparent 80%);
}
.select-tunel.sin-webgl, .intro-tunel.sin-webgl { background: conic-gradient(#0074ff, #3fe0ff, #7b5cff, #ff3fa4, #ff2d46, #0074ff); filter: blur(60px); }
.select-sombra { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,5,6,.65) 0%, transparent 25%, transparent 60%, rgba(4,5,6,.95) 100%); }

.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--texto-2); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 12px var(--acento); transition: background .3s, box-shadow .3s; }
.select-pitch {
  position: relative; z-index: 3; margin: 22px 0 0; max-width: 15em;
  font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.12; font-weight: 300; letter-spacing: .004em; color: var(--texto-2);
}
.select-pitch strong { display: block; font-weight: 600; color: var(--texto); }

.stage { position: relative; flex: 1; min-height: clamp(340px, 54vh, 640px); margin-top: -40px; touch-action: pan-y; user-select: none; cursor: grab; }
.stage.is-arrastre { cursor: grabbing; }

.fighter { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.fighter.is-active { opacity: 1; visibility: visible; }
.fighter-luz {
  position: absolute; left: 50%; top: 46%; width: min(820px, 120%); aspect-ratio: 1.3; will-change: transform;
  transform: translate(calc(-50% + var(--px, 0) * 40px + var(--lado) * -8%), calc(-50% + var(--py, 0) * 24px));
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 70%, transparent), transparent 75%);
  filter: blur(30px); opacity: .55; transition: background .4s;
}
.fighter-figure {
  position: absolute; left: 56%; bottom: 0; margin: 0; height: 96%; aspect-ratio: 400 / 500;
  transform: translateX(calc(-50% + var(--dx, 0px) + var(--px, 0) * -14px)) translateY(calc(var(--py, 0) * -8px)) rotate(calc(var(--dxn, 0) * .02deg));
}
.silueta { width: 100%; height: 100%; overflow: visible; }
.silueta path {
  fill: #030406;
  filter: drop-shadow(calc(var(--lado) * 3px) -2px 0 var(--acento)) drop-shadow(calc(var(--lado) * 10px) -6px 18px var(--acento));
  transition: filter .4s;
}
.mira { position: absolute; left: 50%; top: 26%; width: 120px; height: 120px; transform: translate(-50%, -50%); pointer-events: none; }
.mira::before, .mira::after { content: ""; position: absolute; background: rgba(255,255,255,.3); }
.mira::before { left: 0; right: 0; top: 50%; height: 1px; } .mira::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.fighter-figure figcaption { position: absolute; left: 50%; top: 26%; transform: translate(-50%, -50%); padding: 4px 8px; background: rgba(4,5,6,.8); color: var(--texto-2); font-size: .75rem; white-space: nowrap; }

.fighter-placa { position: absolute; left: 56%; bottom: 7%; z-index: 2; transform: translateX(calc(-50% + var(--dx, 0px) * 1.35 + var(--px, 0) * 22px)); }
.fighter-nombre {
  margin: 0; white-space: nowrap; line-height: .95;
  font-size: clamp(4rem, 12vw, 10.5rem); font-weight: 600; letter-spacing: -.01em;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.65));
}
.fighter-nombre .l { background-image: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

.flecha {
  position: absolute; top: 50%; z-index: 4; width: 48px; height: 48px; display: grid; place-items: center;
  transform: translateY(-50%); border: 0; border-radius: 6px; background: rgba(7,8,10,.5); color: var(--texto); box-shadow: var(--tecla);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, transform .2s var(--salida);
}
.flecha:hover { background: rgba(255,255,255,.1); }
.flecha:active { transform: translateY(-50%) scale(.94); }
.flecha.prev { left: 0; } .flecha.next { right: 0; }

.ficha {
  position: relative; z-index: 3; width: min(620px, 100%); margin: -14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px; background: rgba(7,8,10,.72); box-shadow: var(--tecla);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.ficha-clase { margin: 0 0 2px; color: var(--texto-2); font-size: .875rem; }
.ficha-nombre { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: .004em; }
.ficha-der { flex: none; }
.btn-elegir { min-width: 140px; }

.progreso { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(620px, 100%); margin: 16px auto 0; }
.progreso-barras { display: flex; gap: 6px; flex: 1; }
.progreso-barras span { height: 2px; flex: 1; background: rgba(255,255,255,.16); transition: background .3s; }
.progreso-barras span.is-on { background: var(--texto); }
.hint { margin: 0; color: var(--texto-3); font-size: .8rem; }

/* cambio de maestro: entra deslizándose, con un frenado y una pausa */
.fighter.entra .fighter-figure { animation: figuraEntra .62s var(--salida) both; }
.fighter.entra .fighter-luz { animation: luzEntra .8s var(--salida) both; }
.fighter.sale { opacity: 1; visibility: visible; }
.fighter.sale .fighter-figure, .fighter.sale .fighter-placa { animation: sale .34s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes figuraEntra { from { opacity: 0; filter: blur(14px) brightness(2.2); translate: calc(var(--dir, 1) * 120px) 0; scale: 1.06; } }
@keyframes luzEntra { from { opacity: 0; scale: .6; } 40% { opacity: .95; } }
@keyframes sale { to { opacity: 0; filter: blur(12px); translate: calc(var(--dir, 1) * -140px) 0; } }
.stage.is-arrastre .fighter-figure, .stage.is-arrastre .fighter-placa { transition: none; }
.stage.suelta .fighter-figure, .stage.suelta .fighter-placa { transition: transform .5s var(--salida); }

/* =========================================================
   SECCIONES (suben al entrar, sin esquinas redondas)
   ========================================================= */
.hoja {
  position: relative; z-index: 1; padding: clamp(80px, 10vw, 120px) 0;
  background: var(--canvas); border-top: 1px solid var(--borde);
}
.hoja-dentro { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@supports (animation-timeline: view()) {
  .hoja-dentro { animation: hojaSube linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes hojaSube { from { opacity: .2; transform: translateY(70px); } }
}
.h-grande { margin: 0; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: .004em; line-height: 1.12; }
.lead { margin: 10px 0 0; color: var(--texto-2); font-size: 1.125rem; }

/* ---------- cursos: como el inicio de YouTube ---------- */
.cursos-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; margin: 32px 0 28px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--grafito); color: #f1f1f1; font-weight: 500; font-size: .875rem; transition: background .2s; }
.chip:hover { background: #2a2b2e; }
.chip.is-active { background: var(--niebla); color: #0f0f0f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 16px; }
.card { position: relative; background: none; border: 0; padding: 0; text-align: left; display: grid; gap: 12px; }
.card::before { /* luz bajo el cursor */
  content: ""; position: absolute; inset: -10px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--c) 26%, transparent), transparent 70%);
}
.card:hover::before { opacity: 1; }
.card .thumb { transition: transform .35s var(--salida); }
.card:hover .thumb { transform: scale(1.02); }
.card-meta { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.card-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; background: var(--c); color: #fff; }
.card-titulo { margin: 0; font-weight: 500; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { margin: 4px 0 0; color: var(--texto-2); font-size: .875rem; }

/* miniatura: imita las miniaturas de Dr. Feed */
.thumb {
  --c: var(--azul);
  position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 100%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, #0b1630, #030509);
  box-shadow: rgba(255,255,255,.06) 0 0 0 1px inset;
}
.thumb-txt {
  position: absolute; left: 6%; top: 10%; width: 62%; margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 18px rgba(0,0,0,.5);
}
.thumb-txt b { color: var(--c2, var(--rojo)); font-weight: 700; }
.thumb-sil { position: absolute; right: -4%; bottom: -14%; width: 44%; }
.thumb-sil path { fill: #050a18; stroke: var(--c); stroke-width: 6; }
.thumb-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.8); font-size: .75rem; font-weight: 500; }
.thumb-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.thumb-barra span { display: block; height: 100%; width: var(--p, 0%); background: #f00; }
.thumb-estado { position: absolute; left: 8px; bottom: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.8); font-size: .75rem; font-weight: 500; }
.thumb-estado.gratis { background: #2ba640; }
.card.is-pronto .thumb { filter: saturate(.5) brightness(.75); }

/* ---------- así de fácil ---------- */
.pasos { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--borde); box-shadow: 0 0 0 1px var(--borde); }
.pasos li { position: relative; padding: 28px 24px 32px; background: var(--card); }
.pasos li::before { content: ""; position: absolute; left: 24px; top: 0; width: 32px; height: 2px; background: var(--acento); transition: background .3s; }
.pasos h3 { margin: 10px 0 6px; font-size: 1.25rem; font-weight: 600; letter-spacing: .004em; }
.pasos p { margin: 0; color: var(--texto-2); }

/* ---------- precios ---------- */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: var(--card); box-shadow: var(--tecla); }
.plan h3 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.plan-precio { margin: 14px 0 18px; font-size: 2.75rem; font-weight: 600; letter-spacing: .06em; line-height: 1; }
.plan ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--texto-2); flex: 1; }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--acento); }
.plan-destacado { background: linear-gradient(180deg, color-mix(in srgb, var(--acento) 14%, var(--card)), var(--card) 70%); box-shadow: rgba(255,255,255,.05) 0 1px 0 0 inset, color-mix(in srgb, var(--acento) 55%, transparent) 0 0 0 1px; }
.plan-badge { position: absolute; top: 0; right: 0; margin: 0; padding: 4px 10px; background: var(--acento); color: #fff; font-size: .75rem; font-weight: 500; }

/* ---------- tu cuenta: como ver un video en YouTube ---------- */
.watch { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 40px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(60% 80% at 70% 60%, color-mix(in srgb, var(--acento) 28%, transparent), transparent), linear-gradient(160deg, #0b1630, #030509); }
.play { width: 68px; height: 48px; border-radius: 12px; border: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; transition: background .2s; }
.play:hover { background: #f00; }
.video-dur { position: absolute; right: 10px; bottom: 12px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.8); font-size: .75rem; font-weight: 500; }
.video-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.video-barra span { display: block; width: 34%; height: 100%; background: #f00; }
.watch-main h3 { margin: 14px 0 12px; font-size: 1.25rem; font-weight: 600; }
.watch-canal { display: flex; align-items: center; gap: 12px; }
.watch-canal-nombre { margin: 0; font-weight: 500; }
.watch-canal-sub { margin: 0; color: var(--texto-2); font-size: .8rem; }
.watch-canal .btn { margin-left: auto; }
.watch-lista { background: var(--card); box-shadow: var(--tecla); }
.watch-lista-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.watch-lista-head p { margin: 0; font-weight: 600; }
.watch-lista-head .watch-lista-avance { color: var(--texto-2); font-weight: 400; font-size: .85rem; }
.watch-lista ol { list-style: none; margin: 0; padding: 6px 0; }
.watch-lista li { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: .9rem; color: #ddd; }
.watch-lista li.actual { background: rgba(255,255,255,.07); }
.mini { position: relative; flex: none; width: 96px; aspect-ratio: 16/9; border-radius: 4px; background: linear-gradient(160deg, #0b1630, #030509); overflow: hidden; }
.hecha .mini::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #f00; }

/* ---------- pie ---------- */
.pie { position: relative; z-index: 1; border-top: 1px solid var(--borde); }
.pie-dentro { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter); display: grid; gap: 16px; justify-items: start; }
.pie-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; color: var(--texto-2); }
.pie-legal { margin: 0; color: var(--texto-3); font-size: .8rem; max-width: 70ch; }

/* ---------- modales y aviso ---------- */
.modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: 28px;
  border: 0; background: var(--card); color: var(--texto); box-shadow: var(--tecla), rgba(0,0,0,.6) 0 30px 80px; }
.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.modal[open] { animation: modalEntra .4s var(--salida); }
@keyframes modalEntra { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal h2 { margin: 18px 0 18px; font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.modal-cerrar { position: absolute; top: 12px; right: 12px; margin: 0; }
.modal-cerrar button { width: 34px; height: 34px; border-radius: 6px; border: 0; background: rgba(255,255,255,.07); font-size: 1.2rem; }
.btn-google { width: 100%; }
.modal-nota { margin: 14px 0 0; color: var(--texto-3); text-align: center; font-size: .8rem; }
.modal-curso { width: min(640px, calc(100vw - 32px)); }
.modal-curso h2 { margin: 16px 0 4px; font-size: 1.25rem; }
.mc-sub { margin: 0 0 12px; color: var(--texto-2); font-size: .9rem; }
#mcResumen { color: #ddd; }
.mc-clases { margin: 0 0 22px; padding-left: 1.3em; color: var(--texto-2); display: grid; gap: 4px; }
.mc-compra { display: grid; gap: 10px; }
.mc-seguro { margin: 0; color: var(--texto-3); font-size: .82rem; text-align: center; }
.mc-aviso { display: flex; gap: 8px; }
.mc-aviso input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 6px; border: 0; background: rgba(255,255,255,.05); box-shadow: var(--tecla); color: var(--texto); font: inherit; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 130; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 6px; background: var(--niebla); color: #0f0f0f; font-weight: 500; font-size: .9rem;
  box-shadow: 0 20px 40px -10px #000; transition: opacity .25s, transform .35s var(--salida); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* luz que llena la pantalla al elegir maestro */
.flor-elegir { position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: radial-gradient(circle at var(--cx) var(--cy), #fff 0%, color-mix(in srgb, var(--acento) 70%, #fff) 14%, var(--acento) 40%, var(--canvas) 85%);
  clip-path: circle(0 at var(--cx) var(--cy)); }
.flor-elegir.is-on { clip-path: circle(150% at var(--cx) var(--cy)); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1); }
.flor-elegir.is-out { opacity: 0; transition: opacity .45s ease; clip-path: circle(150% at var(--cx) var(--cy)); }

/* =========================================================
   CELULAR
   ========================================================= */
@media (max-width: 860px) {
  .topbar { background: rgba(4,5,6,.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar-nav { position: fixed; top: 64px; left: 0; right: 0; display: grid; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(4,5,6,.97); border-bottom: 1px solid var(--borde); font-size: 1rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--salida), visibility .25s; }
  .topbar-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .topbar-nav a { padding: 14px 0; border-bottom: 1px solid var(--borde); }
  .solo-menu { display: block; }
  .link-entrar { display: none; }
  .hamburguesa { display: block; }
  .pregunta { top: 46%; }
  .pregunta-opts { width: 100%; max-width: 420px; flex-wrap: nowrap; }
  .choice-btn { min-width: 0; flex: 1; padding: 0 12px; }
  .select { padding-top: 18px; }
  .select-pitch { margin-top: 16px; font-size: 1.75rem; }
  .stage { min-height: 50svh; margin-top: 0; }
  .fighter-figure, .fighter-placa { left: 50%; }
  .fighter-figure { height: 92%; }
  .fighter-nombre { font-size: clamp(3.4rem, 19vw, 5.6rem); }
  .flecha { width: 44px; height: 44px; background: rgba(7,8,10,.85); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .select-tunel { -webkit-mask-image: radial-gradient(70% 50% at 50% 55%, #000 0%, transparent 80%); mask-image: radial-gradient(70% 50% at 50% 55%, #000 0%, transparent 80%); }
  .ficha { padding: 16px; margin-top: -8px; background: rgba(7,8,10,.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .watch { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hoja-dentro { animation: none !important; }
}
