/* De Local · el deporte en todos sus colores (propuesta de identidad, 24/11/2026).
   Concepto: la guirnalda de banderines del club de barrio. Cada torneo tiene su
   banderín y su color; todos los colores conviven solo en la guirnalda, no en
   cada rincón. Verde y violeta son los anfitriones de la paleta.
   Diseño propio: sin logotipos, texturas ni íconos de terceros. Tipografía Archivo
   (Omnibus-Type, Argentina), con licencia SIL OFL 1.1: web/fuentes/OFL-Archivo.txt.
   Contrastes verificados (WCAG AA para todo texto; ver IDENTIDAD.md). */

@font-face {
  font-family: "Archivo";
  src: url("/fuentes/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* Paleta de banderines: relleno (gráfico) y tinta (texto, ≥4,5:1) */
  --verde: #1FA55A;    --verde-t: #0A6B37;
  --violeta: #7B35D0;  --violeta-t: #6127B3;
  --naranja: #F2872A;  --naranja-t: #A34A05;
  --tierra: #A8693E;   --tierra-t: #7A4523;
  --amarillo: #F5C22E; --amarillo-t: #7A5B00;
  --celeste: #3BA7E6;  --celeste-t: #0B5D91;
  --azul: #3561E0;     --azul-t: #2847B3;
  --turquesa: #16A9A0; --turquesa-t: #086A64;
  --rosa: #EC5A9E;     --rosa-t: #A81D5E;
  --lima: #8DC63F;     --lima-t: #4A6C10;
  /* Base: papel cálido y tinta violeta casi negra */
  --fondo: #FBF8F3;
  --sup: #FFFFFF;
  --sup-2: #F6F2EC;
  --tinta: #1E1530;
  --suave: #5F5574;
  --linea: #E8E1EE;
  --linea-2: #D6CCE0;
  --sobre: #FFFFFF;          /* texto sobre una tinta */
  --vivo: #C8261F;           /* en juego: rojo de tanteador, siempre con texto */
  --sobre-vivo: #FFFFFF;
  --aviso: #FFF3CF; --aviso-t: #5C4300; --aviso-borde: #C99700;
  --error: #FDE4E2; --error-t: #6E1410; --error-borde: #C8261F;
  --tinte: 13%;
  --sombra: 0 1px 0 rgba(30, 21, 48, .06), 0 6px 18px -12px rgba(30, 21, 48, .35);
  --radio: 14px;
  /* Color del contexto (torneo); por defecto, el violeta de la casa */
  --c: var(--violeta); --c-t: var(--violeta-t);
  --c-s: color-mix(in srgb, var(--c) var(--tinte), var(--sup));
  --letra: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --verde-t: #5BD48F; --violeta-t: #C9A2FF; --naranja-t: #FFAF6B; --tierra-t: #E0A97F; --amarillo-t: #FFD95E;
    --celeste-t: #7FCBF7; --azul-t: #9DB4FF; --turquesa-t: #5FD9D0; --rosa-t: #FF92C4; --lima-t: #B9E275;
    --fondo: #120E1C; --sup: #1C1629; --sup-2: #241D35;
    --tinta: #F3EFFA; --suave: #B4AACA; --linea: #2E2642; --linea-2: #40365A;
    --sobre: #120E1C; --vivo: #FF6B5E; --sobre-vivo: #120E1C;
    --aviso: #3A2F0E; --aviso-t: #FFE7A3; --aviso-borde: #C99700;
    --error: #3D1714; --error-t: #FFD0CB; --error-borde: #FF6B5E;
    --tinte: 20%;
    --sombra: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 22px -14px rgba(0, 0, 0, .8);
  }
}
/* Cada torneo, sus colores (rutas.js, `color`) */
[data-color] { --c-s: color-mix(in srgb, var(--c) var(--tinte), var(--sup)); }
[data-color="verde"] { --c: var(--verde); --c-t: var(--verde-t); }
[data-color="violeta"] { --c: var(--violeta); --c-t: var(--violeta-t); }
[data-color="naranja"] { --c: var(--naranja); --c-t: var(--naranja-t); }
[data-color="tierra"] { --c: var(--tierra); --c-t: var(--tierra-t); }
[data-color="amarillo"] { --c: var(--amarillo); --c-t: var(--amarillo-t); }
[data-color="celeste"] { --c: var(--celeste); --c-t: var(--celeste-t); }
[data-color="azul"] { --c: var(--azul); --c-t: var(--azul-t); }
[data-color="turquesa"] { --c: var(--turquesa); --c-t: var(--turquesa-t); }
[data-color="rosa"] { --c: var(--rosa); --c-t: var(--rosa-t); }
[data-color="lima"] { --c: var(--lima); --c-t: var(--lima-t); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fondo); }
body {
  margin: 0; min-height: 100vh; color: var(--tinta); background: var(--fondo);
  font-family: var(--letra); font-variant-numeric: tabular-nums; line-height: 1.3;
}
a { color: var(--violeta-t); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--violeta); outline-offset: 2px; border-radius: 4px; }
.cargando { color: var(--suave); padding: 24px 4px; text-align: center; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Banderín: la unidad gráfica de la identidad */
.bloque-tit a::before, .lateral a[data-color]::before, .chips a[data-color]::before, h1[data-color]::before, .ficha .comp a::before {
  content: ""; flex: none; display: inline-block; width: 11px; height: 14px; background: var(--c);
  clip-path: polygon(0 0, 100% 0, 50% 100%); border-top: 2px solid var(--tinta);
}

/* ---------- Encabezado ---------- */
.barra { display: flex; align-items: center; gap: 10px 18px; max-width: 1240px; margin: 0 auto; padding: 14px 16px 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.marca { display: inline-flex; align-items: center; text-decoration: none; padding: 2px; margin: -2px; }
.logo { display: block; height: 38px; width: auto; overflow: visible; }
/* Solo las letras y la vara son trazos: la máscara del banderín conserva su relleno. */
.logo .dl-t, .logo .dl-de, .logo .dl-o, .logo .dl-vara { fill: none; stroke-width: 12.5; stroke-linecap: round; stroke-linejoin: round; }
.logo .dl-t { stroke: var(--tinta); }
.logo .dl-de { stroke: var(--violeta-t); }
.logo .dl-o { stroke: var(--verde); }
.logo .dl-cuerpo { fill: var(--violeta); }
.logo .dl-banda { fill: var(--verde); stroke: none; }
.logo .dl-vara { stroke: var(--tinta); stroke-width: 7; }
.logo .dl-borla { fill: var(--amarillo); }
.logo .dl-banderin { transform-origin: 28px 8px; transform-box: view-box; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.marca:hover .dl-banderin, .marca:focus-visible .dl-banderin { transform: rotate(-9deg); }
@media (prefers-reduced-motion: reduce) { .logo .dl-banderin { transition: none; } }

.secciones { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.secciones::-webkit-scrollbar { display: none; }
.secciones a { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta); text-decoration: none; font-weight: 650; font-size: 15px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; border: 1.5px solid var(--linea-2); }
.secciones a:hover { border-color: var(--violeta); }
.secciones a[aria-current="page"] { background: var(--violeta-t); border-color: var(--violeta-t); color: var(--sobre); }
.ico-deporte { width: 16px; height: 16px; flex: none; }
.ico-deporte circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.ico-deporte path { fill: currentColor; }
.actualizacion { font-size: 12.5px; color: var(--suave); white-space: nowrap; }
.actualizacion .punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); margin-right: 6px; vertical-align: 0; }
.actualizacion.pausa .punto { background: var(--suave); }
.actualizacion.error { color: var(--error-t); background: var(--error); padding: 4px 10px; border-radius: 8px; font-weight: 700; white-space: normal; }
.actualizacion.error .punto { background: var(--vivo); }

/* La guirnalda: el único lugar donde todos los colores están juntos */
.guirnalda { height: 34px; margin: -4px 0 2px; background: url("/guirnalda.svg") repeat-x 0 0 / 288px 34px; pointer-events: none; }
.demo-aviso { max-width: 1240px; margin: 0 auto 10px; padding: 0 16px; font-size: 13px; color: var(--suave); }
.demo-aviso a { color: var(--violeta-t); font-weight: 650; }

/* ---------- Cuerpo: lateral + contenido ---------- */
.cuerpo { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; align-items: start; }
main { min-width: 0; outline: none; }
.columna { max-width: 980px; margin: 0 auto; }
.columna:has(.ficha) { max-width: 640px; }
.ancha { max-width: 1000px; margin: 0 auto; }

/* Lateral de torneos */
.lateral { font-size: 14.5px; position: sticky; top: 10px; padding: 8px; background: var(--sup); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); }
.lateral h3 { margin: 14px 8px 4px; font-size: 11.5px; font-weight: 750; font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.lateral h3:first-of-type { margin-top: 10px; }
.lateral a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: var(--tinta); text-decoration: none; border-radius: 8px; line-height: 1.2; }
.lateral a:hover { background: var(--sup-2); }
.lateral a[aria-current="page"] { background: var(--c-s); font-weight: 750; box-shadow: inset 3px 0 0 var(--c); }
.lateral .bandera { display: none; }
.lateral .inicio { justify-content: center; background: var(--violeta-t); color: var(--sobre); font-weight: 750; padding: 9px 8px; border-radius: 10px; }
.lateral .inicio:hover, .lateral .inicio[aria-current="page"] { background: var(--violeta-t); box-shadow: none; filter: brightness(1.08); }

/* Banderas: aproximaciones propias, sin imágenes */
.bandera { display: inline-block; flex: none; width: 18px; height: 12px; margin: 0 0 0 2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); background: #888; }
.b-ar { background: radial-gradient(circle, #f6b40e 0 1.6px, transparent 2.2px), linear-gradient(#74acdf 0 33%, #fff 33% 67%, #74acdf 67%); }
.b-br { background: radial-gradient(circle, #1f3f8f 0 2.4px, transparent 2.8px), radial-gradient(ellipse 46% 40%, #ffdf00 0 98%, transparent 100%), #009c3b; }
.b-en { background: linear-gradient(#ce1124, #ce1124) center / 100% 2px no-repeat, linear-gradient(#ce1124, #ce1124) center / 2px 100% no-repeat, #fff; }
.b-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.b-eu { background: radial-gradient(circle, transparent 0 2.6px, #ffcc00 2.6px 3.6px, transparent 4px), #003399; }
.b-sa { background: linear-gradient(135deg, #2f78b5 0 50%, #2b8a3e 50%); }

/* ---------- Títulos ---------- */
h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 14px; font-size: 30px; font-weight: 850; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
h1 small { flex-basis: 100%; font-size: 14px; font-weight: 450; font-stretch: 100%; letter-spacing: 0; color: var(--suave); }
h1[data-color]::before { width: 22px; height: 28px; border-top-width: 3px; }
h2.seccion-tit { margin: 30px 0 10px; font-size: 13px; font-weight: 800; font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase; color: var(--violeta-t); }
h2.seccion-tit a { color: inherit; text-decoration: none; }

/* ---------- Días: ← Ayer · Hoy · Mañana → ---------- */
.dias { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 2px 0 14px; }
.dias > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; color: var(--tinta); background: var(--sup); border: 1.5px solid var(--linea-2); text-decoration: none; font-weight: 650; font-size: 15px; }
.dias > a:hover { border-color: var(--violeta); color: var(--violeta-t); }
.dias .flecha { font-weight: 800; }
.dias > a:last-child { flex-direction: row-reverse; }
.dias > span { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.dias > span b { font-size: 40px; font-weight: 900; font-stretch: 118%; letter-spacing: -.03em; }
.dias > span small { margin-top: 5px; font-size: 14px; color: var(--suave); font-weight: 500; }
.dias > span small::first-letter { text-transform: uppercase; }

/* Atajos de torneos */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; background: var(--sup); color: var(--tinta); text-decoration: none; font-size: 13.5px; font-weight: 600; border: 1px solid var(--linea); border-radius: 999px; }
.chips a::before { width: 9px !important; height: 11px !important; border-top-width: 1.5px !important; }
.chips a:hover { border-color: var(--c); }
.chips a[aria-current="page"] { background: var(--c-t); border-color: var(--c-t); color: var(--sobre); }

/* ---------- Bloques por torneo ---------- */
.bloques { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; align-items: start; }
.bloque { margin: 0 0 16px; background: var(--sup); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.bloques > .bloque { margin: 0; }
.bloque-tit { margin: 0; padding: 0; background: var(--c-s); border-bottom: 1px solid var(--linea); font-size: 16px; font-weight: 800; font-stretch: 106%; letter-spacing: -.005em; }
.bloque-tit:not(:has(> a)) { padding: 10px 14px; }
.bloque-tit a { display: flex; align-items: center; gap: 9px; padding: 8px 14px; color: var(--tinta); text-decoration: none; }
.bloque-tit a:hover { color: var(--c-t); }
.bloque-tit a::after { content: "›"; margin-left: auto; font-size: 20px; line-height: .8; color: var(--c-t); }
.bloque-tit .bandera { margin-left: 0; }
.bloque-tit .pais, .bloque-tit .der { font-weight: 450; color: var(--suave); font-size: 12.5px; }
.vacio { margin: 0; padding: 16px; background: var(--sup); color: var(--suave); font-size: 14px; text-align: center; border-radius: var(--radio); }
.bloque .vacio { border-radius: 0; }

/* Fila de partido: dos renglones (local arriba, visitante abajo), el marcador a la derecha */
.fila {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 34px 22px;
  grid-template-areas: "hora local gl est" "hora visita gv est";
  align-items: center; column-gap: 6px; padding: 4px 8px 4px 4px; min-height: 46px;
  color: var(--tinta); text-decoration: none; border-top: 1px solid var(--linea);
}
.bloque-tit + .fila, .fecha-sub + .fila, .nav-fecha + .fila, summary + .fila { border-top: 0; }
.fila:hover { background: var(--c-s); }
.fila > span { display: flex; align-items: center; min-width: 0; }
.fila .hora { grid-area: hora; align-self: stretch; flex-direction: column; justify-content: center; gap: 2px; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--linea); text-align: center; font-weight: 750; font-size: 14px; line-height: 1.1; }
.fila .local { grid-area: local; }
.fila .visitante { grid-area: visita; }
.fila > .gol:nth-of-type(3) { grid-area: gl; }
.fila > .gol:nth-of-type(4) { grid-area: gv; }
.fila .estado { grid-area: est; justify-content: center; align-self: stretch; color: var(--suave); font-size: 20px; }
.fila .local, .fila .visitante { gap: 7px; font-size: 15px; font-weight: 520; line-height: 1.2; padding: 1px 0; }
.fila .escudo { width: 18px; height: 18px; }
.fila .local .escudo { order: -1; }
.fila .nom { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.fila .gol { justify-content: flex-end; font-size: 16.5px; line-height: 1.2; font-weight: 800; font-stretch: 100%; }
.fila .ganador { font-weight: 750; }
.fila.terminado .local:not(.ganador), .fila.terminado .visitante:not(.ganador) { color: var(--suave); }
.fila.terminado:has(.ganador) .gol { color: var(--suave); font-weight: 600; }
.fila.terminado .local.ganador + .gol, .fila.terminado .gol:has(+ .visitante.ganador) { color: var(--tinta); font-weight: 850; }
.fila .hora small { font-weight: 500; font-size: 11px; color: var(--suave); white-space: nowrap; }
.fila.terminado .hora { color: var(--suave); font-weight: 650; font-size: 13px; }
.fila.anormal .hora { color: var(--tierra-t); font-size: 13px; }
.fila.incierta .hora { color: var(--aviso-t); }
.fila.en-curso .gol { color: var(--vivo); font-weight: 900; }
.fila.en-curso { box-shadow: inset 4px 0 0 var(--vivo); }
.vivo-txt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--vivo); color: var(--sobre-vivo); font-weight: 800; font-size: 13px; }
.vivo-txt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulso 1.4s infinite; }
.etq-vivo.viejo .vivo-txt::before, .etq-vivo-celda.viejo .vivo-txt::before { animation: none; opacity: .5; }
.etq-vivo-celda.viejo .vivo-txt { background: var(--aviso-borde); color: #1E1530; }
.etq-vivo-celda { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dato-viejo { font-weight: 500; font-size: 10.5px; color: var(--suave); }
@keyframes pulso { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .vivo-txt::before { animation: none; } }
.obs { display: block; padding: 4px 12px; background: var(--aviso); color: var(--aviso-t); font-size: 12px; }
.anteriores summary { padding: 9px 14px; background: var(--sup-2); color: var(--c-t); font-size: 13px; font-weight: 700; cursor: pointer; border-bottom: 1px solid var(--linea); }
.fecha-sub { margin: 0; padding: 7px 14px 5px; background: var(--sup-2); color: var(--suave); font-size: 12px; font-weight: 700; font-stretch: 110%; letter-spacing: .05em; text-transform: uppercase; border-top: 1px solid var(--linea); }
.fecha-sub.fase { background: var(--c-s); color: var(--c-t); font-size: 13px; }

/* Pie del bloque */
.bloque-pie { display: flex; border-top: 1px solid var(--linea); }
.bloque-pie a { flex: 1; padding: 7px 14px; color: var(--c-t); text-decoration: none; font-size: 13.5px; font-weight: 700; }
.bloque-pie a:hover { background: var(--c-s); }
.bloque-pie a.corto { flex: 0 0 auto; border-left: 1px solid var(--linea); }

/* El trapo: un mensaje propio en el lugar donde otros ponen apuestas */
.trapo {
  grid-column: 1 / -1; position: relative; margin: 0 0 16px; padding: 20px 22px 18px; color: #FFFFFF;
  background: #5A20A8; border-radius: 6px; box-shadow: var(--sombra);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-image: linear-gradient(90deg, var(--verde) 0 14%, var(--amarillo) 14% 24%, var(--celeste) 24% 34%, var(--verde) 34% 48%, var(--rosa) 48% 58%, var(--naranja) 58% 68%, var(--verde) 68% 82%, var(--lima) 82% 90%, var(--turquesa) 90%) 1;
}
.bloques > .trapo { margin: 0; }
.trapo::before, .trapo::after { content: ""; position: absolute; top: -13px; width: 10px; height: 18px; border-radius: 5px; background: var(--tinta); }
.trapo::before { left: 18px; } .trapo::after { right: 18px; }
.trapo .rotulo { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 700; font-stretch: 115%; letter-spacing: .1em; text-transform: uppercase; color: #E4D3FF; }
.trapo .lema { display: block; margin: 0; font-size: 26px; font-weight: 900; font-stretch: 116%; letter-spacing: -.02em; line-height: 1.05; }
.trapo .bajada { display: block; margin: 8px 0 0; font-size: 14px; color: #F1E8FF; }
.trapo a { color: #FFFFFF; font-weight: 700; }

/* Avisos */
.aviso { margin: 8px 0; padding: 9px 12px; font-size: 13.5px; background: var(--aviso); color: var(--aviso-t); border-left: 4px solid var(--aviso-borde); border-radius: 8px; }
.aviso.error { background: var(--error); color: var(--error-t); border-left-color: var(--error-borde); }
.aviso.info { background: var(--c-s); color: var(--tinta); border-left-color: var(--c); }
.aviso a { color: inherit; font-weight: 700; }
.bloque > .aviso { margin: 0; border-radius: 0; }
.proc { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin: 0 0 8px; font-size: 12px; color: var(--suave); }
.proc a { color: var(--suave); }
.proc b { color: var(--tinta); }
.edad.viejo { color: var(--aviso-t); background: var(--aviso); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.sin-partidos { margin: 14px 2px; font-size: 13.5px; line-height: 1.5; color: var(--suave); }
.sin-partidos a { color: var(--suave); }
.mas { display: block; padding: 9px; color: var(--c-t); text-align: center; text-decoration: none; font-size: 13.5px; font-weight: 700; }

/* ---------- Competición: fechas y tabla ---------- */
.comp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.comp-grid > * { min-width: 0; }
.pestanas { display: none; }
.selector-fechas { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.selector-fechas a, .selector-fechas span { min-width: 32px; padding: 5px 7px; border-radius: 8px; background: var(--sup); color: var(--tinta); text-decoration: none; text-align: center; font-size: 13px; font-weight: 650; border: 1px solid var(--linea); }
.selector-fechas a:hover { border-color: var(--c); }
.selector-fechas span, .selector-fechas a[aria-current="page"] { background: var(--c-t); color: var(--sobre); border-color: var(--c-t); }
.selector-fechas .actual { box-shadow: inset 0 -3px 0 var(--c); }
.nav-fecha { display: grid; grid-template-columns: 48px 1fr 48px; align-items: stretch; background: var(--c-s); border-bottom: 1px solid var(--linea); }
.nav-fecha a, .nav-fecha .vacio-nav { display: flex; align-items: center; justify-content: center; color: var(--c-t); text-decoration: none; font-size: 22px; font-weight: 800; }
.nav-fecha a:hover { background: color-mix(in srgb, var(--c) 22%, var(--sup)); }
.nav-fecha b { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px 5px; font-size: 16px; font-weight: 850; font-stretch: 110%; text-align: center; line-height: 1.1; }
.nav-fecha b small { margin-top: 2px; color: var(--c-t); font-size: 11.5px; font-weight: 650; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--sup); color: var(--tinta); }
table.t caption { padding: 10px 14px; background: var(--c-s); text-align: left; font-weight: 800; font-stretch: 106%; font-size: 15px; border-bottom: 1px solid var(--linea); }
table.t th { padding: 6px 4px; color: var(--suave); font-size: 11.5px; font-weight: 700; text-align: center; letter-spacing: .03em; border-bottom: 1px solid var(--linea-2); }
table.t td { padding: 6px 4px; border-top: 1px solid var(--linea); text-align: center; }
table.t td.eq, table.t th.eq { text-align: left; font-weight: 600; }
table.t td.eq { white-space: nowrap; }
table.t td.pts { font-weight: 850; font-size: 15px; background: var(--c-s); }
table.t td.pos { width: 32px; font-weight: 750; color: var(--suave); }
table.t tr.empatado td.pos { color: var(--aviso-t); }
table.t .n { text-align: right; }
.tabla-scroll { overflow-x: auto; }
.nota-tabla { margin: 0; padding: 8px 14px; color: var(--suave); font-size: 12.5px; line-height: 1.45; border-top: 1px solid var(--linea); }
.nota-tabla.difiere { background: var(--aviso); color: var(--aviso-t); }
.nota-tabla a { color: var(--c-t); }
.progreso { height: 6px; background: var(--sup-2); }
.progreso i { display: block; height: 100%; background: var(--c); }

/* ---------- Ficha de partido: el tanteador ---------- */
.volver { margin: 0 0 12px; }
.volver a { font-weight: 650; text-decoration: none; }
.ficha { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.ficha .comp { padding: 10px 14px; background: var(--c-s); font-weight: 650; font-size: 14px; color: var(--suave); border-bottom: 1px solid var(--linea); }
.ficha .comp a { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta); font-weight: 800; text-decoration: none; }
.ficha .eqs { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; padding: 22px 10px 16px; }
.ficha .eq { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 8px; font-weight: 800; font-stretch: 104%; font-size: 18px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.ficha .tan { min-width: 52px; text-align: center; font-size: 52px; font-weight: 900; font-stretch: 112%; line-height: 1; }
.ficha .tan + .tan { position: relative; margin-left: 30px; }
.ficha .tan + .tan::before { content: "–"; position: absolute; left: -15px; top: 50%; font-weight: 400; color: var(--suave); font-size: 36px; transform: translate(-50%, -55%); }
.ficha.en-curso .tan { color: var(--vivo); }
.ficha .est { padding: 10px 14px 14px; text-align: center; font-size: 14px; color: var(--suave); }
.ficha .est b { color: var(--tinta); }
.ficha.en-curso .est b { color: var(--vivo); }
dl.datos { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; padding: 10px 14px; background: var(--sup); color: var(--tinta); font-size: 13px; }
dl.datos dt { color: var(--suave); }
dl.datos dd { margin: 0; overflow-wrap: anywhere; }
dl.datos a { color: var(--violeta-t); }

/* ---------- Desplegables (diagnóstico técnico en «Acerca») ---------- */
.sesion { background: var(--sup); color: var(--tinta); }
.sesion > summary, .sesion > .ses-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 10px 14px; cursor: pointer; list-style: none; }
.sesion > summary::-webkit-details-marker { display: none; }
.sesion .ses-nombre { font-weight: 800; }
.sesion .ses-hora { font-size: 12.5px; color: var(--suave); }
.sesion .ses-estado { font-size: 12.5px; text-align: right; font-weight: 700; }
.sesion .ses-cuerpo { padding: 0 0 6px; }
.sesion .ver { font-size: 12.5px; color: var(--violeta-t); }
.sesion .ver::after { content: " ▾"; }
.sesion[open] .ver::after { content: " ▴"; }
.etq-vivo { color: var(--vivo); font-weight: 850; }
.etq-final { font-weight: 850; }
.etq-incierto { color: var(--aviso-t); font-weight: 850; }
.leyenda { display: grid; gap: 10px; padding: 14px; font-size: 14px; }
.leyenda > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.leyenda .vivo-txt::before { animation: none; }
.muestra-final { color: var(--suave); font-weight: 650; }
.muestra-viejo { padding: 3px 8px; border-radius: 999px; background: var(--aviso-borde); color: #1E1530; font-weight: 800; font-size: 13px; }
.texto-acerca { padding: 6px 18px; font-size: 15px; line-height: 1.55; }
.texto-acerca a { color: var(--violeta-t); }

/* ---------- Pie ---------- */
.pie { max-width: 1240px; margin: 20px auto 0; padding: 18px 16px 90px; font-size: 12.5px; line-height: 1.5; color: var(--suave); border-top: 1px solid var(--linea); }
.pie p { margin: 4px 0; }
.pie a { color: var(--suave); }

/* ---------- Botón de menú (celular) ---------- */
.boton-menu { display: none; }
.cortina { display: none; }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .cuerpo { grid-template-columns: minmax(0, 1fr); padding: 0 10px 30px; gap: 0; }
  .barra { padding: 10px 10px 6px; gap: 8px 10px; }
  .logo { height: 30px; }
  .secciones { order: 0; flex: 0 1 auto; gap: 4px; }
  .secciones a[data-seccion="fuentes"] { display: none; }
  .secciones a { padding: 4px 11px; font-size: 14px; border-width: 1px; }
  .actualizacion { order: 3; width: 100%; }
  .demo-aviso { margin-bottom: 8px; padding: 0 12px; font-size: 12.5px; }
  .guirnalda { height: 24px; margin: -2px 0 0; background-size: 204px 24px; }
  .columna, .ancha { max-width: none; }
  .dias { gap: 6px; margin-bottom: 10px; }
  .dias > a { min-height: 40px; padding: 6px 12px; font-size: 14px; }
  .dias > span b { font-size: 28px; }
  .dias > span small { margin-top: 3px; font-size: 12.5px; }
  .herramientas-dia { margin-bottom: 10px; }
  .herramientas-dia input { min-height: 40px; padding: 6px 14px; }
  .chips { margin-bottom: 10px; }
  .chips a { padding: 5px 11px 5px 9px; font-size: 13px; }
  .bloques { gap: 12px; }
  .barra { padding-top: 8px; }
  .fila { grid-template-columns: 56px minmax(0, 1fr) 30px; grid-template-areas: "hora local gl" "hora visita gv"; padding-right: 12px; }
  .fila .estado { display: none; }
  .fila .hora { padding-right: 4px; }
  .fila .vivo-txt { padding: 3px 7px; }
  .fila .vivo-txt::before { display: none; }
  .fila .dato-viejo { text-align: center; line-height: 1.05; }
  h1 { font-size: 25px; }
  .comp-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--sup-2); border-radius: 12px; }
  .pestanas button { padding: 9px; background: transparent; color: var(--tinta); font: inherit; font-weight: 700; border: 0; border-radius: 9px; cursor: pointer; }
  .pestanas button[aria-pressed="true"] { background: var(--sup); color: var(--c-t); box-shadow: var(--sombra); }
  .selector-fechas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .selector-fechas::-webkit-scrollbar { display: none; }
  .selector-fechas a, .selector-fechas span { flex: none; min-width: 38px; padding: 8px; font-size: 14px; }
  table.t .opc { display: none; }
  .comp-grid[data-pestana="tabla"] .panel-fixture, .comp-grid[data-pestana="fixture"] .panel-tabla { display: none; }
  .ficha .tan { font-size: 44px; min-width: 44px; }
  .ficha .eq { font-size: 16px; }
  .trapo .lema { font-size: 22px; }
  .manifiesto { padding: 20px 16px 10px; font-size: 16px; }
  .manifiesto h2 { font-size: 28px; }
  /* Lateral como cortina */
  .lateral { display: none; position: fixed; z-index: 30; inset: 0 18% 0 0; overflow-y: auto; padding: 14px 10px 28px; border: 0; border-radius: 0 18px 18px 0; font-size: 16px; }
  .lateral a { padding: 10px; }
  body.menu-abierto .lateral { display: block; }
  body.menu-abierto .cortina { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(18, 14, 28, .5); }
  .boton-menu { display: flex; align-items: center; gap: 7px; order: 1; margin-left: auto; position: relative; z-index: 35; min-height: 38px; padding: 5px 14px; background: var(--violeta-t); color: var(--sobre); font: inherit; font-weight: 750; font-size: 15px; border: 0; border-radius: 999px; cursor: pointer; }
  .boton-menu::before { content: "☰"; font-size: 17px; line-height: 1; }
  body.menu-abierto .boton-menu::before { content: "✕"; }
}
@media (max-width: 380px) {
  h1 > .bandera ~ .bandera { display: none; }
  .fila { grid-template-columns: 50px minmax(0, 1fr) 26px; column-gap: 5px; }
  .fila .local, .fila .visitante { font-size: 14px; gap: 6px; }
  .escudo { width: 16px; height: 16px; }
  .fila .hora { font-size: 13px; }
  .vivo-txt { padding: 2px 6px; font-size: 12px; }
  .dias > a { padding: 8px 10px; font-size: 13.5px; }
  .dias > span b { font-size: 24px; white-space: nowrap; }
  .dias > span small { font-size: 12px; }
  table.t { font-size: 13px; }
}

/* Escudos */
.escudo { width: 20px; height: 20px; object-fit: contain; flex: none; }
/* Club sin escudo verificado: un círculo vacío en la misma caja (no desalinea el renglón). */
.escudo.sin-escudo { display: inline-block; background: radial-gradient(circle closest-side, transparent 0 calc(66% - 1px), var(--linea-2) 66% 78%, transparent calc(78% + 1px)); }
table.t td.eq .escudo { width: 18px; height: 18px; margin-right: 7px; vertical-align: -4px; }
.escudo.grande, .escudo.sin-escudo.grande { width: 48px; height: 48px; }
.creditos { max-width: 860px; margin: 0 auto; padding: 10px; }
.creditos table.t { table-layout: fixed; }
.creditos table.t th:first-child { width: 28px; }
.creditos table.t td { overflow-wrap: anywhere; vertical-align: middle; }
.creditos table.t a { color: var(--violeta-t); }
.creditos table.t small, .creditos small { color: var(--suave); font-weight: 400; }

/* Tablas de posiciones: selector, marcas de clasificación y leyenda */
.selector-tablas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.selector-tablas button { padding: 6px 12px; background: var(--sup); color: var(--tinta); font: inherit; font-size: 13.5px; font-weight: 650; border: 1px solid var(--linea-2); border-radius: 999px; cursor: pointer; }
.selector-tablas button:hover { border-color: var(--c); }
.selector-tablas button[aria-pressed="true"] { background: var(--c-t); border-color: var(--c-t); color: var(--sobre); }
table.t tr.marcada td.pos { box-shadow: inset 5px 0 0 var(--marca); }
table.t tr.marcada td.eq { background-image: linear-gradient(90deg, color-mix(in srgb, var(--marca) 30%, transparent), transparent 70%); }
.leyenda-tabla { margin: 0; padding: 8px 14px 6px; list-style: none; color: var(--suave); font-size: 12.5px; border-top: 1px solid var(--linea); }
.leyenda-tabla li { margin: 3px 0; }
.leyenda-tabla i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -2px; border-radius: 3px; }
table.t td.num { color: var(--suave); font-size: 12px; width: 26px; }
.detalles { margin: 16px 0 0; font-size: 13px; color: var(--suave); }
.detalles summary { cursor: pointer; }
.detalles dl.datos { margin-top: 8px; border-radius: 10px; border: 1px solid var(--linea); }
@media (max-width: 820px) {
  .selector-tablas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .selector-tablas::-webkit-scrollbar { display: none; }
  .selector-tablas button { flex: none; padding: 8px 12px; font-size: 14px; }
}

/* ---------- Definición editorial («Acerca») ---------- */
.manifiesto { position: relative; padding: 26px 24px 16px; font-size: 17px; line-height: 1.55; overflow: hidden; }
.manifiesto::before { content: ""; display: block; width: min(100%, 600px); aspect-ratio: 720 / 150; margin: -14px auto 16px; background: url("/guirnalda-letras.svg") no-repeat center top / contain; }
.manifiesto h2 { margin: 0 0 14px; font-size: 34px; font-weight: 900; font-stretch: 118%; line-height: 1.02; letter-spacing: -.03em; color: var(--violeta-t); }
.manifiesto p { margin: 0 0 12px; max-width: 62ch; }
.manifiesto b { color: var(--tinta); }

/* ---------- Buscar equipo e ir a una fecha ---------- */
.herramientas-dia { display: flex; gap: 8px; margin: 0 0 12px; }
.herramientas-dia .filtro { flex: 1; min-width: 0; }
.herramientas-dia input { width: 100%; min-height: 42px; padding: 8px 14px; font: inherit; font-size: 15px; color: var(--tinta); background: var(--sup); border: 1.5px solid var(--linea-2); border-radius: 999px; }
.herramientas-dia input::placeholder { color: var(--suave); }
.herramientas-dia .elegir-fecha { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--suave); white-space: nowrap; }
.herramientas-dia .elegir-fecha input { width: auto; }
a.accion { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Seguir y compartir ---------- */
.acciones { display: flex; gap: 8px; margin: -2px 0 14px; flex-wrap: wrap; }
.accion { min-height: 38px; padding: 7px 15px; font: inherit; font-size: 14px; font-weight: 700; color: var(--tinta); background: var(--sup); border: 1.5px solid var(--linea-2); border-radius: 999px; cursor: pointer; }
.accion:hover { border-color: var(--c); color: var(--c-t); }
.accion.seguir[aria-pressed="true"] { background: var(--c-t); border-color: var(--c-t); color: var(--sobre); }
.ficha + .acciones, .ficha ~ .acciones { margin-top: 12px; justify-content: center; }

/* ---------- Sin JavaScript ---------- */
.sin-js { max-width: 640px; margin: 0 auto; }
.sin-js p { line-height: 1.5; }
.sin-js-enlaces { columns: 2; padding-left: 20px; line-height: 1.9; }
@media (max-width: 420px) { .sin-js-enlaces { columns: 1; } }

/* Cobertura que no podemos comprobar y señales de problemas concretos: discretas, sin alarma. */
.nota-cobertura { margin: 8px 2px 12px; font-size: 13px; line-height: 1.45; color: var(--suave); }
.nota-cobertura a { color: var(--suave); }
.minuto { font-variant-numeric: tabular-nums; }
.senal { margin: 6px 2px 10px; font-size: 13px; line-height: 1.45; color: var(--suave); }
.bloque > .senal { margin: 0; padding: 7px 14px; border-top: 1px solid var(--linea); }

/* Teléfonos angostos (≤380 px): al final, para que nada posterior lo pise. */
@media (max-width: 380px) {
  .barra { gap: 6px 8px; }
  .logo { height: 25px; }
  .ico-deporte { display: none; }
  .secciones a { padding: 4px 9px; font-size: 13.5px; }
  .boton-menu { padding: 5px 12px; font-size: 14px; min-height: 36px; }
  .herramientas-dia { flex-wrap: wrap; }
  .herramientas-dia .filtro { flex: 1 1 100%; }
}
@media (max-width: 340px) { .secciones { display: none; } }
