/* ═══════════════════════════════════════════════════
   RADIO ANTENA 2000 — mundial.css
   Estilos para la página del Mundial 2026
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.mundial-hero {
  background: linear-gradient(135deg, #001E73 0%, #000d40 50%, #001a00 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.mundial-hero-bg { position:absolute; inset:0; pointer-events:none; }

.mh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.mh-orb1 { width:400px; height:400px; background:rgba(255,220,0,.08); top:-100px; right:-100px; animation-delay:0s; }
.mh-orb2 { width:300px; height:300px; background:rgba(0,100,0,.15); bottom:-50px; left:-50px; animation-delay:2s; }
.mh-orb3 { width:250px; height:250px; background:rgba(0,30,115,.3); top:50%; left:40%; animation-delay:4s; }

@keyframes orbFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  50%      { transform:translate(20px,-20px) scale(1.05); }
}

.mundial-hero-inner { position:relative; z-index:1; text-align:center; }

.mundial-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,220,0,.1);
  border: 1px solid rgba(255,220,0,.3);
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mundial-live-badge {
  background: #ef5350;
  color: #fff;
  font-size: .62rem;
  padding: 2px 8px;
  border-radius: 10px;
  animation: pulse 1.4s infinite;
}

.mundial-title {
  font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: .8rem;
}
.mundial-title em { color: var(--yellow); font-style: normal; }

.mundial-sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Partido destacado en hero */
.mundial-featured-match {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,220,0,.2);
  border-radius: 20px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);
}

.mfm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  padding: 1rem;
}

.featured-match-inner { text-align:center; }
.featured-phase {
  font-size: .7rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .6rem;
}
.featured-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: .8rem 0;
}
.featured-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex: 1;
}
.featured-team-flag { font-size: 2.8rem; line-height: 1; }
.featured-team-name { color: #fff; font-size: .85rem; font-weight: 700; }
.featured-score {
  background: rgba(0,0,0,.4);
  border-radius: 12px;
  padding: .6rem 1.2rem;
  min-width: 100px;
  text-align: center;
}
.featured-score-nums {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.featured-score-status {
  font-size: .65rem;
  color: var(--yellow);
  font-weight: 700;
  margin-top: .2rem;
  text-transform: uppercase;
}
.featured-meta {
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  margin-top: .6rem;
}

/* ── TABS ── */
.mundial-tabs-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 100px;
  z-index: 400;
  box-shadow: var(--shadow);
}

.mundial-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mundial-tabs::-webkit-scrollbar { display:none; }

.mundial-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  font-family: var(--font);
}
.mundial-tab:hover { color: var(--navy); }
.mundial-tab.active {
  color: var(--navy);
  border-bottom-color: var(--yellow);
}
[data-theme="dark"] .mundial-tab:hover,
[data-theme="dark"] .mundial-tab.active { color: var(--yellow); }

/* ── CONTENIDO ── */
.mundial-content { padding: 2rem 0 3rem; }

.mundial-panel { display: none; }
.mundial-panel.active { display: block; }

.mundial-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.mundial-day-header h2 { font-size:1.2rem; font-weight:800; color:var(--text-1); }

/* ── LISTA DE PARTIDOS ── */
.matches-list { display: flex; flex-direction: column; gap: .8rem; }

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.match-card.live {
  border-color: #ef5350;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(239,83,80,.04) 100%);
}
.match-card.live::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #ef5350;
}

.match-team {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.match-team.away { flex-direction: row-reverse; }
.match-team-flag { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.match-team-name { font-size: .88rem; font-weight: 700; color: var(--text-1); }
.match-team-short { font-size: .72rem; color: var(--text-3); }

.match-center { text-align: center; flex-shrink: 0; min-width: 100px; }
.match-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
}
.match-status {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: .3rem;
  display: inline-block;
}
.status-live    { background:#ef5350; color:#fff; animation: pulse 1.4s infinite; }
.status-done    { background:var(--bg-alt); color:var(--text-3); }
.status-soon    { background:rgba(0,30,115,.1); color:var(--navy); }
[data-theme="dark"] .status-soon { background:rgba(255,220,0,.1); color:var(--yellow); }
.match-time { font-size:.78rem; color:var(--text-3); margin-top:.2rem; }
.match-phase { font-size:.62rem; color:var(--text-3); text-transform:uppercase; letter-spacing:.5px; }

/* ── FIXTURE FILTERS ── */
.fixture-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.fixture-filter {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.fixture-filter.active,
.fixture-filter:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
[data-theme="dark"] .fixture-filter.active { background:var(--yellow); color:var(--navy); border-color:var(--yellow); }

/* ── GRUPOS ── */
.grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.grupo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.grupo-header {
  background: var(--navy);
  color: var(--yellow);
  font-size: .82rem;
  font-weight: 800;
  padding: .6rem 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.grupo-table { width:100%; border-collapse:collapse; }
.grupo-table th {
  font-size: .65rem;
  color: var(--text-3);
  padding: .4rem .6rem;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.grupo-table th:first-child { text-align:left; }
.grupo-table td {
  padding: .5rem .6rem;
  font-size: .78rem;
  text-align: center;
  border-bottom: .5px solid var(--border);
}
.grupo-table td:first-child { text-align:left; }
.grupo-table tr:last-child td { border-bottom:none; }
.grupo-table tr:hover td { background:var(--bg-alt); }
.grupo-team-cell { display:flex; align-items:center; gap:.4rem; }
.grupo-team-flag { font-size:1.1rem; }
.grupo-team-name { font-weight:600; color:var(--text-1); }
.grupo-pos {
  font-size:.65rem; font-weight:800;
  width:18px; height:18px;
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.grupo-pos.q  { background:var(--navy); color:var(--yellow); }
.grupo-pos.out{ background:var(--bg-alt); color:var(--text-3); }

/* ── STATS ── */
.stats-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.stats-card h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--yellow);
  color: var(--text-1);
}
.stats-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  border-bottom: .5px solid var(--border);
}
.stats-item:last-child { border-bottom:none; }
.stats-rank {
  font-size: .7rem; font-weight: 900;
  background: var(--navy); color: var(--yellow);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stats-flag  { font-size: 1.2rem; flex-shrink:0; }
.stats-name  { font-size: .82rem; font-weight: 600; flex: 1; color:var(--text-1); }
.stats-value {
  font-size: .85rem; font-weight: 800;
  color: var(--navy);
  background: rgba(0,30,115,.08);
  padding: 2px 10px;
  border-radius: 10px;
}
[data-theme="dark"] .stats-value { color:var(--yellow); background:rgba(255,220,0,.1); }

/* ── SPINNER ── */
.matches-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 3rem;
  color: var(--text-3);
  font-size: .85rem;
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
[data-theme="dark"] .spinner { border-top-color: var(--yellow); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NO DATA ── */
.no-matches {
  text-align: center;
  padding: 3rem;
  color: var(--text-3);
  font-size: .88rem;
}
.no-matches .no-icon { font-size: 2.5rem; margin-bottom: .8rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .match-card { grid-template-columns: 1fr; gap: .6rem; padding: .9rem 1rem; }
  .match-team.away { flex-direction: row; }
  .match-center { order: -1; display:flex; align-items:center; gap:.5rem; justify-content:center; }
  .match-score  { font-size:1.2rem; }
  .mundial-featured-match { padding: 1.2rem; }
  .featured-team-flag { font-size:2rem; }
  .featured-score-nums { font-size:1.6rem; }
  .grupos-grid { grid-template-columns: 1fr; }
  .stats-wrap  { grid-template-columns: 1fr; }
  .mundial-tab { padding: .8rem 1rem; font-size:.78rem; }
}
