/* Counter animation handled via JS */

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse dot for live indicator */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Gradient text shimmer */
.shimmer-text {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Desactivar animaciones en móvil (rendimiento gama baja) ── */
@media (max-width: 768px) {
  *:not(.sara-led-track):not(.sara-led-dot):not(.sara-led-signal):not(.sara-led-scanline):not(.sara-btn-radio):not(.sara-dot),
  *:not(.sara-led-track):not(.sara-led-dot):not(.sara-led-signal):not(.sara-led-scanline):not(.sara-btn-radio):not(.sara-dot)::before,
  *:not(.sara-led-track):not(.sara-led-dot):not(.sara-led-signal):not(.sara-led-scanline):not(.sara-btn-radio):not(.sara-dot)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-dot,
  .shimmer-text {
    animation: none !important;
  }
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
