/* ── Custom Properties ──────────────────────────────────── */
:root {
  --color-primary:    #cc1128;
  --color-primary-dk: #a00d1f;
  --color-accent:     #d4a843;
  --color-river:      #cc1128;
  --color-boca:       #003da5;
  --color-gold:       #d4a843;
  --color-bg:         #0a0e17;
  --color-bg-alt:     #0d1220;
  --color-surface:    #131a2b;
  --color-surface-2:  #1a2438;
  --color-text:       #e8eaf0;
  --color-text-muted: #8892a4;
  --color-border:     #1e2a40;
  --radius:           12px;
  --shadow:           0 2px 16px rgba(0, 0, 0, 0.4);
  --shadow-card:      0 4px 24px rgba(0, 0, 0, 0.5);
  --transition:       0.2s ease;
  --max-w:            1100px;
  --header-h:         64px;
  --color-arg:        #5baee0;
  --color-esp:        #c60b1e;
  --color-esp-acc:    #ffc400;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; opacity: 0.85; }

/* ── Nav ─────────────────────────────────────────────────── */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.main-nav a:hover {
  color: var(--color-gold);
  text-decoration: none;
}

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--color-surface); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at top center, rgba(212, 168, 67, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(204, 17, 40, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 61, 165, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0f1520 0%, #0a0e17 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255, 255, 255, 0.015) 80px,
    rgba(255, 255, 255, 0.015) 81px
  );
  pointer-events: none;
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  opacity: 0.9;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}
.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.75;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
}
.hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.hero-team-pill {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-team-pill.river {
  background: rgba(204, 17, 40, 0.2);
  color: #ff6b7a;
  border: 1px solid rgba(204, 17, 40, 0.4);
}
.hero-team-pill.boca {
  background: rgba(0, 61, 165, 0.2);
  color: #7aa3f5;
  border: 1px solid rgba(0, 61, 165, 0.4);
}
.hero-vs-dot {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}
.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #c8922a 100%);
  color: #0a0e17;
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ── Sections ────────────────────────────────────────────── */
section[id] { scroll-margin-top: var(--header-h); }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

/* ── Versus ──────────────────────────────────────────────── */
.versus {
  background:
    radial-gradient(ellipse at center, rgba(212, 168, 67, 0.06) 0%, transparent 70%),
    var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.versus-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}
.versus-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.versus-team.team-local { align-items: flex-end; text-align: right; }
.versus-team.team-visitor { align-items: flex-start; text-align: left; }
.team-badge {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition), filter var(--transition);
}
.team-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6));
}
.team-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -0.75rem;
}
.versus-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.versus-divider::before,
.versus-divider::after {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}
.versus-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 8px;
  background: rgba(212, 168, 67, 0.06);
}

/* ── Cards ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 168, 67, 0.25);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}
.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-content .section-title { margin-bottom: 1rem; }
.cta-content .section-subtitle { margin-bottom: 2.5rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #060911;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 1.75rem 0;
  font-size: 0.82rem;
  border-top: 1px solid var(--color-border);
}

/* ── Mobile (≤768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .main-nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
  .main-nav a:hover { background: var(--color-surface); }

  .hero { padding: 4rem 0 3.5rem; }
  .hero-teams { gap: 1rem; }

  .versus-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 2rem;
  }
  .versus-team.team-local,
  .versus-team.team-visitor {
    align-items: center;
    text-align: center;
  }
  .versus-team.team-visitor { order: 3; }
  .versus-divider { order: 2; }
  .versus-divider::before,
  .versus-divider::after { display: none; }
  .team-badge {
    width: 90px;
    height: 90px;
  }

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

  .btn-large {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* PWXXXXX-2 / PWXXXXX-3 — Amistoso Internacional: Argentina vs España */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Header compact variant ────────────────────────────────────── */
.site-header--compact .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--header-h);
}
.site-header--compact .logo {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
}

/* ── Hero split background ────────────────────────────────────── */
.hero-split {
  background:
    radial-gradient(ellipse at 18% 50%, rgba(91, 174, 224, 0.20) 0%, transparent 48%),
    radial-gradient(ellipse at 82% 50%, rgba(198, 11, 30, 0.20) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 105%, rgba(0, 0, 0, 0.5) 0%, transparent 55%),
    linear-gradient(180deg, #0d1525 0%, var(--color-bg) 70%);
  min-height: calc(100vh - var(--header-h) - 56px);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

/* ── Piece layout ─────────────────────────────────────────────── */
.piece-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  width: 100%;
}

/* ── Event badge ──────────────────────────────────────────────── */
.event-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  background: rgba(212, 168, 67, 0.07);
}

/* ── Piece title ──────────────────────────────────────────────── */
.piece-title {
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  margin: 0;
}

/* ── Teams row ────────────────────────────────────────────────── */
.teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.team-block__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.vs-label {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

/* ── Flag badges ──────────────────────────────────────────────── */
.flag-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  position: relative;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.flag-badge:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}
.flag-badge--arg {
  background: linear-gradient(
    to bottom,
    #5baee0 0%, #5baee0 33.3%,
    #ffffff 33.3%, #ffffff 66.6%,
    #5baee0 66.6%, #5baee0 100%
  );
  border: 2px solid rgba(91, 174, 224, 0.55);
}
.flag-badge--esp {
  background: linear-gradient(
    to bottom,
    #c60b1e 0%, #c60b1e 25%,
    #ffc400 25%, #ffc400 75%,
    #c60b1e 75%, #c60b1e 100%
  );
  border: 2px solid rgba(198, 11, 30, 0.55);
}
.flag-badge__abbr {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.72);
}

/* ── Countdown ────────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  min-width: 72px;
  box-shadow: var(--shadow);
}
.countdown__number {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* ── Info row ─────────────────────────────────────────────────── */
.info-row {
  display: flex;
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.9rem 2rem;
  flex: 1;
}
.info-divider {
  width: 1px;
  background: var(--color-border);
  flex-shrink: 0;
}
.info-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* ── Mobile ≤768px (PWXXXXX-2) ────────────────────────────────── */
@media (max-width: 768px) {
  .hero-split { padding: 2.5rem 0 3rem; }
  .piece-container { gap: 1.75rem; }
  .teams-row { gap: 1.75rem; }
  .flag-badge { width: 60px; height: 60px; }
  .countdown { gap: 0.5rem; }
  .countdown__unit { min-width: 60px; padding: 0.7rem 0.85rem; }
  .info-row { flex-direction: column; }
  .info-divider { width: auto; height: 1px; }
  .info-item { padding: 0.75rem 1.25rem; }
}
