/* ============ PRONOSTIK · Página de inicio ============ */
.logo-link { display: flex; border-radius: 10px; }
.logo-link:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.inicio { padding-bottom: 20px; }

.intro { padding: 10px 2px 4px; }
.intro-titulo { font-size: 30px; margin-bottom: 6px; line-height: 1; }
.intro .nota { max-width: 560px; }

/* ---------- Categorías ---------- */
.categorias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 10px; }
.categoria {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--radio); text-decoration: none; color: var(--texto);
  border: 1px solid var(--borde);
  background: radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--panel);
  transition: transform .15s, border-color .2s, box-shadow .2s;
  animation: entrar .4s ease both;
}
.categoria:nth-child(2) { animation-delay: 80ms; }
.categoria:hover { border-color: var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 25%, transparent); }
.categoria:active { transform: scale(.98); }
.cat-ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.cat-txt { flex: 1; min-width: 0; }
.cat-txt b { display: block; font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 24px; line-height: 1; }
.cat-txt small { display: block; margin-top: 4px; color: var(--suave); font-size: 12px; line-height: 1.3; }
.cat-ir { font-size: 22px; font-weight: 800; color: var(--c); transition: transform .2s; }
.categoria:hover .cat-ir { transform: translateX(4px); }

.pronto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.pronto-t { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); margin-right: 4px; }
.chip { font-size: 12px; font-weight: 700; color: var(--suave); padding: 4px 10px; border-radius: 99px; border: 1px dashed var(--borde); opacity: .75; }

/* ---------- Lista de juegos ---------- */
.filtros { flex-wrap: wrap; }
.juegos { display: grid; gap: 10px; }
.dia {
  margin: 10px 2px 0; font-size: 12px; font-weight: 700; color: var(--suave);
  text-transform: capitalize; letter-spacing: .02em;
}
.dia b { color: var(--neon); text-transform: uppercase; letter-spacing: .08em; }
.dia:first-child { margin-top: 0; }

.juego {
  position: relative; border: 1px solid var(--borde); border-radius: 18px; padding: 12px 14px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--c1) 16%, transparent), transparent 40%),
    var(--fondo);
  animation: entrar .4s ease both; animation-delay: calc(var(--i) * 45ms);
  transition: border-color .2s;
}
.juego:hover { border-color: color-mix(in srgb, var(--neon) 50%, var(--borde)); }
.j-cabeza { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--suave); margin-bottom: 6px; }
.j-liga { color: var(--neon); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.liga-nfl .j-liga { color: var(--visita); }
.j-ronda { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-hora { color: var(--texto); font-size: 13px; font-weight: 800; white-space: nowrap; }

.j-fila { display: grid; grid-template-columns: 34px 1fr auto 52px; align-items: center; gap: 10px; padding: 4px 0; }
.j-fila img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.liga-nfl img, .ult-equipo img { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 6px rgba(255,255,255,.12)); }
.j-nombre { font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 18px; line-height: 1.05; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-nombre small { font-family: var(--cuerpo); font-style: normal; font-weight: 700; font-size: 11px; color: var(--suave); margin-left: 6px; }
.j-prob { font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 24px; text-align: right; }
.j-prob.p-l { color: var(--local); } .j-prob.p-v { color: var(--visita); }
.j-prob.favorito { text-shadow: 0 0 14px currentColor; }
.favorito-e { color: var(--texto); }

/* Forma: últimos 5 (G / E / P) */
.forma { display: inline-flex; gap: 3px; }
.forma.vacia { font-size: 11px; color: var(--suave); }
.forma i, .ult-lista i {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  font-style: normal; font-size: 10px; font-weight: 800; color: #062012;
}
.r-G { background: var(--ok); }
.r-E { background: var(--empate); }
.r-P { background: var(--mal); color: #fff !important; }

.juego .barra.mini { margin: 8px 0 6px; height: 6px; }
.j-pie { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--suave); }
.j-pie b { color: var(--empate); }

.j-acciones { display: flex; gap: 8px; margin-top: 10px; }
.j-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 12px; border: 1px solid var(--borde); background: var(--panel);
  font-size: 13px; font-weight: 800; color: var(--texto); text-decoration: none; transition: background .2s, border-color .2s, transform .15s;
}
.j-btn:hover { border-color: var(--neon); }
.j-btn:active { transform: scale(.97); }
.j-btn.principal { background: var(--neon); color: #062012; border-color: var(--neon); }
.j-btn.principal:hover { box-shadow: 0 0 18px rgba(62, 240, 143, .4); }
.j-btn .flecha { transition: transform .2s; }
.j-btn.abierto .flecha { transform: rotate(180deg); }

/* ---------- Últimos juegos (detalle) ---------- */
.j-detalle { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--borde); animation: entrar .3s ease both; }
.ult-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ult-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ult-cab img { width: 22px; height: 22px; object-fit: contain; }
.ult-cab b { font-family: var(--titulo); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 15px; }
.ult-cab small { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--suave); }
.ult-lista, .h2h { list-style: none; margin: 0; padding: 0; }
.ult-lista li, .h2h li {
  display: grid; grid-template-columns: 46px 20px 1fr auto 18px; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--borde) 60%, transparent); font-size: 13px;
}
.ult-lista li:last-child, .h2h li:last-child { border-bottom: 0; }
.u-fecha { color: var(--suave); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.u-sede { color: var(--suave); font-size: 11px; }
.u-rival { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.u-rival img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.u-marcador { font-weight: 800; font-variant-numeric: tabular-nums; }
.u-vacio, .h2h-vacio { display: block !important; color: var(--suave); font-size: 12px; margin: 0; }
.h2h-titulo { margin: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); }
.h2h li { grid-template-columns: 46px 1fr auto 1fr; }
.h2h-eq { color: var(--suave); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-eq.der { text-align: right; }
.h2h-eq.gana { color: var(--texto); font-weight: 800; }
.h2h .u-marcador { text-align: center; padding: 0 6px; }

.ver-mas {
  display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--borde); background: var(--fondo); font-weight: 800; color: var(--neon);
}
.ver-mas:hover { border-color: var(--neon); }

@media (max-width: 560px) {
  .categorias { grid-template-columns: 1fr; gap: 10px; }
  .intro-titulo { font-size: 26px; }
  .ult-columnas { grid-template-columns: 1fr; }
  .j-fila { grid-template-columns: 30px 1fr auto 46px; gap: 8px; }
  .j-fila img { width: 30px; height: 30px; }
  .j-nombre { font-size: 16px; }
  .j-prob { font-size: 21px; }
  .forma i { width: 15px; height: 15px; font-size: 9px; border-radius: 4px; }
}
@media (max-width: 380px) {
  .forma i:nth-child(-n+2) { display: none; } /* en pantallas muy chicas, solo los últimos 3 */
}
.ver-mas[hidden], .j-detalle[hidden] { display: none; }

/* Cara a cara histórico */
.h2h-resumen { margin: 4px 0 10px; }
.h2h-cifras { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; font-size: 12px; color: var(--suave); font-weight: 700; }
.h2h-cifras span { display: flex; flex-direction: column; line-height: 1.15; }
.h2h-cifras b { font-family: var(--titulo); font-weight: 900; font-style: italic; font-size: 26px; }
.h2h-a b { color: var(--local); }
.h2h-e { text-align: center; align-items: center; }
.h2h-e b { color: var(--empate); }
.h2h-b { text-align: right; align-items: flex-end; }
.h2h-b b { color: var(--visita); }
.h2h-resumen .barra.mini { margin: 6px 0 4px; }
.h2h-nota { margin: 0; font-size: 11px; color: var(--suave); }
.h2h-sub { margin: 8px 0 0; font-size: 11px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.h2h.con-anio li { grid-template-columns: 78px 1fr auto 1fr; }
.h2h-ronda { display: block; font-style: normal; font-size: 9px; font-weight: 800; color: #ffcf5a; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.h2h.con-anio li { grid-template-columns: 92px 1fr auto 1fr; }
.j-conf { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 2px 0 6px; font-size: 12px; color: var(--suave); }
.j-conf b { color: var(--texto); }
.liga-mlb .j-liga { color: #3ec4f0; }
.liga-lmp .j-liga { color: #ffcf5a; }
