/* Reset y configuraciones básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Clase para screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Optimización para rendering suave */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 148px; /* header-top (48px) + main-header (100px) */
    overflow-x: hidden;
}

/* Evitar scroll cuando el lightbox está activo */
body.lightbox-active {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
    width: 100%;
}

/* Header Top Bar */
.header-top {
    background-color: #066315;
    padding: 10px 0;
    font-size: 14px;
    min-height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2001;
}

.contact-info {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2002;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    height: 28px;
}

.contact-item i {
    font-size: 14px;
    width: 14px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 28px;
    position: relative;
    z-index: 2002;
}

.social-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon.whatsapp:hover {
    background-color: #25D366;
    transform: translateY(-2px);
}

.social-icon.facebook:hover {
    background-color: #4267B2;
    transform: translateY(-2px);
}

.social-icon.instagram:hover {
    background-color: #E4405F;
    transform: translateY(-2px);
}

.social-icon.youtube:hover {
    background-color: #FF0000;
    transform: translateY(-2px);
}

/* Main Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 0;
    position: fixed;
    top: 48px; /* Después del header-top */
    left: 0;
    right: 0;
    z-index: 1500;
    height: 100px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 40px;
    overflow: visible;
    width: 100%;
}

.logo {
    margin-right: 20px;
}

.logo img {
    height: 80px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #066315;
    font-weight: 700;
    font-size: 20px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #066315;
}

.dropdown .fas {
    font-size: 12px;
}

.online-payments {
    position: relative;
    margin-left: 20px;
    padding: 8px;
    flex-shrink: 0;
}

.online-payments::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(45deg, #066315, #25D366, #066315);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.online-payments:hover::before {
    opacity: 1;
}

.btn-pagos {
    background: linear-gradient(135deg, #066315, #088a1c);
    color: white;
    padding: 14px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 99, 21, 0.3);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    display: inline-block;
}

.btn-pagos:hover {
    background: linear-gradient(135deg, #044a10, #066315);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 99, 21, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #066315;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 110px; /* Después del header-top + main-header */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 110px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1600;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateX(0) !important;
}

.mobile-nav ul {
    list-style: none;
    padding: 40px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100vh - 150px);
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(6, 99, 21, 0.1);
    margin: 0;
    width: 100%;
}

.mobile-nav li:last-child {
    border-bottom: none;
    margin-top: 20px;
}

.mobile-nav a {
    display: block;
    padding: 20px 10px;
    color: #066315;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.mobile-nav a:hover {
    background-color: rgba(6, 99, 21, 0.1);
    transform: scale(1.05);
}

.btn-pagos-mobile {
    background: linear-gradient(135deg, #066315, #088a1c) !important;
    color: white !important;
    border-radius: 30px;
    margin: 20px 20px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(6, 99, 21, 0.3) !important;
    border: none !important;
    width: calc(100% - 40px) !important;
}

.btn-pagos-mobile:hover {
    background: linear-gradient(135deg, #044a10, #066315) !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Visibility Classes */
.desktop-only {
    display: inline-flex;
}

.mobile-simplified {
    display: none;
}

.location-contact {
    display: flex;
}

.email-contact {
    display: flex;
}

/* Background Image Container */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.page-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: optimizeQuality;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -148px; /* Para que empiece desde arriba */
    padding-top: 148px; /* Para compensar el header fijo */
    z-index: 1; /* Z-index bajo para no interferir con la galería */
}

.hero-background {
    display: none; /* Ya no necesitamos este background separado */
}

.hero-overlay {
    position: fixed;
    top: 48px; /* Empieza después del header-top */
    left: 0;
    width: 100%;
    height: calc(100vh - 48px); /* Altura total menos el header-top */
    background: rgba(0, 0, 0, 0.3);
    z-index: -10; /* Z-index muy bajo para no interferir */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 100;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900; /* Máximo grosor disponible */
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3); /* Contorno sutil para más grosor */
    letter-spacing: -0.5px; /* Ajuste para compensar el grosor extra */
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: #066315;
    color: white;
}

.btn-primary:hover {
    background-color: #044a10;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #066315;
    transform: translateY(-2px);
}

/* Fixed Social Icons */
.fixed-social-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.fixed-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fixed-social:hover {
    transform: scale(1.1);
}

.fixed-social.whatsapp {
    background-color: #25D366;
}

.fixed-social.youtube {
    background-color: #FF0000;
}

.fixed-social.facebook {
    background-color: #4267B2;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Main Header Mobile Navigation */
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
    }
    
    .header-content {
        justify-content: space-between;
        gap: 0;
        width: 100%;
        padding: 0 10px;
    }
    
    .logo {
        margin-right: 0;
        flex-shrink: 0;
    }
    
    /* Mobile Navigation Full Screen */
    .mobile-nav {
        top: 148px; /* header-top (48px) + main-header (100px) */
        height: calc(100vh - 148px);
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    .mobile-nav.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hero Section Adjustments */
    .hero-section {
        margin-top: -148px;
        padding-top: 168px;
    }
}

@media (max-width: 1024px) {
    .main-nav ul {
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 18px;
    }
    
    .btn-pagos {
        font-size: 13px;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    /* Ajuste general del body para móviles */
    body {
        padding-top: 110px; /* header-top (40px) + main-header (70px) */
    }
    
    /* Header Top Simplified - Solo cambios para header-top */
    .header-top {
        padding: 8px 0;
        min-height: 40px;
    }
    
    .header-top .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    /* Solo el email se oculta en móvil, la ubicación se mantiene */
    .email-contact {
        display: none !important;
    }
    
    .location-contact {
        display: flex !important;
    }
    
    .social-icons .desktop-only {
        display: none !important;
    }
    
    .mobile-simplified {
        display: flex !important;
    }
    
    .contact-item {
        font-size: 11px;
    }
    
    .contact-item span {
        display: inline !important;
        margin-left: 5px;
    }
    
    .contact-item i {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    /* Main Header Mobile - Ajustes adicionales para pantallas pequeñas */
    .main-header {
        height: 70px;
        top: 40px;
    }
    
    .logo img {
        height: 55px;
    }
    
    /* Mobile Navigation Full Screen - Ajuste para header-top más pequeño */
    .mobile-nav {
        height: calc(100vh - 110px) !important;
    }
    
    /* Hero Section Adjustments */
    .hero-section {
        margin-top: -110px !important;
        padding-top: 110px !important;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        font-weight: 900; /* Mantener el grosor máximo en móvil */
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .fixed-social-icons {
        right: 10px;
    }
    
    .fixed-social {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Ultra Mobile Optimizations */
    body {
        padding-top: 95px; /* header-top (35px) + main-header (60px) */
    }
    
    .header-top {
        padding: 5px 0;
        min-height: 35px;
        font-size: 12px;
    }
    
    .main-header {
        height: 60px;
        top: 35px;
    }
    
    .header-content {
        padding: 0 8px;
    }
    
    .logo {
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .logo img {
        height: 45px;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 2.5px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile Navigation Full Screen */
    .mobile-nav {
        top: 62px; /* header-top (35px) + main-header (60px) */
        height: calc(100vh - 62px);
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    .mobile-nav.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-section {
        margin-top: -95px;
        padding-top: 95px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        font-weight: 900; /* Mantener el grosor máximo en móvil pequeño */
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .fixed-social-icons {
        right: 5px;
    }
    
    .fixed-social {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ========================================
   SECCIÓN NOTICIAS
   ======================================== */

.noticias-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 1;
}

.noticias-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(6,99,21,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #066315;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #066315, #28a745);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.noticias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Noticia Principal */
.noticia-principal {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 99, 21, 0.1);
}

.noticia-principal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.noticia-imagen {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-principal:hover .noticia-imagen img {
    transform: scale(1.05);
}

.noticia-categoria {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #066315;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-contenido {
    padding: 30px;
}

.noticia-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.noticia-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.noticia-meta i {
    color: #066315;
    font-size: 0.8rem;
}

.noticia-principal h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.noticia-principal p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #066315;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-leer-mas:hover {
    color: #28a745;
    transform: translateX(3px);
}

.btn-leer-mas i {
    transition: transform 0.3s ease;
}

.btn-leer-mas:hover i {
    transform: translateX(3px);
}

/* Noticias Secundarias */
.noticias-secundarias {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.noticia-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 99, 21, 0.05);
    display: flex;
    min-height: 160px;
}

.noticia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.noticia-imagen-small {
    position: relative;
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.noticia-imagen-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-imagen-small img {
    transform: scale(1.1);
}

.categoria-mantenimiento {
    background: #17a2b8;
}

.categoria-normas {
    background: #ffc107;
    color: #333;
}

.categoria-eventos {
    background: #e83e8c;
}

.categoria-seguridad {
    background: #6f42c1;
}

.noticia-contenido-small {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.noticia-contenido-small .noticia-meta {
    margin-bottom: 5px;
}

.noticia-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-leer-mas-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #066315;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-leer-mas-small:hover {
    color: #28a745;
    transform: translateX(2px);
}

.btn-leer-mas-small i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-leer-mas-small:hover i {
    transform: translateX(2px);
}

/* Footer de Noticias */
.noticias-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid #066315;
    color: #066315;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.btn.btn-outline:hover {
    background: #066315;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 99, 21, 0.3);
}

.btn.btn-outline i {
    transition: transform 0.3s ease;
}

.btn.btn-outline:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .noticias-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .noticia-imagen {
        height: 200px;
    }
    
    .noticia-contenido {
        padding: 20px;
    }
    
    .noticia-card {
        flex-direction: column;
        height: auto;
    }
    
    .noticia-imagen-small {
        width: 100%;
        height: 150px;
    }
    
    .noticia-contenido-small {
        padding: 15px;
    }
    
    .noticias-secundarias {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .noticia-principal h3 {
        font-size: 1.2rem;
    }
    
    .noticia-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .noticias-grid {
        gap: 20px;
    }
}

/* ========================================
   SECCIÓN PRIVILEGIOS
   ======================================== */

.privilegios-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a4a32 0%, #066315 25%, #28a745 50%, #066315 75%, #1a4a32 100%);
    position: relative;
    overflow: hidden;
}

.privilegios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.03) 50%, transparent 51%);
    pointer-events: none;
}

.privilegios-section .section-header h2 {
    color: white;
}

.privilegios-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.privilegios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.privilegio-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(0);
}

.privilegio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.privilegio-imagen {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.privilegio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.privilegio-card:hover .privilegio-imagen img {
    transform: scale(1.1);
}

.privilegio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 99, 21, 0.8), rgba(40, 167, 69, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.privilegio-card:hover .privilegio-overlay {
    opacity: 1;
}

.privilegio-overlay .privilegio-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.privilegio-card:hover .privilegio-overlay .privilegio-icon {
    transform: scale(1);
}

.privilegio-overlay .privilegio-icon i {
    font-size: 2rem;
    color: white;
}

.privilegio-content {
    padding: 30px;
}

.privilegio-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.privilegio-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.privilegio-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privilegio-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.privilegio-features i {
    color: #28a745;
    font-size: 0.8rem;
    width: 12px;
}

/* App Section */
.app-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 25px;
    padding: 60px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.app-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(155, 89, 182, 0.08) 0%, transparent 50%);
    animation: floatApp 8s ease-in-out infinite;
}

@keyframes floatApp {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.app-badge i {
    font-size: 1.1rem;
}

.app-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.app-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.app-features {
    list-style: none;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 0.95rem;
}

.app-features i {
    color: #3498db;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
}

.app-downloads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.app-store-btn, .google-play-btn {
    display: block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover, .google-play-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img, .google-play-btn img {
    height: 50px;
    width: auto;
}

.app-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    position: relative;
}

.phone-frame {
    position: relative;
    width: 250px;
    height: 450px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.app-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.app-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #066315, #28a745);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon i {
    color: white;
    font-size: 1.2rem;
}

.app-overlay span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* CAGUZ Section */
.caguz-section {
    background: linear-gradient(135deg, #066315 0%, #0a7a1a 100%);
    border-radius: 25px;
    padding: 60px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.caguz-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.caguz-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.caguz-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.caguz-badge i {
    font-size: 1.1rem;
    color: #4CAF50;
}

.caguz-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.caguz-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.caguz-features {
    list-style: none;
    margin-bottom: 40px;
}

.caguz-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

.caguz-features i {
    color: #4CAF50;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-caguz {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #066315;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-caguz:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-caguz i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-caguz:hover i {
    transform: scale(1.1);
}

.caguz-visual {
    position: relative;
}

.caguz-map-placeholder {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.caguz-map-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.caguz-map-placeholder img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.map-overlay i {
    color: #066315;
    font-size: 1.2rem;
}

.map-overlay span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privilegios-section {
        padding: 60px 0;
    }
    
    .privilegios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .privilegio-card {
        margin: 0 10px;
    }
    
    .privilegio-imagen {
        height: 180px;
    }
    
    .privilegio-content {
        padding: 25px 20px;
    }
    
    .privilegio-content h3 {
        font-size: 1.2rem;
    }
    
    .app-section {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .app-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .app-text h3 {
        font-size: 1.8rem;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .phone-frame {
        width: 200px;
        height: 360px;
        transform: none;
    }
    
    .app-downloads {
        justify-content: center;
    }
    
    .caguz-section {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .caguz-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .caguz-text h3 {
        font-size: 1.8rem;
    }
    
    .caguz-map-placeholder {
        transform: none;
    }
    
    .caguz-map-placeholder img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .privilegios-section {
        padding: 40px 0;
    }
    
    .privilegios-grid {
        gap: 15px;
    }
    
    .privilegio-card {
        margin: 0 5px;
    }
    
    .privilegio-imagen {
        height: 160px;
    }
    
    .privilegio-content {
        padding: 20px 15px;
    }
    
    .app-section {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .app-text h3 {
        font-size: 1.5rem;
    }
    
    .app-text p {
        font-size: 1rem;
    }
    
    .app-features {
        gap: 12px;
    }
    
    .app-features li {
        font-size: 0.9rem;
    }
    
    .phone-frame {
        width: 180px;
        height: 320px;
        padding: 15px;
    }
    
    .app-store-btn img, .google-play-btn img {
        height: 45px;
    }
    
    .caguz-section {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .caguz-text h3 {
        font-size: 1.5rem;
    }
    
    .caguz-text p {
        font-size: 1rem;
    }
}

/* Galería Section */
.galeria-section {
    padding: 100px 0 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 100; /* Asegurar que la galería esté por encima */
}

.galeria-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #066315, #28a745, #066315);
    clip-path: polygon(0 50%, 10% 0%, 20% 50%, 30% 0%, 40% 50%, 50% 0%, 60% 50%, 70% 0%, 80% 50%, 90% 0%, 100% 50%, 100% 100%, 0% 100%);
    z-index: 101;
}

.galeria-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23000000" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    pointer-events: none;
    z-index: -1; /* Asegurar que el patrón esté detrás */
}

.galeria-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 101; /* Asegurar que los filtros estén visibles */
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 12px 24px;
    border-radius: 50px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-btn:hover {
    background: #2c5e2e;
    color: white;
    border-color: #2c5e2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 94, 46, 0.3);
}

.filter-btn.active {
    background: #2c5e2e;
    color: white;
    border-color: #2c5e2e;
    box-shadow: 0 5px 20px rgba(44, 94, 46, 0.3);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 101; /* Asegurar que las cards estén visibles */
}

.galeria-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
    display: block; /* Asegurar visibilidad por defecto */
}

.galeria-item.hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
    display: none !important; /* Completamente removido del layout */
    visibility: hidden !important;
}

.galeria-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    background: white;
    z-index: 102; /* Asegurar que las cards estén por encima */
}

.galeria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.galeria-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.galeria-card:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

.galeria-card:hover .galeria-overlay {
    opacity: 1;
}

.galeria-content {
    color: white;
    flex: 1;
}

.galeria-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.galeria-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.galeria-card:hover .galeria-content h3,
.galeria-card:hover .galeria-content p {
    transform: translateY(0);
}

.galeria-expand {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
}

.galeria-expand:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(20px) scale(1.1);
}

.galeria-card:hover .galeria-expand {
    transform: translateY(0);
    transition: transform 0.4s ease 0.3s;
}

/* ========================================
   SECCIÓN FUNDACIÓN - DISEÑO MEJORADO
   ======================================== */

.fundacion-section {
    padding: 80px 0 120px 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: -60px; /* Overlap con el separador de galería */
    padding-top: 140px; /* Compensar el overlap */
}

.fundacion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(6, 99, 21, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(40, 167, 69, 0.10) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Elementos decorativos flotantes */
.fundacion-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart, .floating-book, .floating-star {
    position: absolute;
    color: rgba(6, 99, 21, 0.25);
    font-size: 2.5rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.heart-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    color: rgba(220, 53, 69, 0.3);
}

.heart-2 {
    top: 70%;
    right: 12%;
    animation-delay: 2s;
    font-size: 2rem;
    color: rgba(220, 53, 69, 0.25);
}

.heart-3 {
    top: 40%;
    left: 3%;
    animation-delay: 4s;
    font-size: 1.8rem;
    color: rgba(220, 53, 69, 0.2);
}

.floating-book {
    top: 25%;
    right: 6%;
    animation-delay: 1s;
    font-size: 2.2rem;
    color: rgba(6, 99, 21, 0.3);
}

.star-1 {
    top: 80%;
    left: 15%;
    animation-delay: 3s;
    font-size: 1.8rem;
    color: rgba(255, 193, 7, 0.4);
}

.star-2 {
    top: 60%;
    right: 22%;
    animation-delay: 5s;
    font-size: 1.5rem;
    color: rgba(255, 193, 7, 0.35);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-25px) rotate(15deg);
        opacity: 1;
    }
}

.fundacion-section .section-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.fundacion-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #066315, #28a745);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(6, 99, 21, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fundacion-badge i {
    font-size: 1.1rem;
}

.fundacion-section .section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #066315, #28a745, #066315);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    position: relative;
    line-height: 1.2;
}

.fundacion-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #066315, #28a745, #066315, transparent);
    border-radius: 3px;
}

.fundacion-section .section-header p {
    font-size: 1.4rem;
    color: #555;
    font-weight: 400;
    font-style: italic;
    margin: 30px auto 50px;
    max-width: 600px;
}

.fundacion-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #066315;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fundacion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.fundacion-text {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.highlight-box {
    background: linear-gradient(135deg, #066315, #28a745);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 15px 40px rgba(6, 99, 21, 0.3);
    flex-shrink: 0;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #066315, #28a745, #ffc107, #28a745, #066315);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.highlight-box i {
    font-size: 1.3rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.highlight-box p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.5;
}

.quote-author {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
}

.fundacion-descripcion {
    flex-grow: 1;
    margin-bottom: 25px;
}

.fundacion-descripcion p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.fundacion-descripcion p:first-child {
    font-weight: 500;
    color: #333;
}

.fundacion-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid #28a745;
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 1.1rem;
    color: #28a745;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.fundacion-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-fundacion {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-fundacion:hover .btn-glow {
    left: 100%;
}

.btn-fundacion.btn-primary {
    background: linear-gradient(135deg, #066315, #28a745);
    color: white;
    box-shadow: 0 10px 30px rgba(6, 99, 21, 0.3);
}

.btn-fundacion.btn-primary:hover {
    background: linear-gradient(135deg, #044a10, #1e7e34);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(6, 99, 21, 0.4);
}

.btn-fundacion.btn-donation {
    background: white;
    color: #066315;
    border: 2px solid #066315;
    box-shadow: 0 10px 30px rgba(6, 99, 21, 0.1);
}

.btn-fundacion.btn-donation:hover {
    background: #066315;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(6, 99, 21, 0.3);
}

.btn-fundacion i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-fundacion:hover i {
    transform: scale(1.3) rotate(10deg);
}

.fundacion-images {
    position: relative;
}

.images-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 500px;
}

.imagen-principal {
    grid-row: 1 / 3;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.imagen-secundaria {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.imagen-terciaria {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.imagen-principal:hover {
    transform: translateY(-10px) rotate(-2deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.imagen-secundaria:hover {
    transform: translateY(-8px) rotate(2deg) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.imagen-terciaria:hover {
    transform: translateY(-8px) rotate(-1deg) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.fundacion-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fundacion-images .imagen-principal:hover img,
.fundacion-images .imagen-secundaria:hover img,
.fundacion-images .imagen-terciaria:hover img {
    transform: scale(1.1);
}

.image-frame {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid transparent;
    border-radius: 30px;
    background: linear-gradient(45deg, #066315, #28a745, #ffc107, #28a745, #066315);
    background-size: 300% 300%;
    animation: frameGlow 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.imagen-principal:hover .image-frame,
.imagen-secundaria:hover .image-frame,
.imagen-terciaria:hover .image-frame {
    opacity: 1;
}

@keyframes frameGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fundacion-images .imagen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 99, 21, 0.9), rgba(40, 167, 69, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.imagen-principal:hover .imagen-overlay,
.imagen-secundaria:hover .imagen-overlay,
.imagen-terciaria:hover .imagen-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.imagen-principal:hover .overlay-content,
.imagen-secundaria:hover .overlay-content,
.imagen-terciaria:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.overlay-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.imagen-secundaria .overlay-content i,
.imagen-terciaria .overlay-content i {
    font-size: 2rem;
}

.imagen-secundaria .overlay-content h4,
.imagen-terciaria .overlay-content h4 {
    font-size: 1rem;
}

.imagen-secundaria .overlay-content p,
.imagen-terciaria .overlay-content p {
    font-size: 0.85rem;
}

/* Responsive Design para Fundación Mejorado */
@media (max-width: 1200px) {
    .fundacion-content {
        gap: 60px;
    }
    
    .images-grid {
        height: 450px;
    }
}

@media (max-width: 968px) {
    .fundacion-section {
        padding: 100px 0;
    }
    
    .fundacion-content {
        grid-template-columns: 1fr;
        gap: 80px;
        text-align: center;
    }
    
    .fundacion-text {
        padding-right: 0;
    }
    
    .fundacion-images {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .fundacion-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .fundacion-section {
        padding: 80px 0;
    }
    
    .fundacion-section .section-header h2 {
        font-size: 2.2rem;
    }
    
    .fundacion-section .section-header p {
        font-size: 1.2rem;
    }
    
    .fundacion-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .fundacion-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-fundacion {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 150px 150px;
        gap: 15px;
        height: auto;
    }
    
    .imagen-principal {
        grid-row: 1;
    }
    
    .highlight-box {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .fundacion-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .fundacion-descripcion p {
        font-size: 1rem;
    }
    
    .btn-fundacion {
        font-size: 0.9rem;
        padding: 16px 30px;
    }
    
    .fundacion-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .floating-heart, .floating-book, .floating-star {
        display: none; /* Ocultar elementos decorativos en móviles muy pequeños */
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: none;
    z-index: 99999; /* Z-index muy alto para estar por encima de todo */
    backdrop-filter: blur(5px);
    margin: 0;
    padding: 0;
}

.lightbox.active {
    display: block;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100000; /* Contenido del lightbox por encima */
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255,0,0,0.8);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
    color: white;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    position: relative;
    text-align: center;
}

#lightbox-image {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-info {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.lightbox-info p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80vw;
    overflow-x: auto;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: #ffd700;
    transform: scale(1.1);
}

/* Responsive Design para Galería */
@media (max-width: 768px) {
    .galeria-section {
        padding: 60px 0;
    }
    
    .galeria-filters {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .galeria-card {
        margin: 0 10px;
    }
    
    .galeria-card img {
        height: 250px;
    }
    
    .galeria-overlay {
        padding: 20px;
    }
    
    .galeria-content h3 {
        font-size: 1.2rem;
    }
    
    .galeria-content p {
        font-size: 0.9rem;
    }
    
    .galeria-expand {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: 10px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-next {
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    #lightbox-image {
        max-width: 95vw;
        max-height: 60vh;
    }
    
    .lightbox-info {
        padding: 15px 20px;
        margin: 15px 10px 0;
    }
    
    .lightbox-thumbnails {
        margin: 15px 10px 0;
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .galeria-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        justify-content: center;
    }
    
    .galeria-card {
        margin: 0 5px;
    }
    
    .galeria-card img {
        height: 220px;
    }
    
    .galeria-overlay {
        padding: 15px;
    }
}
