/* B Nacional Histórica. Azules profundos con un celeste de los logos de la categoría como único acento.
   Tipografía: Archivo (títulos) + Inter (texto y números). Concepto: anuario deportivo sobrio, superficies claras y una portada azul marino. */
:root {
  --navy: #0b2447; --navy2: #123a6b; --blue: #1b4f8f; --sky: #5fb4e6; --sky-hi: #a9d8f3; --sky-soft: #e1eef9;
  --ink: #0d1b2e; --muted: #53657c; --paper: #ffffff; --fog: #f4f7fb; --fog2: #e4ebf4; --line: #d5deea; --link: #1b4f8f;
  --btn: #0b2447; --on-btn: #ffffff; --deep: #0b2447; --score-bg: #0b2447; --score-fg: #ffffff; --up: #e1eef9;
  --shadow: 0 1px 2px rgba(11,36,71,.08), 0 10px 28px rgba(11,36,71,.08); --shadow-hi: 0 2px 4px rgba(11,36,71,.1), 0 16px 36px rgba(11,36,71,.16);
  --display: "Archivo", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #e8eff8; --muted: #93a8c2; --paper: #0a1626; --fog: #0f1f35; --fog2: #19304d; --line: #223a58; --link: #7dbcf0; --blue: #5fa3e0; --sky-soft: #14304f; --up: #14304f;
  --btn: #5fb4e6; --on-btn: #08172b; --deep: #0b2447; --score-bg: #5fb4e6; --score-fg: #08172b; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35); --shadow-hi: 0 2px 4px rgba(0,0,0,.5), 0 16px 36px rgba(0,0,0,.5); color-scheme: dark; } }
:root[data-theme="dark"] { --ink: #e8eff8; --muted: #93a8c2; --paper: #0a1626; --fog: #0f1f35; --fog2: #19304d; --line: #223a58; --link: #7dbcf0; --blue: #5fa3e0; --sky-soft: #14304f; --up: #14304f;
  --btn: #5fb4e6; --on-btn: #08172b; --deep: #0b2447; --score-bg: #5fb4e6; --score-fg: #08172b; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35); --shadow-hi: 0 2px 4px rgba(0,0,0,.5), 0 16px 36px rgba(0,0,0,.5); color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
main:focus-visible { outline: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; color: inherit; }
h1 { font-weight: 700; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(2rem, 1.1rem + 3.6vw, 3.6rem); }
h2 { font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-weight: 650; font-stretch: 105%; letter-spacing: -.01em; font-size: 1.2rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.skip { position: absolute; left: -999px; top: 0; background: var(--btn); color: var(--on-btn); padding: 8px 14px; z-index: 80; } .skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); } .cap { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-top: 16px; }
.link { font: 600 .9rem var(--body); white-space: nowrap; text-decoration: none; } .link:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

.progress { position: fixed; z-index: 70; left: 0; top: env(safe-area-inset-top, 0px); height: 3px; width: 100%; background: var(--sky); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 61; }

/* barra superior */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand::before { content: ""; width: 12px; height: 26px; border-radius: 3px; background: linear-gradient(var(--sky) 0 33%, var(--blue) 33% 66%, var(--navy) 66%); } 
.brand__t { display: flex; gap: 6px; font: 700 1.05rem/1 var(--display); font-stretch: 110%; letter-spacing: -.01em; } .brand__b { font-weight: 500; color: var(--blue); }
.nav { display: flex; gap: 0; margin-left: auto; flex-wrap: nowrap; }
.nav a { padding: 9px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font: 500 .88rem var(--body); position: relative; transition: color .15s, background .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--fog); } .nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; } .nav a[aria-current="page"]::after { transform: scaleX(1); }
.searchbtn, .menubtn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; height: 40px; cursor: pointer; font: 500 .88rem var(--body); transition: background .15s; } .searchbtn { width: 40px; display: grid; place-items: center; } .searchbtn:hover, .menubtn:hover { background: var(--fog); }
.menubtn { display: none; padding: 0 14px; margin-left: auto; }
@media (max-width: 1200px) { .menubtn { display: block; } .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gr) 14px var(--gl); flex-direction: column; margin: 0; } .nav.open { display: flex; } .nav a { padding: 13px 10px; } }

.band { padding-block: 54px; } .band--fog { background: var(--fog); }

/* portada */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.035) 60px 120px); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; padding-block: 60px 0; }
.hero__txt { padding-bottom: 60px; }
.hero .eyebrow { color: var(--sky-hi); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.1rem + 4.2vw, 4.2rem); font-weight: 700; } .hero h1 .w { color: var(--sky); font-style: normal; }
.hero .lead { color: rgba(255,255,255,.78); }
.hero__find { position: relative; margin-top: 28px; max-width: 520px; }
.hero__find input { width: 100%; height: 54px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.96); color: #0d1b2e; padding: 0 18px; font: inherit; font-size: 1rem; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; } .hero__find input:focus { outline: none; box-shadow: 0 0 0 3px var(--sky), var(--shadow); }
.suggest { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 8; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hi); animation: pop .18s ease both; color: var(--ink); }
.suggest a, .sug { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); align-items: baseline; } .suggest a:hover, .sug:hover { background: var(--fog); color: var(--ink); }
.sug__k { font: 600 .68rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); } .sug__d { color: var(--muted); font-size: .85rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

.stairs { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 330px; padding-top: 30px; }
.stairs__bar { flex: 1; min-width: 0; position: relative; height: calc(var(--h) * 1%); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-bottom: 0; border-radius: 4px 4px 0 0; cursor: pointer; transform-origin: 50% 100%; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 22ms + .15s); transition: background .15s, transform .15s; padding: 0; }
.stairs__bar:hover, .stairs__bar:focus-visible, .stairs__bar.on { background: var(--sky); border-color: var(--sky); transform: scaleY(1.03); z-index: 3; }
.stairs__bar::after { content: attr(data-y); position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%) rotate(-90deg); transform-origin: 50% 50%; font: 600 .62rem var(--body); letter-spacing: .04em; color: var(--navy); white-space: nowrap; margin-bottom: 14px; opacity: 0; transition: opacity .15s; } .stairs__bar:hover::after, .stairs__bar.on::after { opacity: 1; }
@keyframes rise { from { transform: scaleY(0); } to { transform: none; } }
.stairs__tip { position: absolute; left: 0; top: -2px; font: 650 .95rem/1.25 var(--display); background: #fff; color: var(--navy); padding: 9px 13px; border-radius: 8px; box-shadow: var(--shadow-hi); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; max-width: 72%; z-index: 5; } .stairs__tip.on { opacity: 1; transform: none; } .stairs__tip small { display: block; font: 400 .76rem var(--body); color: var(--muted); }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; padding-top: 38px; } .hero__txt { padding-bottom: 14px; } .stairs { height: 220px; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 26px 20px; border-left: 1px solid var(--line); } .kpi:first-child { border-left: 0; padding-left: 0; }
.kpi__n { font: 700 clamp(1.8rem, 1.1rem + 2.2vw, 2.8rem)/1 var(--display); font-stretch: 108%; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; } .kpi__l { color: var(--muted); font-size: .9rem; margin-top: 6px; }
:root[data-theme="dark"] .kpi__n { color: var(--ink); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kpi__n { color: var(--ink); } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { border-left: 0; padding-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }

.marquee { overflow: hidden; background: var(--navy); color: #fff; padding-block: 15px; }
.marquee__in { display: flex; width: max-content; animation: slide 100s linear infinite; } .marquee:hover .marquee__in, .marquee:focus-within .marquee__in { animation-play-state: paused; }
.marquee a { display: flex; align-items: baseline; gap: 10px; padding: 0 26px; color: #fff; text-decoration: none; font: 600 1rem var(--display); font-stretch: 105%; white-space: nowrap; } .marquee a small { font: 500 .78rem var(--body); color: var(--sky); letter-spacing: .06em; } .marquee a:hover { color: var(--sky-hi); }
.marquee a::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); margin-left: 26px; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__in { animation: none; } .stairs__bar, .pagein > *, .suggest { animation: none; } html { scroll-behavior: auto; } }

.page { padding-block: 44px 70px; }
.sec { padding-block: 48px 6px; } .sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; } .sec > .muted, .sec p.muted { margin-bottom: 18px; max-width: 70ch; }
@keyframes up { from { opacity: .001; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pagein > * { animation: up .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; } .cols2 > * { min-width: 0; } @media (max-width: 820px) { .cols2 { grid-template-columns: 1fr; gap: 14px; } }
.phead { padding-bottom: 6px; } .phead h1 { max-width: 22ch; } .crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 16px; } .crumbs a { color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 26px 0 18px; }
.toolbar input, .toolbar select, .sel select { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 0 14px; font: inherit; min-width: 0; } .toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-soft); } .toolbar input { min-width: min(100%, 260px); } .sel { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 500 .9rem var(--body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; } .chip:hover { background: var(--fog); border-color: var(--blue); } .chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--sky); color: #08172b; border-color: var(--sky); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--sky); color: #08172b; border-color: var(--sky); } }
.btn { display: inline-block; background: var(--btn); color: var(--on-btn); border: 1px solid var(--btn); border-radius: 10px; padding: 11px 18px; font: 600 .9rem var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; } .btn:hover { color: var(--on-btn); transform: translateY(-1px); box-shadow: var(--shadow); } .btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn--ghost:hover { color: var(--ink); background: var(--fog); }
.more { text-align: center; margin-top: 22px; }
.pill { display: inline-block; font: 600 .72rem var(--body); letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; background: var(--fog2); color: var(--ink); white-space: nowrap; } .pill--champ { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .pill--champ { background: var(--sky); color: #08172b; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--champ { background: var(--sky); color: #08172b; } }

/* tarjetas de ascenso */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 18px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x proximity; } .rail > * { scroll-snap-align: start; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.acard { all: unset; box-sizing: border-box; display: block; cursor: pointer; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; width: 100%; position: relative; box-shadow: var(--shadow); transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out, box-shadow .25s; will-change: transform; }
.acard:hover { box-shadow: var(--shadow-hi); } .acard:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.acard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.5), transparent 55%); opacity: 0; transition: opacity .2s; pointer-events: none; mix-blend-mode: soft-light; } .acard:hover::after { opacity: 1; }
.acard__img { position: relative; aspect-ratio: 4 / 3; background: var(--fog2); overflow: hidden; } .acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); } .acard:hover .acard__img img { transform: scale(1.07); }
.acard__badge { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.94); color: var(--navy); font: 600 .68rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; } .acard__badge.is-champ { background: var(--navy); color: #fff; }
.acard__txt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 14px; } .acard__txt b { font: 650 1rem var(--display); font-stretch: 105%; letter-spacing: -.01em; } .acard__txt span { color: var(--muted); font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acard--c .acard__txt { padding: 8px 12px 10px; }
.mono { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy2), var(--navy)); position: relative; } .mono::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.045) 22px 44px); }
.mono span { position: relative; font: 700 2.2rem/1 var(--display); font-stretch: 112%; color: #fff; letter-spacing: .02em; }
.mono--s { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; } .mono--s span { font-size: 1.05rem; } .mono--xl { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; } .mono--xl span { font-size: 3.4rem; }
.yr { margin-top: 38px; } .yr h3 { margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; font-size: 1.6rem; font-weight: 700; } .yr h3 small { font: 400 .9rem var(--body); color: var(--muted); }

.viewer { display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.viewer__img { position: relative; background: var(--fog2); min-height: 340px; overflow: hidden; } .viewer__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .55s ease both; }
.viewer__info { padding: 30px; display: grid; gap: 12px; align-content: center; } .viewer__info h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; } .viewer__info .big { font: 700 clamp(3rem, 2rem + 5vw, 5.6rem)/.9 var(--display); font-stretch: 112%; color: var(--blue); letter-spacing: -.04em; } .viewer__cap { color: var(--muted); font-size: .92rem; }
:root[data-theme="dark"] .viewer__info .big { color: var(--sky); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .viewer__info .big { color: var(--sky); } }
@keyframes fade { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .viewer { grid-template-columns: 1fr; } .viewer__img { min-height: 240px; } }
.timeline { margin: 26px 0 8px; display: grid; gap: 10px; } .timeline__row { display: flex; gap: 14px; align-items: center; }
.timeline input[type=range] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--v, 0%), var(--fog2) var(--v, 0%)); cursor: pointer; }
.timeline input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); box-shadow: var(--shadow); cursor: grab; } .timeline input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.timeline__ticks { display: flex; justify-content: space-between; color: var(--muted); font: 500 .76rem var(--body); }
.iconbtn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: .9rem; cursor: pointer; transition: transform .15s, background .15s; display: grid; place-items: center; box-shadow: var(--shadow); } .iconbtn:hover { transform: scale(1.07); background: var(--blue); } .iconbtn:active { transform: scale(.96); }

/* carrera de la tabla histórica */
.race { background: var(--navy); color: #fff; border-radius: 16px; padding: 24px 24px 18px; position: relative; overflow: hidden; }
.race__stage { position: relative; height: calc(var(--n) * 38px); }
.race__row { position: absolute; left: 0; right: 0; height: 32px; display: grid; grid-template-columns: minmax(96px, 168px) 1fr; gap: 12px; align-items: center; transition: transform .8s cubic-bezier(.3,.7,.2,1); text-decoration: none; color: #fff; }
.race__n { font: 600 .88rem var(--body); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race__bar { position: relative; height: 100%; width: calc(var(--w) * 1%); min-width: 3px; background: var(--sky); border-radius: 0 6px 6px 0; transition: width .8s cubic-bezier(.3,.7,.2,1), background .3s; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: var(--navy); font: 700 .82rem var(--body); font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.race__row.up .race__bar { background: #fff; }
.race__year { position: absolute; right: 12px; bottom: 6px; font: 700 clamp(3rem, 2rem + 6vw, 7rem)/.85 var(--display); font-stretch: 112%; color: rgba(255,255,255,.1); pointer-events: none; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.race__ctl { display: flex; gap: 14px; align-items: center; margin-top: 16px; } .race__ctl input[type=range] { flex: 1; min-width: 0; accent-color: var(--sky); height: 30px; } .race__ctl .iconbtn { background: var(--sky); color: var(--navy); } .race__ctl .iconbtn:hover { background: #fff; } .race__lab { font: 600 .9rem var(--body); min-width: 7ch; text-align: right; font-variant-numeric: tabular-nums; }
.race select { height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; padding: 0 8px; font: inherit; } .race select option { color: #0d1b2e; }
.race__note { color: rgba(255,255,255,.7); font-size: .84rem; margin-top: 10px; }

.champs { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 56px; } @media (max-width: 760px) { .champs { columns: 1; } }
.champs li { break-inside: avoid; border-bottom: 1px solid var(--line); } .champs a { display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; padding: 12px 6px; text-decoration: none; color: var(--ink); align-items: baseline; transition: background .15s, padding .15s; } .champs a:hover { background: var(--fog); padding-left: 14px; }
.champs__y { font: 500 .86rem var(--body); font-variant-numeric: tabular-nums; color: var(--muted); } .champs__n { font: 650 1.08rem var(--display); font-stretch: 105%; letter-spacing: -.01em; } .champs__p { grid-column: 2; font-size: .82rem; color: var(--muted); }
.rank, .bars { list-style: none; padding: 0; margin: 0; } .rank li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank__pos, .bars__pos { font: 500 .9rem var(--body); color: var(--muted); font-variant-numeric: tabular-nums; } .rank__n { display: grid; min-width: 0; } .rank__n small { color: var(--muted); } .rank__v { font: 700 1.4rem var(--display); font-variant-numeric: tabular-nums; color: var(--blue); }
.bars a { display: grid; grid-template-columns: 24px minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 500; } .bars a:hover { color: var(--blue); }
.bars__bar { height: 10px; background: var(--fog2); border-radius: 6px; overflow: hidden; } .bars__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); border-radius: 6px; transform-origin: 0 50%; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: .3s; } @keyframes grow { from { transform: scaleX(0); } }
.bars__v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4ch; text-align: right; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: grid; gap: 6px; padding: 26px; border-radius: 14px; background: var(--fog); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, background .2s; } .tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hi); background: var(--paper); } .tile b { font: 700 1.35rem var(--display); font-stretch: 108%; letter-spacing: -.01em; } .tile span { color: var(--muted); }

.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.scard { display: grid; gap: 6px; padding: 20px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--paper); align-content: start; box-shadow: var(--shadow); transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out, box-shadow .25s; } .scard:hover { box-shadow: var(--shadow-hi); color: var(--ink); }
.scard__y { font: 700 1.6rem var(--display); font-stretch: 110%; letter-spacing: -.03em; color: var(--blue); } .scard__c small { display: block; font: 600 .66rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .scard__c { font: 650 1.05rem var(--display); font-stretch: 105%; } .scard__m, .scard__p { color: var(--muted); font-size: .86rem; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); transition: transform .2s, box-shadow .2s; } .ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); } .ccard__t { display: grid; min-width: 0; } .ccard__t b { font: 650 1rem var(--display); } .ccard__t small { color: var(--muted); }
.chead { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 36px; align-items: center; } @media (max-width: 760px) { .chead { grid-template-columns: 1fr; gap: 18px; } }
.chead__img { all: unset; cursor: zoom-in; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-hi); transition: transform .25s; } .chead__img:hover { transform: scale(1.015); } .chead__img img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin-top: 30px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); } .stat { padding: 16px 18px; background: var(--paper); transition: background .2s; } .stat:hover { background: var(--fog); } .stat b { display: block; font: 700 1.7rem var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; color: var(--blue); } .stat span { color: var(--muted); font-size: .84rem; }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; } .chart .grid { stroke: var(--fog2); stroke-width: 1; } .chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); animation: draw 1.6s ease forwards .3s; } @keyframes draw { to { stroke-dashoffset: 0; } } .chart .area { fill: var(--sky); opacity: .22; } .chart .dot { fill: var(--paper); stroke: var(--blue); stroke-width: 2; transition: r .15s; } .chart .dot:hover { r: 8; } .chart .dot--up { fill: var(--blue); stroke: var(--paper); stroke-width: 2; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: left; font: 600 .74rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 12px; background: var(--fog); color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; } .tbl th.num { text-align: right; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--fog2); } .tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: var(--fog); } .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td a { color: var(--ink); text-decoration: none; font-weight: 600; } .tbl td a:hover { color: var(--blue); text-decoration: underline; }
.tbl tr.is-up td { background: var(--up); } .tbl tr.is-up td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.sort { all: unset; cursor: pointer; } .sort:hover { color: var(--ink); } .sort.is-on { color: var(--ink); } .sort:focus-visible { outline: 2px solid var(--sky); }
.has-bar { position: relative; min-width: 130px; } .has-bar .mini { position: absolute; left: 8px; top: 50%; height: 8px; margin-top: -4px; background: var(--sky); opacity: .35; border-radius: 3px; max-width: calc(100% - 16px); } .has-bar b { position: relative; }
.res { display: grid; grid-template-columns: 62px 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--fog2); font-size: .95rem; transition: background .12s; } .res:hover { background: var(--fog); } .res__h { text-align: right; } .res a { color: var(--ink); text-decoration: none; font-weight: 500; } .res a:hover { color: var(--blue); } .res__d { color: var(--muted); font-size: .82rem; } .res__s { font: 700 .92rem var(--body); font-variant-numeric: tabular-nums; background: var(--score-bg); color: var(--score-fg); border-radius: 6px; padding: 3px 11px; }
.res--red .res__t { grid-column: 2 / -1; color: var(--muted); font-size: .8rem; } @media (max-width: 560px) { .res { grid-template-columns: 52px 1fr auto 1fr; gap: 6px; font-size: .88rem; } }
.fold > summary { cursor: pointer; font: 600 .9rem var(--body); padding: 10px 0; color: var(--blue); } .fold .results { margin-top: 6px; }
.plain { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 72ch; } .plain li b { font-family: var(--display); }

.gallery { columns: 3 270px; column-gap: 18px; margin-top: 26px; } .gallery figure { margin: 0 0 18px; break-inside: avoid; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; } .gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; overflow: hidden; } .gallery img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1); } .gallery figure:hover img { transform: scale(1.05); } .gallery figcaption { padding: 12px 14px 14px; display: grid; gap: 3px; font-size: .84rem; color: var(--muted); } .gallery figcaption b { color: var(--ink); font: 650 .92rem var(--display); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin-top: 26px; }
.vcard { display: block; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; } .vcard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.vcard__img { position: relative; aspect-ratio: 16 / 9; background: var(--fog2); overflow: hidden; } .vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .vcard:hover .vcard__img img { transform: scale(1.06); } .vcard__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(11,36,71,.82); color: #fff; display: grid; place-items: center; font-size: 1rem; padding-left: 4px; transition: transform .2s, background .2s; } .vcard:hover .vcard__play { transform: scale(1.12); background: var(--blue); }
.vcard__txt { display: grid; gap: 4px; padding: 13px 15px 15px; } .vcard__txt b { font: 650 .98rem/1.25 var(--display); } .vcard__txt span { color: var(--muted); font-size: .84rem; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); } dialog::backdrop { background: rgba(6, 20, 40, .7); backdrop-filter: blur(4px); animation: fadebg .25s ease both; } @keyframes fadebg { from { opacity: 0; } }
.lb { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: 16px; overflow: auto; box-shadow: var(--shadow-hi); animation: pop .28s cubic-bezier(.2,.8,.2,1) both; }
.lb__body { display: grid; grid-template-columns: 1.4fr 1fr; } @media (max-width: 760px) { .lb__body { grid-template-columns: 1fr; } }
.lb__media { background: var(--fog2); display: grid; align-items: center; } .lb__media img { width: 100%; max-height: 78vh; object-fit: contain; } .lb__info { padding: 30px 26px; display: grid; gap: 12px; align-content: start; } .lb__info h3 { font: 700 1.6rem var(--display); line-height: 1.05; letter-spacing: -.02em; } .lb__cap { font-size: 1.02rem; } .lb__cred { color: var(--muted); font-size: .84rem; } .lb__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lb__x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(11,36,71,.8); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .15s; } .lb__x:hover { background: var(--blue); }
.finder { width: min(580px, calc(100vw - 24px)); border-radius: 14px; margin-top: 12vh; padding: 14px; box-shadow: var(--shadow-hi); animation: pop .22s ease both; } .finder input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; background: var(--paper); color: var(--ink); } .finder ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 50vh; overflow: auto; } .finder__empty { padding: 14px; color: var(--muted); }
.foot { margin-top: 50px; padding-block: 38px 50px; background: var(--navy); color: #fff; } .foot a { color: var(--sky-hi); } .foot .muted { color: rgba(255,255,255,.7); } .foot__in { display: grid; gap: 8px; font-size: .92rem; }
@media (max-width: 520px) { .top__in { gap: 8px; } .brand__t { font-size: .92rem; } .menubtn { padding: 0 10px; } }

.acard__kind { position: absolute; left: 10px; bottom: 10px; background: rgba(11,36,71,.78); color: #fff; font: 500 .68rem var(--body); padding: 3px 8px; border-radius: 5px; letter-spacing: .02em; }

/* escudos */
.crest { object-fit: contain; display: block; }
.acard__crest { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--fog), var(--fog2)); } .acard__crest img { width: 52%; height: 78%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(11,36,71,.18)); transition: transform .5s cubic-bezier(.2,.7,.2,1); } .acard:hover .acard__crest img { transform: scale(1.08) rotate(-2deg); }
.lb__crest { display: grid; place-items: center; background: linear-gradient(160deg, var(--fog), var(--fog2)); min-height: 320px; padding: 30px; } .lb__crest img { width: min(260px, 70%); max-height: 300px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(11,36,71,.22)); }
.viewer__img .acard__crest, .viewer__img .mono { position: absolute; inset: 0; } .viewer__img .acard__crest img { width: 34%; height: 70%; }
.ccard .crest { width: 52px; height: 52px; flex: none; } .ccard .mono--s { width: 52px; height: 52px; }
.chead__crest { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(160deg, var(--fog), var(--fog2)); border: 1px solid var(--line); } .chead__crest img { width: 46%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(11,36,71,.2)); }
.tbl td .crest, .champs .crest { width: 22px; height: 22px; display: inline-block; vertical-align: -6px; margin-right: 8px; }
.race__n { display: flex; align-items: center; justify-content: flex-end; gap: 8px; } .race__n img { width: 22px; height: 22px; object-fit: contain; flex: none; background: #fff; border-radius: 4px; padding: 1px; }
.scard__crest { width: 38px; height: 38px; object-fit: contain; }

/* plantel */
.plantel { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); } .plantel > summary { cursor: pointer; padding: 12px 16px; font: 600 .92rem var(--body); color: var(--blue); list-style-position: inside; } .plantel[open] > summary { border-bottom: 1px solid var(--line); }
.plantel__in { padding: 14px 16px 18px; display: grid; gap: 14px; animation: up .35s ease both; } .plantel__g h4 { font: 600 .7rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.plantel__g ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 20px; } .plantel__g li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--fog2); } .plantel__g small { color: var(--muted); white-space: nowrap; }
.plantels { display: grid; gap: 4px; }

/* galería por club */
.gnav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 8px; } .gnav select { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 0 12px; font: inherit; min-width: 220px; }
.gclub { margin-top: 44px; scroll-margin-top: 90px; } .gclub__h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .gclub__h .crest { width: 46px; height: 46px; } .gclub__h h2 { flex: 1; } .gclub__h a { font-size: .9rem; }
.gclub .gallery { margin-top: 0; }
.vgroup { margin-top: 40px; } .vgroup h2 { margin-bottom: 4px; } .vgroup > .muted { margin-bottom: 16px; }
.crests { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin-top: 18px; } .crests a { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); transition: transform .2s, box-shadow .2s; text-align: center; font-size: .84rem; font-weight: 600; } .crests a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); } .crests .crest { width: 64px; height: 64px; } .crests .mono--s { width: 64px; height: 64px; }

/* escudo = carátula; la foto es un complemento */
.acard__thumb { position: absolute !important; right: 8px; bottom: 8px; width: 64px !important; height: 46px !important; object-fit: cover; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(11,36,71,.28); transition: transform .3s; } .acard:hover .acard__img .acard__thumb { transform: scale(1.12); }
.viewer__img > .viewer__thumb { position: absolute; inset: auto 14px 14px auto; width: 150px; height: 104px; border-radius: 10px; border: 3px solid #fff; box-shadow: var(--shadow-hi); object-fit: cover; }
.lb__photo { margin: 6px 0 0; display: grid; gap: 8px; } .lb__photo img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; } .lb__photo figcaption { font-size: .8rem; color: var(--muted); line-height: 1.45; } .lb__photo .lb__cred { display: block; margin-top: 2px; }
@media (max-width: 760px) { .viewer__img > .viewer__thumb { width: 110px; height: 76px; } }

/* descensos y reducidos */
.ccard__k { display: flex; gap: 8px; margin-top: 3px; font-size: .74rem; } .k { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 99px; background: var(--fog); color: var(--ink); } .k--up { color: #0b6b3a; } .k--down { color: #a1322b; } .k--red { color: var(--blue); }
.stats--hi { margin-bottom: 14px; } .stats--hi .stat b { font-size: 1.9rem; } .stats--hi .stat small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.kline { display: grid; gap: 6px; margin: 0 0 22px; } .kline p { margin: 0; font-size: .9rem; color: var(--muted); } .kline b { color: var(--ink); } .chipl { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 9px; border-radius: 99px; background: var(--fog2); color: var(--ink); font-size: .8rem; text-decoration: none; font-variant-numeric: tabular-nums; } .chipl:hover { background: var(--sky); color: #fff; }
.pill--down { background: #f6dcd9; color: #8a2620; } .pill--red { background: var(--fog2); color: var(--blue); }
.ccard--s { padding: 8px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--down { background: #4a2420; color: #f3b8b2; } :root:not([data-theme="light"]) .k--up { color: #6fd9a0; } :root:not([data-theme="light"]) .k--down { color: #f0a29b; } }
:root[data-theme="dark"] .pill--down { background: #4a2420; color: #f3b8b2; } :root[data-theme="dark"] .k--up { color: #6fd9a0; } :root[data-theme="dark"] .k--down { color: #f0a29b; }

/* pedido de recursos, apoyo y administración */
.help { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin: 36px 0; padding: 22px 26px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; }
.help h3 { margin: 0 0 6px; font-size: 1.2rem; color: #fff; } .help p { margin: 0; color: rgba(255,255,255,.82); font-size: .92rem; max-width: 56ch; } .help a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.help__b { display: flex; flex-wrap: wrap; gap: 10px; } .help .btn { background: #fff; color: var(--navy); border-color: #fff; } .help .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); } .help .btn--coffee { background: #ffdd00; color: #1b1b1b; border-color: #ffdd00; }
.btn--coffee { background: #ffdd00; color: #1b1b1b; border: 1px solid #ffdd00; } .btn--s { padding: 6px 12px; font-size: .82rem; }
.foot__help { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; } .foot__help .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); } .foot__adm { margin-left: auto; color: rgba(255,255,255,.45); font-size: .75rem; text-decoration: none; } .foot__adm:hover { color: #fff; }
.gsin { margin: 28px 0 10px; } .gsin .cgrid { margin-top: 14px; }
.adm__note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #fff6d6; color: #5a4600; font-size: .9rem; }
.adm__msg { min-height: 1.4em; margin: 14px 0 0; font-size: .92rem; color: #0b6b3a; } .adm__msg.is-bad { color: #a1322b; }
.adm__bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 18px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--fog); } .adm__bar p { margin: 0; font-size: .92rem; } .adm__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.adm__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; align-items: end; margin: 16px 0 6px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; } .adm__form label { display: grid; gap: 4px; font-size: .78rem; color: var(--muted); } .adm__form input, .adm__form select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); min-width: 0; width: 100%; box-sizing: border-box; }
.adm__club h3 { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; font-size: 1.05rem; } .adm__club h3 small { color: var(--muted); font-weight: 500; }
.adm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .adm__list li { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); } .adm__list img { width: 76px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--fog2); } .adm__list li > span { display: grid; gap: 2px; font-size: .88rem; min-width: 0; overflow-wrap: anywhere; }
.adm__tag { justify-self: start; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; background: var(--fog2); color: var(--blue); } .adm__tag.is-new { background: #fff1b8; color: #5a4600; } .adm__tag.is-base { background: var(--fog); color: var(--muted); }
.btn--danger { color: #a1322b; border-color: #e7bcb8; } .btn[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 560px) { .adm__list li { grid-template-columns: 56px 1fr; } .adm__list li .btn { grid-column: 1 / -1; } .adm__list img { width: 56px; height: 44px; } }
.adm__club .crest { width: 28px; height: 28px; object-fit: contain; }

/* historiales */
.h2h__pick select { min-width: min(100%, 220px); }
.h2h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 18px 0 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--fog); }
.h2h__side { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; } .h2h__side:hover b { color: var(--blue); }
.h2h__side b { font: 700 1.15rem var(--display); font-stretch: 108%; }
.h2h__crest { width: 84px; height: 84px; object-fit: contain; }
.h2h__mid { text-align: center; } .h2h__mid small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.h2h__n { display: flex; gap: 10px; justify-content: center; align-items: baseline; font: 700 2.6rem var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; color: var(--blue); } .h2h__n i { font-style: normal; color: var(--muted); font-size: 1.4rem; }
.h2h__bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 0 0 6px; } .h2h__seg.is-a { background: var(--blue); } .h2h__seg.is-e { background: var(--line); } .h2h__seg.is-b { background: var(--muted); }
.h2h__note { font-size: .86rem; margin: 12px 0 18px; }
.h2h__score { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h2h__r { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .74rem; font-weight: 700; background: var(--fog2); color: var(--muted); }
.h2h__r--G { background: #d8efe2; color: #0b6b3a; } .h2h__r--P { background: #f6dcd9; color: #8a2620; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h2h__r--G { background: #173d2a; color: #6fd9a0; } :root:not([data-theme="light"]) .h2h__r--P { background: #4a2420; color: #f3b8b2; } }
:root[data-theme="dark"] .h2h__r--G { background: #173d2a; color: #6fd9a0; } :root[data-theme="dark"] .h2h__r--P { background: #4a2420; color: #f3b8b2; }
@media (max-width: 560px) { .h2h { gap: 8px; padding: 16px 10px; } .h2h__crest { width: 56px; height: 56px; } .h2h__n { font-size: 1.9rem; gap: 6px; } .h2h__side b { font-size: .95rem; } }

/* juegos */
.gtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 10px; }
.gbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.gmode { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .gmode a { padding: 9px 14px; font-size: .88rem; color: var(--muted); text-decoration: none; } .gmode a.on { background: var(--btn); color: var(--on-btn); font-weight: 600; }
.game { max-width: 760px; } .game__q { margin: 0 0 14px; } .game__msg { font-weight: 600; margin: 10px 0 0; } .game__left { font-size: .86rem; margin-top: 12px; } .game__again { margin-top: 16px; }
.game__play { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; } .game__play .gpick { flex: 1 1 280px; }
.gclues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gclue { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); animation: pop .35s ease both; } .gclue .crest { width: 30px; height: 30px; object-fit: contain; margin: 0; }
.gclue b { font-size: 1rem; } .gclue small { display: block; color: var(--muted); font-size: .74rem; } .gclue--t { background: var(--fog); }
.gclue--off { border-style: dashed; color: var(--muted); background: transparent; animation: none; font-size: .88rem; }
.gclue__i { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--fog2); color: var(--muted); font-size: .72rem; font-weight: 700; }
.gtries { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; } .gtries li { padding: 4px 10px; border-radius: 99px; font-size: .84rem; background: var(--fog2); color: var(--muted); } .gtries li.no { background: #f6dcd9; color: #8a2620; text-decoration: line-through; } .gtries li.ok { background: #d8efe2; color: #0b6b3a; font-weight: 700; }
.gpick { position: relative; } .gpick__in { width: 100%; box-sizing: border-box; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 0 14px; font: inherit; } .gpick__in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-soft); }
.gpick__list { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; z-index: 20; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.14); overflow: hidden; } .gpick__list:empty { display: none; }
.gpick__o { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; } .gpick__o:hover, .gpick__o.on { background: var(--fog); }
.gres { margin-top: 20px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--fog); } .gres h2 { margin: 2px 0 4px; } .gres--ok { box-shadow: inset 4px 0 0 #1f9d5c; } .gres--no { box-shadow: inset 4px 0 0 #c2453b; }
.gcareer { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; } .gcareer li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .gcareer .crest { width: 22px; height: 22px; margin: 0; } .gcareer a { font-weight: 600; color: var(--ink); } .gcareer small { color: var(--muted); }
.gshare { margin-top: 16px; display: grid; gap: 10px; justify-items: start; } .gshare__pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font: 500 .9rem/1.5 var(--body); white-space: pre-wrap; } .gshare__b { display: flex; gap: 8px; flex-wrap: wrap; } .gshare__m { font-size: .86rem; color: var(--muted); } .gshare__ta { width: 100%; font: inherit; }
.ggrid { display: grid; grid-template-columns: minmax(70px, .8fr) repeat(3, 1fr); gap: 6px; max-width: 620px; }
.ghead { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-size: .8rem; font-weight: 650; padding: 6px 2px; min-height: 64px; } .ghead .crest { width: 34px; height: 34px; margin: 0; object-fit: contain; } .ghead--x { color: var(--muted); font-weight: 500; font-size: .76rem; }
.gcell { aspect-ratio: 1; min-height: 76px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; font: inherit; color: var(--muted); overflow: hidden; }
button.gcell { cursor: pointer; font-size: 1.4rem; transition: background .15s, border-color .15s; } button.gcell:hover { background: var(--fog); } button.gcell.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-soft); font-size: .8rem; color: var(--blue); font-weight: 600; }
.gcell b { font-size: .8rem; line-height: 1.2; color: var(--ink); } .gcell small { font-size: .68rem; color: var(--muted); }
.gcell--ok { background: #d8efe2; border-color: #9fd3b4; animation: pop .35s ease both; } .gcell--ok b { color: #0b4a29; } .gcell--ok small { color: #2f6e4b; }
.gcell--miss { background: var(--fog); border-style: dashed; } .gcell--miss b { color: var(--muted); font-weight: 500; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.gcard { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--fog); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; } .gcard:hover { transform: translateY(-2px); border-color: var(--blue); } .gcard h2 { margin: 4px 0 6px; } .gcard p { color: var(--muted); margin: 0 0 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gcell--ok, :root:not([data-theme="light"]) .gtries li.ok { background: #173d2a; border-color: #2c6b48; color: #6fd9a0; } :root:not([data-theme="light"]) .gcell--ok b { color: #c9f2db; } :root:not([data-theme="light"]) .gcell--ok small { color: #6fd9a0; } :root:not([data-theme="light"]) .gtries li.no { background: #4a2420; color: #f3b8b2; } }
:root[data-theme="dark"] .gcell--ok, :root[data-theme="dark"] .gtries li.ok { background: #173d2a; border-color: #2c6b48; color: #6fd9a0; } :root[data-theme="dark"] .gcell--ok b { color: #c9f2db; } :root[data-theme="dark"] .gcell--ok small { color: #6fd9a0; } :root[data-theme="dark"] .gtries li.no { background: #4a2420; color: #f3b8b2; }
@media (max-width: 520px) { .ggrid { grid-template-columns: 58px repeat(3, 1fr); gap: 4px; } .ghead { font-size: .7rem; min-height: 56px; } .ghead .crest { width: 28px; height: 28px; } .gcell { min-height: 0; border-radius: 10px; padding: 4px; } .gcell b { font-size: .7rem; } .gcell small { font-size: .6rem; } }

/* contrarreloj y ¿quién hizo más? */
.cr__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--btn); color: var(--on-btn); font-variant-numeric: tabular-nums; }
.cr__clock { font: 700 1.4rem var(--display); font-stretch: 108%; } .cr__pts { font-size: .9rem; opacity: .85; }
.mg__q { font: 700 1.25rem var(--display); font-stretch: 108%; margin: 4px 0 14px; }
.mg { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; } .mg__vs { align-self: center; color: var(--muted); font-weight: 700; }
.mgcard { display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; padding: 20px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s, background .2s; }
.mgcard:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-2px); } .mgcard:disabled { cursor: default; }
.mgcard__n { font: 700 1.1rem var(--display); font-stretch: 105%; } .mgcard__c { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .8rem; color: var(--muted); } .mgcard__c .crest { width: 18px; height: 18px; margin: 0 4px 0 0; vertical-align: -4px; }
.mgcard__g { font-size: .9rem; color: var(--muted); } .mgcard__g b { font: 700 1.8rem var(--display); color: var(--blue); }
.mgcard.is-ok { border-color: #1f9d5c; background: #d8efe2; } .mgcard.is-no { border-color: #c2453b; background: #f6dcd9; }
.mg__dots { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; } .mg__dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--fog2); } .mg__dots i.ok { background: #1f9d5c; } .mg__dots i.no { background: #c2453b; }
.mg__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: .88rem; } .mg__list .ok { color: #1f9d5c; font-weight: 700; } .mg__list .no { color: #c2453b; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mgcard.is-ok { background: #173d2a; } :root:not([data-theme="light"]) .mgcard.is-no { background: #4a2420; } }
:root[data-theme="dark"] .mgcard.is-ok { background: #173d2a; } :root[data-theme="dark"] .mgcard.is-no { background: #4a2420; }
@media (max-width: 520px) { .mg { grid-template-columns: 1fr; } .mg__vs { justify-self: center; } }
.mgclub { white-space: nowrap; }
.foot .btn--coffee, .foot .btn--coffee:hover { color: #1b1b1b; }
.tbl__club { white-space: nowrap; }
/* reducidos */
.red__n { margin: 4px 0 8px; } .red__s { margin-top: 30px; } .red__s h2 a { color: var(--ink); text-decoration: none; } .red__s h2 a:hover { color: var(--blue); }
.red__g { margin-top: 14px; } .red__g h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 8px; } .red__t { font-size: .7rem; }
.red__tbl td { padding: 8px 10px; } .red__d { white-space: nowrap; width: 1%; font-variant-numeric: tabular-nums; } .red__i { font-size: .82rem; width: 20%; } .red__a { text-align: right; }
.red__tbl td a { white-space: nowrap; }
@media (max-width: 640px) { .red__i { display: none; } }
.tbl__tog { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ink); cursor: pointer; } .tbl__tog input { width: 18px; height: 18px; accent-color: var(--blue); }
.red__q { font-size: .86rem; margin: -2px 0 8px; } .red__x { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); }
.red__leg td { border-bottom-style: dashed; } .red__glob td { background: var(--fog); font-size: .86rem; padding: 7px 12px; } .red__glob b { color: var(--ink); }
.red__tbl .red__win a { font-weight: 800; color: var(--ink); } .red__tbl .red__lose a { font-weight: 500; color: var(--muted); }
.gcats { margin: 0 0 16px; }

/* todos los ascendidos: campeón destacado, resto de complemento */
.champs li { padding-bottom: 8px; } .champs .champs__row { display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; padding: 12px 6px 6px; text-decoration: none; color: var(--ink); align-items: baseline; } .champs .champs__row:hover { background: var(--fog); }
.champs__tag { margin-left: 10px; padding: 2px 8px; border-radius: 99px; background: var(--navy); color: #fff; font: 600 .62rem var(--body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; } .champs__n.is-none { font-weight: 500; color: var(--muted); font-style: italic; }
.upchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 6px 96px; } @media (max-width: 560px) { .upchips { padding-left: 6px; } }
.upchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--muted); font-size: .8rem; text-decoration: none; } .upchip .crest { width: 16px !important; height: 16px !important; margin: 0 !important; vertical-align: 0 !important; } .upchip:hover { color: var(--ink); border-color: var(--sky); }
.champs__more { padding: 0 6px 4px 96px; } @media (max-width: 560px) { .champs__more { padding-left: 6px; } } .champs__more summary { cursor: pointer; font-size: .84rem; color: var(--blue); padding: 2px 0; } .champs__more .upchips { padding: 6px 0 4px; }
:root[data-theme="dark"] .champs__tag { background: var(--sky); color: #0b1a33; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .champs__tag { background: var(--sky); color: #0b1a33; } }
.champs a.upchip { display: inline-flex; grid-template-columns: none; gap: 6px; padding: 3px 11px 3px 6px; align-items: center; } .champs a.upchip:hover { background: var(--fog); }

/* clásicos */
.cl__build { margin: 22px 0 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--fog); } .cl__build h3 { margin: 0 0 10px; } .cl__build select { min-width: 190px; }
.cl__res { margin-top: 14px; display: grid; gap: 10px; } .cl__vs { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; font-size: 1.15rem; } .cl__vs span { display: inline-flex; gap: 10px; align-items: center; } .cl__vs .crest { width: 34px; height: 34px; } .cl__score { font: 800 1.8rem var(--display); font-stretch: 110%; color: var(--blue); font-variant-numeric: tabular-nums; } .cl__act { display: flex; flex-wrap: wrap; gap: 10px; } .cl__res > p { margin: 0; text-align: center; }
.cl__mine { margin-top: 16px; } .cl__mine h3 { font-size: .95rem; } .cl__chips { display: flex; flex-wrap: wrap; gap: 8px; } .cl__chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); } .cl__chip a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px 4px 10px; font-size: .84rem; text-decoration: none; color: var(--ink); } .cl__chip .crest { width: 18px; height: 18px; } .cl__chip button { all: unset; cursor: pointer; padding: 4px 10px; color: var(--muted); } .cl__chip button:hover { color: #a1322b; }
.cl__only { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.cl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 18px; }
.cl__card { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; } .cl__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.cl__teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .cl__teams span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; } .cl__teams b { font: 650 .98rem var(--display); overflow-wrap: anywhere; } .cl__teams i { font-style: normal; color: var(--muted); font-size: .8rem; } .cl__teams .crest { width: 30px; height: 30px; flex: none; }
.cl__tag { margin: 0; font-size: .8rem; font-weight: 650; color: var(--blue); } .cl__tag.is-auto { color: var(--muted); font-weight: 500; } .cl__stat { margin: 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl__club { margin: 14px 0 0; font-size: .95rem; color: var(--muted); } .cl__club b { color: var(--ink); } .cl__club .crest { width: 18px; height: 18px; margin: 0 6px 0 2px; vertical-align: -4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cl__tag { color: var(--sky); } } :root[data-theme="dark"] .cl__tag { color: var(--sky); }
/* casillas dentro de las barras de filtros (tabla histórica y clásicos) */
.toolbar input[type="checkbox"] { width: 18px; height: 18px; padding: 0; min-width: 0; flex: none; accent-color: var(--blue); } .toolbar label { display: inline-flex; align-items: center; gap: 8px; }
