/**
 * CSS optimizado para About Images Carousel Section
 * Incluye GPU acceleration, containment y optimizaciones de rendimiento
 */

/* Contenedor principal del carrusel */
.about-carousel {
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Inner container con GPU acceleration */
.about-carousel-inner {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slides individuales */
.about-carousel-slide {
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Imágenes optimizadas */
.about-carousel-slide img {
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Estados de carga de imágenes */
.about-lazy {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.about-lazy.loaded {
    opacity: 1;
}

/* Paginación optimizada */
.about-carousel-pagination {
    contain: layout style;
}

.about-pagination-bar {
    transition: background-color 0.2s ease-in-out;
    will-change: background-color;
    transform: translateZ(0);
}

/* Optimizaciones para móvil */
@media (max-width: 768px) {
    .about-carousel {
        touch-action: pan-y pinch-zoom;
    }
    
    .about-carousel-inner {
        transition-duration: 0.3s;
    }
}

/* Optimizaciones para dispositivos de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .about-carousel-slide img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .about-carousel-inner {
        transition: none;
    }
    
    .about-pagination-bar {
        transition: none;
    }
}

/* Optimización para modo oscuro */
@media (prefers-color-scheme: dark) {
    .about-carousel-slide img[src*="data:image/svg"] {
        filter: brightness(0.9);
    }
}