/* ========================================
   CALOOSA CARRUSEL - ESTILOS PERSONALIZADOS
   ======================================== */

/* Contenedor principal del carrusel */
.elementor-image-carousel-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 0 !important; /* Espaciado vertical */
    background: transparent !important;
}

/* Contenedor del widget */
.elementor-widget-image-carousel {
    padding: 20px 0 !important; /* Espaciado adicional */
    margin: 0 auto !important;
}

/* OCULTAR CARRUSEL INICIALMENTE PARA EVITAR FLICKERING */
.elementor-image-carousel {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* RESETEAR TODOS LOS SLIDES - JAVASCRIPT LOS CONTROLARÁ */
.elementor-image-carousel .swiper-slide {
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: opacity 0.5s ease !important;
}

/* WRAPPER DEL CARRUSEL */
.elementor-image-carousel .swiper-wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Imágenes dentro de los slides - FORZAR ALTA RESOLUCIÓN */
.elementor-image-carousel .swiper-slide-image {
    width: 100% !important;
    height: 100% !important;
    
    object-fit: cover !important; /* Mantener proporción sin distorsión */
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
    /* Forzar uso de imágenes de alta resolución */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    image-rendering: pixelated !important;
}

/* OVERRIDE: Usar imágenes originales en lugar de thumbnails */
.elementor-image-carousel .swiper-slide a[href*=".jpg"] {
    background-image: none !important;
}

/* Mejorar calidad de imagen */
.elementor-image-carousel .swiper-slide-image {
    filter: none !important;
    -webkit-filter: none !important;
    transform: translateZ(0) !important; /* Forzar aceleración por hardware */
}

/* Hover effect en las imágenes */
.elementor-image-carousel .swiper-slide:hover .swiper-slide-image {
    transform: scale(1.05) !important;
}

/* Contenedor interno del slide */
.elementor-image-carousel .swiper-slide-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Enlaces de las imágenes */
.elementor-image-carousel .swiper-slide a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Botones de navegación - MEJORAR VISIBILIDAD */
.elementor-swiper-button {
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.elementor-swiper-button:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
}

/* DESKTOP: CARRUSEL A UN LADO, SOLO 1 SLIDE */
@media (min-width: 769px) {
    .elementor-image-carousel .swiper-slide-active {
        max-width: 600px !important;
        height: 400px !important;
        margin: 20px 0 !important; /* SIN CENTRADO - A UN LADO */
        padding: 0 20px !important;
    }
    
    .elementor-image-carousel .swiper-wrapper {
        justify-content: flex-start !important; /* A LA IZQUIERDA */
        align-items: center !important;
        display: flex !important;
    }
    
    .elementor-widget-image-carousel {
        justify-content: flex-start !important; /* A LA IZQUIERDA */
    }
}

/* MÓVIL: CARRUSEL CENTRADO, SOLO 1 SLIDE */
@media (max-width: 768px) {
    .elementor-image-carousel .swiper-slide-active {
        max-width: 90% !important;
        height: 350px !important;
        margin: 15px auto !important; /* CENTRADO AUTOMÁTICO */
        padding: 0 15px !important;
    }
    
    .elementor-image-carousel .swiper-wrapper {
        justify-content: center !important; /* CENTRADO */
        align-items: center !important;
        display: flex !important;
    }
    
    .elementor-widget-image-carousel {
        justify-content: center !important; /* CENTRADO */
    }
    
    .elementor-swiper-button {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .elementor-image-carousel .swiper-slide-active {
        max-width: 95% !important;
        height: 300px !important;
        margin: 10px auto !important; /* CENTRADO AUTOMÁTICO */
        padding: 0 10px !important;
    }
    
    .elementor-image-carousel .swiper-wrapper {
        justify-content: center !important; /* CENTRADO */
        align-items: center !important;
        display: flex !important;
    }
    
    .elementor-widget-image-carousel {
        justify-content: center !important; /* CENTRADO */
    }
}

/* OVERRIDE DE ELEMENTOR - FORZAR TAMAÑOS */
.elementor-widget-image-carousel .elementor-image-carousel-wrapper {
    overflow: visible !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.elementor-widget-image-carousel .swiper {
    overflow: visible !important;
    max-width: 100% !important;
}
/* FORZAR 1 SLIDE VISIBLE */
.elementor-image-carousel .swiper-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* CENTRAR EL CARRUSEL */
.elementor-widget-image-carousel {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
/* MEJORAR ESPACIADO ENTRE SLIDES */
.elementor-image-carousel .swiper-wrapper {
    align-items: center !important;
}

/* SOMBRA EN LAS IMÁGENES */
.elementor-image-carousel .swiper-slide-image {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}.elementor-image-carousel .swiper-slide:hover .swiper-slide-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}




