/* ===========================
   CARRUSEL LIMPIO Y MODERNO
   =========================== */

.carousel-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 4rem;
}

.carousel-header {
  text-align: center;
  margin-bottom: 3rem;
}

.carousel-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.carousel-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: #000;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Captions más sutiles */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  z-index: 3;
}

/* Controles minimalistas */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: white;
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
  left: 1.5rem;
}

.carousel-next {
  right: 1.5rem;
}

/* Indicadores simplificados */
.carousel-indicators {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-section {
    padding: 3rem 1rem;
  }
  
  .carousel-header h2 {
    font-size: 2rem;
  }
  
  .carousel-wrapper {
    height: 350px;
  }
  
  .carousel-prev,
  .carousel-next {
    padding: 0.8rem;
    font-size: 1rem;
    width: 40px;
    height: 40px;
  }
  
  .carousel-prev {
    left: 1rem;
  }
  
  .carousel-next {
    right: 1rem;
  }
  
  .carousel-caption {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    height: 300px;
    border-radius: 10px;
  }
  
  .carousel-header h2 {
    font-size: 1.8rem;
  }
  
  .carousel-header p {
    font-size: 1rem;
  }
  
  .carousel-caption {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
