/* AFV — programa oficial del Autódromo Francisco Villa
   Los colores viven en los temas de abajo ([data-tema]). Cada tema define:
   --solid (color de estructura: pie, pestañas, rayas), --heading (títulos),
   --accent (botones principales) y --accent-text (acento usado como texto). */

:root {
  --paper: #ffffff;
  --wash: #f2f2ef;
  --wash-2: #e9e9e5;
  --ink: #111111;
  --ink-2: #2e2e2e;
  --muted: #62625f;
  --line: #deded9;
  --solid: #111111;
  --solid-dark: #0d0d0d;
  --heading: #111111;
  --accent: #d71920;
  --accent-hover: #b0141a;
  --accent-ink: #ffffff;
  --accent-text: #c4161d;
  --ok: #0f7a41;
  --ok-wash: #e6f4ec;
  --warn: #8a5300;
  --warn-wash: #fbf1df;
  --err: #b3151b;
  --err-wash: #fbe8e8;

  --display: 'Saira', 'Archivo', system-ui, sans-serif;
  --text: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 4px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .06), 0 8px 24px -12px rgba(17, 17, 17, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Tema VIP: los colores del Top 10 oficial — azul eléctrico, blanco y amarillo */
[data-tema="vip"] {
  --wash: #eef3ff; --wash-2: #dbe5ff; --line: #d3dcf3; --muted: #4a5778; --ink-2: #142049;
  --solid: #0b34b8; --solid-dark: #051a63; --heading: #0a2a96;
  --accent: #ffd400; --accent-hover: #ffe14a; --accent-ink: #0a0f2c; --accent-text: #1243d6;
}
/* En el tema VIP los tiempos van en amarillo sobre una caja azul inclinada, como en el Top 10 oficial */
[data-tema="vip"] .rank .et, [data-tema="vip"] .cl-time { display: inline-block; background: var(--solid-dark); color: var(--accent); padding: 6px 12px 4px; transform: skewX(-10deg); border-radius: 2px; }
[data-tema="vip"] .rank .et small, [data-tema="vip"] .cl-time small { color: #9fb4ff; }
[data-tema="vip"] .podium-et { color: var(--accent); }
[data-tema="vip"] .rank-pos { color: var(--solid); }
[data-tema="vip"] .cover:not(.cover-plain) .cl-time { background: rgba(5, 26, 99, .85); }

/* Tema 1 · Flyer VIP: el verde azulado y el naranja de los flyers de Arrancones VIP */
[data-tema="flyer"] {
  --wash: #e9f4f3; --wash-2: #d5e9e7; --line: #d2e1df; --muted: #4f6462; --ink-2: #1f3533;
  --solid: #0b4f58; --solid-dark: #06343b; --heading: #0b4f58;
  --accent: #c2500e; --accent-hover: #a2420a; --accent-ink: #ffffff; --accent-text: #b04a0c;
}
/* Tema 2 · Azul racing: azul marino con amarillo de bandera */
[data-tema="azul"] {
  --wash: #edf2fb; --wash-2: #dbe5f6; --line: #d6dfee; --muted: #535e78; --ink-2: #1e2a44;
  --solid: #0f2f6e; --solid-dark: #091d45; --heading: #0f2f6e;
  --accent: #ffbf1f; --accent-hover: #ffd055; --accent-ink: #14110a; --accent-text: #8f5600;
}
/* Tema 3 · Desierto: arena de Chihuahua, café oscuro y naranja quemado */
[data-tema="desierto"] {
  --wash: #f5eee3; --wash-2: #ebdfcd; --line: #e4d8c5; --muted: #6c5e50; --ink-2: #33271d;
  --solid: #3d2b1f; --solid-dark: #24180f; --heading: #3d2b1f;
  --accent: #b9470d; --accent-hover: #983a0a; --accent-ink: #ffffff; --accent-text: #a63f0b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #b9b9b4 var(--wash); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; }

/* Títulos: anchos e inclinados, como las letras del logo */
h1, h2, h3, .display {
  font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 125%;
  line-height: 1; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 .45em; text-wrap: balance;
  color: var(--heading);
}
.cover h1, .profile-cover h1, .join h2 { color: inherit; }
.cover-plain h1, .profile-plain h1 { color: var(--heading); }
/* Cabecera con el color del tema */
.masthead { border-top: 4px solid var(--accent); background: var(--solid) !important; border-bottom: 0 !important; color: #fff; }
.masthead .brand, .masthead .brand:hover { color: #fff; }
.masthead .mainnav a { color: rgba(255, 255, 255, .78); }
.masthead .mainnav a:hover, .masthead .mainnav a[aria-current] { color: #fff; }
.masthead .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.masthead .btn-ghost:hover { background: #fff; color: var(--solid); border-color: #fff; }
.masthead .avatar-link { background: #fff; color: var(--solid); }

.aviso-prueba { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; }
.aviso-prueba a { color: inherit; }

/* Selector para comparar temas mientras se decide (se apaga en config.php) */
.tema-picker { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 6px 24px -6px rgba(0, 0, 0, .35); font: 600 .8rem var(--text); }
.tema-picker a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; text-decoration: none; color: #222; }
.tema-picker a[aria-current] { background: #222; color: #fff; }
.tema-picker i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
h1 { font-size: clamp(1.9rem, 5.4vw, 3.3rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); }
h3 { font-size: 1.1rem; letter-spacing: 0; }
.num-display { font-family: var(--display); font-style: italic; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-sm { padding-top: 16px; padding-bottom: 32px; }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--wash); }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--solid); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 52ch; }
.prose { max-width: 68ch; color: var(--ink-2); }
.h-sub { margin-top: 1.8em; }
.page-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 3px solid var(--solid); }
.page-head h1 { margin-bottom: .25em; }
.page-head p:last-child { margin-bottom: 0; }
.page-head-row, .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; }
.back { margin: 0 0 10px; font-size: .9rem; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent-text); }
.more { margin-top: 18px; font-weight: 600; }
.more a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.grid-2, .grid-3 { display: grid; gap: 0 18px; }
.gap-lg { gap: 28px 36px; }
.align-start { align-items: start; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Cabecera ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead-in { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; align-items: center; gap: 4px 16px; padding-top: 10px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: auto; }
.brand-word { display: flex; flex-direction: column; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: .95; font-size: .78rem; letter-spacing: .01em; }
.brand-word b:last-child { font-size: 1.12em; }
.mainnav { grid-area: nav; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 8px); }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; padding: 10px 8px 11px; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current] { color: var(--ink); border-color: var(--accent); }
.masthead-actions { grid-area: actions; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.avatar-link { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: #fff; font: 700 .82rem var(--text); text-decoration: none; }
.avatar-link:hover { background: var(--accent); color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; }
@media (min-width: 1020px) {
  .masthead-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions"; padding-top: 0; min-height: 68px; }
  .mainnav { margin: 0; padding: 0; justify-content: center; }
  .mainnav a { padding: 23px 10px 21px; }
  .brand-mark { width: 46px; }
  .brand-word { font-size: .86rem; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 2px solid var(--solid); background: var(--paper); color: var(--ink); font: 700 .95rem/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--solid); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--solid); }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #17733e; border-color: #17733e; color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #0b5f32; border-color: #0b5f32; }
.btn-danger { border-color: var(--err); color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[aria-busy=true] { opacity: .7; pointer-events: none; }
.on-photo .btn { border-color: #fff; background: transparent; color: #fff; }
.on-photo .btn:hover { background: #fff; color: var(--ink); }
.on-photo .btn-primary { background: var(--accent); border-color: var(--accent); }
.on-photo .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.on-photo .btn-wa { background: #1f8f4e; border-color: #1f8f4e; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.linklike:hover { color: var(--accent-text); }
.danger, .linklike.danger { color: var(--err); }

/* ---------- Avisos ---------- */
.alert { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); font-size: .95rem; border: 1px solid; }
.alert-ok { background: var(--ok-wash); border-color: #b6dcc6; color: #0b5a30; }
.alert-error { background: var(--err-wash); border-color: #efc0c0; color: #8c1015; }
.alert-info { background: var(--warn-wash); border-color: #ecd3a6; color: #6b4100; }
.code-big { font-size: 1.3rem; background: var(--solid); color: #fff; padding: 2px 10px; border-radius: var(--radius); margin: 0 6px; }

/* ---------- Portada (foto con títulos encima) ---------- */
.cover { position: relative; isolation: isolate; color: #fff; background: var(--solid); overflow: hidden; }
.cover-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .78) 100%); }
.cover-in { display: grid; gap: 28px; align-content: end; min-height: min(78svh, 720px); padding-top: 120px; padding-bottom: 32px; }
.cover-plain { background: var(--wash); color: var(--ink); }
.cover-plain::before { background: url('../img/caballo.png') right -40px bottom -30px / min(520px, 70vw) no-repeat; opacity: .08; }
.cover-plain .cover-in { min-height: 0; padding-top: 56px; }
.cover-title { font-size: clamp(2.3rem, 8.4vw, 5.6rem); margin: 0 0 .25em; max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.cover-plain .cover-title { text-shadow: none; }
.cover-meta { font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 600; margin: 0 0 4px; }
.cover-prices { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.cover-prices b { font-family: var(--display); font-style: italic; font-stretch: 112%; font-size: 1.15rem; margin-left: 4px; }
.cover-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .45); }
.cover-plain .cover-lines { border-color: var(--solid); }
.cover-lines li { border-bottom: 1px solid rgba(255, 255, 255, .45); }
.cover-plain .cover-lines li { border-color: var(--line); }
.cover-lines a { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; padding: 12px 0; color: inherit; text-decoration: none; }
.cover-lines a:hover .cl-time { color: var(--accent-text); }
.cl-time { grid-row: span 2; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: .9; transition: color .2s; }
.cl-time small { font-size: .4em; margin-left: 2px; }
.cl-who { font-weight: 700; }
.cl-what { font-size: .85rem; opacity: .85; }
.cover-credit { position: absolute; right: 10px; bottom: 6px; margin: 0; font-size: .7rem; opacity: .75; }
.cover-credit a { color: inherit; }
@media (min-width: 960px) {
  .cover-in { grid-template-columns: 1fr 400px; align-items: end; gap: 48px; }
}

/* ---------- Banners (flyers de eventos) ---------- */
.banners { position: relative; background: var(--solid-dark); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-track:focus-visible { outline-offset: -4px; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2.7 / 1; max-height: 560px; overflow: hidden; isolation: isolate; display: block; }
.banner::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--img) center / cover no-repeat; filter: blur(28px) brightness(.55) saturate(1.2); }
.banner img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 719px) { .banner { aspect-ratio: 16 / 9; } }
.banner-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 8px 0 10px; background: var(--solid-dark); }
.banner-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; }
.banner-btn:hover { background: #fff; color: var(--ink); }
.banner-dots { display: flex; gap: 6px; }
.banner-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .3s var(--ease), background-color .2s; }
.banner-dots button[aria-current] { width: 24px; border-radius: 5px; background: #fff; }
.next-event { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .next-event { grid-template-columns: 1fr 420px; align-items: end; gap: 48px; } }
.next-event .cl-time { font-size: clamp(2rem, 4vw, 2.6rem); }
.next-event .cover-title { font-size: clamp(2rem, 5.6vw, 3.6rem); text-shadow: none; max-width: 18ch; }
.next-event .cover-lines { border-color: var(--solid); }
.next-event .cover-lines li { border-color: var(--line); }
.flyer { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.flyer img { width: 100%; height: auto; }

/* ---------- Bloques de series (foto + texto alternados) ---------- */
.split { display: grid; gap: 22px; align-items: center; }
.split + .split { margin-top: 48px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .split-reverse .split-media { order: 2; }
}
.split-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split-body h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.about { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.about h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.about-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--wash); }
.about-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.specs-list { margin: 18px 0 0; border-top: 2px solid var(--solid); }
.specs-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs-list dt { color: var(--muted); font-weight: 600; }
.specs-list dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .specs-list div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Patrocinadores ---------- */
.sponsors { background: var(--wash); border-top: 1px solid var(--line); }
.sponsors-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-top: 26px; padding-bottom: 26px; }
.sponsors-title { font-size: 1rem; margin: 0; color: var(--muted); }
.sponsors-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.sponsor-logo { display: inline-flex; align-items: center; justify-content: center; height: 64px; min-width: 64px; text-decoration: none; color: var(--ink); }
.sponsor-logo img { max-height: 64px; max-width: 200px; width: auto; object-fit: contain; }
/* Logos claros (letras blancas o plateadas) van sobre un recuadro oscuro para que se vean */
.sponsor-oscuro { background: var(--solid-dark); padding: 8px 16px; border-radius: var(--radius); height: 80px; }
.sponsor-mini .sponsor-oscuro { height: 48px; padding: 4px 10px; }
.sponsor-logo-box.sponsor-oscuro { height: 80px; }
.sponsor-mini { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.sponsor-mini .sponsor-logo, .sponsor-mini .sponsor-logo img { height: 40px; max-height: 40px; }
.top10-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.sponsor-admin { display: grid; gap: 12px; }
.sponsor-item { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.sponsor-item.is-off { opacity: .5; }
.sponsor-logo-box { height: 80px; display: grid; place-items: center; background: var(--wash); border-radius: var(--radius); padding: 8px; }
.sponsor-logo-box img { max-height: 64px; max-width: 120px; object-fit: contain; }

/* ---------- Pestañas ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--solid); border-radius: var(--radius); overflow: hidden; }
.tabs a { padding: 8px 16px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); }
.tabs a + a { border-left: 2px solid var(--solid); }
.tabs a:hover { background: var(--wash); color: var(--ink); }
.tabs a[aria-current] { background: var(--solid); color: #fff; }
.tabs-sm { margin: 0 0 20px; }
.admin-nav { margin-bottom: 22px; }

/* ---------- Podio y ranking ---------- */
.podium { display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 760px) { .podium { grid-template-columns: 1.35fr 1fr 1fr; align-items: end; } }
.podium-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; padding: 16px 18px; color: #fff; text-decoration: none; background: var(--solid); overflow: hidden; border-radius: var(--radius); }
.podium-card:first-child { aspect-ratio: 4 / 3.4; }
.podium-card:hover { color: #fff; }
.podium-card img, .podium-card .podium-empty { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.podium-card:hover img { transform: scale(1.04); }
.podium-empty { background: var(--solid) url('../img/caballo-blanco.png') center 30% / 46% no-repeat; opacity: .9; }
.podium-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82) 100%); }
.podium-pos { position: absolute; top: 10px; left: 14px; font-size: 3.4rem; line-height: 1; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.podium-card:first-child .podium-pos { color: var(--accent-ink); background: var(--accent); padding: 4px 14px 2px 10px; top: 0; left: 0; border-radius: 0 0 var(--radius) 0; text-shadow: none; }
.podium-et { font-size: clamp(2.2rem, 5vw, 3rem); line-height: .95; }
.podium-et small { font-size: .42em; margin-left: 2px; }
.podium-name { font-weight: 700; font-size: 1.05rem; }
.podium-car { font-size: .85rem; opacity: .85; }

.rank { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--solid); counter-reset: none; }
.rank-row { border-bottom: 1px solid var(--line); }
.rank-link { display: grid; grid-template-columns: 2.2rem 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.rank-link:hover { background: var(--wash); color: var(--ink); }
.rank-pos { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.6rem; text-align: center; color: var(--muted); }
.podium-row .rank-pos { color: var(--accent-text); }
.rank-thumb { width: 72px; height: 50px; object-fit: cover; border-radius: 2px; background: var(--wash); }
.rank-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rank-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-car, .rank-event { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-event { font-size: .78rem; }
.rank-time { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.et { font-family: var(--display); font-style: italic; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; font-size: 1.6rem; line-height: 1; }
.et small { font-size: .5em; color: var(--muted); margin-left: 2px; }
.mph { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--solid); color: #fff; vertical-align: 1px; }
.verified svg { width: 10px; height: 10px; }
@media (min-width: 720px) {
  .rank-link { grid-template-columns: 3rem 104px minmax(0, 1fr) auto; gap: 18px; padding: 12px 8px; }
  .rank-thumb { width: 104px; height: 70px; }
  .et { font-size: 2rem; }
}
.thumb, .rank-thumb, .car-photo, .person-cover { background-color: var(--wash); }
.thumb-empty { display: grid; place-items: center; color: var(--muted); font: 700 .95rem var(--text); background: var(--wash) url('../img/caballo.png') center / 46% no-repeat; background-blend-mode: normal; }
.thumb-empty.has-initials { background-image: none; }
.empty { padding: 28px 22px; border: 1px dashed #c9c9c3; border-radius: var(--radius); color: var(--muted); text-align: center; background: var(--wash); }
.empty-state { text-align: center; }
.empty-state h1 { font-size: 6rem; color: var(--accent-text); }
.all-runs { margin-top: 16px; }
.all-runs summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
.all-runs summary:hover { color: var(--accent-text); }

/* ---------- Eventos ---------- */
.event-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .event-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .event-list-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.event-card:hover { color: var(--ink); }
.event-card:hover .event-name { color: var(--accent-text); }
.event-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--wash); }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-photo img { transform: scale(1.04); }
.event-photo .thumb-empty { width: 100%; height: 100%; }
.date-chip { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px 3px; background: var(--paper); color: var(--ink); line-height: 1; border-radius: 0 2px 0 0; }
.date-chip b { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.35rem; }
.date-chip span { font-size: .64rem; font-weight: 700; letter-spacing: .08em; }
.date-chip.is-next { background: var(--accent); color: var(--accent-ink); }
.event-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.event-name { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1.05; font-size: 1.05rem; transition: color .15s; }
.event-meta { font-size: .87rem; color: var(--muted); }
.event-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.event-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .92rem; color: var(--accent-text); }
.event-card-lg { grid-template-columns: 1fr; border: 0; padding: 0; }
.event-card-lg .event-stats { font-size: .9rem; margin-top: 4px; }
.event-card-lg .event-photo { aspect-ratio: 16 / 9; }
.event-card-lg .event-name { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.event-card-lg .date-chip { min-width: 62px; padding: 6px 8px 5px; }
.event-card-lg .date-chip b { font-size: 1.8rem; }
@media (min-width: 900px) {
  .feature .event-card-lg { grid-template-columns: 1.6fr 1fr; gap: 32px; }
}
.event-layout { display: grid; gap: 36px; }
@media (min-width: 1020px) { .event-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .event-side { position: sticky; top: 92px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .8em; }
.card-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card-row p { margin: 0; }
.side-title { margin-top: 28px; }
.info-card { border-top: 3px solid var(--solid); border-radius: 0; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
.prices { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 0; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.prices li b { font-family: var(--display); font-style: italic; font-stretch: 112%; font-size: 1.15rem; }

/* ---------- Fotos y videos ---------- */
.mosaic { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
.mosaic .photo:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; } }
.mosaic .photo img { height: 100%; aspect-ratio: auto; }
.photo-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); margin-top: 14px; }
.photo { margin: 0; position: relative; overflow: hidden; background: var(--wash); border-radius: 2px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 7px; font-size: .74rem; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; display: flex; align-items: center; gap: 5px; }
.photo figcaption a { color: #fff; font-weight: 700; }
.media-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.media-card { display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--solid); border-radius: 2px; overflow: hidden; }
.video-tiktok, .video-instagram { aspect-ratio: 9 / 14; max-height: 640px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-decoration: none; background: #1d1d1d url('../img/caballo-blanco.png') center / 30% no-repeat; }
.video-link:hover { color: #fff; }
.play { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.media-body { padding: 12px 0 0; }
.media-title { font: 700 1.02rem/1.3 var(--text); text-transform: none; margin: 0 0 6px; }
.media-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; margin: 0 0 4px; }
.media-credit { font-size: .8rem; color: var(--muted); margin: 0; }
.media-credit a { color: var(--muted); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 2px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--solid); color: #fff; }
.badge-youtube { background: #cc0000; }
.badge-facebook { background: #1b5fd6; }
.badge-tiktok { background: #111; }
.badge-instagram { background: #b5287a; }

/* ---------- Clasificados (promociones) ---------- */
.classifieds { border-top: 6px solid var(--solid); }
.classifieds-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; padding: 14px 0 16px; border-bottom: 1px solid var(--solid); margin-bottom: 18px; }
.classifieds-head h2 { margin: 0; }
.classifieds-head p { margin: 0; color: var(--muted); }
.promo-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-left: 1px solid var(--line); }
.promo { position: relative; padding: 18px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.event-side .promo { border: 1px solid var(--line); margin-bottom: 12px; }
.promo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.promo-tag { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.promo-price { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.6rem; line-height: 1; }
.promo h3 { font: 800 1.1rem/1.25 var(--text); text-transform: none; margin: 0 0 6px; }
.promo p { font-size: .92rem; color: var(--ink-2); margin-bottom: 10px; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem !important; color: var(--muted) !important; margin-top: auto; }
.promo-meta a { font-weight: 700; color: var(--ink); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.join { display: grid; gap: 24px; align-items: center; padding: 36px 28px; background: var(--solid); color: #fff; border-radius: var(--radius); position: relative; overflow: hidden; isolation: isolate; }
.join::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 320px; height: 320px; z-index: -1; background: url('../img/caballo-blanco.png') center / contain no-repeat; opacity: .12; }
.join h2 { margin-bottom: .3em; }
.join p { margin: 0; max-width: 60ch; color: #dcdcdc; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr auto; padding: 44px 48px; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.field > label, .seg legend, .choice legend { font-size: .88rem; font-weight: 700; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.req { font-weight: 700; color: var(--accent-text); font-size: .75em; text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid #c9c9c3;
  background: var(--paper); color: var(--ink); font: 16px/1.4 var(--text); caret-color: var(--accent); transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #9a9a95; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=file] { padding: 10px; font-size: .9rem; cursor: pointer; background: var(--wash); }
input[type=file]::file-selector-button { border: 2px solid var(--solid); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 7px 12px; margin-right: 10px; font-weight: 700; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #8a8a85; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 19px; height: 19px; }
.field-check, .field-check label { display: flex; align-items: center; gap: 10px; font-size: .94rem; cursor: pointer; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { margin-bottom: 8px; width: 100%; }
.seg label { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid #c9c9c3; font-weight: 700; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--solid); box-shadow: inset 0 0 0 1px var(--solid); }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice legend { margin-bottom: 8px; }
.choice-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1.5px solid #c9c9c3; cursor: pointer; }
.choice-item:hover { border-color: #9a9a95; }
.choice-item:has(input:checked) { border-color: var(--solid); box-shadow: inset 0 0 0 1px var(--solid); }
.choice-item input { margin-top: 3px; }
.choice-item span { display: flex; flex-direction: column; }
.choice-item small { color: var(--muted); }
.ticket-form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 18px; border-radius: var(--radius); background: var(--wash); }
.ticket-form input { font-variant-numeric: tabular-nums; }
.ticket-form .field > label { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ticket-form .field-check { align-self: end; min-height: 48px; }
.field-et { grid-column: 1 / -1; }
.field-et input { font-family: var(--display); font-style: italic; font-stretch: 112%; font-size: 1.8rem; font-weight: 700; min-height: 62px; border-color: var(--solid); }
@media (min-width: 720px) { .ticket-form { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin: 14px 0 0; }
.step span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: #fff; font-size: .95rem; font-style: normal; }
.upload-box { padding: 14px; border: 1.5px dashed #b5b5b0; border-radius: var(--radius); }
.ticket-preview { max-height: 440px; width: auto; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); }
.photo-field { display: flex; align-items: center; gap: 18px; }
.photo-field .field { flex: 1; }
.photo-field-wide { flex-direction: column; align-items: stretch; }
.danger-zone { margin-top: 22px; text-align: right; }
.filters { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 24px; padding: 16px; background: var(--wash); border-radius: var(--radius); }
.filters .btn { grid-column: 1 / -1; }
@media (min-width: 960px) { .filters { grid-template-columns: repeat(6, 1fr) auto; } .filters .btn { grid-column: auto; } }
.filters-inline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; background: none; padding: 0; }
.inline-form select { min-width: 240px; }
.search input { min-width: min(320px, 100%); }
.video-preview { padding: 10px 14px; border-radius: var(--radius); font-size: .92rem; font-weight: 700; }
.video-preview.ok { background: var(--ok-wash); color: #0b5a30; }
.video-preview.bad { background: var(--err-wash); color: #8c1015; }
.narrow-form { max-width: 880px; }

/* ---------- Detalle de pasada y ticket ---------- */
.run { display: grid; gap: 32px; }
@media (min-width: 960px) { .run { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.run-context { font-weight: 600; margin: 0 0 6px; }
.run-et { font-size: clamp(4.4rem, 17vw, 8rem); line-height: .88; margin: 0; }
.run-et small { font-size: .28em; color: var(--muted); }
.run-speed { font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.5rem; margin: 6px 0; }
.run-pos { font-size: 1.05rem; }
.run-pos b { color: var(--accent-text); }
.who { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; margin: 6px 0 20px; }
.who:hover { border-color: var(--solid); color: var(--ink); }
.who > span { display: flex; flex-direction: column; line-height: 1.25; }
.who .muted { font-size: .85rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.thumb-empty { background-image: none; background-color: var(--ink); color: #fff; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.5rem; }
.avatar-xl { width: 128px; height: 128px; font-size: 2.2rem; }
.run-photo { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.slip { margin: 0; background: #fbfaf6; color: #2b2a27; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; padding: 22px 22px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(-.5deg);
  -webkit-mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 0 0 / 14px 100% repeat-x; }
.slip-head { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .08em; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #b9b29f; }
.slip dl { margin: 0; display: grid; gap: 3px; }
.slip dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.slip dt { color: #6f6a5d; letter-spacing: .04em; }
.slip dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.slip .slip-et { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #b9b29f; align-items: baseline; }
.slip .slip-et dt { color: #2b2a27; font-weight: 700; }
.slip .slip-et dd { font-size: 1.6rem; }
.slip figcaption { font-size: .68rem; color: #8b8573; margin-top: 10px; text-align: center; }

/* ---------- Perfiles ---------- */
.profile-cover { position: relative; isolation: isolate; color: #fff; background: var(--solid); overflow: hidden; }
.profile-cover .cover-in { min-height: min(56svh, 520px); }
.profile { display: grid; gap: 22px; align-items: end; }
@media (min-width: 900px) { .profile { grid-template-columns: auto minmax(0, 1fr) 300px; } }
.profile-info h1 { margin-bottom: .15em; }
.profile-info .prose { color: inherit; opacity: .92; }
.profile-cover .avatar-xl { border: 4px solid #fff; }
.profile-plain { background: var(--wash); color: var(--ink); }
.profile-plain::before { display: none; }
.profile-bests { display: grid; gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid currentColor; }
@media (min-width: 900px) { .profile-bests { grid-template-columns: 1fr; } }
.best { padding: 12px 0; display: flex; flex-direction: column; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.best-label { font-size: .8rem; font-weight: 700; opacity: .85; }
.best-et { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 2.6rem; line-height: 1; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.best-et small { font-size: .42em; margin-left: 2px; }
a.best-et:hover { color: var(--accent-text); }
.best .small { opacity: .8; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.social { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; font-size: .85rem; font-weight: 700; color: inherit; text-decoration: none; }
.social:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.profile-plain .social:hover { background: var(--solid); color: #fff; border-color: var(--solid); }
.profile-actions .btn { border-color: currentColor; background: transparent; color: inherit; }
.profile-actions .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.profile-plain .profile-actions .btn:hover { background: var(--solid); color: #fff; border-color: var(--solid); }
.profile-actions .btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.car-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.car-card { display: flex; flex-direction: column; }
.car-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; font-size: 2rem; }
.photo-field .car-photo { max-height: 280px; }
.car-body { padding: 14px 0 0; }
.car-body h3 { margin: 0 0 4px; }
.specs { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 0; font-size: .9rem; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); min-width: 76px; }
.car-times { display: flex; gap: 18px; margin: 0; font-size: .9rem; color: var(--muted); }
.car-times b { color: var(--ink); font-family: var(--display); font-style: italic; font-stretch: 112%; font-size: 1.35rem; }
.car-list { display: grid; gap: 0; margin-bottom: 8px; border-top: 1px solid var(--line); }
.car-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.car-row:hover { background: var(--wash); color: var(--ink); }
.car-row > span { display: flex; flex-direction: column; }
.car-row .thumb { width: 72px; height: 50px; object-fit: cover; border-radius: 2px; }
.people-grid { display: grid; gap: 22px 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); }
.person-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.person-card:hover { color: var(--ink); }
.person-card:hover .person-name { color: var(--accent-text); }
.person-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; font-size: 2rem; transition: filter .3s; }
.person-card:hover .person-cover { filter: brightness(1.06); }
.person-body { padding: 10px 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-name { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; transition: color .15s; }
.person-car { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-times { display: flex; gap: 12px; margin-top: 4px; font-family: var(--display); font-style: italic; font-weight: 700; font-stretch: 112%; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.person-times small { color: var(--muted); font-size: .75em; margin-right: 2px; }
.chart { margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-dasharray: 4 4; }
.chart .lbl { fill: var(--muted); font: 12px var(--text); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; }
.chart figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--solid); margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tbody tr:hover { background: var(--wash); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.et-link { font-family: var(--display); font-style: italic; font-weight: 700; font-stretch: 112%; font-size: 1.15rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; white-space: nowrap; }
.row-actions form { display: inline; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-pendiente { background: var(--warn-wash); color: var(--warn); }
.status-aprobada { background: var(--ok-wash); color: var(--ok); }
.status-rechazada { background: var(--err-wash); color: var(--err); }

/* ---------- Mi cuenta ---------- */
.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-bottom: 32px; }
.quick-col { grid-template-columns: 1fr; }
.quick-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
.quick-item:hover { border-color: var(--solid); color: var(--ink); }
.quick-item b { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: 1.05rem; }
.quick-item small { grid-column: 2; color: var(--muted); }
.qi-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); }
.qi-icon svg { width: 22px; height: 22px; }
.quick-primary { background: var(--solid); border-color: var(--solid); color: #fff; }
.quick-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quick-primary small { color: #d5d5d5; }
.quick-primary:hover small { color: var(--accent-ink); }
.quick-primary .qi-icon { background: var(--accent); color: var(--accent-ink); }
.quick-primary:hover .qi-icon { background: #fff; color: var(--accent-text); }

/* ---------- Panel ---------- */
.stats { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 28px; border-top: 2px solid var(--solid); }
.stat { padding: 14px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.stat b { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .84rem; color: var(--muted); }
.stat-alert b { color: var(--accent-text); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.review { display: grid; gap: 20px; padding: 20px 0 28px; border-top: 2px solid var(--solid); }
@media (min-width: 960px) { .review { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } .review-photo { position: sticky; top: 92px; } }
.review-photo img { width: 100%; max-height: 640px; object-fit: contain; background: var(--wash); border-radius: var(--radius); }
.review-photo .review-car { margin-top: 10px; max-height: 160px; object-fit: cover; }
.review-head p { margin: 2px 0 0; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; }
.review-actions .motivo { flex: 1; min-width: 200px; }
.banner-admin { display: grid; gap: 14px; }
.banner-item { display: grid; gap: 10px; border-top: 2px solid var(--solid); padding-top: 12px; }
.banner-item img { width: 100%; aspect-ratio: 2.7 / 1; object-fit: contain; background: #111; border-radius: 2px; }
.banner-item.is-off img { opacity: .45; }
.banner-item-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mod-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mod { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mod.is-hidden { opacity: .5; }
.mod img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mod-video { aspect-ratio: 4 / 3; display: grid; place-content: center; text-align: center; background: var(--solid); color: #fff; padding: 12px; word-break: break-all; text-decoration: none; }
.mod-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Pie ---------- */
.footer { margin-top: 56px; background: var(--solid); color: #cfcfcf; }
.footer-in { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.1fr 1.4fr 1fr; } }
.footer-logo { width: 200px; height: auto; margin-bottom: 12px; }
.footer a, .footer .linklike { color: #cfcfcf; text-decoration: none; }
.footer a:hover, .footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: .94rem; }
.footer .muted { color: #a6a6a6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
