/* ==========================================================================
   GALERÍA - BASUALTO EVENTOS
   ========================================================================== */

/* Sección de galería */
#galeria {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Carrusel de galería */
.gallery-carousel {
  position: relative;
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-carousel-container {
  overflow: hidden;
  position: relative;
}

.gallery-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: var(--space-md);
}

/* Items de galería */
.gallery-item {
  flex: 0 0 300px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* Botones del carrusel */
.gallery-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-carousel-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-prev {
  left: var(--space-md);
}

.gallery-carousel-next {
  right: var(--space-md);
}

/* Indicadores */
.gallery-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.gallery-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 250px;
    height: 320px;
  }
  
  .gallery-carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .gallery-carousel-prev {
    left: var(--space-sm);
  }
  
  .gallery-carousel-next {
    right: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .gallery-item {
    flex: 0 0 200px;
    height: 280px;
  }
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-carousel {
  animation: fadeInUp 0.6s ease-out;
}
