/* ==========================================================================
   ESTILOS DEL REPRODUCTOR WEB (INSPIRADO EN THE.FLASHRADIO.INFO / LUNA RADIO)
   ========================================================================== */

:root {
  --bg-dark: rgb(29, 32, 40);
  --text-main: #ffffff;
  --text-muted: rgb(146, 161, 194);
  --accent-pink: #fa225b;
  --highlight-purple: #882578;
  --wave-1: #583b71;
  --wave-2: #882578;
  --wave-3: #c850a7;
  --wave-4: #ed8dca;
  --font-display: 'ZCOOL XiaoWei', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.wrappercolumn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wrapperrow {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
}

/* ==========================================================================
   1. HEADER Y CARRUSEL DE NOTICIAS (TICKER)
   ========================================================================== */
#header {
  height: 36px;
  min-height: 36px;
  width: 100%;
  background-color: var(--ticker-bg, var(--bg-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 30;
  position: relative;
  transition: height 0.3s ease, background-color 0.3s ease;
}

#header.is-ticker-hidden {
  height: 0;
  min-height: 0;
  border-bottom: none;
  background-color: transparent !important;
  pointer-events: none;
}

#header.is-ticker-hidden #headerinside {
  display: none !important;
}

#header.is-ticker-hidden #settings-button {
  pointer-events: auto;
  position: absolute;
  top: 12px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(29, 32, 40, 0.75);
  border: 1px solid var(--cover-border-idle, rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

#settings-button {
  appearance: none;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 40px;
  height: 36px;
  font-size: 18px;
  line-height: 36px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, background-color 0.25s ease;
}

#settings-button:hover {
  color: var(--accent-pink);
  background-color: rgba(255, 255, 255, 0.05);
}

#headerinside {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  height: 36px;
}

.ticker-item a {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
  color: var(--ticker-color, #ffffff);
  text-decoration: none;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

.ticker-item a:hover {
  color: var(--vis-hover-news, var(--vis-accent, #FFBD76));
}

.ticker-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 36px;
}

.ticker-separator img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.ticker-source-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ==========================================================================
   2. ESCENARIO CENTRAL Y FONDO (VIDEO O IMAGEN ESTÁTICA)
   ========================================================================== */
#content {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bg-dark);
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(29, 32, 40, 0.45), rgba(29, 32, 40, 0.95));
  pointer-events: none;
}

/* ==========================================================================
   3. CANVAS DEL VISUALIZADOR DE AUDIO
   ========================================================================== */
#visualizer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   4. INTERFAZ DEL REPRODUCTOR (ESTILO LUNA RADIO BIG)
   ========================================================================== */
.player-stage {
  position: relative;
  z-index: 10;
  width: min(92vw, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  gap: 14px;
}

.station-marquee-wrap {
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 4px 8px;
}

.station-title {
  margin: 0;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Desplazamiento si el nombre de la radio es muy largo */
.station-marquee-wrap.has-overflow {
  justify-content: flex-start;
}

.station-marquee-wrap.has-overflow .station-title {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: marqueeScroll 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  padding-right: 48px;
  will-change: transform;
}

.station-marquee-wrap.has-overflow:hover .station-title {
  animation-play-state: paused;
}

/* Badge de estado + Contador de oyentes */
.stream-badge-row {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stream-badge,
.listeners-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(29, 32, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
}

.listeners-badge svg {
  width: 14px;
  height: 14px;
  color: var(--vis-accent, var(--wave-4, #ed8dca));
  transition: color 0.3s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8e9bb0; /* Gris cuando esté en stop o no esté sonando */
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Indicador cambia a rojo cuando esté sonando */
.stream-badge[data-state="playing"] .badge-dot {
  background: #ff2a6d; /* Rojo vivo */
  box-shadow: 0 0 10px #ff2a6d;
  animation: pulseDot 1.6s infinite ease-in-out;
}

.stream-badge[data-state="loading"] .badge-dot {
  background: #f5a623;
  box-shadow: 0 0 10px #f5a623;
}

.stream-badge[data-state="error"] .badge-dot {
  background: #ff4757;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Carátula / Disco Central */
.cover-wrapper {
  position: relative;
  z-index: 2;
  width: clamp(200px, 30vh, 270px);
  height: clamp(200px, 30vh, 270px);
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 80, 167, 0.55) 0%, rgba(88, 59, 113, 0) 72%);
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.cover-disc {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at center, #261c33 0%, #14161d 100%);
  border: 4px solid var(--cover-border-idle, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.65),
    0 0 0 8px var(--cover-ring-glow, rgba(136, 37, 120, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-radius 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.cover-wrapper[data-style="square"] .cover-disc,
.cover-wrapper[data-style="square"] .cover-glow {
  border-radius: 22px;
}

.cover-wrapper[data-style="square"] .vinyl-center-hole {
  display: none;
}

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

/* Rotación tipo vinilo cuando está reproduciendo y el modo es "animated" */
@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cover-wrapper[data-style="animated"] .cover-disc {
  animation: spinRecord 22s linear infinite;
  animation-play-state: paused;
}

/* Borde dinámico según colores del visualizador al estar sonando */
.cover-wrapper.is-playing .cover-disc,
.cover-wrapper[data-style="animated"].is-playing .cover-disc {
  animation-play-state: running;
  border-color: var(--cover-border-active, var(--vis-accent, #ed8dca));
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.65),
    0 0 0 8px var(--cover-ring-glow, rgba(136, 37, 120, 0.35)),
    0 0 20px var(--cover-border-idle, rgba(237, 141, 202, 0.3));
}

.vinyl-center-hole {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 32, 40, 0.85) 0%, rgba(80, 49, 83, 0.45) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 2;
}

/* Botón Central Play / Pause */
.play-pause-btn {
  position: absolute;
  z-index: 4;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--vis-accent, rgba(255, 255, 255, 0.85));
  background: rgba(18, 20, 28, 0.42);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px var(--cover-ring-glow, rgba(237, 141, 202, 0.35));
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.25s ease;
}

.play-pause-btn:hover {
  transform: scale(1.08);
  background: rgba(35, 38, 52, 0.65);
  border-color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 24px var(--cover-border-active, rgba(237, 141, 202, 0.75));
}

.play-pause-btn svg {
  width: 34px;
  height: 34px;
}

.play-pause-btn .icon-pause,
.play-pause-btn .icon-loader {
  display: none;
}

.cover-wrapper.is-playing .play-pause-btn {
  border-color: var(--vis-accent, #ed8dca);
  background: rgba(15, 17, 24, 0.32);
  opacity: 0.82;
}

.cover-wrapper.is-playing .play-pause-btn:hover {
  opacity: 1;
  background: rgba(28, 30, 42, 0.65);
}

.cover-wrapper.is-playing .play-pause-btn .icon-play {
  display: none;
}

.cover-wrapper.is-playing .play-pause-btn .icon-pause {
  display: block;
}

.cover-wrapper.is-loading .play-pause-btn .icon-play,
.cover-wrapper.is-loading .play-pause-btn .icon-pause {
  display: none;
}

.cover-wrapper.is-loading .play-pause-btn .icon-loader {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--vis-accent, #ed8dca);
  border-radius: 50%;
  animation: spinRecord 0.85s linear infinite;
}

/* Título de canción / metadatos */
.track-info {
  width: 100%;
  max-width: 640px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.track-marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 4px 12px;
  display: flex;
  justify-content: center;
  position: relative;
}

.track-name {
  margin: 0;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Animación cuando el texto es demasiado largo para el contenedor */
.track-marquee-wrap.has-overflow {
  justify-content: flex-start;
}

.track-marquee-wrap.has-overflow .track-name {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: marqueeScroll 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  padding-right: 40px;
  will-change: transform;
}

.track-marquee-wrap.has-overflow:hover .track-name {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%, 20% {
    transform: translateX(0);
  }
  80%, 100% {
    transform: translateX(calc(-100% + var(--marquee-visible-width, 300px)));
  }
}

/* Watchdog: Alertas visuales dinámicas de estado y reconexión */
.caja-rodillo-inteligente {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  vertical-align: middle;
}

.texto-rodante-inteligente {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Fila de Controles: Volumen + Botón de Contacto */
.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

/* Control de Volumen */
.volume-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(29, 32, 40, 0.62);
  border: 1px solid var(--cover-border-idle, rgba(255, 255, 255, 0.14));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

/* Botón de Contactos al lado del control de volumen */
.contact-trigger-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(29, 32, 40, 0.62);
  border: 1px solid var(--cover-border-idle, rgba(255, 255, 255, 0.14));
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.contact-trigger-btn[hidden] {
  display: none !important;
}

.contact-trigger-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(45, 48, 62, 0.85);
  border-color: var(--vis-accent, #FFBD76);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 14px var(--cover-ring-glow, rgba(255, 115, 0, 0.3));
}

.contact-trigger-btn svg {
  width: 17px;
  height: 17px;
  color: var(--vis-accent, #FFBD76);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.contact-trigger-label {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.contact-trigger-btn:hover svg {
  color: #ffffff;
}

.vol-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.15s ease, opacity 0.2s ease;
}

.vol-btn:hover {
  color: var(--vis-accent, var(--wave-4, #ed8dca));
  transform: scale(1.14);
}

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

.vol-btn[data-active="true"] {
  color: var(--vis-accent, var(--wave-4, #ed8dca));
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--vis-primary, #c850a7) 0%,
    var(--vis-accent, #ed8dca) var(--vol-percent, 90%),
    rgba(255, 255, 255, 0.22) var(--vol-percent, 90%),
    rgba(255, 255, 255, 0.22) 100%
  );
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vis-accent, #ed8dca);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--vis-glow, rgba(237, 141, 202, 0.8));
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vis-accent, #ed8dca);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--vis-glow, rgba(237, 141, 202, 0.8));
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   4.1. REDES SOCIALES Y DATOS DE CONTACTO
   ========================================================================== */
.social-links-bar {
  display: none !important;
}

.social-links-bar[hidden],
.contact-info-section[hidden] {
  display: none !important;
}

.social-btn {
  appearance: none;
  background: rgba(29, 32, 40, 0.65);
  border: 1px solid var(--cover-border-idle, rgba(255, 255, 255, 0.15));
  color: rgba(255, 255, 255, 0.85);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.12);
  color: #ffffff;
  background: var(--vis-primary, #c850a7);
  border-color: var(--vis-accent, #ed8dca);
  box-shadow: 0 6px 18px var(--cover-ring-glow, rgba(237, 141, 202, 0.5));
}

.social-btn:focus-visible {
  outline: 2px solid var(--vis-accent, #ed8dca);
  outline-offset: 2px;
}

/* Botón especial de Contacto en la barra de redes sociales */
.social-btn.social-contact {
  background: rgba(36, 40, 52, 0.75);
  border-color: var(--cover-border-idle, rgba(255, 255, 255, 0.22));
}

.social-btn.social-contact svg {
  color: var(--vis-accent, #ed8dca);
}

.social-btn.social-contact:hover {
  background: var(--vis-primary, #c850a7);
  border-color: var(--vis-accent, #ed8dca);
}

.social-btn.social-contact:hover svg {
  color: #ffffff;
}

/* ==========================================================================
   4.2. MODAL DE CONTACTO Y UBICACIÓN (<dialog id="contact-dialog">)
   ========================================================================== */
dialog#contact-dialog {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(24, 27, 36, 0.97);
  color: #ffffff;
  width: min(92vw, 560px);
  max-height: 86vh;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

dialog#contact-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
}

.contact-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.contact-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

/* Redes Sociales dentro del Modal de Contacto */
.contact-social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

.contact-social-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  text-align: center;
  width: 100%;
}

.contact-social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.modal-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.18s ease;
}

.modal-social-btn:hover {
  transform: translateY(-2px) scale(1.08);
  color: #ffffff;
}

.modal-social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

/* Colores de marca oficiales al pasar el cursor (Hover) */
.modal-social-btn.modal-social-instagram:hover,
.social-btn.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: #e1306c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(225, 48, 108, 0.45) !important;
}

.modal-social-btn.modal-social-facebook:hover,
.social-btn.social-facebook:hover {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.45) !important;
}

.modal-social-btn.modal-social-x:hover,
.social-btn.social-x:hover {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25) !important;
}

.modal-social-btn.modal-social-tiktok:hover,
.social-btn.social-tiktok:hover {
  background: #010101 !important;
  border-color: #fe2c55 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(254, 44, 85, 0.45), 0 0 10px rgba(37, 244, 238, 0.35) !important;
}

.modal-social-btn.modal-social-youtube:hover,
.social-btn.social-youtube:hover {
  background: #FF0000 !important;
  border-color: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.45) !important;
}

.modal-social-btn.modal-social-whatsapp:hover,
.social-btn.social-whatsapp:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45) !important;
}

.modal-social-btn.modal-social-telegram:hover,
.social-btn.social-telegram:hover {
  background: #229ED9 !important;
  border-color: #229ED9 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(34, 158, 217, 0.45) !important;
}

.modal-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.contact-group {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-group-header svg {
  width: 15px;
  height: 15px;
  color: var(--vis-accent, #ed8dca);
  flex-shrink: 0;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-family: var(--font-ui);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  word-break: break-word;
}

.contact-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--vis-accent, #ed8dca);
  transform: translateY(-1px);
}

.contact-action-btn:focus-visible {
  outline: 2px solid var(--vis-accent, #ed8dca);
  outline-offset: 2px;
}

.contact-action-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.contact-action-btn-left svg {
  width: 15px;
  height: 15px;
  color: var(--vis-accent, #ed8dca);
  flex-shrink: 0;
}

.contact-action-btn-text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-action-btn-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-action-btn:hover .contact-action-btn-badge {
  background: var(--vis-accent, #ed8dca);
  color: #181b24;
  font-weight: 600;
  border-color: transparent;
}

/* Tarjeta de Dirección física */
.contact-address-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-address-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin: 0;
}

.contact-address-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.15s ease;
}

.contact-address-link:hover {
  color: var(--vis-accent, #ed8dca);
  transform: translateX(2px);
}

.contact-address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-address-icon svg {
  width: 17px;
  height: 17px;
  color: var(--vis-accent, #ed8dca);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
#footer {
  min-height: 38px;
  width: 100%;
  background-color: var(--bg-dark);
  color: rgb(135, 149, 178);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.footer-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.4;
}

.footer-sep {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.5;
  user-select: none;
}

.footer-part {
  display: inline-block;
}

#footer a {
  color: rgb(146, 161, 194);
  text-decoration: none;
}

/* ==========================================================================
   6. MODALES NATIVOS (<dialog>) CON ENTRADA Y SALIDA ELEGANTE
   ========================================================================== */
dialog#settings-dialog,
dialog#contact-dialog {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(24, 27, 36, 0.96);
  color: #ffffff;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;

  /* Animación suave y elegante de entrada/salida */
  opacity: 0;
  transform: scale(0.93) translateY(14px);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

dialog#settings-dialog {
  width: min(94vw, 680px);
  max-height: 88vh;
}

dialog#contact-dialog {
  width: min(92vw, 560px);
  max-height: 86vh;
}

/* Estado abierto */
dialog#settings-dialog[open]:not([data-closing]),
dialog#contact-dialog[open]:not([data-closing]) {
  opacity: 1;
  transform: scale(1) translateY(0);

  @starting-style {
    opacity: 0;
    transform: scale(0.93) translateY(14px);
  }
}

/* Animación del fondo desenfocado (backdrop) */
dialog#settings-dialog::backdrop,
dialog#contact-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

dialog#settings-dialog[open]:not([data-closing])::backdrop,
dialog#contact-dialog[open]:not([data-closing])::backdrop {
  background-color: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog#settings-dialog,
  dialog#contact-dialog {
    transform: none !important;
    transition-duration: 0.1s;
  }
  @starting-style {
    dialog#settings-dialog[open]:not([data-closing]),
    dialog#contact-dialog[open]:not([data-closing]) {
      transform: none !important;
    }
  }
}

.dialog-inner {
  padding: 22px 24px;
  max-height: 88vh;
  overflow-y: auto;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.dialog-close-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.dialog-close-btn:hover {
  background: var(--accent-pink);
}

.dialog-subtitle {
  margin: 6px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   PESTAÑAS DE CONFIGURACIÓN (TABS)
   ========================================================================== */
.settings-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(14, 16, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  margin: 0 0 16px;
}

.settings-tabs-nav::-webkit-scrollbar {
  display: none;
}

.settings-tab-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  flex: 1 1 calc(33.333% - 12px);
  min-width: 140px;
  transition: all 0.18s ease;
}

.settings-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.settings-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(250, 34, 91, 0.9), rgba(136, 37, 120, 0.9));
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(250, 34, 91, 0.35);
}

.settings-tab-btn .tab-icon {
  font-size: 14px;
  line-height: 1;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.is-active {
  display: block;
  animation: tabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.settings-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.settings-group legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ed8dca;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 10px 0 5px;
}

.field-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 15, 21, 0.85);
  color: #ffffff;
  font-size: 13px;
  font-family: var(--font-ui);
}

.field-input:focus {
  outline: 2px solid var(--wave-3);
  border-color: transparent;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.bg-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  cursor: pointer;
}

.radio-card input {
  accent-color: var(--accent-pink);
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.file-upload-row {
  margin-top: 10px;
}

.file-upload-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(200, 80, 167, 0.22);
  border: 1px dashed #ed8dca;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.file-upload-btn:hover {
  background: rgba(200, 80, 167, 0.38);
}

.visualizer-colors-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.color-pickers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.color-picker-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.color-layer-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.color-picker-dual {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(13, 15, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.color-picker-dual input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.color-picker-dual input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-dual input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.color-hex-input {
  width: 100%;
  min-width: 65px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  outline: none;
}

.suggestion-tip {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 189, 118, 0.08);
  border: 1px solid rgba(255, 189, 118, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  line-height: 1.45;
}

.ticker-error-pill {
  font-size: 11px;
  font-weight: 600;
  color: #ffa94d;
  background: rgba(255, 169, 77, 0.15);
  border: 1px solid rgba(255, 169, 77, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.color-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.preset-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
}

.color-preset-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.color-preset-btn:hover {
  background: rgba(237, 141, 202, 0.22);
  border-color: var(--wave-4);
}

.sources-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.source-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
}

.source-item input[type="checkbox"] {
  accent-color: var(--accent-pink);
  width: 16px;
  height: 16px;
}

.source-item-url {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-remove-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: #ff6b81;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
}

.add-source-box {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

/* Repetidor dinámico para datos de contacto con botón configurable */
.contact-repeater-group {
  margin-bottom: 8px;
}

.contact-repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.contact-repeater-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-entry-row {
  display: grid;
  grid-template-columns: 1fr 140px 36px;
  gap: 8px;
  align-items: center;
}

.contact-entry-val {
  min-width: 0;
}

.contact-entry-lbl {
  min-width: 0;
}

.contact-entry-remove-btn {
  appearance: none;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
  width: 36px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.contact-entry-remove-btn:hover {
  background: rgba(255, 80, 80, 0.35);
  color: #ffffff;
  transform: scale(1.05);
}

.schedule-entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 36px;
  gap: 8px;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .schedule-entry-row {
    grid-template-columns: 1fr 1fr 1fr 34px;
    gap: 6px;
    padding: 6px 8px;
  }
}

.add-contact-item-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--vis-accent, #ed8dca);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-ui);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.add-contact-item-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--vis-accent, #ed8dca);
  color: #ffffff;
  transform: translateY(-1px);
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.dialog-actions-right {
  display: flex;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  appearance: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #fa225b, #882578);
  border: none;
  color: #ffffff;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  opacity: 0.92;
}

.export-zip-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.export-zip-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px);
}

.export-zip-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .ticker-item a {
    font-size: 18px;
  }
  .field-row-2,
  .field-row-3,
  .bg-type-selector {
    grid-template-columns: 1fr;
  }
  .color-pickers-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .dialog-actions-right {
    justify-content: flex-end;
  }

  .contact-entry-row {
    grid-template-columns: 1fr 110px 34px;
    gap: 6px;
  }

  .settings-tab-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
    padding: 8px 10px;
    font-size: 11.5px;
  }

  /* Mantener control de volumen y botón de contacto en una sola fila en móviles */
  .player-controls-row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  .volume-controls {
    padding: 6px 12px !important;
    gap: 8px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .volume-slider {
    width: clamp(70px, 24vw, 110px) !important;
    flex-shrink: 1 !important;
  }

  .vol-btn {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
  }

  .vol-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Ocultar el texto 'Contactos' en móviles para que solo se vea el icono circular */
  .contact-trigger-label {
    display: none !important;
  }

  .contact-trigger-btn {
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .contact-trigger-btn svg {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }

  /* Pie de página en dos líneas en pantallas móviles */
  #footer {
    padding: 8px 12px;
    min-height: 48px;
  }

  .footer-content {
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    line-height: 1.35;
    text-align: center;
  }

  .footer-sep {
    display: none;
  }

  .social-btn {
    width: 35px;
    height: 35px;
  }

  .social-btn svg {
    width: 16px;
    height: 16px;
  }

  .contact-action-btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
}
