/* === ANIMATIONS — Keyframes y clases === */

/* =============================================
   ENTRANCE ANIMATIONS
   ============================================= */

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   CONTINUOUS ANIMATIONS
   ============================================= */

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

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

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes timerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
  50%       { box-shadow: 0 0 0 14px transparent; }
}

@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 0 0 14px transparent; }
}

/* =============================================
   VSL / FUNNEL ANIMATIONS
   ============================================= */

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

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

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

@keyframes popInSpring {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes optionBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.04); }
  60%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* =============================================
   PARTICLE ANIMATIONS
   ============================================= */

@keyframes particle1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  33%       { transform: translate(30px, -40px); opacity: 0.7; }
  66%       { transform: translate(-20px, -20px); opacity: 0.3; }
}

@keyframes particle2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  33%       { transform: translate(-40px, -30px); opacity: 0.6; }
  66%       { transform: translate(20px, -50px); opacity: 0.4; }
}

@keyframes particle3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50%       { transform: translate(50px, -60px); opacity: 0.2; }
}

@keyframes particle4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  40%       { transform: translate(-30px, 30px) scale(1.3); opacity: 0.6; }
  80%       { transform: translate(40px, -20px) scale(0.8); opacity: 0.3; }
}

@keyframes particle5 {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  60%       { transform: translate(-50px, -40px); opacity: 0.6; }
}

/* =============================================
   ANIMATION UTILITY CLASSES
   ============================================= */

.anim-float       { animation: float 6s ease-in-out infinite; }
.anim-float-slow  { animation: floatSlow 8s ease-in-out infinite; }
.anim-pulse-dot   { animation: pulseDot 2s ease-in-out infinite; }
.anim-pulse-ring  { animation: pulseRing 2s ease-in-out infinite; }
.anim-timer-pulse { animation: timerPulse 2s ease-in-out infinite; }
.anim-green-pulse { animation: greenPulse 2s ease-in-out infinite; }

.anim-fade-up     { animation: fadeUp 0.6s var(--ease-out) both; }
.anim-scale-in    { animation: scaleIn 0.6s var(--ease-out) both; }
.anim-slide-in    { animation: slideIn 0.4s var(--ease-out) both; }
.anim-pop-in      { animation: popIn 0.4s var(--ease-out) both; }
.anim-pop-spring  { animation: popInSpring 0.6s var(--ease-out) both; }

/* Will-change for GPU-accelerated elements */
.anim-float,
.anim-float-slow {
  will-change: transform;
}

/* Reduce motion overrides */
@media (prefers-reduced-motion: reduce) {
  .anim-float, .anim-float-slow,
  .anim-pulse-dot, .anim-pulse-ring,
  .anim-timer-pulse, .anim-green-pulse {
    animation: none;
  }
  .anim-fade-up, .anim-scale-in,
  .anim-slide-in, .anim-pop-in,
  .anim-pop-spring {
    animation-duration: 0.01ms;
  }
}
