:root {
            --primary: #040a34;
            --secondary: #fabb17;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
            background-color: #fff;
        }
        
        nav ul li a.active,
        nav ul li a:hover {
            color: #FFC107; /* o el color que uses para el hover/activo */
            border-bottom: 2px solid #FFC107;
        }

        /* Resultados de búsqueda */
.resultados-busqueda {
    background: #e8f0fe;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.resultados-busqueda i {
    color: #1a4d2c;
}

.resultados-busqueda .total-resultados {
    color: #666;
    font-size: 0.85rem;
}

.resultados-busqueda .limpiar-busqueda {
    margin-left: auto;
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    transition: all 0.2s;
}

.resultados-busqueda .limpiar-busqueda:hover {
    background: rgba(231, 76, 60, 0.1);
}

        /* Header y Navegación */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(4, 10, 52, 0.95);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        
        .logo img {
            height: 100%; /* Ajusta el tamaño según necesites */
            width: auto;
            display: block;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 2rem;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
            padding: 0.5rem 0;
        }
        
        nav ul li a:hover,
        nav ul li a.active {
            color: var(--secondary);
        }
        
        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--secondary);
            transition: width 0.3s;
        }
        
        nav ul li a:hover::after,
        nav ul li a.active::after {
            width: 100%;
        }
        
        .menu-toggle {
            display: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* Slider */
        .slider {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }
        
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 1s ease;
        }
        
        .slide.active {
            opacity: 1;
        }
        
        .slide-content {
             /*ORIGINAL background-color: rgba(4, 10, 52, 0.85);*/
            color: white;
            padding: 2.5rem; 
            max-width: 1000px; /*max-width: 800px;*/
            text-align: center;
            border-radius: 8px;
            transform: translateY(50px);
            transition: transform 0.5s ease;
            margin: 0 20px;
        }
        
        .slide.active .slide-content {
            transform: translateY(0);
        }
        
        .slide-content h2 {
            font-size: 3.5rem;  /*ORIGINAL font-size: 2.5rem; */
            margin-bottom: 1.2rem;
            color: var(--secondary);
        }
        
        .slide-content p {
            font-size: 1.25rem;
            margin-bottom: 1.8rem;
            line-height: 1.8;
        }
        
        .slide-indicators {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
        }
        
        .indicator {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            margin: 0 8px;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
        }
        
        .indicator.active {
            background-color: var(--secondary);
            transform: scale(1.2);
        }
        
        /* Secciones Generales */
        section {
            padding: 8rem 5% 6rem;
            min-height: 50vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 4rem;
            width: 100%;
        }
        
        .section-header h2 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 1.2rem;
            position: relative;
            display: inline-block;
        }
        
        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 5px;
            background-color: var(--secondary);
            border-radius: 3px;
        }
        
        .section-header p {
            color: var(--gray);
            max-width: 800px;
            margin: 1.5rem auto 0;
            font-size: 1.25rem;
        }
        
        /* Sección Nosotros */
        .nosotros-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        
        .nosotros-img {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            height: 500px;
            /* background: linear-gradient(45deg, var(--primary), #0c1a5e); CAPA TRANSPARENTE SOBRE LA IMAGEN */
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.8rem;
            text-align: center;
            padding: 2rem;
            position: relative;
        }
        
        .nosotros-img::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('../img/frontis.webp') center/cover;
            /*opacity: 0.8;*/
        }
        
        .nosotros-text {
            padding: 1rem;
        }
        
        .nosotros-item {
            margin-bottom: 3rem;
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transition: transform 0.3s;
        }
        
        .nosotros-item:hover {
            transform: translateY(-10px);
        }
        
        .nosotros-item h3 {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
        }
        
        .nosotros-item h3 i {
            color: var(--secondary);
            margin-right: 12px;
            font-size: 2rem;
        }
        
        .nosotros-item p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #555;
        }
        
        /* Sección Noticias - Actualizada con paginación */
        #noticias {
            background-color: #f8f9fa;
        }
        
        .noticias-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
            margin-bottom: 2rem;
        }
        
        .noticia-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .noticia-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }
        
        .noticia-img {
            height: 220px;
            background: linear-gradient(45deg, var(--primary), #0c1a5e);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            position: relative;
            overflow: hidden;
        }
        
        .noticia-img::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
    
            opacity: 0.8;
        }
        
        .noticia-content {
            padding: 2rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .noticia-content h3 {
            color: var(--primary);
            margin-bottom: 0.8rem;
            font-size: 1.5rem;
            line-height: 1.4;
        }
        
        .noticia-date {
            color: var(--secondary);
            font-weight: 700;
            margin-bottom: 1rem;
            display: block;
            font-size: 1.1rem;
        }
        
        .noticia-content p {
            color: var(--gray);
            margin-bottom: 1.8rem;
            flex-grow: 1;
            line-height: 1.7;
        }
        
        .btn {
            display: inline-block;
            background-color: var(--secondary);
            color: var(--primary);
            padding: 0.9rem 2rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s;
            border: 2px solid var(--secondary);
            font-size: 1.1rem;
            align-self: flex-start;
        }
        
        .btn:hover {
            background-color: transparent;
            color: var(--secondary);
            transform: translateY(-3px);
        }
        
        /* Paginación */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            gap: 0.5rem;
        }
        
        .page-btn {
            background: var(--primary);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        .page-btn:hover:not(.active) {
            background: var(--secondary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background: var(--secondary);
            color: var(--primary);
            transform: scale(1.1);
        }
        
        .page-info {
            text-align: center;
            margin-bottom: 1rem;
            color: var(--gray);
            font-weight: 500;
            font-size: 1.1rem;
        }
        
        /* Sección Galería */
        .galeria-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }
        
        .galeria-item {
            border-radius: 12px;
            overflow: hidden;
            height: 280px;
            background: linear-gradient(45deg, var(--primary), #0c1a5e);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s;
            position: relative;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .galeria-item:hover {
            transform: scale(1.05);
        }
        
        .galeria-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
    
            opacity: 0.8;
        }

        .galeria-page-btn {
            background: var(--primary);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        .galeria-page-btn:hover:not(.active) {
            background: var(--secondary);
            color: var(--primary);
        }
        
        .galeria-page-btn.active {
            background: var(--secondary);
            color: var(--primary);
            transform: scale(1.1);
        }
        
        /* Sección Contacto */
        #contacto {
            background-color: #f8f9fa;
        }
        
        .contacto-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }
        
        .contacto-info {
            margin-bottom: 2rem;
        }
        
        .contacto-info h3 {
            color: var(--primary);
            margin-bottom: 2rem;
            font-size: 2rem;
        }
        
        .contacto-detail {
            display: flex;
            margin-bottom: 2rem;
            align-items: flex-start;
        }
        
        .contacto-detail i {
            color: var(--secondary);
            font-size: 1.8rem;
            margin-right: 1.5rem;
            min-width: 40px;
        }
        
        .contacto-detail div h4 {
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
        }
        
        .contacto-detail div p {
            color: var(--gray);
            font-size: 1.1rem;
            line-height: 1.7;
        }
        
        .contacto-form .form-group {
            margin-bottom: 1.8rem;
        }
        
        .contacto-form input,
        .contacto-form textarea {
            width: 100%;
            padding: 1rem 1.2rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1.1rem;
            transition: all 0.3s;
            background: white;
        }
        
        .contacto-form input:focus,
        .contacto-form textarea:focus {
            border-color: var(--secondary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(250, 187, 23, 0.2);
        }
        
        .contacto-form textarea {
            height: 180px;
            resize: vertical;
        }
        
        .contacto-alerta {
            padding: 1rem 1.2rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            font-size: 1rem;
            text-align: center;
        }
        .contacto-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .contacto-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .mapa {
            height: 400px;
            background: linear-gradient(45deg, var(--primary), #0c1a5e);
            border-radius: 12px;
            margin-top: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }
        
        .mapa::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1579781402851-8e9d7c4c9c1c?auto=format&fit=crop&w=1950') center/cover;
            opacity: 0.8;
        }
        
        /* Footer */
        footer {
            background-color: var(--primary);
            color: white;
            padding: 4rem 5% 2rem;
            text-align: center;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
            text-align: left;
        }
        
        .footer-col h3 {
            color: var(--secondary);
            margin-bottom: 1.8rem;
            font-size: 1.6rem;
            position: relative;
            display: inline-block;
            padding-bottom: 0.8rem;
        }
        
        .footer-col h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--secondary);
        }
        
        .footer-col p {
            margin-bottom: 1.5rem;
            opacity: 0.9;
            line-height: 1.8;
            font-size: 1.1rem;
        }
        
        .social-links {
            display: flex;
            margin-top: 1.8rem;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 50%;
            margin-right: 12px;
            transition: all 0.3s;
            font-size: 1.3rem;
        }
        
        .social-links a:hover {
            background-color: var(--secondary);
            color: var(--primary);
            transform: translateY(-5px);
        }
        
        .footer-col ul {
            list-style: none;
        }
        
        .footer-col ul li {
            margin-bottom: 1.2rem;
        }
        
        .footer-col ul li a {
            color: white;
            text-decoration: none;
            opacity: 0.9;
            transition: opacity 0.3s;
            display: flex;
            align-items: center;
            font-size: 1.1rem;
        }
        
        .footer-col ul li a i {
            margin-right: 12px;
            color: var(--secondary);
            font-size: 1.2rem;
        }
        
        .footer-col ul li a:hover {
            opacity: 1;
            color: var(--secondary);
            transform: translateX(5px);
        }
        
        .copyright {
            padding-top: 2.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 1.1rem;
        }
        
        .admin-btn {
            background-color: var(--secondary);
            color: var(--primary);
            padding: 1rem 2.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            display: inline-block;
            margin-top: 2rem;
            transition: all 0.3s;
            border: 2px solid var(--secondary);
            font-size: 1.1rem;
        }
        
        .admin-btn:hover {
            background-color: transparent;
            color: var(--secondary);
            transform: translateY(-3px);
        }

/*OCULATA EL TITULO EN EL MODAL*/
        #modal-titulo {
          display: none;
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .nosotros-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .nosotros-img {
                height: 400px;
            }
        }
        
        @media (max-width: 992px) {
            .menu-toggle {
                display: block;
            }
            
            nav {
                position: fixed;
                top: 100px;
                left: -100%;
                width: 80%;
                height: calc(100vh - 70px);
                background-color: var(--primary);
                transition: all 0.5s ease;
                padding: 2rem;
                padding-top: 0px !important; /*CON ESTO HACEMOS QUE QUEDE 0 MARGEN EN LA CABECERA DEL MENU AL HACER RESPONSIVE*/

            }
            
            nav.active {
                left: 0;
            }
            
            nav ul {
                flex-direction: column;
            }
            
            nav ul li {
                margin: 1.8rem 0;
            }
            
            .slide-content h2 {
                font-size: 2.2rem;
            }
            
            .section-header h2 {
                font-size: 2.2rem;
            }
            
            .contacto-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
        }
        
        @media (max-width: 768px) {
            .slide-content {
                padding: 2rem;
                margin: 0 1rem;
            }
            
            .slide-content h2 {
                font-size: 2rem;
            }
            
            .slide-content p {
                font-size: 1.1rem;
            }
            
            .nosotros-img {
                height: 350px;
            }
            
            .noticias-container {
                grid-template-columns: 1fr;
            }
            
            .galeria-container {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        @media (max-width: 576px) {
            section {
                padding: 6rem 5% 4rem;
            }
            
            .section-header h2 {
                font-size: 2rem;
            }
            
            .section-header p {
                font-size: 1.1rem;
            }
            
            .slide-content h2 {
                font-size: 1.8rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .footer-col h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .social-links {
                justify-content: center;
            }
            
            .galeria-container {
                grid-template-columns: 1fr;
            }
        }

/* ===== SECCIÓN ADMISION ===== */
.main.style2 {
    background-color: #333;
    color: rgba(255, 255, 255, 0.85);

    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url("../img/admision/admision.webp");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Contenedor principal */
#admision .section-header {
    max-width: 1400px;
    width: 90%;
    margin: auto;
    padding: 80px 20px;
    padding-left: 45px;
    text-align: left !important; /* fuerza alineación */
    position: relative;
}

/* Línea vertical amarilla */
#admision .section-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background-color: #FFC107;
    border-radius: 3px;
}

/* Título */
#admision .section-header h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 2.2rem;
    text-align: left !important; /*  clave */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Texto */
#admision .section-header p {
    color: #ffffff;
    text-align: justify !important; /* clave */
    line-height: 1.5;
    margin: 0; /* elimina centrado automático */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}       

#admision .section-header h2 {
    border: none !important;
}

#admision .section-header h2::after {
    display: none !important;
    content: none !important;
}

/* Layout en columnas */
.admision-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Texto ocupa más espacio */
.admision-texto {
    flex: 2;
}

/* Botón alineado a la derecha */
.admision-boton {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Botón estilo destacado */
.admision-boton .btn {
    background: #FFC107;
    color: #000;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admision-boton .btn:hover {
    background: #fff;
    color: #FFC107;
}

@media (max-width: 768px) {
    .admision-flex {
        flex-direction: column;
        text-align: center;
    }

    #admision .section-header {
        padding-left: 20px;
    }

    #admision .section-header::before {
        display: none; /* opcional en móvil */
    }
}

/* Formato de la expresion CONOZCANOS MAS */
p a {
    color: rgba(4, 10, 52, 0.95);
    font-weight: bold;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}


/* Estilos para la franja de logos colaboradores */
/* Estilos para la franja de logos colaboradores */
.logos-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 5%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logos-container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    flex: 0 1 auto;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.logo-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo-item span {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.logo-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #ddd, transparent);
}

/* Responsive - Centrado y reducción de tamaño */
@media (max-width: 992px) {
    .logos-container {
        gap: 2rem;
    }
    
    .logo-item img {
        height: 70px;
    }
    
    .logo-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .logos-banner {
        padding: 1.5rem 1rem;
    }
    
    .logos-container {
        gap: 1.8rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .logo-divider {
        display: none;
    }
    
    .logo-item {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .logo-item img {
        height: 60px;
        width: auto;
        margin: 0 auto;
    }
    
    .logo-item span {
        font-size: 0.75rem;
        margin-top: 0.6rem;
        text-align: center;
        display: block;
    }
}

@media (max-width: 576px) {
    .logos-banner {
        padding: 1.2rem 0.75rem;
    }
    
    .logos-container {
        gap: 1.5rem;
    }
    
    .logo-item {
        max-width: 220px;
    }
    
    .logo-item img {
        height: 50px;
    }
    
    .logo-item span {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logos-banner {
        padding: 1rem 0.5rem;
    }
    
    .logos-container {
        gap: 1.2rem;
    }
    
    .logo-item {
        max-width: 200px;
    }
    
    .logo-item img {
        height: 45px;
    }
    
    .logo-item span {
        font-size: 0.65rem;
        margin-top: 0.4rem;
    }
}

@media (max-width: 375px) {
    .logo-item {
        max-width: 180px;
    }
    
    .logo-item img {
        height: 40px;
    }
    
    .logo-item span {
        font-size: 0.6rem;
    }
}

@media (max-width: 320px) {
    .logo-item {
        max-width: 160px;
    }
    
    .logo-item img {
        height: 35px;
    }
    
    .logo-item span {
        font-size: 0.55rem;
    }
}


/* ============================================
   LAZY LOADING STYLES
   ============================================ */

/* Efecto de fade-in para imágenes cargadas */
.lazy-image,
.lazy-bg {
    transition: opacity 0.3s ease-in-out;
    opacity: 0.8;
}

.lazy-image.loaded,
.lazy-bg.loaded {
    opacity: 1;
}

/* Placeholder shimmer effect (opcional) */
.lazy-image:not(.loaded),
.lazy-bg:not(.loaded) {
    position: relative;
    overflow: hidden;
}

.lazy-image:not(.loaded)::before,
.lazy-bg:not(.loaded)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Indicador de error de carga */
.lazy-image.lazy-error,
.lazy-bg.lazy-error {
    opacity: 0.5;
    filter: grayscale(1);
}

.lazy-image.lazy-error::after,
.lazy-bg.lazy-error::after {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
}

/* Ajustes para noticias */
.noticia-img.lazy-bg {
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-size: cover !important;
    background-position: center !important;
}

/* Ajustes para galería */
.galeria-item.lazy-bg {
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-size: cover !important;
    background-position: center !important;
}

/* Mejora para imágenes responsivas */
img.lazy-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Soporte para backdrop loading */
.lazy-loading-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lazy-loading-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}