@font-face {
  font-family: "Lilita One";
  src: url("fuentes/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fuentes/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --fondo: #0c0a1d;
  --fondo-2: #141130;
  --tarjeta: #1a1638;
  --tarjeta-2: #221d47;
  --borde: rgba(255, 255, 255, 0.09);
  --texto: #f6f4ff;
  --suave: #b9b3de;
  --rosa: #ff3d7f;
  --azul: #46b9ff;
  --naranja: #ff9f1c;
  --rojo: #ff1f45;
  --radio: 18px;
  --ancho: 1200px;
  --titulo: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --cuerpo: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background-color: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grilla de fondo tipo Geometry Dash, apenas visible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  pointer-events: none;
}
/* luces de colores que flotan despacio detrás de todo */
body::after {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -2;
  background-image:
    radial-gradient(900px 600px at 85% 5%, rgba(255, 61, 127, 0.22), transparent 60%),
    radial-gradient(800px 600px at 5% 35%, rgba(70, 185, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 95% 80%, rgba(255, 159, 28, 0.10), transparent 60%);
  animation: flotar 24s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes flotar {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--titulo); font-weight: 400; letter-spacing: 0.01em; }
.oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 10, 29, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
}
.barra-in {
  max-width: var(--ancho); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 24px;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 159, 28, 0.6); }
.marca span { font-family: var(--titulo); font-size: 22px; }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a {
  text-decoration: none; font-weight: 800; color: var(--suave);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.menu a:hover { color: var(--texto); background: rgba(255, 255, 255, 0.07); }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--cuerpo); font-weight: 900; font-size: 17px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton-sub {
  background: var(--rojo); color: #fff;
  box-shadow: 0 6px 24px rgba(255, 31, 69, 0.45);
}
.boton-sub:hover { box-shadow: 0 10px 32px rgba(255, 31, 69, 0.6); }
.boton-borde { border: 2px solid rgba(255, 255, 255, 0.22); color: var(--texto); }
.boton-borde:hover { border-color: var(--azul); box-shadow: 0 0 22px rgba(70, 185, 255, 0.35); }
.boton-chico { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.icono-yt { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- portada ---------- */
main { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.portada {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center;
  padding: 48px 0 40px;
}
.logo-neon { width: min(100%, 520px); height: auto; margin: -8px 0 4px -12px; }
.bajada { font-size: 20px; color: var(--suave); max-width: 34ch; margin: 0 0 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; }
.chips li {
  font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--borde);
}
.chips li:nth-child(1) { color: #ffd3e1; border-color: rgba(255, 61, 127, 0.45); }
.chips li:nth-child(2) { color: #cdeaff; border-color: rgba(70, 185, 255, 0.45); }
.chips li:nth-child(3) { color: #ffe2b8; border-color: rgba(255, 159, 28, 0.45); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

.ultimo { margin: 0; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--suave);
}
.punto { width: 9px; height: 9px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 10px var(--rojo); }
/* trailer del canal: se reproduce solo, sin sonido, hasta que tocan el botón */
.pantalla {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radio); background: #000;
  box-shadow: 0 0 0 1px var(--borde), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 61, 127, 0.22);
}
.trailer { display: block; width: 100%; height: 100%; object-fit: cover; }
.sonido {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(12, 10, 29, 0.72); color: #fff; font: 800 14px var(--cuerpo);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}
.sonido:hover { background: var(--rojo); transform: translateY(-1px); }
.sonido:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.sonido svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.sonido .con-sonido, .sonido[aria-pressed="true"] .sin-sonido { display: none; }
.sonido[aria-pressed="true"] .con-sonido { display: block; }

/* reproductor: miniatura que se cambia por el video al tocarla */
.reproductor {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radio); background: #000;
  box-shadow: 0 0 0 1px var(--borde), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 61, 127, 0.18);
}
.reproductor img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.reproductor:hover img { transform: scale(1.03); filter: brightness(0.85); }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rojo);
  box-shadow: 0 0 0 8px rgba(255, 31, 69, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform .2s ease;
}
.play svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.reproductor:hover .play { transform: scale(1.08); }
.reproductor iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- secciones ---------- */
.seccion { padding: 44px 0; }
.seccion-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.seccion h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; text-shadow: 0 0 24px rgba(255, 61, 127, 0.35); }
.ver-todo { color: var(--azul); font-weight: 900; text-decoration: none; white-space: nowrap; }
.ver-todo::after { content: " →"; }
.ver-todo:hover { text-decoration: underline; }

.grilla-videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.video { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.video-mini {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--tarjeta);
  box-shadow: 0 0 0 1px var(--borde); margin-bottom: 6px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-mini img { width: 100%; height: 100%; object-fit: cover; }
.video:hover .video-mini { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--azul), 0 12px 30px rgba(70, 185, 255, 0.25); }
.video-titulo {
  font-weight: 800; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-fecha { color: var(--suave); font-size: 14px; }

.fila-shorts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.short {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; text-decoration: none;
  background: var(--tarjeta); box-shadow: 0 0 0 1px var(--borde);
  transition: transform .25s ease, box-shadow .25s ease;
}
.short img { width: 100%; height: 100%; object-fit: cover; }
.short::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 22, 0.92) 0%, rgba(8, 6, 22, 0) 50%);
}
.short-titulo {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  font-weight: 900; font-size: 15px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.short:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--rosa), 0 12px 30px rgba(255, 61, 127, 0.3); }

/* ---------- copa ---------- */
.copa {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: 36px; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(255, 159, 28, 0.20), transparent 70%),
    linear-gradient(160deg, var(--tarjeta-2), var(--fondo-2));
  border: 1px solid rgba(255, 159, 28, 0.35);
  box-shadow: 0 0 60px rgba(255, 159, 28, 0.10);
}
.antetitulo {
  margin: 0 0 6px; color: var(--naranja); font-weight: 900; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.copa h2 { font-size: clamp(30px, 4vw, 42px); text-shadow: 0 0 24px rgba(255, 159, 28, 0.4); }
.copa-texto > p:not(.antetitulo) { color: var(--suave); margin: 12px 0 22px; }
.capitulos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.capitulos a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--borde);
  transition: border-color .2s, background .2s;
}
.capitulos a:hover { border-color: var(--naranja); background: rgba(255, 159, 28, 0.08); }
.capitulos img { width: 72px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.copa-video { margin: 0; }
.copa-video .reproductor { box-shadow: 0 0 0 1px var(--borde), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 159, 28, 0.2); }
.copa-video figcaption { margin-top: 12px; font-weight: 800; color: var(--suave); }

/* ---------- tabla de posiciones de la copa ---------- */
.tabla-copa {
  margin-top: 22px; padding: 26px 28px 20px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--borde);
}
.tabla-cabeza { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.tabla-cabeza h3 { margin: 0; font-family: var(--titulo); font-weight: 400; font-size: 28px; }
.tabla-cabeza p {
  margin: 0; color: var(--naranja); font-weight: 900; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tabla-marco { overflow-x: auto; }
.tabla-copa table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.tabla-copa th {
  font-size: 13px; font-weight: 900; color: var(--suave); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; text-align: center;
}
.tabla-copa abbr { text-decoration: none; cursor: help; }
.tabla-copa th.equipo { text-align: left; }
.tabla-copa td {
  padding: 10px; text-align: center; font-weight: 800; background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde);
}
.tabla-copa td:first-child { border-left: 1px solid var(--borde); border-radius: 14px 0 0 14px; }
.tabla-copa td:last-child { border-right: 1px solid var(--borde); border-radius: 0 14px 14px 0; }
.tabla-copa tbody tr { transition: transform 0.25s ease; }
.tabla-copa tbody tr:hover { transform: translateX(4px); }
.tabla-copa tbody tr:hover td { background: rgba(255, 255, 255, 0.08); }
.tabla-copa td.pos { width: 52px; font-family: var(--titulo); font-weight: 400; font-size: 20px; box-shadow: inset 4px 0 0 var(--zona, transparent); }
.tabla-copa td.equipo { text-align: left; }
.tabla-copa .eq { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.tabla-copa .eq img { width: 32px; height: 38px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.tabla-copa .eq span { display: flex; flex-direction: column; line-height: 1.2; }
.tabla-copa td.equipo b { font-size: 17px; }
.tabla-copa td.equipo small { color: var(--suave); font-weight: 700; font-size: 13px; }
.tabla-copa td.dg { color: var(--suave); }
.tabla-copa td.pts { font-family: var(--titulo); font-weight: 400; font-size: 22px; color: #fff; min-width: 56px; }
.zona-campeon     { --zona: #ffd23f; }
.zona-clasificado { --zona: #34e0a1; }
.zona-descendido  { --zona: #ff3d5a; }
.zona-campeon td { background: rgba(255, 210, 63, 0.09); border-color: rgba(255, 210, 63, 0.35); }
.zona-campeon td.pts { color: #ffe27a; text-shadow: 0 0 16px rgba(255, 210, 63, 0.8); }

/* rótulo al lado del equipo (Campeón, Clasificado, Descendido): lo define copa.json */
.rotulo {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 3px;
  font-style: normal; font-weight: 900; font-size: 13px; line-height: 1.25;
}
.rotulo-campeon {
  font-family: var(--titulo); font-weight: 400; font-size: 21px; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff6b0 0%, #ffd23f 45%, #e0a10b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.65));
}
.rotulo-campeon .copita { width: 24px; height: 24px; fill: #ffd23f; filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.9)); }
.rotulo-clasificado { color: #4cf0b0; text-shadow: 0 0 10px rgba(52, 224, 161, 0.55); }
.rotulo-descendido { color: #ff5a6e; text-shadow: 0 0 10px rgba(255, 61, 90, 0.55); }

/* escudos debajo de la tabla */
.escudos-debajo {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  padding: 18px 0 4px; margin: 14px 0 0; border-top: 1px solid var(--borde);
}
.escudos-debajo li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.escudos-debajo img {
  width: auto; height: 76px; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.escudos-debajo li:hover img { transform: translateY(-4px) scale(1.06); }
.escudos-debajo span { font-weight: 800; font-size: 14px; color: var(--suave); }

/* partidos de la tabla anual, con el pronóstico de Facu */
.partidos { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--borde); }
.partidos h4 { margin: 0 0 12px; font-family: var(--titulo); font-weight: 400; font-size: 22px; }
.fecha { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
.fecha-num {
  margin: 10px 0 0; color: var(--naranja); font-weight: 900; font-size: 13px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.partidos-fecha { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.partido {
  padding: 9px 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--borde);
}
.marcador { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.marcador b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marcador img { width: 20px; height: 24px; object-fit: contain; flex: none; }
.eq-l, .eq-v { display: flex; align-items: center; gap: 6px; min-width: 0; }
.eq-l { justify-content: flex-end; text-align: right; }
.res { display: flex; gap: 4px; font-family: var(--titulo); font-size: 19px; font-variant-numeric: tabular-nums; }
.res em { font-style: normal; color: var(--suave); }
.res em.gana { color: #fff; }
.res i { font-style: normal; color: var(--suave); }
.nota-partido {
  margin: 6px 0 2px; text-align: center; font-size: 11px; font-weight: 900; color: var(--naranja);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pronostico { margin: 7px 0 4px; font-size: 12px; font-weight: 800; color: var(--suave); text-align: center; }
.pronostico strong { margin-left: 4px; color: var(--naranja); font-family: var(--titulo); font-weight: 400; font-size: 16px; }
.pronostico.vacio { font-weight: 700; opacity: 0.75; }
.prob-leyenda { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 12px; font-size: 12px; font-weight: 800; color: var(--suave); }
.prob-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.prob-leyenda i { width: 14px; height: 7px; border-radius: 99px; }
.partidos-ayuda { margin: -4px 0 14px; font-size: 12px; color: var(--suave); line-height: 1.4; }
.partido.por-jugar { border-style: dashed; border-color: rgba(255, 159, 28, 0.35); }
.vs { font-family: var(--titulo); font-size: 15px; color: var(--suave); padding: 0 4px; }
.por-jugar-et {
  margin: 7px 0 5px; font-size: 10px; font-weight: 900; color: var(--naranja); text-align: center;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--suave); line-height: 1.35; }
.stats span:last-child { text-align: right; }
.stats b { color: var(--texto); }
.h2h { margin: 6px 0 0; font-size: 11px; color: var(--suave); text-align: center; }
.prob { display: grid; height: 7px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.prob i { display: block; }
.p-l { background: var(--azul); }
.p-e { background: #8f8aa8; }
.p-v { background: var(--rosa); }
.prob-num { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; margin-top: 3px; font-size: 11px; font-weight: 900; color: var(--suave); }
.prob-num span { white-space: nowrap; }
.prob-num span:first-child { color: #7fcfff; }
.prob-num span:last-child { text-align: right; color: #ff8fb3; }

/* tabla y «Mejores jugadores del torneo», una al lado de la otra */
.copa-abajo {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start;
  margin-top: 22px;
}
/* las dos tarjetas quedan del mismo alto y los escudos bajan al pie de la suya */
.copa-abajo .tabla-copa { margin-top: 0; display: flex; flex-direction: column; }
.copa-abajo .escudos-debajo { margin-top: auto; }
.copa-abajo .tabla-marco { margin-bottom: 14px; }
/* Apertura, Clausura y las finales, debajo de la anual (pedido #46) */
.torneo { margin: 4px 0 14px; padding-top: 16px; border-top: 1px solid var(--borde); }
.torneo .tabla-cabeza h3 { font-size: 24px; }
.final-nombre {
  margin: 0 0 6px; text-align: center; color: var(--naranja); font-weight: 900; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.partido-final { border-color: rgba(255, 210, 63, 0.45); background: rgba(255, 210, 63, 0.07); }
.partido-final .final-nombre { color: #ffe27a; }
.definitorio .partidos-fecha { grid-template-columns: minmax(0, 1fr); }
/* la tabla necesita unos 640 px: por debajo de 1120 px de pantalla, una abajo de la otra */
@media (max-width: 1120px) {
  .copa-abajo { grid-template-columns: 1fr; }
}
.mejores {
  padding: 26px 22px 20px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--borde);
}
.mejores-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jugador {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--borde);
  transition: transform 0.25s ease, background 0.25s ease;
}
.jugador:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.08); }
.inicial {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulo); font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--rosa), var(--azul)); box-shadow: 0 0 14px rgba(255, 61, 127, 0.35);
}
.jugador-escudo {
  width: 44px; height: 52px; object-fit: contain; justify-self: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.jugador-info b { font-size: 18px; }
.jugador-info p { margin: 4px 0 0; color: var(--suave); font-size: 14px; font-weight: 700; line-height: 1.35; }
.premios { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.premio {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 900; background: rgba(255, 255, 255, 0.08);
}
.premio-oro { color: #ffe27a; background: rgba(255, 210, 63, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.45); }
.premio-plata { color: #e6ecf5; background: rgba(200, 210, 225, 0.14); box-shadow: inset 0 0 0 1px rgba(200, 210, 225, 0.45); }
.jugador-dato { text-align: center; min-width: 58px; }
.jugador-dato strong { display: block; font-family: var(--titulo); font-weight: 400; font-size: 30px; line-height: 1; color: #fff; }
.jugador-dato span { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); }
.jugador-oro { background: rgba(255, 210, 63, 0.08); border-color: rgba(255, 210, 63, 0.35); }
.jugador-oro .inicial {
  color: #3a2600; background: linear-gradient(180deg, #fff6b0 0%, #ffd23f 45%, #e0a10b 100%);
  box-shadow: 0 0 16px rgba(255, 210, 63, 0.55);
}
.jugador-oro .jugador-dato strong { color: #ffe27a; text-shadow: 0 0 14px rgba(255, 210, 63, 0.7); }

/* ---------- juegos para jugar en la página ---------- */
.grilla-jugar { display: grid; gap: 18px; }
.juego-propio {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; border-radius: 24px;
  background: linear-gradient(160deg, var(--tarjeta-2), var(--fondo-2));
  border: 1px solid rgba(255, 159, 28, 0.35); box-shadow: 0 0 50px rgba(255, 159, 28, 0.10);
}
.juego-propio-imagen { display: block; overflow: hidden; }
.juego-propio-imagen img {
  width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.juego-propio:hover .juego-propio-imagen img { transform: scale(1.04); }
.juego-propio-texto { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.juego-propio-texto h3 { margin: 0 0 10px; font-family: var(--titulo); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
.juego-propio-texto > p:not(.antetitulo) { margin: 0 0 20px; color: var(--suave); }
.boton-jugar {
  background: linear-gradient(180deg, #ffd27a, var(--naranja)); color: #1a0f00;
  box-shadow: 0 6px 24px rgba(255, 159, 28, 0.45);
}
.boton-jugar:hover { box-shadow: 0 10px 32px rgba(255, 159, 28, 0.6); }

/* ---------- juegos ---------- */
.grilla-juegos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.juego {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radio);
  text-decoration: none; background: var(--tarjeta); box-shadow: 0 0 0 1px var(--borde);
  transition: transform .25s ease, box-shadow .25s ease;
}
.juego img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.juego::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 22, 0.95) 0%, rgba(8, 6, 22, 0.15) 60%);
}
.juego span {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1;
  font-family: var(--titulo); font-size: 26px; line-height: 1.1;
}
.juego:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--azul), 0 14px 34px rgba(70, 185, 255, 0.28); }
.juego:hover img { transform: scale(1.05); }

/* ---------- galletita ---------- */
.galletita {
  text-align: center; padding: 64px 24px; margin: 24px 0 8px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--borde);
}
.galletita-titulo { font-family: var(--titulo); font-size: clamp(30px, 5vw, 50px); line-height: 1.1; margin: 0 0 12px; }
.neon-rosa { color: #ff8fb0; text-shadow: 0 0 18px rgba(255, 61, 127, 0.8); }
.neon-azul { color: #9fd8ff; text-shadow: 0 0 18px rgba(70, 185, 255, 0.8); }
.galletita > p:not(.galletita-titulo) { color: var(--suave); margin: 0 0 24px; font-size: 18px; }
.galletita .acciones { justify-content: center; }

.pie { text-align: center; padding: 32px 16px 40px; color: var(--suave); font-size: 15px; }
.pie a { color: var(--texto); font-weight: 800; }

/* ---------- pantallas chicas ---------- */
@media (max-width: 1000px) {
  .grilla-videos { grid-template-columns: repeat(3, 1fr); }
  .fila-shorts { grid-template-columns: repeat(3, 1fr); }
  .copa { grid-template-columns: 1fr; }
  .juego-propio { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu { gap: 2px; }
  .menu a { padding: 8px 9px; }
  .portada { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .grilla-juegos { grid-template-columns: repeat(2, 1fr); }
  .grilla-videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 0 16px; }
  .barra-in { padding: 8px 16px; gap: 12px; }
  .menu { display: none; }
  .boton-chico { margin-left: auto; }
  .marca span { font-size: 20px; }
  .bajada { font-size: 18px; }
  .sonido { right: 10px; bottom: 10px; padding: 6px 12px; font-size: 13px; min-height: 36px; }
  .acciones .boton { flex: 1 1 auto; }
  .seccion { padding: 32px 0; }
  .grilla-videos { gap: 18px 12px; }
  .video-titulo { font-size: 15px; }
  /* shorts: fila que se desliza con el dedo */
  .fila-shorts {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none;
  }
  .fila-shorts::-webkit-scrollbar { display: none; }
  .short { flex: 0 0 42%; scroll-snap-align: start; }
  .copa { padding: 22px 16px; gap: 24px; }
  .capitulos { grid-template-columns: 1fr; }
  .grilla-juegos { gap: 12px; }
  .juego span { font-size: 20px; left: 12px; bottom: 10px; }
  .tabla-copa { padding: 18px 10px 16px; }
  .tabla-cabeza { padding: 0 6px; flex-wrap: wrap; gap: 2px 12px; }
  .tabla-copa .extra { display: none; }
  .tabla-copa th, .tabla-copa td { padding: 8px 5px; }
  .tabla-copa td.pos { width: 34px; font-size: 17px; }
  .tabla-copa .eq { min-width: 0; gap: 8px; }
  .tabla-copa .eq img { width: 24px; height: 28px; }
  .tabla-copa td.equipo b { font-size: 15px; }
  .tabla-copa td.equipo small { font-size: 11px; }
  .tabla-copa td.pts { font-size: 19px; min-width: 40px; }
  .rotulo { font-size: 11px; }
  .rotulo-campeon { font-size: 17px; }
  .escudos-debajo { gap: 12px 22px; }
  .escudos-debajo img { height: 56px; }
  .fecha { grid-template-columns: 1fr; gap: 4px; }
  .fecha-num { margin: 4px 0 0; }
  .partidos-fecha { grid-template-columns: 1fr; }
  .mejores { padding: 18px 10px 14px; }
  .mejores .tabla-cabeza { padding: 0 6px; flex-wrap: wrap; gap: 2px 12px; }
  .jugador { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .inicial { width: 36px; height: 36px; font-size: 18px; }
  .jugador-escudo { width: 36px; height: 42px; }
  .jugador-info b { font-size: 16px; }
  .jugador-info p { font-size: 13px; }
  .jugador-dato { min-width: 46px; }
  .jugador-dato strong { font-size: 24px; }
  .jugador-dato span { font-size: 10px; }
  .juego-propio-texto { padding: 20px 18px 22px; }
  .galletita { padding: 44px 16px; }
}

/* =====================================================================
   Efectos
   ===================================================================== */

/* --- portada: el logo se enciende como un cartel de neón y el resto entra escalonado --- */
.logo-neon { animation: encender 1.5s linear both, respirar 3.5s ease-in-out 1.6s infinite alternate; }
@keyframes encender {
  0%   { opacity: 0;    filter: brightness(0.4) saturate(0.3); }
  8%   { opacity: 1;    filter: brightness(1.2) saturate(1); }
  11%  { opacity: 0.25; filter: brightness(0.5) saturate(0.4); }
  18%  { opacity: 1;    filter: brightness(1.2) saturate(1); }
  21%  { opacity: 0.5;  filter: brightness(0.7) saturate(0.6); }
  30%  { opacity: 1;    filter: brightness(1.25) saturate(1.1); }
  100% { opacity: 1;    filter: brightness(1) saturate(1); }
}
@keyframes respirar {
  from { filter: brightness(1) saturate(1); }
  to   { filter: brightness(1.14) saturate(1.15); }
}
.portada-texto > :not(h1) { animation: entrar 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.portada-texto > .bajada   { animation-delay: 0.45s; }
.portada-texto > .chips    { animation-delay: 0.58s; }
.portada-texto > .acciones { animation-delay: 0.71s; }
@keyframes entrar {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.ultimo { animation: entrar-3d 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
@keyframes entrar-3d {
  from { opacity: 0; transform: perspective(1200px) translateX(60px) rotateY(-16deg) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.punto { animation: latido 1.6s ease-in-out infinite; }
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 31, 69, 0.7), 0 0 10px var(--rojo); }
  60%      { box-shadow: 0 0 0 7px rgba(255, 31, 69, 0), 0 0 10px var(--rojo); }
}

/* --- botón Suscribirse: un brillo que lo cruza cada tanto --- */
.boton-sub { position: relative; overflow: hidden; isolation: isolate; }
.boton-sub::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: barrido 4.5s ease-in-out 2s infinite;
}
@keyframes barrido {
  0%   { left: -60%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}

/* --- barra de progreso de la página, debajo del menú (sólo donde el navegador la sabe hacer) --- */
.progreso { display: none; }
@supports (animation-timeline: scroll()) {
  .progreso {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: linear-gradient(90deg, var(--rosa), var(--naranja), var(--azul));
    box-shadow: 0 0 12px rgba(255, 61, 127, 0.7);
    transform-origin: left; transform: scaleX(0);
    animation: avance linear both; animation-timeline: scroll(root);
  }
  @keyframes avance { to { transform: scaleX(1); } }
}

/* --- menú: una píldora que se desliza hasta la sección en la que estás --- */
.menu { position: relative; }
.menu a { position: relative; z-index: 1; }
.menu a.activo { color: var(--texto); }
.menu a.activo:hover { background: transparent; }
.menu-indicador {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; opacity: 0;
  background: rgba(255, 61, 127, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 61, 127, 0.45), 0 0 18px rgba(255, 61, 127, 0.25);
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.2, 1), width 0.45s cubic-bezier(0.3, 0.8, 0.2, 1), opacity 0.3s;
}

/* --- títulos de sección: una línea de neón que se dibuja al aparecer --- */
.seccion-cabeza h2::after, .copa h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 10px; border-radius: 4px;
  background: linear-gradient(90deg, var(--rosa), var(--azul));
  box-shadow: 0 0 14px rgba(255, 61, 127, 0.6);
}
.copa h2::after { background: linear-gradient(90deg, var(--naranja), var(--rosa)); }
.js .aparece h2::after, .js .copa.aparece h2::after {
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.js .aparece.visto h2::after { transform: scaleX(1); }

/* --- Copa: borde de colores que gira --- */
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.copa {
  border: 2px solid transparent;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(255, 159, 28, 0.20), transparent 70%) padding-box,
    linear-gradient(160deg, var(--tarjeta-2), var(--fondo-2)) padding-box,
    conic-gradient(from var(--giro), rgba(255, 159, 28, 0.9), rgba(255, 61, 127, 0.5), rgba(70, 185, 255, 0.35), rgba(255, 61, 127, 0.5), rgba(255, 159, 28, 0.9)) border-box;
  animation: girar 9s linear infinite;
}
@keyframes girar { to { --giro: 360deg; } }

/* --- tarjetas: se inclinan siguiendo el mouse y les pasa un reflejo --- */
.inclina {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sube, 0px));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.inclina.moviendo { transition: transform 0.12s linear, box-shadow 0.3s ease; }
.video-mini { position: relative; }
.video-mini::before, .short::before, .juego::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 45%);
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}
.video:hover .video-mini::before, .short:hover::before, .juego:hover::before { opacity: 1; }
.video:hover .video-mini, .short:hover, .juego:hover { --sube: -6px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sube)); }
.video-mini img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.video:hover .video-mini img { transform: scale(1.06); }
.short img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.short:hover img { transform: scale(1.06); }

/* --- el video aparece con un fundido al tocar la miniatura --- */
.reproductor iframe { animation: fundido 0.5s ease both; }
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }

/* --- lo que entra al hacer scroll: sube, se enfoca y aparece, de a uno --- */
.js .aparece {
  opacity: 0; translate: 0 30px; scale: 0.97;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .aparece.visto { opacity: 1; translate: none; scale: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .aparece { opacity: 1; translate: none; scale: none; }
  .js .aparece h2::after { transform: none; }
  .progreso { display: none; }
}

/* ---------- simulador de pronósticos (pedidos #22 y #23) ---------- */
.mi-pron { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--suave); }
.mi-pron input {
  width: 38px; padding: 4px 2px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: #120f2a;
  color: #fff; font: inherit; font-size: 15px; text-align: center; -moz-appearance: textfield;
}
.mi-pron input::-webkit-inner-spin-button, .mi-pron input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mi-pron input:focus { outline: 2px solid var(--naranja); outline-offset: 1px; }
.pts-pron { margin-left: 6px; font-style: normal; font-weight: 900; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.pts-3 { color: #ffd23f; background: rgba(255, 210, 63, 0.15); }
.pts-1 { color: #5fd36b; background: rgba(95, 211, 107, 0.15); }
.pts-0 { color: var(--suave); }
.simulador { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--borde); }
.simulador h4 { margin: 0 0 6px; font-family: var(--titulo); font-weight: 400; font-size: 22px; }
.simulador h4 span { margin-left: 8px; font-family: var(--cuerpo); font-size: 12px; font-weight: 900; color: var(--naranja); text-transform: uppercase; letter-spacing: 0.08em; }
.sim-ayuda { margin: 0 0 10px; font-size: 13px; color: var(--suave); }
.sim-tabla { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; font-size: 14px; }
.sim-tabla th { font-size: 11px; color: var(--suave); text-transform: uppercase; font-weight: 900; padding: 2px 6px; text-align: center; }
.sim-tabla th:nth-child(2) { text-align: left; }
.sim-tabla td { padding: 6px; text-align: center; font-weight: 800; background: rgba(255, 255, 255, 0.04); }
.sim-tabla td:first-child { border-radius: 10px 0 0 10px; box-shadow: inset 3px 0 0 var(--zona, transparent); }
.sim-tabla td:last-child { border-radius: 0 10px 10px 0; font-family: var(--titulo); font-weight: 400; font-size: 18px; }
.sim-tabla td.sim-eq { text-align: left; }
.sim-eq span { display: inline-flex; align-items: center; gap: 6px; }
.sim-eq img { width: 18px; height: 22px; object-fit: contain; }
.sim-eq em { display: block; font-style: normal; font-size: 11px; font-weight: 900; }
.sim-mueve { font-size: 11px; margin-left: 4px; }
.sim-sube { color: #5fd36b; }
.sim-baja { color: #ff5a6e; }
.sim-puntos { margin: 10px 0 0; font-weight: 900; color: #ffe066; }
.sim-borrar { margin-top: 8px; border: 0; background: none; color: var(--azul); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; padding: 0; }
.sim-borrar:hover { text-decoration: underline; }

/* cierre de pronósticos (#26) y grupos (#24) */
.mi-pron-cierre { flex-basis: 100%; text-align: center; font-size: 10px; color: var(--naranja); font-weight: 900; }
.mi-pron { flex-wrap: wrap; }
.mi-pron input:disabled { opacity: 0.6; cursor: not-allowed; }
.grupo { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--borde); }
.grupo h5 { margin: 0 0 6px; font-family: var(--titulo); font-weight: 400; font-size: 20px; }
.grupo-campo { display: grid; gap: 4px; margin: 8px 0; font-size: 13px; font-weight: 900; color: var(--suave); }
.grupo-campo input, .grupo-codigo {
  width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: #120f2a;
  color: #fff; font: inherit; font-size: 14px; resize: vertical;
}
.grupo-codigo { font-size: 12px; word-break: break-all; }
.sim-boton {
  padding: 8px 16px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, 0.25); background: transparent;
  color: var(--texto); font: inherit; font-weight: 900; cursor: pointer; margin: 2px 0 6px;
}
.sim-boton:hover { border-color: var(--azul); }
.grupo-aviso { min-height: 1.2em; margin: 4px 0; font-size: 13px; font-weight: 800; color: #ffe066; }
.grupo-quitar { border: 0; background: none; color: var(--suave); font-size: 18px; cursor: pointer; padding: 0 6px; }
.grupo-quitar:hover { color: #ff5a6e; }

/* créditos (pedido #25) */
.creditos {
  max-width: 420px; margin: 0 auto 18px; padding: 14px 18px; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, var(--tarjeta-2), var(--fondo-2)); border: 1px solid rgba(255, 159, 28, 0.35);
}
.creditos p { margin: 0; }
.creditos-titulo { font-family: var(--titulo); font-size: 22px; color: var(--naranja); margin-bottom: 4px !important; }
