.carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 800px;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.carousel-item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(13, 13, 13, 0.5);
  padding: 20px;
  box-sizing: border-box;
  z-index: 3; /* Asegura que el contenido esté sobre la imagen */
}

/* Controles del carrusel */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.carousel-prev:hover, .carousel-next:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 30;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-indicator.active {
  background-color: white;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .carousel {
    height: 70vh;
  }
  
  .carousel-content {
    padding: 40px 20px;
  }
  
  .carousel-prev, .carousel-next {
    bottom: 20px;
    top: auto;
    transform: translateY(0);
    width: 36px;
    height: 36px;
  }
  
  .carousel-indicators {
    bottom: 60px;
  }
}