/* ==========================================================================
   SOLÍS FM DIGITAL — Hub de Demos & Emisoras en Vivo
   demos/css/demos.css
   Estilo e-Virales (Badge con Ícono de Ojo + Fila de Botones con Ícono Web)
   ========================================================================== */

:root {
  --color-bg: #07090E;
  --color-bg-card: rgba(18, 24, 38, 0.75);
  --color-bg-card-hover: rgba(26, 36, 56, 0.9);
  --color-card-inner: rgba(10, 14, 22, 0.85);

  --color-primary: #04b8dc;
  --color-primary-hover: #00d4ff;
  --color-primary-glow: rgba(4, 184, 220, 0.45);
  --color-accent-green: #00E676;

  --color-text: #FFFFFF;
  --color-text-sub: #A0C0D6;
  --color-text-muted: rgba(255, 255, 255, 0.5);

  --color-border: rgba(4, 184, 220, 0.3);
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto Condensed', sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-full: 999px;

  --container: 1240px;
}

/* --- Fuentes Locales --- */
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('../assets/fonts/Roboto-Condensed.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.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;
}

/* --- Fondo Ambiental --- */
.ambient-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient-glow .glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.18;
}
.glow-1 {
  width: 60vmax; height: 60vmax; top: -15vmax; left: -10vmax;
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
}
.glow-2 {
  width: 50vmax; height: 50vmax; bottom: -15vmax; right: -10vmax;
  background: radial-gradient(circle, #024b61, transparent 70%);
}

/* --- Header --- */
.main-header {
  position: fixed; top: 0; left: 0; right: 0; height: 76px;
  background: rgba(7, 9, 14, 0.92);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
}
.header-container {
  max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.22s ease;
}
.logo-brand-link:hover {
  transform: scale(1.02);
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 14px rgba(4, 184, 220, 0.35);
  border: 1px solid rgba(4, 184, 220, 0.3);
}
.logo-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-brand-accent {
  color: var(--color-primary);
  font-weight: 900;
}
.nav-logo { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link {
  color: rgba(255, 255, 255, 0.75); text-decoration: none;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; transition: color 0.25s ease;
}
.nav-link:hover { color: var(--color-primary); }
.nav-btn-cta {
  background: var(--color-primary); color: #07090E; text-decoration: none;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 900;
  padding: 10px 22px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 18px var(--color-primary-glow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-btn-cta:hover { transform: translateY(-2px) scale(1.03); }

/* --- Wrapper Principal --- */
.demos-wrapper {
  position: relative; z-index: 10;
  padding-top: 115px; padding-bottom: 160px;
  max-width: var(--container); margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}

/* --- Hero --- */
.demos-hero { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.badge-on-air {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(4, 184, 220, 0.08); border: 1px solid rgba(4, 184, 220, 0.25);
  color: var(--color-primary); font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-green);
  box-shadow: 0 0 10px var(--color-accent-green);
  animation: pulseLive 1.6s infinite ease-in-out;
}
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.demos-title {
  font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 16px;
}
.demos-title .accent {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--color-primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demos-desc {
  font-size: 1.08rem; color: var(--color-text-sub); max-width: 680px; margin: 0 auto 32px; line-height: 1.6;
}

.hero-stats-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 35px; }
.stat-chip {
  background: rgba(18, 24, 38, 0.6); border: 1px solid var(--color-border-subtle);
  padding: 8px 20px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}
.stat-chip svg { color: var(--color-primary); width: 15px; height: 15px; flex-shrink: 0; }
.stat-chip strong { color: #FFFFFF; font-weight: 800; }

/* Buscador */
.demos-filters-wrap { max-width: 780px; margin: 0 auto 40px; }
.search-box { position: relative; width: 100%; }
.search-box svg {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4); width: 18px; height: 18px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 16px 20px 16px 52px;
  background: rgba(18, 24, 38, 0.75); border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-m); color: #FFFFFF; font-family: var(--font-body);
  font-size: 1.02rem; outline: none; transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}
.search-input:focus {
  border-color: var(--color-primary); box-shadow: 0 0 25px var(--color-primary-glow);
}

/* --- Grid de Tarjetas --- */
.demos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px;
}
@media (min-width: 1100px) {
  .demos-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   TARJETA ESTILO E-VIRALES CON BADGE DE OJO Y BOTONES DE ÍCONO
   ========================================================================== */
.evirales-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.evirales-card:hover {
  transform: translateY(-6px);
  background: var(--color-bg-card-hover);
  border-color: var(--color-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--color-primary-glow);
}

.evirales-card.is-playing {
  border-color: rgba(4, 184, 220, 0.75);
  background: rgba(14, 24, 40, 0.95);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(4, 184, 220, 0.3);
}

/* Portada 1:1 */
.ev-cover-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.ev-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.evirales-card:hover .ev-cover-img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.evirales-card.is-playing .ev-cover-img {
  transform: scale(1.08);
}

.ev-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.ev-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--color-accent-green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

/* BADGE OYENTES ESTILO E-VIRALES (ÍCONO OJO MODERN) */
.ev-badge-listeners {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ev-badge-listeners svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.ev-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.evirales-card:hover .ev-play-overlay,
.evirales-card.is-playing .ev-play-overlay {
  opacity: 1;
}

.ev-big-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #07090E;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px var(--color-primary-glow);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ev-big-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(4, 184, 220, 0.75);
}

.ev-big-play-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Contenido */
.ev-card-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ev-station-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-slogan {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-nowplaying-bar {
  background: var(--color-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-nowplaying-info { flex: 1; min-width: 0; }

.ev-track-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-track-artist {
  font-size: 0.74rem;
  color: var(--color-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-spectrum-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.ev-spectrum-bars i {
  width: 2.5px; height: 3px; background: var(--color-primary); border-radius: 1px;
  opacity: 0.25; transition: opacity 0.3s ease;
}
.evirales-card.is-playing .ev-spectrum-bars i {
  opacity: 0.9; animation: evWave 0.8s ease-in-out infinite alternate;
}
.evirales-card.is-playing .ev-spectrum-bars i:nth-child(1) { animation-delay: 0.1s; }
.evirales-card.is-playing .ev-spectrum-bars i:nth-child(2) { animation-delay: 0.25s; }
.evirales-card.is-playing .ev-spectrum-bars i:nth-child(3) { animation-delay: 0.15s; }
.evirales-card.is-playing .ev-spectrum-bars i:nth-child(4) { animation-delay: 0.3s; }

@keyframes evWave { from { height: 3px; } to { height: 13px; } }

/* ==========================================================================
   SECCIÓN REDES SOCIALES (FILA DE BOTONES DE ÍCONO HOMOGÉNEOS)
   ========================================================================== */
.ev-social-section {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ev-social-title {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--color-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ev-social-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.ev-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Íconos sociales cuadrados uniformes */
.btn-social-icon {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-social-web {
  background: rgba(4, 184, 220, 0.12);
  border: 1px solid rgba(4, 184, 220, 0.3);
  color: var(--color-primary);
}

.btn-social-web:hover {
  background: var(--color-primary);
  color: #07090E;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-social-ig {
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.3);
  color: #e1306c;
}

.btn-social-ig:hover {
  background: #e1306c;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
}

.btn-social-tt {
  background: rgba(255, 0, 80, 0.12);
  border: 1px solid rgba(255, 0, 80, 0.3);
  color: #00f2fe;
}

.btn-social-tt:hover {
  background: #000000;
  color: #00f2fe;
  border-color: #00f2fe;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}

.btn-social-wa {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.btn-social-wa:hover {
  background: #25D366;
  color: #07090E;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-ev-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.btn-ev-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.btn-social-icon svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Sticky Player */
.hplayer-sticky-wrap {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px); max-width: 860px;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hplayer-sticky-wrap.active { transform: translateX(-50%) translateY(0); }
.hplayer {
  display: flex; align-items: center; gap: 16px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(4, 184, 220, 0.35);
  border-radius: var(--radius-l);
  padding: 16px 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(4, 184, 220, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}

.hplayer-art {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid rgba(4, 184, 220, 0.2);
  position: relative; overflow: hidden; background: #000;
}
.hplayer-art-img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.hplayer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.hplayer-station-name {
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hplayer-song-title {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 900; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hplayer-song-artist {
  font-size: 0.78rem; color: var(--color-text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hplayer-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.hplayer-bars i {
  display: block; width: 3px; border-radius: 2px; background: var(--color-primary);
  opacity: 0.25; transition: opacity 0.3s ease; height: 4px;
}
.hplayer.is-playing .hplayer-bars i {
  opacity: 0.85; animation: waveBar 1s ease-in-out infinite alternate;
}
.hplayer.is-playing .hplayer-bars i:nth-child(1) { animation-delay: 0.1s; }
.hplayer.is-playing .hplayer-bars i:nth-child(2) { animation-delay: 0.3s; }
.hplayer.is-playing .hplayer-bars i:nth-child(3) { animation-delay: 0.2s; }
.hplayer.is-playing .hplayer-bars i:nth-child(4) { animation-delay: 0.4s; }
.hplayer.is-playing .hplayer-bars i:nth-child(5) { animation-delay: 0.15s; }

@keyframes waveBar { from { height: 4px; } to { height: 16px; } }

.hplayer-btn {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: none; cursor: pointer;
  background: var(--color-primary); display: flex; align-items: center; justify-content: center;
  color: #07090E; box-shadow: 0 6px 20px var(--color-primary-glow);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hplayer-btn:hover { transform: scale(1.08); }
.hplayer-btn svg { width: 17px; height: 17px; fill: currentColor; }

.hplayer-vol-wrap { display: none; align-items: center; gap: 8px; }
@media (min-width: 640px) { .hplayer-vol-wrap { display: flex; } }
.hplayer-vol-wrap svg { width: 16px; height: 16px; color: var(--color-text-muted); }
.hplayer-vol-slider { width: 75px; accent-color: var(--color-primary); cursor: pointer; }

/* Botón Cerrar (X) del Reproductor Sticky */
.hplayer-btn-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
  margin-left: 2px;
}
.hplayer-btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}
.hplayer-btn-close svg {
  width: 15px;
  height: 15px;
}

/* Banner CTA */
.demos-cta-box {
  margin-top: 70px; background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--color-border); border-radius: var(--radius-l);
  padding: 45px 30px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
}
.demos-cta-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900; text-transform: uppercase; color: #FFFFFF; margin-bottom: 12px;
}
.demos-cta-text {
  color: var(--color-text-sub); font-size: 1.05rem; max-width: 640px; margin: 0 auto 28px; line-height: 1.6;
}
.btn-cta-main {
  background: var(--color-primary); color: #07090E; text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; text-transform: uppercase;
  padding: 16px 36px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 25px var(--color-primary-glow); transition: all 0.25s ease;
}
.btn-cta-main:hover { transform: translateY(-2px) scale(1.03); }
.btn-cta-main svg { width: 18px; height: 18px; fill: currentColor; }

/* Toast */
.toast-msg {
  position: fixed; bottom: 105px; left: 50%; transform: translateX(-50%) translateY(40px);
  background: var(--color-bg-card); border: 1px solid var(--color-primary); color: #FFFFFF;
  padding: 12px 24px; border-radius: var(--radius-full); font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 10000;
  display: flex; align-items: center; gap: 8px;
}
.toast-msg.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-msg svg { width: 16px; height: 16px; color: var(--color-primary); }

/* Skeleton */
.skeleton-card {
  background: var(--color-bg-card); border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-l); height: 320px; position: relative; overflow: hidden;
}
.skeleton-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ==========================================================================
   SECCIONES DE HISTORIAS ESTILO INSTAGRAM
   ========================================================================== */
.demos-stories-wrapper {
  margin: 0 auto 44px;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stories-group { width: 100%; }

.stories-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--color-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stories-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-green);
  box-shadow: 0 0 8px var(--color-accent-green);
  animation: pulseLive 1.6s infinite ease-in-out;
  flex-shrink: 0;
}

.stories-title-icon {
  width: 14px;
  height: 14px;
  color: #FFD700;
  flex-shrink: 0;
}

/* Carrusel con flechas (Radios Destacadas) */
.stories-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.stories-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(4, 184, 220, 0.3);
  background: rgba(18, 24, 38, 0.85);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.stories-arrow:hover {
  background: var(--color-primary);
  color: #07090E;
  box-shadow: 0 0 16px var(--color-primary-glow);
  transform: scale(1.08);
}
.stories-arrow:disabled { opacity: 0.25; pointer-events: none; }
.stories-arrow svg { width: 18px; height: 18px; }

/* Scroll horizontal — muestra exactamente 6 historias sin recortar */
.stories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 2px;
  scrollbar-width: none;       /* ocultar scrollbar nativa */
  -webkit-overflow-scrolling: touch;
  max-width: 704px;            /* 6 items (104px) + 5 gaps (16px) = 704px exactos */
  width: 100%;
}
.stories-scroll::-webkit-scrollbar { display: none; }

/* Ítem de historia */
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  width: 104px;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  transition: transform 0.2s ease;
  position: relative;
}

.story-item:hover { transform: translateY(-5px); }
.story-item:hover .story-avatar { box-shadow: 0 0 28px var(--color-primary-glow); }

/* Anillo degradado (estilo Instagram) */
.story-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 60%, #ec4899 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.3s ease;
  position: relative;
}

/* Cuando está reproduciendo: anillo animado */
.story-item.is-playing .story-avatar {
  background: linear-gradient(135deg, var(--color-accent-green) 0%, var(--color-primary) 100%);
  animation: storyRing 2s linear infinite;
}

@keyframes storyRing {
  0%   { background: linear-gradient(0deg,   var(--color-accent-green) 0%, var(--color-primary) 100%); }
  50%  { background: linear-gradient(180deg, var(--color-accent-green) 0%, var(--color-primary) 100%); }
  100% { background: linear-gradient(360deg, var(--color-accent-green) 0%, var(--color-primary) 100%); }
}

/* Interior del avatar: borde interno oscuro + imagen */
.story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg);
  border: 2px solid var(--color-bg);
  position: relative;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Ícono Play/Pause superpuesto sobre el avatar */
.story-play-icon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.story-play-icon svg { width: 28px; height: 28px; fill: #FFFFFF; }
.story-item:hover .story-play-icon,
.story-item.is-playing .story-play-icon { opacity: 1; }

/* Badge oyentes sobre el avatar (Top 5) */
.story-listeners-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: rgba(7, 9, 14, 0.92);
  border: 1px solid rgba(4, 184, 220, 0.4);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
.story-listeners-badge svg { width: 10px; height: 10px; color: var(--color-primary); }

/* Badge de posición (1, 2, 3, 4, 5) */
.story-rank-badge {
  position: absolute;
  top: -5px;
  left: -3px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  color: #07090E;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
}

/* Nombre debajo del avatar */
.story-name {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.story-item.is-playing .story-name { color: var(--color-primary); }

/* Esqueletos de carga para historias */
.story-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 104px;
}

.story-skeleton-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

.story-skeleton-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}

.story-skeleton-name {
  width: 68px;
  height: 10px;
  border-radius: 4px;
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}

.story-skeleton-name::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   SECCIÓN TOP 5 MÁS ESCUCHADAS — se ajusta al tamaño de los avatares
   ========================================================================== */
.demos-top-section {
  margin: 60px 0 0;
  display: flex;
  justify-content: center;   /* centra el inner horizontalmente */
}

.demos-top-inner {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(4, 184, 220, 0.15);
  border-radius: var(--radius-l);
  /* padding horizontal compacto: solo lo suficiente para el borde + badges */
  padding: 28px 32px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  /* NO overflow:hidden — permite que los badges se vean */
  overflow: visible;
  /* Se ajusta al ancho de su contenido, hasta el 100% del contenedor */
  width: fit-content;
  max-width: 100%;
}

/* Línea de acento superior decorativa */
.demos-top-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: linear-gradient(90deg, transparent, #FFD700 30%, var(--color-primary) 70%, transparent);
}

.demos-top-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.demos-top-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demos-top-icon {
  width: 20px;
  height: 20px;
  color: #FFD700;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
  flex-shrink: 0;
}

.demos-top-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.demos-top-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  white-space: nowrap;
}

/* El scroll del Top: no hace scroll (son 5 fijos), muestra en fila */
.demos-top-scroll {
  justify-content: center;
  gap: 24px;
  /* No necesita overflow-x para 5 items, pero por si acaso en móvil */
  flex-wrap: nowrap;
}

@media (max-width: 680px) {
  .main-header {
    height: 64px;
  }
  .header-container {
    padding: 0 16px;
  }
  .nav-logo-icon {
    width: 32px;
    height: 32px;
  }
  .logo-brand-text {
    font-size: 1.05rem;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-link {
    display: none;
  }
  .nav-btn-cta {
    padding: 8px 14px;
    font-size: 0.76rem;
  }
  
  .demos-wrapper {
    padding-top: 86px;
    padding-bottom: 120px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .demos-hero {
    margin-bottom: 28px;
  }
  .demos-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 12px;
  }
  .demos-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .hero-stats-row {
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
    margin: 0 auto 24px;
  }
  .stat-chip {
    font-size: 0.76rem;
    padding: 8px 14px;
    justify-content: center;
  }

  /* Ocultar chips de latencia y NVMe en móvil — solo queda Emisoras Conectadas */
  .stat-chip:not(:first-child) {
    display: none;
  }

  /* Carrusel de Radios Destacadas en Smartphone Vertical —
     4 avatares exactos: 4×76 + 3×12gap = 340px. Ocultar flechas en mobile */
  .stories-carousel-wrap {
    gap: 0;
  }
  .stories-arrow {
    display: none;
  }
  /* El scroll ocupa todo el ancho disponible y el overflow revela los items */
  .stories-scroll {
    gap: 12px;
    padding: 12px 0;
    /* exactamente 4 avatares visibles: 4×76 + 3×12 = 340px */
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;         /* JS usa scrollLeft — se oculta la barra nativa */
    scrollbar-width: none;
  }
  .stories-scroll::-webkit-scrollbar { display: none; }
  .story-item {
    width: 76px;
    gap: 6px;
    flex-shrink: 0;
  }
  .story-avatar {
    width: 66px;
    height: 66px;
    padding: 2.5px;
  }
  .story-name {
    font-size: 0.64rem;
    max-width: 76px;
  }
  .story-play-icon svg {
    width: 20px;
    height: 20px;
  }
  .story-skeleton {
    width: 76px;
    gap: 6px;
  }
  .story-skeleton-avatar {
    width: 66px;
    height: 66px;
  }
  .story-skeleton-name {
    width: 50px;
  }

  /* Sección Top 5 en Smartphone Vertical */
  .demos-top-section {
    margin: 36px 0 0;
  }
  .demos-top-inner {
    width: 100%;
    max-width: 100%;
    padding: 20px 14px 16px;
    border-radius: var(--radius-m);
  }
  .demos-top-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 12px;
  }
  .demos-top-title {
    font-size: 0.95rem;
  }
  .demos-top-icon {
    width: 17px;
    height: 17px;
  }
  /* Top 5 scroll: 4 avatares exactos visibles */
  .demos-top-scroll {
    justify-content: flex-start;
    overflow-x: auto;         /* JS usa scrollLeft — barra nativa oculta */
    scrollbar-width: none;
    gap: 12px;
    padding: 12px 0;
    /* 4×76 + 3×12 = 340px */
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
  }
  .demos-top-scroll::-webkit-scrollbar { display: none; }
  .demos-top-scroll .story-item {
    width: 76px;
    gap: 6px;
    flex-shrink: 0;
  }
  .demos-top-scroll .story-avatar {
    width: 66px;
    height: 66px;
    padding: 2.5px;
  }
  .story-rank-badge {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
    top: -3px;
    left: -2px;
  }
  .story-listeners-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    bottom: -3px;
    right: -3px;
  }
  .story-listeners-badge svg {
    width: 8px;
    height: 8px;
  }

  /* Tarjetas */
  .demos-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ev-card-body {
    padding: 14px 14px 16px;
  }
  .ev-station-title {
    font-size: 1.05rem;
  }
  .ev-btn-primary {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  /* Banner CTA */
  .demos-cta-box {
    margin-top: 40px;
    padding: 28px 16px;
  }
  .demos-cta-title {
    font-size: 1.35rem;
  }
  .demos-cta-text {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }
  .btn-cta-main {
    padding: 13px 20px;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }

  /* Sticky Player en Móvil */
  .hplayer-sticky-wrap {
    bottom: 12px;
    width: calc(100% - 16px);
  }
  .hplayer {
    padding: 10px 12px;
    gap: 10px;
  }
  .hplayer-art {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .hplayer-station-name {
    font-size: 0.76rem;
  }
  .hplayer-song-title {
    font-size: 0.82rem;
  }
  .hplayer-song-artist {
    font-size: 0.7rem;
  }
  .hplayer-btn {
    width: 40px;
    height: 40px;
  }
  .hplayer-btn svg {
    width: 14px;
    height: 14px;
  }
  .hplayer-btn-close {
    width: 28px;
    height: 28px;
  }
  .hplayer-btn-close svg {
    width: 12px;
    height: 12px;
  }
  .hplayer-vol-wrap {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .logo-brand-text {
    font-size: 0.95rem;
  }
  /* En pantallas muy pequeñas: 4×68 + 3×10 = 302px */
  .story-item, .demos-top-scroll .story-item {
    width: 68px;
  }
  .story-avatar, .demos-top-scroll .story-avatar {
    width: 58px;
    height: 58px;
  }
  .story-name {
    font-size: 0.6rem;
    max-width: 68px;
  }
  .stories-scroll, .demos-top-scroll {
    max-width: 302px;
    gap: 10px;
  }
}

/* Stats de infraestructura ocultos en mobile: se muestran en el footer */
@media (max-width: 680px) {
  .footer-mobile-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .footer-mobile-stats .stat-chip {
    display: inline-flex;
    font-size: 0.72rem;
    padding: 7px 12px;
  }
}
@media (min-width: 681px) {
  .footer-mobile-stats {
    display: none;
  }
}

/* ==========================================================================
   FOOTER CORPORATIVO — SOLÍS FM DIGITAL (Créditos de Marca)
   ========================================================================== */
.site-footer {
  background: #05080f;
  padding: 70px 20px 30px;
  border-top: 1px solid rgba(4, 184, 220, 0.12);
  color: #fff;
  position: relative;
  z-index: 10;
  margin-top: 80px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid 4 columnas */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 36px;
  text-align: left;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-social { justify-content: center; }
}

/* Brand */
.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 14px;
}
.footer-logo {
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(4, 184, 220, 0.3));
}
@media (max-width: 560px) {
  .footer-logo {
    margin: 0 auto;
  }
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 22px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(4, 184, 220, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #04b8dc;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social a:hover {
  background: rgba(4, 184, 220, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(4, 184, 220, 0.2);
  border-color: #04b8dc;
}

/* Columnas nav */
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #04b8dc;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.footer-col ul li a i {
  font-size: 0.8rem;
  color: rgba(4, 184, 220, 0.6);
  width: 14px;
  flex-shrink: 0;
}
.footer-col ul li a:hover {
  color: #fff;
  gap: 12px;
}
.footer-col ul li a:hover i {
  color: #04b8dc;
}

/* Horario */
.footer-horario {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(4,184,220,0.06);
  border-radius: 10px;
  border: 1px solid rgba(4,184,220,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.footer-horario i {
  color: #04b8dc;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Teaser Combo */
.footer-combo-teaser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 12px 24px;
  background: rgba(4, 184, 220, 0.08);
  border: 1px solid rgba(4, 184, 220, 0.3);
  border-radius: 50px;
  color: #04B8DC;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-combo-teaser:hover {
  background: rgba(4, 184, 220, 0.16);
  transform: translateY(-2px);
}

/* Bottom legal */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom span {
  color: #04b8dc;
  font-weight: 700;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover {
  color: #04b8dc;
}
.footer-legal-sep {
  color: rgba(255,255,255,0.15);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9300;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.whatsapp-float i {
  color: #fff;
  font-size: 28px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .whatsapp-float {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 480px) {
  .whatsapp-float {
    left: 16px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float i {
    font-size: 24px;
  }
}


