/* --- Contenedor Principal del Hero --- */

.hero-carousel-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #050505;
}

/* --- Capa de Imágenes de Fondo --- */

.carousel-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-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.5s ease-in-out, transform 8s ease-out;
  transform: scale(1);
}

/* Cuando la imagen tiene la clase active, se vuelve visible */

.carousel-slide.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
}

/* --- Overlays (Degradados para legibilidad) --- */

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.5);
  z-index: 3;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.8) 70%, #050505 100%);
  z-index: 3;
}

/* --- Contenido (Texto) --- */

.hero-content-wrapper {
  position: relative;
  z-index: 4;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  background: rgba(74, 144, 226, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 144, 226, 0.4);
  color: #4a90e2;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.highlight-text {
  color: #4a90e2;
}

.hero-main-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- Botones del Hero --- */

.hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Reutilizando clases existentes para mantener consistencia */

.btn-portal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #4a90e2 0%, #2563eb 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-portal-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-3px);
}

/* --- Indicadores (Puntos) --- */

.carousel-indicators-custom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

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

.carousel-indicators-custom .dot.active {
  background: #b0d552;
  width: 30px;
  border-radius: 10px;
}

/* Animación de entrada para el texto */

.reveal-hero {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-main-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .btn-portal-trigger, .btn-hero-secondary {
    width: 100%;
  }
}

