/* ==========================================================
   Mundial 2026 — página de demostración
   Paleta: cancha nocturna + marcador LED + confeti dorado
   ========================================================== */

:root {
  --pitch-deep:   #06170F;
  --pitch-dark:   #0B3D2E;
  --pitch:        #146C43;
  --gold:         #F4B41A;
  --flame:        #E63946;
  --emerald:      #2FBE85;
  --cream:        #F5F1E6;
  --ink:          #12181B;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--pitch-deep);
  padding: 18px 0;
  border-bottom: 1px solid rgba(244, 180, 26, 0.18);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-transform: uppercase;
}

.wordmark-accent {
  color: var(--gold);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.55);
  border: 1px solid rgba(245, 241, 230, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Hero / Marcador ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pitch-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-mundial2026.svg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.scoreboard {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  background: rgba(6, 23, 15, 0.72);
  border: 1px solid rgba(244, 180, 26, 0.45);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 30px) clamp(24px, 5vw, 56px);
  box-shadow: 0 0 60px rgba(244, 180, 26, 0.12);
}

.score-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--cream);
}

.score-digits {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 2vw, 20px);
}

.digit {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  color: var(--gold);
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: digitIn 0.6s ease-out forwards;
}

.digit:nth-of-type(1) { animation-delay: 0.15s; }

.dash {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: rgba(245, 241, 230, 0.4);
}

@keyframes digitIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.score-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.55);
  margin-top: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--cream);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  letter-spacing: 0.01em;
  margin-top: 30px;
  line-height: 1.05;
}

.hero-sub {
  color: rgba(245, 241, 230, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 46ch;
  margin: 18px auto 0;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(244, 180, 26, 0.85);
  margin-top: 20px;
}

/* ---------- Sección de estadísticas ---------- */

.stats {
  background: var(--cream);
  padding: 88px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pitch);
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 44px;
}

.section-label--light {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid rgba(11, 61, 46, 0.12);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 24px rgba(11, 61, 46, 0.1);
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--pitch-dark);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(18, 24, 27, 0.68);
}

.stat-card--accent {
  background: var(--pitch-dark);
  border-color: var(--pitch-dark);
}

.stat-card--accent .stat-number {
  color: var(--gold);
}

.stat-card--accent .stat-label {
  color: rgba(245, 241, 230, 0.75);
}

.stat-card--accent:hover {
  border-color: var(--gold);
}

/* ---------- Sección de sedes ---------- */

.hosts {
  background: var(--pitch-dark);
  padding: 80px 0;
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.host-band {
  padding: 26px 22px;
  border-top: 3px solid var(--gold);
  background: rgba(245, 241, 230, 0.04);
  transition: transform 0.2s ease, background 0.2s ease;
}

.host-band:hover {
  transform: translateY(-3px);
  background: rgba(245, 241, 230, 0.08);
}

.host-band h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.host-band p {
  font-size: 0.9rem;
  color: rgba(245, 241, 230, 0.68);
}

.host-mx { border-top-color: var(--emerald); }
.host-ca { border-top-color: var(--flame); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pitch-deep);
  padding: 28px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer p {
  font-size: 0.82rem;
  color: rgba(245, 241, 230, 0.5);
}

.site-footer .stack {
  font-family: var(--font-mono);
  color: rgba(244, 180, 26, 0.7);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
  .scoreboard { gap: 14px; padding: 20px; }
  .stats, .hosts { padding: 56px 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- Accesibilidad: respeta reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .digit {
    opacity: 1;
    transform: none;
  }
}
