/* ===== SCROLL ANIMATION SYSTEM (same pattern as nosotros.css) ===== */

@keyframes fadeInUpSubtle {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.93);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible.fade-in-up {
  animation: fadeInUpSubtle 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll.is-visible.fade-scale-in {
  animation: fadeScaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-50  { animation-delay: 50ms;  }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-250 { animation-delay: 250ms; }
.delay-300 { animation-delay: 300ms; }
.delay-350 { animation-delay: 350ms; }
.delay-400 { animation-delay: 400ms; }
.delay-450 { animation-delay: 450ms; }
.delay-500 { animation-delay: 500ms; }
.delay-550 { animation-delay: 550ms; }
.delay-600 { animation-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

.clients-delayed-content {
  opacity: 0;
  visibility: hidden;
}

.clients-delayed-content.is-visible {
  opacity: 1;
  visibility: visible;
}

.clients-intro-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

.clients-delayed-content.is-visible .clients-intro-reveal {
  animation: clientsIntroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes clientsIntroReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ===== CLIENT CARDS ===== */

.client-card {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.client-card.start-animation {
  animation: fadeInUp 0.6s ease-out forwards;
}

.client-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -3px rgba(0, 0, 0, 0.08);
}

.client-card .client-logo-container {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.client-card:hover .client-logo-container {
  transform: scale(1.05);
}

.client-card .client-logo-container img {
  transition: transform 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.client-card:nth-child(1)  { animation-delay: 0.05s; }
.client-card:nth-child(2)  { animation-delay: 0.1s; }
.client-card:nth-child(3)  { animation-delay: 0.15s; }
.client-card:nth-child(4)  { animation-delay: 0.2s; }
.client-card:nth-child(5)  { animation-delay: 0.25s; }
.client-card:nth-child(6)  { animation-delay: 0.3s; }
.client-card:nth-child(7)  { animation-delay: 0.35s; }
.client-card:nth-child(8)  { animation-delay: 0.4s; }
.client-card:nth-child(9)  { animation-delay: 0.45s; }
.client-card:nth-child(10) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .clients-delayed-content {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .clients-intro-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .client-card,
  .client-card .client-logo-container,
  .client-card .client-logo-container img {
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }

  .client-card:hover {
    transform: none;
    box-shadow: none;
  }
}
