/* ==============================================
   mundial2026.guru — Hoja de estilos compartida
   ============================================== */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --celeste: #75AADB;
  --celeste-dark: #3B7EC2;
  --gold: #F5C518;
  --gold-dark: #C9A000;
  --text: #1A1A1A;
  --text-muted: #555;
  --bg: #FAFAF8;
  --bg-alt: #F2F0EA;
  --border: #DDD9CF;
  --radius: 10px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--celeste-dark); }
a:hover { color: var(--celeste); }
p { margin-bottom: 16px; }

/* ── HEADER ── */
header {
  color: white;
  padding: 0;
  border-bottom: 4px solid var(--celeste);
  background:
    linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(18,34,71,0.85) 60%, rgba(27,58,114,0.78) 100%),
    url('/img/header-stadium.webp') center 40% / cover no-repeat;
  background-color: #0A1628;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.site-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}

.header-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}

.header-title span { color: var(--gold); }

header p.header-title {
  font-size: clamp(42px, 7vw, 78px);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.header-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  line-height: 1.5;
}

.trophy-block { text-align: center; }

.trophy-emoji {
  font-size: 72px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(245,197,24,0.5));
}

.trophy-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ── NAV ── */
nav {
  background: #0D1E3A;
  border-bottom: 1px solid rgba(117,170,219,0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav-inner a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 14px 20px;
  display: block;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.nav-inner a:hover, .nav-inner a.active {
  color: var(--celeste);
  border-bottom-color: var(--celeste);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: #0D1E3A;
  border-bottom: 1px solid rgba(117,170,219,0.15);
  padding: 10px 0;
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.breadcrumb-inner a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.breadcrumb-inner a:hover { color: var(--celeste); }
.breadcrumb-inner span { color: rgba(255,255,255,0.3); margin: 0 6px; }

/* ── MAIN LAYOUT ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

section { padding: 52px 0 0; }

/* ── HEADINGS ── */
h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

h2 .accent { color: var(--celeste-dark); }

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 680px;
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin: 32px 0 12px;
}

/* ── PAGE H1 (внутренние страницы) ── */
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
}

.page-h1 .accent { color: var(--celeste-dark); }

/* ── DIVIDER ── */
.divider {
  height: 3px;
  background: linear-gradient(90deg, var(--celeste) 0%, var(--gold) 50%, var(--celeste) 100%);
  border-radius: 2px;
  margin: 52px 0 0;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, #0A1628, #1B3A72);
  color: white;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 28px 0;
  border-left: 5px solid var(--celeste);
}

.highlight-box h3 { color: var(--gold); margin-top: 0; }
.highlight-box p { color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.highlight-box p:last-child { margin-bottom: 0; }

/* ── PRÓXIMO PARTIDO CARD ── */
.next-match {
  background: linear-gradient(135deg, #0A1628, #1B3A72);
  border-radius: var(--radius);
  padding: 36px;
  margin: 28px 0;
  border: 2px solid var(--celeste);
  text-align: center;
}

.next-match-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--celeste);
  display: block;
  margin-bottom: 16px;
}

.next-match-teams {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}

.next-match-teams .vs {
  color: var(--gold);
  font-size: 0.6em;
  margin: 0 12px;
}

.next-match-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.next-match-meta-item { text-align: center; }

.next-match-meta-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  display: block;
}

.next-match-meta-key {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 2px;
}

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--celeste-dark);
  line-height: 1;
  display: block;
}

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

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  display: block;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead { background: #0D1E3A; color: white; }

thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-alt); }

tbody tr.arg-row {
  background: #EBF3FB !important;
  font-weight: 600;
}

tbody tr.arg-row td:first-child {
  border-left: 4px solid var(--celeste-dark);
}

tbody tr.highlight-row {
  background: #EBF3FB !important;
  font-weight: 600;
}

tbody tr.highlight-row td:first-child {
  border-left: 4px solid var(--gold-dark);
}

tbody td { padding: 11px 16px; color: var(--text); }

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-green  { background: #d4edda; color: #155724; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-gold   { background: #fff3cd; color: #856404; }
.badge-gray   { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* ── TWO-COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

/* ── INFO CARD ── */
.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--celeste-dark);
}

/* ── LISTS ── */
ul.styled-list, ol.styled-list {
  padding-left: 0;
  list-style: none;
  margin: 16px 0;
}

ul.styled-list li, ol.styled-list li {
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 16px;
  counter-increment: li;
}

ul.styled-list li:last-child,
ol.styled-list li:last-child { border-bottom: none; }

ul.styled-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--celeste-dark);
  font-size: 13px;
  top: 11px;
}

ol.styled-list { counter-reset: li; }

ol.styled-list li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  background: var(--celeste-dark);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.faq-a { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ── GROUP CARDS (страница /grupos/) ── */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.group-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.group-card.featured {
  border: 2px solid var(--celeste-dark);
}

.group-card-header {
  background: #0D1E3A;
  color: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-card.featured .group-card-header {
  background: var(--celeste-dark);
}

.group-letter {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: white;
}

.group-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.group-card-body { padding: 12px 16px; }

.group-team {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-team:last-child { border-bottom: none; }
.group-team.seed1 { font-weight: 600; color: var(--celeste-dark); }
.group-team.arg { font-weight: 700; color: var(--celeste-dark); }

/* ── SEDE CARDS (страница /sedes/) ── */
.sede-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sede-card.featured-sede {
  border: 2px solid var(--celeste-dark);
}

.sede-card-header {
  background: #0D1E3A;
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sede-emoji { font-size: 28px; line-height: 1; }

.sede-nombre {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.sede-ciudad {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.sede-card-body { padding: 16px 18px; }

/* ── FOOTER ── */
footer {
  background: #0A1628;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
  margin-top: 60px;
}

footer a { color: var(--celeste); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 660px) {
  .two-col { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: 1fr; }
  .trophy-block { display: none; }
  .next-match-meta { gap: 16px; }
}
