/* ============================================================
   STYLE_HERO.CSS - HERO / CARRUSEL PRINCIPAL - CORREGIDO
   ============================================================ */

.hero-container {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background-color: #000; /* Fondo seguro */
}

/* Carrusel de fondo */
.background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Slides del carrusel - CORREGIDO */
.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* 🔹 ACTIVO: completamente visible */
.bg-slide.active {
  opacity: 1 !important;
  z-index: 2;
}

/* 🔹 PRIMER SLIDE: siempre visible al cargar */
.bg-slide:first-child {
  opacity: 1;
  z-index: 2;
}

/* Capa de overlay (texto y formulario) */
.overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
}

.overlay h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-container {
    height: 60vh;
  }
  .overlay h1 {
    font-size: 1.6rem;
  }
}