/* ===========================
   Animaciones de Fade In/Out
   =========================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Clases de animación reutilizables */
.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}

/* Animación con delay progresivo para listas */
.fade-in-stagger {
  animation: slideInLeft 0.4s ease-out forwards;
}

.fade-in-stagger:nth-child(1) {
  animation-delay: 0s;
}

.fade-in-stagger:nth-child(2) {
  animation-delay: 0.1s;
}

.fade-in-stagger:nth-child(3) {
  animation-delay: 0.2s;
}

.fade-in-stagger:nth-child(4) {
  animation-delay: 0.3s;
}

.fade-in-stagger:nth-child(5) {
  animation-delay: 0.4s;
}

.fade-in-stagger:nth-child(6) {
  animation-delay: 0.5s;
}

.fade-in-stagger:nth-child(7) {
  animation-delay: 0.6s;
}

.fade-in-stagger:nth-child(8) {
  animation-delay: 0.7s;
}

.fade-in-stagger:nth-child(9) {
  animation-delay: 0.8s;
}

.fade-in-stagger:nth-child(10) {
  animation-delay: 0.9s;
}

.fade-in-stagger:nth-child(11) {
  animation-delay: 1s;
}

.fade-in-stagger:nth-child(12) {
  animation-delay: 1.1s;
}

/* Animación de escala y fade */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.3s ease-out forwards;
}

/* Animación de deslizamiento desde la izquierda */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.4s ease-out forwards;
}

/* Animación de deslizamiento desde la derecha */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.4s ease-out forwards;
}