/* Team Vitals · web. Minimalista: negro de estadio, líneas finas y un solo acento lima. */
:root {
  --bg: #07090f;
  --surface: #0e1118;
  --surface2: #161a24;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #8a93a6;
  --dim: #545c6e;
  --pulse: #c6ff3d;
  --ink: #0b1200;
  --coral: #ff5a6e;
  --gold: #ffc53d;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pulse); color: var(--ink); }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.hl { color: var(--pulse); }

/* ---------- Botones y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pulse); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none;
  padding: 15px 28px; border-radius: 999px; letter-spacing: -0.1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -12px rgba(198, 255, 61, 0.6); }
.btn-sm { padding: 9px 18px; font-size: 13px; background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn-sm:hover { border-color: var(--pulse); color: var(--pulse); box-shadow: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pulse); animation: beat 1.6s infinite; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 15, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.3px; }
.logo.small { font-size: 15px; }
.logo-mark { width: 26px; height: 26px; display: grid; place-items: center; }
.logo-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--pulse); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: none; gap: 32px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav .btn-sm { margin-left: auto; }
/* Páginas de texto: selector de idioma a la derecha y "Volver a la web" a su lado (en móvil, solo la flecha) */
.nav-text .lang { margin-left: auto; }
.nav-text .btn-sm { margin-left: 0; gap: 8px; }
@media (max-width: 520px) { .nav-text .back-text { display: none; } .nav-text .btn-sm { padding: 9px 14px; } }
@media (min-width: 860px) { .nav-links { display: flex; } .nav .btn-sm { margin-left: 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; left: 50%; top: -260px; width: 900px; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.09), transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 8vw, 100px); line-height: 0.96; letter-spacing: -0.045em; margin: 22px 0 24px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 480px; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
/* Botón del App Store y aviso de Android (portada, arriba y al final) */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta .stores { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--pulse); color: var(--ink); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -12px rgba(198, 255, 61, 0.6); }
.store-btn:active { transform: scale(0.97); }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; margin-top: -3px; }
.store-btn span { text-align: left; line-height: 1.1; }
.store-btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; }
.store-btn b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.store-soon { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--muted); font-size: 14px; font-weight: 600; }
.store-soon .ping { margin: 0; }

/* Línea de pulso. Móvil: franja propia de lado a lado entre el texto y el móvil. */
.pulse-band { position: relative; height: 120px; width: 100vw; margin-left: calc(50% - 50vw); pointer-events: none; }
.pulse-line { width: 100%; height: 100%; }
.pulse-line, .cta-line { overflow: visible; clip-path: inset(-20px 100% -20px 0); animation: wipe 2.6s cubic-bezier(0.6, 0, 0.3, 1) 0.4s forwards; }
.pulse-line path, .cta-line path {
  fill: none; stroke: var(--pulse); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(198, 255, 61, 0.7));
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 110px; }
  .hero-in { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  /* Escritorio: cruza la pantalla por detrás del móvil, bajo el texto. */
  .pulse-band { position: absolute; z-index: 0; bottom: -100px; height: 200px; margin: 0; left: calc(50% - 50vw); }
}

/* Móvil de muestra */
.phone-wrap { position: relative; z-index: 1; justify-self: center; width: min(310px, 82vw); }
.phone {
  position: relative; border-radius: 46px; padding: 10px; background: #0b0e15;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line2), 0 0 120px -40px rgba(198, 255, 61, 0.35);
  animation: float 7s ease-in-out infinite;
}
.notch { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 92px; height: 25px; border-radius: 20px; background: #000; z-index: 2; }
.screen { position: relative; border-radius: 37px; background: var(--bg); overflow: hidden; height: calc((min(310px, 82vw) - 20px) * 748 / 390 + 44px); }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 16px;
  background: rgba(14, 17, 24, 0.85); border: 1px solid var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8); font-size: 12px; line-height: 1.25;
}
.float b { display: block; font-weight: 800; }
.float small { color: var(--muted); font-size: 11px; }
.float .big { font-family: var(--display); font-size: 26px; color: var(--pulse); line-height: 1; padding: 0 2px; }
.float { transition: opacity 0.3s ease, scale 0.3s ease, filter 0.3s ease; }
.float.swap { opacity: 0; scale: 0.85; filter: blur(4px); }
.f1 { left: -40px; top: 36%; animation: float 6s ease-in-out infinite 0.6s; }
.f2 { right: -36px; bottom: 20%; animation: float 6.5s ease-in-out infinite 1.2s; }
@media (max-width: 480px) { .f1 { left: -10px; } .f2 { right: -10px; } }
.ping { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); animation: ping 1.6s infinite; margin: 0 4px; flex-shrink: 0; }


/* ---------- Demo animada del móvil ---------- */
.screen::before { content: ''; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 50px; background: linear-gradient(var(--bg) 65%, transparent); pointer-events: none; }
@media (min-width: 960px) {
  /* Las tarjetas flotantes asoman por los lados sin tapar lo que se toca */
  .float { white-space: nowrap; }
  .f1 { left: auto; right: calc(100% - 72px); top: 40%; }
  .f2 { right: auto; left: calc(100% - 72px); bottom: 24%; }
}
/* Pantallas medianas: sin sitio a la derecha del móvil, la segunda va dentro */
@media (min-width: 960px) and (max-width: 1199px) { .f2 { left: auto; right: 12px; } }
.status { position: absolute; z-index: 3; top: 21px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; pointer-events: none; }
.status i { width: 20px; height: 9px; border: 1px solid var(--muted); border-radius: 3px; padding: 1px; }
.status i::before { content: ''; display: block; height: 100%; width: 75%; background: var(--text); border-radius: 1px; }
.slide { position: absolute; inset: 0; overflow: hidden; background: var(--bg); transform: translateX(105%); transition: transform 0.75s cubic-bezier(0.75, 0, 0.2, 1), opacity 0.75s ease; }
.slide.on { transform: none; z-index: 1; }
.slide.out { transform: translateX(-35%); opacity: 0; }
.slide.snap, .slide.reset, .slide.reset * { transition: none !important; }
.touch { position: absolute; z-index: 4; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: 0 0 24px rgba(255, 255, 255, 0.25); opacity: 0; pointer-events: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--line2); cursor: pointer; transition: width 0.35s ease, background 0.35s ease; }
.pager button.on { width: 22px; background: var(--pulse); }
.pager button:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; }


/* Capturas de la app: cada paso es una imagen encima de la anterior; los .hot marcan dónde toca el dedo */
.shot { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; overflow: hidden; }
.shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.shot .fr { opacity: 0; transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
.shot .fr.on { opacity: 1; }
.shot .hot { position: absolute; width: 0; height: 0; }
.shot .list { transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1); }
.slide.scrolled .list { transform: translateY(-30%); }


/* ---------- Marquesina ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
}
.marquee-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pulse); margin: 0 clamp(22px, 3vw, 40px); }
.marquee-track span.o { color: transparent; -webkit-text-stroke: 1px var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 110px 0 0; }
.sec-head { max-width: 760px; margin: 0 0 48px; }
.sec-head h2, .cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 68px); line-height: 1; letter-spacing: -0.04em; margin: 16px 0 0; }

/* Funciones: bento de piezas de la app que se pueden tocar (play.js). No guardan nada. */
.sec-lead { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 18px 0 0; max-width: 560px; }
.bento { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'live' 'att' 'rate' 'poll' 'rank' 'stat' 'mins' 'sugg' 'match' 'vs'; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'live live' 'att rate' 'stat stat' 'rank rank' 'poll sugg' 'mins mins' 'match match' 'vs vs'; } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: 'live live att att' 'live live rate poll' 'rank rank stat stat' 'mins mins sugg sugg' 'match match vs vs'; } }
.c-live { grid-area: live; }
.c-att { grid-area: att; }
.c-rate { grid-area: rate; }
.c-poll { grid-area: poll; }
.c-rank { grid-area: rank; }
.c-stat { grid-area: stat; }
.c-mins { grid-area: mins; }
.c-sugg { grid-area: sugg; }
.c-match { grid-area: match; }
.c-vs { grid-area: vs; }

.cell { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px 22px 22px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.cell::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(198, 255, 61, 0.07), transparent 60%);
}
@media (hover: hover) { .cell:hover::before { opacity: 1; } }
.cell h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 6px; padding-right: 84px; }
.cell p { color: var(--muted); font-size: 14.5px; margin: 0; }
.c-live h3 { font-size: clamp(24px, 2.6vw, 32px); }
.viz { position: relative; margin-top: auto; padding-top: 22px; }

/* "Toca" / "Arrastra": invita a probar y se va al primer toque */
.try {
  position: absolute; top: 22px; right: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pulse);
  background: rgba(198, 255, 61, 0.08); border: 1px solid rgba(198, 255, 61, 0.22); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.try::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pulse); animation: ping 1.6s infinite; }
.cell.used .try { opacity: 0; transform: translateY(-4px) scale(0.96); }

.bento button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease-out; }
.bento button:active { transform: scale(0.97); }
.bento button:focus-visible, .rate-track:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
.g-goal { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.g-opp { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.g-card { width: 9px; height: 12px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }

/* Directo */
.board { border-radius: 20px; background: var(--bg); border: 1px solid var(--line); padding: 16px 18px 22px; transition: border-color 0.5s ease, box-shadow 0.5s ease; }
.board.flash-us { border-color: rgba(198, 255, 61, 0.6); box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.08), 0 24px 70px -30px rgba(198, 255, 61, 0.55); transition-duration: 0.12s; }
.board.flash-them { border-color: rgba(255, 90, 110, 0.55); box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.08); transition-duration: 0.12s; }
.b-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pulse); }
.b-top .ping { margin: 0; }
.b-min { margin-left: auto; font-family: var(--display); font-size: 15px; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.b-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 14px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.crest { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; color: var(--ink); background: var(--pulse); }
.crest.alt { background: var(--surface2); color: var(--muted); border: 1px solid var(--line2); }
.b-score b { font-family: var(--display); font-size: clamp(56px, 7vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; display: flex; gap: 14px; font-variant-numeric: tabular-nums; }
.b-score em { font-style: normal; color: var(--dim); }
.b-score [data-us], .b-score [data-them] { display: inline-block; }
.pop { animation: pop 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.b-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.b-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 8px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; font-weight: 800; white-space: nowrap; transition: transform 0.12s ease-out, border-color 0.2s ease; }
@media (hover: hover) { .b-actions button:hover { border-color: var(--line2); } }
.b-actions [data-act='goal'] { background: var(--pulse); color: var(--ink); border-color: var(--pulse); }
.feed { list-style: none; margin: 14px 0 0; padding: 0; display: grid; align-content: start; }
/* En escritorio el directo ocupa dos filas: el marcador va arriba y la cronología llena el resto */
.c-live .viz { flex: 1; display: flex; flex-direction: column; margin-top: 0; }
.c-live .feed { flex: 1; overflow: hidden; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.feed li b { width: 30px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 800; }
.feed li .g-goal { color: var(--pulse); }
.feed li.new { animation: rowIn 0.28s cubic-bezier(0.23, 1, 0.32, 1); }

/* Asistencia */
.att-q { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.att-bar { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; }
.att-bar i { flex: var(--n, 1) 1 0; min-width: 4px; transition: flex-grow 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.att-bar .yes { background: var(--pulse); }
.att-bar .maybe { background: var(--gold); }
.att-bar .no { background: var(--coral); }
.att-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.att-nums b { font-weight: 800; font-variant-numeric: tabular-nums; }
.att-nums .yes b { color: var(--pulse); }
.att-nums .maybe b { color: var(--gold); }
.att-nums .no b { color: var(--coral); }
.att-me { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.me { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; font-weight: 900; border: 2px solid var(--pulse); color: var(--pulse); }
.seg3 { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg3 button { position: relative; z-index: 1; height: 38px; padding: 0 4px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s ease, transform 0.12s ease-out; }
.seg3 button[aria-checked='true'] { color: var(--ink); }
.seg-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--pulse); opacity: 0;
  transform: translateX(calc(var(--i, 0) * 100%)) scale(0.9); transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s ease, background-color 0.25s ease;
}
.seg3[data-v] .seg-pill { opacity: 1; transform: translateX(calc(var(--i, 0) * 100%)); }
.seg3[data-v='maybe'] .seg-pill { background: var(--gold); }
.seg3[data-v='no'] .seg-pill { background: var(--coral); }

/* Notas */
.rate-head { display: flex; align-items: center; gap: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--line2); font-size: 12px; font-weight: 900; color: var(--muted); }
.rate-who { flex: 1; min-width: 0; line-height: 1.25; }
.rate-who b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate-who small { color: var(--muted); font-size: 12.5px; }
.rate-head output { font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--c, var(--pulse)); font-variant-numeric: tabular-nums; min-width: 1.3em; text-align: right; }
.rate-track {
  --p: 0.78; position: relative; height: 46px; margin-top: 16px; border-radius: 14px; background-color: var(--bg); border: 1px solid var(--line); touch-action: none; cursor: grab; overflow: hidden; outline: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%);
}
.rate-track.dragging { cursor: grabbing; }
.rate-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: var(--c, var(--pulse)); opacity: 0.18; transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease; }
.rate-thumb { position: absolute; top: 6px; bottom: 6px; width: 24px; left: calc(var(--p) * (100% - 36px) + 6px); border-radius: 9px; background: var(--c, var(--pulse)); box-shadow: 0 6px 20px -6px var(--c, var(--pulse)); transition: left 0.28s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease; }
.rate-track.dragging .rate-fill, .rate-track.dragging .rate-thumb { transition: background-color 0.2s ease; }
.rate-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.rate-foot [data-word] { font-weight: 800; font-size: 14px; color: var(--c, var(--pulse)); transition: color 0.2s ease; }
.rate-foot button { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 2px; }
@media (hover: hover) { .rate-foot button:hover { color: var(--text); } }
.rate-who.swap { animation: rowIn 0.28s cubic-bezier(0.23, 1, 0.32, 1); }

/* Encuesta */
.poll-q { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.poll-list { display: grid; gap: 8px; }
.bento .poll-o { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; font-size: 13.5px; text-align: left; transition: border-color 0.2s ease, transform 0.12s ease-out; }
.poll-o i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--w, 0)); background: rgba(255, 255, 255, 0.06); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease; }
.poll-o em, .poll-o b { position: relative; font-style: normal; }
.poll-o em { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poll-o b { font-weight: 800; font-variant-numeric: tabular-nums; }
.bento .poll-o.mine { border-color: var(--pulse); }
.poll-o.mine i { background: rgba(198, 255, 61, 0.16); }
.poll-o.mine em::before { content: '✓  '; color: var(--pulse); font-weight: 900; }
.poll-n { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; }

/* Clasificación */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.rank-list li.first { border-color: rgba(198, 255, 61, 0.35); }
.rank-list .pos { width: 18px; color: var(--dim); font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-list li.first .pos { color: var(--pulse); }
.rank-list .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { font-style: normal; font-size: 12px; line-height: 1; font-weight: 800; color: var(--pulse); opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
.delta.show { opacity: 1; transform: none; }
.rank-list li > b { width: 40px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.bento .sim { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--pulse); color: var(--ink); font-weight: 800; font-size: 14px; }
.sim .g-goal { width: 8px; height: 8px; }

/* Jugador */
.st-tabs { display: flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.st-tabs button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--muted); transition: background-color 0.2s ease, color 0.2s ease, transform 0.12s ease-out; }
.st-tabs [aria-selected='true'] { background: var(--surface2); color: var(--text); }
/* 13/11/2026 PL: la ficha del jugador de la app: a la izquierda quién es, sus cifras y sus logros; a la derecha su gráfica */
.c-stat .viz { flex: 1; display: grid; gap: 22px; }
@media (min-width: 720px) { .c-stat .viz { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; } }
.pl-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pl-pick button { font-size: 13.5px; }
.pl-pick button[aria-selected='true'] { color: var(--ink); }
.pl-head { --c: var(--coral); display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-head.swap { animation: rowIn 0.28s cubic-bezier(0.23, 1, 0.32, 1); }
.pl-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface2); border: 2px solid var(--c); font-size: 14px; font-weight: 900; color: var(--text); transition: border-color 0.25s ease; }
.pl-who { min-width: 0; line-height: 1.25; }
.pl-who b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-who small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-who small span { color: var(--c); font-weight: 800; }
.pl-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.pl-nums div { padding: 12px 8px 11px; text-align: center; min-width: 0; }
.pl-nums div + div { border-left: 1px solid var(--line); }
.pl-nums b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--c, var(--text)); font-variant-numeric: tabular-nums; transition: color 0.25s ease; }
.pl-nums small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; }
.pl-bh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pl-bh b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255, 197, 61, 0.14); color: var(--gold); font-size: 11.5px; letter-spacing: 0; }
.pl-brow { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; }
.bento .pl-b { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 44px; padding: 2px 0 0; transition: transform 0.12s ease-out, opacity 0.2s ease; }
.pl-b span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); color: var(--dim); transition: box-shadow 0.2s ease; }
.pl-b svg { width: 20px; height: 20px; fill: currentColor; }
.pl-b i { width: 34px; height: 4px; border-radius: 99px; background: var(--surface2); overflow: hidden; position: relative; }
.pl-b i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.pl-b.on span { background: linear-gradient(135deg, #ffd86b, #ff9f1c); border-color: transparent; color: var(--ink); }
.pl-b:not(.on) { opacity: 0.6; }
.pl-b[aria-pressed='true'] span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.pl-b[aria-pressed='true'] { opacity: 1; }
.pl-b.in { animation: badgeIn 0.32s cubic-bezier(0.23, 1, 0.32, 1) backwards; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(6px) scale(0.92); } }
.cell .pl-bdesc { margin-top: 10px; min-height: 2.8em; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pl-bdesc b { color: var(--text); font-weight: 800; }
.pl-bdesc em { font-style: normal; font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; }
.pl-bdesc em.on { color: var(--gold); }
.pl-chart { display: flex; flex-direction: column; min-width: 0; }
.pl-chart .st-tabs { align-self: flex-start; }
.st-chart { position: relative; flex: 1; min-height: 130px; margin-top: 18px; touch-action: pan-y; cursor: crosshair; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%); border-bottom: 1px solid var(--line); }
.st-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-chart .ln { fill: none; stroke: var(--pulse); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st-chart .area { fill: rgba(198, 255, 61, 0.08); }
.st-cross, .st-dot, .st-tip { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.st-cross { bottom: 0; width: 1px; background: var(--line2); transform: translateX(var(--x, 0)); }
.st-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.2); transform: translate(var(--x, 0), var(--y, 0)); }
.st-tip { transform: translate(var(--tx, 0), calc(var(--y, 0) - 100% - 14px)); padding: 5px 9px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--line2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-chart.scrub .st-cross, .st-chart.scrub .st-dot, .st-chart.scrub .st-tip { opacity: 1; }

/* Clasificación: filas que se tocan y desglose de puntos */
.rank-list li { cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.rank-list li.sel { border-color: var(--line2); background: var(--surface2); }
.rank-list li:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
.bd { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.bd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bd-head .av { width: 32px; height: 32px; font-size: 11px; }
.bd-head b { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-head strong { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--pulse); font-variant-numeric: tabular-nums; }
.bd-rows { display: grid; gap: 7px; }
.bd-row { display: grid; grid-template-columns: 7.5em 1fr 2.6em; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bd-row i { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; position: relative; }
.bd-row i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--pulse); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.bd-row b { text-align: right; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-hint { display: block; margin-top: 10px; color: var(--dim); font-size: 12px; }
@media (min-width: 1040px) {
  .c-rank .viz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .c-rank .rank-list { grid-column: 1; }
  .c-rank .sim { grid-column: 1; justify-self: start; }
  .c-rank .bd { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* Minutos */
.mins-tabs { width: fit-content; }
.mins-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.mins-list li { display: grid; grid-template-columns: 7.4em 1fr 3.4em; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.mins-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mins-list i { position: relative; height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.mins-list i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--pulse); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s ease; }
.mins-list li.few i::after { background: var(--coral); }
.mins-list b { text-align: right; font-variant-numeric: tabular-nums; }
.mins-list em { grid-column: 1 / -1; justify-self: start; margin: -4px 0 2px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--coral); opacity: 0; max-height: 0; transition: opacity 0.25s ease, max-height 0.25s ease; }
.mins-list li.few em { opacity: 1; max-height: 20px; }

/* Propuesta de convocatoria */
.sugg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sugg-list li { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.sugg-list .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-list small { color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pos-tag { width: 38px; text-align: center; padding: 3px 0; border-radius: 7px; font-size: 10.5px; font-weight: 900; letter-spacing: 0.04em; flex-shrink: 0; }
.pos-tag.por { color: var(--gold); background: rgba(255, 197, 61, 0.12); }
.pos-tag.def { color: #5ab8ff; background: rgba(90, 184, 255, 0.12); }
.pos-tag.med { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
.pos-tag.del { color: var(--coral); background: rgba(255, 90, 110, 0.12); }
.sugg-list .tag { font-style: normal; min-width: 0; font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 999px; opacity: 0; transform: scale(0.9); transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
.sugg-list .tag.on { opacity: 1; transform: none; }
.sugg-list .tag.t0 { background: var(--pulse); color: var(--ink); }
.sugg-list .tag.t1 { background: rgba(90, 184, 255, 0.16); color: #5ab8ff; }
.sugg-list .tag.t2 { background: rgba(255, 255, 255, 0.06); color: var(--dim); }
.sugg-list li.out { opacity: 0.55; }

/* Día de partido */
.md-card { border-radius: 18px; background: var(--bg); border: 1px solid var(--line); padding: 14px; }
.md-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.md-top b { font-size: 16px; font-weight: 800; }
.md-top span { color: var(--muted); font-size: 13px; font-weight: 600; }
.md-place { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.md-place svg { width: 14px; height: 14px; color: var(--pulse); flex-shrink: 0; }
.md-map { position: relative; height: 0; margin-top: 0; border-radius: 12px; overflow: hidden; background: #0c1322; opacity: 0; transition: height 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, margin-top 0.35s ease; }
.md-map.on { height: 90px; opacity: 1; margin-top: 12px; }
.md-map svg { width: 100%; height: 100%; }
.md-map .road { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.md-map .route { fill: none; stroke: var(--pulse); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 340; stroke-dashoffset: 340; filter: drop-shadow(0 0 5px rgba(198, 255, 61, 0.6)); }
.md-map.on .route { animation: route 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
.md-map i { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); }
.md-map .pin-a { left: 9.4%; top: 77.8%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
.md-map .pin-b { left: 85.9%; top: 13.3%; background: var(--pulse); box-shadow: 0 0 0 5px rgba(198, 255, 61, 0.2); opacity: 0; transition: opacity 0.2s ease 1.2s; }
.md-map.on .pin-b { opacity: 1; }
.bento .md-go { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; margin-top: 12px; padding: 0 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.md-go svg { width: 18px; height: 18px; color: var(--pulse); }
.md-eta { position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(7, 9, 15, 0.85); color: var(--pulse); font-size: 12px; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease 1.2s; }
.md-map.on .md-eta { opacity: 1; }
.wx-hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.bento .wx-hours button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.12s ease-out; }
.wx-hours button[aria-selected='true'] { border-color: rgba(198, 255, 61, 0.45); background: rgba(198, 255, 61, 0.06); }
.wx-hours small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.wx-hours svg { width: 28px; height: 28px; }
.wx-hours b { font-family: var(--display); font-size: 17px; font-weight: 700; }
.wx-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.wx-detail span { display: flex; align-items: baseline; gap: 6px; }
.wx-detail small { color: var(--dim); font-size: 12px; }
.wx-detail b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wx-detail p { flex-basis: 100%; margin: 0; color: var(--text); font-size: 13.5px; font-weight: 600; }
.wx-detail p.swap { animation: rowIn 0.28s cubic-bezier(0.23, 1, 0.32, 1); }
@media (min-width: 720px) { .c-match .viz { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 14px; align-items: start; } .c-match .md-card { grid-row: 1 / span 2; } .c-match .wx-hours { margin-top: 0; } }

/* Cara a cara */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.bento .vs-p { display: flex; align-items: center; gap: 10px; min-width: 0; height: 52px; padding: 0 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-align: left; transition: border-color 0.2s ease, transform 0.12s ease-out; }
.bento .vs-p.right { flex-direction: row-reverse; text-align: right; }
.vs-p b { min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-p .av { width: 32px; height: 32px; font-size: 11px; }
.vs-p:first-child .av { border-color: var(--pulse); color: var(--pulse); }
.vs-p.right .av { border-color: #5ab8ff; color: #5ab8ff; }
.vs-p.swap b, .vs-p.swap .av { animation: rowIn 0.28s cubic-bezier(0.23, 1, 0.32, 1); }
.vs-x { font-family: var(--display); font-weight: 700; color: var(--dim); font-size: 13px; }
.vs-rows { display: grid; gap: 10px; margin-top: 14px; }
.vs-row { display: grid; grid-template-columns: 3.2em 1fr auto 1fr 3.2em; align-items: center; gap: 8px; font-size: 12.5px; }
.vs-row b { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); transition: color 0.2s ease; }
.vs-row b.win { color: var(--text); }
.vs-row b:last-child { text-align: right; }
.vs-row span { color: var(--dim); font-weight: 700; text-align: center; white-space: nowrap; }
.vs-row i { position: relative; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.vs-row i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100%; border-radius: inherit; transform: scaleX(var(--w, 0)); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.vs-row i.l::after { right: 0; transform-origin: right; background: var(--pulse); }
.vs-row i.r::after { left: 0; transform-origin: left; background: #5ab8ff; }

/* Páginas de contenido (convocatorias, asistencia…) */
.nav-text .lp-nav { margin-left: auto; }
.lp-hero { position: relative; padding: 56px 0 24px; overflow: hidden; }
.lp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 75% 30%, rgba(198, 255, 61, 0.1), transparent 70%); pointer-events: none; }
.lp-hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lp-hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.lp h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.045em; margin: 20px 0 20px; }
.lp .lead { max-width: 560px; }
.lp-free { display: block; margin-top: 14px; color: var(--dim); font-size: 13px; font-weight: 600; }
.lp-shot { justify-self: center; width: min(320px, 78vw); }
.lp-shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line2), 0 0 100px -30px rgba(198, 255, 61, 0.35); }
.lp .section { padding-top: 80px; }
.lp .sec-head { margin-bottom: 28px; }
.lp .sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
@media (min-width: 860px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-steps li { counter-increment: st; padding: 24px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.lp-steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: rgba(198, 255, 61, 0.1); color: var(--pulse); font-family: var(--display); font-weight: 700; font-size: 18px; }
.lp-steps b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.lp-steps p, .lp-grid p, .lp-faq p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.lp-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-grid article { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lp-grid h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 800; }
.lp-pro { padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffd86b, #ff9f1c); color: var(--ink); font-size: 10.5px; font-weight: 900; letter-spacing: 0.06em; }
.lp-faq details { max-width: 820px; }
.lp-faq details { border-top: 1px solid var(--line); }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; font-size: 17px; font-weight: 700; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; flex-shrink: 0; color: var(--pulse); font-family: var(--display); font-size: 26px; font-weight: 500; line-height: 1; transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: -6px 2px 20px; max-width: 680px; }
.lp-related { display: grid; gap: 10px; }
@media (min-width: 720px) { .lp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; transition: border-color 0.2s ease; }
.lp-related a:hover { border-color: var(--pulse); }
.lp-related span { color: var(--pulse); }
.lp .cta { margin-top: 40px; }

/* Desplegable "Funciones" de la cabecera (páginas de contenido) */
.drop { position: relative; }
.drop summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s ease; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary:hover, .drop[open] summary { color: var(--text); }
.drop summary:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; border-radius: 4px; }
.drop .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
.drop[open] .chev { transform: rotate(180deg); }
.drop-menu {
  position: absolute; left: -14px; top: calc(100% + 14px); width: 300px; display: grid; padding: 6px; border-radius: 16px;
  background: rgba(14, 17, 24, 0.96); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); transform-origin: top left; animation: menuIn 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links .drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.drop-menu b { display: block; font-size: 14px; font-weight: 700; }
.drop-menu small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
@media (hover: hover) { .nav-links .drop-menu a:hover { background: rgba(255, 255, 255, 0.05); } }
.nav-links .drop-menu .drop-all { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--pulse); font-size: 13.5px; font-weight: 700; }
.lp-links { margin-left: auto; }
@media (min-width: 860px) { .nav-text .lp-links + .lang { margin-left: 24px; } }
.lp-links .drop-menu { left: auto; right: -14px; transform-origin: top right; }
.nav-links .drop-menu a[aria-current] b { color: var(--pulse); }
@media (min-width: 860px) { .nav-text .lp-nav { display: none; } }
/* "Saber más" de las piezas de Funciones */
.cell .more { display: inline-flex; align-self: flex-start; gap: 6px; margin-top: 10px; color: var(--pulse); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.cell .more span { transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) { .cell .more:hover span { transform: translateX(3px); } }
/* 13/11/2026 PL: en el móvil, "Funciones" también en la cabecera (solo el desplegable), a la izquierda del idioma */
@media (max-width: 859px) {
  .nav-links:has(.drop) { display: flex; margin-left: auto; }
  .nav-links:has(.drop) > a { display: none; }
  .nav-links:has(.drop) + .lang { margin-left: 14px; }
  .drop-menu { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; transform-origin: top center; }
}

/* Selector de idioma de la cabecera */
.lang { position: relative; margin-left: auto; }
@media (min-width: 860px) { .lang { margin-left: 16px; } }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line2);
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; user-select: none; transition: border-color 0.15s ease, color 0.15s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--pulse); color: var(--pulse); }
.lang summary:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang .chev { width: 14px; height: 14px; transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
.lang[open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; display: grid; padding: 6px; border-radius: 16px;
  background: rgba(14, 17, 24, 0.94); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); transform-origin: top right; animation: menuIn 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.lang-menu small { color: var(--dim); font-weight: 800; font-size: 11px; letter-spacing: 0.06em; }
@media (hover: hover) { .lang-menu a:hover { background: rgba(255, 255, 255, 0.05); } }
.lang-menu a[aria-current], .lang-menu a[aria-current] small { color: var(--pulse); }

/* Para quién */
.split { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.side { background: var(--bg); padding: 40px 0; }
@media (min-width: 860px) { .side { padding: 48px 48px 48px 0; } .side + .side { padding: 48px 0 48px 48px; } }
.side h3 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 24px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 500; }
.side li:last-child { border-bottom: 0; }
.side li::before { content: ''; width: 16px; height: 1px; background: var(--pulse); flex-shrink: 0; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 1px solid var(--line2); padding: 24px 0 36px; }
.step-n { display: block; font-family: var(--display); font-size: clamp(64px, 8vw, 96px); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--pulse); letter-spacing: -0.05em; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 20px 0 6px; }
.steps p { color: var(--muted); margin: 0; }

/* CTA */
.cta { position: relative; padding: 140px 0 140px; text-align: center; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.08), transparent 70%);
}
.cta-line { position: absolute; left: 0; top: 40px; width: 100%; height: 120px; opacity: 0.7; }
.cta-in { position: relative; }
.cta h2 { font-size: clamp(42px, 8vw, 104px); max-width: 1000px; margin: 40px auto 20px; }
.cta p { color: var(--muted); font-size: 17px; margin: 0 0 34px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.foot-links a:hover { color: var(--text); }
.foot small { color: var(--dim); margin-left: auto; }
/* 03/10/2026 PL: selector de idioma del pie */
.foot-langs { display: flex; gap: 2px; }
.foot-langs a { color: var(--dim); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 8px; border-radius: 8px; }
.foot-langs a:hover { color: var(--text); }
.foot-langs a[aria-current] { color: var(--pulse); background: rgba(198, 255, 61, 0.08); }

/* Páginas legales */
.legal { padding: 64px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.04em; line-height: 1.02; margin: 16px 0 10px; overflow-wrap: break-word; hyphens: auto; }
.legal .updated { color: var(--dim); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-family: var(--display); font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--pulse); }
.legal .box { border: 1px solid var(--line2); border-radius: 20px; padding: 20px 22px; margin: 18px 0; }
.legal .steps-list { counter-reset: n; list-style: none; padding: 0; }
.legal .steps-list li { counter-increment: n; position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--line); }
.legal .steps-list li::before {
  content: counter(n); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--pulse); color: var(--pulse); font-weight: 700; font-size: 14px;
}

/* ---------- Animaciones ---------- */
@keyframes wipe { to { clip-path: inset(-20px 0 -20px 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.6); } 30% { transform: scale(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes route { to { stroke-dashoffset: 0; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes menuIn { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pl-b.in, .pl-head.swap { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse-line, .cta-line { clip-path: none; }
}
