/* ========================================================
   BOCA ES LA PASIÓN - 3 SECCIONES DE PANTALLA COMPLETA (100VH)
   - Sección 1: Intro (Fondo Intro + Logo centrado)
   - Sección 2: Fixture & Tabla (Fondo Blanco Sólido)
   - Sección 3: En Vivo (Fondo En Vivo + Reproductor)
   ======================================================== */

:root {
  --boca-navy: #22396b;
  --boca-gold: #f9be3d;
  --boca-red: #fc012f;
  --bg-dark: #0d1017;
  --text-dark: #111111;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-table: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

html, body {
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ================= CLASE BASE: PANTALLA COMPLETA 100VH ================= */
.fullpage-section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-margin-top: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ================= 1. SECCIÓN INTRO (FONDO INTRO PROPIO) ================= */
.intro-section {
  background-image: 
    linear-gradient(rgba(10, 14, 22, 0.4), rgba(10, 14, 22, 0.5)),
    url('assets/images/fondo-intro.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 20px;
}

.hero-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-logo-box {
  width: 100%;
  max-width: clamp(340px, 50vw, 640px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.hero-logo {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75));
}

/* Botón flecha interactiva de la intro (flecha.svg idéntico al diseño original, sin círculo) */
.hero-scroll-btn {
  margin-top: clamp(18px, 3vh, 34px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: none;
  outline: none;
  padding: 6px;
  animation: bounceArrowFlow 2.2s infinite ease-in-out;
  transition: transform 0.3s ease;
  z-index: 10;
}

.hero-scroll-btn:hover {
  animation-play-state: paused;
  transform: translateY(4px) scale(1.15);
}

.hero-chevron {
  width: clamp(52px, 4.8vw, 70px);
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.75));
  transition: filter 0.3s ease;
}

.hero-scroll-btn:hover .hero-chevron {
  filter: drop-shadow(0 0 18px rgba(249, 190, 61, 0.9)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

/* ================= 2. SECCIÓN FIXTURE & TABLA (FONDO BLANCO SÓLIDO) ================= */
.board-section {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: var(--text-dark);
  min-height: auto !important; /* Elimina la altura forzada de 100vh y el exceso de espacio vacío */
  height: auto !important;
  padding: clamp(24px, 3.5vh, 40px) 0 clamp(36px, 5vh, 52px) 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  z-index: 3;
  justify-content: flex-start;
}

.board-container {
  width: 92%;
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch; /* Permite que el divisor dorado coincida con la altura de las columnas */
  gap: 0;
}

/* Títulos principales: alineados exactamente arriba en la línea negra */
.col-title {
  font-family: var(--font-main);
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 800;
  color: var(--boca-navy);
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 clamp(8px, 1.2vh, 14px) 0;
  line-height: 1;
  text-transform: uppercase;
}

/* Divisor dorado vertical CENTRADO (50% y 50%) */
.board-divider {
  width: 2px;
  background-color: var(--boca-gold);
  height: auto;
  align-self: stretch;
  flex-shrink: 0;
  opacity: 0.95;
  margin-top: clamp(36px, 5.2vh, 52px);
}

/* Columna Izquierda: Fixture (50% de ancho con 6 partidos entre las líneas rojas) */
.fixture-col {
  flex: 1;
  width: 50%;
  padding-right: clamp(14px, 2.2vw, 36px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fixture-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 11px);
  margin-top: clamp(24px, 3.6vh, 38px); /* Bajado un 10% respecto a los títulos */
}

.fixture-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(6px, 1.2vw, 16px);
  padding: 1px 0;
}

.fixture-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.fixture-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 7px);
  line-height: 1;
}

.match-date {
  font-size: clamp(0.95rem, 1.2vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.2px;
}

.fixture-star-icon {
  display: inline-flex;
  width: clamp(10px, 1vw, 13px);
  height: clamp(10px, 1vw, 13px);
}

.fixture-star-icon svg {
  width: 100%;
  height: 100%;
}

.match-time {
  font-size: clamp(0.95rem, 1.2vw, 1.22rem);
  font-weight: 300;
  letter-spacing: -0.2px;
}

.fixture-tournament {
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 1.35vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 1px;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

/* Colores de Fixture */
.fixture-gold {
  color: var(--boca-gold);
}

.fixture-navy {
  color: var(--boca-navy);
}

/* Escudos de Fixture con cuadrado de fondo color #22396b */
.fixture-badges {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 12px);
  flex-shrink: 0;
}

.badge-wrapper {
  width: clamp(42px, 3.8vw, 50px);
  height: clamp(42px, 3.8vw, 50px);
  background-color: #22396b; /* Cuadrado de fondo color #22396b */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 3px 10px rgba(34, 57, 107, 0.28);
  flex-shrink: 0;
}

.team-badge {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Columna Derecha: Tabla (50% de ancho) */
.tabla-col {
  flex: 1;
  width: 50%;
  padding-left: clamp(14px, 2.2vw, 36px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tables-group {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 18px);
  margin-top: clamp(24px, 3.6vh, 38px); /* Bajado un 10% respecto a los títulos */
}

.standings-box {
  width: 100%;
  background: #ffffff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tabla de Posiciones */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-table);
  font-size: clamp(0.7rem, 0.88vw, 0.82rem);
  font-weight: 700;
  color: #111111;
}

/* Encabezado Azul #22396b con letras blancas */
.table-head-row {
  background-color: #22396b !important; /* Rectángulo de color #22396b */
  color: #ffffff !important;
  height: clamp(20px, 2.5vh, 24px);
  line-height: 1;
}

.th-conf {
  text-align: left;
  padding: 3px 6px 3px 8px;
  font-weight: 800;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff !important; /* Letras blancas para TORNEO CLAUSURA y ANUAL */
}

.th-stat {
  width: 20px;
  text-align: center;
  font-size: clamp(0.65rem, 0.8vw, 0.78rem);
  font-weight: 700;
  padding: 3px 1px;
  color: #ffffff !important;
}

.th-pts {
  width: 26px;
  text-align: right;
  font-size: clamp(0.7rem, 0.85vw, 0.82rem);
  font-weight: 800;
  padding: 3px 8px 3px 1px;
  color: #ffffff !important;
}

/* Filas del cuerpo de la tabla */
.standings-table tbody tr {
  height: clamp(18px, 2.3vh, 22px);
  border-bottom: 1px solid #f4f4f4;
  transition: background-color 0.15s ease;
}

.standings-table tbody tr:hover {
  background-color: #fafafa;
}

.standings-table tbody tr.row-boca {
  background-color: rgba(249, 190, 61, 0.7); /* Fondo #f9be3d con 70% de opacidad */
}

.standings-table tbody tr.row-boca:hover {
  background-color: rgba(249, 190, 61, 0.82);
}

.standings-table tbody tr.row-boca .td-name {
  color: var(--boca-navy);
  font-weight: 900;
}

.td-pos {
  width: 18px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  padding-left: 6px;
}

.td-crest {
  width: 22px;
  text-align: center;
  padding: 0 3px;
}

.crest-img {
  width: clamp(15px, 1.8vw, 19px);
  height: clamp(15px, 1.8vw, 19px);
  object-fit: contain;
  vertical-align: middle;
}

.td-name {
  text-align: left;
  font-weight: 800;
  font-size: clamp(0.68rem, 0.88vw, 0.82rem);
  white-space: nowrap;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  padding-left: 4px;
  padding-right: 8px;
}

.td-stat {
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  padding: 0 2px;
}

.td-pts {
  text-align: right;
  font-weight: 800;
  color: #22396b; /* Color #22396b */
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.75rem, 0.95vw, 0.9rem);
  padding-right: 8px;
}

/* ================= 3. SECCIÓN EN VIVO (FONDO EN VIVO PROPIO) ================= */
.live-stream-section {
  background-image: 
    linear-gradient(rgba(10, 14, 22, 0.4), rgba(10, 14, 22, 0.5)),
    url('assets/images/fondo-envivo.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: clamp(20px, 3vh, 35px) 0;
  justify-content: center;
  align-items: center;
}

.live-title-bar {
  background: transparent;
  background-color: transparent;
  width: 100%;
  padding: clamp(6px, 1.2vh, 14px) 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
}

.live-heading {
  color: #ffffff;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.95), 0 2px 5px rgba(0, 0, 0, 0.85);
}

.live-heading-img {
  height: 38px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
  user-select: none;
}

.live-container {
  width: 90%;
  max-width: 1000px;
  margin: clamp(14px, 2.2vh, 26px) auto clamp(20px, 3vh, 36px) auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Recuadro blanco del reproductor de video */
.live-player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 58vh;
  min-height: 240px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.player-content {
  width: 100%;
  height: 100%;
}

.player-content iframe,
.player-content video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ================= 4.1 BLOQUEO DE TRANSMISIÓN (EXCLUSIVO PARA REGISTRADOS) ================= */
.stream-gate-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #0e224e 0%, #050e20 85%);
  padding: clamp(14px, 2.5vh, 28px);
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  user-select: none;
}

.stream-gate-card {
  position: relative;
  z-index: 2;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vh, 12px);
}

.stream-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 190, 61, 0.12);
  border: 1px solid rgba(249, 190, 61, 0.45);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-main);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--boca-gold);
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(249, 190, 61, 0.18);
}

.stream-gate-crest-wrap {
  margin: clamp(2px, 0.8vh, 8px) 0;
}

.stream-gate-crest {
  width: clamp(48px, 6vw, 70px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(249, 190, 61, 0.6));
  animation: pulseShield 3s infinite ease-in-out;
}

.stream-gate-logo {
  width: clamp(140px, 20vw, 220px);
  max-width: 90%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(249, 190, 61, 0.6));
  animation: pulseShield 3s infinite ease-in-out;
}

@keyframes pulseShield {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 18px rgba(249, 190, 61, 0.5));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 24px rgba(249, 190, 61, 0.85));
  }
}

.stream-gate-title {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.stream-gate-subtitle,
.stream-gate-features {
  display: none !important;
}

.btn-stream-gate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f9be3d 0%, #f5a623 100%);
  color: #001b44;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  letter-spacing: 0.5px;
  padding: clamp(9px, 1.5vh, 12px) clamp(18px, 2.5vw, 28px);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249, 190, 61, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.btn-stream-gate-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(249, 190, 61, 0.65);
  background: #ffffff;
  color: #001b44;
}

.cta-lock-icon {
  flex-shrink: 0;
}

.stream-gate-features {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-table);
  font-size: clamp(0.66rem, 0.8vw, 0.74rem);
  color: #94a3b8;
  margin-top: 4px;
}

.gate-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
}

.gate-feature-item svg {
  color: var(--boca-gold);
}

.gate-bullet {
  color: rgba(255, 255, 255, 0.25);
}

/* ================= 4.2 STREAM DESBLOQUEADO (ACTIVO) ================= */
.stream-active-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #000000;
}

.stream-active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #040d1e;
  border-bottom: 1px solid rgba(249, 190, 61, 0.25);
  font-family: var(--font-table);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.stream-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: liveBlink 1.4s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.stream-access-granted {
  font-size: 0.72rem;
  color: #94a3b8;
}

.stream-access-granted strong {
  color: var(--boca-gold);
}

/* ================= STREAM CONTROLS (OPCIONES & RECARGA) ================= */
.stream-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stream-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stream-server-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(249, 190, 61, 0.25);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.stream-server-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-table);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stream-server-pill:hover {
  color: #ffffff;
}

.stream-server-pill.active {
  background: var(--boca-gold);
  color: #071228;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(249, 190, 61, 0.4);
}

.btn-stream-reload {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(249, 190, 61, 0.12);
  border: 1px solid rgba(249, 190, 61, 0.4);
  color: var(--boca-gold);
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--font-table);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stream-reload:hover {
  background: rgba(249, 190, 61, 0.25);
  border-color: var(--boca-gold);
  color: #ffffff;
}

.btn-stream-reload.rotating .reload-icon {
  animation: spinReload 0.8s linear infinite;
}

@keyframes spinReload {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stream-iframe-container {
  flex: 1;
  width: 100%;
  height: calc(100% - 28px);
  position: relative;
}

.stream-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .stream-active-header {
    padding: 6px 8px;
    gap: 6px;
  }
  .stream-access-granted {
    display: none;
  }
  .stream-server-pill, .btn-stream-reload {
    padding: 2px 7px;
    font-size: 0.65rem;
  }
}

/* ================= 4.2.1 REPRODUCTOR TV / FÚTBOL (.fa-player-ratio y .fa-player-iframe) ================= */
.fa-player-ratio {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: #000000;
}

.fa-player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ================= 4.3 ESTADO INACTIVO CON INVITACIÓN AL REGISTRO ================= */
.stream-inactive-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #071228;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.stream-inactive-crest {
  width: 52px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(245, 166, 35, 0.4));
}

.stream-inactive-title {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--boca-gold);
}

.stream-inactive-desc {
  font-family: var(--font-table);
  font-size: 0.85rem;
  color: #8fa3c7;
  max-width: 400px;
  line-height: 1.4;
}

.stream-inactive-prompt {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.btn-stream-quick-reg {
  background: transparent;
  border: 1px solid var(--boca-gold);
  color: var(--boca-gold);
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-stream-quick-reg:hover {
  background: var(--boca-gold);
  color: var(--boca-navy);
}


/* Animaciones de rebote */
@keyframes bounceArrowFlow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(12px);
  }
  60% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ================= ADAPTACIÓN RESPONSIVE ================= */

/* Pantallas medianas y Tablets (<= 920px) */
@media (max-width: 920px) {
  .fullpage-section {
    min-height: 100vh;
    height: auto;
  }

  .board-container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .board-divider {
    width: 100%;
    height: 2px;
    min-height: 0;
    margin: 10px 0;
    align-self: auto;
  }

  .fixture-col, .tabla-col {
    width: 100%;
    flex: auto;
  }

  .fixture-card {
    justify-content: space-around;
  }
}

/* Móviles (<= 580px) */
@media (max-width: 580px) {
  .intro-section {
    padding: 15px;
  }

  .board-section {
    padding: 25px 0 50px 0;
  }

  .fixture-list {
    gap: 20px;
  }

  .fixture-card {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .fixture-badges {
    justify-content: center;
  }

  .badge-wrapper {
    width: 50px;
    height: 50px;
  }

  .standings-table {
    font-size: 0.7rem;
  }

  .th-stat, .td-stat {
    width: 18px;
    padding: 2px 1px;
  }

  .live-player-box {
    aspect-ratio: 16 / 9;
    min-height: 190px;
  }
}

/* ================= 5. BARRA SUPERIOR (HEADER) Y BOTÓN DE INGRESO ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  padding: clamp(12px, 2vh, 18px) clamp(16px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(5, 12, 28, 0.8) 0%, rgba(5, 12, 28, 0) 100%);
}

.header-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-auth {
  pointer-events: auto;
}

.btn-login-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 27, 68, 0.82);
  color: #ffffff;
  border: 1.5px solid var(--boca-gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-login-open:hover {
  background: var(--boca-gold);
  color: var(--boca-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 190, 61, 0.45);
}

.login-user-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Menú de sesión activa */
.user-session-box {
  position: relative;
}

.user-session-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 27, 68, 0.9);
  color: #ffffff;
  border: 1.5px solid var(--boca-gold);
  padding: 4px 14px 4px 6px;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.user-session-trigger:hover {
  border-color: #ffffff;
  transform: translateY(-1px);
}

.user-session-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--boca-gold);
  background-color: var(--boca-navy);
}

.user-session-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-chevron {
  width: 14px;
  height: 14px;
  stroke: var(--boca-gold);
  transition: transform 0.2s ease;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #091326;
  border: 1.5px solid rgba(249, 190, 61, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  min-width: 220px;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 110;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-user-info {
  margin-bottom: 10px;
  text-align: left;
}

.dropdown-user-name {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--boca-gold);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: #a0aec0;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.dropdown-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-action-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dropdown-action-btn svg {
  stroke: currentColor;
}

/* ================= 6. MODAL DE AUTENTICACIÓN (GOOGLE / APPLE / EMAIL) ================= */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  padding: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  background: linear-gradient(150deg, #07132a 0%, #00183f 100%);
  border: 1.5px solid rgba(249, 190, 61, 0.45);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(249, 190, 61, 0.18);
  width: 100%;
  max-width: 410px;
  padding: clamp(24px, 4vh, 32px) clamp(20px, 3vw, 28px);
  position: relative;
  color: #ffffff;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active .auth-modal-card {
  transform: scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-modal-close:hover {
  color: #ffffff;
}

.auth-modal-header {
  margin-bottom: 22px;
}

.auth-boca-shield {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(249, 190, 61, 0.4));
}

#auth-modal-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.auth-modal-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

/* Botones Sociales (Google y Apple) */
.auth-social-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-social {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.social-icon {
  flex-shrink: 0;
}

/* Botón Google Oficial */
.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* Botón Apple Oficial (Deshabilitado / Oculto) */
.btn-apple {
  display: none !important;
}

/* Separador */
.auth-divider-line {
  position: relative;
  text-align: center;
  margin: 16px 0;
}

.auth-divider-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider-line span {
  position: relative;
  background: #041028;
  padding: 0 12px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Formulario Email */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #ffffff;
  font-family: var(--font-table);
  transition: all 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--boca-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(249, 190, 61, 0.25);
}

.auth-feedback {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.feedback-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.feedback-success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.btn-email-submit {
  height: 44px;
  background: var(--boca-gold);
  color: var(--boca-navy);
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(249, 190, 61, 0.35);
}

.btn-email-submit:hover {
  background: #ffcc5c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 190, 61, 0.5);
}

.btn-email-toggle {
  background: none;
  border: none;
  color: var(--boca-gold);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.btn-email-toggle:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 580px) {
  .site-header {
    padding: 10px 14px;
  }


  .btn-login-open {
    padding: 6px 14px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .auth-modal-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  #auth-modal-title {
    font-size: 1.18rem;
  }
}


/* ================= BANNER DE ALERTA SUPERIOR ================= */
.site-alert-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-family: var(--font-primary);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  animation: slideDownAlert 0.3s ease-out;
}

@keyframes slideDownAlert {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.alert-pulse-icon {
  font-size: 1.1rem;
}

/* ================= MODO MANTENIMIENTO ================= */
.maintenance-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0d2146 0%, #071228 70%, #040915 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.maintenance-box {
  background: rgba(17, 29, 56, 0.9);
  border: 2px solid #f5a623;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 166, 35, 0.3);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 520px;
  width: 100%;
}

/* ================= 10. BLOQUES DE MONETIZACIÓN (GOOGLE ADSENSE) ================= */
.boca-ad-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 18px auto;
  padding: 10px 16px 14px;
  background: rgba(7, 18, 40, 0.5);
  border: 1px dashed rgba(249, 190, 61, 0.25);
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: opacity 0.3s ease;
}

.boca-ad-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--boca-gold);
  opacity: 0.8;
  margin-bottom: 8px;
}

.boca-ad-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.boca-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  width: 100%;
}

.boca-ad-placeholder svg {
  color: var(--boca-gold);
}

/* ================= 11. PIE DE PÁGINA (FOOTER) ================= */
.site-footer {
  width: 100%;
  background: linear-gradient(180deg, #071228 0%, #030814 100%);
  border-top: 1px solid rgba(249, 190, 61, 0.25);
  color: #94a3b8;
  padding: 42px 24px 26px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.footer-brand-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--boca-gold);
  letter-spacing: 0.5px;
}

.footer-slogan {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--boca-gold);
}

.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-disclaimer {
  max-width: 650px;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--boca-gold);
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ========================================================
   SECCIÓN 2.5: ÚLTIMAS NOTICIAS (DENTRO DE LA PORTADA)
   ======================================================== */
.news-section {
  background: radial-gradient(circle at 50% 10%, #0d1e44 0%, #060d1c 100%);
  padding: 50px 20px 40px;
  min-height: 100vh;
  min-height: 100dvh;
}

.news-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.news-section-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-title-badge {
  background: rgba(249, 190, 61, 0.12);
  border: 1px solid rgba(249, 190, 61, 0.4);
  color: var(--boca-gold);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-section-title {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #ffffff !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.news-title-line {
  width: 60px;
  height: 4px;
  background: var(--boca-gold);
  border-radius: 2px;
  margin-top: 10px;
}

/* Grilla de Noticias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
  margin: 16px 0 28px;
}

@media (max-width: 980px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Tarjeta de Noticia */
.news-card {
  background: rgba(10, 20, 42, 0.85);
  border: 1px solid rgba(249, 190, 61, 0.18);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--boca-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(249, 190, 61, 0.15);
}

.news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #040914;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.news-card:hover .news-card-media img {
  transform: scale(1.06);
}

.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 18, 40, 0.92);
  color: var(--boca-gold);
  border: 1px solid rgba(249, 190, 61, 0.6);
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.news-card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-family: var(--font-table);
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.02rem;
  color: #ffffff !important;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-family: var(--font-table);
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}

.news-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--boca-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: auto;
}

.news-card-action svg {
  transition: transform 0.2s ease;
}

.news-card:hover .news-card-action svg {
  transform: translateX(3px);
}

.news-scroll-wrap {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.news-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--boca-gold) !important;
  text-decoration: none !important;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  background: rgba(249, 190, 61, 0.08);
  border: 1px solid rgba(249, 190, 61, 0.25);
  border-radius: 30px;
  transition: all 0.2s ease;
}

.news-scroll-btn:hover {
  background: rgba(249, 190, 61, 0.2);
  border-color: var(--boca-gold);
  transform: translateY(2px);
}

.news-chevron {
  width: 14px;
  height: 14px;
}

/* ========================================================
   MODAL LECTOR DE NOTICIA COMPLETA
   ======================================================== */
.news-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

.news-modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.news-modal-card {
  background: #081226;
  border: 1px solid rgba(249, 190, 61, 0.35);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.news-modal-overlay.active .news-modal-card {
  transform: scale(1);
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.news-modal-close:hover {
  background: var(--boca-red);
  border-color: var(--boca-red);
  transform: rotate(90deg);
}

.news-modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.news-modal-media {
  position: relative;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #040914;
}

.news-modal-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.news-modal-badge {
  position: absolute;
  bottom: 14px;
  left: 20px;
  background: rgba(7, 18, 40, 0.95);
  color: var(--boca-gold);
  border: 1px solid var(--boca-gold);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.news-modal-header {
  padding: 22px 24px 12px;
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-table);
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.news-modal-dot {
  color: var(--boca-gold);
}

.news-modal-author {
  color: var(--boca-gold);
  font-weight: 600;
}

.news-modal-title {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  color: #ffffff !important;
  line-height: 1.28;
  margin-bottom: 12px;
}

.news-modal-lead {
  font-family: var(--font-table);
  font-size: 0.98rem;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.55;
  border-left: 3px solid var(--boca-gold);
  padding-left: 14px;
  margin-bottom: 16px;
}

.news-modal-ad-slot {
  margin: 0 24px 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-align: center;
}

.news-modal-body {
  padding: 0 24px 20px;
  font-family: var(--font-table);
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.news-modal-body p {
  margin-bottom: 14px;
}

.news-modal-body p:last-child {
  margin-bottom: 0;
}

.news-modal-share-box {
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
}

.news-share-label {
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.news-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
}

.btn-share-social:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-share-whatsapp {
  background: #25D366;
  color: #ffffff !important;
}

.btn-share-twitter {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-share-copy {
  background: rgba(249, 190, 61, 0.15);
  color: var(--boca-gold) !important;
  border: 1px solid rgba(249, 190, 61, 0.4);
}
