/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.contenedor {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  display: flex;
  justify-items: auto;
  align-items: center;
  padding: 1rem;
}
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(
    45deg,
    #252525,
    #414242ef,
    #1d1c1c,
    #414242ef,
    #1d1c1c
  );
  background-size: 300% 300%;
  animation: color 12s ease-in-out infinite;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@keyframes color {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
/* Estilo del encabezado */
header {
  padding: 10px;
}
nav {
  display: flex; /* Usa flexbox para alinear los elementos */
  justify-content: space-between; /* Coloca los elementos en los extremos */
  align-items: center; /* Centra verticalmente los elementos */
}
.imágenes {
  margin: 60px 0px;
  margin-bottom: 0.5px;
  justify-content: space-between;
  flex-direction: row;
}
.qr {
  width: 15%;
  height: auto;
  margin: 1rem 0;
  margin-top: 0px;
  margin-bottom: 2.6%;
  margin-left: 17%;
}

/* From Uiverse.io by aryamitra06 */ 
.loader {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 1rem;
margin: 1rem 0;
}

.bar {
display: inline-block;
width: 3px;
height: 45px;
background-color: rgba(255, 255, 255, .5);
border-radius: 10px;
animation: scale-up4 1s linear infinite;
}
.bar1 {
display: inline-block;
width: 3px;
height: 60px;
background-color: rgba(255, 255, 255, .5);
border-radius: 10px;
animation: scale-up4 1s linear infinite;
}
.bar2 {
display: inline-block;
width: 3px;
height: 30px;
background-color: rgba(255, 255, 255, .5);
border-radius: 10px;
animation: scale-up4 1s linear infinite;
}

.bar:nth-child(1) {
height: 20px;
margin: 0 5px;
animation-delay: .15s;
}
.bar:nth-child(2) {
height: 80px;
margin: 0 5px;
animation-delay: .25s;
}
.bar:nth-child(2) {
height: 70px;
margin: 0 5px;
animation-delay: .10s;
}

.bar:nth-child(1) {
animation-delay: .5s;
}

@keyframes scale-up4 {
20% {
  background-color: #ffff;
  transform: scaleY(2.5);
}

40% {
  transform: scaleY(2);
}

70% {
  transform: scaleY(1.5);
}
}
/* Estilo del botón */
nav button {
  padding: 10px 20px;
  margin-right: 10px;
  background: #05292e21;
  color: white;
  border-width: 5px;
  border-radius: 20px;
  border-color: #e2ad00;
  cursor: pointer;
  font-size: 26px;
  display: flex;
  align-items: center; /* Centra verticalmente la imagen y el texto */
  transition: background 0.3s ease;
  align-content: left;
}

nav button:hover {
  background: #042327;
}

/* Estilo de la imagen dentro del botón */
nav button .logo-img {
  height: 30px; /* Ajusta el tamaño del logo dentro del botón */
  margin-right: 10px; /* Espacio entre la imagen y el texto */
}
.redes {
  position: absolute;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.logors {
  height: 70px; /* Ajusta el tamaño del logo dentro del botón */
  margin-right: 10px; /* Espacio entre la imagen y el texto */
  z-index: 10;
  justify-content: space-between;
  padding: 10px;
}
a {
  height: 10px; /* Ajusta el tamaño del logo dentro del botón */
  margin-right: 10px;
}
/* Sección del reproductor */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}
.main-logo {
  width: 330px;
  height: auto;
  margin-left: 41%;
  margin-top: 60px;
}
.texto {
  margin-left: -160%;
}

.player audio {
  width: 100%;
  max-width: 400px;
  border: 2px solid #00bcd4;
  border-radius: 10px;
  outline: none;
}

/*logo para pausa*/

.btnplay {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button {
  background-color: #1d1c1c00;
  border-color: #1d1c1c00;
  cursor: pointer;
}
#icon {
 
  height: 100%;
}

/* Pie de página */
footer {
  background: rgba(38, 183, 202, 0); /* Fondo transparente */
  text-align: center;
  padding: 10px;
  font-size: 1em;
  border-top: 5px solid #00bcd4; /* Agrega un borde superior */
  box-shadow: none; /* Quita cualquier sombra */
  border-left: none; /* Asegúrate de que otros bordes no se vean */
  border-right: none;
  border-bottom: none;
}
header {
  background: rgba(38, 183, 202, 0); /* Fondo transparente */
  border-bottom: 3px solid #e4a909; /* Agrega un borde inferior */
  box-shadow: none; /* Quita cualquier sombra */
  border-left: none; /* Asegúrate de que otros bordes no se vean */
  border-right: none;
  border-top: none;
  padding: 0px;
}

.bars-container {
  width: 100%;
  max-width: 1000px;
  margin: 1rem auto;
  display: flex;
  justify-items: auto;
  align-items: center;
  padding: 0.5rem;
  margin-top: 0px;
  margin-left: 15.5%;
}
/*--------CLIMA--------*/
.clima {
  margin: 7px 7px;
  background-color: rgba(165, 140, 0, 0);
  border: 2px solid #e2ad00;
  padding: 7px;
  text-align: center;
  flex-direction: row;
  border-radius: 13px;
  float: left;
  display: flex; /* Activa flexbox */
  flex-direction: row;
}
.ciudad {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.fecha {
  font-size: 1rem;
  margin-bottom: 1px;
}
.bloque-temp {
  padding: 5px 15px;
}
.bloque-clima {
  padding: 5px 15px;
}
.temp-img {
  width: 50px;
  margin-right: 10px;
}
.temperatura {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1px;
  padding: 5px 15px;
}
.temp {
  font-size: 1.5rem;
  font-weight: bold;
}
.wheater {
  font-size: 1.5rem;
  margin-bottom: 1.5px;
}
/*REPRODUCTOR DE MUSICA*/
.reproductor {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  margin-left: 0%;
}
/* From Uiverse.io by aryamitra06 */
.loader {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.bar {
  display: inline-block;
  width: 3px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  animation: scale-up4 1s linear infinite;
}
.bar1 {
  display: inline-block;
  width: 3px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  animation: scale-up4 1s linear infinite;
}
.bar2 {
  display: inline-block;
  width: 3px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  animation: scale-up4 1s linear infinite;
}

.bar:nth-child(1) {
  height: 20px;
  margin: 0 5px;
  animation-delay: 0.15s;
}
.bar:nth-child(2) {
  height: 80px;
  margin: 0 5px;
  animation-delay: 0.25s;
}
.bar:nth-child(2) {
  height: 70px;
  margin: 0 5px;
  animation-delay: 0.1s;
}

.bar:nth-child(1) {
  animation-delay: 0.5s;
}

@keyframes scale-up4 {
  20% {
    background-color: #ffff;
    transform: scaleY(2.5);
  }

  40% {
    transform: scaleY(2);
  }

  70% {
    transform: scaleY(1.5);
  }
}
.deco {
  position: absolute;
  left: 33.5%;
  top: 45%;
  transform: translateY(-150%);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  padding: 50px 50px;
  --color: var(--circle-color);
  --animation: 2s ease-in-out infinite;
}

.deco .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  justify-content: space-between;
  width: 25px;
  height: 25px;
  border: solid 2px var(--color);
  border-radius: 50%;
  padding: 50px 50px;
  background-color: transparent;
  animation: circle-keys var(--animation);
}

.deco .circle .dot {
  position: absolute;
  justify-content: space-between;
  transform: translate(-50%, -50%);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  padding: 50px 50px;
  background-color: var(--color);
  animation: dot-keys var(--animation);
}

.deco .circle .outline {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  justify-content: space-between;
  border-radius: 60%;
  animation: outline-keys var(--animation);
}

/* Circulos */
.circle:nth-child(2) {
  animation-delay: 0.3s;
}
.circle:nth-child(3) {
  animation-delay: 0.6s;
}
.circle:nth-child(4) {
  animation-delay: 0.9s;
}
.circle:nth-child(2) .dot {
  animation-delay: 0.3s;
}
.circle:nth-child(3) .dot {
  animation-delay: 0.6s;
}
.circle:nth-child(4) .dot {
  animation-delay: 0.9s;
}
.circle:nth-child(1) .outline {
  animation-delay: 0.9s;
}
.circle:nth-child(2) .outline {
  animation-delay: 1.2s;
}
.circle:nth-child(3) .outline {
  animation-delay: 1.5s;
}
.circle:nth-child(4) .outline {
  animation-delay: 1.8s;
}
@keyframes circle-keys {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dot-keys {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes outline-keys {
  0% {
    transform: scale(0);
    outline: solid 20px var(--color);
    outline-offset: 0;
    opacity: 1;
  }

  100% {
    transform: scale(1);
    outline: solid 0 transparent;
    outline-offset: 20px;
    opacity: 0;
  }
}
.detalle-cancion {
  padding: 10px 10px; /* Reduce el espacio interior */
  background-color: rgba(240, 248, 255, 0.555);
  border-radius: 15px; /* Reduce las esquinas redondeadas */
  font-size: 1.2rem; /* Reduce el tamaño de la fuente */
  margin-left: 0; /* Asegura que esté alineado a la izquierda */
  margin-right: auto; /* Mantiene la alineación a la izquierda */
  width: fit-content; /* Ajusta el ancho al contenido */
  max-width: 200px; /* Limita el ancho máximo (opcional) */
  word-wrap: break-word;
}

.player-box {
  background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente negro */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 30px auto; /* Centrado horizontal y margen inferior */
}

.song-info {
  text-align: center;
  margin-bottom: 15px;
}

.song-info .artist {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.song-info .song {
  font-size: 16px;
  font-style: italic;
  color: #dddddd;
}
.player-box audio {
  width: 100%;
  max-width: 400px;
  border: none;
  border-radius: 10px;
  outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #ffffff20; /* Fondo ligeramente transparente */
  backdrop-filter: blur(5px); /* Efecto de desenfoque de fondo */
}
.player-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-box:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.song-info .artist,
.song-info .song {
  transition: color 0.3s ease;
}

.song-info .artist:hover,
.song-info .song:hover {
  color: #00bcd4;
}



/* Responsivo */
@media screen and (max-width: 768px) {
  body {
    flex-direction: column;
    padding: 1rem;
  }
  
  .clima {
    transform: scale(0.8);
    flex-direction: row;
  }
  .ciudad {
    font-size: 0.8rem;
    transform: scale(0.8);
  }

  .fecha {
    font-size: 0.8rem;
    transform: scale(0.8);
  }
  .bloque-temp {
    transform: scale(0.8);
  }
  .bloque-clima {
    transform: scale(0.8);
  }
  .temp-img {
    width: 100%;
    transform: scale(0.8);
  }
  .temperatura {
    transform: scale(0.8);
  }
  .temp {
    font-size: 1.5rem;
    transform: scale(0.8);
  }
  .wheater {
    font-size: 0.5rem;
    transform: scale(0.8);
  }
  nav {
    justify-content: center;
    padding: 0.5rem;
    flex-direction: column;
  }
  main {
    justify-content: center;
    flex-direction: column;
  }
  .main-logo {
    width: 30px;
    height: auto;
    margin: 1rem 0;
    transform: scale(0.8);
  }
  p .texto {
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-left: 10%;
  }
  .bar {
    width: 0.2px;
    height: 10px;
  }
  .bar1 {
    width: 0.2px;
    height: 15px;
  }
  .bar2 {
    width: 0.2px;
    height: 20px;
  }
  nav button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .logo-img {
    width: 16px;
  }

  .bars-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Reduce el espacio entre elementos */
    margin: 0.5rem 0; /* Reduce los márgenes */
    transform: scale(0.8);
  }

  .reproductor {
    gap: 0.5rem; /* Reduce el espacio entre elementos */
    margin: 0.5rem 0; /* Reduce los márgenes */
    transform: scale(0.5);
  }

  .loader {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
  }

  .detalle-cancion {
    width: 100%;
    margin-left: 0;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .visualizer-controls {
    flex-direction: column;
    gap: 1rem;
    margin-left: 0;
  }

  .wave-group {
    height: auto;
    justify-content: center;
  }

  .wave-bar {
    width: 2px;
    height: 15px;
  }

  #icon {
 
    height: 100%;
  }
  .main-logo {
    width: 250px;
    align-items: center;
    justify-content: center;
    position: relative;
    
  }
  .deco {
    margin-bottom: 15%;
    transform: translateY(-150%) ;
    left: -16%;
    padding: 10px 10px;
    gap: 0px;
    
  }
  nav button .logo-img {
    height:17px;
    margin-right: 10px;
}
.imágenes {
  margin: 30px 0px;
  margin-bottom: 0.5px;
}
  .qr{
    width: 50%;
    margin-left: 26%;
  }
  .redes {
    margin-bottom: -10%;
  }
  .logors {
    height: 40px; /* Ajusta el tamaño del logo dentro del botón */
    margin-right: 10px; /* Espacio entre la imagen y el texto */
  }
  footer {
    font-size: 0.9em;
  }
}
/*patalla de 1024 */
@media screen and (max-width: 1024px) {
  .bars-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Reduce el espacio entre elementos */
    margin: 0.5rem 0; /* Reduce los márgenes */
    transform: scale(0.8);
  }
  .main-logo {
    width: 210px;
    height: auto;
    margin: 1rem 0;
    margin-left: 22%;
    transform: scale(0.8);
  }
  p .texto {
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-left: 10%;
  }
  .reproductor {
    gap: 0.5rem; /* Reduce el espacio entre elementos */
    margin: 0.5rem 0; /* Reduce los márgenes */
    transform: scale(0.5);
  }

  .loader {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
  }

  .detalle-cancion {
    width: 100%;
    margin-left: 0%;
    text-align: center;
    flex: 1;
  }
  .visualizer-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .play-button {
    margin-left: 0;
  }

}
