/* ===========================
   HERO SECTION
   =========================== */

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 12vh, 8rem) 0;
  background-image: url('../../assets/Fondo.webp');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

/* Overlay con degradado vertical y blur para separación figura/fondo */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem;
  text-align: left;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  padding-top: clamp(10rem, 15vh, 8rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.hero-text {
  width: 100%;
  max-width: 35rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
               0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.625rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 48rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

/* ===========================
   RESPONSIVE HERO
   =========================== */

@media (min-width: 1024px) and (max-width: 1366px) {
  .hero {
    padding: clamp(2.5rem, 8vh, 3rem) 0;
  }

  .hero-content {
    padding: 0 2rem;
    padding-top: clamp(8rem, 12vh, 10rem);
  }

  .hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 100vh;
    padding: clamp(4rem, 12vh, 7rem) 0;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
  }

  .hero-content {
    padding: 0 clamp(1.25rem, 5vw, 2rem);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.375rem);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero::before {
    backdrop-filter: blur(0.5px);
  }

  .hero-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(1.5rem, 5vw, 2rem);
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    margin-top: clamp(4rem, 12vh, 6rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    max-width: 100%;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .hero-buttons .btn-primary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 clamp(1.25rem, 5vw, 1.5rem);
  }

  .hero-title {
    font-size: clamp(1.625rem, 7vw, 2rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: clamp(0.9375rem, 4vw, 1.125rem);
  }
}

@media (min-width: 1440px) {
  .hero {
    background-attachment: fixed;
  }

  .hero-content {
    max-width: 75rem;
  }
}
