/* ==========================================================================
   LIVACITE — Premium Sports Design Gallery
   Animations Stylesheet: Keyframes, Motion Ticker & Entrance FX
   ========================================================================== */

/* Section Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible, .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Word Reveal Effect */
.palabra {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: entraPalabra 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes entraPalabra {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mosaic Image Entrance */
@keyframes aparece {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.hc-mosaico img {
  opacity: 0;
  animation: aparece 0.6s ease forwards;
}

.hc-mosaico img:nth-child(1) { animation-delay: 0.05s; }
.hc-mosaico img:nth-child(2) { animation-delay: 0.15s; }
.hc-mosaico img:nth-child(3) { animation-delay: 0.25s; }
.hc-mosaico img:nth-child(4) { animation-delay: 0.35s; }

/* Status Dot Pulse */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(212, 255, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(212, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 255, 0, 0); }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .zh-bg-track, .m-track, .hc-brillo, .scroll-bar {
    animation: none !important;
  }
  .reveal, .reveal-on-scroll, .palabra, .hc-mosaico img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
