/* ======================================================= */
/* 1. VARIABLES Y TOKENS (LIGHT POR DEFECTO / DARK TOGGLE) */
/* ======================================================= */
:root {
  /* Identidad y Acento (Se sobreescribe dinámicamente desde tu panel) */
  --accent: #3d35cd;
  --accent-glow: rgba(61, 53, 205, 0.4);
  --accent-soft: rgba(61, 53, 205, 0.15);
  --accent-yellow: #d97706;
  --max-width: 1200px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Tema Claro por defecto */
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #edf2f7;
  --bg-base-mix: #ffffff; 
  --text: #0f172a;
  --text-dim: rgba(15, 23, 42, 0.65);
  --text-faint: rgba(15, 23, 42, 0.4);
  --border: rgba(15, 23, 42, 0.08);
  --prog-card-bg: #ffffff;
  --prog-card-border: rgba(15, 23, 42, 0.09);
  --prog-card-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);

  /* Superficies y Sombras */
  --surface-nav: rgba(255, 255, 255, 0.85);
  --surface-popup: #ffffff;
  --cover-border: #ffffff;
  --shadow-cover: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.06);
  --bg-overlay: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(248, 250, 252, 0.9) 50%, rgba(248, 250, 252, 0.98) 100%);
  --logo-svg-fill: #0f172a;

  /* Riel de volumen vertical idéntico al original */
  --vol-track-bg: rgba(15, 23, 42, 0.15);

  /* Píldora de ranking en hover */
  --ranking-actions-hover-bg: #ffffff;
  --ranking-likes-hover-text: #0f172a;
}

/* Modo Oscuro (Activado con clase .dark-theme o atributo data-theme="dark") */
html.dark-theme,
body.dark-theme,
[data-theme="dark"] {
  --accent-yellow: #f59e0b;

  --bg: #0a0b10;
  --bg-2: #14151c;
  --bg-3: #1e1f28;
  --bg-base-mix: #000000;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.65);
  --text-faint: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.08);

  --prog-card-bg: rgba(255, 255, 255, 0.035);
  --prog-card-border: rgba(255, 255, 255, 0.07);
  --prog-card-shadow: none;

  --surface-nav: rgba(13, 20, 31, 0.75);
  --surface-popup: #111318;
  --cover-border: rgba(255, 255, 255, 0.06);
  --shadow-cover: 0 25px 50px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.5);
  --bg-overlay: linear-gradient(180deg, rgba(10,11,16,0.7) 0%, rgba(10,11,16,0.88) 50%, rgba(10,11,16,0.98) 100%);
  --logo-svg-fill: #111111;

  --vol-track-bg: rgba(255, 255, 255, 0.18);

  --ranking-actions-hover-bg: #ffffff;
  --ranking-likes-hover-text: #111318;
}

/* ======================================================= */
/* 2. REGLAS BASE                                          */
/* ======================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth; /* <-- Añade esta línea para suavizar el scroll */
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

.hidden { display: none !important; }

/* ================= APP SHELL ================= */
#app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 5;
}
.app-inner.is-loaded { opacity: 1; }

/* ================= FONDOS ================= */
.bg-layer {
  position: fixed;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(55px) saturate(1.25);
  opacity: 0.35;
  transform: scale(1.15);
  transition: background-image 0.6s ease, opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease;
}

/* ================= NAVBAR CÁPSULA (FIJO STICKY EN PC Y MÓVIL) ================= */
.navbar-wrapper {
  position: sticky;
  top: 1rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 1.2rem auto 5rem; 
  padding: 0 1.5rem;
  z-index: 1000;
}

.nav-bar {
  background: var(--surface-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo-circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--logo-svg-fill);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-config {
  background: var(--border);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.btn-config:hover {
  transform: rotate(30deg);
}

.btn-config svg {
  width: 20px;
  height: 20px;
}

.btn-burger-mobile {
  display: none;
  background: var(--border);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
}

.btn-burger-mobile svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ================= LAYOUT PRINCIPAL (BALANCE Y CENTRADO EXACTO) ================= */
.content-grid {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}

.player-col {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* COLUMNA COVER (IZQUIERDA EN PC) */
.cover-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.cover-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg-3);
  border: 6px solid var(--cover-border);
  box-shadow: var(--shadow-cover);
  position: relative;
  transition: transform 0.4s ease;
  margin-left: 2.5rem;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cover-itunes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}
.cover-itunes.active { opacity: 1; }

/* COLUMNA METADATOS Y CONTROLES (DERECHA EN PC) */
.meta-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e42528;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.badge-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-live.is-paused {
  background: var(--border);
  color: var(--text-dim);
  border-color: var(--border);
}
.badge-live.is-paused::before {
  background: var(--text-dim);
  animation: none;
}

.program-title {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  color: var(--text);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-meta-box {
  width: 100%;
  margin-bottom: 2.2rem;
}

.rds-ticker {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--surface-nav);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  gap: 10px;
  margin-bottom: 8px;
}

.rds-ticker svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.rds-ticker-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.rds-ticker-text {
  font-family: 'Questrial', sans-serif;
  display: inline-block;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
}

.rds-ticker-text.is-marquee {
  padding-left: 100%;
  animation: rds-marquee 12s linear infinite;
}

@keyframes rds-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.program-hosts {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
  padding-left: 4px;
}

/* ================= CONTROLES PLAY Y VOLUMEN ================= */
.controls-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

@keyframes btn-play-ripple {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 18px var(--accent-soft); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.btn-play-action {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px var(--accent-glow);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.btn-play-action:hover {
  transform: scale(1.06);
  filter: brightness(1.12);
}

.btn-play-action.is-playing,
.btn-play-action:has(#icon-pause:not(.hidden)) {
  animation: btn-play-ripple 2s ease-out infinite;
}

.btn-play-action.is-playing::before,
.btn-play-action:has(#icon-pause:not(.hidden))::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: -1;
  pointer-events: none;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-play-action svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-play-action svg line {
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
}

.volume-container {
  width: 190px;
}

.volume-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--vol-track-bg);
  border-radius: 4px;
  outline: none;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

.btn-history-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-history-round:hover {
  background: var(--accent);
  color: #fff;
}

.btn-history-round svg {
  width: 20px;
  height: 20px;
}

/* ================= REDES SOCIALES ================= */
.social-networks-container .social-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-circle-btn,
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.social-circle-btn:hover,
.social-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-circle-btn svg,
.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link[class*="instagram"] svg,
.social-link[class*="website"] svg {
  fill: none !important;
  stroke: currentColor !important;
}

.social-link[class*="facebook"] svg,
.social-link[class*="youtube"] svg,
.social-link[class*="whatsapp"] svg {
  fill: currentColor !important;
  stroke: none !important;
}

/* ================= OVERLAY MENÚ MÓVIL ================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface-nav);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.35s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-mobile {
  background: var(--border);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-close-mobile svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.mobile-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1.3rem;
}

.mobile-nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent);
}

.mobile-nav-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 1rem;
}

.mobile-nav-socials .social-link {
  border-radius: 12px;
  background: var(--border);
}

/* ================= MENÚ CONTEXTUAL ================= */
.ctx {
  position: fixed;
  z-index: 9999;
  background: var(--surface-popup);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 215px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  display: none;
}
.ctx.open { display: block; }
.ctx a {
  display: block;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}
.ctx a:hover {
  background: var(--accent);
  color: #fff;
}

/* ================= RESPONSIVE MÓVIL EXACTO ================= */
@media (max-width: 900px) {
  .app-inner {
    padding: 0 1rem 2.5rem;
  }
  .navbar-wrapper {
    margin-bottom: 1.5rem;
    top: 0.5rem;
  }

  .nav-bar {
    border-radius: 18px;
    padding: 8px 14px;
  }

  .nav-links {
    display: none; 
  }

  .btn-burger-mobile {
    display: flex;
  }

  .player-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .cover-section {
    justify-content: center;
    width: 100%;
  }

  .cover-wrap {
    max-width: min(82vw, 320px);
    margin: 0 auto;
    border-radius: 26px;
    border-width: 4px;
  }

  .meta-section {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .badge-live {
    margin-bottom: 0.8rem;
  }

  .program-title {
    font-size: clamp(1.6rem, 6.5vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .song-meta-box {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rds-ticker {
    max-width: min(90vw, 340px);
    margin: 0 auto 6px;
    padding: 8px 14px;
  }

  .rds-ticker-text {
    font-size: 0.95rem;
  }

  .program-hosts {
    font-size: 0.9rem;
    padding-left: 0;
  }

  .controls-row {
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
  }

  .volume-container {
    width: 140px;
  }

  .social-networks-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-row {
    justify-content: center;
    gap: 10px;
  }

  .social-circle-btn,
  .social-link {
    width: 40px;
    height: 40px;
  }
}

/* ======================================================= */
/* TÍTULO DE SECCIÓN EDITORIAL (TEXTO + LÍNEA GRUESA)      */
/* ======================================================= */
.section-main-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 1.4rem;
  width: 100%;
}

.section-main-heading span {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
}

/* Eliminar línea izquierda previa si existiera */
.section-main-heading::before {
  display: none !important;
}

/* Línea gruesa horizontal continua a la derecha */
.section-main-heading::after {
  content: "";
  flex: 1;
  height: 6px; /* Grosor idéntico al de tu captura */
  background-color: var(--text); /* En modo oscuro es blanca, en modo claro negra */
  border-radius: 0;
  opacity: 1;
}

/* Responsivo en móviles */
@media (max-width: 680px) {
  .section-main-heading {
    gap: 1rem;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }
  .section-main-heading::after {
    height: 4px;
  }
}

/* ======================================================= */
/* BLOQUE: SECCIÓN PROGRAMACIÓN RADIAL (CORREGIDO)         */
/* ======================================================= */
.page-programas-section {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-base-mix));
  padding: 3rem 0;
  z-index: 5;
  transition: background 0.3s ease;
}

/* =========================================================
   TABS DE PROGRAMACIÓN - ESTILO BARRA SEMANAL
   ========================================================= */

.program-page-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  margin-bottom: 2.5rem;
  background: #f3f3f3;
  border: none;
  overflow: visible;
  padding: 0;
  gap: 0;
}

.page-day-pill {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: 0 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 0;

  background: transparent;
  color: #888888;

  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;

  cursor: pointer;
  transition: all 0.25s ease;

  box-sizing: border-box;
}

/* Hover */
.page-day-pill:hover {
  background: #e9e9e9;
  color: #222222;
}

/* Día seleccionado */
.page-day-pill.active {
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: none;
}

/* Triángulo inferior del día seleccionado */
.page-day-pill.active::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -9px;

  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 9px solid var(--accent);
}

/* Evita que el triángulo se corte */
.program-page-days {
  overflow: visible;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  .program-page-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .page-day-pill {
    height: 56px;
    padding: 0 4px;
    font-size: 0.72rem;
  }

  .page-day-pill.active::after {
    bottom: -8px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 8px;
  }
}

@media (max-width: 430px) {

  .page-day-pill {
    height: 52px;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
}

/* Grilla con minmax(0, 1fr) para obligar a que las 3 columnas sean idénticas y no desborden */
.programas-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  width: 100%;
  box-sizing: border-box;
}

/* Tarjeta contenida sin salirse del grid */
.page-program-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--prog-card-bg);
  border: 1px solid var(--prog-card-border);
  border-radius: 20px;
  box-shadow: var(--prog-card-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  min-width: 0;          /* Evita que los textos desborden la celda */
  width: 100%;
  box-sizing: border-box;
}

.page-program-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-program-card.is-live-now {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.page-program-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}

.page-program-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-program-info {
  flex: 1 1 auto;
  min-width: 0;          /* Obligatorio para truncar textos en Flexbox */
}

.page-program-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-program-desc {
  font-family: 'Questrial', sans-serif;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.page-program-time {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-program-chip {
  padding: 4px 9px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-left: 4px;
}

@media (max-width: 1150px) {
  .programas-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-programas-section {
    padding: 3.5rem 0;
  }
  .programas-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .program-page-days {
    justify-content: flex-start;
    margin-bottom: 1.8rem;
  }
}
/* ======================================================= */
/* SCROLLBAR PERSONALIZADA                                 */
/* ======================================================= */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* El fondo ahora es transparente para no pintar esquinas blancas */
::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

::-webkit-scrollbar-button {
  display: none;
}

/* Evita que la barra toque las esquinas redondeadas del modal */
.news-modal-wrapper::-webkit-scrollbar-track {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* ======================================================= */
/* BLOQUE: SECCIÓN DEPORTES (4 COLUMNAS HORIZONTALES)      */
/* ======================================================= */
.page-deportes-section {
  padding-top: 2rem !important;
  border-top: 1px solid var(--border);
}

.deportes-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  width: 100%;
  box-sizing: border-box;
}

.deporte-col-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 100%;
  transition: transform 0.25s ease;
}

.deporte-col-item:hover {
  transform: translateY(-4px);
}

.deporte-thumb-wrap {
  width: 100%;
  border-radius: 9px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
  margin-bottom: 0.9rem;
}

.deporte-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.deporte-col-item:hover .deporte-thumb-wrap img {
  transform: scale(1.05);
}

.deporte-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.deporte-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.deporte-col-item:hover .deporte-title {
  color: var(--accent);
}

/* Responsive para la grilla de deportes */
@media (max-width: 1024px) {
  .deportes-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

@media (max-width: 600px) {
  .deportes-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}


/* ======================================================= */
/* VIDEOS — PLAYER PRINCIPAL + LISTA                       */
/* ======================================================= */

.page-videos-section {

  position: relative;

  width: 100%;

  padding: 2rem 0;

}


/* ======================================================= */
/* CONTENEDOR                                                */
/* ======================================================= */

.page-videos-section .section-container {

  width: calc(100% - 3rem);

  max-width: calc(var(--max-width) - 3rem);

  margin: 0 auto;

  padding: 2rem;

  box-sizing: border-box;

  background: var(--accent);

  border-radius: 18px;

  overflow: hidden;

}





/* ======================================================= */
/* TITULO                                                    */
/* ======================================================= */

.page-videos-section .section-badge-pill {

  background: rgba(255,255,255,0.10);

  border-color: rgba(255,255,255,0.20);

  color: #ffffff;

}


.page-videos-section .section-main-heading {

  color: #ffffff;

}


.page-videos-section .section-main-heading span {

  color: #ffffff !important;

  -webkit-text-fill-color: #ffffff !important;

}


/* ======================================================= */
/* GRID PRINCIPAL                                            */
/* ======================================================= */

.videos-cards-grid {

  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1.85fr)
    minmax(310px, 0.9fr);

  gap: 1.1rem;

  margin-top: 1.2rem;

  align-items: start;

  box-sizing: border-box;

}


/* ======================================================= */
/* PLAYER PRINCIPAL — 16:9                                  */
/* ======================================================= */

.videos-main-player {

  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  background: #000000;

  overflow: hidden;

  border-radius: 10px;

}


.videos-main-player iframe {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  display: block;

  border: 0;

}


/* ======================================================= */
/* LISTA DERECHA                                             */
/*                                                             */
/* EXACTAMENTE 6 VIDEOS VISIBLES                             */
/*                                                             */
/* 6 × 70px = 420px                                         */
/* ======================================================= */

.videos-side-list {

  width: 100%;

  height: 420px;

  max-height: 420px;

  overflow-y: auto;

  overflow-x: hidden;

  display: flex;

  flex-direction: column;

  box-sizing: border-box;

  padding-right: 5px;

  scrollbar-width: thin;

  scrollbar-color:
    rgba(255,255,255,0.30)
    transparent;

}


/* ======================================================= */
/* SCROLLBAR                                                 */
/* ======================================================= */

.videos-side-list::-webkit-scrollbar {

  width: 5px;

}


.videos-side-list::-webkit-scrollbar-track {

  background: transparent;

}


.videos-side-list::-webkit-scrollbar-thumb {

  background:
    rgba(255,255,255,0.30);

  border-radius: 10px;

}


.videos-side-list::-webkit-scrollbar-thumb:hover {

  background:
    rgba(255,255,255,0.50);

}


/* ======================================================= */
/* ITEM                                                      */
/*                                                             */
/* 70px × 6 = 420px                                        */
/* ======================================================= */

.video-side-item {

  width: 100%;
border-radius: 5px;
  height: 70px;

  min-height: 70px;

  flex: 0 0 70px;

  display: grid;

  grid-template-columns:
    100px
    minmax(0, 1fr);

  gap: 12px;

  align-items: center;

  padding: 5px 4px;

  box-sizing: border-box;

  background: transparent;

  border: 0;



  color: #ffffff;

  text-align: left;

  font-family: inherit;

  cursor: pointer;

  transition:
    background 0.2s ease;

}


.video-side-item:hover {

  background:
    rgba(255,255,255,0.06);

}


.video-side-item.is-active {

  background:
    rgba(255,255,255,0.11);

}


/* ======================================================= */
/* MINIATURA                                                 */
/* ======================================================= */

.video-side-thumb {

  position: relative;

  width: 100px;

  height: 58px;

  display: block;

  overflow: hidden;

  background: #151515;

  flex-shrink: 0;

}


.video-side-thumb img {

  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.25s ease;

}


.video-side-item:hover
.video-side-thumb img {

  transform: scale(1.05);

}


/* ======================================================= */
/* PLAY                                                      */
/* ======================================================= */

.video-side-play {

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    rgba(0,0,0,0.12);

}


.video-side-play::before {

  content: "";

  width: 30px;

  height: 30px;

  border-radius: 50%;

  background:
    rgba(0,0,0,0.55);

  position: absolute;

}


.video-side-play svg {

  position: relative;

  z-index: 2;

  width: 13px;

  height: 13px;

  fill: #ffffff;

  margin-left: 2px;

}


/* VIDEO ACTIVO */

.video-side-item.is-active
.video-side-play::before {

  background:
    var(--accent);

}


/* ======================================================= */
/* CONTENIDO                                                 */
/* ======================================================= */

.video-side-content {

  min-width: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 3px;

}


/* ======================================================= */
/* NOMBRE DEL VIDEO                                         */
/* ======================================================= */

.video-side-title {

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;

  line-clamp: 2;

  overflow: hidden;

  color: #ffffff;

  font-size: 0.78rem;

  font-weight: 800;

  line-height: 1.18;

}


/* ======================================================= */
/* NOMBRE DEL CANAL                                         */
/* ======================================================= */

.video-side-channel {

  display: block;

  color:
    rgba(255,255,255,0.55);

  font-size: 0.61rem;

  font-weight: 600;

  line-height: 1;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}


/* ======================================================= */
/* FECHA                                                     */
/* ======================================================= */

.video-side-date {

  display: flex;

  align-items: center;

  gap: 4px;

  color:
    rgba(255,255,255,0.62);

  font-size: 0.58rem;

  line-height: 1;

}


.video-side-date svg {

  width: 10px;

  height: 10px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  flex-shrink: 0;

}


/* ======================================================= */
/* VACÍO                                                     */
/* ======================================================= */

.video-empty {

  width: 100%;

  padding: 2rem;

  color:
    rgba(255,255,255,0.70);

  text-align: center;

}


/* ======================================================= */
/* TABLET                                                    */
/* ======================================================= */

@media (max-width: 1024px) {

  .videos-cards-grid {

    grid-template-columns: 1fr;

  }


  .videos-side-list {

    height: 420px;

    max-height: 420px;

  }

}


/* ======================================================= */
/* MÓVIL                                                     */
/* ======================================================= */

@media (max-width: 600px) {

  .page-videos-section .section-container {

    width: calc(100% - 1rem);

    padding: 1.2rem;

    border-radius: 14px;

  }


  .videos-cards-grid {

    grid-template-columns: 1fr;

    gap: 1rem;

  }


  .videos-main-player {

    aspect-ratio: 16 / 9;

    border-radius: 8px;

  }


  .videos-side-list {

    height: 420px;

    max-height: 420px;

  }


  .video-side-item {

    grid-template-columns:
      90px
      minmax(0, 1fr);

    height: 70px;

    min-height: 70px;

    flex-basis: 70px;

  }


  .video-side-thumb {

    width: 90px;

    height: 54px;

  }


  .video-side-title {

    font-size: 0.72rem;

  }


  .video-side-channel {

    font-size: 0.58rem;

  }


  .video-side-date {

    font-size: 0.56rem;

  }

}


/* ======================================================= */
/* BLOQUE: NOTICIAS EDITORIALES — GRID MAGAZINE            */
/* ======================================================= */

.page-noticias-section {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 3%, var(--bg-base-mix));
  padding: 1rem 0 3rem;
  z-index: 5;
}


/* ======================================================= */
/* GRID PRINCIPAL                                           */
/* ======================================================= */

.noticias-cards-grid {
  width: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  /*
   * La proporción completa determina la altura.
   * Al ser aproximadamente 2.8:1,
   * la noticia izquierda queda bastante más alta.
   */
  aspect-ratio: 2.8 / 1;

  gap: 10px;

  align-items: stretch;
}


/* ======================================================= */
/* NOTICIA PRINCIPAL — IZQUIERDA                           */
/* ======================================================= */

.news-card-item.is-featured {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 0;

  overflow: hidden;

  border-radius: 10px;

  cursor: pointer;

  background: var(--bg-3);
}


/* Imagen */

.news-card-item.is-featured .news-main-thumb-wrap {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  margin: 0;

  aspect-ratio: auto;

  border-radius: 0;

  overflow: hidden;

  z-index: 0;
}


/* Degradado */

.news-card-item.is-featured .news-main-thumb-wrap::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.08) 35%,
      rgba(0, 0, 0, 0.88) 100%
    );

  z-index: 2;
}


/* Imagen */

.news-card-item.is-featured .news-main-thumb-wrap img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.5s ease;
}

.news-card-item.is-featured:hover .news-main-thumb-wrap img {
  transform: scale(1.05);
}


/* ======================================================= */
/* CONTENIDO DE NOTICIA PRINCIPAL                          */
/* ======================================================= */

.news-card-item.is-featured .news-card-content {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 5;

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 1.4rem 1.3rem 1.15rem;

  box-sizing: border-box;
}


/* Categoría */

.news-card-item.is-featured .news-card-category {
  order: 1;

  margin: 0 0 8px 0;

  padding: 4px 9px;

  background: var(--accent);

  color: #ffffff !important;

  font-family: 'Bebas Neue', sans-serif;

  font-size: 0.72rem;

  font-weight: 400;

  line-height: 1;

  letter-spacing: 0.06em;

  border-radius: 0;
}


/* Título principal */

.news-card-item.is-featured .news-card-title {
  order: 2;

  width: 100%;

  margin: 0;

  font-family: 'Bebas Neue', sans-serif;

  /*
   * Un poco más grande porque ahora
   * tenemos suficiente altura.
   */
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);

  font-weight: 400;

  line-height: 0.94;

  letter-spacing: 0.015em;

  color: #ffffff !important;

  text-transform: uppercase;

  display: -webkit-box;

  -webkit-line-clamp: 3;

  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* Descripción oculta */

.news-card-item.is-featured .news-card-excerpt {
  display: none !important;
}


/* Autor */

.news-card-item.is-featured .news-card-author {
  order: 3;

  margin-top: 10px;

  font-family: 'Poppins', sans-serif;

  font-size: 0.58rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  color: rgba(255,255,255,0.82) !important;

  text-transform: uppercase;
}


/* ======================================================= */
/* COLUMNA DERECHA                                          */
/* ======================================================= */

.noticias-grid-right {
  width: 100%;
  height: 100%;

  min-height: 0;

  display: grid;

  /*
   * La columna derecha ocupa exactamente
   * la misma altura que la noticia izquierda.
   */
  grid-template-columns: repeat(2, minmax(0, 1fr));

  /*
   * La noticia superior es ligeramente más alta.
   * Las dos inferiores comparten el resto.
   */
  grid-template-rows: 1.05fr 1fr;

  gap: 10px;
}


/* ======================================================= */
/* TARJETAS SECUNDARIAS                                     */
/* ======================================================= */

.news-row-item {
  position: relative;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  border-radius: 10px;

  cursor: pointer;

  background: var(--bg-3);

  display: block;

  border: none;

  transition: transform 0.25s ease;
}


/* ======================================================= */
/* NOTICIA 2 — SUPERIOR DERECHA                             */
/* ======================================================= */

.news-row-item:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
}


/* ======================================================= */
/* NOTICIA 3 — INFERIOR IZQUIERDA                           */
/* ======================================================= */

.news-row-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}


/* ======================================================= */
/* NOTICIA 4 — INFERIOR DERECHA                             */
/* ======================================================= */

.news-row-item:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}


/* ======================================================= */
/* IMAGENES SECUNDARIAS                                     */
/* ======================================================= */

.news-row-thumb {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  aspect-ratio: auto;

  border-radius: 0;

  overflow: hidden;

  background: var(--bg-3);

  z-index: 0;
}


/* Degradado */

.news-row-thumb::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.02) 0%,
      rgba(0,0,0,0.08) 35%,
      rgba(0,0,0,0.88) 100%
    );

  z-index: 2;
}


/* Imagen */

.news-row-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.5s ease;
}

.news-row-item:hover .news-row-thumb img {
  transform: scale(1.06);
}


/* ======================================================= */
/* TEXTO SOBRE LAS IMAGENES                                 */
/* ======================================================= */

.news-row-body {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 5;

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 0;

  padding: 0.8rem 0.85rem 0.75rem;

  min-width: 0;

  box-sizing: border-box;
}


/* Categoría */

.news-row-body .news-card-category {
  display: inline-block;

  margin: 0 0 6px 0;

  padding: 3px 7px;

  background: var(--accent);

  color: #ffffff !important;

  font-family: 'Bebas Neue', sans-serif;

  font-size: 0.62rem;

  font-weight: 400;

  line-height: 1;

  letter-spacing: 0.05em;

  border-radius: 0;
}


/* ======================================================= */
/* TITULO SECUNDARIO                                        */
/* ======================================================= */

.news-row-title {
  width: 100%;

  margin: 0;

  font-family: 'Poppins', sans-serif;

  font-size: 0.94rem;

  font-weight: 800;

  line-height: 1.12;

  color: #ffffff !important;

  display: -webkit-box;

  -webkit-line-clamp: 3;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;
}

.news-row-item:hover .news-row-title {
  color: #ffffff !important;
}


/* ======================================================= */
/* AUTOR                                                    */
/* ======================================================= */

.news-row-body .news-card-author {
  margin-top: 6px;

  font-family: 'Poppins', sans-serif;

  font-size: 0.5rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  color: rgba(255,255,255,0.78) !important;

  text-transform: uppercase;
}


/* No descripción en tarjetas pequeñas */

.news-row-item .news-card-excerpt {
  display: none !important;
}


/* ======================================================= */
/* TABLET                                                   */
/* ======================================================= */

@media (max-width: 980px) {

  .noticias-cards-grid {
    aspect-ratio: 2.35 / 1;

    gap: 8px;
  }

  .noticias-grid-right {
    gap: 8px;
  }

  .news-card-item.is-featured .news-card-content {
    padding: 1.1rem;
  }

  .news-card-item.is-featured .news-card-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  .news-row-title {
    font-size: 0.84rem;
  }
}


/* ======================================================= */
/* MÓVIL                                                    */
/* ======================================================= */

@media (max-width: 700px) {

  .noticias-cards-grid {
    display: grid;

    grid-template-columns: 1fr;

    /*
     * Quitamos la proporción horizontal
     * para poder apilar las noticias.
     */
    aspect-ratio: auto;

    gap: 9px;
  }


  /* Principal */

  .news-card-item.is-featured {
    width: 100%;

    height: 320px;

    min-height: 320px;
  }


  /* Derecha pasa debajo */

  .noticias-grid-right {
    width: 100%;

    height: 390px;

    grid-template-columns: 1fr 1fr;

    grid-template-rows: 200px 181px;

    gap: 9px;
  }


  .news-card-item.is-featured .news-card-title {
    font-size: 2.2rem;
  }


  .news-row-title {
    font-size: 0.8rem;
  }
}


/* ======================================================= */
/* MÓVIL PEQUEÑO                                            */
/* ======================================================= */

@media (max-width: 480px) {

  .news-card-item.is-featured {
    height: 290px;

    min-height: 290px;
  }


  .noticias-grid-right {
    height: 360px;

    grid-template-rows: 185px 166px;
  }


  .news-card-item.is-featured .news-card-content {
    padding: 1rem;
  }


  .news-card-item.is-featured .news-card-title {
    font-size: 1.95rem;
  }


  .news-row-title {
    font-size: 0.74rem;
  }


  .news-row-body .news-card-author {
    display: none;
  }
}

/* ======================================================= */
/* ESTILOS GENERALES DE CATEGORÍA Y AUTOR DE NOTICIAS      */
/* ======================================================= */

/* Categoría */

.news-card-category {
  display: inline-block;

  background: var(--accent);

  color: #ffffff !important;

  font-family: 'Bebas Neue', sans-serif;

  font-size: 0.95rem;

  font-weight: 400;

  letter-spacing: 0.05em;

  text-transform: uppercase;

  padding: 2px 8px;

  border-radius: 0;

  line-height: 1.1;
}


/* Autor */

.news-card-author {
  font-size: 0.68rem;

  font-weight: 700;

  color: var(--text-dim);

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* Extracto */

.news-card-excerpt {
  font-size: 0.92rem;

  line-height: 1.45;

  color: var(--text-dim);

  margin: 0 0 10px 0;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

  word-break: break-word;
}




/* ======================================================= */
/* MODAL DE LECTURA DE NOTICIA                             */
/* ======================================================= */
.news-modal-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.news-modal-container.open {
  opacity: 1;
  visibility: visible;
}

.news-modal-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-2);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Corta cualquier cosa que intente salirse de las esquinas redondas */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Esta nueva clase maneja el scroll y el espaciado interior */
.news-modal-scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3.5rem 3rem;
}

.news-modal-container.open .news-modal-wrapper {
  transform: translateY(0);
}

.news-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
}

.news-modal-close:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.1);
}

.news-modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-news-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.modal-news-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
  word-break: break-word;
}

.modal-news-date {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
}

.modal-news-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  background: var(--bg-3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-news-body {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.8;
  font-weight: 400;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-news-body p {
  margin-bottom: 1.5rem;
}

.modal-news-body span,
.modal-news-body div,
.modal-news-body img {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 680px) {
  .news-modal-wrapper {
    max-height: 100vh;
    border-radius: 0;
    padding: 2.5rem 1.5rem;
  }
}

/* ======================================================= */
/* ESTILOS DEL FOOTER PROFESIONAL                          */
/* ======================================================= */
.footer-section {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 3%, var(--bg-base-mix));
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  transition: background 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo-wrap {
  width: 230px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.footer-social-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 450px;
  margin-bottom: 2rem;
}

.footer-social-heading::before,
.footer-social-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.footer-social-heading span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.footer-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 31%);
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-pill-link:hover {
  background: color-mix(in srgb, var(--accent) 80%, #000000);
  border-color: color-mix(in srgb, var(--accent) 80%, #000000);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-pill-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-copyright {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
  width: 100%;
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .footer-social-row {
    flex-direction: column;
    align-items: center;
  }
  .footer-pill-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ======================================================= */
/* REPRODUCTOR FLOTANTE INFERIOR AL ANCHO DE LA WEB (1200PX)*/
/* ======================================================= */
.floating-player-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 0.3s ease, 
              visibility 0.3s ease;
  pointer-events: none;
}

/* Solo aparece cuando el scroll supera el reproductor de cabecera */
.floating-player-wrap.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Estado colapsado / minimizado */
.floating-player-wrap.is-minimized {
  transform: translateY(calc(100% - 24px));
}

.floating-player-wrap.is-minimized #float-tab-toggle svg {
  transform: rotate(0deg);
}

/* PESTAÑA CENTRAL SUPERIOR CON COLOR DE TEMA */
.floating-top-tab-btn {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3.5px solid var(--accent); /* Línea con el color del tema */
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  width: 58px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  z-index: 2;
}

html.dark-theme .floating-top-tab-btn {
  background: #141721;
}

.floating-top-tab-btn:hover {
  color: var(--accent);
}

.floating-top-tab-btn svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* CONTENEDOR ANCHO WEB 1200PX CON LÍNEA SUPERIOR DE TEMA */
.floating-player-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-2);
  /* LÍNEA SUPERIOR CON EL COLOR DINÁMICO DEL PANEL */
  border-top: 3.5px solid var(--accent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
  position: relative;
}

html.dark-theme .floating-player-container {
  background: #11131a;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

/* 1. SECCIÓN IZQUIERDA: COVER Y METADATOS */
.floating-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.floating-cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.floating-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.floating-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.float-live-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.float-station-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-song-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* 2. CONTROLES CENTRALES (BOTÓN PLAY DE ARO) */
.floating-controls-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.float-step-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s, transform 0.15s;
}

.float-step-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.float-step-btn svg {
  width: 20px;
  height: 20px;
}

/* BOTÓN PLAY CON BORDE CIRCULAR DEL ACENTO */
.floating-main-circle-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 2.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent);
}

.floating-main-circle-play:hover {
  transform: scale(1.08);
  background: var(--accent);
  color: #ffffff;
}

.floating-main-circle-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-main-circle-play svg rect {
  fill: currentColor;
}

/* 3. DERECHA: SELECTOR DE EMISORA */
.floating-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  position: relative;
}

.float-station-select-wrapper {
  position: relative;
}

.float-station-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.float-station-trigger:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.float-mic-ico {
  width: 17px;
  height: 17px;
}

.float-chevron-ico {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

/* DESPLEGABLE HACIA ARRIBA */
.float-station-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.25);
  padding: 12px;
  display: none;
  flex-direction: column;
  z-index: 1100;
  animation: fadeInUp 0.25s ease;
}

.float-station-dropdown-menu.show {
  display: flex;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================= */
/* RESPONSIVE MÓVIL EXACTO                                 */
/* ======================================================= */
@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }

  .floating-player-container {
    padding: 8px 1rem;
    gap: 10px;
  }

  .floating-cover {
    width: 48px;
    height: 48px;
  }

  .float-live-badge,
  .float-station-badge {
    font-size: 0.78rem;
  }

  .floating-song-title {
    font-size: 0.85rem;
    max-width: 190px;
  }

  .floating-controls-center {
    margin-left: auto;
  }

  .floating-main-circle-play {
    width: 46px;
    height: 46px;
    border-width: 2px;
  }

  .floating-main-circle-play svg {
    width: 18px;
    height: 18px;
  }

  .floating-right-actions {
    display: none !important;
  }
}

/* ======================================================= */
/* FRANJA DE PROGRAMA ACTUAL Y SIGUIENTES (MIXIN FLUIDO)   */
/* ======================================================= */
.live-schedule-ticker-section {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-base-mix));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 5;
  clear: both;
}

.schedule-ticker-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.schedule-ticker-container::-webkit-scrollbar {
  display: none;
}

.ticker-prog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
  min-width: 250px;
}

.ticker-prog-item:last-child {
  border-right: none;
}

.ticker-prog-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.ticker-prog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ticker-prog-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ticker-prog-status {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent) ;
  margin-bottom: 2px;
}

.ticker-prog-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  margin-bottom: 2px;
}

.ticker-prog-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

@media (max-width: 768px) {
  .live-schedule-ticker-section {
    padding: 1.2rem 0;
    margin-top: 1rem;
  }
  .schedule-ticker-container {
    padding: 0 1rem;
    gap: 1.2rem;
  }
  .ticker-prog-item {
    min-width: 210px;
    padding-right: 1.2rem;
  }
}

/* ======================================================= */
/* CONTROLES ESTILO SPOTIFY / REFERENCIA                   */
/* ======================================================= */
.player-controls-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2.5rem;
  width: 100%;
}

/* Botones laterales redondos (Historial y Volumen) */
.side-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.side-control-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.side-control-btn svg {
  width: 20px;
  height: 20px;
}

/* ======================================================= */
/* CÁPSULA Y DESLIZADOR VERTICAL (ORIGINAL INTACTO)        */
/* ======================================================= */
.volume-hover-wrapper {
  position: relative;
  display: inline-block;
}

.vertical-volume-popup {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-popup);
  border: 1px solid var(--border);
  width: 44px;
  height: 140px;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 100;
  overflow: hidden;
}

/* Al pasar el mouse se despliega la cápsula hacia arriba */
.volume-hover-wrapper:hover .vertical-volume-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.vol-slider-vertical {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 6px;
  transform: rotate(-90deg);
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  background: var(--vol-track-bg);
}

.vol-slider-vertical::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--vol-track-bg);
  border-radius: 4px;
}

.vol-slider-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.vol-slider-vertical::-moz-range-track {
  width: 100%;
  height: 6px;
  background: var(--vol-track-bg);
  border-radius: 4px;
}

.vol-slider-vertical::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Círculo (Thumb) con el color sólido del panel */
.vol-slider-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  margin-top: -6px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.vol-slider-vertical::-moz-range-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 4px;
}

.vol-slider-vertical::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ======================================================= */
/* ESTILOS DE LA SECCIÓN RANKING / PODCASTS (AJUSTADO)     */
/* ======================================================= */
.page-ranking-section {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-base-mix));
  z-index: 5;
  transition: background 0.3s ease;
}

.ranking-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
}

/* Tarjeta individual de Ranking */
.ranking-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Hover: Se pinta con el color del panel */
.ranking-card:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Cuando está abierto/activo, conserva su fondo normal */
.ranking-card.is-active {
  background: var(--bg-2);
  border-color: var(--accent);
}

.ranking-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.ranking-left-info {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1;
}

/* Número del ranking estilizado */
.ranking-number {
  width: 42px;
  height: 42px;
  background: var(--border);
  color: var(--text);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Al pasar el mouse sobre la tarjeta, el número se invierte a blanco con acento */
.ranking-card:hover .ranking-number {
  background: #ffffff;
  color: var(--accent);
}

/* Miniatura de portada */
.ranking-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Textos de título y artista */
.ranking-meta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.ranking-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-artist {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-card:hover .ranking-artist,
.ranking-card:hover .ranking-title {
  color: #ffffff;
}

.ranking-card.is-active:hover .ranking-title {
  color: var(--text);
}

.ranking-card.is-active:hover .ranking-artist {
  color: var(--text-dim);
}

@media (max-width: 680px) {
  .page-ranking-section {
    padding: 3.5rem 0;
  }
}

/* ======================================================= */
/* BOTONES DE LIKE / DISLIKE                               */
/* ======================================================= */
.ranking-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--border);
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Al hacer hover en la tarjeta, la pastilla se vuelve blanca para contraste perfecto */
.ranking-card:hover .ranking-actions {
  background: var(--ranking-actions-hover-bg);
  border-color: rgba(0, 0, 0, 0.1);
}

.ranking-like-btn, 
.ranking-dislike-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-like-btn:hover, 
.ranking-dislike-btn:hover {
  transform: scale(1.1);
}

.ranking-like-btn svg, 
.ranking-dislike-btn svg {
  width: 18px;
  height: 18px;
  transition: fill 0.2s ease;
}

/* Colores iniciales de los iconos */
.ranking-like-btn svg {
  fill: #22c55e;
}

.ranking-dislike-btn svg {
  fill: #ef4444;
}

/* Fondos circulares de feedback */
.ranking-like-btn:hover,
.ranking-like-btn.is-voted {
  background: rgba(34, 197, 94, 0.2);
}

.ranking-dislike-btn:hover,
.ranking-dislike-btn.is-voted {
  background: rgba(239, 68, 68, 0.2);
}

.ranking-likes-count {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0 4px;
  min-width: 25px;
  text-align: center;
  transition: color 0.2s ease;
}

.ranking-card:hover .ranking-likes-count {
  color: var(--ranking-likes-hover-text);
}

/* ======================================================= */
/* ACORDEÓN / REPRODUCTOR DESPLEGABLE Y TIEMPOS            */
/* ======================================================= */
.ranking-player-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  background: var(--border);
  border-top: 0px solid var(--border);
  padding: 0 24px;
}

.ranking-card.is-active .ranking-player-accordion {
  max-height: 120px;
  padding: 18px 24px 22px 24px;
  border-top: 1px solid var(--border);
}

.accordion-player-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.accordion-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: transform 0.2s ease;
}

.accordion-play-btn:hover {
  transform: scale(1.08);
}

.accordion-play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.accordion-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-song-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.accordion-time-line-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.accordion-time-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 35px;
  text-align: center;
}

.accordion-waveform-bar {
  position: relative;
  flex: 1;
  height: 6px;
  background: var(--vol-track-bg);
  border-radius: 4px;
  cursor: pointer;
}

.accordion-waveform-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .ranking-card-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ranking-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ======================================================= */
/* HEADER DE DOS PISOS (FRANJA AZUL SUPERIOR + MENÚ INFERIOR) */
/* ======================================================= */

.caracol-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-2);
  z-index: 9999;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: box-shadow 0.3s ease;
}

html.dark-theme .caracol-header-wrapper {
  background: #0f1118;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --- FRANJA SUPERIOR AZUL --- */
.caracol-top-ticker-bar {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: stretch; 
  justify-content: center;
  font-family: var(--font);
  overflow: hidden;
  height: 42px;
  padding: 0; 
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.ticker-news-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  font-family: Bebas Neue, sans-serif;
  padding: 0 20px;
  align-self: stretch; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; 
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 20px;
}

/* --- FRANJA SUPERIOR AZUL DE ANCHO TOTAL --- */
.caracol-top-ticker-bar {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--accent); /* Color dinámico de tu panel */
  color: #ffffff;
  display: flex;
  align-items: stretch; /* Estira los elementos hijos verticalmente al 100% */
  justify-content: center;
  font-family: var(--font);
  overflow: hidden;
  height: 42px;
  padding: 0 !important; /* Elimina cualquier espacio superior o inferior */
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* Contenedor interior alineado con el ancho del sitio */
.caracol-top-ticker-bar > div {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
}

/* --- NEWS TICKER (CAMBIO SUAVE SIN DESLIZAMIENTO LATERAL) --- */
.ticker-news-container {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  text-align: left;
  margin-right: 2rem;
  height: 24px;
  display: flex;
  align-items: center;
}

.ticker-news-text {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  opacity: 1;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Clases dinámicas de transición gestionadas por JavaScript */
.ticker-news-text.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.ticker-news-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Fecha, icono de música y tema (Derecha) */
.ticker-right-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.ticker-right-tools svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* --- PISO 2: MENÚ PRINCIPAL (LOGO, ENLACES Y BOTONES) --- */
.caracol-main-nav-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 1.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-main-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-main-brand img {
  max-height: 42px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Enlaces del menú central */
.header-menu-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-menu-link:hover,
.header-menu-link.active {
  color: var(--accent);
}

/* Botones de la derecha (WhatsApp y Selector de Emisora) */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.action-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  line-height: 1;
}

.btn-pill-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

html.dark-theme .btn-pill-whatsapp {
  background: #141721;
}

.btn-pill-whatsapp:hover {
  border-color: #22c55e;
}

.btn-pill-whatsapp svg {
  width: 16px;
  height: 16px;
  fill: #22c55e;
  flex-shrink: 0;
}

.station-dropdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

html.dark-theme .station-dropdown-pill {
  background: #141721;
}

.station-dropdown-pill:hover {
  border-color: var(--text);
}

.station-dropdown-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--text);
}

/* --- COMPORTAMIENTO AL HACER SCROLL (SE OCULTA LA FRANJA AZUL) --- */
.caracol-header-wrapper.is-scrolled .caracol-top-ticker-bar {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
}

/* Responsive Móvil */
@media (max-width: 960px) {
  .caracol-top-ticker-bar {
    display: none;
  }
  .header-menu-links {
    display: none;
  }
  .header-action-group {
    display: none;
  }
  .caracol-main-nav-row .station-selector-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }
  .caracol-main-nav-row .station-selector-wrap .action-label {
    display: block !important;
    font-size: 0.58rem !important;
  }
  .caracol-main-nav-row .station-dropdown-pill {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }
  .caracol-main-nav-row {
    justify-content: space-between;
    padding: 10px 1rem;
  }
}

/* ======================================================= */
/* BLOQUE: SECCIÓN VIRALES (SLIDER SWIPER EDITORIAL)       */
/* ======================================================= */
.page-virales-section {
  padding: 2rem 0 2rem 0 !important;
  border-top: 1px solid var(--border);
}

.virales-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.virales-header-row .section-main-heading {
  margin-bottom: 0 !important;
  flex: 1;
}

.virales-slider-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.virales-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.virales-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.virales-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Slide estilo editorial: Texto Izquierda + Imagen Derecha */
.viral-slide-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
}

.viral-slide-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.viral-slide-title {
  font-size: clamp(1.8rem, 2.8vw, 2.9rem);
  font-weight: 800;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.viral-slide-card:hover .viral-slide-title {
  color: var(--accent);
}

.viral-slide-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.viral-slide-photo-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
border-radius: 9px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: var(--shadow-card);
}

.viral-slide-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.viral-slide-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.viral-slide-card:hover .viral-slide-photo-wrap img {
  transform: scale(1.04);
}

/* Paginación Swiper */
.virales-pagination {
  position: static !important;
  margin-top: 1.8rem;
}

.virales-pagination .swiper-pagination-bullet {
  background: var(--text-faint);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  transition: all 0.25s ease;
}

.virales-pagination .swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1 !important;
  width: 26px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .viral-slide-card {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .viral-slide-title {
    font-size: 1.6rem;
  }
}

/* ======================================================= */
/* REPRODUCTOR EN CARD FLOTANTE OSCURA (DISEÑO EXACTO)     */
/* ======================================================= */

.radio-card-container {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

/* Tarjeta Principal Flotante */
.radio-main-card {
  position: relative;
  width: 100%;
  background: var(--accent);
  border-radius: 28px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 380px;
}

.radio-kicker-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffffff;
  opacity: 0.85;
  text-transform: uppercase;
}

.radio-card-song-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.radio-card-artist {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.85;
  margin: 0 0 2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.radio-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-circle-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.radio-main-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.radio-main-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}

.radio-main-play-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.radio-main-play-btn #icon-play {
  margin-left: 3px;
}

/* Columna Derecha / Inferior: Redes */
.radio-card-socials-box {
  position: absolute;
  bottom: 2.2rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.radio-socials-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.radio-socials-pills .social-circle-btn,
.radio-socials-pills .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.radio-socials-pills .social-circle-btn:hover,
.radio-socials-pills .social-link:hover {
  opacity: 1;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE MÓVIL ================= */
@media (max-width: 900px) {
  .radio-main-card {
    flex-direction: column;
    text-align: center;
    padding: 2.2rem 1.5rem;
    gap: 1.8rem;
  }

  .radio-card-cover-wrap {
    width: min(72vw, 240px);
    height: min(72vw, 240px);
    margin-right: 0;
  }

  .radio-card-body {
    align-items: center;
    width: 100%;
  }

  .radio-kicker-tag {
    align-items: center;
  }

  .radio-card-song-title {
    font-size: 1.8rem;
  }

  .radio-card-artist {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }

  .radio-card-socials-box {
    position: static;
    align-items: center;
    margin-top: 0.5rem;
  }
}
/* ======================================================= */
/* REPRODUCTOR EN CARD FLOTANTE CON COLOR DINÁMICO         */
/* ======================================================= */
.radio-main-card {
  position: relative;
  width: 100%;
  background: var(--card-dynamic-bg, #0f1118);
  border-radius: 28px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 380px;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.6s ease, color 0.4s ease;
}

/* Variables de contraste por defecto (Modo Oscuro) */
.radio-main-card {
  --card-text-main: #ffffff;
  --card-text-dim: rgba(255, 255, 255, 0.82);
  --card-text-faint: rgba(255, 255, 255, 0.65);
  --card-btn-bg: rgba(255, 255, 255, 0.195);
  --card-btn-border: rgba(255, 255, 255, 0.12);
  --card-play-bg: #ffffff;
  --card-play-icon: var(--accent);
}

/* Cuando el color de fondo extraído sea CLARO */
.radio-main-card.is-light-bg {
  --card-text-main: #0a0b10;
  --card-text-dim: rgba(10, 11, 16, 0.85);
  --card-text-faint: rgba(10, 11, 16, 0.65);
  --card-btn-bg: rgba(0, 0, 0, 0.06);
  --card-btn-border: rgba(0, 0, 0, 0.1);
  --card-play-bg: #0a0b10;
  --card-play-icon: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Capa difusa ambiental detrás */
.radio-card-dynamic-bg {
  display: none !important;
}

.radio-card-cover-wrap {
  width: 250px;
  height: 250px;
  border-radius: 26px;
  background: #252830;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  margin-right: 3.5rem;
  z-index: 1;
}

.radio-card-cover, .radio-card-cover-itunes {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.radio-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  z-index: 2;
}

.radio-kicker-tag {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.8rem;
}

.radio-kicker-bar {
  width: 26px;
  height: 3.5px;
  background-color: #e42528;
  border-radius: 2px;
}

.radio-kicker-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--card-text-dim);
  text-transform: uppercase;
}

.radio-card-song-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--card-text-main);
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.radio-card-artist {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--card-text-dim);
  margin: 0 0 2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.radio-card-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radio-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-btn-bg);
  border: 1px solid var(--card-btn-border);
  color: var(--card-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-circle-btn:hover {
  background: var(--card-btn-border);
  transform: scale(1.05);
}

.radio-circle-btn svg { width: 18px; height: 18px; stroke: currentColor; }

.radio-main-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--card-play-bg);
  border: none;
  color: var(--card-play-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.radio-main-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.radio-main-play-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--card-play-icon);
}

.radio-card-socials-box {
  position: absolute !important;
  bottom: 2.2rem;
  right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}

.radio-socials-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--card-text-faint);
  text-transform: uppercase;
}

.radio-socials-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-socials-pills .social-circle-btn,
.radio-socials-pills .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-btn-bg);
  border: 1px solid var(--card-btn-border);
  color: var(--card-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.radio-socials-pills .social-circle-btn:hover,
.radio-socials-pills .social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.radio-socials-pills svg { width: 16px; height: 16px; }

/* ======================================================= */
/* FORZAR CENTRADO TOTAL DEL PLAYER DE RADIO EN MÓVIL      */
/* ======================================================= */
@media (max-width: 900px) {
  /* 1. Tarjeta contenedora centrada */
  .radio-main-card {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 2.2rem 1.4rem !important;
    gap: 1.5rem !important;
  }

  /* 2. Carátula centrada sin márgenes laterales */
  .radio-card-cover-wrap {
    margin: 0 auto !important;
  }

  /* 3. Columna del cuerpo forzada al centro */
  .radio-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* 4. Etiqueta 'EN VIVO' y la barrita roja centradas */
  .radio-kicker-tag {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 0.6rem auto !important;
  }

  .radio-kicker-bar {
    margin: 0 auto !important;
  }

  .radio-kicker-title {
    text-align: center !important;
    width: 100% !important;
  }

  /* 5. Título de la canción y Artista centrados */
  .radio-card-song-title {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 0.5rem auto !important;
  }

  .radio-card-artist {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 1.8rem auto !important;
  }

  /* 6. Fila de botones de reproducción centrados */
  .radio-card-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 7. Bloque de Redes Sociales centrado abajo */
  .radio-card-socials-box {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 1.2rem auto 0 auto !important;
  }

  .radio-socials-label {
    text-align: center !important;
    width: 100% !important;
  }

  .radio-socials-pills {
    justify-content: center !important;
  }
}

/* ======================================================= */
/* DESPLEGABLE MULTIRADIO EN EL HEADER                     */
/* ======================================================= */
.station-selector-wrap {
  position: relative;
  z-index: 1060; /* Prioridad por encima de la barra */
}
.station-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  padding: 12px;
  display: none;
  flex-direction: column;
  z-index: 1050;
  animation: fadeInDown 0.25s ease;
}

.station-dropdown-menu.show {
  display: flex;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.station-dropdown-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.station-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.station-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.station-item:hover,
.station-item.active {
  background: var(--border);
}

.station-item.active {
  border-left: 3px solid var(--accent);
}

.station-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-3);
}

.station-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.station-item-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-item-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-item-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Badge especial en el submenú para TV */
.link-tv-badge {
  background: #ff0055;
  color: #fff !important;
  padding: 3px 12px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(255, 0, 85, 0.35);
  transition: all 0.2s ease;
}

.link-tv-badge:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}
/* ======================================================= */
/* SECCIÓN TV EN VIVO (PANEL TIPO VIDEOS + REPRODUCTOR 1:1)*/
/* ======================================================= */
.page-tv-section {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 3.5rem 0;
  z-index: 5;
}

/* Caja exterior con el fondo integrado del panel */
.page-tv-section .section-container {
  position: relative !important;
  width: calc(100% - 3rem);
  max-width: calc(var(--max-width) - 3rem);
  margin: 0 auto;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--accent) 85%, #08090d);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, 0.15));
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  overflow: hidden !important; /* Corta el marquee animado en los bordes */
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html.dark-theme .page-tv-section .section-container {
  background: color-mix(in srgb, var(--accent) 70%, #000000);
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.08));
}

/* Badge y Título siempre por encima del marquee de fondo */
.page-tv-section .section-badge-pill {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  align-self: flex-start;
  margin-bottom: 0.8rem;
}

.page-tv-section .section-main-heading {
  position: relative;
  z-index: 2;
  color: #ffffff;
  width: 100%;
  margin-bottom: 2rem;
}

.page-tv-section .section-main-heading span {
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

.page-tv-section .section-main-heading::after {
  background-color: rgba(255, 255, 255, 0.35);
}

/* TARJETA PANORÁMICA 16:9 DEL REPRODUCTOR */
.tv-player-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px; /* Ancho completo y cómodo para TV */
  aspect-ratio: 16 / 9; /* Proporción estándar de transmisión */
  background: #000000;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.tv-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* BARRA FLOTANTE DE CONTROLES TV */
.tv-custom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, #000000 100%);
  padding: 24px 20px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tv-video-wrap.is-idle .tv-custom-bar {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.tv-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.tv-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.tv-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

#tv-btn-pip svg,
#tv-btn-fs svg,
#tv-btn-vol svg {
  fill: none;
}

.tv-live-pill {
  background: #e42528;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tv-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse-dot 1.4s infinite;
}

.tv-progress-rail {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.tv-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff2a6d 0%, #d800ff 50%, #7928ca 100%);
}

.tv-time {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tv-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 65px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.tv-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

@media (max-width: 768px) {
  .page-tv-section .section-container {
    width: calc(100% - 2rem);
    padding: 2rem 1.2rem;
    border-radius: 20px;
  }
  .tv-player-card {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  .tv-slider,
  #tv-btn-pip {
    display: none;
  }
  .tv-custom-bar {
    gap: 10px;
    padding: 14px 12px 10px;
  }
 
}

/* ======================================================= */
/* VISTA DE NOTICIA TIPO WORDPRESS (2 COLUMNAS + SIDEBAR)  */
/* ======================================================= */
.article-page-view {
  width: 100%;
  min-height: 80vh;
  padding: 1.5rem 0 6rem 0;
  animation: fadeInPage 0.3s ease;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-layout-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

/* Botón Circular Flotante Arriba a la Izquierda */
.btn-article-back-circle {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 11, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-article-back-circle:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.btn-article-back-circle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 680px) {
  .btn-article-back-circle {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
  }
  .btn-article-back-circle svg {
    width: 18px;
    height: 18px;
  }
}

/* Portada Cinematográfica con Textos Superpuestos */
.article-hero-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  position: relative;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.article-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.85) 85%, #000000 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2.2rem 2.4rem;
  box-sizing: border-box;
}

.article-hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 10px 0 8px 0;
  word-break: break-word;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-meta-bullet {
  color: var(--accent);
}

/* Contenido de la noticia */
.article-body-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text);
  word-break: break-word;
}

.article-body-content p {
  margin-bottom: 1.6rem;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* ================= BARRA LATERAL (SIDEBAR) ================= */
/* ================= BARRA LATERAL FIJA / STICKY ================= */
.article-sidebar-column {
  position: sticky;
  top: 95px; /* Altura de margen para no chocar con el header superior */
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-self: start; /* Imprescindible para que funcione dentro de CSS Grid */
  max-height: calc(100vh - 110px); /* Si la lista es muy larga, permite scroll interno */
  overflow-y: auto;
  scrollbar-width: none; /* Oculta la barra de scroll en Firefox */
}

.article-sidebar-column::-webkit-scrollbar {
  display: none; /* Oculta la barra de scroll en Chrome/Safari */
}

/* ======================================================= */
/* WIDGET LATERAL ESTILO TRENDING NUMERADO (CARD CONTENEDOR) */
/* ======================================================= */
.sidebar-widget {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.dark-theme .sidebar-widget {
  background: #11131a;
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.sidebar-trending-kicker {
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--accent); /* Barra roja lateral del título */
  border-radius: 2px;
}

.sidebar-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* Sin separación para que actúen las líneas divisorias */
}

/* Ítem individual de la lista numerada */
.trending-sidebar-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trending-sidebar-item:first-child {
  padding-top: 0.2rem;
}

.trending-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.trending-sidebar-item:hover {
  opacity: 0.85;
  transform: translateX(3px);
}

/* Número grande tenue (01, 02, 03...) */
.trending-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  color: var(--text-faint);
  letter-spacing: -0.02em;
}

.trending-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Título de la noticia */
.trending-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  transition: color 0.2s ease;
}

.trending-sidebar-item:hover .trending-title {
  color: var(--accent);
}

/* Fecha tenue inferior */
.trending-date {
  font-family: 'Questrial', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* Responsive */
@media (max-width: 1024px) {
  .article-layout-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ======================================================= */
/* BLOQUE: PROGRAMA ACTUAL Y SIGUIENTE (DISEÑO EXACTO)     */
/* ======================================================= */
.page-current-next-section {
  position: relative;
  width: 100%;
  padding: 1.5rem 0 2rem 0;
  z-index: 5;
}

/* Grilla: Izquierda rectangular ancha (1.8fr) y Derecha compacta cuadrada (1fr) */
.current-next-grid {
  display: grid !important;
  grid-template-columns: 1.8fr 1fr !important;
  gap: 1.8rem !important; /* Espacio limpio entre ambas tarjetas */
  width: 100% !important;
  align-items: stretch !important;
}

/* Tarjetas principales con bordes suaves */
.current-prog-card {
  position: relative !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  height: 380px !important;
  background: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  border: none !important;
}

.current-prog-bg {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  transition: transform 0.5s ease !important;
  z-index: 0 !important;
}

.current-prog-card:hover .current-prog-bg {
  transform: scale(1.03) !important;
}

/* Degradado suave sobre la foto que sube con el color del panel */
.current-prog-overlay {
  position: absolute !important;
  inset: 0 !important;
  padding: 2.2rem 2.4rem !important;
  box-sizing: border-box !important;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0) 35%, 
    rgba(0, 0, 0, 0.35) 60%, 
    color-mix(in srgb, var(--accent) 88%, #000000) 100%
  ) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 0 !important; /* CERO separación */
  z-index: 2 !important;
}

/* 1. BADGE SUPERIOR ('AL AIRE' / 'A CONTINUACIÓN') */
.current-prog-badge {
  display: inline-block !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  padding: 6px 14px !important;
  border-radius: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  vertical-align: bottom !important;
}

.current-prog-badge.is-next {
  background: #ffffff !important;
  color: var(--accent) !important;
}

.current-prog-title-box {
  background: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 0 !important; 
  margin: 0 !important; 
  max-width: 90% !important;
  display: block !important;
  box-sizing: border-box !important;
  border: none !important;
}

.current-prog-title {
  font-family: 'Poppins', sans-serif !important;
  color: #000000 !important;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 !important; 
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
}

/* 3. FRANJA OSCURA INFERIOR (PEGADA AL TÍTULO) */
.current-prog-meta-pill {
  background: #000000 !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 8px 18px !important;
  border-radius: 0 !important; /* Esquina recta */
  margin: 0 !important; /* CERO margen */
  width: fit-content !important;
  max-width: 90% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  border: none !important;
}

/* Responsive */
@media (max-width: 950px) {
  .current-next-grid {
    grid-template-columns: 1fr !important;
    gap: 1.4rem !important;
  }
  .current-prog-card {
    height: 320px !important;
  }
  .current-prog-overlay {
    padding: 1.5rem !important;
  }
}

/* ======================================================= */
/* VISTA DINÁMICA: PORTAL COMPLETO DE NOTICIAS             */
/* ======================================================= */
.portal-news-view {
  width: 100%;
  min-height: 80vh;
  padding: 1rem 0 5rem 0;
  animation: fadeInPage 0.3s ease;
}

/* 1. Cabecera Destacada Horizontal */
.portal-news-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

html.dark-theme .portal-news-hero {
  background: #11131a;
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-news-hero:hover {
  transform: translateY(-3px);
}

.portal-hero-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}

.portal-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portal-news-hero:hover .portal-hero-thumb img {
  transform: scale(1.04);
}

.portal-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 2.5rem 2.5rem 0;
  gap: 12px;
}

.portal-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-hero-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.portal-news-layout {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  gap: 3rem !important;
  align-items: start !important; 
  position: relative !important;
  overflow: visible !important;  
}

.portal-news-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 90px !important; 
  align-self: start !important;
  height: fit-content !important;
  max-height: calc(100vh - 110px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  z-index: 10 !important;
}

.portal-news-sidebar::-webkit-scrollbar {
  display: none !important;
}

.portal-news-view,
#portal-news-view,
.portal-news-view .section-container {
  overflow: visible !important;
}

/* Píldoras de Categorías */
.portal-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.cat-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Questrial', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

html.dark-theme .cat-pill {
  background: #11131a;
  border-color: rgba(255, 255, 255, 0.08);
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}

.portal-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
}

/* 3. Grilla de Tarjetas (3 Columnas) */
.portal-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem 1.4rem;
  width: 100%;
}

.portal-card-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.portal-card-item:hover {
  transform: translateY(-4px);
}

.portal-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
  margin-bottom: 0.8rem;
}

.portal-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent) !important;
  color: #ffffff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.1;
  text-transform: uppercase;
}

.portal-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.portal-card-item:hover .portal-card-title {
  color: var(--accent);
}

.portal-card-excerpt {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-card-date {
  font-family: 'Questrial', sans-serif;
  font-size: 0.72rem;
  color: var(--text-faint);
}

@media (max-width: 1024px) {
  .portal-news-hero {
    grid-template-columns: 1fr;
  }
  .portal-hero-info {
    padding: 1.5rem;
  }
  .portal-news-layout {
    grid-template-columns: 1fr;
  }
  .portal-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portal-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================= */
/* 1. BOTONES FLOTANTES A LA IZQUIERDA (TEMA & SCROLL TOP) */
/* ======================================================= */
.floating-quick-actions {
  position: fixed;
  bottom: 19px;
  left: 20px; 
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1050;
  pointer-events: auto;
}

.quick-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px; 
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.quick-action-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.btn-theme-toggle {
  background: var(--accent);
  color: #ffffff;
}

.btn-theme-toggle svg {
  width: 18px;
  height: 18px;
}

.btn-scroll-top {
  background: #ede9fe;
  color: #1e1e1f;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top svg {
  width: 18px;
  height: 18px;
}

html.dark-theme .btn-scroll-top {
  background: #1f222e;
  color: #c4b5fd;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .floating-quick-actions {
    bottom: 20px;
    left: 14px; /* Izquierda en móvil */
  }
}

/* ======================================================= */
/* 2. WIDGET FLOTANTE DE CHAT (EXCLUSIVO A LA DERECHA)     */
/* ======================================================= */
.floating-chat-widget {
  position: fixed;
  bottom: 30px; 
  right: 20px;  
  left: auto;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* 1. DISPARADOR FLOTANTE (PÍLDORA + CÍRCULO) */
.chat-floating-trigger-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.chat-trigger-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.chat-trigger-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pill-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.pill-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.chat-trigger-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0f172a;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.2s ease;
}

html.dark-theme .chat-trigger-circle-btn {
  background: var(--accent);
}

.chat-trigger-circle-btn:hover {
  transform: scale(1.08);
}

.chat-trigger-circle-btn svg {
  width: 22px;
  height: 22px;
}

/* 2. VENTANA POPUP DEL CHAT */
.chat-popup-card {
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 170px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.3s ease;
  pointer-events: none;
}

.chat-popup-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Encabezado */
.chat-popup-header {
  padding: 16px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.chat-header-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.chat-header-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.btn-close-popup {
  background: var(--bg-3);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-close-popup:hover {
  background: var(--border);
}

/* Área de Mensajes */
.chat-popup-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  min-height: 0;
}

.load-more-pill {
  align-self: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.load-more-pill:hover { background: var(--bg-3); }

.chat-bubble-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.chat-bubble-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.chat-bubble-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bubble-author {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.bubble-time {
  font-size: 10px;
  color: var(--text-faint);
}

.bubble-text {
  font-size: 13px;
  color: var(--text-dim);
  word-break: break-word;
  line-height: 1.35;
}

.chat-audio-player-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 3px;
  border: 1px solid var(--border);
}

.chat-mic-icon {
  color: #ef4444;
  display: flex;
  align-items: center;
}

.chat-native-audio {
  height: 26px;
  max-width: 170px;
  outline: none;
}

/* Barra inferior */
.chat-popup-footer {
  padding: 12px 14px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-popup-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.chat-popup-input:focus {
  border-color: #ef4444;
}

.btn-popup-send {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.btn-popup-send:hover {
  background: #dc2626;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .floating-chat-widget {
    bottom: 90px;
    right: 14px;
  }
  .chat-popup-card {
    width: calc(100vw - 28px);
    height: 480px;
  }
  .chat-trigger-pill {
    display: none;
  }
}

/* ======================================================= */
/* BOTÓN GLOBAL REUTILIZABLE (VER LISTA / MÁS CONTENIDO)   */
/* ======================================================= */
.section-action-footer {
  display: flex;
  align-items: center;
  justify-content: center; 
  width: 100%;
  margin-top: 2.2rem;
}

.btn-global-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: var(--accent);
    border: 1px solid var(--border);
    color: #ffffff;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 10px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

html.dark-theme .btn-global-action {
  background: #141721;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-global-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);

}

.btn-global-action svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

/* ======================================================= */
/* BANNER GIGANTE DE RANKING (ESTILO CHART)                */
/* ======================================================= */
.ranking-hero-banner {
    position: relative;
    width: 100%;
    background: #08090d;
    background: radial-gradient(circle at 90% 30%, var(--accent) 0%, rgba(8, 9, 13, 0.95) 60%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 3.5rem 4rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    overflow: hidden;
    /* box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3); */
}

.ranking-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 680px;
  z-index: 2;
}

.ranking-banner-kicker {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.ranking-banner-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

.ranking-banner-subtitle {
  font-family: 'Questrial', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* Tarjeta flotante derecha del banner */
.ranking-banner-card-right {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.ranking-banner-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ranking-banner-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.ranking-banner-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Ajustes Responsive para Celulares y Tablets */
@media (max-width: 900px) {
  .ranking-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.8rem;
    gap: 2rem;
  }
  .ranking-banner-card-right {
    width: 100%;
    min-width: 0;
    padding: 1.2rem 1.5rem;
  }
  .ranking-banner-title {
    font-size: 2.8rem;
  }
}

/* ======================================================= */
/* BLOQUE UNIFICADO: SECCIÓN HISTORIAL DE TEMAS             */
/* ======================================================= */
.page-history-section {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-base-mix));
  padding: 3rem 0;
  z-index: 5;
  transition: background 0.3s ease;
}

.section-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  z-index: 1;
}

.section-badge-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.page-history-section .history-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 2.2rem 1.6rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.page-history-section .history-card-item {
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  min-width: 0 !important;
}

.page-history-section .history-card-item:hover {
  transform: translateY(-5px) !important;
}

.page-history-section .history-card-cover {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: var(--bg-3) !important;
  position: relative !important;
  box-shadow: var(--shadow-card) !important;
  margin-bottom: 0 !important;
}

.page-history-section .history-card-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: grayscale(100%) contrast(105%) brightness(95%) !important;
  opacity: 0.85 !important;
  transition: filter 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: filter, transform !important;
}

.page-history-section .history-card-item:hover .history-card-cover img {
  filter: grayscale(0%) contrast(100%) brightness(100%) !important;
  opacity: 1 !important;
  transform: scale(1.04) !important;
}

/* Degradado inferior para legibilidad de los textos */
.page-history-section .history-card-cover::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 90%, #000000 100%) !important;
  pointer-events: none !important;
}

.page-history-section .history-card-yt-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
  transition: all 0.2s ease !important;
}

.page-history-section .history-card-yt-btn:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  transform: scale(1.1) !important;
}

.page-history-section .history-card-yt-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: #ffffff !important;
}

/* Contenedor de Textos ABAJO A LA IZQUIERDA */
.page-history-section .history-card-info {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 1.1rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.page-history-section .history-card-time {
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

.page-history-section .history-card-title {
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.page-history-section .history-card-artist {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .page-history-section .history-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.6rem 1.2rem !important;
  }
}

@media (max-width: 680px) {
  .page-history-section {
    padding: 3.5rem 0;
  }
  .section-container {
    padding: 0 1rem;
    text-align: center;
  }
  .page-history-section .history-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.4rem 1rem !important;
  }
  .page-history-section .history-card-cover {
    border-radius: 14px !important;
  }
}

/* ======================================================= */
/* ESTILOS CORREGIDOS: FILAS Y REPRODUCTOR DE PODCASTS     */
/* ======================================================= */

.podcast-search-container {
    width: 100%;
    background: var(--bg-2);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.podcast-search-bar-wrap {
  width: 100%;
  max-width: 550px; 
  background: var(--bg); 
  border-radius: 14px;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.podcast-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
}

.podcast-search-input::placeholder {
  color: var(--text-faint);
}

.podcasts-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  width: 100%;
}

.podcast-catalog-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 16px;
    padding: 9px;
    gap: 12px;
    overflow: hidden; 
    transition: transform 0.3s ease;
}

.podcast-catalog-item:hover {
  transform: translateY(-5px);
}

.podcast-catalog-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.8rem;
}

.podcast-catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.podcast-catalog-item:hover .podcast-catalog-thumb img {
  transform: scale(1.04);
}

.podcast-catalog-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-catalog-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem; 
  width: 100%;
  margin-top: 2rem;
}

#podcast-audios-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem !important; 
}

.podcast-episode-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0; 
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.podcast-episode-row:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.podcast-ep-main-content {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 1.8rem;
  align-items: center;
}

.podcast-ep-thumb {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}

.podcast-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.podcast-ep-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.podcast-ep-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.podcast-ep-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.podcast-ep-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-ep-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.podcast-ep-date {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 700;
}

/* Botón Escuchar estilo minimalista */
.podcast-ep-play-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #0a0b10;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}

html.dark-theme .podcast-ep-play-trigger {
  background: #ffffff;
  color: #0a0b10;
}

.podcast-ep-play-trigger:hover {
  transform: scale(1.05);
  background: var(--accent);
  color: #ffffff;
}

.podcast-ep-play-trigger svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ======================================================= */
/* REPRODUCTOR DESPLEGABLE CON ESPACIADO CORREGIDO         */
/* ======================================================= */
.podcast-player-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease, 
              margin-top 0.35s ease, 
              padding 0.35s ease;
  background: var(--bg-3);
  border-radius: 12px;
  padding: 0 1.5rem;
  margin-top: 0; 
  display: flex;
  flex-direction: column;
}

.podcast-episode-row.is-playing-active .podcast-player-drawer {
  max-height: 100px;
  opacity: 1;
  margin-top: 1.2rem; 
  padding: 14px 1.5rem;
  border: 1px solid var(--border);
}

.pod-player-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.pod-ctrl-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
}

.pod-ctrl-btn:hover {
  background: var(--border);
  color: var(--accent);
}

.pod-ctrl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pod-progress-bar-wrap {
  position: relative;
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.pod-progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
}

.pod-time-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 35px;
}

.pod-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--border);
  transition: all 0.2s;
}

.pod-download-btn:hover {
  background: var(--accent);
  color: #fff;
}

.pod-download-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* Responsivo para móviles */
@media (max-width: 1024px) {
  .podcasts-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .podcasts-catalog-grid {
    grid-template-columns: 1fr;
  }
  .podcast-ep-main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .podcast-ep-right-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .podcast-episode-row {
    padding: 1.2rem;
  }
}

/* ======================================================= */
/* FOOTER NUEVO: DISEÑO CÁPSULA / PLATAFORMA PREMIUM       */
/* ======================================================= */
.footer-section {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 2rem 0 3rem 0;
  z-index: 5;
}

.footer-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Tarjeta central flotante */
.footer-card-box {
    position: relative;
    width: 100%;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 15px 35px;
    backdrop-filter: blur(10px);
    transition: background 0.3s, border-color 0.3s;
}

html.dark-theme .footer-card-box {
  background: color-mix(in srgb, var(--accent) 18%, #0d0f17);
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-slogan {
  font-family: 'Questrial', sans-serif;
  font-size: 0.95rem;
  color: rgb(255 255 255);
  max-width: 450px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

/* Enlaces rápidos organizados horizontalmente como menú flotante */
.footer-inline-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  padding: 0;
  margin: 0 0 2.2rem 0;
}

.footer-inline-nav li a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-inline-nav li a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Fila de redes sociales personalizada para este diseño */
.footer-card-box .footer-social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

/* Texto inferior */
.footer-bottom-copy {
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(255 255 255);
    letter-spacing: 0.05em;
}

/* Responsive para celulares */
@media (max-width: 768px) {
  .footer-card-box {
    padding: 2.2rem 1.2rem;
    border-radius: 24px;
  }
  .footer-inline-nav {
    gap: 1.2rem;
    row-gap: 0.8rem;
  }
  .footer-inline-nav li a {
    font-size: 0.76rem;
  }
}

/* ======================================================= */
/* ECUALIZADOR NATIVO AL RAS (DETRÁS Y BALANCEADO)         */
/* ======================================================= */
.radio-visualizer-container {
  position: absolute;
  inset: 0;
  z-index: 0; /* Coloca el ecualizador DETRÁS de la carátula y botones */
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0.9;
}

.visualizer-canvas-item {
  width: 100%;
  height: 100%;
  display: block;
}

/* ======================================================= */
/* ESTILOS DEL BLOQUE SLIDE-NX (ALTURA REDUCIDA Y LIMPIA)  */
/* ======================================================= */
.page-slides-section {
  position: relative;
  width: 100%;
  padding: 2.5rem 0;
  z-index: 5;
}

.slides-swiper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #e7e5e5;
}

.slide-nx-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-nx-card {
  position: relative;
  width: 100%;
  aspect-ratio: 28 / 9; /* Altura reducida sin aplastar la imagen */
  background: #000000;
  overflow: hidden;
}

.slide-nx-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ======================================================= */
/* FLECHAS DE NAVEGACIÓN SIN FONDO Y VISIBLES EN HOVER     */
/* ======================================================= */
.slides-swiper .swiper-button-next, 
.slides-swiper .swiper-button-prev {
  
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 0 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85 !important;
}

.slides-swiper .swiper-button-next:hover, 
.slides-swiper .swiper-button-prev:hover {
  ;
  border: none !important;
  transform: scale(1.15);
  opacity: 1 !important;
}

/* Evitar que Swiper altere la opacidad o color al estar activo */
.slides-swiper .swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: auto !important;
}

/* Ocultar las flechas predeterminadas de texto de Swiper */
.slides-swiper .swiper-button-next::after, 
.slides-swiper .swiper-button-prev::after {
  display: none !important;
}

/* Vectores SVG limpios sin fondo */
.slides-swiper .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 26px !important;
}

.slides-swiper .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 26px !important;
}

/* ======================================================= */
/* PAGINACIÓN ESTILO LÍNEAS                                */
/* ======================================================= */
.slides-pagination {
  bottom: 15px !important;
}

.slides-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  width: 30px;
  height: 3px;
  border-radius: 2px;
  opacity: 1;
  transition: background 0.2s ease;
}

.slides-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
}

@media (max-width: 768px) {
  .slide-nx-card {
    aspect-ratio: 16 / 9;
  }
} 

/* ======================================================= */
/* HEADER DINÁMICO: OCULTAR Y FIJAR SOLO EL MENÚ AL SCROLL  */
/* ======================================================= */
.caracol-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-2);
  z-index: 9999;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
}

.caracol-header-wrapper.at-top .caracol-top-ticker-bar {
  max-height: 42px;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

.caracol-header-wrapper.header-hidden {
  transform: translateY(-100%);
}

.caracol-header-wrapper.header-sticky-only {
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.caracol-header-wrapper.header-sticky-only .caracol-top-ticker-bar {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  padding: 0 !important;
  border: none;
}

/* ======================================================= */
/* CONTENEDOR CENTRAL ENCAJONADO (1200px) CON FONDO PROPIO */
/* ======================================================= */

body {
  background-color: #050608; 
}

.site-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #0d0f17; 

  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

html:not(.dark-theme) .site-content-wrapper {
  background: var(--bg-2);

}

/* 3. Limpieza de secciones para que no fuercen fondos infinitos y respeten la caja */
.site-content-wrapper #main-content-view,
.site-content-wrapper .portal-news-view,
.site-content-wrapper .article-page-view,
.site-content-wrapper .footer-section {
  width: 100%;
  box-sizing: border-box;
}

.site-content-wrapper .page-history-section,
.site-content-wrapper .page-noticias-section,
.site-content-wrapper .page-ranking-section,
.site-content-wrapper .page-programas-section,
.site-content-wrapper .footer-section {
  background: transparent !important; 
}

.site-content-wrapper .page-videos-section .section-container,
.site-content-wrapper .page-tv-section .section-container {
  width: 100% !important;
  max-width: 100% !important;
}

.site-content-wrapper .radio-card-container {
  padding-top: 1.5rem;
}

/* ======================================================= */
/* FRANJA TICKER DE MENSAJES (4 EN FILA)                   */
/* ======================================================= */
.chat-ticker-bar {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    height: 42px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    padding: 0 1.5rem;
}

html.dark-theme .chat-ticker-bar {
  background: #10121a;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.chat-ticker-badge {
  position: relative;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0 20px 0 14px;
  height: 28px; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.chat-ticker-slider-wrap {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
}

.chat-ticker-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Grupo de 4 mensajes */
.chat-ticker-group {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.chat-ticker-group.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-ticker-group.exit {
  opacity: 0;
  transform: translateY(-14px);
}

/* Cada uno de los mensajes dentro del grupo de 4 */
.chat-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-ticker-item:last-child {
  border-right: none;
}

.chat-ticker-avatar-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-ticker-avatar-fallback {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-ticker-author {
  font-weight: 800;
  color: var(--accent);
}

.chat-ticker-text {
  color: var(--text-dim);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-ticker-time {
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ======================================================= */
/* MEGA MENÚ DESPLEGABLE DE NOTICIAS (PC)                 */
/* ======================================================= */
.has-megamenu {
  position: static !important; /* Permite que el mega menú abarque todo el ancho del menú */
}

.caracol-main-nav-row {
  position: relative; /* Contenedor de referencia para centrar el desplegable */
}

.menu-arrow-icon {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  margin-left: 3px;
  transition: transform 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.has-megamenu:hover .menu-arrow-icon {
  transform: rotate(180deg);
}

/* Caja Flotante del Mega Menú */
.megamenu-dropdown-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.25s ease;
  z-index: 1000;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

html.dark-theme .megamenu-dropdown-box {
  background: #11131a;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Despliegue al pasar el mouse por NOTICIA o el panel */
.has-megamenu:hover .megamenu-dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-container {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 250px;
}

/* 1. Columna Izquierda: Lista de Categorías */
.megamenu-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

html.dark-theme .megamenu-cat-list {
  background: #0b0c10;
  border-right-color: rgba(255, 255, 255, 0.06);
}

.megamenu-cat-item {
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.megamenu-cat-item:hover,
.megamenu-cat-item.active {
  background: var(--bg-2);
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

html.dark-theme .megamenu-cat-item:hover,
html.dark-theme .megamenu-cat-item.active {
  background: #161822;
  color: #ffffff;
}

/* 2. Columna Derecha: Tarjetas de Noticias (3 por fila) */
.megamenu-news-grid {
  padding: 1.5rem 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.megamenu-news-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.megamenu-news-card:hover {
  transform: translateY(-3px);
}

.megamenu-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
  margin-bottom: 0.7rem;
}

.megamenu-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.megamenu-news-card:hover .megamenu-thumb-wrap img {
  transform: scale(1.05);
}

.megamenu-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.megamenu-news-card:hover .megamenu-card-title {
  color: var(--accent);
}

.megamenu-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
  padding: 3rem 1rem;
}

@media (max-width: 960px) {
  .megamenu-dropdown-box {
    display: none !important;
  }
}

/* ======================================================= */
/* PLACEHOLDERS TEMPORALES PARA HEADER 2 Y HEADER 3        */
/* ======================================================= */
.header-box-placeholder {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--bg-2);
  border-bottom: 1px dashed var(--accent);
  padding: 14px 1.5rem;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

html.dark-theme .header-box-placeholder {
  background: #0f1118;
}

.header-placeholder-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-placeholder-brand img {
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.header-placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-placeholder-tag.pronto {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.pulse-dot-test {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 1.5s infinite;
}

.pulse-dot-test.yellow {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* ======================================================= */
/* ESTILOS EXACTOS HEADER 2 (BLOQUES SÓLIDOS & CORPORATIVO)*/
/* ======================================================= */
.nx-h2-wrapper {
  width: 100%;
  background: #0a0b0e;
  position: relative;
  z-index: 9999;
}

/* --- PISO 1: LOGO, PROGRAMA Y REDES --- */
.nx-h2-top-bar {
    width: 100%;
    /* background: #090a0d; */
    background-image: url(/css/bg-header.gif);
    background-repeat: repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
}
.nx-h2-top-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
}

.nx-h2-brand-col {
  flex-shrink: 0;
}

.nx-h2-brand-link img {
  max-height: 52px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* WIDGET PROGRAMA AL AIRE CENTRAL */
.nx-h2-live-program {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nx-h2-prog-thumb {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background: #252830;
  overflow: hidden;
  flex-shrink: 0;
}

.nx-h2-prog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-h2-prog-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.nx-h2-live-tag {
  background: var(--accent);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.nx-h2-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse-dot 1.4s infinite;
}

.nx-h2-title-box {
  background: #ffffff;
  padding: 5px 14px;
  box-sizing: border-box;
}

.nx-h2-prog-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.nx-h2-prog-meta-pill {
  background: #1a1919;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* REDES SOCIALES A LA DERECHA */
.nx-h2-social-col {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nx-h2-divider {
  width: 1px;
  height: 55px;
  background: rgba(255, 255, 255, 0.14);
}

.nx-h2-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nx-h2-social-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-h2-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-h2-social-icons .social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3b3e45;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.nx-h2-social-icons .social-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.nx-h2-social-icons .social-link svg {
  width: 16px;
  height: 16px;
}

/* --- PISO 2: BARRA DEL MENÚ CON FIJADO SUAVE --- */
.nx-h2-nav-bar {
  width: 100%;
  background: #181a1f;
  border-bottom: 3.5px solid var(--accent);
  z-index: 1000;

}

.nx-h2-nav-bar.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;

}

.nx-h2-wrapper:has(.nx-h2-nav-bar.is-fixed) {
  padding-bottom: 56px;
}

.nx-h2-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 52px;
  position: relative; 
}

.nx-h2-menu-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nx-h2-menu-list > li {
  display: flex;
  align-items: stretch;
}

/* BOTONES DE BLOQUE SÓLIDO */
.nx-h2-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

/* EFECTO HOVER Y ACTIVO: BLOQUE SÓLIDO DEL COLOR DEL PANEL */
.nx-h2-nav-item:hover,
.nx-h2-nav-item.active {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}

.nx-h2-nav-item .menu-arrow-icon {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 3;
}

/* Herramientas de la derecha en la barra */
.nx-h2-nav-tools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 6px 0;
}

.nx-h2-nav-tools .action-label {
  color: rgba(255, 255, 255, 0.5);
}

.nx-h2-nav-tools .btn-pill-whatsapp,
.nx-h2-nav-tools .station-dropdown-pill {
  background: #0f1115;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.nx-h2-nav-tools .station-dropdown-pill svg {
  stroke: #ffffff;
}

/* Burger en Header 2 */
.nx-h2-burger {
  display: none;
}

.nx-h2-burger span {
  background-color: #ffffff;
}

/* ======================================================= */
/* MEGA MENÚ CORREGIDO: ENCAJONADO A 1200PX Y COMPACTO     */
/* ======================================================= */
.nx-h2-nav-bar .has-megamenu {
  position: static !important;
}

.nx-h2-nav-bar .megamenu-dropdown-box {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.25s ease;
  z-index: 1000;
  overflow: hidden;
  box-sizing: border-box;
}

html.dark-theme .nx-h2-nav-bar .megamenu-dropdown-box {
  background: #11131a;
  border-color: rgba(255, 255, 255, 0.08);
}

.nx-h2-nav-bar .has-megamenu:hover .megamenu-dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nx-h2-nav-bar .megamenu-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: auto;
}

.nx-h2-nav-bar .megamenu-cat-list {
  background: var(--bg);
  border-right: 1px solid var(--border);
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

html.dark-theme .nx-h2-nav-bar .megamenu-cat-list {
  background: #0b0c10;
  border-right-color: rgba(255, 255, 255, 0.06);
}

.nx-h2-nav-bar .megamenu-cat-item {
  padding: 10px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nx-h2-nav-bar .megamenu-cat-item:hover,
.nx-h2-nav-bar .megamenu-cat-item.active {
  background: var(--bg-2);
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

html.dark-theme .nx-h2-nav-bar .megamenu-cat-item:hover,
html.dark-theme .nx-h2-nav-bar .megamenu-cat-item.active {
  background: #161822;
  color: #ffffff;
}

/* Grilla interna de 3 noticias compactas */
.nx-h2-nav-bar .megamenu-news-grid {
  padding: 1.2rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.nx-h2-nav-bar .megamenu-news-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.nx-h2-nav-bar .megamenu-news-card:hover {
  transform: translateY(-3px);
}

.nx-h2-nav-bar .megamenu-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
  margin-bottom: 0.6rem;
}

.nx-h2-nav-bar .megamenu-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nx-h2-nav-bar .megamenu-news-card:hover .megamenu-thumb-wrap img {
  transform: scale(1.05);
}

.nx-h2-nav-bar .megamenu-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.nx-h2-nav-bar .megamenu-news-card:hover .megamenu-card-title {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nx-h2-social-col,
  .nx-h2-live-program {
    display: none;
  }

  .nx-h2-burger {
    display: flex;
  }

  .nx-h2-menu-list {
    display: none;
  }

  .nx-h2-top-inner {
    padding: 8px 1rem;
  }

  .nx-h2-nav-inner {
    justify-content: flex-end;
    padding: 8px 1rem;
    min-height: auto;
  }

  .nx-h2-nav-bar .megamenu-dropdown-box {
    display: none !important;
  }
}

/* ======================================================= */
/* ESTILOS EXACTOS HEADER 3 (FRANJA ENMARCADA A 1200PX)    */
/* ======================================================= */
.nx-h3-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-2);
  position: relative;
  z-index: 9999;
  padding-top: 14px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

html.dark-theme .nx-h3-wrapper {
  background: #0f1118;
}

/* --- FRANJA SUPERIOR: ALINEADA EXACTA CON EL ANCHO DE 1200PX --- */
.nx-h3-top-ticker-bar {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 10px auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.nx-h3-ticker-inner {
  width: 100%;
  height: 48px;
  background-color: var(--accent); /* Color dinámico del panel */
  border-radius: 14px; /* Esquinas redondeadas de la franja */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
  overflow: hidden;

}

/* PÍLDORA BLANCA SÓLIDA SEGÚN TU CAPTURA EXACTA */
.nx-h3-ticker-inner .ticker-news-pill {
  background: #ffffff !important;
  color: var(--accent) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  padding: 7px 18px !important;
  border-radius: 9px !important; 
  margin: 0 16px 0 0 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  height: auto !important;
  
}

/* Ticker de noticias */
.nx-h3-ticker-inner .ticker-news-container {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  margin-right: 1.5rem;
  height: 24px;
  display: flex;
  align-items: center;
}

.nx-h3-ticker-inner .ticker-news-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* REDES SOCIALES (BLANCAS CIRCULARES) */
.nx-h3-right-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nx-h3-social-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.nx-h3-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-h3-social-icons .social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nx-h3-social-icons .social-link:hover {
  transform: scale(1.12);
  opacity: 0.95;
}

.nx-h3-social-icons .social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- FILA PRINCIPAL DEL MENÚ (CONTENEDOR DE REFERENCIA A 1200PX) --- */
.nx-h3-main-nav-row {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 1.5rem 14px 1.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--bg-2);
  position: relative !important;
  transition: box-shadow 0.25s ease;
}

html.dark-theme .nx-h3-main-nav-row {
  background: #0f1118;
}

/* Menú Fijo / Sticky al hacer Scroll */
.nx-h3-main-nav-row.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  max-width: 100% !important;
  padding-left: max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem)) !important;
  padding-right: max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem)) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.nx-h3-wrapper:has(.nx-h3-main-nav-row.is-fixed) {
  padding-bottom: 60px;
}

.nx-h3-main-nav-row .has-megamenu {
  position: static !important;
}

.nx-h3-main-nav-row .megamenu-dropdown-box {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  z-index: 1000;
  box-sizing: border-box;
}

html.dark-theme .nx-h3-main-nav-row .megamenu-dropdown-box {
  background: #11131a;
  border-color: rgba(255, 255, 255, 0.08);
}

.nx-h3-main-nav-row .has-megamenu:hover .megamenu-dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 960px) {
  /* Ocultar la franja superior azul en móvil */
  .nx-h3-top-ticker-bar {
    display: none;
  }

  /* Ocultar los enlaces de texto y el botón de WhatsApp en móvil */
  .nx-h3-main-nav-row .header-menu-links {
    display: none;
  }
  .nx-h3-main-nav-row .header-action-group:not(.station-selector-wrap) {
    display: none;
  }

  /* Forzar que el bloque de emisoras se pegue a la derecha en columna */
  .nx-h3-main-nav-row .station-selector-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .nx-h3-main-nav-row .station-selector-wrap .action-label {
    display: block !important;
    font-size: 0.58rem !important;
    color: var(--text-faint) !important;
  }

  .nx-h3-main-nav-row .station-dropdown-pill {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }

  /* Distribuir entre el botón burger/logo a la izquierda y la emisora a la derecha */
  .nx-h3-main-nav-row {
    justify-content: space-between !important;
    padding: 10px 1rem !important;
  }
}

/* ======================================================= */
/* ANIMACIÓN HAMBURGUESA A "X"                             */
/* ======================================================= */
.header-burger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 10001; /* Queda sobre el overlay si es necesario */
}

.header-burger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--text);
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.2s ease, 
              background-color 0.25s ease;
  transform-origin: center;
}

/* En modo oscuro o en Header 2 oscuro */
html.dark-theme .header-burger-btn span,
.nx-h2-wrapper .header-burger-btn span {
  background-color: #ffffff;
}

/* ESTADO ACTIVO: TRANSFORMACIÓN A "X" */
.header-burger-btn.is-active span:nth-child(1) {
  transform: translateY(7.75px) rotate(45deg);
}

.header-burger-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header-burger-btn.is-active span:nth-child(3) {
  transform: translateY(-7.75px) rotate(-45deg);
}

/* ======================================================= */
/* MODAL DE MENÚ COMPLETO / PORTAL OVERLAY (TIPO CARACOL)  */
/* ======================================================= */
.portal-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-2);
  z-index: 99999 !important; /* Cubre todo el encabezado de la web */
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.35s ease;
}

html.dark-theme .portal-menu-overlay {
  background: #0b0c11;
}

/* Estado abierto cuando se hace clic en cualquier botón hamburguesa */
.portal-menu-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* --- BARRA SUPERIOR FIJA --- */
.portal-menu-header {
  width: 100%;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.dark-theme .portal-menu-header {
  background: #0f1118;
}

.portal-menu-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* Botón X de cerrar a la izquierda */
.portal-menu-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.portal-menu-close-btn:hover {
  background: var(--border);
  transform: scale(1.1);
  color: var(--accent);
}

.portal-menu-close-btn svg {
  width: 26px;
  height: 26px;
}

/* Logo en el centro */
.portal-menu-center-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.portal-menu-center-brand img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Botones derecha */
.portal-menu-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- CUERPO SCROLLABLE DEL MENÚ --- */
.portal-menu-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2.5rem 0 4rem 0;
}

.portal-menu-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  box-sizing: border-box;
}

/* COLUMNA IZQUIERDA: CATEGORÍAS */
.portal-menu-sidebar {
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}

.portal-menu-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.portal-nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.portal-nav-title:hover {
  color: var(--accent);
}

/* Iconos SVG alineados al lado del kicker azul */
.portal-nav-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--text-dim);
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.portal-nav-title:hover .portal-nav-ico {
  stroke: var(--accent);
  transform: scale(1.1);
}

.portal-kicker-bar {
  width: 3.5px;
  height: 14px;
  background-color: var(--accent);
  border-radius: 2px;
}

.portal-nav-sub {
  list-style: none;
  margin: 6px 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-nav-sub a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.portal-nav-sub a:hover {
  color: var(--accent);
}

/* COLUMNA DERECHA: CONTENIDO EDITORIAL */
.portal-menu-content {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  min-width: 0;
}

/* 1. SECCIÓN AHORA EN DIRECTO / PARRILLA */
.portal-schedule-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
}

.portal-block-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.portal-sublinks {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-sublinks a {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Fila de 3 tarjetas de programación */
.portal-live-cards-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.portal-live-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-slot-body {
  background: #23252a;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Tarjeta activa al aire */
.portal-live-slot.active-slot .portal-slot-body {
  background: #18191e;
}

.portal-slot-body img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.slot-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.slot-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-live-pill {
  background: #e42528;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.slot-live-pill .dot {
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}

.slot-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-host {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.slot-play-circle:hover {
  transform: scale(1.1);
}

.slot-play-circle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.slot-time {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-faint);
}

.slot-time.highlight {
  color: var(--text);
  font-weight: 800;
}

/* 2. CARD PODCASTS RECOMENDADOS */
.portal-recommended-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.dark-theme .portal-recommended-card {
  background: #11131a;
}

.portal-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.6rem;
}

.portal-card-heading h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.portal-card-heading .red-line {
  flex: 1;
  height: 2px;
  background-color: var(--accent);
}

.portal-recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.portal-rec-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.portal-rec-item:hover {
  transform: translateY(-4px);
}

.portal-rec-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  margin-bottom: 8px;
}

.portal-rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-rec-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-rec-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. CARD SÍGUENOS EN REDES */
.portal-menu-social-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 18px;
}

html.dark-theme .portal-menu-social-card {
  background: #11131a;
}

.social-head-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.portal-social-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-social-pills .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.portal-social-pills .social-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.1);
}

/* RESPONSIVE MÓVIL */
@media (max-width: 992px) {
  .portal-menu-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portal-menu-sidebar {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }
  .portal-live-cards-row {
    grid-template-columns: 1fr;
  }
  .portal-recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-menu-center-brand {
    display: none; /* En celular el logo no invade los botones */
  }
}

.section-heading-with-action {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.section-heading-with-action .section-main-heading {
  margin: 0;
  white-space: nowrap;
}

.section-heading-line {
  width: 100%;
  height: 5px;
  background: #111827;
}

.section-heading-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.section-heading-action svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.section-heading-action:hover {
  color: #155eef;
}

.section-heading-action:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .section-heading-with-action {
    grid-template-columns: auto minmax(20px, 1fr) auto;
    gap: 10px;
  }

  .section-heading-line {
    height: 4px;
  }

  .section-heading-action {
    font-size: 11px;
    gap: 5px;
  }

  .section-heading-action svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 520px) {
  .section-heading-with-action {
    grid-template-columns: auto minmax(15px, 1fr) auto;
    gap: 8px;
  }

  .section-heading-action span {
    display: none;
  }

  .section-heading-action svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 600px) {
  .portal-recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.2rem 0.9rem !important;
  }

  .portal-rec-item {
    min-width: 0;
  }

  .portal-rec-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 7px;
  }

  .portal-rec-title {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .portal-rec-sub {
    font-size: 0.66rem;
    line-height: 1.2;
  }
}


