/* Copa Nacional Gran Rosario — sistema "Planilla oficial" (dirección B, elegida por Joaco 29/11/2026).
   Paleta oficial: azul #0f2763, celeste #83b3ff, negro #232323, blanco; oro/plata solo para las copas.
   Reglas del sistema:
   - Fondo blanco; el azul aparece como BANDA (header, hero, encabezado de grupo, ficha del partido, footer).
   - Celeste solo sobre azul (sobre blanco no llega a contraste). Sobre blanco, los links y acentos van en azul.
   - Barlow Condensed itálica = solo display (títulos, horarios, resultados). Todo lo demás en Barlow, sin mayúsculas forzadas.
   - Superficies opacas (sin rgba sobre fondo con textura). Un solo radio de tarjeta (6 px).
   - Rojo "en vivo" solo como punto/acento, nunca como fondo de texto (no llega a contraste).
   Fuentes OFL self-hosted (copa/fonts, licencias al lado). Mismos nombres de clase que copa-app.js. */
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* Marca */
  --azul: #0f2763;
  --azul-900: #0a1a45;
  --azul-700: #16357f;
  --celeste: #83b3ff;
  --negro: #232323;
  --blanco: #ffffff;
  --oro: #e2b84f;
  --oro-2: #a8761e;
  --plata: #c3cad3;
  --plata-2: #7c8694;
  --live: #ff4d5e;
  /* Superficies y texto sobre blanco */
  --bg: #ffffff;
  --bg-2: #f4f7fc;        /* encabezados de tabla, estados vacíos */
  --tint: #eef3ff;        /* pastilla de horario */
  --line: #dfe5f0;        /* borde de tarjeta */
  --line-2: #e8edf6;      /* separador interno */
  --ink: var(--negro);
  --ink-2: #5a6478;       /* texto secundario: 5,9:1 sobre blanco */
  /* Texto sobre azul */
  --on-azul: var(--blanco);
  --on-azul-2: #cddcff;   /* secundario sobre azul: 10:1 */
  /* Forma */
  --r: 6px;
  --r-s: 4px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  /* Tipografía */
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 64px;
  --view-max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.45 var(--f-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip; /* las bandas a sangre (hero) no generan scroll lateral; clip no rompe el sticky */
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--azul); color: var(--blanco); padding: 8px 12px; border-radius: var(--r); }
/* Foco: azul sobre blanco, celeste sobre las bandas azules (3:1 mínimo en los dos casos). */
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.top :focus-visible, .hero :focus-visible, .md-head :focus-visible, .foot :focus-visible { outline-color: var(--celeste); }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Header (banda azul) ──────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: calc(60px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  background: var(--azul); color: var(--on-azul);
}
.top-brand { display: inline-flex; align-items: center; min-height: 44px; }
.top-brand img { display: block; height: 34px; width: auto; }
.gender { display: flex; background: var(--azul-900); border-radius: 999px; padding: 3px; }
.gender button {
  border: 0; background: transparent; color: var(--on-azul-2); cursor: pointer;
  font: 600 14px var(--f-body); padding: 0 14px; border-radius: 999px; min-height: 44px;
}
.gender button.is-on { background: var(--celeste); color: var(--azul-900); }

/* ── Nav: barra blanca abajo en celular, banda azul arriba en compu ── */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--ink-2);
  font: 600 12px/1 var(--f-body);
}
.nav-ico { display: inline-flex; font-size: 18px; line-height: 1; }
.nav-ico .ico { width: 22px; height: 22px; }
.nav a.is-on { color: var(--azul); }
.nav a.is-on::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--azul); }

.view { max-width: var(--view-max); margin: 0 auto; padding: 16px 16px 32px; outline: none; }

/* ── Tipografía: roles ────────────────────────────── */
/* display-l: títulos de sección · display-m: títulos de tarjeta · label: 14/600 Barlow · caption: 13-14 ink-2 */
.sec-title { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; }
.sec-title h2, .cup-head h2 {
  margin: 0; font: 800 italic 30px/1 var(--f-display); color: var(--azul); letter-spacing: -.01em;
}
.view > div > .sec-title:first-child { margin-top: 4px; }
.sec-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--azul); font: 600 15px var(--f-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.day-title { margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--azul); font: 800 italic 24px/1 var(--f-display); color: var(--azul); }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* ── Hero (banda azul a sangre) ───────────────────── */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin: -16px 0 0; padding: 20px 0 28px;
  background: var(--azul); color: var(--on-azul);
  box-shadow: 0 0 0 100vmax var(--azul); clip-path: inset(0 -100vmax);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; right: -16px; bottom: -48px; width: 220px; height: 220px;
  background: url('../assets/logo/estrella.svg') center / contain no-repeat; opacity: .1;
}
.hero-logo { display: none; }
.hero-kicker { margin: 0; font: 600 15px var(--f-body); color: var(--celeste); }
.hero-date { margin: 6px 0 0; font: 800 italic clamp(48px, 14vw, 76px)/.9 var(--f-display); letter-spacing: -.01em; }
.hero-place { margin: 12px 0 0; font: 600 17px var(--f-body); }
.hero-cups { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--on-azul-2); font-size: 15px; }
.hero-cups .cup-badge { width: 40px; height: 40px; }
.hero-cups span { margin-left: 4px; }
/* Con partidos en vivo: franja compacta debajo del vivo (no a sangre, tarjeta azul). */
.hero--compact { margin-top: 24px; padding: 14px 16px; border-radius: var(--r); box-shadow: none; clip-path: none; grid-template-columns: 1fr; }
.hero--compact::after { display: none; }
.hero--compact .hero-date { font-size: 26px; }
.hero--compact .hero-date br { display: none; }
.hero--compact .hero-place { margin-top: 4px; font-size: 15px; color: var(--on-azul-2); }
.hero--compact .hero-kicker, .hero--compact .hero-cups { display: none; }

.stale { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r); background: #fff1f2; border: 1px solid #f5b5bc; border-left: 4px solid var(--live); font-size: 15px; font-weight: 600; }
.stale + .view-home > .hero:first-child { margin-top: 0; } /* con el aviso arriba, la portada no lo pisa */

/* ── Chips de estado ──────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--f-body); padding: 5px 8px; border-radius: var(--r-s);
  background: var(--bg-2); color: var(--ink-2);
}
.chip--upcoming { background: var(--tint); color: var(--azul); font: 700 italic 17px/1 var(--f-display); padding: 4px 8px; }
.chip--live { background: var(--azul); color: var(--blanco); }
.chip--live::before, .live-dot { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; }
.live-dot { width: 10px; height: 10px; display: inline-block; align-self: center; }
.chip--final { background: var(--bg-2); color: var(--ink); }
.chip--postponed, .chip--cancelled { background: #fff1f2; color: #a3202f; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .chip--live::before, .live-dot { animation: none; } }

/* ── Tarjeta de partido ───────────────────────────── */
.mc-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.mc-list { display: grid; gap: 8px; padding: 0 12px 12px; }
.mc {
  display: block; text-decoration: none; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 10px;
  transition: border-color .15s;
}
.mc:hover { border-color: var(--azul); }
.mc:active { transform: scale(.99); }
.mc--live { border: 2px solid var(--azul); padding: 0 13px 9px; }
.mc--live .mc-head { margin: 0 -13px 6px; padding: 8px 13px; background: var(--azul); color: var(--on-azul-2); }
.mc--live .mc-head .chip--live { padding: 0; background: none; font-weight: 700; color: var(--blanco); }
.mc-head { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }
.mc-tag { font-weight: 600; }
.mc-field { margin-left: auto; }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.mc-name { flex: 1; min-width: 0; font: 600 16px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row.is-tbd .mc-name { color: var(--ink-2); font-style: italic; font-weight: 400; }
.mc-score { font: 800 italic 26px/1 var(--f-display); min-width: 28px; text-align: right; color: var(--azul); font-variant-numeric: tabular-nums; }
.mc-pen { font: 600 13px var(--f-body); color: var(--ink-2); white-space: nowrap; }
.mc--final .mc-row:not(.is-win) .mc-score, .mc--final .mc-row:not(.is-win) .mc-name { color: var(--ink-2); }

.shield { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); }
.shield--ini {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 italic 13px var(--f-display); color: var(--azul); background: var(--tint); border: 1px solid #c9d8f6;
}

/* ── Partidos por horario ─────────────────────────── */
.slot { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.slot-time { align-self: start; justify-self: start; margin-top: 10px; padding: 6px 8px; border-radius: var(--r-s); background: var(--tint); color: var(--azul); font: 700 italic 20px/1 var(--f-display); font-variant-numeric: tabular-nums; }
/* Solapas tipo planilla: subrayado azul en la activa. */
.filters { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.filter {
  flex: 1 0 auto; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  padding: 0 18px; min-height: 48px; border-radius: 0; font: 600 15px var(--f-body);
  box-shadow: inset 0 -3px 0 transparent;
}
.filter:hover { color: var(--azul); }
.filter.is-on { color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); }

/* ── Grupos ───────────────────────────────────────── */
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; margin: -4px 0 16px; }
/* Clasificación con texto, no solo color (al sol oro y plata se confunden). */
.q-tag { flex: none; display: inline-block; padding: 2px 6px; border-radius: var(--r-s); font: 600 12px/1.3 var(--f-body); color: var(--azul-900); }
.q-tag--oro { background: var(--oro); }
.q-tag--plata { background: var(--plata); }
.legend .q-tag + * { margin-right: 6px; }
.legend .q-tag:not(:first-child) { margin-left: 8px; }
.groups-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.group-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.group-name { margin: 0; padding: 11px 14px; background: var(--azul); color: var(--on-azul); font: 800 italic 22px/1 var(--f-display); }
.gt-wrap { overflow-x: auto; }
.gt { width: 100%; border-collapse: collapse; font-size: 15px; }
.gt th { font: 600 13px var(--f-body); color: var(--ink-2); background: var(--bg-2); text-align: center; padding: 8px 4px; }
.gt td { text-align: center; height: 48px; padding: 0 4px; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.gt .c-team { text-align: left; }
.gt td.c-team { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.gt td.c-team .gt-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.gt .c-pos { width: 36px; font-weight: 600; color: var(--ink-2); }
.gt tr.q-oro td.c-pos { background: var(--oro); color: var(--azul-900); }
.gt tr.q-plata td.c-pos { background: var(--plata); color: var(--azul-900); }
.gt .c-pts { width: 44px; font: 800 italic 20px var(--f-display); color: var(--azul); }
.gt th.c-pts { font: 600 13px var(--f-body); color: var(--ink-2); }
.gt tr.is-zeroed td { color: var(--ink-2); text-decoration: line-through; }
.gt .c-wide { display: none; }
.group-games { border-top: 1px solid var(--line-2); }
.group-games summary { cursor: pointer; padding: 0 14px; min-height: 48px; display: flex; align-items: center; color: var(--azul); font: 600 15px var(--f-body); }
.group-games[open] summary { border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }

/* ── Copas / llaves ───────────────────────────────── */
.cup { margin: 24px 0 36px; }
.cup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--oro); }
.cup--plata .cup-head { border-bottom-color: var(--plata); }
.cup-head .cup-badge { width: 56px; height: 56px; }
.cup-head p { margin: 4px 0 0; color: var(--ink-2); }
.cup-empty { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ink-2); margin: 0; }
/* Celular: rondas apiladas en vertical (sin scroll lateral escondido). Desde 760px: llave en columnas. */
.bracket-scroll { padding-bottom: 6px; }
.bracket { display: grid; grid-template-columns: 1fr; gap: 20px; }
.round { display: flex; flex-direction: column; }
.round-name { margin: 0 0 8px; font: 700 italic 18px var(--f-display); color: var(--azul); }
.round-matches { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; flex: 1; }
.bm { display: block; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--oro); border-radius: var(--r); padding: 8px 12px; }
.cup--plata .bm { border-left-color: var(--plata); }
.bm:hover { border-color: var(--azul); }
.bm--live { border: 2px solid var(--azul) !important; }
.bm-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.bm-row { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-weight: 600; }
.bm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-pen { font: 600 12px var(--f-body); color: var(--ink-2); white-space: nowrap; }
.bm-row.is-tbd .bm-name { color: var(--ink-2); font-weight: 400; font-style: italic; }
.bm-row.is-out { color: var(--ink-2); }
.bm-row.is-win .bm-name::after { content: ' ✓'; color: var(--azul); }
.bm-score { font: 800 italic 20px var(--f-display); min-width: 22px; padding-right: 2px; text-align: right; color: var(--azul); }
.bm-row.is-out .bm-score { color: var(--ink-2); }
.third { margin-top: 16px; max-width: 300px; }

/* ── Promo copas (home) ───────────────────────────── */
.promo { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 32px; }
.promo-card { display: flex; align-items: center; gap: 14px; min-height: 84px; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-left: 6px solid var(--oro); border-radius: var(--r); padding: 12px 16px; }
.promo-card:hover { border-color: var(--azul); border-left-color: var(--oro); }
.promo--plata, .promo--plata:hover { border-left-color: var(--plata); }
.promo-card .cup-badge { width: 52px; height: 52px; }
.promo-card strong { display: block; font: 800 italic 22px/1 var(--f-display); color: var(--azul); }
.promo-card span { font-size: 14px; color: var(--ink-2); }
.cup-badge { flex: none; }

/* ── Premios ──────────────────────────────────────── */
.awards-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.award { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px 6px; }
.award-title { display: flex; align-items: center; gap: 10px; margin: 0 -14px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font: 800 italic 22px/1 var(--f-display); color: var(--azul); }
.award-ico { display: inline-flex; font-size: 20px; font-style: normal; }
.award-ico .ico { width: 22px; height: 22px; }
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; min-height: 52px; padding: 6px 0; }
.award-list li + li { border-top: 1px solid var(--line-2); }
.award-list li.is-lead .aw-pos { background: var(--azul); color: var(--blanco); }
.aw-pos { width: 26px; height: 26px; border-radius: var(--r-s); display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink-2); font: 700 italic 15px var(--f-display); }
.aw-who { min-width: 0; }
.aw-who strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-who small { font-size: 13px; color: var(--ink-2); }
.aw-val { font: 800 italic 24px var(--f-display); color: var(--azul); }
.aw-val small { font: 600 13px var(--f-body); color: var(--ink-2); }
.award-empty { margin: 0; padding: 14px 0 10px; color: var(--ink-2); }

/* ── Ficha de partido ─────────────────────────────── */
.back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; color: var(--azul); text-decoration: none; font: 600 15px var(--f-body); }
.md-head { background: var(--azul); color: var(--on-azul); border-radius: var(--r); padding: 16px 16px 22px; }
.md--live { box-shadow: inset 0 3px 0 var(--live); }
.md-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; color: var(--on-azul-2); font-size: 14px; }
.md-meta .chip { background: var(--azul-900); color: var(--blanco); }
.md-meta .chip--upcoming { color: var(--celeste); }
.md-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 18px; }
.md-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; line-height: 1.25; }
.md-team .shield { width: 60px; height: 60px; font-size: 20px; }
.md-team .shield--ini { background: var(--azul-700); color: var(--blanco); border-color: #2a4c9e; }
.md-score { font: 800 italic 64px/1 var(--f-display); text-align: center; display: flex; flex-direction: column; align-items: center; font-variant-numeric: tabular-nums; }
.md-score small { font: 600 13px var(--f-body); color: var(--on-azul-2); margin-top: 6px; }
/* Cronología en 3 columnas: local | minuto | visitante, dentro de una tarjeta. */
.tl-head, .ev { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 6px; }
.tl-head { margin-top: 20px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; font: 600 13px var(--f-body); color: var(--ink-2); }
.tl-head span { overflow-wrap: anywhere; line-height: 1.2; }
.tl-head span:last-child { text-align: right; }
.timeline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.ev { min-height: 56px; padding: 8px 12px; }
.ev + .ev { border-top: 1px solid var(--line-2); }
.ev-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev--away .ev-side { flex-direction: row-reverse; text-align: right; }
.ev-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; font-size: 20px; flex: none; color: var(--ink); }
.ev-ico .ico { width: 20px; height: 20px; }
.ev-ico--og { color: var(--live); }
.card-y, .card-r, .card-b { display: inline-block; width: 14px; height: 19px; border-radius: 2px; }
.card-y { background: #f2c230; } .card-r { background: var(--live); } .card-b { background: #2f6fe0; }
.ev-txt { min-width: 0; display: flex; flex-direction: column; }
.ev-txt strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-txt small { font-size: 13px; color: var(--ink-2); }
.ev-min { text-align: center; font: 700 italic 18px var(--f-display); color: var(--azul); font-variant-numeric: tabular-nums; }
.view-match .muted.center { margin: 20px 0 0; padding: 16px; background: var(--bg-2); border-radius: var(--r); }
.mvp { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--tint); border: 1px solid #c9d8f6; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--azul); }
.mvp .ico { color: var(--oro-2); }

/* ── Plantel, ficha de jugador y formaciones ─────── */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.av {
  display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--azul); color: var(--blanco); font: 800 italic 19px/1 var(--f-display); font-variant-numeric: tabular-nums;
}
.av--ini { background: var(--tint); color: var(--azul); border: 1px solid #c9d8f6; font-size: 16px; }
.av--big { width: 72px; height: 72px; font-size: 34px; }
.av--big.av--ini { font-size: 28px; border-color: transparent; }
.av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; }
.cc-box { width: 10px; height: 14px; }
.cc-n { font: 600 13px/1 var(--f-body); color: var(--ink); }
.seg { display: inline-flex; gap: 0; margin: 4px 0 12px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.seg-b { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 14px var(--f-body); cursor: pointer; }
.seg-b.is-on { background: var(--azul); color: var(--blanco); }
.pl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pl-list > li + li { border-top: 1px solid var(--line-2); }
.pl { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; text-decoration: none; color: inherit; }
a.pl:hover { background: var(--bg-2); }
.pl-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-who b { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pl-who small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--ink-2); }
.pl--head { min-height: 0; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; font: 600 13px var(--f-body); color: var(--ink-2); }
.pl--head + .pl-list { border-radius: 0 0 var(--r) var(--r); }
.pl-st { grid-column: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
.st { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; background: var(--bg-2); border-radius: var(--r-s); }
.st b { font: 700 italic 20px/1 var(--f-display); color: var(--azul); font-variant-numeric: tabular-nums; }
.st--0 b { color: var(--ink-2); font-weight: 600; font-size: 18px; }
.st-l { font: 600 12px/1 var(--f-body); font-style: normal; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 14px; }
.pl .pl-who { grid-column: 2; grid-row: 1; }
.pl > .av { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
.pl--head { display: none; }
.pl-leg { margin: 8px 2px 0; font-size: 13px; }

.pj-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 16px; }
.pj-id { min-width: 0; }
.pj-id h2 { margin: 0; font: 800 italic 30px/1.05 var(--f-display); color: var(--azul); overflow-wrap: anywhere; }
.pj-id p { margin: 6px 0 0; color: var(--ink-2); }
.pj-id a { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.kpi b { font: 800 italic 34px/1 var(--f-display); color: var(--azul); font-variant-numeric: tabular-nums; }
.kpi span { font: 600 13px var(--f-body); color: var(--ink-2); }
.pj-cards { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.pg-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.pg-list > li + li { border-top: 1px solid var(--line-2); }
.pg { display: grid; gap: 4px; min-height: 64px; padding: 12px; text-decoration: none; color: inherit; }
a.pg:hover { background: var(--bg-2); }
.pg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pg-when { font: 600 13px var(--f-body); color: var(--ink-2); }
.pg-score { font: 800 italic 22px/1 var(--f-display); color: var(--azul); font-variant-numeric: tabular-nums; }
.pg-vs { font: 600 17px/1.25 var(--f-body); overflow-wrap: anywhere; }
.pg-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pg-none { font-size: 14px; }
.pg-mk { display: inline-flex; align-items: center; gap: 5px; font: 600 14px/1 var(--f-body); color: var(--ink); }
.pg-mk .ico { width: 18px; height: 18px; }
.pg-mk--mvp .ico { color: var(--oro-2); }
.pg-mk--og { color: #a3202f; }
.seg-b--retry { margin-top: 14px; background: var(--azul); color: var(--blanco); min-height: 48px; }
.empty--err { border-left: 4px solid var(--live); }
.lu-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -4px 0 12px; font-size: 14px; }
.lu-leg .ico { width: 18px; height: 18px; margin-left: 6px; }
.ev-name { font-weight: 600; color: var(--azul); overflow-wrap: anywhere; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; padding: 6px 0; }

.lu { margin-top: 24px; }
.lu-title { margin: 0 0 12px; font: 800 italic 26px/1 var(--f-display); color: var(--azul); }
.lu-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lu-team { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); min-width: 0; }
.lu-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; font: 700 17px/1.2 var(--f-body); }
.lu-head span:last-child { min-width: 0; overflow-wrap: anywhere; }
.lu-dt { margin: 0; padding: 8px 12px 0; font-size: 14px; }
.lu-none { margin: 0; padding: 12px; }
.lu-list { list-style: none; margin: 0; padding: 0; }
.lu-sep { padding: 10px 12px 4px; font: 600 13px var(--f-body); color: var(--ink-2); }
.lu-list > li:not(.lu-sep) + li:not(.lu-sep) { border-top: 1px solid var(--line-2); }
.lu-p { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; text-decoration: none; color: inherit; }
a.lu-p:hover { background: var(--bg-2); }
.lu-p .av { width: 32px; height: 32px; font-size: 16px; }
.lu-p .av--ini { font-size: 13px; }
.lu-who { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lu-name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.lu-marks { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px 8px; flex: none; }
.lu-marks .cc { margin-right: 0; }

@media (min-width: 640px) {
  .pl { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
  .pl > .av { grid-row: auto; margin-top: 0; }
  .pl .pl-who { grid-column: 2; grid-row: auto; }
  .pl-st { grid-column: 3; grid-template-columns: repeat(7, 48px); gap: 0; margin-top: 0; }
  .st { background: none; padding: 0; }
  .pl .st-l { display: none; }
  .pl--head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
  .pl--head .pl-st { grid-column: 3; }
  .pl--head .st { font: 600 13px var(--f-body); color: var(--ink-2); }
  .pl-list, .pl--head { max-width: 920px; }
}

/* ── Estados ──────────────────────────────────────── */
.empty { margin-top: 16px; text-align: center; padding: 32px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.empty img { width: 48px; height: 48px; }
.empty-title { margin: 12px 0 4px; font: 800 italic 24px/1.05 var(--f-display); color: var(--azul); }
.empty-body { margin: 0 auto; color: var(--ink-2); max-width: 420px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--ink-2); }
.spinner { width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--azul); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer (banda azul compacta; los logos blancos necesitan fondo oscuro) ── */
.foot { margin-top: 40px; padding: 24px 16px 28px; text-align: center; background: var(--azul-900); color: var(--on-azul-2); }
.foot-org { margin: 4px 0 10px; font: 600 13px var(--f-body); color: var(--on-azul-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; max-width: 900px; margin: 0 auto 16px; }
.foot-row img { height: 28px; width: auto; opacity: .92; }
.foot-row--org img { height: 40px; }
.foot-legal { margin: 8px 0 0; font-size: 13px; color: var(--on-azul-2); }

/* ── Navegación por equipo (S1) ───────────────────── */
.tlink { color: inherit; text-decoration: none; }
.tlink:hover { text-decoration: underline; }
.mc-head { flex-wrap: wrap; }
.mc.is-mine { box-shadow: inset 4px 0 0 var(--azul); }
.mine-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--azul); font-weight: 600; font-size: 13px; }
.mine-tag .ico { width: 14px; height: 14px; fill: currentColor; }
.mc--live .mine-tag { color: var(--blanco); }
.branch-tag { padding: 2px 6px; border-radius: var(--r-s); background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 13px; }
.mc--live .branch-tag { background: var(--azul-900); color: var(--blanco); }

/* Filtros de Partidos: grupos/copas y día */
.day-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.day-pick .filter { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; box-shadow: none; }
.day-pick .filter.is-on { background: var(--azul); border-color: var(--azul); color: var(--blanco); box-shadow: none; }
.view-matches > .filters + .day-pick + .day-title, .view-matches > .filters + .day-title { margin-top: 20px; }
.now-line { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; scroll-margin-top: 96px; color: var(--azul); font: 800 italic 18px/1 var(--f-display); }
.now-line::before, .now-line::after { content: ''; height: 2px; background: var(--live); flex: 1; }
.now-line::before { flex: 0 0 16px; }
.slot.is-now .slot-time { background: var(--azul); color: var(--blanco); }

/* Tabla de grupos: nombre tocable y equipo seguido */
.gt a.gt-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 48px; }
.gt tr.is-mine td { background: var(--tint); }
.help { flex: none; width: 44px; height: 44px; margin-left: auto; align-self: center; border: 2px solid var(--azul); border-radius: 50%; background: var(--bg); color: var(--azul); font: 800 italic 22px/1 var(--f-display); cursor: pointer; }
.help[aria-expanded="true"] { background: var(--azul); color: var(--blanco); }
.tiebreak { margin: 0 0 16px; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--azul); border-radius: var(--r); }
.tiebreak p { margin: 6px 0; }
.tiebreak ol { margin: 0 0 8px; padding-left: 22px; }
.tiebreak li { padding: 2px 0; }
.tiebreak small { color: var(--ink-2); font-size: 13px; }

/* Llaves: la tarjeta es un contenedor; el enlace al partido se estira por debajo de los nombres */
.bm { position: relative; }
/* La franja hora/cancha es el enlace al partido (los nombres llevan al equipo): 44 px de alto para el dedo */
.bm-meta { text-decoration: none; color: var(--ink-2); align-items: center; min-height: 44px; margin-bottom: 0; }
.bm-meta::after { content: ''; position: absolute; inset: 0; }
.bm.is-mine { box-shadow: 0 0 0 2px var(--azul); }
a.bm-name { position: relative; z-index: 1; display: flex; align-items: center; flex: 1; min-width: 0; min-height: 44px; }

/* Premios: equipo tocable (el área táctil crece sin mover el diseño) */
.aw-link { position: relative; display: block; }
.aw-link::after { content: ''; position: absolute; inset: -13px 0; }

/* Ficha del partido y perfil: botones */
.btn-share, .btn-follow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px var(--f-body); cursor: pointer; }
.btn-share { border: 1px solid var(--azul); background: var(--bg); color: var(--azul); }
.btn-share:hover { background: var(--tint); }
.md-head .btn-share, .btn-share--on-azul { border-color: var(--on-azul-2); background: transparent; color: var(--blanco); }
.md-head .btn-share:hover, .btn-share--on-azul:hover { background: var(--azul-700); }
.md-actions { display: flex; justify-content: center; margin-top: 16px; }
a.md-team { color: inherit; text-decoration: none; min-height: 44px; }
a.md-team:hover span { text-decoration: underline; }
.btn-follow { border: 2px solid var(--celeste); background: transparent; color: var(--blanco); font-weight: 700; }
.btn-follow:hover { background: var(--azul-700); }
.btn-follow.is-on { background: var(--celeste); color: var(--azul-900); }
.btn-follow.is-on .ico { fill: currentColor; }

/* Perfil de equipo */
.tp { margin-bottom: 4px; padding: 16px; border-radius: var(--r); background: var(--azul); color: var(--on-azul); }
.tp :focus-visible { outline-color: var(--celeste); }
.tp-top { display: flex; align-items: center; gap: 14px; }
.tp .shield { width: 64px; height: 64px; font-size: 22px; }
.tp .shield--ini { background: var(--azul-700); color: var(--blanco); border-color: #2a4c9e; }
.tp-id { min-width: 0; }
.tp-name { margin: 0; font: 800 italic 32px/1 var(--f-display); overflow-wrap: anywhere; }
.tp-sub { margin: 4px 0 0; color: var(--on-azul-2); font-size: 15px; }
.tp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; }
.tp-stats > div { padding: 8px 4px; border-radius: var(--r-s); background: var(--azul-900); text-align: center; }
.tp-stats dt { color: var(--on-azul-2); font: 600 13px var(--f-body); }
.tp-stats dd { margin: 0; font: 800 italic 28px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.tp-form { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.tp-form-lbl { margin-right: 4px; color: var(--on-azul-2); font-size: 14px; }
.form { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-s); font: 700 italic 16px var(--f-display); }
.form--G { background: #d9f2e3; color: #0b5b31; }
.form--E { background: #eef0f4; color: #3a4358; }
.form--P { background: #ffe1e4; color: #a3202f; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.view-team .filters { margin-top: 16px; }

/* Inicio: Tu próximo partido, Ahora en cancha, elegir rama */
.mynext-empty { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.fc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.fc-title { margin: 0 0 6px; font: 800 italic 18px/1 var(--f-display); color: var(--azul); }
.fc-next { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 0 14px; border-radius: var(--r); background: var(--bg-2); text-decoration: none; font-size: 14px; }
.fc-next-time { font: 700 italic 18px var(--f-display); color: var(--azul); }
.fc-next-vs { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.branch-card { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; min-height: 88px; padding: 12px 16px; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-left: 6px solid var(--azul); border-radius: var(--r); }
.branch-card:hover { border-color: var(--azul); }
.branch-card strong { grid-column: 1; font: 800 italic 28px/1 var(--f-display); color: var(--azul); }
.branch-card span { grid-column: 1; font-size: 15px; color: var(--ink-2); }
.branch-card .ico { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--azul); }

/* Aviso breve ("Link copiado") */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: calc(100vw - 32px); transform: translate(-50%, 8px); padding: 12px 18px; border-radius: var(--r); background: var(--azul-900); color: var(--blanco); font: 600 15px var(--f-body); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sr-copy { position: fixed; left: -999px; top: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ── Pantallas grandes ────────────────────────────── */
@media (min-width: 560px) {
  .branch-grid { grid-template-columns: 1fr 1fr; }
  .gt .c-wide { display: table-cell; }
  .gt td.c-team .gt-name { max-width: 200px; }
  .promo { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  /* Header fijo arriba (el selector Masculino/Femenino queda siempre a mano) y la nav pegada debajo. */
  .top { height: 72px; min-height: 0; padding: 0 max(24px, calc((100% - var(--view-max)) / 2 + 24px)); }
  .top-brand img { height: 40px; }
  /* La nav continúa la banda del header. */
  .nav {
    position: sticky; top: 72px; bottom: auto; height: auto; padding: 0 max(24px, calc((100% - var(--view-max)) / 2 + 24px));
    display: flex; justify-content: flex-start; gap: 4px;
    background: var(--azul); border-top: 1px solid var(--azul-700); border-bottom: 0;
  }
  .nav a { flex-direction: row; gap: 8px; min-height: 52px; padding: 0 14px; font-size: 15px; color: var(--on-azul-2); }
  .nav a:hover { color: var(--blanco); }
  .nav a.is-on { color: var(--blanco); }
  .nav a.is-on::before { top: auto; bottom: 0; left: 14px; right: 14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--celeste); }
  .nav :focus-visible { outline-color: var(--celeste); outline-offset: -3px; }
  .nav-ico .ico { width: 20px; height: 20px; }
  .view { padding: 24px 24px 40px; }
  .hero { margin-top: -24px; padding: 36px 0 40px; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; }
  .hero-txt { grid-column: 1; grid-row: 1; }
  .hero-logo { display: block; grid-column: 2; grid-row: 1; width: 200px; height: auto; margin: -24px 0; }
  .hero::after { display: none; }
  .hero-date { font-size: 76px; }
  .hero--compact { margin-top: 24px; padding: 14px 20px; grid-template-columns: auto 1fr; }
  .hero--compact .hero-logo { display: block; grid-column: 1; width: 64px; margin: 0; }
  .hero--compact .hero-txt { grid-column: 2; }
  .bracket-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bracket { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; min-width: min-content; }
  .mc-grid, .fc-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .slot { grid-template-columns: 80px 1fr; }
  .slot-time { font-size: 22px; }
  .md-head { padding: 20px 24px 28px; }
  .md-score { font-size: 84px; }
  .md-team { font-size: 18px; }
  .md-team .shield { width: 72px; height: 72px; }
  .filters { overflow: visible; }
  .filter { flex: 0 0 auto; }
}
@media (min-width: 1040px) {
  .mc-grid { grid-template-columns: repeat(3, 1fr); }
  .groups-grid { grid-template-columns: repeat(3, 1fr); }
  .gt .c-wide { display: none; }
  .awards-grid { grid-template-columns: repeat(3, 1fr); }
  /* Inicio en escritorio: partidos a la izquierda, copas a la derecha (C5 de la auditoría). */
  .view-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; align-items: start; }
  .view-home > * { grid-column: 1; }
  .view-home > .hero { grid-column: 1 / -1; }
  .view-home > .hero:not(.hero--compact) ~ .promo { grid-column: 2; grid-row: 2 / span 2; grid-template-columns: 1fr; margin-top: 32px; }
  .view-home > .promo { grid-template-columns: 1fr 1fr; }
  .view-home .mc-grid, .view-home .fc-grid { grid-template-columns: repeat(2, 1fr); }
  /* Con partidos en vivo la portada es una franja: una sola columna a lo ancho, 3 tarjetas por fila. */
  .view-home:has(> .hero--compact) { display: block; }
  .view-home:has(> .hero--compact) .mc-grid { grid-template-columns: repeat(3, 1fr); }
  .view-home > .hero:not(.hero--compact) ~ .empty { margin-top: 32px; }
  /* Ficha del partido: cronología y cabecera en dos columnas. */
  .md { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .md > .md-head { grid-column: 1; grid-row: 1 / span 3; }
  .md > .tl-head { grid-column: 2; margin-top: 0; }
  .md > .timeline, .md > .muted, .md > .mvp { grid-column: 2; }
  .md > .loading, .md > .empty, .md > .lu { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .lu-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .pl-list, .pl--head { max-width: 920px; }
}

/* Ajustes tras revisión de UX */
.mc-head { gap: 6px 8px; }
.gt a.gt-team, a.bm-name, .aw-link, .aw-link small { color: var(--azul); } /* el nombre tocable se distingue del texto común */
@media (max-width: 380px) {
  .mine-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* en pantallas angostas queda solo la estrella (el texto sigue para lectores de pantalla) */
}
@media (min-width: 1040px) {
  /* Inicio general (sin columna de copas): a lo ancho, como la franja con partidos en vivo */
  .view-home:has(> .branch-grid) { display: block; }
  .view-home:has(> .branch-grid) .mc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Filtro de partidos: selector en el celular, solapas desde 760px (donde dejan de tener scroll lateral) ── */
.sel-wrap { margin-top: 4px; }
.sel-label { display: block; margin: 0 0 6px; font: 700 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sel-box { position: relative; }
.sel-box::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: rotate(45deg); pointer-events: none; }
.sel { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 52px; padding: 0 44px 0 14px; border: 2px solid var(--azul); border-radius: var(--r); background: var(--bg); color: var(--azul); font: 700 17px var(--f-body); cursor: pointer; }
.sel:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
/* Con un filtro elegido (≠ Todos) el selector se ve activo, igual que el chip de día elegido: así se nota que se ve solo una parte. */
.sel.is-on { background: var(--azul); color: var(--blanco); }
.sel-box.is-on::after { border-color: var(--blanco); }
.sel option, .sel optgroup { background: var(--bg); color: var(--ink); } /* la lista nativa no hereda el texto blanco */
.filters--tabs { display: none; }
@media (min-width: 760px) { .sel-wrap { display: none; } .filters--tabs { display: flex; } }

/* Horario sin definir: texto más chico, en mayúsculas y dentro de su columna (a 20px pisaba la tarjeta). */
.slot-time--tbd { font: 700 italic 12px/1.15 var(--f-display); letter-spacing: 0; text-transform: uppercase; padding: 8px 4px; white-space: nowrap; text-align: center; }

/* ── Fases (solapas Grupos | Copas) y Equipos ─────── */
.view-phases > .filters { margin-top: 0; }
.view-phases #fase-panel > .view-groups > .sec-title:first-child { margin-top: 20px; }
.view-phases #fase-panel > .view-cups { margin-top: 20px; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-item { display: flex; align-items: stretch; border-top: 1px solid var(--line-2); }
.team-item:first-child { border-top: 0; }
.team-item.is-mine { background: var(--tint); box-shadow: inset 4px 0 0 var(--azul); }
.team-row { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px 0 14px; color: inherit; text-decoration: none; }
.team-row:hover .team-name { text-decoration: underline; }
.team-name { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-meta { flex: none; display: inline-flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.team-pos { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.team-pts { font: 800 italic 20px var(--f-display); color: var(--azul); }
.team-pts small { font: 600 13px var(--f-body); color: var(--ink-2); }
.team-star { flex: none; width: 48px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.team-star .ico { width: 22px; height: 22px; }
.team-star:hover { color: var(--azul); }
.team-star.is-on { color: var(--oro-2); }
.team-star.is-on .ico { fill: currentColor; }
.team-mine { margin-bottom: 16px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--azul); border-radius: var(--r); overflow: hidden; }
.team-mine-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px 4px; font: 600 14px var(--f-body); color: var(--azul); }
.team-mine-title .ico { width: 18px; height: 18px; color: var(--oro-2); fill: currentColor; }
