.tesla-clients-marquee{
  --duration: 30s;
  --logo-height: 70px;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.tesla-clients-marquee::before,
.tesla-clients-marquee::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}
.tesla-clients-marquee::before{
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}
.tesla-clients-marquee::after{
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.tesla-clients-marquee__track{
  display: flex;
  width: max-content;
  will-change: transform;
  animation: teslaClientsMarquee var(--duration) linear infinite;
}

.tesla-clients-marquee:hover .tesla-clients-marquee__track{
  animation-play-state: paused;
}

.tesla-clients-marquee__group{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 14px;
  white-space: nowrap;
}

.tesla-client-logo{
  display: flex;
  align-items: center;
  justify-content: center;
}

.tesla-client-logo img{
  height: var(--logo-height);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .78;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.tesla-client-logo:hover img{
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes teslaClientsMarquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* Ajustes en pantallas pequeñas */
@media (max-width: 520px){
  .tesla-clients-marquee__group{ gap: 18px; }
  .tesla-client-logo img{ max-width: 180px; }
}
