/* Reset y base */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  background:#000000;
  /*background: url('../images/bg.png') no-repeat center center fixed;
  background-size: cover;*/
}

/* Contenedor principal */
.container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 30px 0;
}

/* Logo */
.logo {
  max-width: 400px;
  width: auto;
  height: 0 auto;
}

/* Botón Play/Pause */
#player {
  margin-top: 30px;
  background-color: #e80202;
  border: 0px solid #ffffff;
  color: #ffffff;
  font-size: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.5s, color 0.5s, border-color 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}
@media (hover: hover) {
  #player:hover {
    opacity: 0.5;
    color: #c46d6d;
    border-color: #ffffff;
  }
}
#player:focus {
  outline: none;
}

/* Toggle de calidad deslizante */
.quality-toggle {
  position: relative;
  width: 50px;
  height: 28px;
  margin-left: 10px;
}
.quality-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.quality-toggle label {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.quality-toggle label:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: transform 0.2s;
  border-radius: 50%;
}
.quality-toggle input:checked + label {
  background-color: #ec0303;
}
.quality-toggle input:checked + label:before {
  transform: translateX(22px);
}

/* Control de volumen */
.volume-control-container {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}
#volumeControl {
  appearance: none;
  -webkit-appearance: none;
  width: 125%;
  height: 8px;
  background: linear-gradient(to right, #0895d7 80%, #ccc 80%);
  outline: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  margin: 0 10px;
  border-radius: 10px;
}
#volumeControl:hover {
  opacity: 1;
}
#volumeControl::-webkit-slider-thumb,
#volumeControl::-moz-range-thumb,
#volumeControl::-ms-thumb {
  width: 16px;
  height: 16px;
  background: #08c4d7;
  cursor: pointer;
  border-radius: 50%;
}
.volume-button {
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 26px;
  cursor: pointer;
  padding: 0 10px;
}

/* Enlace de descarga centrado */
.descargas {
  margin-top: 20px;
  text-align: center;
}
.descargas a {
  display: inline-block;
  transition: opacity 0.3s;
}
.descargas a:hover {
  opacity: 0.7;
}

/* Redes sociales */
.redes ul {
  list-style: none;
  display: flex;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0;
}
.redes ul li a {
  text-decoration: none;
  transition: 0.5s;
}
.redes ul li a i {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}
/* Colores originales para iconos */
.phone-icon   { color: #f5f5f5; }
.facebook-icon{ color: #f5f5f5; }
.email-icon   { color: #f5f5f5; }
.telegram-icon {color: #f5f5f5;}
/* Colores de marca para los nuevos iconos */
.whatsapp-icon   { color: #f5f5f5; } /* verde WhatsApp */
.instagram-icon  { 
  /* degradado o color sólido de IG: */
  background: radial-gradient(circle at 30% 107%, #f5f5f5 0%, #f5f5f5 45%, #f5f5f5 60%, #f5f5f5 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Footer */
#footer {
  background-color: transparent;
  color: #e7e7e7;
  text-align: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  flex-shrink: 0;
}
#footer a {
  color: #ec0303;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
#footer a:hover {
  opacity: 0.5;
}
@media (max-width: 600px) {
  #footer {
    font-size: 14px;
    padding: 8px 0;
  }
}

/* Banner de instalación PWA */
#install-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: #d50815 !important;
  color: #f3f3f3;
  padding: 16px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}
#install-banner p {
  margin: 0;
  font-size: 14px;
}
#install-button,
#dismiss-button {
  background-color: #ffffff;
  color: #6a10fd;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  margin: 10px 5px 0;
  transition: background-color 0.3s, color 0.3s;
}
#install-button:hover,
#dismiss-button:hover {
  background-color: #faf9fb;
  color: #f3f3f3;
}

/* Popup de actualización */
#updatePopup {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #007887;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1001;
}
#reloadButton {
  margin-left: 10px;
  background: #A0CED4;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.3s;
}
#reloadButton:hover {
  opacity: 0.8;
}
/* Contenedor del player + calidad */
.player-quality-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Etiqueta + toggle juntos */
.quality-wrapper {
  margin-top: 10px;    /* separa del botón play */
  display: flex;
  align-items: center;
  gap: 8px;            /* espacio entre texto y toggle */
}

/* Texto descriptivo */
.quality-label {
  font-size: 14px;
  color: #ffffff;      /* o el color que prefieras */
  user-select: none;
}
/* Botón de descarga/install PWA */
#downloadBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
}
#downloadBtn:hover {
  opacity: 0.7;
}

/* Icono grande y con color base morado */
#downloadIcon {
  font-size: 2rem;
  color: #f60004;
}
/* Estilo para texto junto al icono de descarga */
#downloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;          /* espacio entre icono y texto */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
}
#downloadBtn:hover {
  opacity: 0.7;
}

.download-text {
  font-size: 1rem;
  color: #f8eaea;    /* mismo color del icono */
  user-select: none;
}
/* Dropdown de calidad */
.quality-dropdown {
  position: relative;
  display: inline-block;
}
.quality-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #39414f;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  padding-right: 32px;      /* espacio para el ícono */
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.quality-dropdown .dropdown-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #ffffff;
  font-size: 16px;
}
#custom-titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(titlebar-area-height, 32px);
  display: flex;
  align-items: center;
  padding: 0 12px;
  background-color: #131313;
  color: white;
  z-index: 9999;
  -webkit-app-region: drag;
}

.title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.title-text {
  font-size: 14px;
  font-weight: 500;
}

main {
  padding-top: env(titlebar-area-height, 32px);
}
.ios-prompt {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #131313;
  color: white;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ios-prompt.hidden {
  display: none;
}

.ios-prompt .share-icon {
  font-size: 18px;
}

