/* DeportesDatos — tema Stitch */
:root {
  --bg: #0b1326;
  --surface: #131b2e;
  --surface-high: #222a3d;
  --surface-glass: rgba(23, 31, 51, 0.85);
  --primary: #ff7a00;
  --primary-dim: #ffb68b;
  --on-surface: #e8eaef;
  --on-variant: #8b9bb8;
  --outline: #2d3449;
  --success: #34d399;
  --danger: #f87171;
  --live: #ff5470;
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: var(--surface-high) var(--bg); }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(255,122,0,0.07), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(180,197,255,0.05), transparent 55%),
    var(--bg);
  color: var(--on-surface);
  min-height: 100vh;
}
::selection { background: rgba(255,122,0,0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-high); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }
a:focus-visible, button:focus-visible, input:focus-visible, .nav-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--outline);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 50;
  transition: transform 0.3s ease;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--on-variant);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dim);
  padding: 0 0.5rem;
  text-decoration: none;
}
.brand span { color: var(--primary); }
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
}
.brand-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.brand-text { line-height: 1.1; }
.brand-text span { color: var(--primary); }

.nav-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-variant); margin: 1rem 0.5rem 0.5rem; }
.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 10px;
  color: var(--on-variant); text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-item:hover { background: var(--surface-high); color: var(--on-surface); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(255,122,0,0.15), rgba(255,122,0,0.05));
  color: var(--primary);
  border: 1px solid rgba(255,122,0,0.25);
}
.nav-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-left: auto; }

/* Botón volver al menú principal (móvil / sidebar) */
.nav-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0.5rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,122,0,0.2), rgba(255,122,0,0.08));
  border: 1px solid rgba(255,122,0,0.4);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.nav-home-btn:hover,
.nav-home-btn:active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255,122,0,0.3), rgba(255,122,0,0.12));
  color: var(--primary-dim);
}
.status-box {
  margin-top: auto;
  padding: 1rem;
  background: var(--surface-high);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
}
.status-box .label { font-size: 0.75rem; color: var(--on-variant); }
.status-box .val { color: var(--success); font-weight: 700; }

/* Main */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 1.5rem 2rem 3rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.league-logo-wrap {
  position: relative;
  align-self: center;
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  flex: none;
}
.league-logo-wrap.is-hidden { display: none; }
.league-logo-wrap::before {
  content: '';
  position: absolute; inset: -35%;
  background: radial-gradient(circle, rgba(255,122,0,0.4), transparent 70%);
  filter: blur(7px);
  animation: logoGlowPulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 0.85; transform: scale(1.1); }
}
.league-logo-3d {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  --poster-color: transparent;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.league-logo-3d.is-in { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .league-logo-wrap::before { animation: none; opacity: 0.6; }
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--surface-high);
  border: 1px solid var(--outline);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
body.menu-open { overflow: hidden; }
.header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.header .sub { color: var(--on-variant); font-size: 0.9rem; margin-top: 0.25rem; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,122,0,0.12);
  border: 1px solid rgba(255,122,0,0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: fadeInUp 0.4s var(--ease) both;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,122,0,0.35);
  box-shadow: 0 10px 32px rgba(255,122,0,0.14);
}
.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
  font-size: 0.75rem; color: var(--on-variant);
}
.card-top .tag {
  background: var(--surface-high);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.matchup { margin-bottom: 1.25rem; }
.team-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0;
  font-weight: 600;
}
.team-row .name { font-size: 0.95rem; }
.team-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.team-logo-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-high);
  color: var(--on-variant);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pick-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255,122,0,0.12), rgba(255,122,0,0.04));
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.pick-banner strong { color: var(--primary); font-weight: 800; }
.pick-banner .team-logo { width: 22px; height: 22px; }

/* Poster "Gana [equipo]" */
.pick-poster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(255,122,0,0.14), rgba(255,122,0,0.03));
  border: 1px solid rgba(255,122,0,0.28);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  position: relative;
}
.pick-poster .team-logo { width: 48px; height: 48px; }
.pick-poster .team-logo-fallback { width: 48px; height: 48px; font-size: 1rem; }
.pick-poster-text { display: flex; flex-direction: column; min-width: 0; }
.pick-poster-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--on-variant);
  font-weight: 700;
}
.pick-poster-team {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.pick-seal {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.pick-seal.win { background: rgba(52,211,153,0.2); color: var(--success); }
.pick-seal.loss { background: rgba(248,113,113,0.2); color: var(--danger); }

.mono { font-family: var(--font-mono); font-size: 0.95rem; }

/* Semáforo de confianza */
.card.conf-high { border-left: 3px solid var(--success); }
.card.conf-mid { border-left: 3px solid var(--primary); }
.card.conf-low { border-left: 3px solid #64748b; }
/* Sin edge suficiente: borde discontinuo y apagado, nunca el color de una jugada real */
.card.conf-none { border-left: 3px dashed #475569; opacity: 0.85; }
.card-top .tag-nopick { background: rgba(100,116,139,0.2); color: #94a3b8; }

/* Pulso del día */
.day-pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255,122,0,0.06);
  border: 1px solid rgba(255,122,0,0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--on-variant);
  animation: fadeInUp 0.45s var(--ease) both;
}
.day-pulse strong {
  font-family: var(--font-mono);
  color: var(--on-surface);
  font-weight: 700;
}
.day-pulse-sep { opacity: 0.45; }
#pulse-off-line { display: none; }
.day-pulse.is-off .day-pulse-metrics { display: none; }
.day-pulse.is-off #pulse-off-line { display: inline; font-weight: 600; }
.team-row .role {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem; border-radius: 4px;
}
.role-home { background: rgba(52,211,153,0.15); color: var(--success); }
.role-away { background: var(--surface-high); color: var(--on-variant); }
.team-row.pick-win .name { color: var(--primary); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--outline);
  padding-top: 1rem;
}
.metric label {
  display: block; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--on-variant); margin-bottom: 0.25rem;
}
.metric .val { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.metric .val.positive { color: var(--success); }
.metric .val.negative { color: var(--danger); }
.metric .val.neutral { color: var(--on-surface); }

.totals-chip {
  margin-top: 0.75rem;
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(180,197,255,0.1);
  color: #b4c5ff;
}
.totals-chip.alta { background: rgba(52,211,153,0.12); color: var(--success); }
.totals-chip.baja { background: rgba(248,113,113,0.12); color: var(--danger); }

/* Live scores — estilo ESPN */
.card-live { border-color: rgba(248,113,113,0.45); box-shadow: 0 0 24px rgba(248,113,113,0.08); }
.live-box {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.live-box.final { background: rgba(100,116,139,0.12); border-color: var(--outline); }
.live-pulse { color: #f87171; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.live-inning { display: block; font-size: 0.75rem; color: var(--on-variant); margin: 0.25rem 0; }
.live-score { display: flex; justify-content: center; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; }
.live-score .leading { color: var(--primary); }
.live-score strong { font-size: 1.25rem; font-weight: 800; margin-left: 0.35rem; }
.live-at { color: var(--on-variant); font-size: 0.8rem; }
.live-final-tag { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; color: var(--on-variant); }
.pred-result { display: block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 700; }
.result-win { color: var(--success); }
.result-loss { color: var(--danger); }
.team-row.leading .name { color: var(--primary); }

.card-top .tag-final { background: rgba(100,116,139,0.2); color: var(--on-variant); }
.final-result {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-align: center;
}
.final-result.result-win { background: rgba(52,211,153,0.1); color: var(--success); }
.final-result.result-loss { background: rgba(248,113,113,0.1); color: var(--danger); }

.predictions-section { margin-top: 0.5rem; }
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-variant);
  margin-bottom: 1rem;
}

/* Panel EN VIVO — tarjetas compactas, coherentes con el tema oscuro (antes: tarjetas
   claras estilo ESPN que rompían la identidad visual del resto de la web). */
.live-now-panel {
  margin-bottom: 1.5rem;
  padding: 0.8rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, rgba(255,84,112,0.07), transparent 65%), var(--surface-glass);
  border: 1px solid rgba(255,84,112,0.18);
  border-radius: var(--radius);
  animation: fadeInUp 0.35s var(--ease) both;
}
.live-now-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--live);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.5rem;
}
.live-strip {
  background: linear-gradient(150deg, rgba(37,45,66,0.95), rgba(14,20,36,0.97));
  color: var(--on-surface);
  border-radius: 10px;
  padding: 0.5rem 0.65rem 0.45rem;
  border: 1px solid rgba(255,84,112,0.22);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  animation: fadeInUp 0.4s var(--ease) both;
}
.live-strip:hover { transform: translateY(-3px) scale(1.02); border-color: rgba(255,84,112,0.55); box-shadow: 0 8px 24px rgba(255,84,112,0.12); }
.live-strip.live-fade-out { opacity: 0; transform: scale(0.96); transition: opacity 0.45s ease, transform 0.45s ease; }
.live-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}
.live-strip-league {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--on-variant);
}
.live-strip-status {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--live);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
.live-strip-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
}
.live-strip-team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.live-strip-team.home { flex-direction: row-reverse; text-align: right; }
.live-strip-team-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.live-strip-team .team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.live-strip-team .team-logo-fallback {
  width: 24px;
  height: 24px;
  font-size: 0.55rem;
}
.live-strip-abbr {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--on-variant);
  letter-spacing: 0.03em;
}
.live-strip-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
}
.live-strip-team.leading .live-strip-name { color: var(--primary-dim); }
.live-strip-score {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
  white-space: nowrap;
}
.live-strip-sep { color: var(--on-variant); font-weight: 600; margin: 0 0.05rem; }
.live-strip-venue {
  margin-top: 0.3rem;
  font-size: 0.56rem;
  color: var(--on-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cuenta y bases (MLB) — versión compacta */
.live-strip-count {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.count-row {
  display: flex;
  align-items: center;
  gap: 0.18rem;
}
.count-label {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--on-variant);
  width: 9px;
}
.count-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--outline);
  display: inline-block;
}
.count-dot.on { background: #60a5fa; box-shadow: 0 0 4px rgba(96,165,250,0.6); }

.bases-diamond {
  position: relative;
  width: 30px;
  height: 30px;
  margin-left: auto;
  flex-shrink: 0;
}
.base {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--outline);
  transform: rotate(45deg);
  border-radius: 1px;
}
.base.occupied { background: var(--primary); box-shadow: 0 0 5px rgba(255,122,0,0.6); }
.base-2 { top: 0; left: 50%; margin-left: -4px; }
.base-3 { bottom: 6px; left: 1px; }
.base-1 { bottom: 6px; right: 1px; }
.base-h { bottom: 0; left: 50%; margin-left: -4px; background: rgba(255,255,255,0.15); }

.nav-vip {
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,122,0,0.08));
  border: 1px solid rgba(255,215,0,0.25);
  color: #ffd700 !important;
}

.loading, .error {
  text-align: center; padding: 4rem;
  color: var(--on-variant);
}
.error { color: var(--danger); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 3.5rem 1.5rem;
  color: var(--on-variant);
  animation: fadeInUp 0.45s var(--ease) both;
}
.empty-state svg { color: var(--primary-dim); opacity: 0.85; margin-bottom: 0.4rem; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--on-surface);
  font-weight: 400;
}
.empty-state p { max-width: 30rem; font-size: 0.9rem; line-height: 1.5; }
.empty-state-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.3);
  color: var(--primary-dim);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.empty-state-cta:hover { background: rgba(255,122,0,0.18); border-color: rgba(255,122,0,0.5); }
@media (prefers-reduced-motion: reduce) {
  .empty-state { animation: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .menu-close { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .main { margin-left: 0; padding: 1rem; }
  .header h1 { font-size: 1.25rem; }
  .grid { grid-template-columns: 1fr; }

  /* Panel EN VIVO en 2 columnas compactas — tarjetas pequeñas y legibles en móvil */
  .live-now-panel { padding: 0.65rem 0.6rem 0.7rem; }
  .live-now-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .live-strip { padding: 0.4rem 0.45rem 0.35rem; border-radius: 8px; }
  .live-strip-abbr { font-size: 0.52rem; }
  .live-strip-name { max-width: 100%; font-size: 0.6rem; }
  .live-strip-score { font-size: 0.85rem; }
  .live-strip-venue { display: none; }
  .live-strip-count { gap: 0.35rem; margin-top: 0.25rem; padding-top: 0.25rem; }
  .bases-diamond { width: 24px; height: 24px; }
  .base { width: 6px; height: 6px; }
}

@media (max-width: 380px) {
  .live-now-grid { grid-template-columns: 1fr 1fr; gap: 0.3rem; }
  .live-strip-name { font-size: 0.56rem; }
}

/* Footer — redes sociales */
.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-social { display: flex; align-items: center; gap: 0.9rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 1px solid var(--outline);
  color: var(--on-variant);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.social-link:hover { transform: translateY(-3px); color: var(--on-surface); }
.social-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.social-tg:hover { border-color: rgba(41,182,246,0.55); box-shadow: 0 0 16px rgba(41,182,246,0.3); color: #29b6f6; }
.social-fb:hover { border-color: rgba(59,130,246,0.55); box-shadow: 0 0 16px rgba(59,130,246,0.35); color: #60a5fa; }
.social-ig:hover { border-color: rgba(236,72,153,0.55); box-shadow: 0 0 16px rgba(236,72,153,0.3); color: #f472b6; }
.social-tt:hover { border-color: rgba(45,212,191,0.55); box-shadow: 0 0 16px rgba(45,212,191,0.3); color: #2dd4bf; }
.footer-copy { font-size: 0.75rem; color: var(--on-variant); opacity: 0.65; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   Site v2 — shell compartido (index, VIP, rendimiento)
   ═══════════════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body.site-v2 {
  background: var(--bg);
  padding-top: 64px;
}

body.site-v2 .layout { display: none; }

/* Top bar */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 1.5rem;
  background: rgba(11, 19, 38, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline);
}
.topbar-brand { flex-shrink: 0; }

.topnav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.topnav-item {
  position: relative;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--on-variant);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}
.topnav-item::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  border-radius: 2px;
}
.topnav-item:hover {
  color: var(--on-surface);
  background: rgba(255,122,0,0.06);
}
.topnav-item:hover::after { transform: scaleX(1); }
.topnav-item.active {
  color: var(--primary);
  background: rgba(255,122,0,0.1);
}
.topnav-item.active::after { transform: scaleX(1); }
.topnav-vip {
  color: #ffd700 !important;
  border: 1px solid rgba(255,215,0,0.25);
  background: rgba(255,215,0,0.06);
}
.topnav-vip:hover {
  background: rgba(255,215,0,0.14);
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
  transform: translateY(-1px);
}
.topnav-mc {
  color: var(--primary-dim) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.topnav-mc:hover,
.topnav-mc.active,
.topnav-mc.is-active-page {
  color: var(--primary) !important;
  background: rgba(255,122,0,0.12);
}

body.site-v2 .menu-toggle {
  display: none;
  margin-left: auto;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
}
body.site-v2 .mobile-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 88vw);
  height: 100vh;
  z-index: 65;
  background: var(--surface);
  border-right: 1px solid var(--outline);
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease);
}
body.site-v2 .mobile-drawer.open { transform: translateX(0); }
body.site-v2 .sidebar-overlay { display: block; z-index: 50; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.drawer-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--on-variant);
  font-weight: 700;
}
.drawer-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.nav-soon {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--on-variant);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero split — portal (inicio) */
body.portal-page .hero-split {
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  min-height: clamp(360px, 58vh, 580px);
  border-bottom: 1px solid var(--outline);
}

/* Fluid hero — fondo líquido WebGL (fluid-hero.js). Todas las reglas van
   gateadas por .has-fluid: si WebGL falla o el JS no corre, el hero queda
   exactamente como siempre. */
.fluid-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  /* Difumina el render a media resolución: sin esto las vetas se ven
     pixeladas/dentadas; con blur leen como tinta difusa. El scale oculta
     los bordes lavados por el propio blur. */
  filter: blur(14px) saturate(1.05);
  transform: scale(1.05);
}
.hero-split.has-fluid {
  position: relative;
  overflow: hidden;
  background: #040a16;
}
.hero-split.has-fluid .fluid-hero-canvas {
  opacity: 1;
}
/* El fluido ES el fondo: el panel se vuelve transparente. Sin ::after de
   fundido lateral — cubre solo una mitad y crea el escalón tipo "franja"
   que ya corregimos en Monte Carlo. */
.hero-split.has-fluid .hero-panel {
  background: transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  /* Sin el separador vertical: con el fluido continuo de fondo, el borde
     del panel se leía como una línea cortando el hero. */
  border-right: none;
}
.hero-split.has-fluid .hero-panel::after {
  display: none;
}
@media (min-width: 961px) {
  .hero-split.has-fluid {
    perspective: 1200px;
  }
  /* Panel de vidrio 3D: el video flota con marco redondeado y tilt (JS). */
  .hero-split.has-fluid .hero-video-wrap {
    z-index: 1;
    margin: clamp(1.5rem, 3vh, 2.5rem) clamp(1.5rem, 3vw, 3rem);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 182, 139, 0.22);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.6),
      0 0 70px rgba(255, 122, 0, 0.12);
    will-change: transform;
  }
}

/* Hero split — deportes (panel izquierdo + video) */
body.sports-page .hero-split-sport {
  display: grid;
  grid-template-columns: minmax(240px, 38%) 1fr;
  min-height: clamp(320px, 52vh, 520px);
  border-bottom: 1px solid var(--outline);
}
.hero-panel-sport {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  background:
    radial-gradient(480px 280px at 0% 50%, rgba(255,122,0,0.07), transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-right: 1px solid var(--outline);
}
.hero-panel-sport::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, var(--bg), transparent);
  pointer-events: none;
  opacity: 0.85;
}
.hero-panel-sport { position: relative; }
.hero-sport-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 14px;
}
.hero-sport-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--primary-dim);
  margin-bottom: 0.5rem;
}
body.sports-page .hero-split-sport .hero-video-wrap {
  min-height: clamp(320px, 52vh, 520px);
}
.hero-sport-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-variant);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
body.sports-page .hero-split-sport[data-league="mlb"] .hero-sport-title { color: #c41e3a; }
body.sports-page .hero-split-sport[data-league="nba"] .hero-sport-title { color: #ff7a00; }
body.sports-page .hero-split-sport[data-league="nfl"] .hero-sport-title { color: #5b9bd5; }
body.sports-page .hero-split-sport[data-league="nhl"] .hero-sport-title { color: #00a8e8; }
body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-title {
  color: var(--primary);
  font-size: clamp(2.8rem, 6.5vw, 4.25rem);
  line-height: 0.9;
  text-wrap: balance;
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-title .hero-mc-accent {
  color: var(--on-surface);
  display: block;
  font-size: 0.88em;
  letter-spacing: 0.18em;
}
.hero-mc-eyebrow,
.hero-mc-stats {
  display: none;
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-mc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.08);
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-mc-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-mc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.85rem;
}
.hero-mc-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dim);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 182, 139, 0.22);
  background: rgba(19, 27, 46, 0.65);
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-panel-sport,
body.sports-page .hero-split-sport.is-montecarlo .hero-panel-sport {
  background: transparent;
  position: relative;
  z-index: 2;
  border-right: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
/* La franja de fundido (::after) sirve para difuminar el fondo SÓLIDO del panel
   en las otras ligas; en Monte Carlo el panel ya es transparente (se ven las
   partículas), así que este fundido opaco al 85% quedaba de más y era la
   segunda "franja negra" justo pegada a la del video. */
body.sports-page .hero-split-sport[data-league="mc"] .hero-panel-sport::after,
body.sports-page .hero-split-sport.is-montecarlo .hero-panel-sport::after {
  display: none;
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-sub {
  color: var(--primary-dim);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-tagline {
  color: var(--on-variant);
  font-style: normal;
  font-size: 0.88rem;
  max-width: 22rem;
  line-height: 1.5;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(45, 52, 73, 0.85);
  margin-top: 0.35rem;
  width: 100%;
}

.hero-sport-tagline {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--primary-dim);
  max-width: 18rem;
  line-height: 1.45;
}

/* Hero split — deportes (compact legacy — oculto) */
body.sports-page .hero-split-compact {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--outline);
}
body.sports-page .hero-split-compact .hero-video-wrap {
  min-height: clamp(200px, 32vh, 320px);
  flex: 1;
}
body.sports-page .hero-league-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
  border-top: 1px solid var(--outline);
  justify-content: center;
}

/* Legacy alias */
body.home-page .hero-split {
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  min-height: clamp(360px, 58vh, 580px);
  border-bottom: 1px solid var(--outline);
}
.hero-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(520px 320px at 0% 50%, rgba(255,122,0,0.06), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-right: 1px solid var(--outline);
}
.hero-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 48px;
  height: 100%;
  background: linear-gradient(90deg, var(--bg), transparent);
  pointer-events: none;
  opacity: 0.85;
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-variant);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--primary-dim);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero-title span { color: var(--primary); display: block; }
.hero-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--on-variant);
  max-width: 28rem;
  margin-bottom: 0.5rem;
  text-wrap: pretty;
}
.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dim);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero-cta-ghost {
  margin-top: 0.65rem;
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid rgba(255,122,0,0.45) !important;
  box-shadow: none !important;
}
.hero-cta-ghost:hover {
  background: rgba(255,122,0,0.1) !important;
  box-shadow: 0 4px 16px rgba(255,122,0,0.15) !important;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #e56a00);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(255,122,0,0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,122,0,0.35);
  filter: brightness(1.05);
}

/* League selector — panel izquierdo */
.hero-league-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero-league-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(255,255,255,0.03);
  color: var(--on-variant);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.28s var(--ease), color 0.28s var(--ease), background 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.hero-league-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease);
}
.hero-league-btn-label { position: relative; z-index: 1; }
.hero-league-btn-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--hero-accent, var(--primary));
  transition: width 0.35s var(--ease);
}
.hero-league-btn:hover {
  border-color: rgba(255,122,0,0.35);
  color: var(--on-surface);
  transform: translateY(-1px);
}
.hero-league-btn.is-on {
  border-color: color-mix(in srgb, var(--hero-accent, var(--primary)) 55%, transparent);
  background: color-mix(in srgb, var(--hero-accent, var(--primary)) 12%, transparent);
  color: var(--on-surface);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--hero-accent, var(--primary)) 18%, transparent);
}
.hero-league-btn.is-on .hero-league-btn-icon { transform: scale(1.08); }
.hero-league-btn[data-league="mlb"] { --hero-accent: #c41e3a; }
.hero-league-btn[data-league="nba"] { --hero-accent: #ff7a00; }
.hero-league-btn[data-league="nfl"] { --hero-accent: #013369; }
.hero-league-btn[data-league="nhl"] { --hero-accent: #00a8e8; }

/* Video stage — cinematográfico */
.hero-video-wrap {
  --hero-accent: #ff7a00;
  position: relative;
  overflow: hidden;
  background: #040a16;
  isolation: isolate;
}
.hero-video-wrap.is-static {
  background: linear-gradient(135deg, #0b1326, #1a2744);
}
.hero-video-wrap[data-league="mlb"] { --hero-accent: #c41e3a; }
.hero-video-wrap[data-league="nba"] { --hero-accent: #ff7a00; }
.hero-video-wrap[data-league="nfl"] { --hero-accent: #013369; }
.hero-video-wrap[data-league="nhl"] { --hero-accent: #00a8e8; }
.hero-video-wrap[data-league="mc"] { --hero-accent: #ff7a00; }

/* Monte Carlo — escenario v3: video centro + HUD + partículas */
body.sports-page .hero-split-sport[data-league="mc"],
body.sports-page .hero-split-sport.is-montecarlo {
  grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
  min-height: clamp(520px, 58vh, 640px);
  position: relative;
  overflow: hidden;
  background: transparent;
}
body.sports-page .hero-split-sport[data-league="mc"] .hero-video-wrap,
body.sports-page .hero-split-sport.is-montecarlo .hero-video-wrap {
  min-height: clamp(520px, 58vh, 640px);
  background: transparent;
  position: relative;
}
.hero-mc-tonal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #070d18;
  opacity: 0.55;
}
.hero-mc-particles-bg {
  visibility: hidden;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  filter: saturate(1.2) contrast(1.05) brightness(0.88);
  transition: opacity 1.4s var(--ease), visibility 1.4s;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}
.hero-split-sport.is-montecarlo .hero-mc-particles-bg {
  visibility: visible;
  opacity: 1;
}
.hero-mc-particles-scrim {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 42%, rgba(7, 13, 24, 0.05) 0%, rgba(7, 13, 24, 0.14) 88%),
    linear-gradient(105deg, rgba(11, 19, 38, 0.1) 0%, rgba(7, 13, 24, 0.04) 42%, rgba(11, 19, 38, 0.09) 100%);
}
.hero-video-wrap.is-montecarlo .hero-mc-particles-scrim {
  display: block;
}
.hero-video-wrap.is-montecarlo .hero-mc-tonal {
  display: block;
  /* Bajado en desktop (era 0.28) para no sumar otra capa oscura sobre la franja
     entre el panel y el video; mobile mantiene 0.28 (ver @media max-width:960px). */
  opacity: 0.12;
  animation: mcTonalShift 30s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}
@keyframes mcTonalShift {
  0% { background: radial-gradient(ellipse 80% 70% at 45% 40%, rgba(255, 122, 0, 0.14), #070d18 68%); }
  50% { background: radial-gradient(ellipse 75% 65% at 55% 55%, rgba(255, 84, 112, 0.08), #070d18 72%); }
  100% { background: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(255, 182, 139, 0.12), #070d18 65%); }
}
.hero-mc-frame {
  position: absolute;
  z-index: 5;
}
.hero-video-wrap:not(.is-montecarlo) .hero-mc-frame {
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video-wrap:not(.is-montecarlo) .hero-mc-hud-in,
.hero-video-wrap:not(.is-montecarlo) .hero-mc-hud-orbit,
.hero-video-wrap:not(.is-montecarlo) .hero-mc-tonal,
.hero-video-wrap:not(.is-montecarlo) .hero-mc-particles-bg,
.hero-video-wrap:not(.is-montecarlo) .hero-mc-particles-scrim {
  display: none !important;
}
.hero-mc-shine {
  display: none;
}
.hero-video-wrap.is-montecarlo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-mc-canvas {
  display: none !important;
}
.hero-video-wrap.is-montecarlo .hero-mc-frame {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 58%);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(94%, 420px);
  border-radius: clamp(14px, 1.2vw, 18px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.4),
    0 0 15px rgba(0, 240, 255, 0.2),
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(255, 122, 0, 0.15);
  animation: mcFrameIn 0.9s var(--ease) both;
}
@keyframes mcFrameIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.hero-video-wrap.is-montecarlo .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 0;
  transform: none;
  transition: opacity 1s var(--ease);
  z-index: 1;
}
.hero-video-wrap.is-montecarlo .hero-video.is-in {
  opacity: 1;
}

/* HUD dentro del marco (bordes) */
.hero-mc-hud-in {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-video-wrap.is-montecarlo .hero-mc-hud-in {
  display: block;
}
.mc-hud-curve {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 38%;
  height: 2.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid rgba(255, 182, 139, 0.18);
  backdrop-filter: blur(8px);
}
.mc-hud-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mc-hud-sim-bar {
  position: absolute;
  left: 0.65rem;
  /* No llega hasta el borde derecho: ahí flota la tarjeta σ y se pisaban. */
  right: 16%;
  bottom: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.78);
  border: 1px solid rgba(255, 122, 0, 0.22);
  backdrop-filter: blur(8px);
}
.mc-hud-sim-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dim);
}
.mc-hud-sim-label strong {
  color: var(--primary);
  font-weight: 700;
}
.mc-hud-sim-track {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.mc-hud-sim-track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ffb68b);
  transition: width 0.08s linear;
}
.mc-hud-specs {
  position: absolute;
  /* A la izquierda (como la curva arriba) para no chocar con las tarjetas
     flotantes P(win)/Iteraciones/σ, que anclan del lado derecho del frame. */
  left: 0.65rem;
  bottom: 3.1rem;
  display: flex;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(139, 155, 184, 0.9);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(7, 13, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mc-hud-specs strong {
  color: var(--primary-dim);
  font-weight: 700;
}

/* HUD flotante alrededor del video */
.hero-mc-hud-orbit {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  width: var(--mc-orbit-w, 520px);
  height: var(--mc-orbit-h, 292px);
}
.hero-video-wrap.is-montecarlo .hero-mc-hud-orbit {
  display: block;
}
.mc-hud-card {
  position: absolute;
  min-width: 6.2rem;
  padding: 0.28rem 0.45rem;
  border-radius: 12px;
  background: rgba(11, 19, 38, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(255, 122, 0, 0.15), inset 0 0 15px rgba(255, 182, 139, 0.05);
  /* Compacta a propósito en todos los anchos: el frame del video puede medir tan solo
     ~175px de alto en viewports 961-1250px, y con el bob flotante (mcHudFloat) las 3
     tarjetas terminaban solapándose. Tamaño fijo + sin bob = nunca colisionan. */
  animation: mcHudIn 0.8s var(--ease) both;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mc-hud-card:hover {
  transform: scale(1.05) translateZ(20px) !important;
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.6);
  z-index: 10;
}
@keyframes mcHudIn {
  from { opacity: 0; transform: translateY(15px) rotateX(10deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}
@keyframes mcHudFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}
.mc-hud-card[data-metric="pwin"] {
  top: 4%;
  left: 88%;
  animation-delay: 0.15s;
}
.mc-hud-card[data-metric="iter"] {
  top: 50%;
  left: 92%;
  margin-top: -19px;
  animation-delay: 0.28s;
}
.mc-hud-card[data-metric="sigma"] {
  bottom: 4%;
  left: 88%;
  animation-delay: 0.4s;
}
.mc-hud-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.15rem;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.mc-hud-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: #00f0ff;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}
.mc-hud-sub {
  /* Oculto: la tarjeta σ ya lo indica el label; el texto extra no entra sin solapar
     con las tarjetas vecinas cuando el frame del video es bajo. */
  display: none;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}
.mc-hud-bar {
  display: block;
  margin-top: 0.2rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.mc-hud-bar i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.mc-hud-ring {
  /* Oculto: el valor numérico junto al label ya comunica el dato sin el aro decorativo,
     que era lo que más alargaba la tarjeta "Iteraciones" y provocaba el solape. */
  display: none;
  width: 2rem;
  height: 2rem;
  margin-top: 0.25rem;
}
.mc-hud-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mc-hud-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}
.mc-hud-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0 94;
  transition: stroke-dasharray 0.08s linear;
}
.hero-mc-blur-l,
.hero-mc-blur-r {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(8px) saturate(1.1) brightness(0.96);
  -webkit-backdrop-filter: blur(8px) saturate(1.1) brightness(0.96);
}
.hero-video-wrap.is-montecarlo .hero-mc-blur-l,
.hero-video-wrap.is-montecarlo .hero-mc-blur-r {
  display: block;
}
.hero-mc-blur-l {
  left: 0;
  width: var(--mc-vid-left, 10%);
  /* Transparente en el borde 0% (donde termina el panel) para no crear un
     salto duro justo en la unión; el oscurecido queda en el medio de la franja. */
  background: linear-gradient(90deg, transparent 0%, rgba(7, 13, 24, 0.3) 55%, transparent 100%);
}
.hero-mc-blur-r {
  right: 0;
  width: var(--mc-vid-right, 10%);
  background: linear-gradient(270deg, rgba(7, 13, 24, 0.32) 0%, transparent 100%);
}
.hero-video-wrap.is-montecarlo .hero-mc-shine {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(255, 122, 0, 0.14), transparent 70%);
}
.hero-video-wrap.is-montecarlo .hero-video-scrim,
.hero-video-wrap.is-montecarlo .hero-video-vignette,
.hero-video-wrap.is-montecarlo .hero-video-edge,
.hero-video-wrap.is-montecarlo .hero-video-grain {
  display: none;
}

@media (min-width: 961px) {
  body.sports-page .hero-split-sport[data-league="mc"] {
    grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
    min-height: clamp(600px, 60vh, 760px);
    max-height: 780px;
  }
  body.sports-page .hero-split-sport[data-league="mc"] .hero-panel-sport,
  body.sports-page .hero-split-sport.is-montecarlo .hero-panel-sport {
    padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.75rem);
    justify-content: center;
    border-right: none;
    /* El blur(2px) de toda la base cortaba de golpe justo en el borde del panel
       (nítido de un lado, levemente desenfocado del otro) — quedaba como el
       último resto de la franja. El text-shadow ya alcanza para la legibilidad. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.sports-page .hero-split-sport[data-league="mc"] .hero-video-wrap {
    min-height: clamp(600px, 60vh, 760px);
    max-height: 780px;
  }
  /* Título más grande en desktop (no afecta mobile: la regla de max-width:960px
     define su propio tamaño y gana ahí). Con el panel más ancho de arriba, el
     texto llega mucho más cerca del video. */
  body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-title {
    font-size: clamp(4.5rem, 6.5vw, 7rem);
  }
  /* Video más grande en desktop: además de verse mejor, achica el hueco vacío
     entre el panel y el frame (donde quedaba la franja). Solo desktop. */
  .hero-video-wrap.is-montecarlo .hero-mc-frame {
    width: min(680px, 62%);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: min(94%, 500px);
  }
  /* Removed conflicting right positioning for HUD cards */
  /* Raíz de la "franja negra": el blur del backdrop-filter convertía las
     partículas nítidas en una mancha difusa pareja, que se lee como un
     panel oscuro contra el bokeh nítido de al lado. Sin blur, solo con un
     leve oscurecido, las partículas se ven nítidas hasta el borde del video. */
  /* Prácticamente neutros en desktop: entre el degradado de color y el
     backdrop-filter seguía leyéndose como una franja distinta contra las
     partículas nítidas de al lado. Sin nada acá, se ven igual de nítidas. */
  .hero-mc-blur-l,
  .hero-mc-blur-r {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* El scrim y el tinte tonal son hijos del video-wrap: cubren SOLO la mitad
     derecha del hero, así que por más tenues que sean generan un escalón de
     luminosidad exacto en el borde del panel (la franja que persiste). En
     desktop se apagan del todo; mobile los mantiene (allí el layout es apilado
     y no existe ese borde vertical). */
  .hero-video-wrap.is-montecarlo .hero-mc-particles-scrim,
  .hero-video-wrap.is-montecarlo .hero-mc-tonal {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap.is-montecarlo .hero-mc-frame,
  .mc-hud-card {
    animation: none;
  }
  .hero-video-wrap.is-montecarlo .hero-mc-tonal {
    animation: none;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1), transform 8s linear;
  will-change: opacity, transform;
}
.hero-video.is-in {
  opacity: 1;
  transform: scale(1);
}

.hero-video-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.hero-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 58% 50%, transparent 35%, rgba(4,10,22,0.55) 100%),
    radial-gradient(ellipse 120% 100% at 100% 50%, transparent 20%, rgba(4,10,22,0.4) 85%);
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,19,38,0.72) 0%, rgba(11,19,38,0.18) 38%, rgba(11,19,38,0.08) 58%, rgba(11,19,38,0.28) 100%),
    linear-gradient(180deg, rgba(4,10,22,0.15) 0%, transparent 35%, transparent 72%, rgba(4,10,22,0.45) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--hero-accent) 8%, transparent), transparent 40%);
  transition: background 0.8s var(--ease);
}

.hero-video-edge {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  z-index: 5;
  background: linear-gradient(180deg, transparent, var(--hero-accent), transparent);
  opacity: 0.65;
  box-shadow: 0 0 24px color-mix(in srgb, var(--hero-accent) 50%, transparent);
  transition: opacity 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero-video-ui {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  pointer-events: none;
}

.hero-video-badge {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(8,14,28,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    0 0 0 1px color-mix(in srgb, var(--hero-accent) 25%, transparent) inset;
  animation: heroBadgeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroBadgeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-league-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.hero-video-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}
.hero-video-badge-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-video-badge-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-league-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.hero-league-link:hover,
.hero-league-link:focus-visible {
  color: var(--hero-accent, #ff7a00);
}

.hero-video-progress {
  align-self: stretch;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.hero-video-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hero-accent), color-mix(in srgb, var(--hero-accent) 60%, #fff));
  box-shadow: 0 0 12px color-mix(in srgb, var(--hero-accent) 70%, transparent);
  transition: width 0.12s linear;
}

.hero-video-progress,
.hero-video-progress-fill { display: none !important; }

/* Portal — revista */
.portal-section { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.portal-section-head { margin-bottom: 1.25rem; }
.portal-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.portal-block {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}
.portal-empty {
  color: var(--on-variant);
  font-size: 0.88rem;
  padding: 1rem 0;
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.mag-grid-compact {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.mag-grid-mixed {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.mag-card-featured {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .mag-card-featured { grid-column: span 1; }
}
.mag-card-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.mag-card:hover .mag-card-vid { transform: scale(1.04); }
.mag-card-media.no-img .mag-card-vid { display: none; }
.mag-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  animation: fadeInUp 0.45s var(--ease) both;
}
.mag-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,122,0,0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.mag-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mag-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1020;
}
.mag-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.mag-card:hover .mag-card-img { transform: scale(1.04); }
.mag-card-ph {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1a2e, #1a2744);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--primary-dim);
  opacity: 0.7;
}
.mag-card-media.no-img .mag-card-ph { display: flex; }
.mag-card-media.no-img .mag-card-img { display: none; }
.mag-card-body { padding: 1rem 1.1rem 1.15rem; }
.mag-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.mag-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.mag-tag-noticia { background: rgba(255,122,0,0.15); color: var(--primary); }
.mag-tag-farandula { background: rgba(255,215,0,0.12); color: #ffd700; }
.mag-tag-evento { background: rgba(0,168,232,0.12); color: #00a8e8; }
.mag-sport {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--on-variant);
  text-transform: uppercase;
}
.mag-time { font-size: 0.65rem; color: var(--on-variant); opacity: 0.7; margin-left: auto; }
.mag-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--on-surface);
  margin-bottom: 0.4rem;
}
.mag-card-summary {
  font-size: 0.82rem;
  color: var(--on-variant);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.injury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.injury-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
  animation: fadeInUp 0.4s var(--ease) both;
}
.injury-card:hover {
  border-color: rgba(255,80,80,0.35);
  transform: translateY(-2px);
}
.injury-card-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--outline);
  background: var(--bg);
}
.injury-card-img.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}
.injury-card-body { min-width: 0; }
.injury-sport {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.injury-name { font-size: 0.92rem; font-weight: 800; margin: 0.15rem 0; }
.injury-team { font-size: 0.75rem; color: var(--on-variant); }
.injury-detail { font-size: 0.78rem; color: var(--on-variant); margin-top: 0.25rem; }
.injury-status {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255,80,80,0.12);
  color: #ff6b6b;
  text-transform: uppercase;
}

.about-band-full { margin-top: 1rem; }
.about-prose p {
  color: var(--on-variant);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.about-prose p:last-child { margin-bottom: 0; }
.lesson-list-wide { max-width: 52rem; }

/* Main content v2 */
.main-v2 {
  margin-left: 0;
  max-width: 1280px;
  margin-inline: auto;
  padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 3rem;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}
.section-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.section-page-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.league-logo-img {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.league-logo-img.is-in {
  opacity: 1;
  transform: scale(1);
}
.league-logo-wrap.is-hidden { display: none; }

.coming-soon-logo {
  border-radius: 12px;
  margin-bottom: 0.25rem;
}

/* Editorial */
.about-band {
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  scroll-margin-top: 80px;
}
.about-inner p {
  color: var(--on-variant);
  line-height: 1.65;
  max-width: 52rem;
  font-size: 0.92rem;
}

.about-toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 44px;
  cursor: pointer;
}
.about-toggle-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}
.about-toggle-icon::before,
.about-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--on-variant);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.about-toggle-icon::before { width: 1.1rem; height: 2px; }
.about-toggle-icon::after { width: 2px; height: 1.1rem; }
.about-toggle[aria-expanded="true"] .about-toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.about-prose-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.about-prose-wrap .about-prose p:first-child { margin-top: 1.25rem; }

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.editorial-col {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.editorial-col:hover {
  border-color: rgba(255,122,0,0.28);
  transform: translateY(-2px);
}
.editorial-list,
.lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}
.editorial-item,
.lesson-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--outline);
  transition: padding-left 0.2s var(--ease);
}
.editorial-item:last-child,
.lesson-item:last-child { border-bottom: none; }
.editorial-item:hover,
.lesson-item:hover { padding-left: 0.35rem; }
.editorial-item strong,
.lesson-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  color: var(--on-surface);
}
.editorial-item p,
.lesson-item p {
  font-size: 0.82rem;
  color: var(--on-variant);
  line-height: 1.45;
}
.editorial-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.lesson-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.lesson-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

/* Page banner — VIP / Rendimiento */
.page-banner {
  border-bottom: 1px solid var(--outline);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}
.page-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--on-surface);
}
.page-banner .sub {
  color: var(--on-variant);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}
.page-banner-vip {
  background:
    radial-gradient(700px 280px at 15% 50%, rgba(255,215,0,0.1), transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}
.page-banner-vip h1 { color: #ffd700; }
.page-banner-perf h1 { color: var(--primary-dim); }
.page-banner-perf h1 span { color: var(--primary); }

.topnav-item.is-active-page {
  color: var(--primary);
  background: rgba(255,122,0,0.1);
}
.topnav-item.is-active-page::after { transform: scaleX(1); }
.topnav-vip.is-active-page {
  color: #ffd700 !important;
  background: rgba(255,215,0,0.12);
}

@media (max-width: 960px) {
  body.site-v2 .topnav { display: none; }
  body.site-v2 .menu-toggle { display: flex; }
  body.site-v2 .menu-close { display: flex; }
  body.sports-page .hero-split-sport {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.sports-page .hero-panel-sport {
    order: 2;
    border-right: none;
    border-top: 1px solid var(--outline);
    padding: 1.25rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
  }
  body.sports-page .hero-panel-sport::after { display: none; }
  body.sports-page .hero-sport-logo { width: 48px; height: 48px; margin-bottom: 0; }
  body.sports-page .hero-sport-title { font-size: 2.2rem; margin-bottom: 0; flex: 1; }
  body.sports-page .hero-split-sport .hero-video-wrap {
    order: 1;
    min-height: clamp(220px, 40vw, 320px);
  }
  body.sports-page .hero-split-sport[data-league="mc"],
  body.sports-page .hero-split-sport.is-montecarlo {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.sports-page .hero-split-sport[data-league="mc"] .hero-video-wrap,
  body.sports-page .hero-split-sport.is-montecarlo .hero-video-wrap {
    order: 1;
    min-height: clamp(240px, 45vw, 360px);
    padding: 1rem 0;
  }
  body.sports-page .hero-split-sport[data-league="mc"] .hero-panel-sport,
  body.sports-page .hero-split-sport.is-montecarlo .hero-panel-sport {
    order: 2;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.1rem 1.6rem;
  }
  body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-title,
  body.sports-page .hero-split-sport.is-montecarlo .hero-sport-title {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
    flex: none;
    width: 100%;
  }
  body.sports-page .hero-split-sport[data-league="mc"] .hero-sport-title .hero-mc-accent,
  body.sports-page .hero-split-sport.is-montecarlo .hero-sport-title .hero-mc-accent {
    display: inline;
    margin-left: 0.12em;
  }
  .hero-video-wrap.is-montecarlo .hero-mc-frame {
    width: min(96vw, 440px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    border-radius: 16px;
  }
  /* En pantallas apiladas no hay espacio al costado del frame: las tarjetas se
     anclan al borde derecho del propio video (right) en vez de flotar afuera (left). */
  .mc-hud-card[data-metric="pwin"] { top: 4%; left: auto; right: 2%; }
  .mc-hud-card[data-metric="iter"] { top: 50%; left: auto; right: 2%; margin-top: -19px; }
  .mc-hud-card[data-metric="sigma"] { top: auto; bottom: 4%; left: auto; right: 2%; }
  .hero-video-wrap.is-montecarlo .hero-mc-hud-orbit {
    display: block;
  }
  /* La tarjeta σ ancla a right:2% con ancho fijo (6.2rem): la barra de simulación
     tiene que dejar libre ese mismo hueco para no pisarla. */
  .mc-hud-sim-bar {
    right: calc(2% + 6.2rem + 0.5rem);
  }
  .mc-hud-specs {
    bottom: 2.85rem;
    left: 0.5rem;
    right: auto;
    font-size: 0.48rem;
  }
  .mc-hud-curve {
    right: 42%;
    height: 1.75rem;
  }
  .hero-mc-blur-l {
    width: max(var(--mc-vid-left, 4%), 4%);
    /* Mobile no se toca: mantiene el degradado de siempre (no el invertido de desktop). */
    background: linear-gradient(90deg, rgba(7, 13, 24, 0.32) 0%, transparent 100%);
  }
  .hero-mc-blur-r {
    width: max(var(--mc-vid-right, 4%), 4%);
    background: linear-gradient(270deg, rgba(7, 13, 24, 0.32) 0%, transparent 100%);
  }
  /* Mobile no se toca: mantiene la opacidad de tonal de siempre. */
  .hero-video-wrap.is-montecarlo .hero-mc-tonal {
    opacity: 0.28;
  }
  .hero-video-wrap.is-montecarlo .hero-mc-particles-bg {
    filter: saturate(1.28) contrast(1.08) brightness(0.92);
  }
  .hero-video-wrap.is-montecarlo .hero-mc-particles-scrim {
    background:
      radial-gradient(ellipse 95% 85% at 50% 38%, rgba(7, 13, 24, 0.08) 0%, rgba(7, 13, 24, 0.82) 92%),
      linear-gradient(180deg, rgba(11, 19, 38, 0.65) 0%, rgba(7, 13, 24, 0.15) 45%, rgba(11, 19, 38, 0.72) 100%);
  }
  body.portal-page .hero-split,
  body.home-page .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.portal-page .hero-panel,
  body.home-page .hero-panel {
    order: 2;
    border-right: none;
    border-top: 1px solid var(--outline);
    padding: 1.5rem 1rem;
  }
  body.portal-page .hero-video-wrap,
  body.home-page .hero-video-wrap {
    order: 1;
    min-height: clamp(240px, 42vw, 360px);
  }
  body.portal-page .hero-panel::after,
  body.home-page .hero-panel::after { display: none; }
  .hero-video-ui { padding: 1rem; }
  .hero-video-badge { align-self: flex-start; }
  .hero-league-nav { gap: 0.4rem; }
  .hero-league-btn { padding: 0.4rem 0.7rem 0.4rem 0.45rem; }
  .hero-league-btn-label { font-size: 0.65rem; }
  body.portal-page .hero-title,
  body.home-page .hero-title { font-size: 2.4rem; }
  body.portal-page .hero-cta,
  body.home-page .hero-cta { align-self: stretch; text-align: center; }
}

@media (max-width: 768px) {
  body.site-v2 { padding-top: 56px; }
  .site-topbar { padding: 0.5rem 1rem; }
  .main-v2 { padding: 1rem; }
  .section-page-title { font-size: 1.25rem; }
  .editorial-grid { grid-template-columns: 1fr; }
  .page-banner-inner { padding: 1.25rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { transition: none; transform: none !important; }
  .hero-video-badge { animation: none; }
  .hero-video-grain { display: none; }
  .hero-cta:hover,
  .editorial-col:hover,
  .topnav-item:hover { transform: none; }
}

/* ── Combinadas seguras VIP (tripleta / cuarteta / quinteta) ─────────────── */
.vip-parlays-section { margin-bottom: 2.25rem; }
.vip-parlays-sub {
  color: var(--on-variant);
  font-size: 0.85rem;
  margin: -0.35rem 0 1rem;
}
.vip-parlays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.vip-parlay-card {
  background: var(--surface);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.vip-parlay-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vip-parlay-card-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: #ffd700;
}
.vip-parlay-card-prob {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}
.vip-parlay-card-prob small {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--on-variant);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vip-parlay-legs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vip-parlay-leg {
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--outline);
}
.vip-parlay-leg-matchup { font-size: 0.68rem; color: var(--on-variant); }
.vip-parlay-leg-pick { font-weight: 700; font-size: 0.9rem; }
.vip-parlay-leg-pick em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--primary-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.3rem;
}
.vip-parlay-leg-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--on-variant);
}
.vip-parlay-card-foot {
  border-top: 1px dashed var(--outline);
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffd700;
}

/* Riesgo por nivel de combinada + Doble destacada */
.vip-parlay-card.is-star {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.08);
}
.vip-parlay-risk {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  vertical-align: middle;
  color: var(--on-variant);
  border: 1px solid var(--outline);
}
.vip-parlay-risk.safe {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
}
.vip-parlay-risk.high {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

/* Nota de cobertura/estrategia en las combinadas */
.vip-parlay-note {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--on-variant);
}
