/* Sección Hero */
.hero {
  min-height: 80vh;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-blue-medium)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.2;
  animation: scale 20s infinite alternate;
}

@keyframes scale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 1;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 147, 54, 0.3);
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay para el texto del hero */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(16, 35, 78, 0.3),
    rgba(16, 35, 78, 0.5)
  );
  z-index: 0;
  pointer-events: none; /* Permite que los clicks pasen a través del overlay */
  box-shadow: 0 20px 20px -20px rgba(16, 35, 78, 0.4);
}
