/* VOY LOGO CAROUSEL - PUBLIC STYLES */

/* Carousel Wrapper */
.vlc-carousel-wrapper {
    width: 100%;
    padding: 60px 0;
    background: transparent;
}

.vlc-carousel-container {
    max-width: 1700px;
    margin: 0 auto;
    position: relative;
    padding: 0; /* Sin padding horizontal en desktop */
}

/* Swiper Container con máscara gradiente */
.vlc-logo-carousel {
    padding: 20px 0;
    overflow: hidden; /* Contener el carrusel */
    position: relative;
    /* Máscara gradiente con mask-image - 15% fade en cada lado */
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0) 100%
    );
}

.vlc-logo-carousel .swiper-wrapper {
    align-items: center;
    transition-timing-function: linear !important; /* Movimiento lineal constante, sin ease */
}

.vlc-logo-carousel .swiper-slide {
    width: auto !important; /* Auto width para scroll continuo */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Item */
.vlc-logo-item {
    width: 165px; /* Desktop: exactamente 6 logos visibles (1400px - gaps) ÷ 6 */
    max-width: 165px;
    min-width: 165px; /* Asegurar ancho mínimo por defecto */
    height: 160px; /* CRÍTICO: Altura fija para el contenedor */
    max-height: 120px; /* Límite máximo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0; /* Evitar que se encoja en el carrusel */
}

/* Logos con dimensiones personalizadas - Mayor especificidad */
.vlc-logo-carousel .swiper-slide .vlc-logo-item.vlc-has-custom-size {
    width: fit-content !important; /* Ajustar al contenido */
    max-width: none !important; /* Sin límite máximo de ancho */
    min-width: 80px !important; /* Mínimo absoluto (solo padding) */
    height: auto !important; /* Permitir altura dinámica */
    max-height: 200px !important; /* Límite razonable para logos custom */
    min-height: 120px; /* 80px de contenido + 40px de padding */
}

/* La imagen dentro determinará el ancho real */
.vlc-logo-item.vlc-has-custom-size .vlc-logo-image {
    /* Los estilos inline en la imagen determinarán el tamaño */
    width: auto;
    height: auto;
    /* NO usar !important en max-width para que inline styles funcionen */
    max-height: 160px !important; /* Límite de altura (200px - 40px padding) */
}

.vlc-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Logos con enlace tienen cursor pointer */
.vlc-logo-item.vlc-logo-clickeable {
    cursor: pointer;
}

/* Logo Link */
.vlc-logo-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.vlc-logo-image {
    width: auto; /* Ancho natural de la imagen */
    max-width: 100%; /* No exceder el contenedor */
    height: auto;
    max-height: 100px; /* Altura máxima = 120px contenedor - 40px padding */
    object-fit: contain; /* Mantener proporciones */
    transition: all 0.3s ease;
    display: block; /* Evita espacios extra */
}

.vlc-logo-item:hover .vlc-logo-image {
    transform: scale(1.05);
}

/* Indicador visual para logos clickeables - Estilo Glassmorphism */
.vlc-logo-item.vlc-logo-clickeable::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

.vlc-logo-item.vlc-logo-clickeable::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232795F8"><path d="M16.0037 9.41421L7.39712 18.0208L5.98291 16.6066L14.5895 8H7.00373V6H18.0037V17H16.0037V9.41421Z"></path></svg>');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.vlc-logo-item.vlc-logo-clickeable:hover::after {
    opacity: 1;
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.vlc-logo-item.vlc-logo-clickeable:hover::before {
    opacity: 1;
}

/* Navigation Arrows - Estilo de Testimonios */
.vlc-navigation {
    position: absolute;
    top: 32%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

.vlc-nav-prev,
.vlc-nav-next {
    background: #2795F8;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(39, 149, 248, 0.4);
    transition: all 0.3s ease;
    color: #fff;
    pointer-events: all;
    position: absolute;
}

.vlc-nav-prev {
    left: -70px;
}

.vlc-nav-next {
    right: -70px;
}

.vlc-nav-prev svg,
.vlc-nav-next svg {
    width: 24px;
    height: 24px;
}

.vlc-nav-prev:hover,
.vlc-nav-next:hover {
    background: #D60772;
    box-shadow: 0 6px 16px rgba(214, 7, 114, 0.5);
    transform: scale(1.1);
}

.vlc-nav-prev:active,
.vlc-nav-next:active {
    transform: scale(0.95);
}

.vlc-nav-prev.swiper-button-disabled,
.vlc-nav-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.vlc-nav-prev.swiper-button-disabled:hover,
.vlc-nav-next.swiper-button-disabled:hover {
    background: #2795F8;
    transform: scale(1);
}

/* Responsive Navigation */
@media (max-width: 1200px) {
    .vlc-nav-prev {
        left: -50px;
    }
    
    .vlc-nav-next {
        right: -50px;
    }
}

@media (max-width: 1024px) {
    .vlc-nav-prev,
    .vlc-nav-next {
        width: 48px;
        height: 48px;
    }
    
    .vlc-nav-prev svg,
    .vlc-nav-next svg {
        width: 20px;
        height: 20px;
    }
    
    .vlc-nav-prev {
        left: -35px;
    }
    
    .vlc-nav-next {
        right: -35px;
    }
}

/* Pagination */
.vlc-pagination {
    margin-top: 40px !important;
    position: relative !important;
}

.vlc-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c3c4c7;
    opacity: 1;
    transition: all 0.3s ease;
}

.vlc-pagination .swiper-pagination-bullet-active {
    background: #2795F8;
    width: 24px;
    border-radius: 5px;
}

/* Empty State */
.vlc-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: #f6f7f7;
    border-radius: 12px;
    border: 2px dashed #c3c4c7;
}

.vlc-empty-message p {
    font-size: 18px;
    color: #646970;
    margin-bottom: 20px;
}

.vlc-empty-message .button {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vlc-empty-message .button:hover {
    background: #135e96;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .vlc-carousel-container {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .vlc-carousel-wrapper {
        padding: 40px 0;
    }
    
    .vlc-carousel-container {
        padding: 0 60px; /* Más espacio para las flechas en mobile */
    }
    
    .vlc-logo-item {
        padding: 15px;
    }
    
    .vlc-navigation {
        display: block !important;
        visibility: visible !important;
        z-index: 100 !important;
    }
    
    .vlc-nav-prev,
    .vlc-nav-next {
        width: 44px;
        height: 44px;
        opacity: 1 !important;
        display: flex !important;
        visibility: visible !important;
        z-index: 101 !important;
        background: rgba(39, 149, 248, 0.95) !important; /* Más sólido en mobile */
        box-shadow: 0 4px 16px rgba(39, 149, 248, 0.6) !important;
    }
    
    .vlc-nav-prev svg,
    .vlc-nav-next svg {
        width: 20px;
        height: 20px;
        min-width: 20px !important;
        min-height: 20px !important;
        display: block !important;
        fill: currentColor;
        flex-shrink: 0;
    }
    
    .vlc-nav-prev {
        left: 8px; /* Más cerca del borde */
    }
    
    .vlc-nav-next {
        right: 8px; /* Más cerca del borde */
    }
}

@media (max-width: 480px) {
    .vlc-carousel-container {
        padding: 0 60px; /* Mantener el espacio para las flechas */
    }
    
    .vlc-logo-item {
        padding: 10px;
    }
    
    .vlc-nav-prev,
    .vlc-nav-next {
        width: 40px;
        height: 40px;
    }
    
    .vlc-nav-prev svg,
    .vlc-nav-next svg {
        width: 18px;
        height: 18px;
    }
    
    .vlc-nav-prev {
        left: 8px;
    }
    
    .vlc-nav-next {
        right: 8px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vlc-logo-item {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   UI CONFIGURATION OPTIONS
   ========================================== */

/* Grayscale Default - Logos en B&W, color al hover */
.vlc-carousel-wrapper.vlc-grayscale-enabled .vlc-logo-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

.vlc-carousel-wrapper.vlc-grayscale-enabled .vlc-logo-item:hover .vlc-logo-image {
    filter: grayscale(0%);
    opacity: 1;
}

/* Cuando NO está activado, mostrar logos en color */
.vlc-carousel-wrapper:not(.vlc-grayscale-enabled) .vlc-logo-image {
    filter: grayscale(0%);
    opacity: 1;
}

/* Square Cards - Aspecto cuadrado 1:1 */
.vlc-carousel-wrapper.vlc-square-cards .vlc-logo-item:not(.vlc-has-custom-size) {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vlc-carousel-wrapper.vlc-square-cards .vlc-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Container Sin Sombra - Logos individuales SIN background y box-shadow */
.vlc-carousel-wrapper:not(.vlc-with-container) .vlc-logo-item {
    background: transparent;
    box-shadow: none;
    padding: 20px; /* Mantener el mismo padding para conservar el tamaño */
}

/* Container CON Sombra - Logos individuales con background y box-shadow (default) */
.vlc-carousel-wrapper.vlc-with-container .vlc-logo-item {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.vlc-carousel-wrapper.vlc-with-container .vlc-logo-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Pause on Hover - Se maneja en JavaScript pero agregamos clase de soporte */
.vlc-carousel-wrapper.vlc-pause-on-hover .vlc-logo-carousel {
    cursor: grab;
}

.vlc-carousel-wrapper.vlc-pause-on-hover .vlc-logo-carousel:active {
    cursor: grabbing;
}

/* Responsive para container con shadow */
@media (max-width: 1024px) {
    .vlc-carousel-wrapper.vlc-with-container .vlc-carousel-container {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .vlc-carousel-wrapper.vlc-with-container .vlc-carousel-container {
        padding: 20px 30px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .vlc-carousel-wrapper.vlc-with-container .vlc-carousel-container {
        padding: 15px 20px;
    }
}

/* Responsive para anchos de logos en scroll continuo */
/* Laptop: 5 logos (1024-1365px) */
@media (max-width: 1365px) {
    .vlc-logo-item:not(.vlc-has-custom-size) {
        width: 185px; /* Exactamente 5 logos visibles */
        max-width: 185px;
        min-width: 185px;
    }
}

/* Tablet: 4 logos (768-1023px) */
@media (max-width: 1023px) {
    .vlc-logo-item:not(.vlc-has-custom-size) {
        width: 170px; /* Exactamente 4 logos visibles */
        max-width: 170px;
        min-width: 170px;
    }
}

/* Mobile: 3 logos (321-767px) */
@media (max-width: 767px) {
    .vlc-logo-item:not(.vlc-has-custom-size) {
        width: 210px; /* Exactamente 3 logos visibles */
        max-width: 210px;
        min-width: 210px;
    }
}

/* XS: 2 logos (≤320px) */
@media (max-width: 480px) {
    .vlc-logo-item:not(.vlc-has-custom-size) {
        width: 140px; /* 2 logos completos visibles */
        max-width: 140px;
        min-width: 140px;
    }
}
