/* ============================================
   UNIVERSITARIO HOY — styles
   Crema / Granate / Negro / Blanco
   Mobile-first, moderno, futbolero
   ============================================ */

:root {
  --cream: #FFF8F0;
  --cream-dark: #F5EDE3;
  --cream-deeper: #EDE4D6;
  --granate: #8B1A1A;
  --granate-dark: #6B1010;
  --granate-light: #A82828;
  --black: #1A1A1A;
  --black-soft: #2D2D2D;
  --white: #FFFFFF;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --text: #2A2A2A;
  --text-light: #5A5A5A;
  --text-muted: #888;
  --success: #2D8A4E;
  --danger: #C0392B;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(160deg, var(--black) 0%, var(--black-soft) 40%, #2A1515 100%);
  color: var(--white);
  padding: 0 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,26,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--granate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-strip__dot {
  width: 8px;
  height: 8px;
  background: #FF4444;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-inner {
  padding: 0 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.team-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.team-badge__abbr {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font);
}

.team-badge--home .team-badge__abbr {
  background: var(--cream);
  color: var(--granate);
  border: 3px solid var(--gold);
}

.team-badge--away .team-badge__abbr {
  background: var(--granate);
  color: var(--white);
  border: 3px solid var(--granate-light);
}

.team-badge__name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  text-align: center;
}

.hero-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}

.hero-vs__text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.hero-vs__comp {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  text-align: center;
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.75;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.9;
}

.hero-meta__item strong {
  color: var(--gold-light);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 48px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
}

.section-title__accent {
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--granate);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ============================================
   LO ESENCIAL
   ============================================ */

.section--essential {
  background: var(--white);
}

.essential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.essential-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--cream-deeper);
}

.essential-card--highlight {
  border-left-color: var(--granate);
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E0 100%);
}

.essential-card__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.essential-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.essential-card__value--pending {
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   HORARIOS
   ============================================ */

.section--times {
  background: var(--cream);
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.time-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-deeper);
}

.time-card--main {
  background: var(--granate);
  color: var(--white);
  border-color: var(--granate);
}

.time-card__country {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.8;
}

.time-card--main .time-card__country {
  opacity: 0.9;
}

.time-card__hour {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

/* ============================================
   CONTEXTO
   ============================================ */

.section--context {
  background: var(--white);
}

.context-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.context-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.7;
}

.context-main p {
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.75;
}

.context-table {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--cream-deeper);
}

.context-table__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.context-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.context-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--cream-deeper);
}

.context-table td {
  padding: 10px;
  border-bottom: 1px solid var(--cream-deeper);
}

.context-table tr:last-child td {
  border-bottom: none;
}

.row-qualified td:first-child::after {
  content: ' ✓';
  color: var(--success);
  font-weight: 700;
}

.row-fighting {
  background: rgba(212, 168, 67, 0.08);
  border-radius: var(--radius-sm);
}

.row-fighting td {
  font-weight: 600;
}

.context-table__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* ============================================
   QUÉ SE JUEGA
   ============================================ */

.section--stakes {
  background: linear-gradient(160deg, #1A1A1A 0%, #2A1515 100%);
  color: var(--white);
}

.section--stakes .section-title {
  color: var(--white);
}

.section--stakes .section-title__accent {
  background: var(--gold);
}

.stakes-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.stakes-scenario {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.6;
}

.stakes-scenario strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.stakes-scenario--good {
  background: rgba(45, 138, 78, 0.15);
  border: 1px solid rgba(45, 138, 78, 0.3);
}

.stakes-scenario--bad {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.stakes-scenario__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.stakes-footnote {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 8px;
}

/* ============================================
   JUGADORES
   ============================================ */

.section--players {
  background: var(--cream);
}

.players-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.players-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.players-col__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-deeper);
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-deeper);
  gap: 12px;
}

.player-item:last-child {
  border-bottom: none;
}

.player-item__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

.player-item__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}

.players-disclaimer {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   CÓMO VERLO
   ============================================ */

.section--watch {
  background: var(--white);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.watch-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--cream-deeper);
  transition: transform 0.2s, box-shadow 0.2s;
}

.watch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.watch-card__icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.watch-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.watch-card p {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================
   CLAVES
   ============================================ */

.section--keys {
  background: var(--cream);
}

.keys-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.key-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--cream-deeper);
}

.key-item:last-child {
  border-bottom: none;
}

.key-item__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--granate);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
}

.key-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.key-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ============================================
   FUENTES
   ============================================ */

.section--sources {
  background: var(--white);
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-deeper);
  transition: background 0.2s, border-color 0.2s;
}

.source-link:hover {
  background: var(--cream-dark);
  border-color: var(--granate);
}

.source-link__outlet {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--granate);
  white-space: nowrap;
}

.source-link__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-note {
  font-size: 0.75rem !important;
  opacity: 0.45 !important;
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding-bottom: 36px;
  }

  .hero-strip {
    margin-bottom: 28px;
    font-size: 0.72rem;
  }

  .hero-logos {
    gap: 10px;
    margin-bottom: 24px;
  }

  .team-badge__abbr {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .team-badge__name {
    font-size: 0.65rem;
  }

  .hero-vs__text {
    font-size: 1.1rem;
  }

  .hero-vs__comp {
    font-size: 0.58rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .section {
    padding: 36px 0;
  }

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

  .times-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .players-split {
    grid-template-columns: 1fr;
  }

  .player-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .player-item__role {
    text-align: left;
  }

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

  .source-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .source-link__desc {
    text-align: left;
  }

  .context-table {
    overflow-x: auto;
  }

  .stakes-scenario {
    padding: 14px 16px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .times-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .time-card {
    padding: 10px 12px;
  }

  .time-card__hour {
    font-size: 1rem;
  }
}
