/* ============ PRONOSTIK: estilo deportivo ============ */
:root {
  --fondo: #07130d;
  --fondo-2: #0c1d14;
  --panel: #10241a;
  --panel-2: #163023;
  --borde: #22402f;
  --texto: #f2f7f3;
  --suave: #9db5a6;
  --neon: #3ef08f;
  --neon-2: #b6ff3b;
  --local: #3ef08f;
  --empate: #8fa59a;
  --visita: #ff8a3d;
  --ok: #3ef08f;
  --mal: #ff5a5a;
  --c-local: #3ef08f;
  --c-visita: #ff8a3d;
  --radio: 18px;
  --titulo: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --cuerpo: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--cuerpo);
  color: var(--texto);
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(62, 240, 143, .18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 60px, transparent 60px 120px),
    var(--fondo);
  min-height: 100vh;
  line-height: 1.4;
  padding-bottom: 90px;
}
button { font: inherit; color: inherit; cursor: pointer; }
.contenedor { max-width: 860px; margin: 0 auto; padding: 0 14px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 19, 13, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.marca { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  box-shadow: 0 0 0 1px var(--borde), 0 0 18px rgba(62, 240, 143, .25);
}
/* la gráfica de la K se "dibuja" al cargar */
.logo-linea { stroke-dasharray: 70; stroke-dashoffset: 70; animation: trazo .9s .15s cubic-bezier(.6,0,.3,1) forwards; }
.logo-flecha { opacity: 0; animation: aparecer .25s .95s ease-out forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .logo-linea, .logo-flecha { animation: none; stroke-dashoffset: 0; opacity: 1; } }
h1 .liga {
  display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 2px 7px;
  font-family: var(--cuerpo); font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: .08em;
  color: var(--suave); border: 1px solid var(--borde); border-radius: 99px;
}
h1 {
  font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 22px; margin: 0; letter-spacing: .02em; line-height: 1;
}
h1 em { color: var(--neon); font-style: italic; }
.sub { margin: 3px 0 0; color: var(--suave); font-size: 12px; }

/* Navegación: arriba en computadora, barra inferior en celular */
.nav { display: flex; gap: 6px; }
.nav-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 9px 14px; font-weight: 700; font-size: 14px; color: var(--suave);
  transition: background .2s, color .2s, transform .15s;
}
.nav-btn:hover { color: var(--texto); background: var(--panel); }
.nav-btn.activa { color: #062012; background: var(--neon); box-shadow: 0 0 18px rgba(62, 240, 143, .45); }
.nav-btn .ico { font-size: 16px; }
.nav-btn:active { transform: scale(.94); }

@media (max-width: 720px) {
  /* el desenfoque convierte la cabecera en contenedor de lo "fixed"; sin él la barra baja al fondo */
  .cabecera { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 19, 13, .97); }
  .nav {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 36, 26, .95); border: 1px solid var(--borde); border-radius: 22px;
    padding: 6px; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .nav-btn { flex: 1; flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 11px; border-radius: 16px; }
  .nav-btn .ico { font-size: 20px; }
}

main { padding-top: 16px; }
.vista { display: none; }
.vista.activa { display: block; animation: entrar .35s ease both; }

/* ---------- Paneles ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--fondo-2));
  border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 16px; margin-bottom: 14px;
}
h2 {
  font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 18px; letter-spacing: .03em; margin: 0 0 12px;
}
h2 b { color: var(--neon); }
h3 { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; font-size: 15px; margin: 18px 0 8px; }
.nota { color: var(--suave); font-size: 13px; margin: -4px 0 12px; }

/* ---------- Duelo ---------- */
.duelo {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px;
  margin-bottom: 12px;
}
.lado {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px 14px; border-radius: 22px; border: 2px solid var(--borde);
  background: linear-gradient(160deg, color-mix(in srgb, var(--color, #3ef08f) 35%, transparent), var(--panel) 65%);
  transition: border-color .25s, transform .2s, box-shadow .25s;
}
.lado::after { /* brillo que cruza */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s;
}
.lado:hover::after { transform: translateX(120%); }
.lado:active { transform: scale(.97); }
.lado.activo { border-color: var(--neon); box-shadow: 0 0 0 4px rgba(62, 240, 143, .15), 0 0 24px rgba(62, 240, 143, .25); }
.lado-visita.activo { border-color: var(--visita); box-shadow: 0 0 0 4px rgba(255, 138, 61, .15), 0 0 24px rgba(255, 138, 61, .25); }
.rol {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.35); color: var(--neon);
}
.lado-visita .rol { color: var(--visita); }
.escudo-wrap { width: 110px; height: 110px; display: grid; place-items: center; }
.escudo { max-width: 100%; max-height: 100%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.escudo.pop { animation: pop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.equipo-nombre {
  font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 22px; line-height: 1.05; text-align: center;
}
.cambiar { font-size: 11px; color: var(--suave); }
.vs { display: grid; place-items: center; }
.vs span {
  font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 26px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: #062012; background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 0 6px rgba(62, 240, 143, .15), 0 0 30px rgba(62, 240, 143, .45);
  animation: latido 2.4s ease-in-out infinite;
}
@media (max-width: 480px) {
  .escudo-wrap { width: 76px; height: 76px; }
  .equipo-nombre { font-size: 17px; }
  .vs span { width: 46px; height: 46px; font-size: 20px; }
  .cambiar { display: none; }
}

/* ---------- Botones de acción ---------- */
.acciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.accion {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 16px; border: 1px solid var(--borde);
  background: var(--panel); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  transition: transform .12s, background .2s, border-color .2s, box-shadow .2s;
}
.accion span { font-size: 20px; }
.accion:hover { border-color: var(--neon); }
.accion:active { transform: scale(.95); }
.accion.toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffd23f, #ffb000); color: #2a1a00; border-color: #ffd23f;
  box-shadow: 0 0 20px rgba(255, 196, 0, .45);
}
@media (max-width: 420px) { .accion { font-size: 12px; flex-direction: column; gap: 2px; } }

/* ---------- Selector ---------- */
.panel-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-titulo h2 { margin: 0; }
.segmento { display: flex; background: var(--fondo); border: 1px solid var(--borde); border-radius: 99px; padding: 3px; }
.seg { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; color: var(--suave); }
.seg.activo { background: var(--neon); color: #062012; }
.seg.activo[data-lado="visita"] { background: var(--visita); }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.equipo-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 8px; border-radius: 14px; border: 2px solid transparent;
  background: var(--fondo); transition: transform .15s, border-color .2s, background .2s;
  animation: entrar .4s ease both; animation-delay: calc(var(--i) * 25ms);
}
.equipo-btn img { width: 46px; height: 46px; object-fit: contain; transition: transform .25s; }
.equipo-btn span { font-size: 11px; font-weight: 700; color: var(--suave); text-align: center; line-height: 1.1; }
.equipo-btn:hover img { transform: scale(1.15) rotate(-4deg); }
.equipo-btn:active { transform: scale(.92); }
.equipo-btn.es-local { border-color: var(--neon); background: rgba(62, 240, 143, .1); }
.equipo-btn.es-visita { border-color: var(--visita); background: rgba(255, 138, 61, .1); }
.equipo-btn .marca-rol {
  position: absolute; top: 4px; right: 4px; font-size: 9px; font-weight: 900; padding: 2px 5px; border-radius: 6px;
  background: var(--neon); color: #062012;
}
.equipo-btn.es-visita .marca-rol { background: var(--visita); }
.clasicos { margin-top: 14px; border-top: 1px dashed var(--borde); padding-top: 12px; }
.clasicos-titulo { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.clasicos-botones { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.clasico {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--borde); background: var(--fondo); border-radius: 99px; padding: 6px 12px 6px 6px;
  font-size: 13px; font-weight: 700; transition: border-color .2s, transform .12s;
}
.clasico img { width: 24px; height: 24px; object-fit: contain; }
.clasico:hover { border-color: var(--neon); }
.clasico:active { transform: scale(.95); }

/* ---------- Resultado ---------- */
.probs { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.prob b {
  display: block; font-family: var(--titulo); font-weight: 900; font-style: italic;
  font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums;
}
.prob span { font-size: 13px; color: var(--suave); font-weight: 600; }
.p-local b { color: var(--local); text-shadow: 0 0 20px rgba(62, 240, 143, .35); }
.p-empate b { color: var(--empate); }
.p-visita b { color: var(--visita); text-shadow: 0 0 20px rgba(255, 138, 61, .35); }
.prob.favorito span { color: var(--texto); }
.prob.favorito b { animation: latido 1.8s ease-in-out infinite; }
.barra { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 14px 0; gap: 3px; background: var(--fondo); }
.barra div { width: 0; transition: width .8s cubic-bezier(.2, .9, .3, 1); }
#b-local { background: linear-gradient(90deg, #1fb86a, var(--local)); }
#b-empate { background: var(--empate); }
#b-visita { background: linear-gradient(90deg, var(--visita), #ff6a1a); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat { background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 4px; }
.stat b { display: block; font-family: var(--titulo); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--suave); }
.contexto { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ctx { display: flex; gap: 10px; align-items: center; border: 1px dashed var(--borde); border-radius: 14px; padding: 8px 10px; }
.ctx .ico { font-size: 22px; }
.ctx b { display: block; font-size: 14px; }
.ctx span { font-size: 11px; color: var(--suave); }
@media (max-width: 480px) {
  .prob b { font-size: 34px; }
  .contexto { grid-template-columns: 1fr; }
}

.marcadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.marcador {
  position: relative; overflow: hidden; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px;
  padding: 10px 6px; text-align: center; animation: entrar .4s ease both; animation-delay: calc(var(--i) * 50ms);
}
.marcador::before { /* barra de probabilidad al fondo */
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); background: var(--neon);
}
.marcador b { display: block; font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 26px; }
.marcador span { font-size: 12px; color: var(--suave); }
.marcador:first-child { border-color: var(--neon); }

/* ---------- Más pronósticos ---------- */
.extras { display: grid; gap: 10px; }
.extra { background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; }
.extra-tit { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; }
.extra-tit b { font-family: var(--titulo); font-style: italic; font-size: 22px; }
.duelo-barra { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 6px; margin: 6px 0; }
.duelo-barra span { height: 8px; border-radius: 99px; background: var(--local); justify-self: end; transition: width .8s cubic-bezier(.2,.9,.3,1); }
.duelo-barra span.v { background: var(--visita); justify-self: start; }
.duelo-barra em { font-style: normal; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.duelo-barra i { font-style: normal; font-size: 11px; color: var(--suave); }
.extra-pie { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--suave); }
.extra-pie b { color: var(--texto); }
.goleadores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gol-col { background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; padding: 10px; min-width: 0; }
.gol-eq { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.gol-eq img { width: 22px; height: 22px; object-fit: contain; }
.gol { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 0 8px;
  border-bottom: 1px dashed var(--borde); animation: entrar .4s ease both; animation-delay: calc(var(--i) * 60ms); }
.gol:last-child { border-bottom: 0; }
.gol-nom { font-size: 13px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gol-nom small { display: block; font-size: 10px; color: var(--suave); font-weight: 600; }
.gol b { font-family: var(--titulo); font-style: italic; font-size: 18px; color: var(--neon); }
.gol-barra { position: absolute; left: 0; bottom: 2px; height: 3px; border-radius: 99px; background: var(--neon); opacity: .6; }
@media (max-width: 480px) { .goleadores { grid-template-columns: 1fr; } }
.pc-extras { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--texto); margin-bottom: 8px; }
.historial .score small.xg { color: var(--neon); opacity: .8; }

/* ---------- Ficha del partido ---------- */
.ficha { display: grid; gap: 8px; margin-bottom: 14px; }
.tv-lista, .pc-tv { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; align-items: center; }
.pc-tv { margin: 2px 0 8px; }
.pc-tv-ico { font-size: 13px; }
.tv { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 3px 9px; border: 1px solid var(--borde); white-space: nowrap; }
.tv-abierta { background: rgba(57,255,136,.14); border-color: rgba(57,255,136,.5); color: var(--neon); }
.tv-paga { background: rgba(255,255,255,.06); }
.tv-streaming { background: rgba(120,160,255,.14); border-color: rgba(120,160,255,.45); color: #aac4ff; }
.h2h-res { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 6px; }
.h2h-res b { display: block; font-family: var(--titulo); font-style: italic; font-size: 28px; }
.h2h-res span { font-size: 11px; color: var(--suave); font-weight: 700; }
.h2h-p { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--borde); font-size: 13px; }
.h2h-p:last-child { border-bottom: 0; }
.h2h-p small { color: var(--suave); font-size: 11px; white-space: nowrap; }
.h2h-eq { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-r { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; font-size: 11px; color: #08130c; }
.h2h-l { background: var(--local); }
.h2h-v { background: var(--visita); }
.h2h-e { background: var(--empate); }
#nota-tv a { color: var(--neon); }

/* ---------- Bajas ---------- */
.bajas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.baja-col { background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; padding: 10px; min-width: 0; }
.baja-tono { font-size: 12px; font-weight: 700; color: var(--suave); margin-bottom: 6px; }
.baja-tono.bien { color: var(--neon); }
.baja-tono.mal { color: #ff8a6b; }
.baja { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px dashed var(--borde); font-size: 13px; }
.baja small { color: var(--suave); font-size: 11px; }
.xi-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { font-size: 11px; font-weight: 700; background: var(--panel, rgba(255,255,255,.05)); border: 1px solid var(--borde);
  border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.chip i { font-style: normal; color: var(--suave); font-size: 9px; margin-right: 4px; }
@media (max-width: 480px) { .bajas { grid-template-columns: 1fr; } }

/* ---------- Próximos ---------- */
.lista-proximos { display: grid; gap: 12px; }
.partido-card {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  border: 1px solid var(--borde); border-radius: 20px; padding: 14px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--c1) 28%, transparent), transparent 38%, transparent 62%, color-mix(in srgb, var(--c2) 28%, transparent)),
    var(--fondo);
  transition: transform .15s, border-color .2s, box-shadow .2s;
  animation: entrar .4s ease both; animation-delay: calc(var(--i) * 80ms);
}
.partido-card:hover { border-color: var(--neon); box-shadow: 0 0 24px rgba(62, 240, 143, .18); }
.partido-card:active { transform: scale(.98); }
.pc-cabeza { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--suave); font-weight: 700; text-transform: capitalize; }
.pc-cabeza span:first-child { color: var(--neon); text-transform: uppercase; letter-spacing: .06em; }
.pc-equipos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0 8px; }
.pc-eq { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-eq img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); transition: transform .3s; }
.partido-card:hover .pc-eq img { transform: scale(1.08); }
.pc-eq span { font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 18px; text-align: center; line-height: 1.05; }
.pc-vs { font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 18px; color: var(--suave); }
.pc-probs { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pp b { font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 28px; }
.pp.p-l b { color: var(--local); } .pp.p-e b { color: var(--empate); } .pp.p-v b { color: var(--visita); }
.pp.favorito b { text-shadow: 0 0 16px currentColor; }
.barra.mini { height: 8px; margin: 8px 0 10px; }
.barra.mini div { transition: none; }
.pc-fuentes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fuente { font-size: 11px; font-weight: 700; color: var(--suave); background: rgba(0,0,0,.3); border: 1px solid var(--borde); border-radius: 99px; padding: 3px 9px; }
.pc-pie { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--suave); flex-wrap: wrap; }
.pc-pie b { color: var(--texto); }
.pc-pie .ok { color: var(--ok); font-weight: 700; }
.pc-ver { display: block; margin-top: 10px; text-align: center; font-weight: 800; font-size: 13px; color: var(--neon); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Fuerza ---------- */
.leyenda { display: flex; gap: 14px; font-size: 12px; color: var(--suave); margin-bottom: 8px; }
.leyenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.l-ataque::before { background: var(--neon); }
.l-defensa::before { background: var(--visita); }
.fuerza { list-style: none; margin: 0; padding: 0; }
.fila-fuerza {
  display: grid; grid-template-columns: 26px 38px 1fr; gap: 10px; align-items: center;
  padding: 9px 6px; border-bottom: 1px solid var(--borde); border-radius: 10px;
  animation: entrar .4s ease both; animation-delay: calc(var(--i) * 35ms); transition: background .2s;
}
.fila-fuerza:hover { background: var(--panel-2); cursor: pointer; }
.fila-fuerza .pos { font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 20px; color: var(--suave); text-align: center; }
.fila-fuerza:nth-child(-n+3) .pos { color: var(--neon); }
.fila-fuerza img { width: 36px; height: 36px; object-fit: contain; }
.fila-fuerza .nom { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.fila-fuerza .nom small { color: var(--suave); font-weight: 600; }
.barras { display: grid; gap: 3px; margin-top: 4px; }
.barras i { display: block; height: 6px; border-radius: 99px; width: 0; transition: width .9s cubic-bezier(.2, .9, .3, 1); }
.barras .ba { background: var(--neon); }
.barras .bd { background: var(--visita); }

/* ---------- Historial ---------- */
.filtros { display: flex; gap: 8px; margin-bottom: 12px; }
.filtro {
  border: 1px solid var(--borde); background: var(--fondo); border-radius: 99px; padding: 8px 14px;
  font-weight: 700; font-size: 13px; color: var(--suave);
}
.filtro.activo { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.historial { list-style: none; margin: 0; padding: 0; }
.historial li {
  display: grid; grid-template-columns: 50px 1fr auto 1fr 26px; gap: 8px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--borde);
  animation: entrar .35s ease both; animation-delay: calc(var(--i) * 20ms);
}
.historial .fecha { font-size: 11px; color: var(--suave); line-height: 1.2; }
.historial .eq { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.historial .eq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historial .eq.der { justify-content: flex-end; text-align: right; }
.historial .eq img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.historial .score {
  font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 18px;
  background: var(--fondo); border: 1px solid var(--borde); border-radius: 10px; padding: 3px 9px; text-align: center; min-width: 58px;
}
.historial .score small { display: block; font-family: var(--cuerpo); font-style: normal; font-weight: 600; font-size: 10px; color: var(--suave); }
.historial .res { font-size: 18px; font-weight: 900; text-align: center; }
.historial .ok { color: var(--ok); }
.historial .mal { color: var(--mal); }
@media (max-width: 480px) {
  .historial li { grid-template-columns: 1fr auto 1fr 22px; }
  .historial .fecha { display: none; }
  .historial .eq span { display: none; }
  .historial .eq { justify-content: center; }
}

/* ---------- Precisión ---------- */
.medidores { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.medidor { background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; padding: 14px 8px; text-align: center; }
.medidor.destacado { border-color: var(--neon); box-shadow: 0 0 22px rgba(62, 240, 143, .2); }
.anillo { --p: 0; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--color-anillo, var(--neon)) calc(var(--p) * 1%), var(--panel-2) 0); transition: --p 1s; }
.anillo b { width: 72px; height: 72px; border-radius: 50%; background: var(--fondo); display: grid; place-items: center;
  font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 20px; }
.medidor span { font-size: 12px; color: var(--suave); }
@media (max-width: 480px) {
  .medidores { gap: 6px; grid-template-columns: 1fr 1fr; }
  .medidor { padding: 10px 4px; min-width: 0; }
  .anillo { width: 74px; height: 74px; }
  .anillo b { width: 58px; height: 58px; font-size: 16px; }
  .medidor span { font-size: 11px; }
}
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.explica { padding-left: 18px; margin: 0; font-size: 14px; color: #d6e3da; }
.explica li { margin-bottom: 6px; }

.pie { color: var(--suave); font-size: 11px; text-align: center; padding: 6px 16px 24px; }

/* ---------- Animaciones ---------- */
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Selector de liga (Liga MX | NFL) ---------- */
h1 .ligas { display: inline-flex; vertical-align: 3px; margin-left: 4px; gap: 3px; padding: 2px; border: 1px solid var(--borde); border-radius: 99px; }
h1 a.liga {
  display: inline-block; margin: 0; padding: 2px 8px; border: 0; border-radius: 99px; text-decoration: none;
  font-family: var(--cuerpo); font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--suave);
  transition: background .2s, color .2s;
}
h1 a.liga:hover { color: var(--texto); }
h1 a.liga.activa { background: var(--neon); color: #062012; }

/* ---------- NFL ---------- */
.probs.dos, .pc-probs.dos { grid-template-columns: 1fr 1fr; }
.division { margin-bottom: 12px; }
.division .rejilla { margin-top: 6px; grid-template-columns: repeat(4, 1fr); }
.pc-eq small { font-size: 11px; color: var(--suave); font-weight: 700; margin-top: -4px; }
.pc-extras .aviso, .qb-linea .aviso { color: #ffcf5a; }
/* logos oscuros (Jets, Raiders…) sobre fondo oscuro: un halo claro para que se vean */
.nfl img[src*="logos/nfl/"] { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 6px rgba(255,255,255,.12)); }
.ctx b small { font-weight: 600; color: var(--suave); font-size: 11px; }
.nfl .contexto { grid-template-columns: 1fr 1fr; }
.barra-neta { margin-top: 5px; height: 6px; background: var(--fondo); border-radius: 99px; position: relative; }
.barra-neta::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--borde); }
.barra-neta i { position: absolute; top: 0; bottom: 0; width: 0; border-radius: 99px; transition: width .9s cubic-bezier(.2, .9, .3, 1); }
.barra-neta i.pos { left: 50%; background: var(--neon); }
.barra-neta i.neg { right: 50%; background: var(--visita); }
.qb-linea { font-size: 11px; color: var(--suave); margin-top: 4px; }
.nfl-fuerza .nom small { margin-left: 4px; }

/* ---------- Confianza del pronóstico ---------- */
h3 b { color: var(--neon); }
.confianza {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 10px;
  padding: 8px 10px; border-radius: 12px; font-size: 12px; color: var(--suave);
  background: color-mix(in srgb, var(--conf) 10%, transparent); border: 1px solid color-mix(in srgb, var(--conf) 35%, transparent);
}
.resultado .confianza { margin: -4px 0 12px; }
.confianza b { color: var(--texto); }
.conf-etiqueta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--conf); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.conf-etiqueta i { width: 8px; height: 8px; border-radius: 50%; background: var(--conf); box-shadow: 0 0 8px var(--conf); }
.conf-doble { flex-basis: 100%; }
.nivel-alta { --conf: #3ef08f; }
.nivel-media { --conf: #ffcf5a; }
.nivel-baja { --conf: #8fa59a; }

.niveles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nivel {
  background: var(--fondo); border: 1px solid color-mix(in srgb, var(--conf) 40%, var(--borde)); border-radius: 16px; padding: 12px;
  animation: entrar .4s ease both; animation-delay: calc(var(--i) * 70ms);
}
.nivel-cab { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.nivel-cab small { color: var(--suave); font-size: 11px; font-weight: 700; }
.nivel-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nivel-cifras b { display: block; font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; color: var(--conf); }
.nivel-cifras div:last-child b { color: var(--texto); }
.nivel-cifras span { font-size: 11px; color: var(--suave); }
.nivel-pie { margin-top: 8px; font-size: 11px; color: var(--suave); }

.l-dijo::before { background: var(--suave); }
.l-paso::before { background: var(--neon); }
.calibracion { display: grid; gap: 8px; }
.cal-fila { display: grid; grid-template-columns: 62px 1fr 150px; align-items: center; gap: 10px; font-size: 12px; }
.cal-rango { color: var(--suave); font-weight: 700; }
.cal-barras { display: grid; gap: 3px; }
.cal-barras i { display: block; height: 7px; border-radius: 99px; }
.cal-dijo { background: var(--suave); opacity: .7; }
.cal-paso { background: var(--neon); }
.cal-num { color: var(--suave); text-align: right; }
.cal-num b { color: var(--texto); }

@media (max-width: 600px) {
  .niveles { grid-template-columns: 1fr; }
  .cal-fila { grid-template-columns: 52px 1fr; }
  .cal-num { grid-column: 2; text-align: left; margin-top: -4px; }
}

/* ---------- Béisbol ---------- */
/* logos oscuros sobre fondo oscuro: halo claro */
.beisbol img[src*="logos/"], .liga-mlb img, .liga-lmp img { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 6px rgba(255,255,255,.12)); }
.beisbol .contexto { grid-template-columns: 1fr 1fr; }
.beisbol .division .rejilla { margin-top: 6px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 480px) { .beisbol .division .rejilla { grid-template-columns: repeat(3, 1fr); } }
/* los logos SVG de MLB no traen tamaño propio: se ajustan a su caja */
.beisbol .escudo { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Partido fijo vs. Comparar ---------- */
.modo-partido .acciones, .modo-partido #panel-equipos, .modo-partido .comparar-cab { display: none; }
.modo-partido .lado { pointer-events: none; }
.modo-partido .cambiar:not([id]) { display: none; }
.modo-comparar .partido-fijo { display: none; }
.partido-fijo { display: flex; gap: 8px; margin: 12px 0; }
.partido-fijo .accion { flex: 1; }
.comparar-cab { margin-bottom: 12px; }
.comparar-ligas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comparar-ligas a.filtro { text-decoration: none; }
h1 a.liga { white-space: nowrap; }
@media (max-width: 720px) {
  .nav-btn { padding: 8px 1px; font-size: 10px; min-width: 0; white-space: nowrap; }
  .nav-btn .ico { font-size: 18px; }
  h1 .ligas { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 4px 0 0; width: max-content; }
  h1 .ligas::-webkit-scrollbar { display: none; }
  h1 a.liga { padding: 2px 6px; letter-spacing: .03em; }
}
#panel-tv a { color: var(--neon); }
