/* ============================================================
   ST SYSTEM — animations.css
   Animaciones y efectos visuales
   ============================================================ */

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

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

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

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

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes barGrow {
  from { height: 0 !important; }
  to   { }
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 6px 25px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.1); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* ============ SCROLL REVEAL ============ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
[data-animate]:nth-child(1) { transition-delay: 0s; }
[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate]:nth-child(4) { transition-delay: 0.3s; }
[data-animate]:nth-child(5) { transition-delay: 0.4s; }
[data-animate]:nth-child(6) { transition-delay: 0.5s; }
[data-animate]:nth-child(7) { transition-delay: 0.6s; }
[data-animate]:nth-child(8) { transition-delay: 0.7s; }

/* ============ HOVER SHINE EFFECT ============ */
.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.08) 50%,
    transparent 60%
  );
  transform: rotate(-10deg);
  transition: 0.5s;
}
.shine:hover::after { left: 125%; }

/* ============ GRADIENT TEXT ANIMATION ============ */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent-light),
    var(--color-primary),
    var(--color-accent)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ============ PARTICLE DOTS ============ */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.3);
  pointer-events: none;
  animation: floatCard var(--dur, 4s) var(--delay, 0s) ease-in-out infinite;
}

/* ============ PROGRESS BAR ============ */
.slider-progress {
  animation: none;
}
.slider-progress.animating {
  animation: progressBar var(--duration, 5s) linear forwards;
}

@keyframes progressBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============ LOADING SCREEN (opcional) ============ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 50px; height: 50px;
  border: 3px solid rgba(13,148,136,0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ SMOOTH UNDERLINE LINK ============ */
.underline-link {
  position: relative;
}
.underline-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.underline-link:hover::after { width: 100%; }

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,194,255,0); }
  50% { box-shadow: 0 0 35px rgba(0,194,255,0.24); }
}
