/* ==========================================================================
   SURVEXIA 2026 — Animaciones
   ========================================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes lineDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes splitRevealLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes splitRevealRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll reveal (AOS-like) --- */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="fade"].is-visible {
  transform: none;
}

[data-animate="scale"] {
  transform: scale(0.92);
}

[data-animate="scale"].is-visible {
  transform: scale(1);
}

[data-animate="left"] {
  transform: translateX(-40px);
}

[data-animate="left"].is-visible {
  transform: translateX(0);
}

[data-animate="right"] {
  transform: translateX(40px);
}

[data-animate="right"].is-visible {
  transform: translateX(0);
}

/* Delays escalonados */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* Intro split animation states */
.intro-split__path {
  opacity: 0;
}

.intro-split__path--left.is-visible {
  animation: splitRevealLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-split__path--right.is-visible {
  animation: splitRevealRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-split__conclusion {
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

.intro-split__conclusion.is-visible {
  opacity: 1;
}

/* Hero SVG line animation */
.hero__line-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: lineDraw 4s ease-in-out 2s forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
