/* =========================================================
   REDLINE/26 · sistema de diseño
   Móvil primero (390px) → tablet → escritorio
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-2: #0e0e13;
  --fg: #f4f1ec;
  --muted: #9a9aa6;          /* contraste 6.5:1 sobre --bg (AA) */
  --accent: #ff2d1f;
  --accent-2: #ff8a00;
  --accent-3: #ffc21a;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);

  --font-display: 'Big Shoulders Display', 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gut: clamp(1.25rem, 4.5vw, 4rem);
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sc: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
/* clip (no hidden): recorta el desborde lateral de la cinta inclinada sin crear contenedor de scroll */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1rem;
  background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.75rem;
}
.skip:focus { top: 1rem; }
.noscript { position: relative; z-index: 2; margin: calc(var(--nav-h) + 1rem) var(--gut) 0; padding: 1rem 1.2rem; border: 1px solid var(--accent-3); color: var(--accent-3); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.015em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.h2 { font-size: clamp(3.4rem, 11vw, 9.5rem); }
.eyebrow { color: var(--muted); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.eyebrow::before { content: ''; width: 2.2rem; height: 1px; background: var(--accent); }
.warn { color: var(--accent-3); }

/* split text */
/* el relleno superior deja sitio a las tildes de las mayúsculas (Á, Í…) dentro de la máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0 0.08em; margin: -0.16em 0 -0.08em; }
.wi { display: inline-block; }
.js-anim [data-split] .wi { transform: translateY(112%); }

/* ---------- Capas de atmósfera ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.fx-on #fx { opacity: 1; }
main, footer { position: relative; z-index: 1; }

.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 6px; height: 6px; background: var(--accent-3); }
.cursor__ring { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.55); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255, 45, 31, 0.18); border-color: var(--accent); }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ---------- Botones y píldoras ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500;
  background: transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: border-color 0.3s, color 0.3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: #fff; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.68rem; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid::before { background: #fff; }
.btn--solid:hover { color: var(--bg); border-color: #fff; }
.btn--xl { padding: 1.4rem 2.6rem; font-size: 0.9rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.62rem; color: var(--fg); width: fit-content;
}
.pill--hot { border-color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* ---------- Cristal + marcos de esquina ---------- */
.glass {
  position: relative; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.c { position: absolute; width: 16px; height: 16px; border: 0 solid var(--sc, var(--accent)); pointer-events: none; }
.c--tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.c--tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.c--bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.c--br { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }

/* =========================================================
   NAV + MENÚ
   ========================================================= */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100; height: var(--nav-h);
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav.is-solid { background: rgba(7, 7, 10, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav.is-hidden { transform: translateY(-101%); }
.nav__in { height: 100%; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand em { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 900; }
.brand__mark { width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%); }
.nav__links { display: none; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav__links a { position: relative; padding: 0.4rem 0; color: rgba(244, 241, 236, 0.72); transition: color 0.3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--fg); }
.nav__links a:hover::after, .nav__links a[aria-current='page']::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--fg); transition: transform 0.45s var(--ease); }
.menu-open .nav__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(7, 7, 10, 0.97);
  padding: calc(var(--nav-h) + 2rem) var(--gut) 2rem; display: flex;
  clip-path: circle(0 at calc(100% - 2.5rem) 2rem); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 2.5rem) 2rem); visibility: visible; transition: clip-path 0.8s var(--ease); }
.menu__in { display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.menu__eyebrow, .menu__foot { color: var(--muted); }
.menu ul { display: grid; gap: 0.2rem; }
.menu li { overflow: hidden; }
.menu li a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(3.4rem, 17vw, 7rem); padding: 0.1em 0; }
.menu li a small { color: var(--accent); font-size: 0.7rem; }
.menu li a[aria-current='page'] { color: var(--accent); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger, .menu { display: none; }
  .nav__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__cta { justify-self: end; }
}

/* =========================================================
   VELO DE TRANSICIÓN ENTRE PÁGINAS
   ========================================================= */
.veil {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; pointer-events: none;
  background: linear-gradient(115deg, var(--accent) 0%, #b3140b 100%);
  clip-path: polygon(0 0, 0 0, -25% 100%, 0 100%);
}
.is-entering .veil { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.veil__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.5rem, 14vw, 12rem); line-height: 0.9; color: #fff; text-align: center; letter-spacing: -0.02em; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 5rem) var(--gut) 2.2rem; isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 62% 46%, rgba(255, 45, 31, 0.5), transparent 70%),
    radial-gradient(ellipse 40% 35% at 25% 75%, rgba(255, 138, 0, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 45, 31, 0.28), transparent 70%);
}
.hero__title {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.82; letter-spacing: -0.03em;
  pointer-events: none; user-select: none; padding-bottom: 8vh;
}
.hero__title .t { display: block; font-size: clamp(5.2rem, 24vw, 21rem); white-space: nowrap; }
.hero__title .t1 { color: var(--fg); }
.hero__title .t2 { color: transparent; -webkit-text-stroke: 2px rgba(244, 241, 236, 0.85); }
.hero__title .t2 em { -webkit-text-stroke: 0; color: var(--accent); font-size: 0.92em; padding-left: 0.04em; }
.hero__track { position: absolute; z-index: 2; left: 50%; top: 46%; width: min(1120px, 135vw); translate: -50% -50%; pointer-events: none; overflow: visible; }
.hero__track .road { fill: none; stroke: rgba(244, 241, 236, 0.9); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero__track .glow { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: url(#blur); opacity: 0.95; }
.hero__track .kerb { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: 0.55; }
.trk-dot { fill: #fff; filter: drop-shadow(0 0 8px var(--accent-3)) drop-shadow(0 0 16px var(--accent)); }
.trk-dot:nth-of-type(2) { opacity: 0.55; } .trk-dot:nth-of-type(3) { opacity: 0.25; }

.hero__hud { position: absolute; z-index: 3; inset: calc(var(--nav-h) + 1.2rem) var(--gut) auto var(--gut); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hero__hud .mono { color: var(--muted); }
.hero__bottom { position: relative; z-index: 3; display: grid; gap: 1.8rem; align-items: end; }
.hero__phrases { position: relative; height: clamp(3.4rem, 9vw, 7.4rem); }
.phrase { position: absolute; left: 0; bottom: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 6.1vw, 6.4rem); line-height: 0.9; letter-spacing: -0.01em; white-space: nowrap; }
.phrase em { color: var(--accent); font-size: 1.05em; padding-right: 0.05em; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__scroll { display: none; position: absolute; right: calc(var(--gut) - 0.5rem); top: 50%; translate: 0 -50%; flex-direction: column; align-items: center; gap: 0.8rem; color: var(--muted); writing-mode: vertical-rl; }
.hero__scroll i { display: block; width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); animation: drip 2s ease-in-out infinite; transform-origin: 0 0; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__scroll { display: flex; }
  .hero__title .t2 { -webkit-text-stroke-width: 3px; }
}

/* ---------- Secciones genéricas ---------- */
.sec { position: relative; padding: clamp(5rem, 12vw, 10rem) var(--gut); }
.sec__head { margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 1500px; }
.wrap { max-width: 1500px; margin: 0 auto; }

/* =========================================================
   CUENTA ATRÁS
   ========================================================= */
.cd { padding: clamp(1.4rem, 4vw, 3rem); max-width: 1100px; --sc: var(--accent); }
.cd__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.4rem, 2vw, 1.4rem); }
.cd__grid[hidden] { display: none; }
.cd__cell { display: grid; gap: 0.5rem; text-align: center; overflow: hidden; }
.cd__cell b { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.4rem, 15vw, 11rem); line-height: 0.85; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: block; }
.cd__cell:last-child b { color: var(--accent); }
.cd__cell span { color: var(--muted); }
.cd__meta { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.9; }
.cd__status { margin-top: 0.6rem; color: var(--accent-3); }
.cd__rail { margin-top: 3rem; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.5rem; max-width: 1100px; }
.cd__rail::-webkit-scrollbar { display: none; }
.cd__rail li { position: relative; flex: 1 0 9rem; display: grid; gap: 0.3rem; padding: 1.6rem 0.8rem 0 0; border-top: 1px solid var(--line); }
.rail__dot { position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.cd__rail .is-next { border-top-color: var(--accent); }
.cd__rail .is-next .rail__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }
.rail__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.cd__rail small { color: var(--muted); }
.cd__rail b { color: var(--accent); }

/* =========================================================
   ESCENAS (sticky + scrub)
   ========================================================= */
.scenes { position: relative; overflow: hidden; --sc: var(--accent); }
.scenes__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scenes__bg i { position: absolute; inset: 0; opacity: 0; background:
  radial-gradient(ellipse 60% 55% at 78% 45%, color-mix(in srgb, var(--c) 42%, transparent), transparent 70%),
  radial-gradient(ellipse 45% 40% at 10% 95%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.scenes__hud { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); top: calc(var(--nav-h) + 0.6rem); display: none; justify-content: space-between; color: var(--muted); }
.scenes__hud b { color: var(--fg); font-weight: 500; }
.scenes__bar { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 2rem; height: 2px; background: var(--line); display: none; }
.scenes__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transform-origin: 0 50%; transform: scaleX(0); }
.scenes__list { position: relative; z-index: 2; }

/* móvil / reducido: apiladas */
.scene { position: relative; display: grid; gap: 1.8rem; padding: clamp(4rem, 12vw, 6rem) var(--gut); border-top: 1px solid var(--line); }
.scene__kicker { display: flex; align-items: center; gap: 0.6rem; color: var(--sc); margin-bottom: 1rem; }
.scene__kicker .dot { background: var(--sc); box-shadow: 0 0 10px var(--sc); }
.scene__label { font-size: clamp(5.5rem, 28vw, 17rem); line-height: 0.78; color: transparent; -webkit-text-stroke: 2px var(--sc); margin-left: -0.04em; }
.scene__headline { font-size: clamp(2.2rem, 7vw, 4.6rem); margin-top: 1.4rem; line-height: 0.92; max-width: 14ch; }
.scene__headline em { color: var(--sc); font-size: 1.05em; }
.scene__fact { margin-top: 1.4rem; color: var(--muted); max-width: 34ch; line-height: 1.8; }
.scene__card { --sc: inherit; padding: clamp(1.3rem, 3vw, 2.2rem); max-width: 520px; }
.scene__tag { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 1.4rem; }
.scene__tag span:first-child { color: var(--sc); }
.scene__leader { font-size: clamp(2.6rem, 8vw, 4.2rem); }
.scene__team { color: var(--muted); margin-top: 0.5rem; }
.scene__pts { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 1rem; }
.scene__pts .display { font-size: clamp(5rem, 20vw, 9rem); line-height: 0.8; color: var(--sc); font-variant-numeric: tabular-nums; }
.scene__pts small { color: var(--muted); }
.scene__gap { margin-top: 0.8rem; color: var(--muted); } .scene__gap b { color: var(--fg); font-weight: 500; }
.scene__bars { display: grid; gap: 0.9rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.scene__bars li { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: 0.3rem 0.8rem; }
.scene__bars li > span.mono { color: var(--muted); font-size: 0.62rem; }
.scene__bars b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; }
.scene__bars em { grid-column: 3; grid-row: 1; font-family: var(--font-mono); font-style: normal; font-size: 0.8rem; color: var(--fg); }
.bar { grid-column: 2 / 4; grid-row: 2; height: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sc); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--k, 0) * 0.12s + 0.2s); width: calc(var(--w) * 100%); }
.scene.is-active .bar i, .scene.is-in .bar i { transform: scaleX(1); }

/* escritorio: pantalla fija */
@media (min-width: 900px) {
  .scenes.is-pinned { height: 100vh; }
  .scenes.is-pinned .scenes__hud, .scenes.is-pinned .scenes__bar { display: flex; }
  .scenes.is-pinned .scenes__bar { display: block; }
  .scenes.is-pinned .scenes__list { position: absolute; inset: 0; }
  .scenes.is-pinned .scene { position: absolute; inset: 0; border: 0; padding: calc(var(--nav-h) + 3.5rem) var(--gut) 4.5rem; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }
  .scenes.is-pinned .scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease); }
  .scenes.is-pinned .scene .scene__left > * { transform: translateY(30px); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
  .scenes.is-pinned .scene.is-active .scene__left > * { transform: none; opacity: 1; }
  .scenes.is-pinned .scene.is-active .scene__left > *:nth-child(2) { transition-delay: 0.08s; }
  .scenes.is-pinned .scene.is-active .scene__left > *:nth-child(3) { transition-delay: 0.16s; }
  .scenes.is-pinned .scene.is-active .scene__left > *:nth-child(4) { transition-delay: 0.24s; }
  .scenes.is-pinned .scene__right { justify-self: end; width: 100%; max-width: 520px; }
  .scene__label { font-size: clamp(9rem, 20vw, 20rem); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .scenes.is-pinned .scene__label { font-size: clamp(6rem, 15vw, 12rem); }
  .scenes.is-pinned .scene__headline { margin-top: 0.8rem; }
  .scenes.is-pinned .scene__pts .display { font-size: 6rem; }
  .scenes.is-pinned .scene__bars { margin-top: 1rem; gap: 0.6rem; }
}

/* =========================================================
   TABS (compartidos)
   ========================================================= */
.tabs { display: inline-flex; gap: 0.4rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.tabs [role='tab'] { padding: 0.7rem 1.2rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); transition: background 0.35s, color 0.35s; }
.tabs [role='tab']:hover { color: var(--fg); }
.tabs [role='tab'][aria-selected='true'] { background: var(--fg); color: var(--bg); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.4rem; }

/* =========================================================
   ÚLTIMA CARRERA
   ========================================================= */
.lr { background: linear-gradient(var(--bg), var(--bg-2) 50%, var(--bg)); }
.lr__panel { --sc: var(--accent); }
.lr-table { display: grid; border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 3.2rem 1fr auto; grid-template-areas: 'pos name pts' 'pos gap gap'; align-items: center; gap: 0.1rem 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); transition: background 0.3s, padding 0.4s var(--ease); }
.lrow:hover { background: rgba(255, 255, 255, 0.03); padding-left: 0.6rem; }
.lrow__pos { grid-area: pos; font-size: 2.4rem; color: var(--muted); }
.lrow.is-podium .lrow__pos { color: var(--sc); }
.lrow__name { grid-area: name; display: grid; }
.lrow__name b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.2rem); text-transform: uppercase; line-height: 1; letter-spacing: 0.005em; }
.lrow__name small { color: var(--muted); font-size: 0.6rem; margin-top: 0.3rem; }
.lrow__gap { grid-area: gap; color: var(--muted); }
.lrow__pts { grid-area: pts; color: var(--fg); }
.lr-note { margin-top: 1.6rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between; }
.lr-note span:first-child { color: var(--accent-3); }
.lr-partial { color: var(--muted); margin-top: 1.6rem; }
.podium { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: end; }
.podium__step { padding: 1.6rem 1.4rem; display: grid; gap: 0.4rem; align-content: end; }
.podium__step--1 { min-height: 260px; border-color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); }
.podium__step--2 { min-height: 200px; } .podium__step--3 { min-height: 160px; }
.podium__pos { font-size: clamp(5rem, 14vw, 9rem); color: var(--sc); line-height: 0.8; }
.podium__name { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.podium__step small { color: var(--muted); font-size: 0.6rem; }
.podium__step--1 { order: -1; }
@media (min-width: 900px) {
  .podium { grid-template-columns: 1fr 1.2fr 1fr; }
  .podium__step--1 { order: 0; }
}

/* =========================================================
   CLASIFICACIÓN
   ========================================================= */
.st__list { --sc: var(--accent); display: grid; border-top: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 2.4rem 1fr auto; grid-template-areas: 'pos name pts' 'bar bar bar'; align-items: center; gap: 0.6rem 0.8rem; padding: 1rem 0 0.9rem; border-bottom: 1px solid var(--line); }
.srow__pos { grid-area: pos; color: var(--muted); }
.srow:first-child .srow__pos { color: var(--sc); }
.srow__name { grid-area: name; display: grid; gap: 0.2rem; }
.srow__name b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4.6vw, 2.4rem); text-transform: uppercase; line-height: 1; }
.srow__name small { color: var(--muted); font-size: 0.58rem; }
.srow__bar { grid-area: bar; height: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.srow__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--sc); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 0.05s); }
.st__list.is-in .srow__bar i { transform: scaleX(1); }
.srow__pts { grid-area: pts; text-align: right; display: grid; }
.srow__pts b { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.srow__pts small { color: var(--muted); font-size: 0.58rem; }
.st__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; margin-top: 1.4rem; color: var(--muted); }
@media (min-width: 900px) {
  .srow { grid-template-columns: 3rem minmax(0, 24rem) 1fr 7rem; grid-template-areas: 'pos name bar pts'; gap: 1.6rem; padding: 1.15rem 0; }
  .lrow { grid-template-columns: 4.5rem 1fr 11rem 5rem; grid-template-areas: 'pos name gap pts'; gap: 1.4rem; }
  .lrow__gap, .lrow__pts { text-align: right; }
}

/* =========================================================
   CARRERAS QUE QUEDAN
   ========================================================= */
.rem__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rcard { border-bottom: 1px solid var(--line); position: relative; }
.rcard a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; padding: 1.4rem 0; position: relative; transition: padding 0.5s var(--ease); }
.rcard a::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 45, 31, 0.16), transparent 70%); opacity: 0; transition: opacity 0.4s; z-index: -1; }
.rcard:hover a, .rcard a:focus-visible { padding-left: 1rem; }
.rcard:hover a::before, .rcard a:focus-visible::before { opacity: 1; }
.rcard__n { font-size: clamp(4.2rem, 14vw, 8rem); color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 236, 0.6); line-height: 0.8; transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.rcard:hover .rcard__n, .rcard.is-next .rcard__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.rcard__body { display: grid; gap: 0.5rem; justify-items: start; }
.rcard__country { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 0.9; }
.rcard__circuit { color: var(--muted); font-size: 0.9rem; }
.rcard__meta { display: flex; gap: 1.2rem; color: var(--fg); }
.rcard__meta span + span { color: var(--muted); }
.rcard__arrow { font-family: var(--font-mono); font-size: 1.6rem; color: var(--muted); transition: transform 0.5s var(--ease), color 0.3s; }
.rcard:hover .rcard__arrow { transform: translate(6px, -6px); color: var(--accent); }
.rem__note { margin-top: 1.6rem; color: var(--muted); }
@media (min-width: 900px) {
  .rcard a { grid-template-columns: 11rem 1fr auto auto; gap: 2rem; }
  .rcard__body { grid-template-columns: 14rem 1fr auto; align-items: center; justify-items: start; gap: 2rem; }
  .rcard__body .pill { grid-column: 1; }
  .rcard__body .rcard__country { grid-column: 1; grid-row: 2; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--line); background: var(--accent); color: #fff; transform: rotate(-1.2deg) scale(1.03); margin: 2rem 0; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee__row span { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.8rem); white-space: nowrap; line-height: 1; letter-spacing: -0.005em; }
.marquee__row i { font-style: normal; color: var(--bg); font-size: 1.6rem; }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   CIFRAS
   ========================================================= */
.fig__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 1.2rem; }
.fig__list li { display: grid; gap: 0.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.fig__n { font-size: clamp(5rem, 22vw, 12rem); line-height: 0.82; color: var(--fg); font-variant-numeric: tabular-nums; }
.fig__list li:nth-child(odd) .fig__n { color: var(--accent); }
.fig__l { color: var(--fg); } .fig__list small { color: var(--muted); font-size: 0.6rem; }
@media (min-width: 900px) { .fig__list { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta { text-align: center; overflow: hidden; padding-block: clamp(7rem, 18vw, 14rem); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(255, 45, 31, 0.42), transparent 70%); }
.cta__title { font-size: clamp(4.2rem, 17vw, 17rem); line-height: 0.82; letter-spacing: -0.03em; }
.cta__title em { color: var(--accent); font-size: 1.04em; }
.cta__sub { margin: 2rem auto 3rem; max-width: 40ch; color: var(--muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.footer__in { padding: clamp(3rem, 8vw, 6rem) var(--gut) 1.6rem; max-width: 1700px; margin: 0 auto; }
.footer__mark { font-size: clamp(5rem, 24vw, 22rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 236, 0.3); margin-bottom: 3rem; white-space: nowrap; }
.footer__mark em { font-family: var(--font-display); font-style: normal; -webkit-text-stroke-color: var(--accent); }
.footer__cols { display: grid; gap: 2.4rem; }
.footer__h { color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.footer__list { display: grid; gap: 0.5rem; }
.footer__list a { transition: color 0.3s; } .footer__list a:hover { color: var(--accent); }
.footer__list--src { font-size: 0.85rem; color: var(--muted); } .footer__list--src a:hover { color: var(--fg); }
.footer__legal { color: var(--muted); font-size: 0.82rem; line-height: 1.7; max-width: 48ch; }
.footer__base { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; color: var(--muted); }
@media (min-width: 900px) { .footer__cols { grid-template-columns: 1fr 1.4fr 1.4fr; gap: 4rem; } }

/* =========================================================
   PÁGINAS INTERNAS · cabecera común
   ========================================================= */
.phero { position: relative; isolation: isolate; overflow: hidden; min-height: min(92svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 4rem) var(--gut) clamp(2.5rem, 6vw, 4.5rem); }
.phero::before { content: ''; position: absolute; inset: -10%; z-index: -2; pointer-events: none; background:
  radial-gradient(ellipse 55% 50% at 78% 38%, rgba(255, 45, 31, 0.42), transparent 70%),
  radial-gradient(ellipse 40% 35% at 12% 90%, rgba(255, 138, 0, 0.16), transparent 70%); }
.phero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.phero__ghost { position: absolute; z-index: -1; right: calc(var(--gut) * -0.4); top: calc(var(--nav-h) + 0.5rem); font-size: clamp(12rem, 46vw, 44rem); line-height: 0.75; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 236, 0.09); pointer-events: none; user-select: none; }
.phero__in { width: 100%; }
.phero__title { font-size: clamp(4.6rem, 19vw, 17rem); line-height: 0.82; letter-spacing: -0.03em; }
.phero__title em { color: var(--accent); font-size: 1.04em; }
.phero__foot { display: grid; gap: 2rem; margin-top: clamp(1.8rem, 4vw, 3rem); align-items: end; }
.lead { max-width: 52ch; color: var(--muted); font-size: 1.05rem; }
.lead b { color: var(--fg); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
.stats > div { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.stats dt { order: 2; color: var(--muted); font-size: 0.62rem; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 0.85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dd small { font-family: var(--font-display); font-size: 0.45em; letter-spacing: 0; color: var(--muted); margin-left: 0.1em; }
.stats > div:first-child dd { color: var(--accent); }
@media (min-width: 900px) {
  .phero__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4rem; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sec--tight { padding-block: clamp(3rem, 7vw, 6rem); }
.h3 { font-size: clamp(2.4rem, 7vw, 5rem); }
.h3 em { color: var(--accent); }
.note { margin-top: 1.6rem; color: var(--muted); line-height: 1.8; }
.tag { display: inline-flex; width: fit-content; margin-top: 0.45rem; padding: 0.2rem 0.55rem; border: 1px solid color-mix(in srgb, var(--sc) 70%, transparent); border-radius: 999px; color: var(--fg); font-size: 0.56rem; }
.tag--gold { border-color: var(--accent-3); color: var(--accent-3); }
.lr-partial a { color: var(--fg); border-bottom: 1px solid var(--accent); }

/* Tira de progreso de temporada (22 rondas) */
.strip { display: grid; grid-template-columns: repeat(22, minmax(0, 1fr)); gap: 3px; margin-top: clamp(2rem, 5vw, 3.5rem); }
.strip a { position: relative; display: grid; gap: 0.45rem; padding-top: 0.6rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.06em; }
.strip a::before { content: ''; height: 6px; border-radius: 1px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s, transform 0.4s var(--ease); }
.strip a.is-done::before { background: var(--accent); }
.strip a.is-next::before { background: var(--accent-3); box-shadow: 0 0 14px var(--accent-3); animation: pulse 1.6s ease-in-out infinite; }
.strip a.is-next { color: var(--accent-3); }
.strip a:hover::before, .strip a:focus-visible::before { transform: scaleY(1.8); }
.strip a span { text-align: center; }
@media (max-width: 899px) { .strip a span { display: none; } .strip a:nth-child(5n + 1) span, .strip a.is-next span { display: block; } }
.strip-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1rem; color: var(--muted); }
.strip-legend i { display: inline-block; width: 14px; height: 6px; margin-right: 0.5rem; vertical-align: middle; background: rgba(255, 255, 255, 0.1); }
.strip-legend .l-done i { background: var(--accent); } .strip-legend .l-next i { background: var(--accent-3); }

/* Filtros tipo píldora (aria-pressed) */
.filters { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.filters button { padding: 0.7rem 1.1rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); transition: background 0.35s, color 0.35s; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }
.filters small { opacity: 0.6; margin-left: 0.35rem; }

/* =========================================================
   CALENDARIO
   ========================================================= */
.next { display: grid; gap: 2rem; padding: clamp(1.4rem, 4vw, 3rem); }
.next__title { font-size: clamp(3.2rem, 11vw, 8rem); }
.next__title em { color: var(--accent); }
.next__meta { color: var(--muted); line-height: 2; }
.next__meta b { color: var(--fg); font-weight: 500; }
.next .cd__grid { align-self: end; }
.next .cd__cell b { font-size: clamp(3rem, 11vw, 7rem); }
@media (min-width: 1100px) { .next { grid-template-columns: 1fr 1.1fr; align-items: end; } }

.month { display: grid; gap: 0; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.month[hidden] { display: none; }
.month__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.month__h h3 { font-size: clamp(2.4rem, 7vw, 4.6rem); color: transparent; -webkit-text-stroke: 1.2px rgba(244, 241, 236, 0.55); }
.month__h span { color: var(--muted); }
.crow { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.crow[hidden] { display: none; }
.crow__in { position: relative; display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.4rem 1rem; padding: 1.3rem 0; transition: padding 0.5s var(--ease); }
.crow__in::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: linear-gradient(90deg, rgba(255, 45, 31, 0.14), transparent 70%); transition: opacity 0.4s; }
.crow:hover .crow__in { padding-left: 0.8rem; }
.crow:hover .crow__in::before, .crow.is-next .crow__in::before, .crow:target .crow__in::before { opacity: 1; }
.crow__n { grid-row: span 3; font-size: clamp(3rem, 9vw, 5.6rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.3px rgba(244, 241, 236, 0.5); }
.crow.is-done .crow__n { -webkit-text-stroke-color: rgba(244, 241, 236, 0.28); }
.crow.is-next .crow__n { color: var(--accent-3); -webkit-text-stroke-color: var(--accent-3); }
.crow__place { display: grid; gap: 0.3rem; }
.crow__country { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 0.9; }
.crow__circuit { color: var(--muted); font-size: 0.92rem; }
.crow__date { color: var(--fg); }
.crow__res { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.crow__win { display: grid; gap: 0.2rem; }
.crow__win small { color: var(--muted); font-size: 0.58rem; }
.crow__win b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.crow__win b i { font-style: normal; color: var(--accent); }
.pill--next { border-color: var(--accent-3); color: var(--accent-3); }
.pill--next .dot { background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }
.pill--done { color: var(--muted); }
@media (min-width: 900px) {
  .crow__in { grid-template-columns: 9rem minmax(0, 1.4fr) 10rem minmax(0, 1fr); align-items: center; gap: 2rem; padding: 1.6rem 0; }
  .crow__n { grid-row: auto; }
  .crow__date { text-align: left; }
}

/* =========================================================
   GRÁFICAS DE BARRAS (una sola serie, etiquetas en texto)
   ========================================================= */
.hbars { display: grid; gap: 0.2rem; }
.hbar { display: grid; grid-template-columns: minmax(7rem, 15rem) 1fr 3.4rem; align-items: center; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hbar__l { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.5rem); text-transform: uppercase; line-height: 1; }
.hbar__l small { display: block; margin-top: 0.3rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.14em; color: var(--muted); }
.hbar__t { height: 14px; background: rgba(255, 255, 255, 0.05); border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar__t i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--sc, var(--accent)); border-radius: 0 4px 4px 0; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 0.06s); }
.hbars.is-in .hbar__t i { transform: scaleX(1); }
.hbar__v { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; text-align: right; font-variant-numeric: tabular-nums; }
.hbar:first-child .hbar__v { color: var(--accent); }
@media (max-width: 599px) {
  .hbar { grid-template-columns: 1fr auto; grid-template-areas: 'l v' 't t'; gap: 0.5rem 1rem; padding: 0.8rem 0; }
  .hbar__l { grid-area: l; } .hbar__v { grid-area: v; } .hbar__t { grid-area: t; height: 10px; }
  .filters { border-radius: 1.4rem; }
}
.split2 { display: grid; gap: clamp(3rem, 7vw, 5rem); }
@media (min-width: 1100px) { .split2 { grid-template-columns: 1.3fr 1fr; } }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.chart-h h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.chart-h span { color: var(--muted); }

/* =========================================================
   RESULTADOS · carrera a carrera
   ========================================================= */
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.win { display: grid; gap: 0.9rem; align-content: start; padding: 1.4rem; min-height: 15rem; transition: border-color 0.35s, transform 0.5s var(--ease), background 0.35s; }
.win:hover { border-color: rgba(255, 45, 31, 0.6); transform: translateY(-4px); background: rgba(255, 45, 31, 0.06); }
.win__top { display: flex; justify-content: space-between; color: var(--muted); }
.win__top b { color: var(--accent); font-weight: 500; }
.win__gp { font-size: 2.4rem; line-height: 0.9; }
.win__circuit { color: var(--muted); font-size: 0.85rem; margin-top: -0.4rem; }
.win dl { display: grid; gap: 0.7rem; margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.win dt { color: var(--muted); font-size: 0.56rem; }
.win dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.win dd small { font-family: var(--font-mono); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.14em; color: var(--muted); margin-left: 0.4rem; }
.win dd.is-na { color: var(--muted); font-size: 1rem; }
.win.is-latest { border-color: var(--accent); background: rgba(255, 45, 31, 0.08); }

/* =========================================================
   CLASIFICACIÓN · duelo + cuentas del título
   ========================================================= */
.duel { display: grid; gap: 2rem; padding: clamp(1.4rem, 4vw, 3rem); }
.duel__riders { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; }
.duel__r { display: grid; gap: 0.4rem; }
.duel__r:last-child { text-align: right; justify-items: end; }
.duel__r small { color: var(--muted); font-size: 0.6rem; }
.duel__name { font-size: clamp(2rem, 6.5vw, 5.4rem); line-height: 0.85; }
.duel__pts { font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: 0.8; font-variant-numeric: tabular-nums; }
.duel__r:first-child .duel__pts { color: var(--accent); }
.duel__vs { display: grid; justify-items: center; gap: 0.3rem; padding-bottom: 0.4rem; }
.duel__vs b { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.8; color: var(--accent-3); }
.duel__vs small { color: var(--muted); font-size: 0.56rem; text-align: center; }
.duel__rows { display: grid; gap: 0.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.drow { display: grid; grid-template-columns: 3rem 1fr 10rem 1fr 3rem; align-items: center; gap: 0.8rem; padding: 0.5rem 0; }
.drow__v { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.drow__v:last-child { text-align: right; }
.drow__k { text-align: center; color: var(--muted); font-size: 0.6rem; }
.drow__bar { height: 8px; background: rgba(255, 255, 255, 0.05); display: flex; overflow: hidden; }
.drow__bar--l { justify-content: flex-end; border-radius: 4px 0 0 4px; }
.drow__bar--r { border-radius: 0 4px 4px 0; }
.drow__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--fg); transform: scaleX(0); transition: transform 1.1s var(--ease); }
.drow__bar--l i { transform-origin: 100% 50%; background: var(--accent); border-radius: 4px 0 0 4px; }
.drow__bar--r i { transform-origin: 0 50%; border-radius: 0 4px 4px 0; }
.duel.is-in .drow__bar i { transform: scaleX(1); }
@media (max-width: 599px) { .drow { grid-template-columns: 2.4rem 1fr 5.6rem 1fr 2.4rem; gap: 0.5rem; } .drow__k { font-size: 0.52rem; letter-spacing: 0.08em; } .drow__v { font-size: 1.4rem; } }

.math { --lab: 8rem; position: relative; display: grid; gap: 0.3rem; padding-top: 1.6rem; }
.math__row { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; gap: 1rem; padding: 0.35rem 0; }
.math__lines { position: absolute; top: 1.6rem; bottom: 0; left: calc(var(--lab) + 1rem); right: 0; pointer-events: none; }
@media (min-width: 700px) { .math { --lab: 13rem; } }
.math__row b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; line-height: 1; }
.math__row b small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.55rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 0.25rem; }
.math__track { position: relative; height: 18px; }
.math__now, .math__max { position: absolute; left: 0; top: 0; height: 100%; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 0.05s); }
.math__now { width: calc(var(--now) * 100%); background: var(--sc); border-radius: 0 4px 4px 0; }
.math__max { width: calc(var(--max) * 100%); border: 1px dashed color-mix(in srgb, var(--sc) 70%, transparent); border-radius: 0 4px 4px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sc) 16%, transparent) 0 4px, transparent 4px 9px); }
.math.is-in .math__now, .math.is-in .math__max { transform: scaleX(1); }
.math__row.is-out b { color: var(--muted); }
.math__row.is-out .math__now { background: rgba(244, 241, 236, 0.28); }
.math__row.is-out .math__max { border-color: rgba(244, 241, 236, 0.25); background: repeating-linear-gradient(135deg, rgba(244, 241, 236, 0.07) 0 4px, transparent 4px 9px); }
.math__line { position: absolute; top: -0.6rem; bottom: -0.6rem; width: 0; border-left: 2px solid var(--fg); pointer-events: none; }
.math__line span { position: absolute; top: -1.4rem; left: 0; translate: -50% 0; white-space: nowrap; color: var(--fg); font-size: 0.56rem; }
.math__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 1.4rem; color: var(--muted); }
.math__legend i { display: inline-block; width: 18px; height: 10px; margin-right: 0.5rem; vertical-align: middle; }
.math__legend .k-now i { background: var(--sc); }
.math__legend .k-max i { border: 1px dashed var(--sc); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sc) 25%, transparent) 0 3px, transparent 3px 6px); }
.math__legend .k-line i { width: 0; height: 14px; border-left: 2px solid var(--fg); }
.verdict { margin-bottom: 2rem; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 0.95; max-width: 22ch; }
.verdict em { color: var(--sc); }

/* =========================================================
   CIRCUITOS · mapa de la ruta
   ========================================================= */
.map { position: relative; padding: clamp(0.8rem, 2vw, 1.6rem); }
.map__grid { display: grid; gap: 1.6rem; align-items: center; }
.map__cap { color: var(--muted); margin-bottom: 0.6rem; }
.map__km { margin-top: 1.2rem; color: var(--muted); }
.map__km b { color: var(--accent); font-weight: 500; }
@media (min-width: 1100px) { .map__grid { grid-template-columns: 1.75fr 1fr; } }
@media (max-width: 699px) { .map__world .lbl { display: none; } }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.map .grid .eq { stroke: rgba(255, 255, 255, 0.18); stroke-dasharray: 2 6; }
.map .grid text { fill: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; }
.map .route { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.map .route--done { stroke: var(--accent); }
.map .route--todo { stroke: rgba(244, 241, 236, 0.5); stroke-dasharray: 3 6; }
.map .pin { cursor: pointer; outline: none; }
.map .pin circle { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; transition: r 0.3s var(--ease), fill 0.3s; }
.map .pin.is-done circle { fill: var(--accent); stroke: var(--accent); }
.map .pin.is-next circle { fill: var(--accent-3); stroke: var(--accent-3); }
.map .pin circle.halo { fill: transparent; stroke: none; }
.map .pin:hover circle:not(.halo, .ring), .map .pin:focus-visible circle:not(.halo, .ring), .map .pin.is-on circle:not(.halo, .ring) { r: 8; }
.map .pin:focus-visible circle.halo { stroke: var(--accent-3); stroke-width: 2; }
.map .pin.is-next circle.ring { fill: none; stroke: var(--accent-3); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.map .lbl { fill: var(--fg); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.map .inset-box { fill: rgba(7, 7, 10, 0.75); stroke: rgba(255, 255, 255, 0.18); }
.map .inset-zone { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.3); stroke-dasharray: 2 3; }
.map .inset-link { stroke: rgba(255, 255, 255, 0.18); stroke-dasharray: 2 3; }
.tip { position: absolute; z-index: 5; left: 0; top: 0; min-width: 13rem; padding: 0.8rem 1rem; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity 0.2s; background: rgba(14, 14, 19, 0.94); border: 1px solid var(--line); }
.tip.is-on { opacity: 1; }
.tip b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; line-height: 1; margin: 0.3rem 0; }
.tip span, .tip small { display: block; color: var(--muted); }
.tip .mono { font-size: 0.58rem; }
.map__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 1.2rem; color: var(--muted); }
.map__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; border: 1.5px solid var(--fg); }
.map__legend .k-done i { background: var(--accent); border-color: var(--accent); }
.map__legend .k-next i { background: var(--accent-3); border-color: var(--accent-3); }
.map__legend .k-line-d i { width: 22px; height: 0; border: 0; border-top: 2px solid var(--accent); border-radius: 0; }
.map__legend .k-line-t i { width: 22px; height: 0; border: 0; border-top: 2px dashed rgba(244, 241, 236, 0.5); border-radius: 0; }

.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.ccard { display: grid; gap: 1rem; align-content: start; padding: 1.4rem; scroll-margin-top: 90px; transition: border-color 0.35s, background 0.35s; }
.ccard:hover, .ccard:target { border-color: rgba(255, 45, 31, 0.55); background: rgba(255, 45, 31, 0.05); }
.ccard.is-next { border-color: var(--accent-3); }
.ccard__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.ccard__km { display: flex; align-items: baseline; gap: 0.4rem; }
.ccard__km b { font-family: var(--font-display); font-weight: 900; font-size: 3.6rem; line-height: 0.8; font-variant-numeric: tabular-nums; }
.ccard__km small { color: var(--muted); }
.ccard__len { height: 4px; background: rgba(255, 255, 255, 0.06); }
.ccard__len i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--accent); }
.ccard__name { font-size: 2.1rem; line-height: 0.9; }
.ccard__circuit { color: var(--muted); font-size: 0.88rem; margin-top: -0.5rem; }
.ccard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.ccard dt { color: var(--muted); font-size: 0.55rem; }
.ccard dd { margin: 0.15rem 0 0; font-size: 0.9rem; }

/* =========================================================
   RESPONSIVE EXTRA + MOVIMIENTO REDUCIDO
   ========================================================= */
@media (max-width: 480px) {
  .cd__cell b { font-size: clamp(3rem, 17vw, 5rem); }
  .tabs [role='tab'] { padding: 0.65rem 0.9rem; }
  .hero__title .t2 { -webkit-text-stroke-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .marquee__track { animation: none; }
  .js-anim [data-split] .wi { transform: none; }
  /* sin animación: las barras se muestran ya llenas */
  .bar i, .srow__bar i, .hbar__t i, .drow__bar i, .math__now, .math__max { transform: none !important; }
}
