/* territoriorfaf · web pública
   Estética plana: sin bordes redondeados ni sombras. Anton para titulares,
   Archivo para texto. */

:root {
  --negro: #0A0A0A;
  --fondo: #F2F1EC;
  --verde: #7BD264;
  --verde-txt: #2E8B2E;
  --azul: #1C6FE0;
  --amarillo: #E0B527;
  --amarillo-txt: #9A7A00;
  --rojo: #E03127;
  --anton: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --archivo: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cat-dh { --c: var(--azul); --cf: #fff; --ct: var(--azul); }
.cat-a { --c: var(--verde); --cf: var(--negro); --ct: var(--verde-txt); }
.cat-b { --c: var(--amarillo); --cf: var(--negro); --ct: var(--amarillo-txt); }
.cat-negro { --c: var(--negro); --cf: #fff; --ct: var(--negro); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Red de seguridad: si algo fuera más ancho que la pantalla, se recorta en vez de encoger la página en el iPhone. */
html, body { overflow-x: clip; }
body { margin: 0; background: var(--fondo); color: #111; font-family: var(--archivo); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.sin-barra { scrollbar-width: none; }
.sin-barra::-webkit-scrollbar { display: none; }
.gris { color: #777 !important; }
.c { text-align: center; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }

/* ---------- Cabecera ---------- */

#cabecera { position: sticky; top: 0; z-index: 20; min-height: 76px; background: var(--negro); color: #fff; border-bottom: 4px solid var(--verde); }
.cab-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 20px; }
.marca { display: flex; align-items: center; gap: 12px; flex: none; }
.marca img { width: 44px; height: 44px; }
.marca-txt { font: 400 30px/1 var(--anton); letter-spacing: .5px; }
.marca-txt b, .pie-marca b { color: var(--verde); font-weight: 400; }
.nav { display: flex; align-items: stretch; align-self: stretch; justify-content: flex-end; gap: 4px; flex: 1; min-width: 0; }
.nav a { display: flex; align-items: center; padding: 0 12px; font: 700 13px var(--archivo); letter-spacing: .5px; white-space: nowrap; color: #bbb; }
.nav a:hover { color: #fff; }
.nav a.on { color: var(--verde); box-shadow: inset 0 -4px 0 var(--verde); }
.nav .corto { display: none; }
.nav .nav-voto { color: var(--verde); gap: 8px; }
.nav .nav-voto::before { content: ""; width: 8px; height: 8px; background: var(--verde); animation: latido 1.6s ease-in-out infinite; }
.nav .nav-voto:hover { color: #fff; }
@keyframes latido { 50% { opacity: .25; } }
/* Competiciones: al pasar por encima (o con el teclado) se abren los seis grupos */
.nav-comp { position: relative; display: flex; }
.nav-comp > a::after { content: ""; width: 6px; height: 6px; margin: -4px 0 0 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav-drop { position: absolute; top: 100%; left: 0; z-index: 30; width: max-content; display: none; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: var(--negro); border-top: 4px solid var(--verde); box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.nav-comp:hover .nav-drop, .nav-comp:focus-within .nav-drop { display: flex; }
.nd-cat { display: grid; grid-template-columns: 170px auto; align-items: center; gap: 14px; }
.nd-tit, .mm-tit { display: flex; align-items: center; gap: 8px; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #fff; white-space: nowrap; }
.nd-gs, .mm-gs { display: flex; flex-wrap: wrap; gap: 6px; }
.nav .nd-gs a { padding: 8px 11px; white-space: nowrap; border: 2px solid var(--c); color: #fff; font: 800 11px var(--archivo); letter-spacing: 1px; box-shadow: none; }
.nav .nd-gs a:hover, .nav .nd-gs a.on { background: var(--c); color: var(--cf); }
.btn-ig { flex: none; border: 2px solid var(--verde); color: var(--verde); font: 700 12px var(--archivo); letter-spacing: 1.5px; padding: 9px 14px; white-space: nowrap; }
.btn-ig:hover { background: var(--verde); color: var(--negro); }

/* ---------- Barra de resultados ---------- */

#ticker { background: #fff; border-bottom: 1px solid #ddd; min-height: 59px; }
.ticker-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; gap: 20px; }
.tk-lista { display: flex; overflow-x: auto; flex: 1; min-width: 0; border-left: 1px solid #e4e4e4; }
.tk-m { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 16px; border-right: 1px solid #eee; }
.tk-m:hover { background: #f6f6f2; }
.tk-eq { display: flex; align-items: center; gap: 8px; font: 500 12px var(--archivo); white-space: nowrap; }
.tk-eq .gana { font-weight: 800; }
.tk-eq img { width: 18px; height: 18px; object-fit: contain; }
.tk-eq b { margin-left: auto; font: 400 15px var(--anton); padding-left: 10px; }
.tk-vacio { align-self: center; padding: 0 16px; font: 600 12px var(--archivo); color: #777; }

/* ---------- Estructura ---------- */

main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 72px; display: flex; flex-direction: column; gap: 44px; min-height: 60vh; }
.seccion { display: flex; flex-direction: column; gap: 24px; }
.h-grande { font: 400 clamp(48px, 7vw, 84px)/1 var(--anton); }
.raya { border-bottom: 4px solid var(--negro); padding-bottom: 10px; }
.vacio { background: #fff; padding: 16px 18px; font: 600 14px var(--archivo); color: #666; }
.aviso { background: #fff; border-left: 6px solid var(--rojo); padding: 18px 20px; font: 600 15px var(--archivo); }
.cargando { height: 240px; background: linear-gradient(90deg, #e9e8e2 0%, #f6f5f0 50%, #e9e8e2 100%); background-size: 200% 100%; animation: brillo 1.2s linear infinite; }
@keyframes brillo { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cargando, .nav .nav-voto::before { animation: none; } }

/* Fotos */
.foto-box { position: relative; display: block; background: #ddd; overflow: hidden; }
.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.foto-vacia { background: #ddd url(../img/logo.png) center / 30% auto no-repeat; opacity: .5; }

.etq { align-self: flex-start; background: var(--c); color: var(--cf); font: 800 12px var(--archivo); letter-spacing: 1.5px; padding: 5px 10px; }
.kicker { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: var(--ct); }
.cuadro { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--c); }
.cuadro.grande { width: 14px; height: 14px; }

/* ---------- Portada ---------- */

.dest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }
/* El texto va abajo y en su sitio (no superpuesto en absoluto): si el titular es largo, la caja crece */
.lead { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; background: var(--negro); color: #fff; overflow: hidden; }
.lead .foto-vacia { background-color: var(--negro); opacity: .25; }
.lead-txt { position: relative; padding: 120px 28px 28px; background: linear-gradient(transparent, rgba(0, 0, 0, .92) 45%); display: flex; flex-direction: column; gap: 12px; }
.lead-tit { font: 400 clamp(36px, 4.6vw, 60px)/1.02 var(--anton); text-wrap: balance; }
.lead-ent { font: 500 17px/1.45 var(--archivo); color: #ddd; max-width: 640px; text-wrap: pretty; }
.laterales { display: flex; flex-direction: column; gap: 14px; }

.tarjeta { background: #fff; display: flex; flex-direction: column; }
.tarjeta:hover, .eq:hover, .mini:hover, .eq-not:hover { box-shadow: 0 0 0 2px var(--negro); }
.tarjeta .foto-box { aspect-ratio: 16 / 10; }
.tarjeta-txt { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.tarjeta-tit { font: 400 24px/1.08 var(--anton); text-wrap: balance; }
.tarjeta-g .tarjeta-tit { font-size: 26px; }
.tarjeta-ent { font: 500 14px/1.45 var(--archivo); color: #555; text-wrap: pretty; }

.lat { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; flex: 1; }
.lat .foto-box { aspect-ratio: auto; min-height: 130px; }
.lat-txt { padding: 14px 14px 14px 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.lat-tit { font: 400 24px/1.08 var(--anton); text-wrap: balance; }
.lat-fecha { font: 600 12px var(--archivo); color: #777; }

.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 32px; align-items: start; }
.bloques { display: flex; flex-direction: column; gap: 44px; }
.bloque { display: flex; flex-direction: column; gap: 18px; }
.bloque-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 4px solid var(--c); padding-bottom: 8px; }
.bloque-cab h2 { font: 400 38px/1 var(--anton); }
.btn-cat { flex: none; font: 800 12px var(--archivo); letter-spacing: 1.5px; background: var(--c); color: var(--cf); padding: 6px 10px; white-space: nowrap; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }

.lateral { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.caja { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.caja-tit { font: 400 26px var(--anton); }
.caja-tit.raya { border-bottom-width: 3px; padding-bottom: 8px; margin-bottom: 6px; }

.pj { background: var(--negro); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pj-meta { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: var(--verde); }
.pj-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; }
.pj-eq { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 12px var(--archivo); text-align: center; }
.pj-eq img { width: 70px; height: 70px; object-fit: contain; }
.pj-x { font: 400 26px var(--anton); color: var(--verde); }
.btn-verde { background: var(--verde); color: var(--negro); font: 800 12px var(--archivo); letter-spacing: 1.5px; padding: 12px; text-align: center; }

/* Partidos de la jornada (uno por grupo) */
.pjs { gap: 14px; }
.pjs-cat { display: flex; flex-direction: column; }
.pjs-cat .pc-cab { padding: 0 0 6px; }
.pjf { border-top: 1px solid #262626; padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.pjf-meta { display: flex; justify-content: space-between; gap: 8px; font: 800 10px var(--archivo); letter-spacing: 1.5px; color: #999; }
.pjf-meta a { color: var(--verde); white-space: nowrap; }
.pjf-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.pjf-eq { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 13px/1.2 var(--archivo); }
.pjf-eq.v { justify-content: flex-end; text-align: right; }
.pjf-eq:hover { color: var(--verde); }
.pjf-eq img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.pjf-x { font: 400 18px var(--anton); color: var(--verde); }

/* Votación «¿Quién gana?» (la rellena web.js) */
.pjs-sub { margin: -6px 0 0; font: 600 13px/1.4 var(--archivo); color: #aaa; }
.voto { display: flex; flex-direction: column; gap: 8px; }
.voto-tit { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: var(--verde); }
.voto-ops { display: grid; gap: 6px; }
.voto-op { --pct: 0%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; background: linear-gradient(90deg, rgb(123 210 100 / .28) var(--pct), transparent var(--pct)) #161616; border: 1px solid #3a3a3a; color: #fff; font: 700 13px var(--archivo); text-align: left; cursor: pointer; transition: border-color .2s; }
.voto-op:hover:not(:disabled) { border-color: var(--verde); }
.voto-op:disabled { cursor: default; }
.voto-op.mio { border-color: var(--verde); background: linear-gradient(90deg, rgb(123 210 100 / .6) var(--pct), transparent var(--pct)) #161616; }
.voto-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voto-pct { flex: none; font: 400 18px var(--anton); color: var(--verde); }
.voto-pct:empty { display: none; }
.voto-op.mio .voto-pct { color: #fff; }
.voto-info { font: 600 12px/1.4 var(--archivo); color: #999; min-height: 1.4em; }
.voto.cerrada .voto-op { opacity: .85; }
.voto.enviando { opacity: .6; pointer-events: none; }
.voto-c .voto-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.voto-c .voto-op { flex-direction: column; align-items: stretch; justify-content: center; gap: 1px; padding: 7px 6px; font-size: 11px; text-align: center; }
.voto-c .voto-t { display: block; }
.voto-c .voto-pct { font-size: 15px; }
.voto-c .voto-info { font-size: 11px; }
.btn-ig-voto { align-self: center; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #aaa; padding: 4px; }
.btn-ig-voto:hover { color: var(--verde); }

.pc-cat, .inv-cat { display: flex; flex-direction: column; margin-top: 8px; }
.pc-cab { display: flex; align-items: center; gap: 8px; padding: 4px 0 2px; font: 800 11px var(--archivo); letter-spacing: 1.5px; }
.pc-fila { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; }
.pc-fila:hover .pc-n { color: var(--verde-txt); }
.pc-fila img { width: 32px; height: 32px; object-fit: contain; }
.pc-txt { display: flex; flex-direction: column; min-width: 0; }
.pc-n { font: 700 14px var(--archivo); }
.pc-s { font: 600 11px var(--archivo); color: #777; letter-spacing: 1px; }
.pc-g { font: 400 26px var(--anton); }
.caja-inv { gap: 12px; }
.caja-inv .inv-cat { gap: 8px; margin-top: 0; }
.inv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inv-grid a { display: block; min-width: 0; aspect-ratio: 1; padding: 6px; border: 2px solid var(--c); }
.inv-grid a:hover { background: #f6f6f2; }
.inv-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }


/* ---------- Noticias ---------- */

.tit-pag { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 4px solid var(--negro); padding-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 12px; font: 800 12px var(--archivo); letter-spacing: 1.5px; cursor: pointer; background: transparent; color: var(--negro); border: 2px solid var(--negro); }
.chip.on { background: var(--negro); color: var(--verde); }
.rejilla-n { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.rejilla-n > .cargando, .rejilla-n > .vacio { grid-column: 1 / -1; }
.btn-mas { align-self: center; background: var(--negro); color: #fff; border: 0; padding: 14px 22px; font: 800 13px var(--archivo); letter-spacing: 1.5px; cursor: pointer; }

/* ---------- Noticia ---------- */

.art { max-width: 860px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.volver { align-self: flex-start; font: 800 12px var(--archivo); letter-spacing: 1.5px; color: #777; }
.volver:hover { color: #000; }
.art-tit { font: 400 clamp(44px, 6.5vw, 76px)/1.02 var(--anton); text-wrap: balance; }
.art-ent { margin: 0; font: 600 21px/1.5 var(--archivo); color: #333; text-wrap: pretty; }
.firma { font: 600 13px var(--archivo); color: #777; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px 0; }
/* La foto de la noticia se ve entera (las de Instagram suelen ser verticales); lo que sobra a los
   lados se rellena con la misma foto difuminada. */
.art-foto { position: relative; overflow: hidden; display: flex; justify-content: center; background: var(--negro); }
.art-foto .foto { position: relative; inset: auto; width: auto; max-width: 100%; height: auto; max-height: min(80vh, 760px); object-fit: contain; }
.art-foto-fondo { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.5); }
/* Foto con su autor debajo (si no es nuestra) */
.art-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.art-foto-pie { align-self: flex-end; font: 600 12px var(--archivo); color: #777; }
.cuerpo { display: flex; flex-direction: column; gap: 18px; }
.cuerpo p { margin: 0; font: 500 19px/1.7 var(--archivo); color: #222; text-wrap: pretty; }
.cuerpo a { color: var(--verde-txt); text-decoration: underline; }
/* Títulos dentro de la noticia (## en el texto) */
.cuerpo-tit { margin: 12px 0 -4px; font: 400 clamp(30px, 4.2vw, 44px)/1.05 var(--anton); text-wrap: balance; }
/* Otros medios citados en la noticia */
.fuentes { display: flex; flex-direction: column; gap: 6px; background: #fff; padding: 14px 20px; border-left: 4px solid var(--c, var(--negro)); }
.fuentes-t { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #555; }
.fuentes p { margin: 0; font: 500 15px/1.55 var(--archivo); color: #333; }
.fuentes a { color: var(--verde-txt); font-weight: 700; text-decoration: underline; }
.rel { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: #fff; padding: 16px 20px; }
.rel a { display: flex; align-items: center; gap: 10px; padding-right: 14px; font: 700 14px var(--archivo); }
.rel a:hover { color: var(--verde-txt); }
.rel img { width: 40px; height: 40px; object-fit: contain; }
.mas { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--negro); padding-top: 14px; }
.mas-tit { font: 400 28px var(--anton); }
.mas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.mini { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--c); }
.mini-tit { font: 400 22px/1.1 var(--anton); }

/* Aviso legal y cookies */
.legal .art-tit { font-size: clamp(40px, 6vw, 68px); }
.legal .cuerpo { gap: 14px; }
.legal .cuerpo h2 { font: 400 28px/1.1 var(--anton); margin-top: 18px; }
.legal .cuerpo p, .legal .cuerpo li { font: 500 17px/1.65 var(--archivo); color: #222; }
.legal .cuerpo ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.completar { background: #FFE58A; color: #5a4500; padding: 0 4px; font-weight: 700; }

/* ---------- Competición ---------- */

.dos.comp { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 28px; }
.comp-main { display: flex; flex-direction: column; gap: 20px; }
.chip-g { padding: 8px 12px; font: 800 12px var(--archivo); letter-spacing: 1.5px; border: 2px solid var(--c); color: var(--negro); }
.chip-g.on { background: var(--c); color: var(--cf); }
.comp-cab { display: flex; flex-direction: column; gap: 10px; border-bottom: 4px solid var(--c); padding-bottom: 12px; }
.comp-sub { font: 800 13px var(--archivo); letter-spacing: 2px; color: #555; }
.comp-cab .h-grande { line-height: 1.08; font-size: clamp(44px, 7vw, 84px); }
.pestanas { display: flex; background: var(--negro); }
.pestana { flex: 1; text-align: center; padding: 14px 10px; font: 800 13px var(--archivo); letter-spacing: 1.5px; cursor: pointer; background: transparent; color: #fff; border: 0; }
.pestana.on { background: var(--c); color: var(--cf); }
.filas { display: flex; flex-direction: column; gap: 6px; }

.res { background: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 16px; }
.res-l, .res-v { display: flex; align-items: center; gap: 10px; font: 700 15px var(--archivo); }
.res-l { justify-content: flex-end; text-align: right; }
.res-l:hover, .res-v:hover { color: var(--verde-txt); }
.res img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.marcador { font: 400 28px var(--anton); text-align: center; background: var(--negro); color: #fff; padding: 4px 0; }

.tabla { background: #fff; display: flex; flex-direction: column; }
.cls { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px 60px 60px; gap: 8px; align-items: center; padding: 8px 14px; border-left: 6px solid transparent; border-bottom: 1px solid #eee; }
a.cls:hover { background: #f6f6f2; }
.cls-cab { padding: 10px 14px; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #fff; background: var(--negro); border-left-color: var(--negro); }
.cls-p { font: 400 22px var(--anton); }
.cls-e { display: flex; align-items: center; gap: 10px; min-width: 0; font: 700 15px var(--archivo); }
.cls-e img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.cls .gris { font: 600 15px var(--archivo); color: #555 !important; }
.cls-pts { font: 400 24px var(--anton); }
.leyenda { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px; font: 600 13px var(--archivo); color: #444; }
.leyenda > span { display: flex; align-items: center; gap: 8px; }
.leyenda .cuadro { width: 12px; height: 12px; }

.gol { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; padding: 12px 16px; }
.gol-p { font: 400 24px var(--anton); color: #999; }
.gol img { width: 40px; height: 40px; object-fit: contain; }
.gol-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gol-n { font: 700 17px var(--archivo); }
.gol-s { font: 500 13px var(--archivo); color: #666; }
.gol-g { font: 400 36px var(--anton); }
a.gol:hover .gol-n { color: var(--verde-txt); }
.gol-g small { display: block; margin-top: 2px; font: 800 10px var(--archivo); letter-spacing: 1px; color: #666; text-align: right; }
.gol-ta, .gol-tr { display: flex; align-items: center; gap: 10px; }
.gol-ta::before, .gol-tr::before { content: ''; width: 14px; height: 20px; border-radius: 2px; background: var(--amarillo); }
.gol-tr::before { background: var(--rojo); }
/* Selector de la estadística en JUGADORES */
.rk-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -8px; }
.rk-b { flex: 1 1 auto; padding: 9px 12px; font: 800 12px var(--archivo); letter-spacing: 1.5px; background: #fff; color: var(--negro); border: 0; cursor: pointer; }
.rk-b:hover { background: #ecece6; }
.rk-b.on { background: var(--negro); color: #fff; }

.lateral-comp { gap: 14px; }
.tarjeta-comp .tarjeta-txt { padding: 12px 14px 16px; gap: 6px; }
.tarjeta-comp .tarjeta-tit { font-size: 21px; line-height: 1.1; }

/* ---------- Equipos ---------- */

.seccion-equipos { gap: 40px; }
.eq-grupo { display: flex; flex-direction: column; gap: 14px; }
.eq-cab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eq-cab h2 { font: 400 28px var(--anton); }
.eq-sub { font: 800 12px var(--archivo); letter-spacing: 1.5px; color: #666; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.eq { background: #fff; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 700 12px/1.25 var(--archivo); text-align: center; }
.eq img { width: 58px; height: 58px; object-fit: contain; }

.eq-hdr { background: var(--negro); color: #fff; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px; border-bottom: 6px solid var(--c); }
.eq-hdr > img { width: 140px; height: 140px; object-fit: contain; }
.eq-hdr-txt { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 240px; }
.eq-comp { align-self: flex-start; font: 800 13px var(--archivo); letter-spacing: 2px; color: var(--c); }
.eq-nom { font: 400 clamp(40px, 6vw, 72px)/1.05 var(--anton); }
.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { border: 1px solid #333; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 92px; }
.stat span { font: 800 10px var(--archivo); letter-spacing: 1.5px; color: #999; }
.stat b { font: 400 34px var(--anton); }
.eq-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.eq-col { display: flex; flex-direction: column; gap: 12px; }
.eq-col .caja-tit.raya { margin-bottom: 0; padding-bottom: 6px; }
.ult { background: #fff; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; font: 700 15px var(--archivo); }
.ult .d { text-align: right; }
.ult .marcador { padding: 2px 12px; }
.eq-gol { background: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font: 700 16px var(--archivo); }
.eq-gol b { font: 400 26px/1 var(--anton); }
.eq-not { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--c); }
.eq-not h3 { font: 400 20px/1.1 var(--anton); }
.pl { display: flex; flex-direction: column; gap: 18px; }
.pl .caja-tit.raya { margin-bottom: 0; padding-bottom: 6px; }
.pl-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pl-dato { background: var(--negro); color: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.pl-dato > span { display: flex; align-items: center; gap: 6px; font: 800 10px var(--archivo); letter-spacing: 1.5px; color: #999; }
.pl-dato b { font: 400 38px/1 var(--anton); }
.pl-dato b small { font-size: 22px; color: #777; }
.pl-dato i { font: 600 12px var(--archivo); font-style: normal; color: #aaa; }
.pl-linea { display: flex; flex-direction: column; gap: 10px; }
.pl-linea h3 { display: flex; align-items: center; gap: 10px; font: 400 22px var(--anton); }
.pl-linea h3 small { font: 800 12px var(--archivo); color: #888; }
.pl-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.ficha { background: #fff; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--c); }
.ficha-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 38px; }
.ficha-nom { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ficha-nom b { font: 700 16px var(--archivo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-nom small { font: 500 12px var(--archivo); color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-gol { flex: none; display: flex; flex-direction: column; align-items: center; font: 800 9px var(--archivo); letter-spacing: 1px; color: var(--ct); }
.ficha-gol b { font: 400 30px/1 var(--anton); }
.ficha-barra { display: flex; height: 6px; background: #eee; }
.ficha-barra i { background: var(--c); }
.ficha-barra i + i { background: color-mix(in srgb, var(--c) 35%, #fff); }
.ficha-datos { display: flex; align-items: flex-end; gap: 20px; }
.fd { display: flex; flex-direction: column; gap: 3px; }
.fd small { font: 800 9px var(--archivo); letter-spacing: 1.2px; color: #999; }
.fd b { font: 400 21px/1 var(--anton); }
.ficha-tj { margin-left: auto; display: flex; gap: 10px; padding-bottom: 2px; }
.tj { display: inline-flex; align-items: center; gap: 5px; font: 800 14px var(--archivo); }
.tj::before { content: ''; width: 10px; height: 14px; border-radius: 2px; background: var(--amarillo); }
.tj-r::before { background: var(--rojo); }
.pl-dato .tj::before { width: 8px; height: 11px; }
.pl-sin { margin: 0; font: 600 13px/1.6 var(--archivo); color: #666; }
.pl-sin b { font: 800 10px var(--archivo); letter-spacing: 1.5px; color: #999; margin-right: 10px; }
.pl-nota { font: 500 12px/1.5 var(--archivo); color: #666; }

/* ---------- Nuestra gente ---------- */

.gente-cab { display: flex; flex-direction: column; gap: 6px; }
.gente-sub { margin: 0; max-width: 560px; font: 600 15px/1.45 var(--archivo); color: #555; }
.gente-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.gente-grid > .cargando, .gente-grid > .vacio { grid-column: 1 / -1; }
.gente-t { background: #fff; display: flex; flex-direction: column; border-bottom: 4px solid var(--negro); min-width: 0; }
.gente-t .foto-box, .gente-d .foto-box, .per-foto { aspect-ratio: 4 / 5; }
.gente-txt { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.gente-t .kicker { color: var(--verde-txt); }
.gente-nom { font: 400 26px/1.05 var(--anton); }
.gente-eq { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 13px var(--archivo); color: #555; }
.gente-eq img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.gente-eq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gente-t:hover, .gente-d:hover { box-shadow: 0 0 0 2px var(--negro); }

.gente-d { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--negro); color: #fff; }
.gente-d-txt { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(18px, 3vw, 32px); min-width: 0; }
.gente-d .kicker { color: var(--verde); }
.gente-d-nom { font: 400 clamp(32px, 4vw, 48px)/1 var(--anton); }
.gente-d .gente-eq { color: #bbb; }
.gente-d-ent { font: 500 15px/1.5 var(--archivo); color: #ddd; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gente-d-mas { margin-top: 4px; font: 800 12px var(--archivo); letter-spacing: 1.5px; color: var(--verde); }

.per-cab { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--negro); color: #fff; border-bottom: 6px solid var(--verde); }
.per-txt { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(20px, 3.5vw, 40px); min-width: 0; }
.per-kicker { font: 800 12px var(--archivo); letter-spacing: 2px; color: var(--verde); }
.per-nom { font: 400 clamp(40px, 6vw, 68px)/1.02 var(--anton); text-wrap: balance; overflow-wrap: anywhere; }
.per-eq { align-self: flex-start; display: flex; align-items: center; gap: 10px; font: 700 15px var(--archivo); color: #ddd; }
a.per-eq:hover { color: var(--verde); }
.per-eq img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.per-datos { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
.per-datos dt { font: 800 10px var(--archivo); letter-spacing: 1.5px; color: #999; }
.per-datos dd { margin: 2px 0 0; font: 700 16px var(--archivo); }
.per-num { display: flex; gap: 8px; flex-wrap: wrap; }
.per-temp { margin-top: -8px; font: 600 11px var(--archivo); color: #888; }
.qa { display: flex; flex-direction: column; gap: 26px; }
.qa-item { display: flex; flex-direction: column; gap: 8px; }
.qa-p { font: 400 26px/1.15 var(--anton); border-left: 5px solid var(--verde); padding-left: 12px; text-wrap: balance; }
.qa-item .cuerpo p:first-child { margin-top: 0; }
.gente-grid-mas { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

@media (max-width: 600px) {
  .gente-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gente-txt { padding: 10px 10px 12px; gap: 4px; }
  .gente-nom { font-size: 20px; }
  .gente-eq { font-size: 12px; }
  .gente-eq img { width: 20px; height: 20px; }
  .gente-d-txt { padding: 14px; gap: 6px; }
  .gente-d-nom { font-size: 26px; }
  .gente-d-ent { -webkit-line-clamp: 3; font-size: 13px; }
  .per-cab { grid-template-columns: minmax(0, 1fr); }
  .per-foto { aspect-ratio: 1 / 1; }
  .per-txt { gap: 12px; }
  .per-nom { font-size: 38px; }
  .qa { gap: 20px; }
  .qa-p { font-size: 21px; }
}

/* ---------- Pie ---------- */

#pie { background: var(--negro); color: #999; }
.pie-in { max-width: 1280px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; font: 500 14px/1.6 var(--archivo); }
.pie-col { display: flex; flex-direction: column; gap: 6px; }
.pie-col:first-child { gap: 8px; }
.pie-col a:hover { color: var(--verde); }
.pie-marca { font: 400 28px var(--anton); color: #fff; }
.pie-tit { font: 800 12px var(--archivo); letter-spacing: 1.5px; color: #fff; }
.pie-col .verde { color: var(--verde); }
/* Colaboradores: una fila de logos (en claro) debajo de las columnas */
.pie-colab { max-width: 1280px; margin: 0 auto; padding: 0 24px 28px; }
.pie-colab-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 24px; border-top: 1px solid #222; }
.pie-colab-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.pie-colab img { display: block; width: auto; height: 48px; max-width: 150px; object-fit: contain; opacity: .75; transition: opacity .15s; }
.pie-colab a:hover img, .pie-colab a:focus-visible img { opacity: 1; }

/* ---------- Menú móvil y selector de grupo ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-menu { display: none; flex: none; margin-left: auto; width: 44px; height: 44px; padding: 0; background: none; border: 2px solid #333; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.btn-menu span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.btn-menu[aria-expanded="true"] { border-color: var(--verde); }
.btn-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btn-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-movil { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--negro); border-bottom: 4px solid var(--verde); display: flex; flex-direction: column; padding: 4px 0 14px; max-height: calc(100vh - 80px); overflow-y: auto; }
.menu-movil[hidden] { display: none; }
.menu-movil a { padding: 13px 20px; font: 400 26px/1 var(--anton); color: #fff; border-top: 1px solid #1f1f1f; }
.menu-movil a:first-child { border-top: 0; }
.menu-movil a.on { color: var(--verde); box-shadow: inset 5px 0 0 var(--verde); }
.menu-movil .mm-voto { color: var(--verde); }
.mm-comp { display: flex; flex-direction: column; gap: 12px; padding: 13px 20px 16px; border-top: 1px solid #1f1f1f; }
.mm-cab { font: 400 26px/1 var(--anton); color: #fff; }
.mm-cat { display: flex; flex-direction: column; gap: 7px; }
.mm-tit { color: #999; }
.menu-movil .mm-gs a { padding: 9px 12px; border: 2px solid var(--c); font: 800 12px var(--archivo); letter-spacing: 1px; }
.menu-movil .mm-gs a.on { background: var(--c); color: var(--cf); box-shadow: none; }
.menu-movil .menu-ig { margin: 12px 20px 0; border: 2px solid var(--verde); color: var(--verde); font: 700 13px var(--archivo); letter-spacing: 1.5px; text-align: center; padding: 13px; }
/* El grupo se elige con un desplegable en todos los tamaños: con 7 grupos, los botones dejaban poco sitio a los partidos. */
/* Se ve el grupo elegido (.tk-actual) y encima va el desplegable, invisible: así mide lo que el grupo
   elegido y no lo que el nombre más largo («1ª GRANADA»), que en el móvil quitaba sitio a los partidos. */
.tk-sel { display: flex; flex: none; align-items: center; padding: 10px 12px 10px 0; }
.tk-caja { position: relative; display: block; }
.tk-caja::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.tk-actual { display: block; background: var(--negro); color: #fff; font: 800 12px var(--archivo); letter-spacing: 1px; padding: 9px 30px 9px 10px; white-space: nowrap; }
.tk-sel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; cursor: pointer; }
.tk-sel:focus-within .tk-actual { outline: 2px solid var(--verde); outline-offset: 2px; }

/* ---------- Responsive ---------- */

/* La cabecera: etiquetas cortas, sin el botón de Instagram y, más estrecha, el menú ☰ */
@media (max-width: 1279px) {
  .nav .largo { display: none; }
  .nav .corto { display: inline; }
}
@media (max-width: 1150px) {
  .btn-ig { display: none; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .btn-menu { display: flex; margin-left: 0; }
  .btn-buscar { margin-left: auto; }
}
@media (max-width: 900px) {
  .dos, .dos.comp { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: static; }
}
@media (max-width: 860px) {
  .marca-txt { font-size: 24px; }
}
@media (max-width: 600px) {
  main { padding: 14px 12px 48px; gap: 24px; }
  .cab-in, .pie-in, .pie-colab { padding-left: 14px; padding-right: 14px; }
  .ticker-in { padding-left: 12px; padding-right: 0; gap: 0; }
  .cab-in { gap: 12px; height: 60px; }
  #cabecera { min-height: 64px; }
  #ticker { min-height: 0; }
  .tk-m { padding: 7px 12px; }
  .tk-sel { padding-right: 10px; }

  /* Noticia principal: la foto entera arriba y el texto debajo (encima de la foto no cabía) */
  .lead { min-height: 0; }
  .lead > .foto { position: relative; aspect-ratio: 16 / 10; height: auto; }
  .lead-txt { padding: 14px 16px 18px; gap: 8px; background: var(--negro); }
  .lead-tit { font-size: 30px; }
  .lead-ent { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  /* Menos scroll: noticias en filas compactas (foto pequeña + título) */
  .laterales, .rejilla, .rejilla-n, .lateral-comp { gap: 8px; }
  .lat, .tarjeta { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0; }
  .lat .foto-box, .tarjeta .foto-box { aspect-ratio: auto; min-height: 92px; }
  .lat-txt, .tarjeta-txt { padding: 10px 12px; gap: 5px; justify-content: center; }
  .lat-tit, .tarjeta-tit, .tarjeta-g .tarjeta-tit, .tarjeta-comp .tarjeta-tit { font-size: 18px; line-height: 1.1; }
  .tarjeta-ent { display: none; }
  .kicker { font-size: 11px; letter-spacing: 1px; }
  .bloques { gap: 28px; }
  .bloque { gap: 10px; }
  .bloque-cab { padding-bottom: 6px; }
  .btn-cat { font-size: 11px; padding: 5px 8px; }
  .lateral { gap: 14px; }
  .caja, .pj { padding: 16px; }
  .h-grande, .comp-cab .h-grande { font-size: 40px; }
  .seccion { gap: 16px; }
  .art { gap: 16px; }
  .art-tit { font-size: 34px; }
  .art-ent { font-size: 17px; }
  .cuerpo p { font-size: 17px; }
  .eq-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .eq { padding: 12px 8px; }
  .eq img { width: 48px; height: 48px; }
  .eq-gol { padding: 10px 14px; font-size: 15px; }
  .eq-gol b { font-size: 22px; }
  .cls { grid-template-columns: 30px minmax(0, 1fr) 30px 40px 40px; padding-left: 8px; padding-right: 8px; gap: 6px; }
  .res { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); padding: 10px; gap: 8px; }
  .res-l, .res-v { font-size: 13px; }
  .res img { width: 28px; height: 28px; }
  .gol { grid-template-columns: 24px 32px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .gol img { width: 32px; height: 32px; }
  .pestana { padding: 12px 4px; font-size: 11px; letter-spacing: .5px; }
  .eq-hdr { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px 16px; padding: 18px; }
  .eq-hdr > img { width: 72px; height: 72px; }
  .eq-hdr-txt { min-width: 0; gap: 4px; }
  .eq-comp { font-size: 11px; letter-spacing: 1.5px; }
  .eq-nom { font-size: 32px; }
  .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stat { min-width: 0; padding: 8px 10px; }
  .stat b { font-size: 26px; }
  .pl-res { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pl-dato { padding: 10px 12px; }
  .pl-dato b { font-size: 30px; }
  .pl-dato b small { font-size: 18px; }
  .pl-dato i { font-size: 11px; }
  /* En el móvil, dos fichas por fila: el nombre puede ir en dos líneas y las cabeceras, abreviadas */
  .pl-fichas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ficha { padding: 10px 10px 9px; gap: 7px; border-top-width: 3px; }
  .ficha-cab { gap: 6px; min-height: 0; }
  .ficha-nom b { font-size: 14px; line-height: 1.15; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ficha-nom small { font-size: 11px; }
  .ficha-gol { font-size: 8px; }
  .ficha-gol b { font-size: 24px; }
  .ficha-barra { height: 5px; }
  .ficha-datos { gap: 10px; flex-wrap: wrap; }
  .fd small { font-size: 0; letter-spacing: 0; }
  .fd small::after { content: attr(data-c); font-size: 9px; letter-spacing: 1px; }
  .fd b { font-size: 18px; }
  .ficha-tj { gap: 7px; }
  .tj { font-size: 12px; gap: 3px; }
  .tj::before { width: 8px; height: 11px; }
  .bloque-cab h2 { font-size: 28px; }
}

/* ---------- Votar (votar.html: el enlace de las historias de Instagram) ----------
   Arriba, en negro, el marcador (escudos y hora) y la votación 1 X 2 en filas, como una encuesta:
   al votar, cada fila se llena con su porcentaje. Debajo, la previa y el cara a cara. */
@property --pct { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.vt-pag { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.vt { display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 24px; color: #fff; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.6px) 0 0 / 6px 6px, var(--negro); border-top: 6px solid var(--c); }
.vt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.vt-j { font: 800 12px var(--archivo); letter-spacing: 1.5px; color: #999; }

.vt-marc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.vt-eq { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.vt-eq img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 16px rgb(0 0 0 / .6)); }
.vt-eq-n { max-width: 100%; font: 400 28px/1 var(--anton); text-transform: uppercase; overflow-wrap: anywhere; text-wrap: balance; transition: color .2s; }
.vt-eq:hover .vt-eq-n { color: var(--verde); }
.vt-eq-p { font: 800 11px var(--archivo); letter-spacing: 1.2px; color: #999; }
.vt-cen { padding-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vt-cen-g { padding: 6px 12px 5px; background: #000; border: 1px solid #333; font: 400 40px/1 var(--anton); letter-spacing: 1px; color: var(--verde); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vt-cen-p { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #bbb; white-space: nowrap; }
.vt-campo { align-self: center; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; text-align: center; font: 600 13px/1.4 var(--archivo); color: #aaa; }
.vt-campo b { font: 800 11px var(--archivo); letter-spacing: 1.2px; color: var(--verde); white-space: nowrap; }
.vt-campo:hover span { color: #fff; }

.voto-g { gap: 10px; padding-top: 20px; border-top: 1px solid #2a2a2a; }
.vt-pc { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.vt-tit { font: 400 40px/1 var(--anton); }
.vt-estado { margin: 0; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #bbb; }
.vt-estado:empty { display: none; }
.vt-estado b { color: var(--verde); }
.voto-g .voto-ops { grid-template-columns: 1fr; gap: 8px; }
.voto-g .voto-op { position: relative; display: grid; grid-template-columns: 32px 40px minmax(0, 1fr) auto; gap: 12px; min-height: 60px; padding: 8px 16px 8px 10px; border: 2px solid #333; font: 400 22px/1 var(--anton); text-transform: uppercase; background: linear-gradient(90deg, rgb(123 210 100 / .2) var(--pct), transparent var(--pct)) #141414; transition: border-color .2s, transform .15s, --pct .8s cubic-bezier(.16, 1, .3, 1); }
.voto-g .voto-op:active:not(:disabled) { transform: scale(.98); }
.voto-g .voto-op.mio { border-color: var(--verde); background: linear-gradient(90deg, rgb(123 210 100 / .45) var(--pct), transparent var(--pct)) #141414; }
.voto-sig { display: grid; place-items: center; width: 32px; height: 32px; background: #262626; font: 400 18px/1 var(--anton); color: #fff; transition: background .2s, color .2s; }
.voto-g .voto-op.mio .voto-sig { background: var(--verde); color: var(--negro); }
.voto-esc, .voto-dos { width: 40px; height: 40px; }
.voto-esc { object-fit: contain; }
.voto-dos { position: relative; }
.voto-dos img { position: absolute; width: 28px; height: 28px; object-fit: contain; }
.voto-dos img:last-child { right: 0; bottom: 0; }
.voto-g .voto-t { font: inherit; }
.voto-g .voto-op.mio .voto-t::after { content: " ✓"; color: var(--verde); }
.voto-g .voto-pct { font: 400 26px/1 var(--anton); }
.voto-g .voto-info { font-size: 12px; }
.voto-op.acierto { border-color: var(--verde); }
.voto-op.acierto::after { content: "RESULTADO"; position: absolute; top: -9px; right: 12px; padding: 2px 6px; background: var(--verde); color: var(--negro); font: 800 10px var(--archivo); letter-spacing: 1px; }

.vt-sec { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.vt-h { font: 400 28px/1 var(--anton); border-bottom: 3px solid var(--negro); padding-bottom: 8px; }
.vt-previa { font: 500 16px/1.6 var(--archivo); color: #222; }
.vt-previa p { margin: 0 0 12px; }
.vt-previa p:last-child { margin: 0; }
.vt-ficha { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 12px; border-top: 1px solid #eee; }
.vt-ficha div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vt-ficha dt { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #888; }
.vt-ficha dd { margin: 0; font: 700 15px/1.3 var(--archivo); overflow-wrap: anywhere; }

.vt-cara { display: flex; flex-direction: column; }
.vt-cab, .vt-cf { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.vt-cab { padding-bottom: 12px; }
.vt-cab a { min-width: 0; display: flex; align-items: center; gap: 10px; font: 400 20px/1.05 var(--anton); text-transform: uppercase; }
.vt-cab a:last-child { flex-direction: row-reverse; text-align: right; }
.vt-cab a:hover { color: var(--verde-txt); }
.vt-cab img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.vt-cab b { font: 400 16px var(--anton); color: #bbb; }
.vt-cf { padding: 8px 0; border-top: 1px solid #eee; }
.vt-cl { font: 800 11px var(--archivo); letter-spacing: 1.2px; color: #888; text-align: center; }
.vt-cv { justify-self: start; min-width: 48px; padding: 4px 8px 3px; text-align: center; font: 400 24px/1.1 var(--anton); }
.vt-cf > .vt-cv:last-child { justify-self: end; }
.vt-cv.mejor { background: var(--negro); color: var(--verde); }
.vt-cv.peor { color: #aaa; }
.vt-cv small { margin-left: 1px; font: 800 .5em var(--archivo); vertical-align: .9em; }
.vt-ex { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 4px; border-top: 1px solid #eee; }
.vt-ex-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-ex-f > span { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font: 700 14px/1.3 var(--archivo); }
.vt-ex-f > span:last-child { justify-content: flex-end; text-align: right; }
.vt-ex-f small { font: 600 12px var(--archivo); color: #777; }
.vt-r { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; background: #999; color: #fff; font: 800 12px var(--archivo); }
.vt-r-G { background: var(--verde); color: var(--negro); }
.vt-r-P { background: var(--rojo); }

.vt-acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.vt-btn { display: block; padding: 14px; border: 2px solid var(--negro); background: var(--negro); color: var(--verde); font: 800 13px var(--archivo); letter-spacing: 1.5px; text-align: center; cursor: pointer; }
.vt-btn-b { background: transparent; color: var(--negro); }
.vt-btn:hover { box-shadow: 0 0 0 2px var(--verde); }
.vt-intro { margin: 0; font: 600 15px/1.5 var(--archivo); color: #555; }
.vt-mas { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.vt-otros { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.vt-o { background: #fff; border-top: 4px solid var(--c); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.vt-o:hover { box-shadow: 0 0 0 2px var(--negro); }
.vt-o-meta { display: flex; align-items: center; gap: 8px; font: 800 10px var(--archivo); letter-spacing: 1.2px; color: #777; }
.vt-o-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.vt-o-vs b { font: 400 16px var(--anton); color: var(--verde-txt); }
.vt-o-eq { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 13px/1.2 var(--archivo); }
.vt-o-eq:last-child { flex-direction: row-reverse; text-align: right; }
.vt-o-eq img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.vt-o-cta { align-self: flex-end; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: var(--verde-txt); }
@media (max-width: 600px) {
  .vt { padding: 16px 14px 16px; gap: 16px; }
  .vt-marc { gap: 8px; }
  .vt-eq img { width: 76px; height: 76px; }
  .vt-eq-n { font-size: 22px; }
  .vt-eq-p { font-size: 10px; letter-spacing: .8px; }
  .vt-cen { padding-top: 18px; gap: 6px; }
  .vt-cen-g { padding: 5px 8px 4px; font-size: 30px; }
  .vt-cen-p { font-size: 10px; letter-spacing: 1px; }
  .voto-g { padding-top: 16px; }
  .vt-tit { font-size: 34px; }
  .voto-g .voto-op { grid-template-columns: 28px 34px minmax(0, 1fr) auto; gap: 10px; min-height: 56px; padding: 8px 14px 8px 8px; font-size: 20px; }
  .voto-sig { width: 28px; height: 28px; font-size: 16px; }
  .voto-esc, .voto-dos { width: 34px; height: 34px; }
  .voto-dos img { width: 24px; height: 24px; }
  .voto-g .voto-pct { font-size: 24px; }
  .vt-sec { padding: 16px; }
  .vt-h { font-size: 24px; }
  .vt-cab a { gap: 8px; font-size: 17px; }
  .vt-cab img { width: 34px; height: 34px; }
  .vt-cv { min-width: 42px; font-size: 20px; }
  .vt-cf { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .voto-g .voto-op { transition: none; } }

/* ---------- Pantalla de carga (js/intro.js) ----------
   Marcador de estadio: logo, nombre, temporada y tres barras (DH, 1ª, 2ª) que se llenan mientras
   el minuto va de 0' a 90'. Sale una vez por visita y se va subiendo como una persiana. */
html.con-intro { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; color: #fff; background: radial-gradient(circle at 50% 45%, transparent 30%, rgba(0, 0, 0, .6) 100%), radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px) 0 0 / 6px 6px, var(--negro); transition: transform .7s cubic-bezier(.76, 0, .24, 1); }
.intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--verde); }
.intro.fuera { transform: translateY(-100%); }
/* Hasta que llega la tipografía (clase .va) solo se anima el logo */
.intro:not(.va) .intro-marca *, .intro:not(.va) .intro-temp, .intro:not(.va) .intro-marcador, .intro:not(.va) .intro-marcador * { animation-play-state: paused !important; }
.intro-caja { display: flex; flex-direction: column; align-items: center; width: min(520px, 100%); text-align: center; transition: opacity .35s ease, transform .7s cubic-bezier(.76, 0, .24, 1); }
.intro.fuera .intro-caja { opacity: 0; transform: translateY(-40px); }

/* Logo partido en dos con máscaras: el aro entra girando y sigue rodando; el escudo aparece con un rebote */
.intro-logo { position: relative; width: 96px; height: 96px; margin-bottom: 22px; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-aro { -webkit-mask-image: radial-gradient(circle closest-side, transparent 73.5%, #000 74%); mask-image: radial-gradient(circle closest-side, transparent 73.5%, #000 74%); animation: intro-aro 1s cubic-bezier(.16, 1, .3, 1) both, intro-gira 9s linear 1s infinite; }
.intro-escudo { -webkit-mask-image: radial-gradient(circle closest-side, #000 73.5%, transparent 74%); mask-image: radial-gradient(circle closest-side, #000 73.5%, transparent 74%); animation: intro-pop .6s cubic-bezier(.34, 1.56, .64, 1) .35s both; }

.intro-marca { display: flex; justify-content: center; clip-path: inset(-.3em -.2em 0); font: 400 clamp(40px, 11vw, 56px)/1 var(--anton); letter-spacing: .5px; }
.intro-marca span, .intro-marca b { display: block; animation: intro-sube .8s cubic-bezier(.16, 1, .3, 1) .05s both; }
.intro-marca b { color: var(--verde); font-weight: 400; animation-delay: .17s; }
.intro-temp { margin-top: 12px; font: 800 10.5px/1.5 var(--archivo); letter-spacing: 2.5px; color: #8f8f8f; animation: intro-aparece .6s ease .3s both; }

/* El marcador */
.intro-marcador { width: 100%; margin-top: 30px; border: 2px solid #262626; background: #0f0f0f; text-align: left; transition: border-color .3s ease; animation: intro-aparece .6s cubic-bezier(.16, 1, .3, 1) .2s both; }
.intro-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 2px solid #262626; }
.intro-estado { display: flex; align-items: center; gap: 8px; font: 800 11px var(--archivo); letter-spacing: 2px; color: #cfcfcf; }
.intro-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: intro-parpadeo 1s ease-in-out infinite; }
.intro-min { min-width: 2.4ch; font: 400 30px/1 var(--anton); text-align: right; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.intro-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-cat { display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 12px 14px 14px; font: 800 10px/1.3 var(--archivo); letter-spacing: 1.5px; color: #9a9a9a; }
.intro-cat + .intro-cat { border-left: 2px solid #262626; }
.intro-cat i { position: relative; display: block; height: 10px; overflow: hidden; background: #1c1c1c; }
.intro-cat i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .2) 0 6px, transparent 6px 12px), var(--c); transform: scaleX(var(--p, 0)); transform-origin: left; }
.intro.fin .intro-marcador { border-color: var(--verde); }
.intro.fin .intro-min { color: var(--verde); }
.intro.fin .intro-estado { color: #fff; }
.intro.fin .intro-estado::before { animation: none; }

/* «FÚTBOL ANDALUZ · JAÉN Y GRANADA» ya no cabe junto a la temporada en un móvil grande: va debajo. */
@media (max-width: 600px) {
  .intro-sep { display: none; }
  .intro-lugar { display: block; }
}

@media (max-width: 480px) {
  .intro-logo { width: 84px; height: 84px; }
  .intro-temp { font-size: 9.5px; letter-spacing: 2px; }
  .intro-cat { padding: 10px; font-size: 9px; letter-spacing: 1px; }
  .intro-min { font-size: 26px; }
}

@keyframes intro-aro { from { opacity: 0; transform: rotate(-220deg) scale(.5); } }
@keyframes intro-gira { to { rotate: 360deg; } }
@keyframes intro-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes intro-sube { from { transform: translateY(105%); } }
@keyframes intro-aparece { from { opacity: 0; transform: translateY(10px); } }
@keyframes intro-parpadeo { 50% { opacity: .2; } }

/* Calendario: próximo partido y calendario del equipo (ficha de equipo) y jornadas (Competición) */
.prox { background: var(--negro); color: #fff; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 20px 32px; padding: 22px 28px; border-left: 6px solid var(--verde); }
.prox-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.prox-k { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: var(--verde); }
.prox-dia { font: 400 36px/1.05 var(--anton); text-transform: uppercase; }
.prox-hora { background: var(--verde); color: var(--negro); font: 400 28px/1 var(--anton); padding: 6px 12px 4px; }
.prox-hora.sin { background: transparent; color: #ccc; border: 1px solid #444; font: 800 11px var(--archivo); letter-spacing: 1.5px; padding: 8px 10px; }
.prox-lugar { font: 700 13px/1.4 var(--archivo); color: #bbb; }
.prox-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.prox-eq { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; font: 700 14px/1.25 var(--archivo); text-align: center; }
.prox-eq img { width: 80px; height: 80px; object-fit: contain; }
.prox-eq.yo .prox-n { color: var(--verde); }
.prox-eq:hover .prox-n { text-decoration: underline; }
.prox-x { font: 400 28px var(--anton); color: var(--verde); }

.ecal { display: flex; flex-direction: column; gap: 10px; }
.ecal .caja-tit.raya { margin-bottom: 0; padding-bottom: 6px; }
.ecal-lista { display: flex; flex-direction: column; gap: 4px; }
.ecal-f { background: #fff; display: grid; grid-template-columns: 44px 96px 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px; border-left: 5px solid transparent; font: 700 14px var(--archivo); }
.ecal-f[hidden] { display: none; }
a.ecal-f:hover { box-shadow: 0 0 0 2px var(--negro); }
.ecal-fe { display: contents; }
.ecal-j { font: 400 18px var(--anton); }
.ecal-d { font: 800 11px var(--archivo); letter-spacing: 1px; color: #666; white-space: nowrap; }
.ecal-lv { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #ccc; font: 800 11px var(--archivo); color: #555; }
.ecal-desc .ecal-lv { border: 0; }
.ecal-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ecal-r img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.ecal-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecal-desc .ecal-r { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #888; text-transform: uppercase; }
.ecal-res { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.ecal-res b { font: 400 20px/1 var(--anton); }
.ecal-res small { font: 800 10px/1.25 var(--archivo); letter-spacing: 1px; color: #888; text-align: right; white-space: normal; }
.ecal-f.prox-f { background: var(--negro); color: #fff; border-left-color: var(--verde); }
.ecal-f.prox-f .ecal-d, .ecal-f.prox-f .ecal-res small { color: #bbb; }
.ecal-f.prox-f .ecal-lv { border-color: #555; color: #ddd; }
.ecal-f.prox-f .ecal-res b { color: var(--verde); }
.ecal-btn { align-self: flex-start; background: transparent; color: var(--negro); border: 2px solid var(--negro); padding: 10px 16px; font: 800 12px var(--archivo); letter-spacing: 1.5px; cursor: pointer; }
.ecal-btn:hover { background: var(--negro); color: var(--verde); }

.jsel { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 6px; }
.jsel-b { background: var(--negro); color: #fff; border: 0; font: 400 24px var(--anton); cursor: pointer; }
.jsel-b:hover:not(:disabled) { color: var(--verde); }
.jsel-b:disabled { opacity: .25; cursor: default; }
.jsel-c { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; padding: 8px 12px; border-top: 4px solid var(--c); }
.jsel-t { font: 800 12px var(--archivo); letter-spacing: 1.5px; }
.jsel-c select { max-width: 100%; border: 0; background: transparent; color: inherit; font: 400 24px var(--anton); padding: 2px 4px; cursor: pointer; }
.jsel-dia { margin: 0; text-align: center; font: 800 12px var(--archivo); letter-spacing: 1.5px; text-transform: uppercase; color: #666; }
.res-cal { row-gap: 6px; }
.res-cal .hora { text-align: center; border: 2px solid var(--negro); font: 400 24px var(--anton); padding: 3px 0 1px; }
.res-cal .hora.sin { border-color: #ddd; color: #999; font: 800 11px var(--archivo); letter-spacing: 1px; padding: 10px 0; }
.res-meta { grid-column: 1 / -1; text-align: center; font: 700 11px/1.4 var(--archivo); letter-spacing: 1px; color: #777; }
.descansa { background: #fff; padding: 12px 16px; text-align: center; font: 800 12px var(--archivo); letter-spacing: 1.5px; color: #666; }
.descansa a { color: var(--negro); }
.descansa a:hover { color: var(--verde-txt); }

@media (max-width: 600px) {
  .comp .pestana { padding: 12px 2px; font-size: 10px; letter-spacing: 0; }
  .rk-b { padding: 9px 8px; font-size: 11px; letter-spacing: .5px; }
  .gol-g small { font-size: 9px; letter-spacing: .5px; }
  .prox { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; border-left-width: 4px; }
  .prox-dia { font-size: 28px; }
  .prox-hora { font-size: 24px; }
  .prox-eq { font-size: 13px; }
  .prox-eq img { width: 60px; height: 60px; }
  .ecal-f { grid-template-columns: 64px 20px minmax(0, 1fr) auto; gap: 8px; padding: 7px 10px; font-size: 13px; border-left-width: 4px; }
  .ecal-fe { display: flex; flex-direction: column; gap: 1px; }
  .ecal-j { font-size: 15px; line-height: 1.1; }
  .ecal-d { font-size: 9.5px; letter-spacing: .3px; }
  .ecal-r span { white-space: normal; line-height: 1.15; }
  .ecal-res small { max-width: 70px; }
  .ecal-lv { width: 20px; height: 20px; }
  .ecal-r { gap: 8px; }
  .ecal-r img { width: 24px; height: 24px; }
  .ecal-res b { font-size: 18px; }
  .ecal-res small { font-size: 9px; letter-spacing: .5px; }
  .ecal-res .vt-r { width: 20px; height: 20px; font-size: 11px; }
  .jsel { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .jsel-c select { font-size: 20px; }
  .res-cal .hora { font-size: 20px; }
}

/* Racha (últimos 5 partidos): ficha de equipo y clasificación */
.racha { display: inline-flex; align-items: center; gap: 4px; }
.stat-racha .racha { flex: 1; }
/* .stat span pinta de gris todo lo de dentro: las fichas llevan su letra y su color */
.stat-racha .vt-r { width: 26px; height: 26px; font: 800 13px var(--archivo); letter-spacing: 0; color: #fff; }
.stat-racha .vt-r-G { color: var(--negro); }
.ult-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #666; }
.cls-forma { display: none; }
.tabla.con-forma .cls { grid-template-columns: 50px minmax(0, 1fr) 50px 60px 60px 128px; }
.tabla.con-forma .cls-forma { display: flex; justify-content: flex-end; }
.leyenda .cls-forma { color: #777; font-weight: 500; }

@media (max-width: 600px) {
  .stat-racha { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .stat-racha .racha { flex: none; }
  .stat-racha .vt-r { width: 24px; height: 24px; font-size: 12px; }
  .tabla.con-forma .cls { grid-template-columns: 30px minmax(0, 1fr) 30px 40px 40px; }
  .tabla.con-forma .cls-forma { display: none; }
}

/* ---------- Previa del próximo partido (ficha de equipo) ---------- */

.prox-dato { margin-top: -4px; font: 800 11px var(--archivo); letter-spacing: 1px; color: #bbb; }
.prox-eq .racha { gap: 3px; }
.prox-eq .vt-r { width: 18px; height: 18px; font: 800 10px var(--archivo); }
.prox-ida { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid #2a2a2a; text-align: center; font: 800 11px/1.5 var(--archivo); letter-spacing: 1px; color: #bbb; }
.prox-ida b { color: #fff; letter-spacing: .3px; }

/* ---------- Mi equipo ---------- */

.nav a[hidden], .menu-movil a[hidden] { display: none; }
.nav .nav-mio { color: var(--verde); }
.nav .nav-mio:hover { color: #fff; }
.menu-movil .mm-mio { color: var(--verde); }
.btn-mio { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; background: none; border: 2px solid #444; color: #fff; font: 800 12px var(--archivo); letter-spacing: 1.5px; cursor: pointer; }
.btn-mio span { font-size: 16px; line-height: 1; color: var(--verde); }
.btn-mio:hover { border-color: var(--verde); }
.btn-mio.on { background: var(--verde); border-color: var(--verde); color: var(--negro); }
.btn-mio.on span { color: var(--negro); }
.ficha { scroll-margin-top: 110px; }
.ficha-on { animation: ficha-on 2.6s ease-out; }
@keyframes ficha-on { 0%, 45% { box-shadow: 0 0 0 4px var(--verde); } 100% { box-shadow: 0 0 0 4px transparent; } }
.eq-pista { margin: -28px 0 0; font: 500 14px/1.45 var(--archivo); color: #555; }
.eq-pista b { color: #111; white-space: nowrap; }

/* Banda de la portada */
.mio { background: var(--negro); color: #fff; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr) auto; align-items: center; gap: 16px 28px; padding: 18px 24px; border-left: 6px solid var(--c); }
.mio-eq { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mio-eq img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.mio-eq > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mio-eq b { font: 400 26px/1.05 var(--anton); text-transform: uppercase; overflow-wrap: anywhere; }
.mio-eq:hover b { text-decoration: underline; }
.mio-k { font: 800 11px var(--archivo); letter-spacing: 1.5px; color: var(--verde); }
.mio-ds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mio-d { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-left: 16px; border-left: 1px solid #333; }
.mio-d .mio-k { color: #999; }
.mio-d b { display: flex; align-items: center; gap: 8px; font: 700 15px/1.25 var(--archivo); }
.mio-s { font: 500 12px/1.35 var(--archivo); color: #bbb; }
.mio-ver { border: 2px solid var(--verde); color: var(--verde); font: 800 12px var(--archivo); letter-spacing: 1.5px; padding: 10px 14px; white-space: nowrap; text-align: center; }
.mio-ver:hover { background: var(--verde); color: var(--negro); }

/* ---------- Buscador ---------- */

.btn-buscar { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border: 2px solid #333; color: #fff; cursor: pointer; }
.btn-buscar:hover { border-color: var(--verde); color: var(--verde); }
body:has(dialog.buscador[open]) { overflow: hidden; }
.buscador { width: min(680px, calc(100% - 32px)); max-width: none; max-height: min(80vh, 760px); margin: 10vh auto auto; padding: 0; border: 0; border-top: 6px solid var(--verde); background: var(--fondo); color: #111; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.buscador[open] { display: flex; flex-direction: column; }
.buscador::backdrop { background: rgba(10, 10, 10, .72); }
.bus-in { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.bus-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.bus-tit { margin: 0; font: 400 26px/1 var(--anton); }
.bus-cerrar { flex: none; width: 40px; height: 40px; padding: 0; background: none; border: 2px solid #ccc; color: #111; font: 700 16px var(--archivo); cursor: pointer; }
.bus-cerrar:hover { border-color: var(--negro); }
.bus-campo { display: block; padding: 12px 18px 14px; border-bottom: 1px solid #ddd; }
.bus-campo input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid var(--negro); border-radius: 0; background: #fff; color: #111; font: 600 18px var(--archivo); }
.bus-res { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.bus-gr { display: flex; flex-direction: column; gap: 2px; }
.bus-gt { margin: 6px 0 4px; font: 800 11px var(--archivo); letter-spacing: 1.5px; color: #777; }
.bus-r { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 10px; background: #fff; color: #111; }
.bus-r:hover, .bus-r:focus-visible { background: #fbfbf8; box-shadow: inset 4px 0 0 var(--verde); }
.bus-r img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.bus-ico { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--negro); color: var(--verde); font: 400 16px var(--anton); }
.bus-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bus-n { font: 700 15px/1.3 var(--archivo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bus-n small { font: 500 12px var(--archivo); color: #777; }
.bus-s { font: 500 12px/1.3 var(--archivo); color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bus-nota { margin: 8px 0; font: 500 14px/1.45 var(--archivo); color: #666; }

@media (max-width: 900px) {
  .mio { grid-template-columns: minmax(0, 1fr) auto; }
  .mio-ds { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .prox-dato { font-size: 10px; letter-spacing: .5px; }
  .prox-eq .vt-r { width: 16px; height: 16px; font-size: 9px; }
  .prox-ida { font-size: 10px; letter-spacing: .5px; }
  .eq-pista { margin-top: -14px; font-size: 13px; }
  .mio { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; border-left-width: 4px; }
  .mio-eq img { width: 44px; height: 44px; }
  .mio-eq b { font-size: 22px; }
  .mio-ds { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .mio-d { padding-left: 10px; }
  .mio-d:first-child { grid-column: 1 / -1; }
  .mio-d b { font-size: 14px; }
  .mio-lg { display: none; }
  .buscador { width: 100%; height: 100%; max-height: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-top-width: 4px; box-shadow: none; }
  .bus-cab { padding: 10px 14px 0; }
  .bus-campo { padding: 10px 14px 12px; }
  .bus-res { padding: 4px 14px 24px; }
}
