/* Carrusel Moderno Custom - Standard LP Motor */
.px_custom_carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.px_carousel_container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilos para pocas imágenes (centradas) */
.px_custom_carousel.px_center_mode .px_carousel_container {
  justify-content: center;
  gap: 4px;
  transform: none !important;
}

.px_custom_carousel.px_center_mode .px_carousel_item {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 240px;
  position: relative;
}

/* Estilos para muchas imágenes (llenar contenedor) */
.px_custom_carousel.px_fill_mode .px_carousel_container {
  justify-content: flex-start;
  gap: 2px;
}

.px_custom_carousel.px_fill_mode .px_carousel_item {
  flex: 0 0 auto;
  width: 220px;
  position: relative;
}

.px_carousel_item {
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #e9ecef;
  aspect-ratio: 16/9;
}

.px_carousel_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.px_carousel_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.px_carousel_item:hover img {
  transform: scale(1.05);
}

/* Controles de navegación */
.px_carousel_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.px_carousel_nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.px_carousel_nav.prev {
  left: 12px;
}

.px_carousel_nav.next {
  right: 12px;
}

.px_carousel_nav i {
  font-size: 18px;
  color: #333;
}

/* Ocultar navegación en modo centrado */
.px_custom_carousel.px_center_mode .px_carousel_nav {
  display: none;
}



/* Responsive */
@media (max-width: 768px) {
  .px_custom_carousel {
    height: 180px;
  }
  
  .px_custom_carousel.px_center_mode .px_carousel_item {
    min-width: 160px;
    max-width: 180px;
  }
  
  .px_custom_carousel.px_fill_mode .px_carousel_item {
    width: 160px;
  }
  
  .px_carousel_nav {
    width: 36px;
    height: 36px;
  }
  
  .px_carousel_nav i {
    font-size: 16px;
  }
  
  .px_carousel_nav.prev {
    left: 8px;
  }
  
  .px_carousel_nav.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .px_custom_carousel {
    height: 160px;
  }
  
  .px_custom_carousel.px_center_mode .px_carousel_item {
    min-width: 140px;
    max-width: 160px;
  }
  
  .px_custom_carousel.px_fill_mode .px_carousel_item {
    width: 140px;
  }
  
  .px_custom_carousel.px_center_mode .px_carousel_container {
    gap: 3px;
  }
}

/* Loading state */
.px_carousel_item.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Modo touch para móviles */
.px_custom_carousel.touch_enabled {
  touch-action: pan-y;
}

.px_custom_carousel.touch_enabled .px_carousel_container {
  transition: transform 0.3s ease;
}

.px_custom_carousel.touch_enabled.dragging .px_carousel_container {
  transition: none;
} 