@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --white:      #ffffff;
  --off:        #f7f6f3;
  --off-2:      #efeeed;
  --ink:        #111110;
  --ink-soft:   #6b6b68;
  --line:       #e8e5e0;
  --red:        #dc2626;
  --red-2:      #b91c1c;
  --red-light:  #fee2e2;
  --dark:       #1a1917;
  --dark-2:     #111110;
  --f-head:     'DM Serif Display', Georgia, serif;
  --f-body:     'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--f-body);
  background: var(--white);
  color: var(--ink);
}

/* ─────────────────────────────────────────
   HERO — fondo blanco, sin color
───────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 48px 20px 40px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  border: 1px solid #fecaca;
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 1.2rem;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-eyebrow span {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: italic;
  color: var(--red);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 400;
}

/* Hero derecho */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* Tarjeta próximo partido */
.next-match-card {
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  width: 100%;
}

.next-match-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.next-match-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.next-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.match-team-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.match-team-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.match-vs {
  font-family: var(--f-head);
  font-size: 18px;
  font-style: italic;
  color: #ccc;
  flex-shrink: 0;
}

.next-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.match-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-soft);
}

.match-meta-item i { font-size: 10px; color: var(--red); }

/* Badge temporada */
.season-badge {
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.season-badge-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.season-badge-info { line-height: 1.3; }

.season-badge-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.season-badge-info span {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────
   STATS BAR — gris claro, franja roja arriba
───────────────────────────────────────── */
.stats-bar {
  background: var(--off);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat-item {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-item:nth-child(2n)      { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-info strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}

.stat-info span {
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ─────────────────────────────────────────
   CONTENIDO PRINCIPAL
───────────────────────────────────────── */
.main-content {
  max-width: 1160px;
  margin: 0 auto;
}

/* Section header */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.4rem;
}

.section-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-eyebrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.section-title {
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title em { font-style: italic; }

.section-subtitle {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  line-height: 1.6;
}

.ver-todos {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s;
  align-self: flex-start;
}

.ver-todos:hover { color: var(--ink); border-color: var(--ink); }

/* ─────────────────────────────────────────
   PROGRAMAS
───────────────────────────────────────── */
.programas-section {
  margin-bottom: 3rem;
  padding: 15px;
}

.programas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.programa-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #111;
  min-height: 220px;
  transition: transform .35s ease, box-shadow .35s ease;
}

.programa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.programa-card.featured { min-height: 280px; }

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.programa-card:hover .card-img { transform: scale(1.06); }

.programa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.28), rgba(0,0,0,.06));
}

.card-body {
  position: relative;
  z-index: 2;
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: .6rem;
}

.card-title {
  font-family: var(--f-head);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: .4rem;
}

.programa-card.featured .card-title { font-size: 1.6rem; }

.card-desc {
  font-size: .8rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: .8rem;
}

.programa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.card-cta {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-cta i {
  font-size: 11px;
  transition: transform .2s;
}

.programa-card:hover .card-cta i { transform: translateX(4px); }

/* ─────────────────────────────────────────
   FOOTER — oscuro neutro, no navy
───────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #888;
  font-family: var(--f-body);
  border-top: 3px solid var(--red);
}

.footer-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(220,38,38,0.18);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.footer-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  font-size: 12px;
  line-height: 1.7;
  max-width: 280px;
  color: #555;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 1.25rem;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  color: #333;
}

/* ─────────────────────────────────────────
   TABLET ≥ 600px
───────────────────────────────────────── */
@media (min-width: 600px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); }

  .stat-item           { border-bottom: none; }
  .stat-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat-item:last-child    { border-right: none; }

  .footer-main { grid-template-columns: 1fr 1fr; }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .ver-todos { align-self: flex-end; }
}

/* ─────────────────────────────────────────
   DESKTOP ≥ 900px
───────────────────────────────────────── */
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .hero-right { align-items: flex-end; }

  .next-match-card,
  .season-badge { max-width: 340px; }

  .stats-inner { padding: 0 2rem; }
  .stat-item   { padding: 22px 28px; }
  .stat-icon   { width: 40px; height: 40px; font-size: 18px; }
  .stat-info strong { font-size: 22px; }
  .stat-info span   { font-size: 11px; }

  .main-content { padding: 64px 2rem 80px; }

  .programas-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }

  .programa-card.featured {
    grid-row: span 2;
    min-height: 420px;
  }

  .footer-main {
    grid-template-columns: 1.6fr 1fr 1fr;
    padding: 3rem 2rem;
  }

  .footer-bottom { padding: 18px 2rem; }
  .hero-grid     { padding: 0 2rem; }
}