/* Animaciones compartidas: scroll-reveal, hero, navbar, overlay de navegación */

/* ---------- Scroll reveal genérico ([data-reveal], ver animations.js) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes katrina-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes katrina-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes katrina-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes katrina-pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.katrina-pop { animation: katrina-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ---------- Botones e interacciones ---------- */
.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.card { will-change: transform; }

.icon-action, .chip, .categoria-card, .paso-card, .bento-item {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.icon-action:hover { transform: scale(1.1); }
.categoria-card:hover, .bento-item:hover { transform: translateY(-5px); }

/* ---------- Navbar secundaria: transición al hacer scroll ---------- */
.navbar-secondary { transition: box-shadow 0.3s ease, background 0.3s ease; }
.navbar-secondary.is-scrolled { box-shadow: 0 6px 24px rgba(34,34,34,0.08); }

/* ---------- Accesibilidad: respeta "reducir movimiento" ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .categoria-card:hover, .bento-item:hover, .icon-action:hover { transform: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
