
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: black;
}

/* Fondo que se moverá */
.hero__bg {
  position: absolute;
  inset: -10% 0;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25)),
    url("../../festividades/la_diablada/diablada3.JPG");

  background-position: center;
  background-size:cover;
  background-repeat: no-repeat;
  --bgY: 0px;
  transform: translate3d(0, var(--bgY), 0) scale(1.12);
  will-change: transform;
}

.hero__content {
  position: relative;
  text-align: center;
  color: #fafafa;
  padding: 24px;
  z-index: 2;
}

.parallax-text,
.parallax-sub {
  will-change: transform, opacity;
}

.parallax-text {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.parallax-sub {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  margin: 0;
  opacity: 0.95;
}

.after {
  padding: 32px;
}

.spacer {
  height: 160vh;
}

/* Flecha */
.scroll-down {
  position: absolute;
  bottom: 20%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.scroll-down__arrow {
  width: 14px;
  height: 14px;
  border-right: 3px solid rgba(255, 255, 255, 0.95);
  border-bottom: 3px solid rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
  animation: bounceDown 1.2s infinite ease-in-out;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.95;
  }
  50% {
    transform: translateY(10px) rotate(45deg);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-down__arrow {
    animation: none;
  }
}
