body {
  overflow-x: hidden;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-up {
  transform: translateY(30px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll parallax sections */
.scroll-parallax {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: transform, opacity;
}

.scroll-parallax.is-visible {
  opacity: 1;
}

.scroll-parallax-image[data-direction="left"] {
  transform: translateX(-80px);
}

.scroll-parallax-image[data-direction="right"] {
  transform: translateX(80px);
}

.scroll-parallax-text[data-direction="left"] {
  transform: translateX(-80px);
}

.scroll-parallax-text[data-direction="right"] {
  transform: translateX(80px);
}

.scroll-parallax-image.is-visible,
.scroll-parallax-text.is-visible {
  transform: translateX(0);
}

/* Hero entrance on load */
.hero-text,
.hero-media {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-text {
  transform: translateX(-40px);
}

.hero-media {
  transform: scale(0.92);
}

.hero-text.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-media.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Bouncing scroll arrow */
@keyframes bounce-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.scroll-arrow {
  animation: bounce-arrow 2s ease-in-out infinite;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
}

.mobile-menu.is-open {
  max-height: 480px;
  opacity: 1;
}

/* Carousel */
.carousel-viewport {
  width: 100%;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-btn {
  min-width: 44px;
  min-height: 44px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}

.carousel-dot.is-active {
  background: hsl(var(--primary));
}

.carousel-dot:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Diferencial cards stagger delay via JS */
.diferencial-card {
  transition-delay: var(--stagger-delay, 0ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger,
  .scroll-parallax,
  .hero-text,
  .hero-media,
  .carousel-track {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-arrow {
    animation: none;
  }
}
