/*
  carousels.css - Estilos de carruseles (Instaladores/Allies, Nosotros)
  Prioridad: BELOW THE FOLD
  Tamaño: ~3.5KB
*/

/* ============================================
   INSTALADORES / ALLIES - Infinite Carousel
   ============================================ */

.home-landing .allies-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.home-landing .allies-track {
  display: flex;
  width: fit-content;
  animation: infiniteScroll 30s linear infinite;
}

.home-landing .allies-carousel-wrapper:hover .allies-track {
  animation-play-state: paused;
}

.home-landing .allies-slide {
  display: flex;
  gap: 2.5rem;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

/* Individual Logo Container */
.home-landing .ally-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 210px;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 2px solid rgba(23, 23, 23, 0.1);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-landing .ally-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(238, 118, 1, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.home-landing .ally-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.home-landing .ally-logo:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 252, 249, 1) 100%);
  border-color: rgba(238, 118, 1, 0.3);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 
    0 12px 24px rgba(238, 118, 1, 0.15),
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 0 0 2px rgba(238, 118, 1, 0.1);
}

.home-landing .ally-logo:hover::before {
  opacity: 1;
}

.home-landing .ally-logo:hover img {
  transform: scale(1.08);
}

.home-landing .ally-logo:active {
  transform: translateY(-3px) scale(1.02);
  transition: all 0.15s ease;
}

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

/* ============================================
   HUAWEI PARTNER BADGES
   ============================================ */

.home-landing .huawei-badge-container-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
}

.home-landing .huawei-badge-container-compact:hover {
  transform: scale(1.05);
}

.home-landing .huawei-badge-compact {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-landing .huawei-badge-container-compact:hover .huawei-badge-compact {
  filter: drop-shadow(0 4px 12px rgba(238, 118, 1, 0.15));
}

@media (min-width: 768px) {
  .home-landing .huawei-badge-compact {
    height: 70px;
  }
}

@media (min-width: 1024px) {
  .home-landing .huawei-badge-compact {
    height: 80px;
  }
}

.home-landing #huawei-partner {
  min-height: auto;
}

.home-landing #huawei-partner .animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .home-landing .allies-slide {
    gap: 1.5rem;
    padding: 0.75rem 1rem;
  }

  .home-landing .ally-logo {
    min-width: 140px;
    max-width: 160px;
    height: 80px;
    padding: 1rem 1.25rem;
  }

  .home-landing .allies-track {
    animation-duration: 25s;
  }
  
  .home-landing .ally-logo:hover {
    transform: translateY(-4px) scale(1.03);
  }

  .home-landing #huawei-partner {
    max-height: none;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .home-landing .allies-track {
    animation: none;
  }
  
  .home-landing .allies-carousel-wrapper {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .home-landing .allies-slide:last-child {
    display: none;
  }
}
