/* Logo Carousel Component */
.carousel-container {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 4rem;
  animation: scroll-left 40s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.carousel-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Placeholder logos (texto) */
.carousel-placeholder {
  height: 60px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E5E5E5;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.carousel-placeholder:hover {
  background: #165F8C;
  color: white;
}

/* Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* LeadHub carousel - slower animation */
.carousel-container.leadhub-carousel .carousel-track {
  animation-duration: 60s;
}

/* Legacy carousel - on light background */
.carousel-container.legacy-carousel {
  background: #FAFAFA;
  border-radius: 1rem;
}

/* LeadHub carousel - on gradient background, use white placeholders */
.carousel-container.leadhub-carousel .carousel-placeholder {
  background: rgba(255, 255, 255, 0.9);
  color: #165F8C;
}

.carousel-container.leadhub-carousel .carousel-placeholder:hover {
  background: white;
  color: #0EA5E9;
}

/* Stats Card Hover Effects */
.stats-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(22, 95, 140, 0.1), 0 10px 10px -5px rgba(22, 95, 140, 0.04);
}

/* Responsive */
@media (max-width: 640px) {
  .carousel-logo,
  .carousel-placeholder {
    height: 40px;
    font-size: 0.75rem;
    padding: 0 1rem;
  }

  .carousel-track {
    gap: 2rem;
  }

  .carousel-container {
    padding: 1.5rem 0;
  }
}
