/* ==========================================================
   DeportesXtra — Design tokens
   ========================================================== */
:root {
  --navy-950: #0a0a0a;
  --navy-900: #141414;
  --navy-800: #1f1f1f;
  --bg: #0a0a0a;
  --surface: #141414;
  --ink: #f2f2f2;
  --ink-muted: #7a8190;
  --accent: #e10600;
  --accent-ink: #ffffff;
  --line: #1f1f1f;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Ticker en vivo (elemento de firma) ---------- */
.ticker-wrap {
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track span.live {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Header ---------- */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
nav.main-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
nav.main-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s; }
nav.main-nav a:hover { border-color: var(--accent); }

/* ---------- Contenedor ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.hero-image {
  background: var(--surface);
  aspect-ratio: 16/10;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.hero p.excerpt { color: var(--ink-muted); font-size: 16px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .mini-card { display: flex; gap: 12px; align-items: flex-start; }
.mini-thumb {
  width: 84px; height: 60px; flex-shrink: 0;
  background: var(--surface); border-radius: 3px;
}
.mini-card h3 { font-size: 14.5px; line-height: 1.3; font-weight: 700; }

/* ---------- Secciones por deporte ---------- */
.sport-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.sport-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sport-section-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sport-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sport-section-head a.view-all {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-thumb { height: 170px; width: 100%; background: var(--navy-800); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px; flex: 1; }
.card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.32; }

/* ---------- Cartelera del día ---------- */
.schedule { padding: 36px 0 48px; }
.schedule h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 16px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.schedule-row .league { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.schedule-row .matchup { font-weight: 600; }
.schedule-row .status { text-align: right; font-family: var(--font-mono); font-size: 12.5px; }
.status.live { color: var(--accent); font-weight: 700; }
.status.live::before { content: '● '; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-950);
  color: #cfd6e2;
  padding: 40px 32px;
  margin-top: 24px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer .foot-links { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; }
footer .foot-links a:hover { color: #fff; }
footer small { color: #7a8394; font-size: 12px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
}

/* ---------- Barra utilitaria superior ---------- */
.utility-bar {
  background: var(--navy-950);
  color: #9aa1ad;
  font-size: 12px;
  padding: 6px 32px;
  display: flex;
  justify-content: space-between;
}

/* ---------- Header con nav en pills ---------- */
header.site-header {
  background: var(--navy-900);
  border-bottom: none;
  padding: 8px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
header.site-header .logo { color: #fff; }
header.site-header .logo span { color: var(--accent); }
nav.main-nav {
  text-transform: none;
  letter-spacing: normal;
  font-size: 13.5px;
}
nav.main-nav a { color: #cfd3da; border: none; padding: 8px 14px; border-radius: 20px; }
nav.main-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
nav.main-nav a.active { background: var(--accent); color: #fff; }

/* ---------- Eyebrow (etiqueta de sección) ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--accent); display: inline-block; }

/* ---------- Hero de intro (texto + CTA + última noticia) ---------- */
.hero-intro { padding: 48px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.hero-intro h1 { font-family: var(--font-display); font-size: 38px; line-height: 1.12; margin: 4px 0 16px; }
.hero-intro h1 .hl { color: var(--accent); }
.hero-intro p.lead { font-size: 15.5px; color: var(--ink-muted); margin-bottom: 24px; max-width: 46ch; }
.cta-row { display: flex; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 24px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.secondary { background: var(--navy-900); color: #fff; }

.ultima-noticia-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ultima-noticia-card .thumb { aspect-ratio: 16/10; background: var(--surface); }
.ultima-noticia-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ultima-noticia-card .body { padding: 14px 16px; }
.ultima-noticia-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.ultima-noticia-card h3 { font-size: 16px; margin: 8px 0 6px; line-height: 1.3; }
.ultima-noticia-card p { font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
.ultima-noticia-card a.leer { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Sección con eyebrow + heading + link "ver todo" ---------- */
.section-block { padding: 40px 0; border-top: 1px solid var(--line); }
.section-block-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-block-head h2 { font-family: var(--font-display); font-size: 26px; }
.section-block-head p { color: var(--ink-muted); font-size: 14px; max-width: 60ch; margin-top: 6px; }
.section-block-head a.ver-todo { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- Noticia destacada grande + sidebar ---------- */
.destacada-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
.big-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.big-card .thumb { aspect-ratio: 16/9; background: var(--surface); }
.big-card .thumb img { width:100%; height:100%; object-fit:cover; }
.big-card .body { padding: 18px 20px; }
.big-card h3 { font-size: 20px; line-height: 1.28; margin: 10px 0 8px; }
.big-card p { font-size: 14px; color: var(--ink-muted); margin-bottom: 10px; }
.sidebar-wrap { display: flex; flex-direction: column; height: 100%; }
.sidebar-list-title { font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.sidebar-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); flex: 1; align-items: center; }
.sidebar-item:first-child { border-top: none; }
.sidebar-item .thumb { width: 100px; height: 76px; flex-shrink: 0; border-radius: 6px; background: var(--surface); overflow: hidden; }
.sidebar-item .thumb img { width:100%; height:100%; object-fit:cover; }
.sidebar-item h4 { font-size: 15px; line-height: 1.35; font-weight: 700; }

/* ---------- Grid de partidos/resultados con barra de color arriba ---------- */
/* ---------- Tarjeta de partido (rediseño: sin logos, barra de acento lateral) ---------- */
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.match-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 16px 22px;
}
.match-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--line);
  border-radius: 0 3px 3px 0;
}
.match-card.en-vivo::before { background: var(--accent); }
.match-card .row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.match-card .liga-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.pill-status { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 12px; text-transform: uppercase; }
.pill-status.live { background: #3a1414; color: #ff6b63; }
.pill-status.programado { background: var(--navy-800); color: var(--ink-muted); }
.pill-status.final { background: var(--navy-800); color: var(--ink-muted); }
.match-card .teams { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.match-card .fecha { font-size: 12px; color: var(--ink-muted); }
.match-card .score { font-size: 14px; font-weight: 700; margin-top: 8px; color: var(--ink); }
.ver-mas-wrap { text-align: center; margin-top: 22px; }
.btn-outline { display:inline-block; padding: 10px 22px; border-radius: 24px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink); }

/* ---------- CTA de ligas ---------- */
.cta-ligas { background: var(--navy-950); color: #fff; padding: 44px 32px; margin-top: 24px; }
.cta-ligas .eyebrow { color: var(--accent); }
.cta-ligas h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 10px; }
.cta-ligas p { color: #b7bcc6; font-size: 14.5px; max-width: 70ch; margin-bottom: 22px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-row a { background: rgba(255,255,255,0.08); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.pill-row a:hover { background: var(--accent); }

/* ---------- Footer completo ---------- */
footer.site-footer-full { background: var(--navy-950); color: #b7bcc6; padding: 0; border-top: 3px solid var(--accent); }
footer.site-footer-full .foot-top { max-width: 1120px; margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer.site-footer-full .foot-brand .logo { color: #fff; font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
footer.site-footer-full .foot-brand .logo span { color: var(--accent); }
footer.site-footer-full .foot-brand p { font-size: 13px; margin-bottom: 16px; }
footer.site-footer-full .social-row { display: flex; gap: 12px; }
footer.site-footer-full .social-row a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 13px; }
footer.site-footer-full h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
footer.site-footer-full ul { list-style: none; }
footer.site-footer-full li { margin-bottom: 10px; font-size: 13.5px; }
footer.site-footer-full .foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 32px; display: flex; justify-content: space-between; font-size: 12px; max-width: 1120px; margin: 0 auto; }

/* ---------- Motivo de líneas diagonales (firma visual del header) ---------- */
header.site-header { position: relative; overflow: hidden; }
header.site-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  background: repeating-linear-gradient(115deg, transparent, transparent 8px, rgba(225,6,0,0.08) 8px, rgba(225,6,0,0.08) 10px);
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero-intro, .destacada-layout { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  footer.site-footer-full .foot-top { grid-template-columns: 1fr; }
}