/* ═══════════════════════════════════════════════
   FRECUENCIA BOCA — home.css
   Estilos adicionales para home-nueva.html
   ═══════════════════════════════════════════════ */

/* ── STICKY MATCH WIDGET ── */
.sticky-live {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 190;
  background: var(--amarillo);
  border-bottom: 1px solid rgba(6,22,58,0.35);
  display: none;
  box-shadow: 0 6px 22px rgba(0,0,0,0.28),
              inset 0 -1px 0 rgba(255,255,255,0.18);
}
body.partido-activo .sticky-live { display: block; }
body.partido-activo { padding-top: 50px; /* compensar widget */ }

.sticky-live-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 10px var(--grid-pad);
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
}
/* Punto de "en vivo" — ahora azul oscuro sobre fondo amarillo (alto contraste) */
.sl-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--azul);
  flex-shrink: 0;
  animation: sl-pulse 1.4s ease-in-out infinite;
}
@keyframes sl-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(6,22,58,0.55); transform: scale(1); }
  50%     { box-shadow: 0 0 0 8px rgba(6,22,58,0); transform: scale(0.85); }
}
.sl-text {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--azul);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-text strong { color: var(--azul); font-weight: 700; }
.sl-text .sl-sep { color: var(--azul); opacity: 0.4; margin: 0 8px; }
.sl-text .sl-tag { color: var(--azul); opacity: 0.72; font-weight: 600; }
/* Botón — azul sólido sobre amarillo (inversión para contraste WCAG AA) */
.sl-btn {
  background: var(--azul);
  color: var(--amarillo);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid rgba(6,22,58,0.92);
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s var(--ease-out);
}
.sl-btn:hover {
  background: #03102A;
  color: #FFD000;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

/* ── HOME LAYOUT ── */
.home-wrap {
  padding: calc(var(--nav-h) + 36px) 0 80px;
  position: relative;
  z-index: 1;
}
body.partido-activo .home-wrap { padding-top: calc(var(--nav-h) + 36px); }

.home-grid {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--grid-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.home-main { min-width: 0; display: flex; flex-direction: column; gap: 64px; }

.home-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,187,0,0.3) transparent;
}
.home-sidebar::-webkit-scrollbar { width: 6px; }
.home-sidebar::-webkit-scrollbar-track { background: transparent; }
.home-sidebar::-webkit-scrollbar-thumb { background: rgba(245,187,0,0.3); border-radius: 10px; }
.home-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(245,187,0,0.5); }
body.partido-activo .home-sidebar { top: calc(var(--nav-h) + 16px + 50px); max-height: calc(100vh - var(--nav-h) - 82px); }

/* ── SECTION HEADER (compacto para home) ── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.sec-head-l { display: flex; flex-direction: column; gap: 4px; }
.sec-title-h {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  color: var(--blanco);
}
.sec-title-h em { font-style: normal; color: var(--amarillo); }
.sec-link {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--amarillo);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s, transform 0.22s;
}
.sec-link:hover { border-bottom-color: var(--amarillo); transform: translateX(3px); }
.sec-link::after { content: ' →'; }

/* ════════════════════════════════════════════
   SECCIÓN 1 — BOCA HOY (editorial hero)
═══════════════════════════════════════════ */
.boca-hoy-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

/* Noticia principal */
.news-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--amarillo-border);
  background: var(--azul-mid);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.5);
  border-color: var(--amarillo-border-hover);
}
.news-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.news-main:hover .news-img { transform: scale(1.04); }
.news-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(3,16,42,0) 0%,
    rgba(3,16,42,0.2) 40%,
    rgba(3,16,42,0.85) 80%,
    rgba(3,16,42,0.95) 100%);
  pointer-events: none;
}
.news-main-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 32px 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  width: fit-content;
}
.cat-partido    { background: var(--amarillo); color: var(--azul); }
.cat-copa       { background: #9333ea; color: #fff; }
.cat-mercado    { background: #16a34a; color: #fff; }
.cat-seleccion  { background: #2563eb; color: #fff; }
.cat-analisis   { background: rgba(255,255,255,0.15); color: var(--blanco); border: 1px solid rgba(255,255,255,0.2); }

.news-main-title {
  font-family: var(--font-condensed);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--blanco);
  text-wrap: balance;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--blanco-muted);
}
.src-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.src-propio  { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.src-externo { background: rgba(255,255,255,0.06); color: var(--blanco-muted); border: 1px solid rgba(255,255,255,0.14); }

.news-meta .news-time::before { content: '·'; margin-right: 8px; opacity: 0.5; }

/* Cards secundarias */
.news-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-side {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(245,187,0,0.16);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.news-side-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.7s var(--ease-out);
}
.news-side:hover .news-side-img { transform: scale(1.04); }
.news-side-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-side::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--amarillo);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-out);
}
.news-side:hover {
  border-color: var(--amarillo-border-hover);
  transform: translateX(3px);
}
.news-side:hover::before { transform: scaleY(1); }
.news-side-title {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blanco);
  text-wrap: pretty;
}

/* ════════════════════════════════════════════
   SECCIÓN 2 — PRÓXIMO PARTIDO + RESULTADOS
═══════════════════════════════════════════ */
.proximo-card {
  padding: 36px 36px 30px;
}
.prox-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}
.prox-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.prox-team:first-child { align-items: flex-end; }
.prox-team:last-child  { align-items: flex-start; }

.prox-team-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--blanco);
}
.prox-team-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanco-muted);
}

/* Escudo abstracto — placeholder original sin logos copyrighted */
.shield {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid;
  position: relative;
  flex-shrink: 0;
}
.shield-home  { background: linear-gradient(160deg, var(--azul) 0%, var(--azul-mid) 100%); border-color: var(--amarillo-border); color: var(--amarillo); }
.shield-away  { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); color: var(--blanco); }

.prox-mid {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
}
.prox-date-lg {
  font-family: var(--font-condensed);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--amarillo);
  text-shadow: 0 0 40px rgba(245,187,0,0.3);
}
.prox-time {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blanco);
}
.prox-venue {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blanco-dim);
  margin-top: 2px;
}
.prox-comp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blanco-muted);
  margin-top: 2px;
}

.prox-platforms {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(245,187,0,0.10);
}
.plat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid;
  transition: all 0.22s;
}
.plat-pill svg { width: 13px; height: 13px; fill: currentColor; }
.plat-yt { background: rgba(255, 30, 30, 0.12); border-color: rgba(255,30,30,0.35); color: #ff5252; }
.plat-yt:hover { background: rgba(255,30,30,0.25); border-color: #ff5252; transform: translateY(-2px); }
.plat-ig { background: rgba(228, 64, 95, 0.12); border-color: rgba(228, 64, 95, 0.35); color: #f06292; }
.plat-ig:hover { background: rgba(228, 64, 95, 0.25); border-color: #f06292; transform: translateY(-2px); }
.plat-tk { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: var(--blanco-dim); }
.plat-tk:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

/* ─── Live mode swap (próximo partido) ─── */
.prox-title-live,
.prox-state-live,
.prox-sub-live { display: none; }
.prox-sub-next { display: block; }

body.partido-activo .prox-title-next,
body.partido-activo .prox-state-next,
body.partido-activo .prox-sub-next { display: none; }

body.partido-activo .prox-title-live,
body.partido-activo .prox-sub-live { display: block; }
body.partido-activo .prox-state-live { display: flex; }

/* Card glow AMARILLO cuando está en vivo (no rojo) */
body.partido-activo .proximo-card {
  border-color: var(--amarillo-border-hover);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4),
              0 0 0 1px var(--amarillo-border),
              inset 0 1px 0 rgba(245,187,0,0.18);
  animation: live-card-pulse 3.2s ease-in-out infinite;
}
body.partido-activo .proximo-card::before {
  background: linear-gradient(90deg, transparent, var(--amarillo) 50%, transparent);
  opacity: 0.85;
}
@keyframes live-card-pulse {
  0%, 100% { box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,187,0,0.30), inset 0 1px 0 rgba(245,187,0,0.18); }
  50%       { box-shadow: 0 28px 72px rgba(0,0,0,0.45), 0 0 0 1px rgba(245,187,0,0.65), 0 0 38px rgba(245,187,0,0.18), inset 0 1px 0 rgba(245,187,0,0.25); }
}

/* Live state interno */
.prox-state-live {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.prox-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,187,0,0.12);
  border: 1px solid var(--amarillo-border-hover);
  padding: 5px 12px 5px 10px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amarillo);
}
.prox-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amarillo);
  box-shadow: 0 0 0 0 rgba(245,187,0,0.6);
  animation: prox-live-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes prox-live-dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,187,0,0.55); transform: scale(1); }
  50%     { box-shadow: 0 0 0 8px rgba(245,187,0,0); transform: scale(0.82); }
}
.prox-score-big {
  font-family: var(--font-condensed);
  font-size: 64px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--amarillo);
  text-shadow: 0 0 50px rgba(245,187,0,0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: score-glow 3s ease-in-out infinite alternate;
}
.prox-score-sep {
  color: rgba(245,187,0,0.35);
  font-size: 38px;
}
.prox-min {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prox-min-tick { color: rgba(255,255,255,0.5); margin-left: -1px; }
.prox-min-sep { color: rgba(255,255,255,0.3); }
.prox-min-num {
  display: inline-block;
  min-width: 1.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Plataformas: YouTube prominente en vivo, manteniéndose dentro del sistema */
body.partido-activo .plat-yt {
  background: rgba(255, 30, 30, 0.18);
  border-color: rgba(255, 30, 30, 0.55);
  color: #ff8585;
}
body.partido-activo .plat-yt:hover {
  background: rgba(255,30,30,0.28);
  border-color: #ff5252;
  color: #fff;
}

/* Resultados recientes */
.resultados-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.resultados-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amarillo);
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(245,187,0,0.12);
}
.res-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,187,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.22s, padding 0.22s;
}
.res-row:hover {
  background: rgba(245,187,0,0.04);
  padding-left: 8px;
  padding-right: 8px;
}
.res-row:last-child { border-bottom: none; }
.res-comp {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco-muted);
}
.res-teams {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blanco);
  display: flex;
  align-items: center;
  gap: 8px;
}
.res-teams .vs {
  font-size: 11px;
  color: var(--blanco-muted);
  font-weight: 500;
}
.res-score {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 6px;
  min-width: 64px;
  text-align: center;
}
.res-w { background: rgba(34,197,94,0.14); color: #4ade80; }
.res-l { background: rgba(220,38,38,0.14); color: #f87171; }
.res-d { background: rgba(255,255,255,0.06); color: var(--blanco-dim); }

/* ════════════════════════════════════════════
   SECCIÓN 3 — TRANSMISIONES (4 cards)
═══════════════════════════════════════════ */
.tx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tx-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(245,187,0,0.16);
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.32s var(--ease-out);
}
.tx-card:hover {
  border-color: var(--amarillo-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(0,0,0,0.4);
}
.tx-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--azul-mid);
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(245,187,0,0.04) 10px 11px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tx-thumb-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.tx-card:hover .tx-thumb-img { transform: scale(1.05); }
.tx-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,16,42,0) 40%, rgba(3,16,42,0.7) 100%);
}
.tx-play {
  position: absolute;
  z-index: 2;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--amarillo);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 6px rgba(245,187,0,0.18);
  transition: transform 0.3s var(--ease-out);
}
.tx-card:hover .tx-play { transform: scale(1.08); }
.tx-play::before {
  content: '';
  width: 0; height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--azul);
  margin-left: 4px;
}
.tx-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  letter-spacing: 0.04em;
}
.tx-body { padding: 18px 22px 20px; }
.tx-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blanco);
  text-wrap: pretty;
}
.tx-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--blanco-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tx-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--blanco-muted); }

.tx-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  background: linear-gradient(160deg, rgba(245,187,0,0.06) 0%, rgba(245,187,0,0.02) 100%);
  border: 1px dashed var(--amarillo-border);
  min-height: 100%;
  padding: 40px 24px;
}
.tx-card-more:hover {
  background: linear-gradient(160deg, rgba(245,187,0,0.12) 0%, rgba(245,187,0,0.04) 100%);
}
.tx-more-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(245,187,0,0.10);
  border: 1px solid var(--amarillo-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--amarillo);
  font-size: 26px;
  font-weight: 300;
}
.tx-more-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--blanco);
}
.tx-more-sub { font-size: 12px; color: var(--blanco-muted); }

/* YouTube subscribe banner */
.yt-banner {
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(255,30,30,0.18) 0%, rgba(255,30,30,0.06) 100%);
  border: 1px solid rgba(255,30,30,0.32);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.yt-banner-icon {
  width: 42px; height: 42px;
  background: #ff1e1e;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 22px rgba(255,30,30,0.4);
}
.yt-banner-icon svg { width: 22px; height: 22px; fill: #fff; }
.yt-banner-text {
  flex: 1;
  min-width: 0;
}
.yt-banner-t1 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--blanco);
  line-height: 1.2;
}
.yt-banner-t2 {
  font-size: 12.5px;
  color: var(--blanco-muted);
  margin-top: 2px;
}
.yt-banner .btn-sub {
  background: var(--amarillo);
  color: var(--azul);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.yt-banner .btn-sub:hover { background: #FFD000; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(245,187,0,0.4); }

/* ════════════════════════════════════════════
   AD SLOTS
═══════════════════════════════════════════ */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  border-radius: 12px;
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 110px;
}
.ad-slot::before {
  content: 'PUBLICIDAD';
  position: absolute;
  top: 7px; left: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.35);
}
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  height: 90px;
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.02) 0,
    rgba(255,255,255,0.02) 6px,
    rgba(255,255,255,0.05) 6px,
    rgba(255,255,255,0.05) 12px);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
}
.ad-premium .ad-placeholder {
  background-image: repeating-linear-gradient(45deg,
    rgba(245,187,0,0.04) 0,
    rgba(245,187,0,0.04) 6px,
    rgba(245,187,0,0.08) 6px,
    rgba(245,187,0,0.08) 12px);
  border-color: rgba(245,187,0,0.35);
  color: rgba(245,187,0,0.55);
}
.ad-premium::before { content: 'ESPACIO PREMIUM'; color: rgba(245,187,0,0.6); }

/* ════════════════════════════════════════════
   SECCIÓN 4 — MERCADO DE PASES (conditional)
═══════════════════════════════════════════ */
.mercado-wrap { display: none; }
body.ventana-pases .mercado-wrap { display: block; }
body:not(.ventana-pases) .mercado-fallback { display: block; }
body.ventana-pases .mercado-fallback { display: none; }

.mercado-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mercado-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(245,187,0,0.16);
  border-radius: 16px;
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.mercado-card:hover { border-color: var(--amarillo-border-hover); transform: translateY(-3px); }

.player-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--azul-mid) 0%, var(--azul) 100%);
  border: 2px solid var(--amarillo-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 600;
  color: var(--amarillo);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.player-info { flex: 1; min-width: 0; }
.player-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--blanco);
  line-height: 1.1;
}
.player-club {
  font-size: 11.5px;
  color: var(--blanco-muted);
  margin-top: 4px;
}
.player-club .arrow { color: var(--amarillo); margin: 0 5px; opacity: 0.6; }

.status-badge {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  margin-top: 8px;
  display: inline-block;
}
.st-confirmado { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.st-cerca      { background: rgba(59,130,246,0.18); color: #60a5fa; border: 1px solid rgba(59,130,246,0.35); }
.st-rumor      { background: rgba(245,187,0,0.15); color: var(--amarillo); border: 1px solid var(--amarillo-border); }

/* ════════════════════════════════════════════
   SECCIÓN 5 — EMAIL CAPTURE
═══════════════════════════════════════════ */
.email-capture {
  padding: 44px 48px 40px;
  text-align: center;
  position: relative;
}
.email-capture::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(245,187,0,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.email-capture > * { position: relative; z-index: 1; }
.email-title {
  font-family: var(--font-condensed);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  color: var(--blanco);
  margin-bottom: 14px;
}
.email-title em { font-style: normal; color: var(--amarillo); }
.email-sub {
  font-size: 15px;
  color: var(--blanco-dim);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.email-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form input {
  flex: 1;
  min-width: 240px;
  background: rgba(245,187,0,0.06);
  border: 1px solid var(--amarillo-border);
  border-radius: 50px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--blanco);
  outline: none;
  transition: all 0.22s;
}
.email-form input::placeholder { color: var(--blanco-muted); }
.email-form input:focus {
  border-color: var(--amarillo-border-hover);
  background: rgba(245,187,0,0.1);
  box-shadow: 0 0 0 3px rgba(245,187,0,0.08);
}
.email-form button {
  background: var(--amarillo);
  color: var(--azul);
  border: none;
  border-radius: 50px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
}
.email-form button:hover { background: #FFD000; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(245,187,0,0.4); }
.email-success {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #4ade80;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
}
.email-success.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   SECCIÓN 6 — SPONSORS HOME
═══════════════════════════════════════════ */
.sponsors-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.sponsor-logo {
  background: var(--azul-mid);
  border: 1px solid rgba(245,187,0,0.16);
  border-radius: 14px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blanco-muted);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.sponsor-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0 8px,
    rgba(245,187,0,0.03) 8px 9px);
  pointer-events: none;
}
.sponsor-logo:hover {
  border-color: var(--amarillo-border-hover);
  color: var(--amarillo);
  background: rgba(245,187,0,0.06);
  transform: translateY(-2px);
}

.sponsor-cta-inline {
  background: rgba(6,22,58,0.6);
  border: 1px solid var(--amarillo-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sponsor-cta-inline-t {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--blanco);
}
.sponsor-cta-inline-t em { font-style: normal; color: var(--amarillo); }
.sponsor-cta-inline-sub {
  font-size: 13px;
  color: var(--blanco-muted);
  margin-top: 4px;
}

/* ════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sb-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--amarillo-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.sb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amarillo), transparent);
  opacity: 0.5;
}
.sb-head {
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245,187,0,0.10);
}
.sb-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--blanco);
}
.sb-title .star { color: var(--amarillo); margin-right: 6px; }
.sb-more {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amarillo);
  text-decoration: none;
}
.sb-more:hover { color: #FFD000; }
.sb-body { padding: 12px 18px 16px; }

/* Tabs Posiciones */
.sb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(245,187,0,0.08);
  padding-bottom: 0;
}
.sb-tab {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanco-muted);
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.sb-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 10%; right: 10%;
  height: 2px;
  background: var(--amarillo);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.sb-tab.active { color: var(--amarillo); }
.sb-tab.active::after { transform: scaleX(1); }
.sb-tab:hover { color: var(--blanco); }
.sb-tab.active:hover { color: var(--amarillo); }

/* Tabla posiciones */
.std-table { width: 100%; border-collapse: collapse; }
.std-table thead th {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco-muted);
  padding: 6px 4px;
  text-align: right;
  border-bottom: 1px solid rgba(245,187,0,0.08);
}
.std-table thead th:first-child,
.std-table thead th:nth-child(2) { text-align: left; }
.std-table thead th.col-pos { width: 22px; padding-left: 0; }
.std-table tbody td {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blanco-dim);
  padding: 8px 4px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.std-table tbody td.t-pos { color: var(--blanco-muted); text-align: left; padding-left: 0; font-weight: 700; }
.std-table tbody td.t-name { text-align: left; color: var(--blanco); }
.std-table tbody td.t-pts { color: var(--blanco); font-weight: 700; }
.std-table tbody tr:last-child td { border-bottom: none; }
.std-table tbody tr.boca td {
  color: var(--amarillo);
  background: rgba(245,187,0,0.06);
}
.std-table tbody tr.boca td.t-pos { color: var(--amarillo); }
.std-table tbody tr.boca td:first-child {
  position: relative;
  padding-left: 8px;
}
.std-table tbody tr.boca td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--amarillo);
  border-radius: 2px;
}

/* Llave Copa */
.copa-bracket {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.copa-tie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245,187,0,0.06);
}
.copa-tie:last-child { border-bottom: none; }
.copa-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blanco);
}
.copa-team.boca { color: var(--amarillo); }
.copa-mini-shield {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-display);
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco-dim);
}
.copa-team.boca .copa-mini-shield {
  background: rgba(245,187,0,0.15);
  border-color: var(--amarillo-border-hover);
  color: var(--amarillo);
}
.copa-vs {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--blanco-muted);
  letter-spacing: 0.08em;
  padding: 0 8px;
}
.copa-fase {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amarillo);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245,187,0,0.10);
  margin-bottom: 6px;
}

/* Redes sociales sidebar */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.22s;
}
.social-item:hover { padding-left: 4px; }
.social-item:last-child { border-bottom: none; }
.social-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.social-icon svg { width: 15px; height: 15px; }
.social-icon.ig { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }
.social-icon.yt { background: #ff1e1e; }
.social-icon.tk { background: #000; border: 1px solid rgba(255,255,255,0.2); }
.social-icon.fb { background: #1877f2; }
.social-info { flex: 1; min-width: 0; }
.social-platform {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--blanco);
}
.social-count {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  color: var(--amarillo);
  letter-spacing: -0.01em;
}

/* Sidebar ad */
.sb-ad .ad-placeholder {
  width: 100%;
  max-width: none;
  height: 100px;
  font-size: 10px;
}

/* ════════════════════════════════════════════
   NAV OVERRIDES — 6 links + CTA need más respiro
═══════════════════════════════════════════ */
/* Evitar que labels multi-palabra ("Boca Hoy") rompan a 2 líneas */
.nav-links a { white-space: nowrap; }

/* Tablet: el nav de 6 items no entra cómodo → mostrar hamburguesa antes */
@media (min-width: 768px) and (max-width: 1080px) {
  .hamburger { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--nav-h));
    background: #09152C;
    padding: 40px var(--grid-pad-md) 40px;
    gap: 0;
    overflow-y: auto;
    z-index: 190;
    border-top: 1px solid rgba(245,187,0,0.15);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
  .nav-links.open {
    visibility: visible;
    pointer-events: all;
    opacity: 1;
    animation: menuOverlayIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .nav-links.closing {
    visibility: visible;
    pointer-events: none;
    animation: menuOverlayOut 0.22s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  }
  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
  }
  .nav-links li:last-child { margin-top: 32px; }
  .nav-links.open li:nth-child(1) { animation: menuItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.07s forwards; }
  .nav-links.open li:nth-child(2) { animation: menuItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.11s forwards; }
  .nav-links.open li:nth-child(3) { animation: menuItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards; }
  .nav-links.open li:nth-child(4) { animation: menuItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.19s forwards; }
  .nav-links.open li:nth-child(5) { animation: menuItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.23s forwards; }
  .nav-links.open li:nth-child(6) { animation: menuItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.27s forwards; }
  .nav-links a {
    font-family: var(--font-display);
    font-size: 22px;
    padding: 16px 0;
  }
  .nav-links li:last-child .nav-cta {
    padding: 12px 28px !important;
    font-size: 14px !important;
  }
}

/* Desktop wide: bajar gap entre links para que 6 items entren cómodos */
@media (min-width: 1081px) and (max-width: 1280px) {
  .nav-links { gap: 28px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1180px) {
  /* Reordenar: en mobile/tablet — Posiciones ARRIBA de Transmisiones,
     y el resto del sidebar al final. Usamos display:contents para aplanar
     main+sidebar en un solo flex container y asignar orders explícitos. */
  .home-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* override del align-items:start del rule base — sidebar cards y ads ocupan todo el ancho */
    gap: 48px;
  }
  .home-main,
  .home-sidebar {
    display: contents;
  }
  .home-sidebar {
    position: static;
  }

  /* Default fallback */
  .home-main > *,
  .home-sidebar > * { order: 60; }

  /* Orden final en mobile */
  .home-main > section:nth-of-type(1) { order: 10; }  /* Boca Hoy */
  .home-main > section.prox-section   { order: 20; }  /* Próximo + Resultados */
  .sb-posiciones                      { order: 25; }  /* ← Posiciones ARRIBA de Transmisiones */
  .home-main > section:nth-of-type(3) { order: 30; }  /* Transmisiones */
  .home-main > .ad-adsense:not(.mercado-fallback) { order: 40; }
  .home-main > section.mercado-wrap   { order: 50; }
  .home-main > .mercado-fallback      { order: 50; }
  .home-main > section:nth-of-type(5) { order: 60; }  /* Email */
  .home-main > .ad-premium            { order: 70; }
  .home-main > section:nth-of-type(6) { order: 80; }  /* Sponsors */
  .home-sidebar > .sb-card:not(.sb-posiciones):not(.sb-ad) { order: 90; }  /* Redes */
  .home-sidebar > .sb-ad              { order: 95; }
}

@media (max-width: 1024px) {
  .boca-hoy-grid { grid-template-columns: 3fr 2fr; gap: 14px; }
  .news-main { aspect-ratio: 16 / 11; }
  .news-main-body { padding: 22px 22px 20px; }
  .mercado-grid { grid-template-columns: 1fr 1fr; }
  .sponsors-row { grid-template-columns: repeat(4, 1fr); }
  .proximo-card { padding: 28px 24px; }
  .prox-top { gap: 16px; }
  .shield { width: 60px; height: 60px; font-size: 18px; }
}

@media (max-width: 768px) {
  .sticky-live-inner { padding: 10px var(--grid-pad-sm); gap: 10px; }
  .sl-text { font-size: 12px; }
  .sl-text .sl-sep { margin: 0 6px; }
  .sl-text .sl-tag { display: none; }
  .sl-btn { padding: 7px 14px; font-size: 10.5px; }

  .home-wrap { padding-top: calc(var(--nav-h) + 20px); }
  .home-grid { padding: 0 var(--grid-pad-sm); gap: 32px; }
  .home-main { gap: 48px; }
  .home-sidebar { grid-template-columns: 1fr; }

  /* ── Ancho completo en mobile para sidebar cards y ads ── */
  .sb-card,
  .ad-slot {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  /* Ad placeholders — ocupar todo el ancho disponible (sin cap de 728px) */
  .ad-placeholder {
    max-width: none;
    width: 100%;
    height: 72px;          /* alto más compacto típico de mobile 320x50/300x250 */
    font-size: 10.5px;
  }
  .ad-slot { padding: 22px 12px 14px; min-height: 0; }
  .ad-slot::before { left: 14px; top: 8px; }
  /* Sidebar ad dentro de su card: también full width */
  .sb-ad { padding: 12px !important; }
  .sb-ad .ad-placeholder { height: 88px; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .boca-hoy-grid { grid-template-columns: 1fr; }
  .news-main-body { padding: 20px 20px 18px; }

  .prox-top {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .prox-team, .prox-team:first-child, .prox-team:last-child { align-items: center; }
  .prox-mid { order: -1; padding: 0; }
  .prox-date-lg { font-size: 32px; }
  .prox-score-big { font-size: 56px; }

  .res-row { grid-template-columns: 100px 1fr auto; gap: 10px; padding: 12px 0; }
  .res-comp { font-size: 9.5px; }
  .res-teams { font-size: 13px; }

  .tx-grid { grid-template-columns: 1fr; }
  .tx-card-more { min-height: 160px; }

  .yt-banner { flex-wrap: wrap; padding: 16px 18px; }
  .yt-banner-text { flex-basis: calc(100% - 60px); }
  .yt-banner .btn-sub { width: 100%; justify-content: center; }

  .mercado-grid { grid-template-columns: 1fr; }

  .email-capture { padding: 32px 24px 30px; }

  .sponsors-row { grid-template-columns: repeat(2, 1fr); }
  .sponsor-cta-inline { flex-direction: column; align-items: flex-start; }
}


/* ════════════════════════════════════════════
   PRÓXIMO PARTIDO — CONTEXTO ESTADÍSTICO
   (bloques A/B/C/D — sección 2.1)
═══════════════════════════════════════════ */
.prox-ctx { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }

/* CTA Match Center dentro de la card (solo en vivo) */
.prox-mc-cta { display: none; margin-top: 18px; }
body.partido-activo .prox-mc-cta { display: flex; justify-content: center; }
.prox-mc-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--amarillo); color: var(--azul);
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 50px;
  text-decoration: none; border: none;
  transition: all 0.24s var(--ease-out);
  box-shadow: 0 8px 28px rgba(245,187,0,0.26);
}
.prox-mc-btn:hover { background: #FFD000; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(245,187,0,0.38); }

/* A) Grid 2×2 de mini-cards */
.ctx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ctx-card {
  background: var(--glass-bg-light);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(245,187,0,0.14);
  border-radius: var(--radio-md);
  padding: 16px 18px 15px;
  display: flex; flex-direction: column; gap: 7px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.ctx-card:hover { border-color: var(--amarillo-border-hover); transform: translateY(-2px); }
.ctx-label {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amarillo);
}
.ctx-value {
  font-family: var(--font-condensed);
  font-size: 26px; font-weight: 600;
  line-height: 0.95; letter-spacing: -0.01em;
  color: var(--blanco);
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
}
.ctx-value .ctx-chip {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.ctx-chip-w { background: var(--verde-bg); color: var(--verde); border: 1px solid var(--verde-border); }
.ctx-chip-l { background: var(--rojo-bg);  color: var(--rojo);  border: 1px solid var(--rojo-border); }
.ctx-chip-d { background: var(--neutro-bg); color: var(--blanco-dim); border: 1px solid rgba(255,255,255,0.14); }
.ctx-sub { font-size: 11.5px; color: var(--blanco-muted); line-height: 1.4; }
.ctx-sub em { font-style: normal; color: var(--blanco-dim); }

/* B) Racha visual — últimos 5 */
.ctx-racha {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--glass-bg-light);
  border: 1px solid rgba(245,187,0,0.14);
  border-radius: var(--radio-md);
  overflow-x: auto;
}
.ctx-racha-label {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amarillo);
  white-space: nowrap;
}
.ctx-racha-dots { display: flex; gap: 8px; }
.rd {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
  cursor: default;
}
.rd-g { background: var(--verde-bg); color: var(--verde); border: 1px solid var(--verde-border); }
.rd-e { background: var(--neutro-bg); color: var(--blanco-dim); border: 1px solid rgba(255,255,255,0.16); }
.rd-p { background: var(--rojo-bg); color: var(--rojo); border: 1px solid var(--rojo-border); }
.ctx-racha-meta { font-size: 11px; color: var(--blanco-muted); white-space: nowrap; margin-left: auto; }

/* C) Historial histórico — franja de 4 números */
.ctx-h2h {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,187,0,0.12);
  border: 1px solid rgba(245,187,0,0.14);
  border-radius: var(--radio-md);
  overflow: hidden;
}
.ctx-h2h-item {
  background: rgba(6,22,58,0.82);
  padding: 16px 12px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.ctx-h2h-num {
  font-family: var(--font-condensed);
  font-size: 30px; font-weight: 600; line-height: 1;
  letter-spacing: -0.01em;
  color: var(--blanco);
}
.ctx-h2h-item.is-boca .ctx-h2h-num { color: var(--amarillo); text-shadow: 0 0 34px rgba(245,187,0,0.32); }
.ctx-h2h-lbl {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blanco-muted);
}
.ctx-h2h-title {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amarillo);
  padding: 2px 0 0;
}

/* D) Últimos 3 cruces */
.ctx-cruces { display: flex; flex-direction: column; }
.ctx-cruces .resultados-head { padding-top: 6px; }

@media (max-width: 768px) {
  .ctx-grid { grid-template-columns: 1fr; }
  .ctx-h2h { grid-template-columns: repeat(4, minmax(78px, 1fr)); }
  .ctx-racha { gap: 12px; }
  .ctx-racha-meta { display: none; }
}


/* ════════════════════════════════════════════
   PRIORIDAD EN VIVO + COPA SEPARADA
   ════════════════════════════════════════════ */

/* Si hay partido en vivo, el módulo del partido sube al tope de la home
   (por encima de Boca Hoy). El mercado NO se mueve: su visibilidad
   depende solo de body.ventana-pases. */
body.partido-activo .home-main > section.prox-section { order: -1; }

/* Card de Copa: bloque propio, separado de la tabla de liga */
.sb-copa .copa-fase { margin-bottom: 10px; }

@media (max-width: 1080px) {
  body.partido-activo .home-main > section.prox-section { order: 5; }
  .home-sidebar > .sb-card.sb-copa:not(.sb-ad):not(.sb-posiciones) { order: 26; }
}


/* ════════════════════════════════════════════
   PANELES DE ESCUDOS · local / visitante
   Caja fija de 120px de alto para cualquier escudo +
   el mismo asset ampliado como marca de agua de fondo.
   ════════════════════════════════════════════ */
.prox-top > .prox-team {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8px 4px 4px;
  border: none;
  background: none;
}
/* Marca de agua: el mismo escudo, ampliado y rotado */
.prox-top > .prox-team::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 155%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-16deg);
  background-image: var(--crest);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(0.7) brightness(1.1);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 92%);
}
.prox-top > .prox-team:last-child::before {
  transform: translate(-50%, -50%) rotate(16deg);
  opacity: 0.18;
}

/* Escudo en primer plano — alto fijo 120px, sin círculo */
.shield.shield-img {
  width: 120px;
  height: 120px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
}
.shield.shield-img img {
  display: block;
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .shield.shield-img { width: 88px; height: 88px; }
  .shield.shield-img img { max-width: 88px; max-height: 88px; }
  .prox-top > .prox-team { padding: 6px 2px 2px; }
}


/* Escudos chicos en la barra sticky de partido en vivo */
.sl-shield {
  height: 1.35em;
  width: auto;
  max-width: 1.35em;
  object-fit: contain;
  vertical-align: -0.32em;
  margin: 0 2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}


/* ── Transmisión embebida dentro de la card del partido ── */
.prox-stream { display: none; margin-top: 20px; }
body.partido-activo .prox-stream { display: block; }
.prox-stream-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--amarillo-border);
  background: linear-gradient(160deg, rgba(11,35,76,0.9) 0%, rgba(3,16,42,0.96) 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
}
.prox-stream-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .prox-stream-frame { max-width: none; }
}
