/* ============================================================
   InformaticoBCN — Animaciones CSS adicionales
   ============================================================ */

/* Particle animation for hero */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.5);
  }
}

/* Floating animation for dashboard */
@keyframes dashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: dashFloat 6s ease-in-out infinite;
}

/* Pulse ring for hero badge */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.05); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* Glow pulse for buttons */
@keyframes btnGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
  100% { filter: brightness(1); }
}

/* Metric bar animation */
@keyframes metricFill {
  from { width: 0; }
}

.metric-fill.animated {
  animation: metricFill 1.5s ease-out forwards;
}

/* Audit bar animation */
@keyframes auditFill {
  from { width: 0; }
}

.audit-fill.animated {
  animation: auditFill 1.8s ease-out forwards;
}

/* Typing cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

/* CTA particles */
@keyframes ctaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(30px, -40px) scale(1.2); opacity: 0.5; }
  50% { transform: translate(-20px, -80px) scale(0.8); opacity: 0.2; }
  75% { transform: translate(40px, -30px) scale(1.1); opacity: 0.4; }
}

.cta-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: ctaFloat 15s ease-in-out infinite;
}

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.5s ease-out forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered list animation */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scale in */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.scale-in {
  animation: scaleIn 0.4s ease forwards;
}

/* Rotate glow on service cards */
@keyframes iconRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.service-card:hover .icon-glow {
  animation: iconRotate 3s linear infinite;
}

/* Number count animation class */
.number-ticker {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Smooth reveal on intersection */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Marquee effect for trust bar */
@keyframes trustMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Success check animation */
@keyframes checkBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.check-bounce {
  animation: checkBounce 0.5s ease;
}

/* Background glow animation */
@keyframes bgGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.glow-pulse {
  animation: bgGlow 4s ease-in-out infinite;
}

/* Tooltip animation */
@keyframes tooltipFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.tooltip-show {
  animation: tooltipFade 0.2s ease;
}