/* ============================================================
   HERO.CSS — Sección portada (pantalla completa)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Fondo con imagen — el efecto parallax lo aplica main.js */
.hero__bg {
  position: absolute;
  /* Espacio extra arriba/abajo para que el parallax no deje huecos */
  inset: -80px 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* [IMG-HERO] Fallback si no hay imagen cargada — usa la variable para responder al tema */
  background-color: var(--color-fondo-alt);
  will-change: transform;
  transition: background-color 0.3s ease;
}

/* Capa oscura sobre la imagen */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* Contenido centrado */
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 4rem;
  max-width: 680px;
}

/* Tag pequeño encima del título */
.hero__tag {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-oro);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: heroFadeDown 0.7s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

/* Título principal */
.hero__title {
  font-family: var(--fuente-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: heroFadeDown 0.7s ease forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

.hero__title--gold {
  color: var(--color-oro);
  display: block;
  font-style: italic;
}

/* Subtítulo */
.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  max-width: 400px;
  line-height: 1.7;
  animation: heroFadeDown 0.7s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

/* Botones CTA */
.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  animation: heroFadeDown 0.7s ease forwards;
  animation-delay: 0.55s;
  opacity: 0;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVO HERO
   ============================================================ */
@media (max-width: 768px) {
  .hero__content {
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    text-align: center;
  }

  .hero__scroll-indicator {
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }
}
