/* ============================================================
   animations.css — keyframes, scroll-reveal, transiciones
   ============================================================ */

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger ligero dentro de grids */
.grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.grid .reveal:nth-child(6) { transition-delay: 0.30s; }

/* --- Scroll hint flotante --- */
@keyframes floatHint {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(7px); opacity: 1; }
}

.scroll-hint-arrow {
  animation: floatHint 2.1s var(--ease) infinite;
}

/* --- Glow sutil en marca al cargar --- */
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(206, 164, 76, 0.18); }
  50% { box-shadow: 0 0 26px rgba(206, 164, 76, 0.4); }
}

.brand-mark {
  animation: markPulse 4s var(--ease) infinite;
}

/* --- Glyph del visual frame: deriva lenta --- */
@keyframes glyphDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.visual-glyph {
  animation: glyphDrift 7s var(--ease) infinite;
}

/* --- Respeto a prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint-arrow,
  .brand-mark,
  .visual-glyph {
    animation: none;
  }
}
