/* ============================================================
   shared.css — Estilos base para gritamundial.com
   Incluir en TODAS las páginas:
   <link rel="stylesheet" href="/assets/shared.css">
   ============================================================ */

/* ── Google Fonts se carga en cada HTML individualmente ── */

/* ==================== VARIABLES ====================*/
:root {
    --bg:       #06090f;
    --surface:  #0d1420;
    --surface2: #111827;
    --border:   #1e2d42;
    --accent:   #c9a84c;
    --accent2:  #e8c46a;
    --red:      #e84545;
    --green:    #2ecc71;
    --text:     #e8edf5;
    --muted:    #6b7c99;
    --max-w:    1200px;
  }
  
  /* ==================== RESET ====================*/
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  /* ==================== LIGHT MODE ====================*/
  body.light {
    --bg:       #f0f4f8;
    --surface:  #ffffff;
    --surface2: #e8eef5;
    --border:   #c8d6e5;
    --accent:   #b8860b;
    --accent2:  #9a6f00;
    --text:     #1a2332;
    --muted:    #6b7c99;
    --green:    #1a8c4e;
  }
  body.light .site-header { background: #fff; border-bottom: 2px solid var(--border); }
  body.light .country-hero { background: linear-gradient(135deg, #dde6f0, #c8d8ec 50%, #dde6f0); }
  
  /* ==================== SITE HEADER ====================*/
  .site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .site-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .site-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
  }
  .site-logo span { color: var(--text); }
  .back-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    margin-left: auto;
  }
  .back-btn:hover { color: var(--text); }
  .theme-toggle {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 18px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
  
  /* ==================== COUNTRY HERO ====================*/
  .country-hero {
    background: linear-gradient(135deg, #06090f 0%, #0a1628 50%, #06090f 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  .country-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 65%);
  }
  .country-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
  }
  .country-flag-big img {
    width: 96px;
    height: 64px;
    border-radius: 6px;
    border: 2px solid rgba(201,168,76,0.3);
    box-shadow: 0 0 24px rgba(201,168,76,0.15);
    display: block;
  }
  .country-hero-text h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(32px, 6vw, 60px);
    letter-spacing: 2px;
    line-height: 1;
    color: var(--text);
  }
  .country-hero-text h1 span { color: var(--accent); }
  .country-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  .country-meta-badge {
    background: rgba(201,168,76,0.12);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  
  /* ==================== DEBUT COUNTDOWN ====================*/
  .debut-countdown {
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    padding: 14px 20px;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .debut-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }
  .debut-units { display: flex; gap: 8px; align-items: center; }
  .debut-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 12px;
    min-width: 52px;
  }
  .debut-num {
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    color: var(--accent2);
    line-height: 1;
  }
  .debut-lbl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
  }
  .debut-sep { font-family: 'Bebas Neue', cursive; font-size: 20px; color: var(--border); margin-bottom: 10px; }
  
  /* ==================== MAIN CONTENT ====================*/
  .country-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px 60px;
  }
  .section-block { margin-bottom: 40px; }
  .section-heading {
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  
  /* ==================== MATCH CARDS (país) ====================*/
  .match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 16px 20px;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
  }
  .match-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0.5;
  }
  .match-card:hover { border-color: rgba(201,168,76,0.3); transform: translateX(2px); }
  .match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .match-round {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    padding: 3px 8px;
    border-radius: 4px;
  }
  .match-venue { font-size: 13px; color: var(--muted); }
  .teams-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
  .team { display: flex; align-items: center; gap: 10px; flex: 1; }
  .team.right { flex-direction: row-reverse; text-align: right; }
  .team-flag { display: flex; align-items: center; flex-shrink: 0; }
  .team-flag img { width: 36px; height: 24px; border-radius: 3px; display: block; }
  .team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
  }
  .team-name.highlight { color: var(--accent2); }
  .vs-badge {
    font-family: 'Bebas Neue', cursive;
    font-size: 16px;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 44px;
    text-align: center;
  }
  .times-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .time-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 6px;
  }
  .time-flag { display: flex; align-items: center; flex-shrink: 0; }
  .time-flag img { width: 22px; height: 15px; border-radius: 2px; display: block; }
  .time-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .time-value { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; color: var(--accent2); }
  
  /* ==================== TEAM INFO ====================*/
  .team-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
  }
  .info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
  }
  .info-card-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .info-card-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
  }
  .info-card-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
  
  /* ==================== JUGADORES CLAVE ====================*/
  .players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
  .player-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s;
  }
  .player-card:hover { border-color: rgba(201,168,76,0.3); }
  .player-pos {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
  }
  .player-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
  }
  .player-club { font-size: 13px; color: var(--muted); margin-top: 3px; }
  
  /* ==================== HISTORIA ====================*/
  .history-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .hist-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    text-align: center;
    flex: 1;
    min-width: 100px;
  }
  .hist-num {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    color: var(--accent2);
    line-height: 1;
  }
  .hist-lbl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
  }
  .history-text {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
  }
  .history-text strong { color: var(--text); }
  
  /* ==================== GRUPO CARD ====================*/
  .group-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .group-card-header {
    background: linear-gradient(90deg, rgba(201,168,76,0.18), transparent);
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-family: 'Bebas Neue', cursive;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--accent);
  }
  .group-team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(30,45,66,0.5);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
  }
  .group-team-row:last-child { border-bottom: none; }
  .group-team-row:hover { background: rgba(201,168,76,0.06); }
  .group-team-row.current { background: rgba(201,168,76,0.1); }
  .group-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    flex: 1;
  }
  .group-you-badge {
    font-size: 10px;
    background: rgba(201,168,76,0.2);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  /* ==================== ÚLTIMOS RESULTADOS ====================*/
  .results-list { display: flex; flex-direction: column; gap: 8px; }
  .result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
  }
  .result-badge {
    font-family: 'Bebas Neue', cursive;
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
  }
  .result-badge.G { background: rgba(46,204,113,0.2);  color: var(--green); }
  .result-badge.E { background: rgba(201,168,76,0.15); color: var(--accent); }
  .result-badge.D { background: rgba(232,69,69,0.15);  color: var(--red); }
  .result-rival {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
  }
  .result-score {
    font-family: 'Bebas Neue', cursive;
    font-size: 18px;
    color: var(--accent2);
    letter-spacing: 1px;
  }
  
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  
  /* ==================== RESPONSIVE ====================*/
  @media (max-width: 768px) {
    .country-hero-inner { padding: 20px 16px 16px; gap: 16px; }
    .country-flag-big img { width: 72px; height: 48px; }
    .country-hero-text h1 { font-size: 30px; }
    .country-meta { font-size: 12px; }
    .country-main { padding: 20px 14px 40px; }
    .team-name { font-size: 15px; }
    .times-row { gap: 5px; }
    .time-chip { padding: 4px 7px; }
    .team-info-grid { grid-template-columns: 1fr 1fr; }
    .players-grid { grid-template-columns: 1fr 1fr; }
    .site-header-inner { padding: 0 14px; }
  }
  @media (max-width: 420px) {
    .history-stats { gap: 8px; }
    .team-info-grid { grid-template-columns: 1fr; }
    .players-grid { grid-template-columns: 1fr; }
    .times-row { flex-wrap: wrap; }
    .time-chip { flex: 1 1 calc(50% - 5px); }
  }
  /* ============================================================
   FOOTER — agregar al FINAL de assets/shared.css
   ============================================================ */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 40px 24px 0;
  }
  .site-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
    padding-bottom: 32px;
  }
  .footer-brand .footer-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    letter-spacing: 2.5px;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
  }
  .footer-brand .footer-logo span { color: var(--text); }
  .footer-tagline {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 280px;
  }
  
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .footer-nav-col a {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    padding: 2px 0;
  }
  .footer-nav-col a:hover { color: var(--text); }
  
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
  }
  
  /* Mobile */
  @media (max-width: 720px) {
    .site-footer-inner {
      grid-template-columns: 1fr;
      gap: 28px;
    }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .footer-tagline { max-width: none; }
  }