/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     font-family: 'Open Sans', sans-serif;
     font-weight: 400;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    background-color: #FAF5EF;
    color: #333;
    line-height: 1.6;
}

body, p, li {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2c3e50; 
}

a, .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}
p {
    text-align: center;
}

/* HEADER */

header {
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(63, 57, 163, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* LOGO */

header .logo {
    height: 50px; 
    width: auto;  
    object-fit: contain; 
}

header h2 {
    font-weight: bold;
}

nav a {
    color: #FAF5EF;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
    font-size: 18px;
}

nav a:hover {
    opacity: 0.7;
}

/* HERO */

#hero {
    height: 85vh;
    background: linear-gradient(135deg, rgba(22, 20, 65, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), url('../img/hero3.png.jpeg');
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    padding-bottom: 0rem;
}

#hero img {
    margin-top: 20px;
    width: 400px;
    height: auto;
    margin-bottom: 0;
}

#hero p {
    padding-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #3F39A3;
}

.btn-sumate {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50px; /* Bordes redondeados tipo píldora */
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
}


.btn-sumate:hover {
    background-color: #ffffff;
    color: #3F39A3; /* El púrpura de tu marca */
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* SECCIONES */

section {
    padding: 60px 8%;
}


section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3F39A3;
    font-size: 2.5rem;
    padding-bottom: 1rem;
    margin-bottom: 15px;
}

section h2::before,
section h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #acadad;
    margin: 0 15px;
}

/* NOSOTROS */

#nosotros div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#nosotros div div {
    background: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#nosotros .borde {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#nosotros .borde:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


/* PROYECTOS */

#proyectos div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#proyectos div div {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

#proyectos div div:hover {
    transform: translateY(-5px);
}

#proyectos img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

#proyectos h3, #proyectos p {
    padding: 10px;
}

/* GALERÍA */

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 300px;
    gap: 20px;
    padding: 20px 0;
}
.galeria-item {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.galeria img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.galeria-item::after {
    content: 'Ver foto';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(63, 57, 163, 0.8));
    color: white;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

.galeria-item:hover::after {
    opacity: 1;
}

/* BLOG */

#blog {
    background: #e9f2ff;
    text-align: center;
    border-radius: 10px;
}

.lista-donaciones {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.lista-donaciones li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-donaciones i {
    color: #E1306C; 
    font-size: 0.8rem;
}

.nequi-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 5px solid #3F39A3;
    font-size: 0.9rem;
}

.nequi-info strong {
    color: #3F39A3;
}


.noticia-imagen {
    flex: 1; 
    position: relative;
    height: 100%;
    overflow: hidden; 
    border-radius: 15px 0 0 15px; 
}

.noticia-imagen img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
}

    /* CONTACTO */

#contacto {
    text-align: center;
}


.redes-cuadro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px;
    max-width: 500px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.redes-cuadro:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}


.redes-cuadro a {
    max-width: 700px;
    text-decoration: none;
    color: #333;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 20 40px;
    transition: 0.3s;
}
.redes-cuadro a p {
    font-size: 16px;
    font-weight: 600;
    color: #444;
}


.redes-cuadro a i.fa-instagram {
    color: #E1306C;
}
.fa-facebook {
     color: #1877F2; 
}
.fa-tiktok {
     color: #000000;
}
.fa-whatsapp {
     color: #25D366;
}

.redes-cuadro a.email {
    font-size: 25px;
    background: #f5f7fa;
    padding: 10px 15px;
    border-radius: 10px;
}

.redes-cuadro a:hover {
    transform: scale(1.1);
}


.redes-cuadro a.email:hover {
    background: #3F39A3;
    color: white;
}

.redes-cuadro a.email:hover i {
    color: white;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 2000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* FOOTER */

footer {
    background: #3F39A3;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}
.footer-location {
    margin: 15px 0;
}
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1); 
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transicion);
}
.location-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.location-badge span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #FAF5EF;
    letter-spacing: 0.5px;
}
.footer-copy {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    width: 100%;
}
.dev-link {
    text-decoration: none;
    color: #FAF5EF; 
    font-weight: 700;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transicion);
}
.dev-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.dev-link:hover {
    color: #ff0050; 
    transform: scale(1.05);
}
.dev-link:hover i {
    transform: rotate(15deg);
}

/* HAMBURGUESA */

.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.4s;
}

/* ANIMACIÓN A X */

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* OVERLAY */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}


.revelar {
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: hidden; 
}

.revelar.activo {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}



/* responsive */

@media (max-width: 1070px) {
   .galeria-grid {
       
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 250px; 
        gap: 15px;
    }

    .galeria-item:nth-child(3n) {
        grid-column: span 1; 
    }
     #hero {
        height: 45vh;           
        padding: 40px 20px;      
        background-position: center center; 
    }
}

@media (max-width: 768px) {

    header {
        padding: 10px 9%;
    }

    section h2 {
        font-size: 1.5rem;
        padding-bottom: 1rem;
    }
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #3F39A3;
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: center;
        z-index: 1000;
    }

    nav a {
        padding: 15px;
        display: block;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    nav.active {
        display: flex;
    }
    
     #hero {
        height: 25vh;           
        padding: 40px 20px;      
        background-position: center center; 
    }

    #hero img {
        width: 200px;
        height: auto;
    }

    .btn-sumate {
        padding: 10px 25px;    
        margin-top: 15px;      
        width: 80%;           
        max-width: 250px; 
        margin-bottom: 20px; 
        background-color: #3F39A3;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3)   
    }
    .btn-sumate:active {
        transform: scale(0.95);
        background-color: #2e2a7a; 
    }

    #hero p {
        font-size: 1rem;      
        padding-bottom: 0.5rem;
    }

   .galeria-grid {
        
        grid-template-columns: 1fr; 
        grid-auto-rows: 350px; 
        gap: 20px;
    }

    
    .galeria-item::after {
        display: none;
    }

    
    .galeria-item:active img {
        transform: scale(1.05);
    }
    
    .noticia-imagen {
        height: 100%; 
        border-radius: 15px 15px 0 0; 
    }
    .redes-cuadro {
        flex-direction: column; 
        gap: 20px;
        padding: 20px;
        max-width: 90%; 
    }

    .redes-cuadro a {
        font-size: 28px; 
        justify-content: center; 
        gap: 8px;
    }
    .redes-cuadro a p {
        font-size: 18px;
    }

    .redes-cuadro a.email {
        font-size: 22px;
        padding: 8px 12px;
    }
    .footer-content {
        padding: 0 20px;
    }

    .location-badge {
        width: 100%; 
        justify-content: center;
        margin: 10px 0;
    }

    .footer-copy {
        flex-direction: column; 
        gap: 10px;
        text-align: center;
    }

    .dev-by {
        display: block;
        margin-top: 10px;
        font-size: 0.85rem;
    }
}


@media (max-width: 460px) {
         .redes-cuadro {
        flex-direction: column; 
        gap: 20px;
        padding: 20px;
        max-width: 100%; 
    }

    .redes-cuadro a {
        font-size: 25px; 
        justify-content: center; 
        gap: 8px;
    }
    .redes-cuadro a p {
        font-size: 15px;
    }

    .redes-cuadro a.email {
        font-size: 19px;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


