/* Contenedor principal del carrusel */
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header de la sección */
.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.section-header .lead {
  font-size: 1.2rem;
  color: #666;
}

/* Wrapper del carrusel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Track que contiene las imágenes */
.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

/* Cada item individual */
.carousel-item {
  min-width: 25%; /* 4 imágenes por defecto */
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Caption de cada imagen */
.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Indicadores (dots) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: #333;
  width: 12px;
  height: 12px;
}

/* Tablets - 2 imágenes */
@media (max-width: 768px) {
  .carousel-item {
    min-width: 50%;
  }
  
  .carousel-item img {
    height: 450px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header .lead {
    font-size: 1rem;
  }
}

/* Móviles - 1 imagen */
@media (max-width: 480px) {
  .carousel-item {
    min-width: 100%;
  }
  
  .carousel-item img {
    height: 350px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .carousel-btn.prev {
    left: 5px;
  }
  
  .carousel-btn.next {
    right: 5px;
  }
  
  .carousel-caption {
    font-size: 0.85rem;
    padding: 8px 10px;
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .section-header .lead {
    font-size: 0.95rem;
  }
}