/* ==========================================================================
   HERO
   Ocupa toda la pantalla y arranca en top: 0, por DETRÁS del header fijo.
   Capas de fondo (de arriba hacia abajo):
     1. overlay negro 75% → 40% para que el texto se lea
     2. foto (--hero-image, la setea hero.js desde el config)
     3. gradiente negro-rojo de respaldo (se ve si no hay foto o no carga)
   ========================================================================== */

.hero {
  --hero-fallback: linear-gradient(135deg, #0b0b0b 0%, #1d0508 45%, #4a0a14 100%);

  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  /* El padding-top deja lugar al header para que nunca tape el título. */
  padding: calc(var(--header-h) + 2rem) 0 6rem;
  color: var(--white);
  background-color: #0b0b0b;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .4) 100%),
    var(--hero-image, none),
    var(--hero-fallback);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: 1.1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: .85;
}

.hero__title {
  max-width: 16ch;
  font: 700 clamp(2.4rem, 7vw, 5rem)/1.04 var(--font-display);
  letter-spacing: -.02em;
  color: var(--white);
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 46ch;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--off-white);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 2.2rem;
}

/* --------------------------------------------------------------------------
   Indicador de scroll
   -------------------------------------------------------------------------- */

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  color: var(--white);
  opacity: .75;
  transition: opacity .2s ease;
  animation: hero-bounce 2s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll svg { width: 28px; height: 28px; }

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* Con "reducir movimiento" se mantiene, pero más lento y corto. */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll { animation-duration: 4s; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero { padding-bottom: 5.5rem; }
  .hero__eyebrow { font-size: .7rem; letter-spacing: .16em; }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* Pantallas bajas (celu acostado): el indicador estorba. */
@media (max-height: 520px) {
  .hero__scroll { display: none; }
  .hero { padding-bottom: 2.5rem; }
}
