/* ============================================
   NOTICIASBOCA — Sitio de noticias deportivas
   Tokens de diseño v3 (minimal, denso, tipo panel de datos)
   ============================================ */
:root{
  --bg: #0A0B10;
  --bg-raised: #12141C;
  --bg-raised-2: #191C26;
  --navy: #12274D;
  --gold-dark: #8A6414;
  --gold: #FFC72C;
  --gold-light: #FFE49A;
  --white: #EDEFF3;
  --muted: #7C8494;
  --texto-cuerpo: #B7BFCC;
  --line: rgba(237,239,243,0.07);
  --confirmado: #2FBE75;
  --urgente: #FF4747;

  --gradient-gold: linear-gradient(100deg, var(--gold-dark) 0%, var(--gold) 45%, var(--gold-light) 70%, var(--gold-dark) 100%);

  --display: 'Montserrat', sans-serif;
  --body: 'Montserrat', sans-serif;
  --mono: 'Montserrat', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; font-size: 15px; }
body{
  margin:0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.5;
  font-size: 14px;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

/* ---------- Ticker superior en degradé dorado ---------- */
.ticker{
  background: var(--gradient-gold);
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite alternate;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}
@keyframes shimmer{
  from{ background-position: 0% 0; }
  to{ background-position: 100% 0; }
}
.ticker-track{
  display:inline-flex;
  gap: 34px;
  padding: 6px 0;
  animation: scroll-ticker 34s linear infinite;
  font-size: 11px;
  font-weight: 600;
}
.ticker-track span{ color: rgba(10,11,16,0.75); }
.ticker-track b{ color:#0A0B10; font-weight: 800; }
.ticker-track .tag-up{ color: #0A3D22; }
.ticker-track .tag-hot{ color: #5C1000; }
@keyframes scroll-ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){ .ticker-track{ animation: none; } }

/* ---------- Header ---------- */
.site-header{
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top:0;
  z-index: 20;
}
.header-row{
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.brand{
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .2px;
  color: var(--white);
  display:flex;
  align-items:center;
  gap:4px;
}
.brand span{
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-icons{ display:flex; gap:16px; color: var(--muted); font-size:13px; }

/* ---------- Layout con sidebar ---------- */
.layout{
  max-width: 1320px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
@media (max-width: 960px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ display:none; }
}

.sidebar{
  border-right: 1px solid var(--line);
  padding: 16px 12px 40px;
  min-height: 70vh;
}
.side-section-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  padding: 5px 8px;
  margin-top: 14px;
}
.side-link{
  display:flex;
  align-items:center;
  gap:9px;
  padding: 8px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  border-left: 2px solid transparent;
}
.side-link .icon{ font-size: 13px; width:16px; text-align:center; flex-shrink:0; }
.side-link:hover{ background: var(--bg-raised-2); }
.side-link.active{
  background: var(--bg-raised-2);
  border-left-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- Contenido principal ---------- */
.content{ padding: 20px 20px 60px; }

.tabs{
  display:flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--muted);
}
.tab.active{ background: var(--gold); color: #14171C; }

/* ---------- Kicker / eyebrow ---------- */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.kicker.noticias{ background: rgba(18,39,77,0.5); color: #8FB8EE; }
.kicker.fichajes{ background: rgba(255,199,44,0.15); color: var(--gold); }
.kicker.torneos{ background: rgba(18,39,77,0.5); color: #8FB8EE; }
.kicker.breaking{ background: var(--urgente); color: #fff; }
.kicker.confirmado{ background: var(--confirmado); color: #062313; }
.kicker.viral{ background: linear-gradient(90deg, #C026D3, #DB2777); color: #fff; }

/* ---------- Historia central (hero) ---------- */
.hero-card{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.hero-card::before{
  content:"";
  position:absolute; inset:0 0 auto 0; height:2px;
  background: var(--gradient-gold);
}
.hero-card img{ aspect-ratio: 16/9; object-fit: cover; background: var(--navy); }
.hero-body{ padding: 16px 18px 18px; }
.hero-title{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--white);
}
.hero-hook{
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.5;
}
.hero-meta{
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  display:flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
}

/* ---------- Grid home ---------- */
.grid-home{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 860px){ .grid-home{ grid-template-columns: 1fr; } }

/* ---------- Panel "en vivo" / notas rápidas ---------- */
.notas-rapidas{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px 4px;
}
.notas-rapidas h3{
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .3px;
  margin: 0 0 10px;
  color: var(--gold);
  display:flex;
  align-items:center;
  gap:6px;
}
.notas-rapidas h3::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background: var(--urgente);
  box-shadow: 0 0 6px var(--urgente);
}
.nota-item{
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
}
.nota-item:first-of-type{ border-top:none; }
.nota-item a{ font-weight: 600; color: var(--white); }
.nota-item a:hover{ color: var(--gold-light); }
.nota-item .nota-meta{
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ---------- Listado de tarjetas ---------- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 860px){ .card-grid{ grid-template-columns: 1fr; } }
.card{
  background: var(--bg-raised);
  border:1px solid var(--line);
  border-radius: 9px;
  overflow:hidden;
}
.card:hover{ border-color: rgba(255,199,44,0.35); }
.card img{ aspect-ratio: 16/10; object-fit:cover; background: var(--navy); }
.card-body{ padding: 10px 12px 14px; }
.card-title{
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  margin: 6px 0 0;
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  padding: 20px 20px;
  text-align:center;
}

/* ---------- Utilidades ---------- */
.section-title{
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--white);
  margin: 0 0 4px;
}
.section-title .accent{ color: var(--gold); }

/* ---------- Cuerpo de la nota ---------- */
.cuerpo-noticia{
  font-family: var(--body);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--texto-cuerpo);
}
.cuerpo-noticia p{ margin: 0 0 14px; }
.cuerpo-noticia p:last-child{ margin-bottom: 0; }

/* ---------- Widget: próximo partido (versión mini, para el sidebar) ---------- */
.partido-mini{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.partido-mini-header{
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  display:flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.partido-mini-header span{ color: var(--muted); font-weight:600; text-transform:none; letter-spacing:0; }
.partido-mini-equipos{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size: 13px;
  font-weight:700;
}
.partido-mini-equipo{
  padding: 3px 9px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--color-equipo) 18%, transparent);
  color: var(--color-equipo);
  border: 1px solid color-mix(in srgb, var(--color-equipo) 40%, transparent);
}
.partido-mini-vs{ color: var(--muted); font-size:11px; font-weight:600; }
.partido-mini-fecha{ margin-top:8px; font-size:12px; color: var(--white); }
.partido-mini-fecha b{ color: var(--gold); }
.partido-mini-estadio{ margin-top:4px; font-size:11px; color: var(--muted); }
