/* ═══════════════════════════════════════
   PARTIDOS.CSS — ATFA Mundial 2026
   ═══════════════════════════════════════ */

.partidos-section {
  background: var(--navy-deep, #020C18);
  padding: 3.5rem 0 2.5rem;
}

.partidos-header {
  margin-bottom: 2rem;
}

/* ── Grid de tarjetas ── */
.partidos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.partidos-loading,
.partidos-empty {
  width: 100%;
  text-align: center;
  font-family: 'Barlow', sans-serif;
  color: rgba(255,255,255,.45);
  padding: 2rem 0;
}

/* ── Tarjeta base ── */
.partido-card {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .2s, box-shadow .2s;
  flex: 1 1 300px;
  max-width: 340px;
}

.partido-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* ── Tarjeta Argentina destacada ── */
.partido-card.arg-highlight {
  border-color: rgba(201,162,39,.5);
  background: linear-gradient(135deg, rgba(201,162,39,.1) 0%, rgba(201,162,39,.03) 100%);
  box-shadow: 0 0 0 1px rgba(201,162,39,.25), 0 4px 20px rgba(201,162,39,.1);
}

/* ── Tarjeta debut ── */
.partido-card.debut-card {
  border-color: rgba(201,162,39,.8);
  box-shadow: 0 0 0 2px rgba(201,162,39,.4), 0 8px 30px rgba(201,162,39,.15);
}

/* ── Badges ── */
.debut-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #C9A227, #9A7A1A);
  color: #020C18;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 20px;
  white-space: nowrap;
}

.arg-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #C9A227;
  text-transform: uppercase;
}

/* ── Contenido de la tarjeta ── */
.partido-tipo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.partido-fecha {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
}

.partido-equipos {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: .25rem 0;
}

.equipo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: .05em;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.partido-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

.partido-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .1em;
}

.partido-hora {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #C9A227;
  letter-spacing: .06em;
  line-height: 1;
}

.hora-zone {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(201,162,39,.6);
  letter-spacing: .1em;
  vertical-align: middle;
}

.partido-venue {
  font-family: 'Barlow', sans-serif;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  line-height: 1.4;
}

/* ── Próximas fechas sin rivales confirmados (semis, final, etc.) ── */
.partidos-tbd-wrap {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.partidos-tbd-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
  text-align: center;
}

.partidos-tbd-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.partido-tbd-card {
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 10px;
  flex: 1 1 200px;
  max-width: 230px;
  padding: .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.tbd-tipo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(201,162,39,.7);
}

.tbd-fecha {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.8);
}

.tbd-fecha .hora-zone {
  font-size: .65rem;
}

.tbd-equipos {
  font-family: 'Barlow', sans-serif;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  font-style: italic;
}

/* ── Botones calendario ── */
.calendar-sync {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 2rem;
  text-align: center;
}

.calendar-sync-label {
  font-family: 'Barlow', sans-serif;
  font-size: .9rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.calendar-sync-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C9A227;
  border: 1.5px solid rgba(201,162,39,.35);
  background: rgba(201,162,39,.06);
  padding: .6rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.cal-btn:hover {
  background: rgba(201,162,39,.15);
  border-color: rgba(201,162,39,.6);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .partido-card,
  .partido-tbd-card {
    flex-basis: 100%;
  }
  .partido-equipos {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }
}

/* ── Contador del Mundial (reemplaza al countdown) ── */
.mundial-day-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: fadeInCounter .8s ease;
}

@keyframes fadeInCounter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mundial-day-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 22vw, 13rem);
  line-height: .9;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #F5D26B 0%, #C9A227 60%, #9A7A1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(201,162,39,.45));
}

.mundial-day-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.mundial-fase-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .4rem;
  background: rgba(201,162,39,.12);
  border: 1.5px solid rgba(201,162,39,.4);
  border-radius: 40px;
  padding: .55rem 1.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  letter-spacing: .12em;
  color: #C9A227;
  box-shadow: 0 0 20px rgba(201,162,39,.15), inset 0 0 20px rgba(201,162,39,.05);
}

.mundial-final-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: .1em;
  background: linear-gradient(135deg, #F5D26B, #C9A227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(201,162,39,.5));
  text-align: center;
}
