:root {
  /* Paleta base y acentos Rinconada Stereo */
  --blue: #0d62d9;          /* Azul caribeño más vivo y eléctrico */
  --blue-dark: #0a4aa3;     /* Azul profundo */
  --deep: #092140;          /* Azul marino oscuro de alto contraste */
  --ink: #112239;
  --cream: #f4f7fc;         /* Fondo fresco, moderno y limpio */
  --line: #cdd9ec;
  --yellow: #ffd000;        /* Amarillo vibrante y alegre */
  --red: #ff0d0f;           /* Rojo vibrante en vivo pedido explícitamente */
  --text-lead: #274163;
  --title-color: #092140;
  --title-em: #0d62d9;

  /* Header */
  --header-bg: linear-gradient(180deg, #0e5ed2 0%, #0a4ea8 100%);
  --header-border: transparent;
  --header-shadow: 0 4px 20px rgba(9, 33, 64, 0.15);

  /* Tarjetas principales (Player y Chat) */
  --card-blue-1: #135fc7;   /* Degradado azul de marca para las cartas */
  --card-blue-2: #0b4393;
  --card-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 20px 50px rgba(9, 33, 64, 0.28);

  /* Tarjeta de Locupez */
  --locupez-bg: linear-gradient(145deg, #ffffff 0%, #edf4fc 100%);
  --locupez-border: #cce0f7;
  --locupez-quote: #1e3a5f;
  --locupez-pill-bg: #0d62d9;

  /* Separador de río SVG */
  --river-divider-color: #3676CE;
  --river-divider-bg: transparent;

  /* Sección 02 (En la emisora) y Blogs */
  --blogs-bg: #ffffff;
  --blogs-card-bg: #ffffff;
  --blogs-card-border: #d8e3f0;
  --blogs-card-shadow: 0 12px 32px rgba(13, 98, 217, 0.08);
  --blogs-item-border: #edf2f8;
  --blogs-item-hover: #f5f9fe;
  --blogs-link-title: #092140;
  --blogs-meta: #39577a;
  --blogs-url: #345073;
  --blogs-arrow-bg: #eaf1fb;
  --blogs-arrow-color: #0d62d9;

  /* Widget de Clima */
  --weather-bg: #f6f9fc;
  --weather-border: #dce4ef;
  --weather-caption: #59718f;
  --weather-temp: #092140;
  --weather-desc: #546e8e;
  --weather-sub: #5c728e;
  --weather-divider: #e4ecf6;
  --weather-clock-bg: #092140;
  --weather-clock-color: #f2ce6c;
  --weather-clock-border: rgba(242, 206, 108, 0.35);

  /* Sección 03 Contacto y Footer */
  --contact-bg: #092140;
  --footer-bg: #06162a;
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-subtext: #92b0d3;
}

/* --- MODO OSCURO (NOCHE EN LA CIÉNAGA) --- */
:root[data-theme="dark"] {
  --blue: #4d93f7;
  --blue-dark: #2563eb;
  --deep: #f2f7ff;
  --ink: #e4edf8;
  --cream: #071526;
  --line: #1b375b;
  --text-lead: #adc2db;
  --title-color: #f2f7ff;
  --title-em: #4d93f7;

  --header-bg: linear-gradient(180deg, #071c35 0%, #051427 100%);
  --header-border: #1c3d66;
  --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);

  --card-blue-1: #0d2c59;
  --card-blue-2: #081e3e;
  --card-border: #20487c;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

  --locupez-bg: #0c2443;
  --locupez-border: #1e4577;
  --locupez-quote: #d6e6fa;
  --locupez-pill-bg: #0d62d9;

  --river-divider-color: #4D93F7;
  --river-divider-bg: transparent;

  --blogs-bg: #071526;
  --blogs-card-bg: #0b2240;
  --blogs-card-border: #1b375b;
  --blogs-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --blogs-item-border: #143054;
  --blogs-item-hover: #12335c;
  --blogs-link-title: #e6f0fc;
  --blogs-meta: #adc2db;
  --blogs-url: #adc2db;
  --blogs-arrow-bg: #173b68;
  --blogs-arrow-color: #e6f0fc;

  --weather-bg: #0b2240;
  --weather-border: #1b375b;
  --weather-caption: #adc2db;
  --weather-temp: #f8fafc;
  --weather-desc: #a6c4e6;
  --weather-sub: #adc2db;
  --weather-divider: #1b375b;
  --weather-clock-bg: #06182e;
  --weather-clock-color: #ffd000;
  --weather-clock-border: rgba(255, 208, 0, 0.45);

  --contact-bg: #051427;
  --footer-bg: #040e1b;
  --footer-border: #1b375b;
  --footer-subtext: #adc2db;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #4d93f7;
    --blue-dark: #2563eb;
    --deep: #f2f7ff;
    --ink: #e4edf8;
    --cream: #071526;
    --line: #1b375b;
    --text-lead: #adc2db;
    --title-color: #f2f7ff;
    --title-em: #4d93f7;

    --header-bg: linear-gradient(180deg, #071c35 0%, #051427 100%);
    --header-border: #1c3d66;
    --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);

    --card-blue-1: #0d2c59;
    --card-blue-2: #081e3e;
    --card-border: #20487c;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

    --locupez-bg: #0c2443;
    --locupez-border: #1e4577;
    --locupez-quote: #d6e6fa;
    --locupez-pill-bg: #0d62d9;

    --river-divider-color: #4D93F7;
    --river-divider-bg: transparent;

    --blogs-bg: #071526;
    --blogs-card-bg: #0b2240;
    --blogs-card-border: #1b375b;
    --blogs-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    --blogs-item-border: #143054;
    --blogs-item-hover: #12335c;
    --blogs-link-title: #e6f0fc;
    --blogs-meta: #adc2db;
    --blogs-url: #adc2db;
    --blogs-arrow-bg: #173b68;
    --blogs-arrow-color: #e6f0fc;

    --weather-bg: #0b2240;
    --weather-border: #1b375b;
    --weather-caption: #adc2db;
    --weather-temp: #f8fafc;
    --weather-desc: #a6c4e6;
    --weather-sub: #adc2db;
    --weather-divider: #1b375b;
    --weather-clock-bg: #06182e;
    --weather-clock-color: #ffd000;
    --weather-clock-border: rgba(255, 208, 0, 0.45);

    --contact-bg: #051427;
    --footer-bg: #040e1b;
    --footer-border: #1b375b;
    --footer-subtext: #adc2db;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; transition: background-color 0.25s ease, color 0.25s ease; }
button, a, audio { touch-action: manipulation; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, audio:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem; background: white; border-radius: .4rem; box-shadow: 0 4px 14px rgba(0,0,0,0.2); font-weight: 700; color: #092140; }
.skip-link:focus { top: 1rem; }

:root[data-theme="dark"] .skip-link {
  background: #0b2240;
  color: #f2f7ff;
  border: 1px solid #1e4577;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skip-link {
    background: #0b2240;
    color: #f2f7ff;
    border: 1px solid #1e4577;
  }
}

.site-header {
  position: relative;
  background: var(--header-bg);
  color: white;
  padding: 1.6rem 0 1.2rem;
  box-shadow: var(--header-shadow);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.header-inner {
  position: relative;
  max-width: 1560px;
  margin: auto;
  padding: 0 clamp(1rem, 2vw, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.brand { display: inline-flex; justify-content: center; }
.brand picture, .mascot-img-wrap picture { display: contents; }
.brand img { display: block; width: clamp(220px, 28vw, 300px); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.16)); }
.site-header nav { display: flex; align-items: center; justify-content: center; gap: clamp(1.4rem, 3.5vw, 2.6rem); }
.site-header nav a { font-size: .95rem; font-weight: 700; text-decoration: none; opacity: .92; transition: opacity .15s ease, color .15s ease; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; color: var(--yellow); }

/* BOTÓN CONMUTADOR DE TEMA (MODO OSCURO / CLARO) INDEPENDIENTE */
.theme-toggle-btn {
  position: absolute;
  top: clamp(0.9rem, 1.8vw, 1.35rem);
  right: clamp(1rem, 2.5vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.theme-toggle-btn:active {
  transform: scale(0.94);
}
.theme-toggle-btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.theme-toggle-btn .theme-toggle-sun {
  display: none;
}
.theme-toggle-btn .theme-toggle-moon {
  display: inline-flex;
}

:root[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: #20487c;
  color: #f2f7ff;
}
:root[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--yellow);
  color: var(--yellow);
}
:root[data-theme="dark"] .theme-toggle-btn .theme-toggle-sun {
  display: inline-flex;
}
:root[data-theme="dark"] .theme-toggle-btn .theme-toggle-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: #20487c;
    color: #f2f7ff;
  }
  :root:not([data-theme="light"]) .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--yellow);
    color: var(--yellow);
  }
  :root:not([data-theme="light"]) .theme-toggle-btn .theme-toggle-sun {
    display: inline-flex;
  }
  :root:not([data-theme="light"]) .theme-toggle-btn .theme-toggle-moon {
    display: none;
  }
}
main > section, #chat, #reproductor { scroll-margin-top: 1.5rem; }

/* 01 / SECCIÓN UNIFICADA: HERO + ESCUCHA (SIN SCROLL) */
.hero-listen { max-width: 1560px; margin: auto; padding: clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 2.2rem) 3.5rem; }
.eyebrow, .kicker, .section-number { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--blue); }
.live-dot { display: inline-block; width: .65rem; height: .65rem; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 .25rem rgba(255, 13, 15, 0.25); animation: liveDotPulse 1.8s infinite; }
@keyframes liveDotPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 .35rem rgba(255, 13, 15, 0.35); }
  100% { transform: scale(0.95); opacity: 0.85; }
}

.hero-listen h1, h2 { margin: .55rem 0 1.1rem; font-weight: 800; letter-spacing: -.05em; line-height: .98; color: var(--title-color); }
.hero-listen h1 { font-size: clamp(3rem, 4.8vw, 5.2rem); max-width: 20ch; color: var(--title-color); }
.hero-listen h1 em, h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--title-em); }
.hero-listen .lead { max-width: 44rem; font-size: clamp(1.05rem, 1.25vw, 1.22rem); line-height: 1.55; margin: 0; color: var(--text-lead); font-weight: 500; }

.hero-listen-layout { display: grid; grid-template-columns: 1.08fr 0.92fr; grid-template-areas: "intro locupez" "player chat"; gap: 2.2rem clamp(1.5rem, 2vw, 2.5rem); align-items: start; padding-top: 1.6rem; }
.hero-intro { grid-area: intro; }
.mascot-card { grid-area: locupez; }
.player-card { grid-area: player; }
.chat-card { grid-area: chat; }

/* CARTAS CON FONDO AZUL DE MARCA */
.player-card, .chat-card { border-radius: 1.25rem; background: linear-gradient(155deg, var(--card-blue-1) 0%, var(--card-blue-2) 100%); color: #ffffff; border: 1px solid var(--card-border); box-shadow: var(--card-shadow); transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.player-card { padding: clamp(1.5rem, 2.5vw, 2rem); }

/* CABECERA REPRODUCTOR CON BLOQUE ROJO #ff0d0f */
.player-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.live-signal-block { display: inline-flex; align-items: center; gap: .75rem; background: var(--red); color: #ffffff; padding: .45rem 1.15rem; border-radius: .75rem; box-shadow: 0 4px 18px rgba(255, 13, 15, 0.45); }
.live-pulse-dot { width: .75rem; height: .75rem; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); animation: livePulse 1.4s ease-in-out infinite alternate; }
@keyframes livePulse {
  0% { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55); }
}
.live-signal-heading { margin: 0; font-size: clamp(1.6rem, 2.3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: #ffffff; line-height: 1.05; text-transform: uppercase; }

/* BARRAS DE ECUALIZADOR ANIMADO */
.equalizer-bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 22px; margin-left: auto; }
.equalizer-bars .bar { display: block; width: 4px; height: 4px; background: var(--yellow); border-radius: 2px; transition: height .2s ease; }
.equalizer-bars.is-playing .bar { animation: eqBounce .75s ease-in-out infinite alternate; }
.equalizer-bars.is-playing .bar-1 { animation-delay: .1s; }
.equalizer-bars.is-playing .bar-2 { animation-delay: .3s; }
.equalizer-bars.is-playing .bar-3 { animation-delay: 0s; }
.equalizer-bars.is-playing .bar-4 { animation-delay: .4s; }
.equalizer-bars.is-playing .bar-5 { animation-delay: .2s; }
@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* REPRODUCTOR CUSTOMIZADO */
.custom-player { display: flex; flex-direction: column; gap: 1.25rem; }
.custom-player-main { display: flex; align-items: center; gap: 1.25rem; }
.custom-play-btn { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: #ffffff; color: #0b418d; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.custom-play-btn:hover { background: var(--yellow); color: #07234e; transform: scale(1.06); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.custom-play-btn:active { transform: scale(0.96); }
.custom-play-btn svg { width: 26px; height: 26px; }
.custom-stream-badge { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.station-name { font-weight: 800; font-size: 1.22rem; color: #ffffff; letter-spacing: -.01em; }
.stream-status-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .24rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #ffffff; font-size: .78rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.25); transition: all .2s ease; }
.stream-status-tag.is-playing { background: #10b981; color: #ffffff; border-color: #34d399; box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4); }
.stream-status-tag.is-connecting { background: #f59e0b; color: #ffffff; border-color: #fbbf24; }
.stream-status-tag.is-error { background: #ef4444; color: #ffffff; border-color: #f87171; }
.player-subline { color: #dbeafe; font-size: .86rem; margin: .25rem 0 0; font-weight: 500; }

/* TEMA EN EMISIÓN / NOW PLAYING */
.custom-track-box { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: .85rem; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .35rem; backdrop-filter: blur(8px); transition: background .25s ease, border-color .25s ease; }
.custom-track-box.is-live { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); }
.track-header { display: flex; align-items: center; gap: .45rem; }
.track-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); display: inline-block; box-shadow: 0 0 0 2px rgba(255, 208, 0, 0.35); }
.custom-track-box.is-live .track-pulse-dot { animation: pulseDot 1.6s ease-in-out infinite alternate; }
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.45); }
}
.track-kicker { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.track-content { display: flex; align-items: center; gap: .55rem; min-width: 0; min-height: 2.7rem; }
.track-icon { color: var(--yellow); flex-shrink: 0; display: flex; align-items: center; }
.track-title { margin: 0; font-size: .96rem; font-weight: 700; color: #ffffff; letter-spacing: -.01em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; transition: opacity .2s ease; }

/* ACCIONES DE TEMA: PEDIR POR WHATSAPP Y VER RECIENTES */
.track-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}
.track-share-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #b7ffd4;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.track-share-wa-btn:hover {
  background: #25d366;
  color: #052611;
  transform: translateY(-1px);
}
.recent-tracks-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.recent-tracks-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--yellow);
  color: var(--yellow);
}
.recent-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #092140;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

/* HISTORIAL DE TEMAS RECIENTES (RECIÉN SONADAS) */
.recent-tracks-panel {
  margin-top: 0.65rem;
  background: rgba(5, 20, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  animation: recentPanelIn 0.22s ease-out;
}
.recent-tracks-panel[hidden] {
  display: none !important;
}
@keyframes recentPanelIn {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.recent-tracks-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.recent-panel-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.recent-panel-sub {
  font-size: 0.72rem;
  color: #a7c5ea;
}
.recent-tracks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.recent-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  font-size: 0.84rem;
  color: #f2f7ff;
}
.recent-track-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-track-time {
  font-size: 0.74rem;
  color: #9bbbdc;
  flex-shrink: 0;
  font-weight: 700;
}
.recent-track-empty {
  padding: 0.5rem 0.2rem;
  font-size: 0.82rem;
  color: #adc5e2;
  font-style: italic;
}

/* FILA DE CONTROLES INFERIORES: VOLUMEN + TEMPORIZADOR DE APAGADO */
.player-controls-bottom {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.custom-volume-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: .8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.custom-mute-btn { background: none; border: none; padding: 4px; color: #ffffff; cursor: pointer; display: flex; align-items: center; }
.custom-mute-btn svg { width: 20px; height: 20px; }
.custom-volume-slider { flex: 1; accent-color: var(--yellow); cursor: pointer; height: 6px; }

/* TEMPORIZADOR DE APAGADO (SLEEP TIMER) */
.sleep-timer-wrap {
  position: relative;
  flex-shrink: 0;
}
.sleep-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sleep-timer-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: var(--yellow);
  color: var(--yellow);
}
.sleep-timer-btn.is-active {
  background: var(--yellow);
  color: #07234e;
  border-color: #ffd000;
  box-shadow: 0 0 14px rgba(255, 208, 0, 0.4);
}
.sleep-timer-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 50;
  background: #0b2c58;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.85rem;
  padding: 0.5rem;
  min-width: 205px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: sleepMenuIn 0.18s ease-out;
}
.sleep-timer-menu[hidden] {
  display: none !important;
}
@keyframes sleepMenuIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.sleep-menu-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a4c4e8;
  padding: 0.35rem 0.65rem 0.25rem;
}
.sleep-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sleep-menu-item:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--yellow);
}
.sleep-menu-item.is-selected {
  background: rgba(255, 208, 0, 0.22);
  color: var(--yellow);
  font-weight: 800;
}
.sleep-menu-cancel {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ff9b9b !important;
  margin-top: 0.25rem;
}
.sleep-menu-cancel:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* MINI-REPRODUCTOR FLOTANTE PERSISTENTE (STICKY BOTTOM PLAYER COMPACTO) */
.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(10, 36, 74, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.35);
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  padding: 0.55rem clamp(0.9rem, 2.5vw, 2.2rem) calc(0.55rem + env(safe-area-inset-bottom, 0px));
  color: #ffffff;
}
.sticky-player.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
:root[data-theme="light"] .sticky-player {
  background: rgba(9, 33, 64, 0.96);
  border-top: 1px solid rgba(13, 98, 217, 0.35);
  box-shadow: 0 -8px 28px rgba(9, 33, 64, 0.28);
}
:root[data-theme="dark"] .sticky-player {
  background: rgba(7, 21, 38, 0.96);
  border-top-color: #1e4577;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}
.sticky-player-inner {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.sticky-player-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 1;
}
.sticky-play-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b418d;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.sticky-play-btn:hover {
  background: var(--yellow);
  color: #07234e;
  transform: scale(1.05);
}
.sticky-play-btn svg { width: 19px; height: 19px; display: block; }

.sticky-track-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}
.sticky-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}
.sticky-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #c4dcfa;
  transition: all 0.2s ease;
}
.sticky-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #689fd7;
  flex-shrink: 0;
}
.sticky-status-tag.is-playing {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.38);
  color: #8ceabb;
}
.sticky-status-tag.is-playing .sticky-status-dot {
  background: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.7);
  animation: liveDotPulse 1.8s infinite;
}
.sticky-status-tag.is-connecting {
  background: rgba(255, 208, 0, 0.16);
  border-color: rgba(255, 208, 0, 0.35);
  color: #ffdf7d;
}
.sticky-status-tag.is-connecting .sticky-status-dot {
  background: #ffd000;
  animation: liveDotPulse 1s infinite;
}
.sticky-status-tag.is-error {
  background: rgba(255, 13, 15, 0.2);
  border-color: rgba(255, 13, 15, 0.4);
  color: #ffb4b4;
}
.sticky-status-tag.is-error .sticky-status-dot {
  background: #ff0d0f;
}

.sticky-station-name {
  color: #a8caee;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sticky-track-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  line-height: 1.25;
}

.sticky-player-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.sticky-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #b7ffd4;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.sticky-wa-btn:hover {
  background: #25d366;
  color: #062b14;
  transform: translateY(-1px);
}
.track-wa-icon, .sticky-wa-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 1;
}
.track-wa-icon svg {
  width: 1.125rem;
  height: 1.0625rem;
}
.sticky-wa-icon {
  font-size: 0.88rem;
}
.sticky-wa-icon svg {
  width: 1.375em;
  height: 1em;
}
.track-wa-icon svg, .sticky-wa-icon svg {
  display: block;
  fill: #fff;
  transition: fill 0.18s ease;
}
.track-share-wa-btn:hover .track-wa-icon svg,
.sticky-wa-btn:hover .sticky-wa-icon svg {
  fill: #000;
}

/* Control de volumen compacto en mini-reproductor */
.sticky-volume-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: border-color 0.16s ease;
}
.sticky-volume-control:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.sticky-mute-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease;
}
.sticky-mute-btn:hover {
  color: var(--yellow);
}
.sticky-mute-btn svg { width: 17px; height: 17px; display: block; }
.sticky-volume-slider {
  width: 72px;
  height: 4px;
  accent-color: var(--yellow);
  cursor: pointer;
}

.sticky-top-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  padding: 0;
}
.sticky-top-btn:hover {
  background: var(--yellow);
  color: #092140;
  border-color: var(--yellow);
  transform: translateY(-1px);
}
.sticky-top-btn svg { display: block; }

/* MASCOTA OFICIAL: LOCUPEZ */
.mascot-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.8rem 1.6rem 1.6rem; border-radius: 1.25rem; background: var(--locupez-bg); border: 1px solid var(--locupez-border); box-shadow: 0 16px 40px rgba(13, 98, 217, 0.12); position: relative; overflow: hidden; text-align: center; transition: background 0.25s ease, border-color 0.25s ease; }
.mascot-card::before { content: ""; position: absolute; width: 280px; height: 280px; background: radial-gradient(circle, rgba(13, 98, 217, 0.14) 0%, rgba(255, 208, 0, 0.1) 50%, transparent 70%); top: 38%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
:root[data-theme="dark"] .mascot-card::before {
  background: radial-gradient(circle, rgba(77, 147, 247, 0.18) 0%, rgba(255, 208, 0, 0.08) 50%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mascot-card::before {
    background: radial-gradient(circle, rgba(77, 147, 247, 0.18) 0%, rgba(255, 208, 0, 0.08) 50%, transparent 70%);
  }
}
.mascot-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; position: relative; z-index: 1; width: 100%; text-align: center; }
.mascot-img-wrap { display: flex; align-items: center; justify-content: center; width: 100%; }
.mascot-img { display: block; width: clamp(190px, 20vw, 255px); height: auto; filter: drop-shadow(0 14px 28px rgba(9, 33, 64, 0.22)); transition: transform .38s cubic-bezier(0.34, 1.56, 0.64, 1), filter .35s ease; cursor: pointer; }
.mascot-img:hover { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 20px 36px rgba(13, 98, 217, 0.35)); }
.mascot-img:active { transform: scale(0.96) rotate(2deg); }
.mascot-info { display: flex; flex-direction: column; align-items: center; gap: .5rem; max-width: 24rem; }
.mascot-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--locupez-pill-bg); color: #ffffff; font-size: .82rem; font-weight: 800; letter-spacing: .03em; width: fit-content; box-shadow: 0 3px 10px rgba(13, 98, 217, 0.3); }
.mascot-quote { margin: 0; font-size: .95rem; color: var(--locupez-quote); line-height: 1.45; font-style: italic; font-weight: 600; text-align: center; }

/* CHAT CARD EN AZUL DE MARCA */
.chat-card { padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; }
.chat-card h2 { margin: 0 0 1.2rem; font-size: clamp(1.6rem, 2.3vw, 2.2rem); letter-spacing: -.03em; color: #ffffff; line-height: 1.05; }
.chat-drawer { width: 100%; }
.chat-card iframe, .chat-drawer iframe { display: block; width: 100%; height: 460px; border: 2px solid rgba(255, 255, 255, 0.15); border-radius: .8rem; background: #0b2545; }

/* Botón accesible para colapsar/desplegar chat en móvil */
.chat-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.chat-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.chat-toggle-btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.chat-toggle-btn:active {
  transform: scale(0.985);
}

.chat-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
}

.chat-toggle-text {
  letter-spacing: 0.01em;
  pointer-events: none;
}

.chat-toggle-arrow {
  font-size: 0.75rem;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}


/* ESCRITORIO (> 900px): Botón oculto, drawer siempre visible */
@media (min-width: 901px) {
  .chat-toggle-btn {
    display: none;
  }
  .chat-drawer {
    display: block;
  }
}

/* MÓVIL (<= 900px): Botón visible, drawer colapsado por defecto */
@media (max-width: 900px) {
  .chat-toggle-btn {
    display: inline-flex;
    margin-bottom: 0.25rem;
  }
  .chat-drawer {
    display: none;
    margin-top: 1rem;
    animation: fadeInDrawer 0.25s ease;
  }
  .chat-card.is-open .chat-drawer,
  .chat-card:has(.chat-toggle-btn[aria-expanded="true"]) .chat-drawer {
    display: block;
  }
}

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

/* SEPARADOR DE RÍO SVG (STATIC SVG RIVER WAVE DIVIDER) */
.river-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--river-divider-color, #3676CE);
  background: var(--river-divider-bg, transparent);
  pointer-events: none;
}

.river-divider svg {
  display: block;
  width: 100%;
  height: 50px;
  vertical-align: bottom;
  color: inherit;
}

/* SECCIÓN 02 / EN LA EMISORA */
.blogs-section {
  padding: 3rem clamp(1rem, 2vw, 2.2rem) 5rem;
  background: var(--blogs-bg);
  content-visibility: auto;
  contain-intrinsic-size: auto 650px;
  transition: background-color 0.25s ease;
}

/* SECCIÓN 03 / CONTACTO */
.contact-section {
  padding: 3rem clamp(1rem, 2vw, 2.2rem) 5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}
.blogs-section > *, .contact-section > * { max-width: 1560px; margin-left: auto; margin-right: auto; }
.section-number { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); color: var(--text-lead); }
.kicker { color: var(--blue); }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.4rem); color: var(--title-color); }
h2 span { font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; }
.status-pill { padding: .65rem 1rem; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); font-size: .8rem; font-weight: 700; white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease; }
.blogs-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px); align-items: start; gap: clamp(2rem, 4vw, 4rem); margin-top: 2rem; }

/* BLOGS DE INTERÉS - TARJETA ÚNICA DE DIRECTORIO */
.blogs-card { background: var(--blogs-card-bg); border: 1px solid var(--blogs-card-border); border-radius: 1.25rem; box-shadow: var(--blogs-card-shadow); overflow: hidden; transition: background-color 0.25s ease, border-color 0.25s ease; }
.blogs-link-list { list-style: none; margin: 0; padding: 0; }
.blogs-link-item { border-bottom: 1px solid var(--blogs-item-border); }
.blogs-link-item:last-child { border-bottom: none; }
.blog-link-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.25rem 1.6rem; text-decoration: none; color: var(--ink); transition: background-color .18s ease; }
.blog-link-row:hover { background-color: var(--blogs-item-hover); }
.blog-link-title { font-size: 1.12rem; font-weight: 700; color: var(--blogs-link-title); letter-spacing: -.015em; line-height: 1.35; transition: color .18s ease; }
.blog-link-row:hover .blog-link-title { color: var(--blue); }
.blog-link-meta { display: inline-flex; align-items: center; gap: .6rem; color: var(--blogs-meta); font-size: .88rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: color .18s ease; }
.blog-link-row:hover .blog-link-meta { color: var(--blue); }
.blog-link-url { font-size: .85rem; color: var(--blogs-url); font-weight: 600; }
.blog-link-row:hover .blog-link-url { color: var(--blue); }
.blog-link-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blogs-arrow-bg); color: var(--blogs-arrow-color); font-size: 1rem; font-weight: 700; flex-shrink: 0; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.blog-link-row:hover .blog-link-arrow { background: var(--blue); color: #ffffff; transform: translate(2px, -2px); }

/* CLIMA NATIVO OPEN-METEO CON LA PACHA PROMINENTE Y EN COLOR */
.weather-inline { padding: 1rem 0 0 1.5rem; border-left: 1px solid var(--line); }
.weather-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .7rem; flex-wrap: wrap; }
.weather-header .weather-caption { margin: 0; }
.weather-caption { margin: 0 0 .7rem; color: var(--weather-caption); font-size: .76rem; font-weight: 700; line-height: 1.5; }
.weather-clock { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem; border-radius: 999px; background: var(--weather-clock-bg); color: var(--weather-clock-color); border: 1px solid var(--weather-clock-border); box-shadow: 0 1px 3px rgba(9, 33, 64, 0.12); font-size: .76rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
.weather-clock::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; flex-shrink: 0; }
.weather-card-content { background: var(--weather-bg); border: 1px solid var(--weather-border); border-radius: .9rem; padding: 1.3rem; min-height: 140px; display: flex; flex-direction: column; justify-content: center; transition: background-color 0.25s ease, border-color 0.25s ease; }
.weather-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.weather-temp-group { display: flex; flex-direction: column; }
.weather-temp { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--weather-temp); line-height: 1; }
.weather-location-highlight { font-size: 1.18rem; font-weight: 800; color: var(--blue); margin: .35rem 0 .15rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .35rem; }
.weather-location-highlight span { font-weight: 700; font-size: .9rem; color: var(--weather-desc); }
.weather-icon-box svg { width: 48px; height: 48px; display: block; flex-shrink: 0; }
.weather-desc { font-size: .9rem; font-weight: 600; color: var(--weather-desc); margin-top: .15rem; }
.weather-sub { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--weather-sub); margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--weather-divider); }
.weather-loading, .weather-error { color: var(--weather-desc); font-size: .85rem; text-align: center; padding: .8rem 0; font-weight: 600; }
.weather-source { display: inline-block; margin-top: .6rem; color: var(--weather-caption); font-size: .76rem; text-decoration: none; }
.weather-source:hover { color: var(--blue); text-decoration: underline; }

/* SECCIÓN 03 / CONTACTO */
.contact-section { background: var(--contact-bg); color: white; transition: background-color 0.25s ease; }
.contact-section .section-number { border-color: #ffffff40; color: #aec7e7; }
.contact-section .kicker { color: var(--yellow); }
.contact-section h2 { color: #ffffff; }
.contact-section h2 em { color: var(--yellow); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); padding-top: 3.5rem; }
.contact-links { display: grid; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); color: white; font-size: 1.05rem; font-weight: 700; text-align: left; text-decoration: none; transition: color .18s ease, padding-left .18s ease; }
.contact-links a:hover { color: var(--yellow); padding-left: .5rem; }

/* PIE DE PÁGINA SEMÁNTICO Y ACCESIBLE */
.site-footer {
  background: var(--footer-bg);
  color: #d8e5f5;
  border-top: 1px solid var(--footer-border);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 2vw, 2.2rem) calc(5.5rem + env(safe-area-inset-bottom, 0px));
  content-visibility: auto;
  contain-intrinsic-size: auto 450px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.footer-inner {
  max-width: 1560px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: clamp(160px, 20vw, 210px);
  height: auto;
  aspect-ratio: 304 / 145;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.footer-mission {
  font-size: 0.95rem;
  color: #f0f6ff;
  line-height: 1.55;
  margin: 0 0 0.6rem;
}
.footer-mission strong {
  color: var(--yellow);
  font-weight: 700;
}
.footer-subtext {
  font-size: 0.85rem;
  color: var(--footer-subtext);
  line-height: 1.5;
  margin: 0;
}
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fa3cb;
  margin: 0 0 1.2rem;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #eaf1fa;
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-nav-list a:hover {
  color: var(--yellow);
  transform: translateX(4px);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom-bar {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.84rem;
  color: #8fa7c4;
}
.footer-copy {
  margin: 0;
  line-height: 1.5;
}
.footer-listen-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.85rem;
  background: rgba(13, 98, 217, 0.22);
  border: 1px solid rgba(54, 118, 206, 0.45);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-listen-anchor:hover {
  background: rgba(13, 98, 217, 0.45);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}
.footer-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 13, 15, 0.22);
  border: 1px solid rgba(255, 13, 15, 0.45);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffb4b4;
}
.footer-live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 13, 15, 0.3);
  animation: liveDotPulse 1.8s infinite;
}
.footer-arrow {
  color: #8fa7c4;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}
.footer-listen-anchor:hover .footer-arrow {
  color: var(--yellow);
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 860px) {
  .header-inner { min-height: auto; flex-direction: column; align-items: center; gap: .85rem; padding: 0 1rem; position: relative; }
  .brand img { width: clamp(180px, 48vw, 230px); }
  .theme-toggle-btn { top: 0.8rem; right: 1rem; width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .site-header nav { width: auto; justify-content: center; gap: 1.4rem; }
  .site-header nav a { font-size: .88rem; }
  
  /* En móvil: reproductor, locupez y chat en ese orden */
  .hero-listen { padding: 1.8rem 1.2rem 2.8rem; }
  .hero-listen-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.8rem;
    padding-top: 1.2rem;
  }
  .hero-intro { order: 1; }
  .player-card { order: 2; width: 100%; }
  .mascot-card { order: 3; }
  .chat-card { order: 4; width: 100%; }
  
  .hero-listen h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); max-width: 100%; }
  
  .mascot-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .mascot-img {
    width: clamp(170px, 45vw, 220px);
  }
  
  /* Sticky player en tablet */
  .sticky-player { padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)); }
  .sticky-player-inner { gap: 0.75rem; }
  .sticky-play-btn { width: 40px; height: 40px; min-width: 40px; }
  .sticky-track-title { font-size: 0.88rem; }
  .river-divider svg { height: 38px; }
  .blogs-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .blogs-section, .contact-section { padding-bottom: 4rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 0; }
  .weather-inline { padding: 0; border: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom-bar { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 580px) {
  /* Sticky player compacto en teléfonos móviles */
  .sticky-player { padding: 0.48rem 0.85rem calc(0.48rem + env(safe-area-inset-bottom, 0px)); }
  .sticky-player-inner { gap: 0.6rem; }
  .sticky-play-btn { width: 40px; height: 40px; min-width: 40px; }
  .sticky-play-btn svg { width: 17px; height: 17px; }
  .sticky-track-title { font-size: 0.84rem; }
  .sticky-player-right { gap: 0.5rem; }
  .sticky-wa-btn .sticky-wa-text { display: none; }
  .sticky-wa-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .sticky-volume-slider { display: none; }
  .sticky-volume-control { padding: 0; background: none; border: none; }
  .sticky-mute-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
  }
  .sticky-top-btn { width: 36px; height: 36px; min-width: 36px; }
}

@media (max-width: 480px) {
  .hero-listen h1 { font-size: 2.3rem; }
  .player-card { padding: 1.2rem; }
  .chat-card { padding: 1.2rem; }
  .live-signal-block { padding: .4rem .85rem; gap: .5rem; }
  .live-signal-heading { font-size: 1.3rem; }
  .chat-card h2 { font-size: 1.4rem; }
  .mascot-card { padding: 1.4rem 1.1rem; }
  .mascot-inner {
    flex-direction: column;
    text-align: center;
    gap: .8rem;
  }
  .mascot-info {
    align-items: center;
  }
  .mascot-img {
    width: 175px;
  }
  
  /* Ajustes para controles y acciones de tema en móviles pequeños */
  .player-controls-bottom { flex-wrap: wrap; }
  .sleep-timer-wrap { width: 100%; }
  .sleep-timer-btn { width: 100%; justify-content: center; }
  .sleep-timer-menu { right: auto; left: 0; width: 100%; }
  .track-actions-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .track-share-wa-btn, .recent-tracks-toggle-btn { justify-content: center; width: 100%; }
  
  /* Sticky player ultra-compacto: enfocar en el estado y maximizar espacio del tema */
  .sticky-badge-row .sticky-station-name { display: none; }
  
  .blog-link-row { padding: 1.05rem 1.15rem; flex-direction: column; align-items: flex-start; gap: .45rem; }
  .blog-link-title { font-size: 1.04rem; }
  .blog-link-meta { width: 100%; justify-content: space-between; }
  .river-divider svg { height: 26px; }
  .footer-listen-anchor { padding: 0.38rem 0.75rem; font-size: 0.8rem; }
  .footer-brand img { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .live-dot, .live-pulse-dot, .track-pulse-dot, .footer-live-dot { box-shadow: none !important; animation: none !important; }
  .equalizer-bars .bar { animation: none !important; }
}
