/* Logo Carousel - Estilos Vanilla JavaScript */
/* Compatible con navegadores antiguos incluyendo Safari iPhone 8 */

.epayco-lc-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    overflow: hidden !important;
    /* Asegurar que el overflow funcione */
    display: block !important;
    /* Forzar que el contenedor tenga un ancho definido */
    min-width: 0 !important;
}

/* Wrapper interno para el carousel */
.epayco-lc-container.epayco-lc-wrapper {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

/* Carousel wrapper */
.epayco-lc-container .epayco-lc-carousel {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    -webkit-flex-wrap: nowrap !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Asegurar que el wrapper no cause overflow */
    left: 0 !important;
    top: 0 !important;
    /* Asegurar que el wrapper no se salga del contenedor */
    max-width: none !important;
}

/* Slide */
.epayco-lc-container .swiper-slide {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 80px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    float: none !important;
    clear: none !important;
}

.epayco-lc-container .swiper-slide a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.epayco-lc-container .swiper-slide img,
.epayco-lc-container .swiper-slide .swiper-slide-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    -webkit-transition: opacity 0.3s ease, -webkit-filter 0.3s ease !important;
    transition: opacity 0.3s ease, filter 0.3s ease !important;
}

/* Alturas de imagen */
.epayco-lc-container.height-small .swiper-slide img,
.epayco-lc-container.height-small .swiper-slide .swiper-slide-image {
    height: 60px;
}

.epayco-lc-container.height-medium .swiper-slide img,
.epayco-lc-container.height-medium .swiper-slide .swiper-slide-image {
    height: 80px;
}

.epayco-lc-container.height-large .swiper-slide img,
.epayco-lc-container.height-large .swiper-slide .swiper-slide-image {
    height: 120px;
}

.epayco-lc-container.height-auto .swiper-slide img,
.epayco-lc-container.height-auto .swiper-slide .swiper-slide-image {
    height: auto;
}

/* Efecto de color */
.epayco-lc-container.color-effect-grayscale .swiper-slide img,
.epayco-lc-container.color-effect-grayscale .swiper-slide .swiper-slide-image {
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
    opacity: 0.7 !important;
}

.epayco-lc-container.color-effect-grayscale .swiper-slide img:hover,
.epayco-lc-container.color-effect-grayscale .swiper-slide .swiper-slide-image:hover {
    opacity: 1 !important;
    -webkit-filter: grayscale(0%) !important;
    filter: grayscale(0%) !important;
}

.epayco-lc-container.color-effect-color .swiper-slide img,
.epayco-lc-container.color-effect-color .swiper-slide .swiper-slide-image {
    -webkit-filter: grayscale(0%) !important;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* Efectos adicionales */
.epayco-lc-container.effect-shadow .swiper-slide img,
.epayco-lc-container.effect-shadow .swiper-slide .swiper-slide-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.epayco-lc-container.effect-border .swiper-slide img,
.epayco-lc-container.effect-border .swiper-slide .swiper-slide-image {
    border: 1px solid #eee;
}

/* Navegación - Botones */
.epayco-lc-container .elementor-swiper-button {
    position: absolute !important;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    margin-top: 0 !important;
    z-index: 10 !important;
    cursor: pointer !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 3px !important;
    -webkit-transition: opacity 0.3s ease, background-color 0.3s ease !important;
    transition: opacity 0.3s ease, background-color 0.3s ease !important;
    opacity: 0.8 !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    border: none !important;
    padding: 0 !important;
}

.epayco-lc-container .elementor-swiper-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.epayco-lc-container .elementor-swiper-button-prev {
    left: 10px;
}

.epayco-lc-container .elementor-swiper-button-next {
    right: 10px;
}

.epayco-lc-container .elementor-swiper-button i {
    font-size: 24px;
    line-height: 1;
}

.epayco-lc-container .elementor-swiper-button.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Paginación - Dots */
.epayco-lc-container .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 10;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.epayco-lc-container .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    margin: 0 4px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: none;
    padding: 0;
}

.epayco-lc-container .swiper-pagination-bullet-active {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Eliminar outline al hacer clic */
.epayco-lc-container:focus,
.epayco-lc-container:focus-visible,
.epayco-lc-container *:focus,
.epayco-lc-container *:focus-visible {
    outline: none !important;
    border: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .epayco-lc-container .elementor-swiper-button {
        width: 40px;
        height: 40px;
    }
    
    .epayco-lc-container .elementor-swiper-button i {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .epayco-lc-container .elementor-swiper-button {
        width: 36px;
        height: 36px;
    }
    
    .epayco-lc-container .elementor-swiper-button i {
        font-size: 18px;
    }
    
    .epayco-lc-container .swiper-pagination {
        bottom: 5px;
    }
    
    .epayco-lc-container .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .epayco-lc-container .elementor-swiper-button {
        width: 32px;
        height: 32px;
    }
    
    .epayco-lc-container .elementor-swiper-button i {
        font-size: 16px;
    }
}

/* Compatibilidad con Elementor y Kadence */
.elementor-widget-epayco-logo-carousel .epayco-lc-container,
[class*="elementor"] .epayco-lc-container {
    overflow: visible !important;
}

.elementor-widget-epayco-logo-carousel .epayco-lc-container .epayco-lc-carousel,
[class*="elementor"] .epayco-lc-container .epayco-lc-carousel {
    overflow: visible;
}
