/* =========================================================
   DEPORTES CON IMANOL — hoja de estilos base
   Paleta: noche de estadio bajo las luces
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg: #0B1210;
  --panel: #101B17;
  --panel-2: #16231D;
  --line: rgba(242,241,234,0.12);
  --chalk: #F2F1EA;
  --muted: #93A39A;

  --nfl: #C8443C;
  --nfl-dim: #7A2C27;
  --mlb: #3E7CB8;
  --mlb-dim: #24425C;
  --cfb: #3B5BA0;
  --cfb-dim: #26396A;

  --accent: #4C8FD9; /* acento general del sitio (marca) */

  --display: 'Anton', sans-serif;
  --body: 'Source Serif 4', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 2px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img{ max-width:100%; display:block; }

a{ color: inherit; text-decoration: none; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Marcador / ticker (elemento firma) ---------- */

.scoreboard{
  background: #060A08;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.scoreboard::before,
.scoreboard::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 40px;
  z-index: 2;
  pointer-events:none;
}
.scoreboard::before{ left:0; background: linear-gradient(90deg, #060A08, transparent); }
.scoreboard::after{ right:0; background: linear-gradient(270deg, #060A08, transparent); }

.scoreboard-track{
  display:inline-flex;
  gap: 48px;
  padding: 9px 0;
  animation: ticker 38s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.scoreboard:hover .scoreboard-track{ animation-play-state: paused; }

@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.tick{ color: var(--muted); }
.tick b{ color: var(--chalk); font-weight: 600; }
.tick .dot{ color: var(--accent); margin: 0 6px; }
.tick.live b{ color: var(--nfl); }
.tick.live::before{
  content:"● EN VIVO";
  color: var(--nfl);
  margin-right: 8px;
  font-size: 11px;
}

/* ---------- Header ---------- */

header.site{
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.site-header-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}

.logo{
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1;
  display:flex;
  flex-direction: column;
}
.logo span.small{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-top: 4px;
}
.logo .accent{ color: var(--accent); }

nav.main{
  display:flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.main a{
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
nav.main a:hover, nav.main a.active{
  color: var(--chalk);
  border-color: var(--accent);
}

.yt-btn{
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid var(--nfl);
  color: var(--chalk);
  padding: 9px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s;
}
.yt-btn:hover{ background: var(--nfl-dim); }

.menu-toggle{ display:none; }

/* ---------- Hero ---------- */

.hero{
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1px;
  background: var(--accent);
}

.hero h1{
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero p.dek{
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 22px;
}

.hero-meta{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-side{
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.hero-side .eyebrow{ color: var(--muted); }
.hero-side .eyebrow::before{ background: var(--muted); }

/* ---------- League tag pills ---------- */

.tag{
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: var(--radius);
  display: inline-block;
}
.tag.nfl{ background: rgba(200,68,60,0.14); color: var(--nfl); border:1px solid var(--nfl-dim); }
.tag.mlb{ background: rgba(62,124,184,0.16); color: var(--mlb); border:1px solid var(--mlb-dim); }
.tag.cfb{ background: rgba(59,91,160,0.16); color: #7C9CD9; border:1px solid var(--cfb-dim); }

/* ---------- Section headers ---------- */

.section{ padding: 56px 0; border-bottom: 1px solid var(--line); }
.section.tight{ padding: 40px 0; }
.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--display);
  font-size: 30px;
  margin: 0;
}
.section-head .see-all{
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.section-head .see-all:hover{ color: var(--accent); border-color: var(--accent); }

/* ---------- League band accents ---------- */
.section.league-nfl .section-head h2{ color: var(--nfl); }
.section.league-mlb .section-head h2{ color: var(--mlb); }
.section.league-cfb .section-head h2{ color: #7C9CD9; }

/* ---------- Article cards ---------- */

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover{ border-color: var(--accent); transform: translateY(-2px); }

.card-thumb{
  aspect-ratio: 16/10;
  background: var(--panel-2);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}

.card-body{ padding: 18px 20px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }

.card h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  margin: 4px 0 0;
}
.card p{ color: var(--muted); font-size: 14.5px; margin:0; flex:1; }

.card-meta{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

/* ---------- Video block ---------- */

.video-block{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items:center;
}
.video-frame{
  aspect-ratio: 16/9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.video-frame iframe{ width:100%; height:100%; border:0; }

.video-copy h2{
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 12px;
}
.video-copy p{ color: var(--muted); margin: 0 0 20px; }

/* ---------- Ad slots ---------- */

.ad-slot{
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 120px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 48px 0;
  background: var(--panel);
}
.ad-slot.leaderboard{ min-height: 100px; }
.ad-slot.rectangle{ min-height: 260px; max-width: 336px; margin: 0 auto; }

/* ---------- Article page ---------- */

.article-header{ padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.article-header .tag{ margin-bottom: 18px; }
.article-header h1{
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  margin: 0 0 16px;
}
.article-header .dek{ font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 20px; }
.byline{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
}

.article-body{
  max-width: 68ch;
  margin: 0 auto;
  padding: 48px 0;
}
.article-body p{ margin: 0 0 22px; font-size: 18px; }
.article-body h2{
  font-family: var(--display);
  font-size: 26px;
  margin: 40px 0 16px;
}
.article-body blockquote{
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  color: var(--chalk);
  font-style: italic;
  font-size: 20px;
}
.article-body figure{ margin: 32px 0; }
.article-body figcaption{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Footer ---------- */

footer.site{
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-row{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site .logo{ font-size: 18px; }
.footer-links{
  display:flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-links a:hover{ color: var(--accent); }
.footer-copy{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; gap: 32px; }
  .hero-side{ border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .video-block{ grid-template-columns: 1fr; }
  nav.main{ display:none; }
}

@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .site-header-row{ flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce){
  .scoreboard-track{ animation: none; }
  html{ scroll-behavior: auto; }
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Logo con imagen ---------- */
.logo.logo-mark{
  flex-direction: row;
  align-items:center;
  gap: 12px;
}
.logo-mark img{
  height: 46px;
  width: auto;
  display:block;
}
.logo-mark .logo-text{
  display:flex;
  flex-direction: column;
  line-height:1;
}
footer.site .logo-mark img{ height: 34px; }
