/* ============================================================
   ANIMATIONS · movimiento discreto y calmado
   ============================================================ */

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--electric-soft); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.75; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Aparición escalonada de las tarjetas de herramienta */
.tool-grid .tool-card {
  animation: rise var(--dur-3) var(--ease-out) both;
}
.tool-grid .tool-card:nth-child(1) { animation-delay: 40ms; }
.tool-grid .tool-card:nth-child(2) { animation-delay: 80ms; }
.tool-grid .tool-card:nth-child(3) { animation-delay: 120ms; }
.tool-grid .tool-card:nth-child(4) { animation-delay: 160ms; }
.tool-grid .tool-card:nth-child(5) { animation-delay: 200ms; }
.tool-grid .tool-card:nth-child(6) { animation-delay: 240ms; }
.tool-grid .tool-card:nth-child(7) { animation-delay: 280ms; }
.tool-grid .tool-card:nth-child(8) { animation-delay: 320ms; }
.tool-grid .tool-card:nth-child(9) { animation-delay: 360ms; }
.tool-grid .tool-card:nth-child(n+10) { animation-delay: 400ms; }

/* Transición suave global de color al cambiar de tema */
.app, .rail, .panel, .tool-card, .hero, .topbar, .btn, .nav-item {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: var(--dur-2);
  transition-timing-function: var(--ease);
}
