/* =============================================================
   QUE CIRCO — Sistema de diseño "Circo de la farándula"
   Fondo blanco, tipografía negra, títulos fucsia, acentos naranja.
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Paleta (circo: naranja + fucsia sobre blanco) */
  --bg:        #FFFFFF;   /* fondo blanco */
  --bg-2:      #FFF6EF;   /* blanco cálido */
  --surface:   #FFFFFF;   /* tarjetas blancas */
  --surface-2: #FDEFF6;   /* tinte fucsia muy claro */
  --gold:      #FF6B00;   /* NARANJA circo — acento primario */
  --gold-2:    #FF8A3D;   /* naranja claro */
  --gold-burnt:#D6187E;   /* fucsia vivo — bordes/detalles */
  --title:     #C81D77;   /* fucsia de títulos (profundo, no chocante) */
  --paper:     #17141A;   /* casi negro — color de texto */
  --ash:       #6B6470;   /* gris texto secundario */
  --ash-2:     #9A93A0;   /* gris más claro */
  --blood:     #D6187E;   /* fucsia (antes rojo) */
  --line:      #ECE6EA;   /* bordes claros */
  --line-2:    #E2DAE0;

  /* Tipografía */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-stencil: 'Stardos Stencil', 'Oswald', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Escala */
  --step--1: clamp(.78rem, .76rem + .1vw, .85rem);
  --step-0:  clamp(.95rem, .92rem + .15vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --step-3:  clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.8rem + 4vw, 4.8rem);

  /* Espaciado / radios / sombras */
  --gap: 1.5rem;
  --container: 1200px;
  --radius: 2px;            /* casi recto: estética cruda */
  --shadow: 0 12px 30px rgba(200,29,119,.10);
  --shadow-hard: 6px 6px 0 var(--gold-burnt);

  /* Texturas */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--paper);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% -10%, rgba(255,107,0,.07), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(214,24,126,.06), transparent 38%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Grano global sutil */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: .04;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- 3. TIPOGRAFÍA ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--title);   /* títulos en fucsia */
}
.kicker {
  font-family: var(--font-stencil);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: var(--step--1);
  color: var(--gold);
}
.lead { font-size: var(--step-1); color: var(--ash); line-height: 1.45; }

/* ---------- 4. LAYOUT ---------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.grid { display: grid; gap: var(--gap); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; }
.section { padding-block: 3rem; }
/* Evita que un hijo con min-content grande ensanche la columna más que la pantalla */
.split > *, .grid > * { min-width: 0; }

@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- 5. HEADER + NAV ---------- */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ash);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a:hover { color: var(--gold); }

.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 84px; }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand img {
  height: 46px; width: auto;
  /* logo negro -> blanco sobre fondo oscuro */
  filter: invert(1) brightness(1.6);
}
.brand:hover img { filter: invert(74%) sepia(72%) saturate(640%) hue-rotate(2deg) brightness(101%); } /* a oro */

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .35rem; align-items: center; }
.main-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: var(--step-0);
  padding: .5rem .8rem;
  color: var(--paper);
  position: relative;
  transition: color .15s;
}
.main-nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); }

.nav-search {
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--paper); padding: .45rem .7rem; width: 38px;
  transition: width .2s; border-radius: var(--radius);
}
.nav-search:focus { width: 180px; outline: 1px solid var(--gold); }

/* Botón hamburguesa (solo mobile) */
.nav-toggle {
  display: none; margin-left: auto;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 40px; padding: 0 11px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--paper);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header responsive: menú hamburguesa desplegable */
@media (max-width: 820px) {
  .site-header .container { position: relative; height: 62px !important; gap: .8rem; flex-wrap: nowrap; }
  .brand img { height: 38px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%; margin: 0;
    background: var(--surface); border-top: 1px solid var(--line);
    border-bottom: 3px solid var(--gold);
    max-height: 0; overflow: hidden; transition: max-height .28s ease; z-index: 60;
  }
  .main-nav.open { max-height: 82vh; overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.4); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: .9rem 1.3rem; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav form { display: block; padding: .7rem 1.3rem; }
  .nav-search, .nav-search:focus { width: 100%; box-sizing: border-box; }
}

/* ---------- 6. BREAKING TICKER (marquee) ---------- */
.ticker {
  background: var(--gold); color: #000;
  display: flex; align-items: center; overflow: hidden;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  letter-spacing: .03em; height: 40px;
}
.ticker__label {
  background: #000; color: var(--gold); padding: 0 1.6rem 0 1rem; height: 100%;
  display: flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-family: var(--font-stencil); letter-spacing: .12em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  flex-shrink: 0; position: relative; z-index: 2;
}
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; position: relative; }
.ticker__track { display: flex; gap: 3rem; white-space: nowrap; animation: ticker 28s linear infinite; padding-left: 1.5rem; }
.ticker__track span::before { content: "◆"; color: var(--blood); margin-right: .8rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- BARRA EN VIVO (player Centova) ---------- */
.live-bar { background: linear-gradient(90deg, #141414, #1c1c1c); border-bottom: 1px solid var(--line); }
.live-bar .container { display: flex; align-items: center; gap: 1rem; min-height: 52px; padding-block: .4rem; flex-wrap: wrap; }
.live-bar__label {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); font-weight: 700; font-size: .95rem;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(215,38,61,.7); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,61,.6); } 70% { box-shadow: 0 0 0 8px rgba(215,38,61,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,61,0); } }
.live-bar__player { flex: 1; min-width: 200px; display: flex; align-items: center; }
.live-bar__player .cc_player { width: 100%; }
.live-bar__name { flex-shrink: 0; font-size: var(--step--1); }
@media (max-width: 640px) { .live-bar__name { display: none; } .live-bar .container { gap: .6rem; } }

/* ---------- 7. BADGES / SELLOS ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-stencil);
  text-transform: uppercase;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  padding: .25rem .6rem; color: #000; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
}
.badge--nacional { background: var(--gold); }
.badge--internacional { background: var(--paper); }
.badge--rock { background: #fff; }
.badge--pop  { background: var(--gold-2); }
.badge--live { background: var(--blood); color: #fff; animation: pulse 1.4s infinite; }
.badge--ia   { background: transparent; color: var(--ash); border: 1px solid var(--line-2);
               clip-path: none; letter-spacing: .2em; }
@keyframes pulse { 50% { opacity: .55; } }

/* Sello estampado (rotado, tipo tinta) */
.stamp {
  font-family: var(--font-stencil); text-transform: uppercase;
  border: 3px solid var(--blood); color: var(--blood);
  padding: .2rem .6rem; letter-spacing: .1em; font-weight: 700;
  transform: rotate(-8deg); opacity: .85; display: inline-block;
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero img.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(.25) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.95) 5%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.hero__body { position: relative; z-index: 2; padding: 2.2rem; max-width: 720px; }
.hero__title { font-size: var(--step-4); color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.6); }
.hero__title a:hover { color: var(--gold); }

/* ---------- 9. TARJETA DE NOTA ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-burnt); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: filter .2s, transform .3s; }
.card:hover .card__media img { filter: grayscale(0); transform: scale(1.04); }
.card__cat { position: absolute; top: .6rem; left: .6rem; z-index: 2; }
.card__body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.card__title { font-size: var(--step-1); color: var(--paper); }
.card:hover .card__title { color: var(--gold); }
.card__meta { font-size: var(--step--1); color: var(--ash-2); display: flex; gap: .7rem; align-items: center; margin-top: auto; }
.card__meta .dot { color: var(--gold-burnt); }

/* Tira de cinta (tape) decorativa */
.tape {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 90px; height: 22px; background: rgba(245,179,1,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.4); z-index: 3;
  mix-blend-mode: screen;
}

/* Card horizontal (listas) */
.card-row { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.card-row img { aspect-ratio: 1; object-fit: cover; }
.card-row h4 { font-size: var(--step-0); color: var(--paper); }
.card-row:hover h4 { color: var(--gold); }

/* ---------- 10. DIVISOR DE SECCIÓN (stencil) ---------- */
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 {
  font-size: var(--step-2); color: var(--paper);
  padding-left: .7rem; border-left: 6px solid var(--gold);
}
.section-head .rule { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px); }
.section-head a.more { color: var(--gold); font-family: var(--font-display); text-transform: uppercase; font-size: var(--step--1); letter-spacing: .08em; }
.section-head a.more:hover { color: var(--gold-2); }

/* ---------- 11. TOP MÚSICA (vinilo / ranking) ---------- */
.chart { background: var(--surface); border: 1px solid var(--line); padding: 1.2rem; }
.chart__tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.chart__tab {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ash);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  padding: .5rem; font-size: var(--step--1);
}
.chart__tab.active { background: var(--gold); color: #000; border-color: var(--gold); }
.chart__item { display: grid; grid-template-columns: 38px 44px 1fr; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.chart__rank { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); text-align: center; font-weight: 700; }
.chart__rank--top { color: var(--blood); -webkit-text-stroke: 1px var(--gold); }
.chart__art { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line-2); }
.chart__track { font-weight: 600; color: var(--paper); font-size: var(--step-0); line-height: 1.15; }
.chart__artist { font-size: var(--step--1); color: var(--ash); }

/* ---------- 12. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .05em; padding: .7rem 1.3rem; border: 2px solid var(--gold);
  background: var(--gold); color: #000; transition: all .15s; border-radius: var(--radius);
}
.btn:hover { background: transparent; color: var(--gold); box-shadow: var(--shadow-hard); transform: translate(-2px,-2px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: #000; box-shadow: none; transform: none; }
.btn--blood { border-color: var(--blood); background: var(--blood); color: #fff; }

/* ---------- 13. ADS ---------- */
.ad {
  background: repeating-linear-gradient(45deg, #141414 0 10px, #181818 10px 20px);
  border: 1px dashed var(--line-2); color: var(--ash-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .15em;
  font-size: var(--step--1); min-height: 90px;
}
.ad--leaderboard { min-height: 90px; }
.ad--box { min-height: 250px; }
.ad--label { font-size: .6rem; color: var(--ash-2); text-align: center; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .3rem; }

/* ---------- 14. ARTÍCULO (cuerpo limpio y legible) ---------- */
.article { max-width: 760px; }
.article__head { margin-bottom: 1.5rem; }
.article__title { font-size: var(--step-3); color: var(--title); margin: .6rem 0; }
.article__meta { display: flex; gap: 1rem; align-items: center; color: var(--ash); font-size: var(--step--1); border-block: 1px solid var(--line); padding: .7rem 0; }
.article__cover { margin: 1.5rem 0; border: 1px solid var(--line); }
.article__cover figcaption { font-size: var(--step--1); color: var(--ash-2); padding: .5rem .2rem; font-style: italic; }
.article__body { font-size: 1.12rem; line-height: 1.8; color: #26222B; }
.article__body p { margin-bottom: 1.3rem; }
.article__body h2, .article__body h3 { color: var(--gold); margin: 2rem 0 1rem; text-transform: none; font-family: var(--font-display); }
.article__body a { color: var(--gold); border-bottom: 1px solid var(--gold-burnt); }
.article__body blockquote { border-left: 4px solid var(--gold); padding-left: 1.2rem; margin: 1.5rem 0; font-size: 1.3rem; font-style: italic; color: var(--paper); }
.source-note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold-burnt); padding: 1rem; font-size: var(--step--1); color: var(--ash); margin: 2rem 0; }

/* ---------- 15. FOOTER ---------- */
.site-footer { background: #000; border-top: 3px solid var(--gold); margin-top: 4rem; padding-block: 2.5rem 1.5rem; }
.site-footer .brand img { height: 40px; }
.site-footer a { color: var(--ash); }
.site-footer a:hover { color: var(--gold); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-cols h4 { color: var(--gold); font-size: var(--step-0); margin-bottom: .8rem; }
.footer-cols li { margin-bottom: .4rem; font-size: var(--step--1); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; text-align: center; color: var(--ash-2); font-size: var(--step--1); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- 16. UTILIDADES ---------- */
.text-gold { color: var(--gold); }
.text-blood { color: var(--blood); }
.muted { color: var(--ash); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-1 { gap: 1rem; }
.distress { text-shadow: 2px 2px 0 rgba(0,0,0,.5); }

/* ---------- 17. PÁGINAS INTERIORES ---------- */
.breadcrumbs { font-size: var(--step--1); color: var(--ash-2); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ash); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 .2rem; }

.share {
  display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0;
  padding: .5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.share__label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; font-weight: 700; color: var(--ash);
}
.share__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer;
  color: #fff; background: var(--surface-2);
  transition: transform .15s, filter .15s, background .15s, color .15s;
  position: relative;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-btn--wa { background: #25D366; }
.share-btn--fb { background: #1877F2; }
.share-btn--x  { background: #101010; border: 1px solid var(--line-2); }
.share-btn--tg { background: #29A9EB; }
.share-btn--copy { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--gold); }
.share-btn--copy:hover { background: var(--gold); color: #0B0B0B; }
/* Tooltip "¡Copiado!" al copiar el enlace */
.share-btn--copy.is-copied::after {
  content: "¡Copiado!"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #0B0B0B; font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; padding: .2rem .5rem; white-space: nowrap; border-radius: 2px;
}

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.tag { font-size: .8rem; color: var(--ash); border: 1px solid var(--line-2); padding: .25rem .7rem; border-radius: 2px; }
.tag:hover { border-color: var(--gold); color: var(--gold); }

.cat-header { border-bottom: 3px solid var(--gold); padding-bottom: 1.2rem; margin-bottom: 2rem; }
.cat-header h1 { font-size: var(--step-3); color: var(--title); margin: .3rem 0; }

.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line-2); background: var(--surface); }

.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager__btn {
  font-family: var(--font-display); padding: .5rem .9rem; border: 1px solid var(--line-2);
  color: var(--paper); background: var(--surface);
}
.pager__btn:hover { border-color: var(--gold); color: var(--gold); }
.pager__btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

.search-box { display: flex; gap: .6rem; margin-top: 1rem; max-width: 560px; }
.search-box input {
  flex: 1; padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--line-2); color: var(--paper);
}
.search-box input:focus { outline: 1px solid var(--gold); }

.chart__play { color: var(--gold); font-size: 1rem; text-decoration: none; padding-left: .4rem; }
.chart__play:hover { color: var(--gold-2); }

/* Grilla de videos (YouTube) */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.yt-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.yt-card:hover { transform: translateY(-4px); border-color: var(--gold-burnt); }
.yt-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(215,38,61,.92); color: #fff; border-radius: 50%; font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: transform .15s;
}
.yt-card:hover .yt-play { transform: scale(1.12); }
.yt-rank { position: absolute; top: .5rem; left: .5rem; background: var(--gold); color: #000; font-family: var(--font-display); font-weight: 700; padding: .15rem .5rem; font-size: .85rem; }
.yt-body { padding: .8rem .9rem 1rem; }
.yt-title { font-size: var(--step-0); color: var(--paper); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-card:hover .yt-title { color: var(--gold); }
.yt-meta { font-size: var(--step--1); color: var(--ash-2); margin-top: .4rem; }

/* Bloque de categoría estilo revista (destacado + lista) */
.cat-block { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.cat-lead { display: block; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.cat-lead:hover { border-color: var(--gold-burnt); transform: translateY(-3px); }
.cat-lead__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.cat-lead__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.1); transition: transform .3s; }
.cat-lead:hover .cat-lead__media img { transform: scale(1.04); }
.cat-lead__media .card__cat { position: absolute; top: .6rem; left: .6rem; z-index: 2; }
.cat-lead__body { padding: 1rem 1.2rem 1.3rem; }
.cat-lead__title { font-size: var(--step-2); color: var(--paper); line-height: 1.08; }
.cat-lead:hover .cat-lead__title { color: var(--gold); }
.cat-lead__excerpt { color: var(--ash); font-size: var(--step-0); margin: .55rem 0; line-height: 1.5; }
.cat-rest { display: flex; flex-direction: column; }
.cat-row { display: grid; grid-template-columns: 94px 1fr; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.cat-rest .cat-row:last-child { border-bottom: none; }
.cat-row img { width: 94px; height: 66px; object-fit: cover; border: 1px solid var(--line); }
.cat-row__title { font-size: var(--step-0); color: var(--paper); line-height: 1.2; }
.cat-row:hover .cat-row__title { color: var(--gold); }
@media (max-width: 760px) { .cat-block { grid-template-columns: 1fr; } }

/* Tarjeta de radio en vivo (sidebar) */
.radio-live { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1rem; }
.radio-live__head { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: .8rem; }
.radio-live__name { margin-left: auto; color: var(--ash); font-size: .76rem; letter-spacing: 0; text-transform: none; }
.radio-live__player { min-height: 40px; }
.radio-live__player .cc_player { width: 100%; }
.radio-live__pop { display: block; margin-top: .7rem; font-size: .78rem; color: var(--gold); }
.radio-live__pop:hover { color: var(--gold-2); }

/* Top Música (página) — fila con botón de play */
.top-track { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.top-track:last-child { border-bottom: none; }
.top-track__rank { width: 34px; text-align: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.top-track__rank--top { color: var(--blood); -webkit-text-stroke: 1px var(--gold); }
.top-track__art { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line-2); flex-shrink: 0; }
.top-track__info { flex: 1; min-width: 0; }
.top-track__name { font-weight: 600; color: var(--paper); font-size: var(--step-0); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-track__artist { font-size: var(--step--1); color: var(--ash); }
.top-track__play {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #000; font-size: .8rem; text-decoration: none; padding-left: 2px;
  transition: transform .15s, background .15s;
}
.top-track__play:hover { transform: scale(1.12); background: var(--gold-2); }

/* Widget de videos virales (sidebar) */
.vid-row { display: grid; grid-template-columns: 88px 1fr; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.vid-row h4 { font-size: var(--step--1); color: var(--paper); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-row:hover h4 { color: var(--gold); }
.vid-row__thumb { position: relative; width: 88px; height: 50px; overflow: hidden; border: 1px solid var(--line); }
.vid-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-row__play { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(215,38,61,.9); color: #fff; border-radius: 50%; font-size: .65rem; }

@media (max-width: 760px) {
  .grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Respeto a usuarios con reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- LA FRASE DEL DÍA (sidebar) ---------- */
.celeb-quote {
  margin-top: 2rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #3D1152 0%, #C81D77 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(200,29,119,.18);
  position: relative;
  overflow: hidden;
}
.celeb-quote::before {
  content: "“";
  position: absolute;
  top: -1.2rem; right: .6rem;
  font-family: Georgia, serif;
  font-size: 8rem;
  color: rgba(255,255,255,.14);
  line-height: 1;
}
.celeb-quote__kicker {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  font-weight: 700;
  color: #FBB03B;
  margin-bottom: .7rem;
}
.celeb-quote__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 .8rem;
  position: relative;
}
.celeb-quote__author {
  font-weight: 700;
  font-size: .95rem;
  color: #FBB03B;
  text-align: right;
}

/* ---------- AVISO: SUMATE AL AIRE (reclutamiento) ---------- */
.join-cta {
  margin-top: 2rem;
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--gold);
  background:
    linear-gradient(160deg, rgba(245,179,1,.10), rgba(22,22,22,.0) 55%),
    var(--surface);
}
.join-cta__badge {
  display: inline-block;
  background: var(--gold);
  color: #0B0B0B;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  padding: .22rem .6rem;
}
.join-cta__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.15;
  color: #fff;
  margin: .75rem 0 .45rem;
}
.join-cta__text { color: var(--ash); font-size: .86rem; line-height: 1.5; margin-bottom: 1.05rem; }

/* ---------- ÍCONOS DE REDES SOCIALES (footer) ---------- */
.social-icons { display: flex; gap: .55rem; margin-top: .9rem; }
.social-icons__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--paper);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.social-icons__link:hover { color: #0B0B0B; background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* =============================================================
   MÓVIL — versión reducida y anti-desborde horizontal
   ============================================================= */
/* Red de seguridad: nada empuja el ancho más allá de la pantalla */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe, embed, object { max-width: 100%; height: auto; }
.hero__title, .card__title, .cat-lead__title, .cat-row__title, .article__title,
.chart__track, .top-track__name, h1, h2, h3, p, .lead { overflow-wrap: break-word; }

@media (max-width: 560px) {
  :root { --gap: 1rem; }
  .container { width: min(100% - 1.6rem, var(--container)); }
  .section { padding-block: 1.6rem; }

  /* Topbar: que la fecha y las redes no desborden */
  .topbar .container { flex-wrap: wrap; height: auto; row-gap: 2px; padding-block: 4px; }
  .topbar { font-size: .72rem; }

  /* Hero más contenido y legible */
  .hero { min-height: 340px; }
  .hero__body { padding: 1.2rem; max-width: 100%; }
  .hero__title { font-size: clamp(1.65rem, 7.5vw, 2.3rem); line-height: 1.05; text-shadow: 2px 2px 0 rgba(0,0,0,.7); }
  .hero .lead { font-size: 1rem; }

  /* Tipografía de notas */
  .article__title { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.1; }
  .article__body { font-size: 1.05rem; line-height: 1.7; }
  .article__body blockquote { font-size: 1.1rem; }
  .article__meta { flex-wrap: wrap; gap: .5rem .9rem; }

  /* Tarjetas / listas */
  .card__title { font-size: 1.05rem; }
  .cat-lead__title { font-size: 1.25rem; }
  .cat-row { grid-template-columns: 84px 1fr; gap: .7rem; }
  .cat-row img { width: 84px; height: 60px; }

  /* Secciones de encabezado más compactas */
  .section-head h2 { font-size: 1.5rem; }
  .breadcrumbs { font-size: .78rem; }

  /* Tap targets cómodos */
  .btn, .btn-sm { padding: .7rem 1.1rem; }
}

/* Pantallas muy chicas */
@media (max-width: 360px) {
  .hero__title { font-size: 1.5rem; }
  .cat-row { grid-template-columns: 72px 1fr; }
  .cat-row img { width: 72px; height: 52px; }
}

/* ---------- BOTÓN INSTALAR APP (PWA) ---------- */
#pwa-install {
  position: fixed; right: 14px; bottom: 14px; z-index: 9998;
  background: var(--gold); color: #0B0B0B; border: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .85rem; padding: .7rem 1rem;
  border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.5);
  cursor: pointer; transition: transform .15s, background .15s;
}
#pwa-install:hover { transform: translateY(-2px); background: var(--gold-2); }

/* ---------- LA TAPA DEL DÍA (sidebar) ---------- */
.cover-day { margin-bottom: 2rem; border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--surface); overflow: hidden; }
.cover-day__head {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--gold); font-size: .82rem; padding: .7rem .9rem .55rem;
}
.cover-day__img { display: block; }
.cover-day__img img { display: block; width: 100%; height: auto; transition: opacity .15s; }
.cover-day__img:hover img { opacity: .93; }
.cover-day__foot { display: flex; gap: .5rem; padding: .6rem .9rem .85rem; }
.cover-day__foot a {
  flex: 1; text-align: center; font-family: var(--font-display); text-transform: uppercase;
  font-size: .74rem; letter-spacing: .04em; font-weight: 600; padding: .5rem .3rem;
  border: 1px solid var(--line-2); color: var(--paper); transition: border-color .15s, color .15s;
}
.cover-day__foot a:hover { border-color: var(--gold); color: var(--gold); }
