/* carousel.css - Estilos para el carrusel de imágenes */

/* 🎠 Estilos específicos para la ventana de World Tour */
#window-tour .window-content {
  background-color: #1a1a2e !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  height: 100% !important;
  min-height: 300px !important;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(45deg, #1a1a2e, #16213e);
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 300px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #1a1a2e, #16213e);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  min-height: 300px;
}

.carousel-slide.active {
  opacity: 1 !important;
  z-index: 1 !important;
  display: flex !important;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: block !important;
}

.carousel-slide img:hover {
  transform: scale(1.02);
}

/* Animación de fondo para cuando se está cargando */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  margin: 0 10px;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 15px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background: white;
}

/* Estilos responsive */
@media (max-width: 768px) {
  .carousel-btn {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}
