/* ===== NAVBAR ===== */
.navbar-solid,
.navbar.navbar-expand-lg.navbar-dark.navbar-solid {
    background: #FF6E1D !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: 120px !important;
    z-index: 1000 !important;
    transition: transform 0.3s ease !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Espacio para navbar en móviles */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px !important;
    }
    .hero {
        min-height: 100px;
    }
    h1 {
        font-size: 1.8rem;
    }
}

/* Espacio para navbar en secciones */
section:not(.hero-section),
.py-5 {
    padding-top: 140px !important;
}

/* ===== HERO/CAROUSEL ===== */
.hero-section .carousel-fullscreen,
.carousel-fullscreen {
    position: relative;
    height: 100vh !important;
    min-height: 100vh;
    max-height: 100vh;
    width: 100% !important;
    overflow: hidden;
}

.carousel-fullscreen .carousel-inner,
.carousel-fullscreen .carousel-item {
    height: 100vh !important;
    min-height: 100vh;
    max-height: 100vh;
    width: 100% !important;
    position: relative;
    overflow: hidden;
    background-color: #0C713A;
}

.carousel-fullscreen .carousel-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.carousel-fullscreen .carousel-item img,
div#carouselHuaral.carousel.slide.carousel-fullscreen.carousel-fade .carousel-item img {
    width: 100% !important;
    height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0; left: 0;
    z-index: 1;
    display: block !important;
    min-width: 100% !important;
    min-height: 100vh !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    transform: none !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.carousel-fullscreen .carousel-caption {
    bottom: 25%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    z-index: 3;
}

.carousel-fullscreen .carousel-caption h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1.5s;
}

.carousel-fullscreen .carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s;
}

.carousel-fullscreen .carousel-caption .btn {
    animation: fadeInUp 2s;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-fullscreen .carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.carousel-fullscreen::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 30%;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.carousel-fullscreen .carousel-control-prev,
.carousel-fullscreen .carousel-control-next,
.carousel-fullscreen .carousel-indicators {
    z-index: 3;
    width: 10%;
    opacity: 0.7;
}

.carousel-fullscreen .carousel-control-prev:hover,
.carousel-fullscreen .carousel-control-next:hover {
    opacity: 1;
}

/* Animaciones */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}

/* Responsive carousel caption */
@media (max-width: 992px) {
    .carousel-fullscreen .carousel-caption h2 { font-size: 2.5rem;}
    .carousel-fullscreen .carousel-caption p { font-size: 1.2rem;}
    .carousel-fullscreen .carousel-caption .btn { padding: 8px 20px;}
}
@media (max-width: 576px) {
    .carousel-fullscreen .carousel-caption h2 { font-size: 1.8rem;}
    .carousel-fullscreen .carousel-caption p { font-size: 1rem; margin-bottom: 1rem;}
    .carousel-fullscreen .carousel-caption { bottom: 20%; padding-left: 15px; padding-right: 15px;}
}

/* ===== BOTONES Y LINKS ===== */
a { transition: all 0.3s ease; }
.btn-primary {
    background-color: #2FA84E;
    border-color: #2FA10E;
}
.btn-primary:hover {
    background-color: #fa6759;
    border-color: #f68b82;
}
.text-primary { color: #0C713A !important; }
.btn-outline-success {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}
.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* ===== CARDS ===== */
.card-centro {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 20px;
    height: 100%;
}
.card-centro:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.card-centro .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card-centro:hover .card-img-top { transform: scale(1.05);}
.card-centro .card-body { padding: 1.5rem;}
.card-centro .card-title { color: #0C713A; font-weight: 600; margin-bottom: 0.75rem;}
.card-centro .card-text { color: #666; line-height: 1.6;}
.card-centro .card-footer {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #f0f0f0;
}
.card-centro .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.card-centro .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 113, 58, 0.3);
}
.card-img-top { height: 200px; object-fit: cover; }
.fade-in { animation: fadeIn 1s ease-in; }
@media (max-width: 768px) {
    .card-centro { margin-bottom: 2rem;}
    .card-centro .card-img-top { height: 180px;}
}

/* ===== CENTROS TURÍSTICOS BANNER ===== */
.centros-banner {
    background: linear-gradient(135deg, #0C713A 0%, #1a8f4e 50%, #2ecc71 100%);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.centros-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.centros-banner .container { position: relative; z-index: 2;}
.centros-banner h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}
.centros-banner .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease-out;
}
.centros-banner img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInRight 1.5s ease-out;
}
@media (max-width: 768px) {
    .centros-banner { text-align: center; padding: 3rem 0;}
    .centros-banner h1 { font-size: 2.5rem;}
    .centros-banner .lead { font-size: 1.1rem;}
}

/* ===== CENTRO INFO CARD ===== */
.centro-info-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}
.centro-info-card .card-header {
    background: linear-gradient(135deg, #0C713A, #1a8f4e);
    border: none;
    padding: 1.5rem;
}
.centro-info-card .card-header h4 { margin: 0; font-weight: 600;}
.centro-info-card .list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
}
.centro-info-card .list-group-item:last-child { border-bottom: none;}
.centro-info-card .list-group-item strong { color: #0C713A; }

/* ===== ACTIVIDADES ===== */
.activity-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.activity-item:hover {
    border-left-color: #28a745;
    background-color: #f8fff9 !important;
    transform: translateX(5px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.breadcrumb-item a {
    color: #0C713A;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item.active {
    color: #666;
    font-weight: 600;
}

/* ===== BADGE ANIMADO ===== */
.badge { animation: pulse 2s infinite;}
@keyframes pulse {
    0% { transform: scale(1);}
    50% { transform: scale(1.05);}
    100% { transform: scale(1);}
}
.card-centro:hover .badge {
    animation: none;
    transform: scale(1.1);
}

/* ===== ICONOS ===== */
.fas { transition: all 0.3s ease;}
.card:hover .fas { transform: scale(1.1);}

/* ===== MAPA INTERACTIVO ===== */
.map-overlay {
    top: 120px;
    left: 0;
    z-index: 5;
    pointer-events: none;
    gap: 2rem;
    margin-top: 2rem;
}
.district-buttons-container {
    pointer-events: auto;
    gap: 0.5rem !important;
}
.district-button {
    min-width: 150px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto;
    padding: 10px 15px;
    margin: 2px;
    border-radius: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.district-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.interactive-map-container {
    pointer-events: auto;
    filter: blur(0.5px);
    transition: filter 0.3s ease;
}
.interactive-map-container:hover { filter: blur(0.2px);}
.map-background { opacity: 0.8; transition: opacity 0.3s ease;}
.district-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    filter: blur(0.5px);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}
.district-overlay.active {
    opacity: 1 !important;
    filter: blur(0px) !important;
}
.map-overlay h1 {
    color: #fff !important;
    font-size: 4rem !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 0 0 15px rgba(255,255,255,0.4);
    animation: titleGlow 3s ease-in-out infinite alternate;
}
.map-overlay p {
    color: #fff !important;
    font-size: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
@keyframes titleGlow {
    0% { text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 0 0 15px rgba(255,255,255,0.4);}
    100% { text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 0 0 25px rgba(255,255,255,0.7);}
}
.buttons-grid { display: flex; gap: 0.5rem;}
.buttons-column { display: flex; flex-direction: column; gap: 0.5rem; flex: 1;}
@media (max-width: 992px) {
    .map-overlay {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }
    .district-buttons-container {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 600px !important;
    }
    .buttons-grid {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    .buttons-column {
        flex-direction: row !important;
        justify-content: center;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }
    .interactive-map-container {
        width: 90vw !important;
        max-width: 450px !important;
        height: 300px !important;
        min-width: 280px !important;
        min-height: 200px !important;
        margin: 0 auto !important;
    }
    .map-overlay h1 { font-size: 2.5rem !important; text-align: center !important;}
    .map-overlay p { font-size: 1.2rem !important; text-align: center !important;}
}
@media (max-width: 768px) {
    .interactive-map-container {
        width: 95vw !important;
        height: 250px !important;
        min-width: 250px !important;
        min-height: 180px !important;
    }
    .district-button {
        min-width: 130px !important;
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }
    .map-overlay h1 { font-size: 2rem !important;}
    .map-overlay p { font-size: 1.1rem !important;}
}
@media (max-width: 576px) {
    .interactive-map-container {
        width: 98vw !important;
        height: 220px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
    }
    .district-button {
        min-width: 110px !important;
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }
    .district-buttons-container { gap: 0.5rem !important;}
    .map-overlay h1 { font-size: 1.75rem !important;}
    .map-overlay p { font-size: 1rem !important;}
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.whatsapp-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}
.whatsapp-link:hover::before { opacity: 1;}
.whatsapp-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-icon {
    font-size: 28px;
    color: white;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}
.whatsapp-link:hover .whatsapp-icon { transform: scale(1.1);}
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}
@keyframes whatsappPulse {
    0% { transform: scale(1);}
    50% { transform: scale(1.05);}
    100% { transform: scale(1);}
}
@media (max-width: 768px) {
    .whatsapp-float { bottom: 15px; right: 15px;}
    .whatsapp-link { width: 55px; height: 55px;}
    .whatsapp-icon { font-size: 24px;}
    .whatsapp-tooltip { display: none;}
}
@media (max-width: 480px) {
    .whatsapp-float { bottom: 10px; right: 10px;}
    .whatsapp-link { width: 50px; height: 50px;}
    .whatsapp-icon { font-size: 22px;}
}

/* ===== MENÚ MODERNO ===== */
.logo-container {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.3s ease;
}
.logo-container:hover { box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);}

/* Logo con tamaños responsive */
.navbar-logo {
    width: 110px;
    height: 110px;
    transition: transform 0.3s ease !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-container img {
    transition: transform 0.3s ease !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.logo-container:hover img { transform: scale(1.05) translateZ(0);}
.logo-glow {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 187, 0, 0.3), rgba(255, 110, 29, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}
.logo-container:hover .logo-glow { opacity: 1;}
.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
}
.menu-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.menu-link:hover {
    color: #FBBC00 !important;
    transform: translateY(-2px);
}
.menu-link.active {
    color: #FBBC00 !important;
    font-weight: 700;
}
.link-hover-effect {
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: #FBBC00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(251, 188, 0, 0.5);
}
.menu-link:hover .link-hover-effect,
.menu-link.active .link-hover-effect {
    width: 80%;
    box-shadow: 0 0 15px rgba(251, 188, 0, 0.7);
}
.social-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}
.social-link:hover {
    color: #FBBC00;
    transform: translateY(-3px);
    background: rgba(251, 188, 0, 0.1);
    border-color: #FBBC00;
    box-shadow: 0 0 15px rgba(251, 188, 0, 0.3);
}
/* Ajustes para tablets y móviles */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(255, 110, 29, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    .menu-link { text-align: center; padding: 0.75rem !important;}
    .social-icons { justify-content: center; margin-top: 1rem;}
}

/* Ajustes específicos para móviles - Navbar más compacto */
@media (max-width: 768px) and (min-width: 577px) {
    /* Reducir altura del navbar */
    .navbar-solid,
    .navbar.navbar-expand-lg.navbar-dark.navbar-solid {
        min-height: 90px !important;
    }
    
    /* Logo más pequeño en móviles */
    .navbar-logo,
    .logo-container img {
        width: 75px !important;
        height: 75px !important;
    }
    
    /* Ajustar texto de marca si existe */
    .brand-text {
        font-size: 1rem;
        line-height: 1.15;
    }
    
    /* Ajustar espaciado del navbar brand */
    .navbar-brand {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    /* Ajustar botón hamburguesa */
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    /* Ajustar padding del logo */
    .navbar-logo {
        padding: 0.35rem !important;
    }
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 576px) {
    /* Navbar aún más compacto */
    .navbar-solid,
    .navbar.navbar-expand-lg.navbar-dark.navbar-solid {
        min-height: 75px !important;
    }
    
    /* Logo más pequeño */
    .navbar-logo,
    .logo-container img {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Reducir aún más el padding del logo */
    .navbar-logo {
        padding: 0.3rem !important;
    }
    
    /* Ocultar texto de marca en móviles muy pequeños */
    .brand-text {
        font-size: 0.85rem;
    }
    
    /* Ajustar padding del container */
    #mainNavbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Reducir margen del logo */
    .navbar-logo.me-2 {
        margin-right: 0.5rem !important;
    }
}

/* ===== OPTIMIZACIONES DE IMÁGENES Y RENDIMIENTO ===== */
img {
    max-width: 100%;
    height: auto;
}
img.lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
@keyframes loading {
    0% { background-position: 200% 0;}
    100% { background-position: -200% 0;}
}
img.lazy.loaded { opacity: 1;}
.webp .webp-support { display: block;}
.no-webp .webp-support { display: none;}
.webp .no-webp-support { display: none;}
.no-webp .no-webp-support { display: block;}
@media (max-width: 768px) { img { image-rendering: optimize-speed;}}
@media (min-width: 769px) {
    img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;}
}
.critical-image {
    content-visibility: auto;
    contain-intrinsic-size: 0 200px;
}

/* ===== PERFORMANCE ===== */
html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
.bg-primary { background-color: #0C713A !important;}
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}
.sticky-top { z-index: 100;}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
