/* ===================================
   PERFORMANCE OPTIMIZATIONS
   GPU acceleration, lazy loading hints
   =================================== */

/* === GPU ACCELERATION === */
.card,
.stat-card,
.chart-card,
.btn,
.nav-link {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* === CONTAIN PARA OPTIMIZAR LAYOUT === */
.card,
.stat-card {
    contain: layout style paint;
}

/* === OPTIMIZACIÓN DE ANIMACIONES === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === LAZY LOADING PLACEHOLDER === */
img[loading="lazy"] {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
}

/* === OPTIMIZACIÓN DE SCROLL === */
.scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* === CONTENT VISIBILITY === */
.lazy-content {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}