/* ============================== */
/*  Hero Carrusel  */
/* ============================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 6s ease;
}

.carousel-item.active img {
  transform: scale(1.1);
}

.carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1.5s ease;
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Botones de control */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 2;
  transition: background 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicators button.active {
  background: #fff;
}

/* ============================== */
/* Animaciones necesarias         */
/* ============================== */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ============================== */
/* Responsive                     */
/* ============================== */
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 2rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .carousel-control {
    font-size: 2rem;
    padding: 8px 12px;
  }
}