/* GRABA IMAGEN — Animaciones */

/* Fade Up */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Fade Left */
.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

/* Fade Right */
.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* Scale In */
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Holographic effect */
@keyframes holographic {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.holo-bg {
  background: linear-gradient(135deg, #0a2463, #1b4fd8, #00c2ff, #c9a84c, #1b4fd8, #0a2463);
  background-size: 400% 400%;
  animation: holographic 6s ease infinite;
}

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

.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  animation: confettiFall linear infinite;
}

/* Particle float */
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50%       { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat ease-in-out infinite;
}

/* Steam animation */
@keyframes steam {
  0%   { transform: translateY(0) scaleX(1); opacity: 0.6; }
  100% { transform: translateY(-60px) scaleX(1.5); opacity: 0; }
}

.steam-line {
  position: absolute;
  width: 4px;
  height: 30px;
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  animation: steam 2s ease-out infinite;
}

/* Shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.2) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,194,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,194,255,0.7); }
}

.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* Spin */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Wave divider */
.wave-divider { overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* Badge pop */
@keyframes badgePop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.badge-pop { animation: badgePop 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }

/* Timeline */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary-mid), var(--color-accent));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-light);
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary-mid), var(--color-accent));
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  top: 20px;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-content p { font-size: 0.9rem; color: var(--color-gray-mid); }

/* WhatsApp bubble initial hidden state */
#waBubble {
  opacity: 0;
  transform: scale(0);
}
