/* Layout: camiseta rojinegra partida en dos como firma (barra del próximo partido y subrayado de títulos);
   foto del plantel a sangre en el hero; secciones en bandas negras alternas; rejillas que se apilan en móvil. */
:root {
  --black: #0E0C0D;
  --coal: #161314;
  --panel: #1F1A1C;
  --line: #2F282B;
  --ink: #F5F0F2;
  --muted: #A99EA3;
  --red: #E21E2C;
  --red-deep: #A3101B;
  --gold: #F2B705;
  --wine: #7A1430;
  --win: #3DBE7B;
  --loss: #F0646C;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--black); color: var(--ink); font: 16px/1.55 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--black); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: .95; text-wrap: balance; text-transform: uppercase; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* Top bar + nav */
.topbar { background: var(--gold); color: #1A1300; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.tb-right { display: flex; gap: 14px; }
.tb-right a { text-decoration: none; opacity: .9; }
.tb-right a:hover { opacity: 1; text-decoration: underline; }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(14,12,13,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.nav nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 52px; height: auto; }
.brand b { display: block; font: 900 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.brand small { display: block; font: 500 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; color: var(--muted); }
.nav nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px var(--gold); border-radius: 0; }
.nav nav a:hover { color: var(--ink); background: var(--panel); }
.nav-cta { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .15s; }
.nav-cta:hover { background: var(--red-deep); }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14,12,13,.72) 60%, rgba(14,12,13,.97) 100%); }
.hero-inner { position: relative; padding-block: 220px 44px; width: 100%; }
.kicker { font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 3px #000; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.8rem); font-weight: 900; margin-top: 10px; text-wrap: nowrap; }
.hero h1 .pre { display: block; font-size: .36em; letter-spacing: .06em; color: #fff; opacity: .9; margin-bottom: .1em; }
.hero p { max-width: 52ch; margin: 14px 0 0; font-size: 1.08rem; color: #E6DEE2; }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem var(--body); min-height: 46px; padding: 0 20px; border-radius: 6px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-deep); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.gold { background: var(--gold); color: #1A1300; }

/* Next match: the split kit */
.nextbar { background: linear-gradient(105deg, var(--red) 0 50%, #050404 50% 100%); }
.nm { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 22px; }
.nm-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nm-side.right { justify-content: flex-end; text-align: right; }
.nm-side img { width: 52px; height: auto; flex: none; }
.nm-side b { font: 900 1.5rem/1 var(--display); text-transform: uppercase; }
.nm-mid { text-align: center; }
.nm-mid .when { font: 900 1.9rem/1 var(--display); }
.nm-mid .meta { overflow-wrap: anywhere; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 6px; }
.nm-empty { padding-block: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nm-empty b { font: 900 1.6rem/1 var(--display); text-transform: uppercase; }
.nm-empty span { font-size: .92rem; opacity: .9; }
.nm-side.tbd b { opacity: .85; }
.rival-badge { width: 52px; height: 52px; border-radius: 50%; background: #2A2426; display: grid; place-items: center; font: 900 1.2rem var(--display); flex: none; }

/* Sponsor strip under hero */
.sponsor-strip { background: var(--coal); border-bottom: 1px solid var(--line); padding-block: 14px; }

/* Cinta de marcas: corre de derecha a izquierda, se detiene al pasar el mouse */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; width: max-content; animation: mq var(--dur, 30s) linear infinite; }
.marquee:hover .track, .marquee:active .track { animation-play-state: paused; }
.marquee .group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee .track { animation: none; } .marquee .group[aria-hidden] { display: none; } }
.mq { display: flex; align-items: center; height: 40px; text-decoration: none; opacity: .85; flex: none; }
.mq:hover { opacity: 1; }
.mq img { height: 100%; width: auto; max-width: 150px; object-fit: contain; border-radius: 4px; }
.mq .wordmark { font-size: 1.15rem; }
.wordmark { font: 900 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }

/* Sections */
.band { padding-block: 64px; }
.band.alt { background: var(--coal); border-block: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 900; padding-bottom: 10px; position: relative; }
.head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px; background: linear-gradient(90deg, var(--red) 0 50%, var(--ink) 50% 100%); }
/* Bandas de color: rojo (camiseta), dorado (letras) y vino (escudo) alternan con el negro */
.band.red { background: repeating-linear-gradient(90deg, transparent 0 64px, rgba(0,0,0,.06) 64px 128px), linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); }
.band.red .head h2::after { background: linear-gradient(90deg, var(--gold) 0 50%, #0E0C0D 50% 100%); }
.band.red .filters button { border-color: rgba(255,255,255,.45); }
.band.red .filters button[aria-pressed="true"] { background: #0E0C0D; border-color: #0E0C0D; }
.band.red .player { box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); }
.band.red .empty, .band.wine .empty { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.85); }
.band.gold { background: var(--gold); color: #161314; }
.band.gold .head h2::after { background: linear-gradient(90deg, var(--red) 0 50%, #161314 50% 100%); }
.band.gold .price { background: #161314; color: var(--ink); }
.band.gold .price-cta { color: #3A2E06; }
.band.gold .empty { border-color: rgba(0,0,0,.3); color: #3A2E06; }
.band.wine { background: linear-gradient(160deg, var(--wine) 0%, #4E0C1E 100%); }
.band.wine .head h2::after { background: linear-gradient(90deg, var(--gold) 0 50%, var(--ink) 50% 100%); }
.band.wine .sub { color: var(--gold); }
.band.wine .about { color: #F1E6EA; }
.band.wine .facts dt { color: rgba(255,255,255,.65); }
.band.wine .member { background: rgba(0,0,0,.28); }
.band.wine .member .ini { background: var(--red); }
.sub { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; color: var(--muted); }
.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 22px; color: var(--muted); font-size: .95rem; }

/* News */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.story { background: var(--panel); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.story time { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.story h3 { font-size: 1.6rem; font-weight: 800; line-height: 1.02; }
.story p { margin: 0; color: var(--muted); font-size: .95rem; white-space: pre-line; }
.news .story:first-child:not(:only-child) { grid-column: span 2; }
.news .story:only-child { grid-column: 1 / -1; flex-direction: row; }
.news .story:only-child img { width: 55%; aspect-ratio: auto; min-height: 280px; }
.news .story:only-child .body { flex: 1; justify-content: center; padding: 28px; }
.news .story:only-child h3 { font-size: 2.3rem; }
.story.text { border-left: 6px solid var(--red); }
.story.text .body { padding: 28px 32px; }
.story.text h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 26ch; }
.story.text p { max-width: 70ch; font-size: 1rem; }

/* Squad */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font: 600 .85rem var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.seg { display: inline-flex; background: rgba(0,0,0,.35); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; color: #fff; font: 700 .88rem var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--red-deep); }
.squad-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.arrows button:hover { background: rgba(0,0,0,.25); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail .player { scroll-snap-align: start; }
@media (hover: none) { .arrows { display: none; } }
.seg button { min-height: 40px; }
.lineup-note { color: rgba(255,255,255,.85); font-size: .92rem; margin: 0; }
.once-side .btn { align-self: flex-start; background: #0E0C0D; color: #fff; }
.once-side .btn:hover { background: #000; }

/* Once inicial */
.once { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; align-items: start; }
.pitch { position: relative; aspect-ratio: 100 / 118; max-height: 600px; width: 100%; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1E7A3F 0 9%, #1A6E38 9% 18%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.15), 0 20px 40px -24px rgba(0,0,0,.8); }
.pitch .lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.55); stroke-width: .5; vector-effect: non-scaling-stroke; }
.lp { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(96px, 19%); }
.face { position: relative; width: 58px; height: 58px; border-radius: 50%; overflow: visible; background: linear-gradient(90deg, var(--red) 0 50%, #0E0C0D 50% 100%); border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.face .crop { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform: scale(2.3); transform-origin: 50% 14%; }
.tag-n { position: absolute; right: -8px; bottom: -4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--gold); color: #1A1300; font: 800 .78rem/24px var(--body); text-align: center; }
.lp-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 800 .82rem/1.15 var(--body); color: #fff; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.8); background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.lp-name.pending { color: #FBE7A1; font-weight: 600; }
.cap-dot { position: absolute; left: -6px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1A1300; font: 800 .66rem/20px var(--body); text-align: center; }
.once-side { background: rgba(0,0,0,.32); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.formation { font: 900 3.4rem/1 var(--display); color: var(--gold); }
.once-title { font-weight: 700; font-size: 1.05rem; }
.xi { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: .9rem; }
.xi li { display: flex; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xi li span { width: 22px; text-align: right; color: var(--gold); font-weight: 700; flex: none; }
.bench-t { margin-top: 10px; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.bench { display: flex; flex-wrap: wrap; gap: 6px; }
.bench span { background: rgba(0,0,0,.35); border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.bench b { color: var(--gold); }
.player { position: relative; background: var(--panel); border-radius: 10px; overflow: hidden; }
.player .ph { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: center top; background: #231E20; }
.player .info { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(180deg, transparent, rgba(10,8,9,.94) 55%); }
.player .dorsal { position: absolute; top: 8px; left: 12px; font: 900 3rem/1 var(--display); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.player .pos { font: 500 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.player h3 { font-size: 1.35rem; font-weight: 800; margin-top: 3px; }
.player h3.pending { color: var(--muted); font-size: 1.1rem; }
.cap { display: inline-block; margin-left: 6px; font: 700 .62rem var(--mono); background: var(--gold); color: #1A1300; padding: 2px 5px; border-radius: 3px; vertical-align: 4px; }

/* Matches */
.season-empty { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border-left: 6px solid var(--red); border-radius: 8px; overflow: hidden; }
.season-empty div { padding: 22px 26px; border-right: 1px solid var(--line); }
.season-empty div:last-child { border-right: 0; }
.season-empty small { display: block; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.season-empty b { font: 900 1.6rem/1 var(--display); text-transform: uppercase; }
.matches { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.matches > div { min-width: 0; }
.list { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--panel); border-radius: 8px; padding: 12px 14px; }
.mrow .d { text-align: center; border-right: 1px solid var(--line); padding-right: 10px; }
.mrow .d b { display: block; font: 900 1.7rem/1 var(--display); }
.mrow .d small { font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mrow .t { min-width: 0; }
.mrow .t b { display: block; font-weight: 700; }
.mrow .t small { color: var(--muted); font-size: .8rem; }
.mrow .s { font: 900 1.7rem/1 var(--display); white-space: nowrap; }
.tag { font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 7px; border-radius: 4px; color: var(--muted); white-space: nowrap; }
.tag.home { border-color: var(--red); color: #FF8A92; }
.res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 .7rem var(--mono); color: #0E0C0D; margin-right: 8px; vertical-align: 3px; }
.res.g { background: var(--win); } .res.e { background: var(--gold); } .res.p { background: var(--loss); }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 8px 10px; border-bottom: 2px solid var(--ink); }
th:nth-child(2), td:nth-child(2) { text-align: left; }
td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td:last-child { font-weight: 700; }
tr.us td { background: var(--red); color: #fff; font-weight: 700; }

/* Prices */
.prices-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.band.gold :focus-visible { outline-color: #161314; }
.prices-wrap > div { min-width: 0; }
.plans { display: grid; gap: 14px; }
.plan { background: #0E0C0D; color: var(--ink); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 24px 50px -24px rgba(0,0,0,.65); overflow: hidden; }
.plan > :not(.plan-top) { margin-inline: 24px; }
.plan > :last-child { margin-bottom: 24px; }
.plan > * + * { margin-top: 16px; }

.plan-top { display: flex; gap: 12px; align-items: center; padding: 18px 24px; background: linear-gradient(105deg, var(--red) 0 55%, #000 55% 100%); }
.plan-top img { width: 44px; height: auto; }
.plan-top b { display: block; font: 900 1.6rem/1 var(--display); text-transform: uppercase; }
.plan-top small { color: rgba(255,255,255,.85); font-size: .85rem; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price span { font: 900 3.4rem/1 var(--display); color: var(--gold); }
.plan-price small { color: var(--muted); }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font: 700 .75rem/22px var(--body); text-align: center; }
.plan .btn { align-self: flex-start; min-height: 48px; padding: 0 26px; }
.plan-mail { color: var(--muted); font-size: .9rem; }
.plan-mail b, .plan-mail a { color: var(--ink); font-weight: 700; }
.plan-mail a, .ac-mail a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.plan { display: flex; flex-direction: column; }
.ac-mail { flex-basis: 100%; font-size: .88rem; color: #3A2E06; }
.ac-mail a { color: #1A1416; font-weight: 700; }
.prices { display: flex; flex-direction: column; gap: 10px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); border-radius: 8px; padding: 16px 18px; }
.price b { display: block; font-weight: 700; }
.price small { color: var(--muted); font-size: .85rem; }
.price .amt { font: 900 2rem/1 var(--display); white-space: nowrap; }
.price .amt.tbd { font: 600 .9rem var(--body); color: var(--muted); }
.price-cta:empty { display: none; }
.price-cta { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }

/* Club */
.club-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.club-grid > div { min-width: 0; }
.about { white-space: pre-line; margin: 0 0 24px; max-width: 62ch; font-size: 1.05rem; color: #DCD3D7; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.facts dt { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member { display: flex; gap: 12px; align-items: center; background: var(--panel); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.member img, .member .ini { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.member .ini { display: grid; place-items: center; background: var(--wine); font: 900 1.1rem var(--display); }
.member div { min-width: 0; }
.member small { display: block; font: 500 .64rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.member b { display: block; font-size: .92rem; line-height: 1.25; }
.member .m-detail { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }

/* Sponsors */
.sponsors-band { background: #F5F0F2; color: #161314; }
.sponsors-band .head h2::after { background: linear-gradient(90deg, var(--red) 0 50%, #161314 50% 100%); }
.tier { margin-bottom: 28px; }
.sponsors-band .marquee.big { padding-bottom: 8px; }
.marquee.big .group { gap: 16px; padding-right: 16px; }
.marquee.big .sp { width: 220px; flex: none; }
.tier h3 { font: 500 .74rem var(--mono); letter-spacing: .14em; color: #6E6468; margin-bottom: 12px; }
.tier-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tier.main .tier-row { grid-template-columns: minmax(0, 1fr); }
.sp { display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 18px; background: #fff; border: 1px solid #E3DADE; border-radius: 10px; text-decoration: none; color: #161314; }
.tier.main .sp { min-height: 170px; justify-content: space-between; gap: 24px; padding: 30px 44px; background: #161314; border-color: #161314; color: #fff; }
.tier.main .sp { flex-wrap: wrap; }
.tier.main .sp-note { min-width: 220px; }
.sp-note { overflow-wrap: anywhere; font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-align: right; }
.sp img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; border-radius: 6px; }
.tier.main .sp img { max-height: 80px; }
.sp .wordmark { color: inherit; font-size: 1.8rem; overflow-wrap: anywhere; text-align: center; }
a.sp:hover { border-color: var(--red); }

/* Footer */
.foot { background: #050404; padding-block: 40px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px 32px; }
.foot-brand { display: flex; gap: 14px; align-items: center; align-self: start; }
.foot-brand img { width: 64px; height: auto; }
.foot-brand b { display: block; color: var(--ink); font-size: 1.05rem; }
.foot-brand span { display: block; font-size: .8rem; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col h4 { margin: 0 0 6px; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.foot-col a { text-decoration: none; padding-block: 6px; }
.foot-col a:hover { color: var(--ink); }
.foot-col .foot-sponsor { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .75rem; }
.foot-col .foot-sponsor img { height: 22px; width: auto; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: .8rem; }

@media (max-width: 900px) {
  .matches, .prices-wrap, .club-grid { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  #socios { order: -1; }
  .once { grid-template-columns: minmax(0, 1fr); }
  .pitch { max-width: 560px; }
  .news .story:first-child:not(:only-child) { grid-column: auto; }
  .news .story:only-child { flex-direction: column; }
  .news .story:only-child img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .news .story:only-child .body { padding: 18px; }
  .news .story:only-child h3 { font-size: 1.7rem; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 112px; }
  .topbar { display: none; }
  .nav .wrap { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; padding-block: 6px 0; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav nav a { padding: 0 10px; font-size: .86rem; }
  .brand img { width: 42px; }
  .hero { min-height: 0; }
  .hero-img { object-position: center 25%; }
  .hero-inner { padding-block: 150px 28px; }
  .hero-shade { background: linear-gradient(180deg, rgba(14,12,13,.05) 0, rgba(14,12,13,.4) 28%, rgba(14,12,13,.93) 55%, #0E0C0D); }
  .kicker { font-size: .66rem; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); text-wrap: balance; }
  .band { padding-block: 40px; }
  .head { margin-bottom: 18px; }
  .head h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .nm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; padding-block: 16px; }
  .nm-side b { overflow-wrap: anywhere; }
  .nm-side, .nm-side.right { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .nm-side.right { flex-direction: column-reverse; }
  .nm-side img, .rival-badge { width: 40px; height: auto; }
  .rival-badge { height: 40px; font-size: 1rem; }
  .nm-side b { font-size: 1rem; }
  .nm-mid .when { font-size: 1.25rem; }
  .nm-mid .meta { font-size: .62rem; }
  .season-empty { grid-template-columns: 1fr; }
  .season-empty div { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .season-empty div:last-child { border-bottom: 0; }
  .season-empty b { font-size: 1.3rem; }
  .rail { grid-auto-columns: 62%; gap: 10px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: 16px; scroll-padding-inline: 16px; }
  .face { width: 44px; height: 44px; }
  .tag-n { min-width: 20px; height: 20px; font-size: .68rem; line-height: 20px; right: -6px; }
  .cap-dot { width: 16px; height: 16px; font-size: .56rem; line-height: 16px; }
  .lp-name { font-size: .7rem; padding: 1px 5px; }
  .formation { font-size: 2.2rem; }
  .xi { display: none; }
  .once-side { padding: 12px 14px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .once-side .lineup-note, .once-side .bench-t, .once-side .bench { flex-basis: 100%; }
  .seg button { padding: 0 12px; font-size: .8rem; }
  .player .dorsal { font-size: 2.2rem; }
  .player h3 { font-size: 1.1rem; }
  .plan .btn { align-self: stretch; }
  .plan-price span { font-size: 3rem; }
  .board { grid-template-columns: 1fr 1fr; gap: 8px; }
  .member { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .member img, .member .ini { width: 40px; height: 40px; }
  .tier.main .sp { flex-direction: column; padding: 24px; }
  .sp-note { text-align: center; }
  .marquee.big .sp { width: 170px; min-height: 90px; }
  .foot .wrap { grid-template-columns: 1fr; }
}

/* Controles del panel: aviso, una sola columna de precios, contador del carrusel */
.topbar.has-note { text-align: center; }
.topbar.has-note .wrap { justify-content: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.prices-wrap.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.rail-count { margin-left: auto; font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
@media (max-width: 600px) {
  .topbar.has-note { display: block; }
  .topbar.has-note #tb-social { display: none; }
}

/* Banda clara (Entradas y Socio) */
.band.light { background: #F5F0F2; color: #161314; }
.band.light .head h2::after { background: linear-gradient(90deg, var(--red) 0 50%, #161314 50% 100%); }
.band.light .price { background: #161314; color: var(--ink); }
.band.light .price-cta { color: #4A4044; }
.band.light .empty { border-color: rgba(0,0,0,.25); color: #4A4044; }
.band.light :focus-visible { outline-color: var(--red); }
.h-kicker { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* Academia: captación compacta en la banda dorada */
.academy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.ac-kicker { display: inline-block; font: 700 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; background: #161314; color: var(--gold); padding: 6px 10px; border-radius: 4px; }
.academy h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; margin-top: 12px; }
.ac-text { margin: 14px 0 0; max-width: 52ch; font-size: 1.02rem; color: #2E2508; }
.ac-cats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-cats li { background: rgba(22,19,20,.1); border: 1px solid rgba(22,19,20,.25); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .85rem; }
.ac-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.ac-btn { background: var(--red); color: #fff; min-height: 50px; padding: 0 26px; font-size: 1rem; box-shadow: 0 10px 24px -12px rgba(163,16,27,.8); }
.ac-btn:hover { background: var(--red-deep); }
.ac-meta { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: #3A2E06; }
.ac-meta b { font: 900 1.6rem/1 var(--display); color: #161314; }
.ac-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ac-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-fact { background: #161314; color: var(--ink); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 0; }
.ac-fact svg { grid-row: 1 / 3; width: 40px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ac-fact b { font: 900 2rem/1 var(--display); color: var(--gold); }
.ac-fact span { font-size: .85rem; line-height: 1.25; color: #E6DEE2; }
.ac-path { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; background: #161314; border-radius: 12px; overflow: hidden; }
.ac-path li { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px 22px; color: var(--ink); font-weight: 700; font-size: .85rem; line-height: 1.2; min-width: 0; }
.ac-path li:first-child { padding-left: 14px; }
.ac-path li + li::before { content: ""; position: absolute; left: -1px; top: 50%; width: 14px; height: 14px; border-top: 2px solid rgba(255,255,255,.35); border-right: 2px solid rgba(255,255,255,.35); transform: translate(-50%, -50%) rotate(45deg); }
.ac-path li span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font: 800 .72rem var(--body); }
.ac-path li.goal { background: var(--red); }
.ac-path li.goal span { background: var(--gold); color: #1A1300; }
@media (max-width: 900px) {
  .academy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .academy h2 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .ac-text { font-size: .95rem; }
  .ac-btn { flex: 1 1 100%; }
  .ac-fact { padding: 12px; column-gap: 10px; }
  .ac-fact svg { width: 32px; height: 22px; }
  .ac-fact b { font-size: 1.6rem; }
  .ac-fact span { font-size: .78rem; }
  .ac-path { grid-auto-flow: row; }
  .ac-path li + li::before { left: 22px; top: 0; width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(135deg); }
  .ac-path li { padding: 11px 14px; }
}

/* Tienda oficial (opcional, se enciende desde el panel) */
.services-band { background: var(--coal); border-block: 1px solid var(--line); }
.services { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
.services.single { grid-template-columns: minmax(0, 1fr); }
.services > div { min-width: 0; }
.shop { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shop::-webkit-scrollbar { display: none; }
.prod { scroll-snap-align: start; background: var(--panel); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.prod-img { position: relative; aspect-ratio: 1; background: #231E20; display: grid; place-items: center; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .ph-crest { width: 55%; height: auto; object-fit: contain; opacity: .8; }
.prod-tag { position: absolute; top: 10px; left: 10px; background: #0E0C0D; color: var(--gold); font: 700 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.prod.soldout img { filter: grayscale(.8); opacity: .7; }
.prod-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body b { font-size: 1rem; }
.prod-body small { color: var(--muted); font-size: .82rem; }
.prod-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prod-price { font: 900 1.5rem/1 var(--display); color: var(--gold); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn.ghost-dark { border: 1.5px solid rgba(255,255,255,.4); color: #fff; background: transparent; flex: none; }
.btn.ghost-dark:hover { background: rgba(255,255,255,.08); }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 600px) {
  .shop { grid-auto-columns: 70%; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* Propuesta del club: franja de pilares bajo la portada */
.proposal-band { background: #0E0C0D; border-bottom: 1px solid var(--line); padding-block: 36px; }
.pr-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pr-kicker { font: 500 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pr-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 900; }
.pr-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.pr-item { background: var(--coal); padding: 20px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.pr-item svg { flex: none; width: 40px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.pr-item b { display: block; font: 900 1.25rem/1.05 var(--display); text-transform: uppercase; }
.pr-item span { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.pr-item:first-child { background: linear-gradient(135deg, var(--red-deep), var(--coal) 75%); }
@media (max-width: 900px) { .pr-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .proposal-band { padding-block: 28px; }
  .pr-items { grid-template-columns: minmax(0, 1fr); }
  .pr-item { padding: 14px 16px; }
  .pr-item span { font-size: .84rem; }
}

/* Tarjetas que abren la ficha */
.player[data-pid], .lp[data-pid] { cursor: pointer; }
.player[data-pid]:hover .ph { transform: scale(1.03); }
.player .ph { transition: transform .25s ease; }
.lp[data-pid]:hover .face { box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(0,0,0,.45); }
.dt { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.3); border: 0; border-radius: 10px; padding: 8px 12px 8px 8px; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.dt img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 12%; }
.dt small, .staff-card small { display: block; font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.dt b, .staff-card b { display: block; font-size: .92rem; }
.staff-row { margin-top: 18px; }
.staff { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.staff-card { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.32); border: 0; border-radius: 12px; padding: 8px 16px 8px 8px; color: #fff; cursor: pointer; font: inherit; text-align: left; min-height: 64px; }
.staff-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 12%; }
.staff-card:hover { background: rgba(0,0,0,.45); }

/* Ficha del jugador */
.ficha { padding: 0; border: 0; border-radius: 16px; background: #0E0C0D; color: var(--ink); width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.ficha::backdrop { background: rgba(5,4,4,.82); backdrop-filter: blur(4px); }
.ficha-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ficha-photo { background: #050404; }
.ficha-photo img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: center top; }
.ficha-info { padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ficha-top { display: flex; align-items: baseline; gap: 14px; }
.ficha-num { font: 900 4.4rem/1 var(--display); color: var(--red); }
.ficha-num:empty { display: none; }
.ficha-pos { font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ficha h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 900; }
.ficha-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.ficha-data:empty { display: none; }
.ficha-data div { background: var(--panel); border-radius: 10px; padding: 10px 12px; }
.ficha-data dt { font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ficha-data dd { margin: 2px 0 0; font-weight: 700; }
.ficha-bio { margin: 0; color: #DCD3D7; white-space: pre-line; max-width: 56ch; }
.ficha-bio:empty { display: none; }
.ficha-nav { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }
.ficha-nav .btn { flex: 1; }
.ficha-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ficha-close:hover { background: var(--red); }
@media (max-width: 700px) {
  .ficha { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .ficha-in { grid-template-columns: minmax(0, 1fr); }
  .ficha-photo img { max-height: 58dvh; }
  .ficha-info { padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .ficha-num { font-size: 3.4rem; }
}

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .2s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.ficha[open] ~ .wa-float { display: none; }
@media (max-width: 700px) { .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
