/* Carrusel de imágenes */
#gallery {
  position: relative;
  width: 100%;
  overflow: hidden; /* Oculta las partes de las imágenes que se salen */
}

.gallery-container {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-item {
  flex: 0 0 33.33%; /* Cada imagen ocupa el 33.33% del espacio */
  box-sizing: border-box;
  padding: 10px; /* Añadimos espacio entre las imágenes */
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 400px; /* Ajusta la altura proporcionalmente */
  object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
  border-radius: 8px; /* Opcional: bordes redondeados */
}

/* Estilo para las flechas de navegación */
.gallery-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.arrow {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

/* Estilo para los dispositivos móviles */

/* Estilo para los dispositivos móviles */
@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 70%; /* Imágenes en móviles ocupan el 70% del espacio */
  }

  .gallery-container {
    display: flex;
    justify-content: center; /* Centra las imágenes */
    gap: 10px; /* Agregar espacio entre las imágenes */

  }

  .gallery-item img {
    object-position: center; /* Asegura que la imagen esté centrada */
    height: 200px;
  }
}


/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .gallery-item {
    min-width: 50%; /* 2 imágenes por fila */
  }
}

@media (max-width: 480px) {
  .gallery-item {
    min-width: 100%; /* 1 imagen por fila */
  }
}


/* Canciones */
.spotify-players-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

/* Botón con fondo dorado y texto blanco */
.play-pause {
  width: 50px;
  height: 50px;
  background-color: #D4AF37; /* Fondo dorado */
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* El icono dentro del botón */
.play-pause i {
  color: white; /* Color blanco para el icono */
  font-size: 24px;
  transition: color 0.3s ease;
}

/* Cambiar a dorado más oscuro cuando el cursor pasa por encima */
.play-pause:hover {
  background-color: #c09e2b; /* Dorado más oscuro */
}

/* Estado cuando el botón está en pausa */
.play-pause.paused i {
  content: "\f04c"; /* Unicode para el icono de pausa */
}

/* Cambiar el fondo a blanco cuando el audio está en reproducción */
.play-pause.playing {
  background-color: #fff; /* Fondo blanco */
}

.play-pause.playing i {
  color: #D4AF37; /* Icono dorado cuando está en reproducción */
}

/* Cambiar los iconos de Spotify a color dorado */
.spotify-player .play-pause i {
  color: #ffffff; /* Color dorado para el icono */
  font-size: 24px; /* Ajusta el tamaño del icono */
  transition: color 0.3s ease;
}

.spotify-player .play-pause:hover i {
  color: #c09e2b; /* Dorado más oscuro al pasar el cursor */
}

.spotify-player {
  width: 100%;
  max-width: 350px;
  background-color: #121212;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.album-cover {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.track-info {
  text-align: center;
  margin-bottom: 10px;
}

.track-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.track-artist {
  font-size: 14px;
  color: #b3b3b3;
  margin: 5px 0;
}

.progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 10px 0;
  color: #b3b3b3;
}

#current-time, #duration-time {
  font-size: 12px;
}

.progress-bar {
  width: 100%;
  margin: 0 10px;
  appearance: none;
  height: 4px;
  background: #b3b3b3;
  border-radius: 3px;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #D4AF37;
  border-radius: 50%;
  cursor: pointer;
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

/* Flechas del carrusel */
.arrow {
  font-size: 24px;
  color: white;
  background-color: #444;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.arrow:hover {
  background-color: #D4AF37; /* Cambié el verde por el dorado */
}

/* Botones de reproducción */
.play-pause {
  width: 40px;
  height: 40px;
  background-size: contain;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: white;
}

.play-pause:active {
  transform: scale(0.95);
}

.volume-bar {
  width: 100px;
  cursor: pointer;
}


/* Estilo Spotify para los botones de play/pause */
.controls .play-pause {
  background-color: #D4AF37;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.controls .play-pause:hover {
  transform: scale(1.1);
}

/* Estilo Spotify para la barra de volumen */
.controls .volume-bar {
  width: 100px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  margin-left: 10px;
  margin-right: 10px;
}

.controls .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.controls .volume-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D4AF37;
  cursor: pointer;
}

/* Ajuste del contenedor de controles */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsividad para canciones */
@media (max-width: 768px) {
  .spotify-players-container {
    justify-content: center;
    gap: 15px;
  }

  .spotify-player {
    max-width: 300px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .spotify-player {
    max-width: 100%;
    padding: 10px;
  }

  .controls {
    gap: 10px;
  }

  .volume-bar {
    width: 80px;
  }
}

@media (max-width: 768px) {
  .gallery-item {
    min-width: 50%; /* 2 imágenes por fila */
  }
}

@media (max-width: 480px) {
  .gallery-item {
    min-width: 100%; /* 1 imagen por fila */
  }
}

