/* En busca de la primera Zanella. Demo de concepto.
   Mundo: asfalto negro que cae a rojo Zanella, tiza, verde cedula solo para sellos. */

@font-face { font-family: 'Krona One'; src: url('../fonts/krona-one-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --asfalto: #0c0809;
  --asfalto-2: #170a0c;
  --oxblood: #3a060b;
  --rojo: #d00c1c;
  --rojo-vivo: #e5202f;
  --tiza: #f2eeec;
  --humo: #b9acad;
  --linea: rgba(242, 238, 236, 0.16);
  --linea-fuerte: rgba(242, 238, 236, 0.34);
  --verde: #2f7d52;
  --verde-claro: #86d1a4;
  --error: #ff8f98;
  --display: 'Krona One', 'Arial Black', sans-serif;
  --cuerpo: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ancho: 1440px;
  --header-h: 96px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 72px);
  scrollbar-color: #5a1a21 var(--asfalto);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--asfalto);
  color: var(--tiza);
  font: 400 1rem/1.65 var(--cuerpo);
  caret-color: var(--rojo);
  accent-color: var(--rojo);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rojo); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--asfalto); }
::-webkit-scrollbar-thumb { background: #5a1a21; border: 3px solid var(--asfalto); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--rojo); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--tiza); color: var(--asfalto);
  padding: 0.7rem 1rem; font-weight: 700; border-radius: 3px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.h-display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h1.h-display { font-size: clamp(1.7rem, 4.2vw, 3.2rem); }
h2.h-display { font-size: clamp(1.45rem, 3.2vw, 2.6rem); }
h3.h-display { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }

.lead { color: var(--humo); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 56ch; margin: 1rem 0 0; }
.muted { color: var(--humo); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: linear-gradient(90deg, #000 50%, var(--rojo) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__in {
  max-width: var(--ancho); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 68px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a {
  font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--tiza);
  padding: 0.5rem 0; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { background-size: 100% 2px; }
.nav .btn { padding: 0.6rem 1.05rem; font-size: 0.7rem; background: var(--tiza); color: var(--asfalto); }
.nav .btn:hover { background: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--tiza); font: 600 0.85rem var(--cuerpo); padding: 0.5rem 0.85rem; border-radius: 3px; cursor: pointer;
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--asfalto); border-bottom: 1px solid var(--linea); padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--linea); background: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; padding: 0.95rem 1rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; cursor: pointer;
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.02em; line-height: 1.2; text-decoration: none;
  color: #fff; background: var(--rojo); border: 0; border-radius: 3px; padding: 1.05rem 1.6rem; min-height: 48px;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--rojo-vivo); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(229, 32, 47, 0.9); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: none; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
.btn--tiza { background: var(--tiza); color: var(--asfalto); }
.btn--tiza:hover { background: #fff; box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.7); }
.btn--ghost { background: transparent; border: 1px solid var(--linea-fuerte); color: var(--tiza); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.link {
  font-weight: 600; font-size: 0.95rem; color: var(--tiza);
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
}
.link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Sello cedula verde ---------- */
.seal {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; line-height: 1;
  color: var(--verde-claro); background: rgba(47, 125, 82, 0.2); border: 1px solid rgba(134, 209, 164, 0.4);
  border-radius: 3px; padding: 0.38rem 0.6rem; white-space: nowrap;
}
.seal svg { width: 0.95em; height: 0.95em; }

/* ---------- Copia impresa con dibujo ---------- */
.plate {
  position: relative; background: #f3efec; padding: 9px 9px 32px;
  box-shadow: 0 36px 50px -28px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  color: var(--tiza);
}
.plate__photo {
  --plate-bg: #150c0e;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 95% at 28% 18%, #3b2427 0%, #1d1113 52%, #150c0e 100%);
}
.plate__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.plate__photo .bike { width: 100%; height: auto; padding: 4% 3% 0; }
.plate__photo .bike .occ { fill: var(--plate-bg); }
.plate__photo img { width: 100%; height: 100%; object-fit: cover; }
.plate__tag {
  position: absolute; left: 12px; right: 12px; bottom: 8px; font: 600 0.66rem/1 var(--cuerpo); letter-spacing: 0.03em;
  color: #3a2528;
}
.plate__tag:is(.is-year) { font-family: var(--display); font-size: 0.8rem; }

/* ---------- Odometro ---------- */
.odo {
  display: inline-flex; gap: 0.3rem; font-family: var(--display); font-size: clamp(3.3rem, 9.4vw, 6rem);
  line-height: 1; color: var(--tiza); padding: 0.18em 0.2em; background: #050304; border-radius: 0.14em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.35em 0.5em -0.3em rgba(0, 0, 0, 0.9), 0 0.06em 0 rgba(255, 255, 255, 0.05) inset;
}
.odo__fallback { padding: 0 0.1em; }
.js .odo__fallback { display: none; }
.odo__drum {
  position: relative; width: 0.84em; height: 1.24em; overflow: hidden; border-radius: 0.09em;
  background: linear-gradient(#0b0607, #211114 50%, #0b0607);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}
.odo__drum::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.82) 100%);
}
.odo__strip { display: block; will-change: transform; }
.odo__strip span { display: block; height: 1.24em; line-height: 1.24em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero-wrap {
  overflow-x: clip;
  background:
    radial-gradient(80% 70% at 88% 108%, rgba(208, 12, 28, 0.5), transparent 62%),
    linear-gradient(180deg, var(--asfalto) 0%, #170709 58%, #3a060b 100%);
}
.hero {
  max-width: var(--ancho); margin: 0 auto; padding: clamp(28px, 5vh, 64px) var(--gutter) 0;
  min-height: calc(100dvh - var(--header-h));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px);
  align-content: center; row-gap: clamp(28px, 5vh, 56px);
}
.hero__copy { grid-column: 1 / span 7; align-self: center; }
h1.hero__title { font-size: clamp(1.1rem, 2.1vw, 1.7rem); line-height: 1.25; max-width: 26ch; }
.hero__lead { color: var(--humo); margin: 0.8rem 0 clamp(1.1rem, 2.4vh, 1.8rem); max-width: 42ch; font-size: clamp(0.95rem, 1.2vw, 1.05rem); }
.hero__owner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: clamp(1rem, 2.2vh, 1.5rem) 0 0; font-size: 1rem; }
.hero__owner strong { font-weight: 700; }
.hero__demo { margin: 0.55rem 0 0; font-size: 0.875rem; color: var(--tiza); opacity: 0.9; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; margin-top: clamp(1.3rem, 3vh, 2rem); }
.hero__plate { grid-column: 8 / span 5; align-self: center; position: relative; padding-bottom: 20%; }
.hero__plate .plate { transform: rotate(2deg); }
.hero__plate .cedula {
  position: absolute; right: -4%; bottom: 0; width: 54%; height: auto; transform: rotate(-5deg);
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.55));
}
.hero__ruler { grid-column: 1 / -1; padding-bottom: clamp(24px, 4vh, 44px); }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 32px; }
  .hero__copy { grid-column: 1 / -1; }
  .hero__plate { grid-column: 1 / -1; max-width: 520px; padding-bottom: 20%; }
  .hero__plate .cedula { right: 2%; }
}

/* ---------- Regla del tiempo ---------- */
.ruler { position: relative; --years: 78; --rec: 12%; }
.ruler__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.ruler__head p { margin: 0; font-size: 0.95rem; color: var(--tiza); }
.ruler__head p b { font-family: var(--display); font-weight: 400; color: #fff; }
.ruler__track { position: relative; height: 58px; }
.ruler__ticks {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background-image: linear-gradient(to right, rgba(242, 238, 236, 0.42) 1px, transparent 1px);
  background-size: calc(100% / var(--years)) 100%; background-repeat: repeat-x;
  border-bottom: 1px solid var(--linea-fuerte);
}
.ruler__frontier {
  position: absolute; left: 0; width: var(--rec); top: 6px; bottom: 14px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, rgba(208, 12, 28, 0.9) 0 5px, rgba(208, 12, 28, 0.12) 5px 11px);
  border: 1px solid var(--rojo); overflow: hidden;
}
.ruler__frontier span {
  font: 700 0.72rem/1 var(--cuerpo); background: var(--asfalto); color: var(--tiza); padding: 0.32rem 0.5rem; border-radius: 2px; white-space: nowrap;
}
.ruler__found { position: absolute; left: var(--rec); right: 0; top: 50%; height: 2px; margin-top: -9px; background: var(--tiza); }
.ruler__dot {
  position: absolute; top: 50%; width: 7px; height: 7px; margin: -12.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--asfalto); border: 1.5px solid var(--tiza);
}
.ruler__pin { position: absolute; top: 0; bottom: 0; left: var(--rec); width: 0; }
.ruler__pin::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 12px; width: 2px; background: var(--rojo);
}
.ruler__pin i {
  position: absolute; left: -9px; top: 50%; margin-top: -18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rojo); border: 3px solid var(--tiza); box-shadow: 0 0 0 4px rgba(208, 12, 28, 0.3);
}
.ruler__labels { position: relative; height: 1.6rem; margin-top: 0.45rem; font-size: 0.78rem; color: var(--humo); font-variant-numeric: tabular-nums; }
.ruler__labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ruler__labels span:first-child { transform: none; }
.ruler__labels span:last-child { transform: translateX(-100%); }
.ruler__labels .is-fund { color: var(--tiza); font-weight: 600; }
.ruler__labels .is-rec { color: #ff8f98; font-weight: 600; }
.ruler--tight .ruler__labels .is-fund { display: none; }

@media (max-width: 640px) {
  .ruler__labels .is-mid, .ruler--close .ruler__labels .is-fund { display: none; }
  .ruler__frontier span { display: none; }
  .ruler__labels .is-rec { transform: translateX(-20%); }
}

/* ---------- Secciones ---------- */
.section { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.section--tight { padding-top: clamp(24px, 3vw, 40px); }

.bleed { background: linear-gradient(180deg, transparent 0%, rgba(58, 6, 11, 0.6) 100%); }
.tickrule {
  height: 16px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--ancho) - 2 * var(--gutter)); margin: 0 auto;
  background:
    repeating-linear-gradient(to right, var(--tiza) 0 1px, transparent 1px 140px) bottom / 100% 16px no-repeat,
    repeating-linear-gradient(to right, var(--linea-fuerte) 0 1px, transparent 1px 14px) bottom / 100% 9px no-repeat,
    linear-gradient(var(--linea-fuerte), var(--linea-fuerte)) bottom / 100% 1px no-repeat;
}
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 40px; }
.split__a { grid-column: 1 / span 5; }
.split__b { grid-column: 7 / span 6; }
@media (max-width: 900px) { .split__a, .split__b { grid-column: 1 / -1; } }

/* Como se juega */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li {
  position: relative; padding: 0 0 2.6rem 4.2rem; counter-increment: paso;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -0.2rem; width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.05rem; color: #fff; background: var(--rojo); border-radius: 50%;
}
.steps li::after {
  content: ''; position: absolute; left: calc(1.45rem - 0.5px); top: 3rem; bottom: 0.3rem; width: 1px; background: var(--linea-fuerte);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 0.45rem; font: 700 1.2rem/1.3 var(--cuerpo); }
.steps p { margin: 0; color: var(--humo); max-width: 52ch; }
.how__card { position: relative; margin-top: 3.6rem; max-width: 380px; transform: rotate(-3deg); filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.5)); }
.how__card .cedula { width: 100%; height: auto; }
.how__ring {
  position: absolute; left: calc(57.2% - 7px); top: calc(39.7% - 7px); width: calc(36.7% + 14px); height: calc(18.1% + 14px);
  border: 2.5px solid #fff; border-radius: 8px; box-shadow: 0 0 0 3px var(--rojo);
}
.how__line { position: absolute; left: 75%; top: -0.9rem; height: calc(39.7% + 0.9rem - 10px); width: 2px; background: var(--tiza); }
.how__callout { position: absolute; right: 0; top: -2.6rem; font: 700 0.85rem/1.3 var(--cuerpo); color: var(--tiza); text-align: right; max-width: 22ch; }
.how__note { margin: 1.8rem 0 0; font-size: 0.9rem; color: var(--humo); max-width: 38ch; }

/* Riel de ultimas */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.rail {
  list-style: none; margin: 0; padding: 0 0 1.2rem; display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-left: 0; overscroll-behavior-x: contain;
}
.rail li { flex: 0 0 clamp(230px, 24vw, 300px); scroll-snap-align: start; }
.rail__year { font-family: var(--display); font-size: 1.7rem; line-height: 1; margin: 1.1rem 0 0.4rem; }
.rail__name { font-weight: 700; margin: 0; }
.rail__place { margin: 0.1rem 0 0; color: var(--humo); font-size: 0.93rem; }
.rail .plate { transform: rotate(var(--tilt, 0deg)); transition: transform 0.45s var(--ease); }
.rail li:nth-child(odd) { --tilt: -1.2deg; }
.rail li:nth-child(even) { --tilt: 1deg; }
.rail li:hover .plate { transform: rotate(0deg) translateY(-6px); }

/* FAQ */
.faq { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--linea); }
.faq details:nth-last-child(-n+2) { border-bottom: 1px solid var(--linea); }
@media (max-width: 900px) { .faq details:nth-last-child(2) { border-bottom: 0; } }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-weight: 700; font-size: 1.08rem; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--tiza); border-bottom: 2px solid var(--tiza);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 1.5rem; color: var(--humo); max-width: 60ch; }

/* Banda de accion en rojo pleno */
.band { background: var(--rojo); color: #fff; overflow: hidden; padding: 0 var(--gutter); }
.band__in {
  max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 9vw, 112px) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 32px; align-items: center;
}
.band__copy { grid-column: 1 / span 7; }
.band__copy p { margin: 1.1rem 0 1.8rem; max-width: 46ch; color: rgba(255, 255, 255, 0.92); }
.band__meta { grid-column: 8 / span 5; }
.band__meta svg { width: 100%; height: auto; overflow: visible; }
.band .btn--tiza:hover { box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.6); }
@media (max-width: 900px) { .band__copy, .band__meta { grid-column: 1 / -1; } .band__meta { max-width: 420px; } }

/* ---------- Pie ---------- */
.site-footer { background: linear-gradient(135deg, #b30a18 0%, #4a0710 45%, #000 100%); color: #fff; }
.site-footer__in {
  max-width: var(--ancho); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 28px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 32px;
}
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__brand img { height: 34px; width: auto; }
.site-footer__brand p { margin: 1rem 0 0; font-size: 0.9rem; max-width: 34ch; }
.site-footer__links { grid-column: 7 / span 3; }
.site-footer__demo { grid-column: 10 / span 3; }
.site-footer h2 { font: 400 0.8rem/1.2 var(--display); text-transform: uppercase; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.site-footer a, .site-footer button.link-like { font-size: 0.92rem; }
.link-like { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.28em; cursor: pointer; }
.creditos summary { cursor: pointer; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 0.28em; min-height: 32px; }
.creditos ul { margin: 0.6rem 0 0; padding: 0; font-size: 0.78rem; line-height: 1.5; max-height: 14rem; overflow: auto; }
.creditos li { margin: 0 0 0.4rem; }
.site-footer small { grid-column: 1 / -1; font-size: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.1rem; max-width: 90ch; }
@media (max-width: 900px) {
  .site-footer__brand, .site-footer__links, .site-footer__demo { grid-column: 1 / -1; }
}

/* ---------- Linea de tiempo ---------- */
.page-head { max-width: var(--ancho); margin: 0 auto; padding: clamp(28px, 4vw, 52px) var(--gutter) 0; }
h1.page-title { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.page-head .lead { max-width: 84ch; margin-top: 0.6rem; }
.frontier {
  position: relative; margin: 0 0 clamp(8px, 2vw, 20px); padding: clamp(16px, 2.2vw, 24px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  border: 1px solid var(--rojo);
  background: repeating-linear-gradient(135deg, rgba(208, 12, 28, 0.28) 0 7px, rgba(208, 12, 28, 0.06) 7px 14px);
}
.frontier h2 { font: 400 clamp(0.95rem, 1.6vw, 1.2rem)/1.25 var(--display); text-transform: uppercase; margin: 0; max-width: 24ch; }
.frontier p { margin: 0.5rem 0 0; color: var(--tiza); max-width: 52ch; }

.controls {
  position: sticky; top: var(--header-h); z-index: 20; margin-top: clamp(20px, 3vw, 32px);
  background: rgba(12, 8, 9, 0.94); backdrop-filter: blur(10px); border-block: 1px solid var(--linea);
  padding-inline: var(--gutter);
}
.controls__in { max-width: var(--ancho); margin: 0 auto; padding: 0.8rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer; font: 600 0.88rem var(--cuerpo); color: var(--tiza); background: transparent;
  border: 1px solid var(--linea-fuerte); border-radius: 3px; padding: 0.55rem 0.95rem; min-height: 44px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.08); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input[type="search"] { width: 100%; padding-left: 2.8rem; }
.search svg { position: absolute; left: 0.9rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; color: var(--humo); pointer-events: none; }

.tl-wrap { max-width: var(--ancho); margin: 0 auto; padding: clamp(16px, 2.4vw, 28px) var(--gutter) clamp(64px, 9vw, 120px); }
.tl-count { margin: 0 0 1rem; color: var(--humo); font-size: 0.95rem; }
.tl { position: relative; padding-left: clamp(28px, 4vw, 44px); }
.tl::before {
  content: ''; position: absolute; left: 2px; top: 0; bottom: 0; width: 11px;
  background:
    linear-gradient(var(--linea-fuerte), var(--linea-fuerte)) 5px 0 / 1px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--linea-fuerte) 0 1px, transparent 1px 28px);
}
.tl__decade { margin: clamp(32px, 5vw, 56px) 0 0.4rem; font: 400 0.82rem/1 var(--display); text-transform: uppercase; color: var(--humo); }
.tl__decade:first-child, .frontier + .tl__decade { margin-top: 0; }
.tl__item {
  position: relative; display: grid; grid-template-columns: minmax(96px, 150px) minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(18px, 2.4vw, 28px) 0; border-top: 1px solid var(--linea);
  scroll-margin-top: calc(var(--header-h) + 120px);
}
.tl__item::before {
  content: ''; position: absolute; left: calc(-1 * clamp(28px, 4vw, 44px) + 1px); top: clamp(30px, 4vw, 44px); width: 13px; height: 13px;
  border-radius: 50%; background: var(--asfalto); border: 2px solid var(--tiza);
}
.tl__item.is-record::before { background: var(--rojo); border-color: var(--tiza); width: 17px; height: 17px; left: calc(-1 * clamp(28px, 4vw, 44px) - 1px); box-shadow: 0 0 0 5px rgba(208, 12, 28, 0.3); }
.tl__year { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1; }
.tl__item.is-record .tl__year { color: #ff4655; }
.tl__tipo { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--humo); font-weight: 600; }
.tl__name { margin: 0; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.tl__place { margin: 0.1rem 0 0.9rem; color: var(--tiza); }
.tl__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; font-size: 0.85rem; color: var(--humo); }
.tl__tag { font: 700 0.72rem/1 var(--cuerpo); padding: 0.4rem 0.55rem; border-radius: 3px; background: var(--rojo); color: #fff; }
.tl__tag--mine { background: transparent; border: 1px solid var(--rojo); color: #ff8f98; }
.tl__item.is-new { animation: nuevo 2.4s var(--ease) 0.4s 1 both; }
@keyframes nuevo { 0% { background: rgba(208, 12, 28, 0.38); } 100% { background: transparent; } }
.tl .plate { transform: rotate(var(--tilt, 0deg)); }
.tl__item:nth-of-type(odd) { --tilt: -0.9deg; }
.tl__item:nth-of-type(even) { --tilt: 0.8deg; }

@media (max-width: 900px) {
  .tl__item { grid-template-columns: 1fr; gap: 14px; }
  .tl__year { order: 0; }
  .tl .plate { max-width: 420px; }
}

.empty { padding: 3rem 0; max-width: 46ch; }
.empty h2 { font: 400 1.3rem/1.25 var(--display); text-transform: uppercase; margin: 0 0 0.8rem; }
.empty p { margin: 0 0 1.4rem; color: var(--humo); }

/* ---------- Formulario ---------- */
.part { max-width: var(--ancho); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(72px, 10vw, 128px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 48px; }
.part__side { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.part__main { grid-column: 7 / span 6; }
@media (max-width: 900px) { .part__side, .part__main { grid-column: 1 / -1; position: static; } }

.ficha { margin-top: 2.2rem; max-width: 420px; }
.ficha .plate { transform: rotate(-1.6deg); }
.ficha__year { font-family: var(--display); font-size: 2.1rem; line-height: 1; margin: 1.3rem 0 0.4rem; }
.ficha__name { font-weight: 700; font-size: 1.15rem; margin: 0; }
.ficha__place { margin: 0.1rem 0 0; color: var(--humo); }
.ficha__vs { margin: 1.1rem 0 0; font-size: 0.95rem; min-height: 3em; color: var(--tiza); }
.ficha__vs.is-win { color: #ffb3b9; font-weight: 700; }

.fs { border: 0; padding: 0; margin: 0 0 2.6rem; min-width: 0; }
.fs legend { padding: 0; margin: 0 0 1.1rem; font: 400 1.05rem/1.25 var(--display); text-transform: uppercase; display: flex; align-items: center; gap: 0.8rem; }
.fs legend b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--rojo); font-size: 0.85rem; font-weight: 400; color: #fff; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { margin: 0; font-size: 0.85rem; color: var(--humo); }
.field .err { margin: 0; font-size: 0.85rem; color: var(--error); font-weight: 600; min-height: 0; }
.field .err:empty { display: none; }

input[type='text'], input[type='email'], input[type='number'], input[type='search'], select {
  width: 100%; min-height: 50px; padding: 0.8rem 1rem; font: 500 1rem var(--cuerpo); color: var(--tiza);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(242, 238, 236, 0.3); border-radius: 4px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
input::placeholder { color: #8f8283; }
input:hover, select:hover { border-color: rgba(242, 238, 236, 0.55); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--tiza); outline-offset: 2px; border-color: var(--tiza); background: rgba(255, 255, 255, 0.08); }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: var(--error); }
select option { background: #1b1011; color: var(--tiza); }

.drop {
  position: relative; display: grid; place-items: center; gap: 0.6rem; min-height: 210px; padding: 1.4rem; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--linea-fuerte); border-radius: 6px; background: rgba(255, 255, 255, 0.03); overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.drop:hover, .drop.is-over { border-color: var(--tiza); background: rgba(255, 255, 255, 0.07); }
.drop:focus-within { outline: 2px solid var(--tiza); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__empty { display: grid; justify-items: center; gap: 0.45rem; }
.drop__icon { width: 2.4rem; height: 2.4rem; color: var(--tiza); }
.drop__t { font-weight: 700; margin: 0; }
.drop__s { font-size: 0.85rem; color: var(--humo); margin: 0; }
.drop.has-file { border-style: solid; border-color: var(--verde-claro); padding: 0; place-items: stretch; }
.drop__preview { display: none; position: relative; width: 100%; height: 100%; min-height: 210px; }
.drop.has-file .drop__preview { display: block; }
.drop.has-file .drop__empty { display: none; }
.drop__preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.drop__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font-size: 0.85rem; font-weight: 600;
}
.drop__bar span:last-child { text-decoration: underline; text-underline-offset: 0.25em; }

.tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 600px) { .tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tipo { position: relative; }
.tipo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.tipo__box {
  display: grid; gap: 0.5rem; justify-items: center; padding: 0.7rem 0.4rem 0.8rem; border: 1px solid rgba(242, 238, 236, 0.3);
  border-radius: 4px; background: rgba(255, 255, 255, 0.04); font-size: 0.82rem; font-weight: 600; text-align: center;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tipo__box svg { width: 100%; height: auto; max-width: 96px; color: var(--tiza); }
.tipo__box svg .occ { fill: #1d1113; }
.tipo input:hover + .tipo__box { border-color: rgba(242, 238, 236, 0.6); }
.tipo input:checked + .tipo__box { border-color: var(--rojo); background: rgba(208, 12, 28, 0.2); box-shadow: 0 0 0 1px var(--rojo) inset; }
.tipo input:focus-visible + .tipo__box { outline: 2px solid var(--tiza); outline-offset: 3px; }
.tipo input:active + .tipo__box { transform: scale(0.97); }

.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin: 0.15rem 0 0; flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.demo-note { margin: 1.6rem 0 0; font-size: 0.85rem; color: var(--humo); max-width: 52ch; }

.done { display: none; }
.done.is-on { display: block; }
.done h2 { margin-bottom: 1rem; }
.done__plate { max-width: 440px; margin: 2rem 0 1.6rem; }
.done__plate .plate { transform: rotate(-1.4deg); }
.done__pos { font-size: 1.1rem; margin: 0 0 1.8rem; }
.done__cta { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; }

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