/* Globales */

html, body {
    height: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}
h1 {
    font-size: 40px;
}
h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

h4 {
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #24503b;

}
p {
    font-size: 16px;
}

html {
    background: radial-gradient(circle at 0% 100%, #24503b, #1a1a1a);
}


/* Cuerpo */


body {
    margin-top: 160px;
    color: rgb(73, 73, 73);
}

.content {
    background: white;
    width: 80%;
    max-width: 1200px;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.menu a {
    text-decoration: none;
    color: rgb(73, 73, 73);
    font-weight: bold;
    margin: 0 20px;
    padding: 8px 16px;
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid transparent;
}

.menu-fixed {
    border-radius: 0;
    position: fixed;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease-in-out;
}


.menu a:hover {
    border-bottom: 2px solid #24503b;
}


.acercaDe, .conocimientos, .programas{
    width: 100%;
    max-width: 1200px;
    padding: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.acercaDe {
    display: flex;
    justify-content: center;
    align-items: center;
}

.acercaDe-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 1200px;
    gap: 30px;
}

.acercaDe-texto {
    flex: 1;
    text-align: left;
}

.acercaDe-texto h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: left;
    position: relative; 
    display: inline-block;
}

.acercaDe h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #24503b;
    margin-top: 8px;
    border-radius: 2px;
}

.acercaDe-texto p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

.acercaDe-imagen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.acercaDe-imagen img {
    width: 320px;
    border-radius: 100%;
    border: 8px solid #24503b;
}

.portafolio, .footer {
    width: 100%;
    max-width: 1200px;
    padding: 32px;
}

.conocimientos {
    text-align: center;
}

.conocimientos h2::after,
.programas h2::after,
.portafolio h2::after {
    content: "";
    display: block;
    width: 160px;
    height: 4px;
    background-color: #24503b;
    margin: 16px auto 0;
    border-radius: 2px;
}

.conocimientos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.conocimiento-card {
    background: white;
    width: 30%;
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.conocimiento-card:hover {
    transform: translateY(-5px);
}

.conocimiento-card img {
    width: 160px;
    height: 160px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.conocimiento-card h3 {
    font-weight: bold;
    margin-bottom: 24px;
}

.conocimiento-card p {
    padding: 0 24px 0 24px;
    text-align: justify;
    color: #555;
}

.btn-descarga {
    display: inline-block;
    background-color: #24503b;
    color: white;
    padding: 12px 16px;
    margin-top: 24px;
    border-radius: 8px;
    text-decoration: none;
}

.btn-descarga:hover {
    background-color: #1b3a2a;
}


.programas {
    text-align: center;
}

.programas p {
    margin-bottom: 32px;
}

.programasContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    background: #f5f5f5;
    padding: 24px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.programa-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.programa-item img {
    width: 80%;
    max-width: 100px;
    height: auto;
    margin: auto;
    transition: transform 0.3s ease-in-out;
}

.programa-item img:hover {
    transform: scale(1.1);
}

.programa-item h3 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #24503b;
}


.portafolio {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portafolio-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portafolio-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.portafolio-card {
    background: white;
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    max-width: 48%;
}

.portafolio-card img {
    width: 100%;
    height: auto;
    max-height: 240px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Responsivo*/
@media (max-width: 768px) {
    .portafolio-row {
        flex-direction: column;
    }
    
    .portafolio-card {
        max-width: 100%;
    }
}

.btn-ver-proyecto {
    display: inline-block;
    background-color: #24503b;
    color: white;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.btn-ver-proyecto:hover {
    background-color: #1b3a2a;
}

.footer {
    color: white;
    padding: 24px;
    text-align: left;
    margin-left: 160px;
    border-radius: 10px;
    margin-top: 50px;

}

.footer h2 {
    margin-bottom: 15px;
}

.redes-sociales {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 10px;
}

.redes-sociales a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: white;
    color: #24503b;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.redes-sociales a:hover {
    background-color: #1b3a2a;
    color: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}




/* RESPONSIVE menores a 768px */

    @media (max-width: 768px) {
        .menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 90%;
            background: white;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            padding: 15px 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 0;
        }
        html, body {
            overflow-x: hidden;
            width: 100%;
        }
        .acercaDe, .conocimientos, .programas, .portafolio {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
        }
          
        body {
            padding-top: 0px;
        }
    
        .menu-links {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            text-align: center;
            padding: 10px 0;
            overflow-x: hidden;
        }

        .menu-links.active {
            display: flex;
        }
    
        .menu-links a {
            padding: 12px;
            display: block;
            text-decoration: none;
            color: rgb(73, 73, 73);
            font-weight: bold;
        }
    
        .menu-links a:hover {
            background: #f4f4f4;
        }
    
        .menu-toggle {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: rgb(73, 73, 73);
            display: block;
        }

        
    .menu a {
        margin: 6px 0;
        display: block;
        text-align: center;
    }

    .content {
        width: 95%;
        padding: 24px;
    }

    .acercaDe-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .acercaDe-texto {
        width: 100%;
    }

    .acercaDe-imagen img {
        width: 180px;
        border: 6px solid #24503b;
    }

    .conocimientos-container {
        flex-direction: column;
        align-items: center;
    }

    .conocimiento-card {
        width: 90%;
        max-width: 320px;
    }

    .programasContainer {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        padding: 16px;
    }

    .programa-item img {
        width: 100px;
    }

    .portafolio-container {
        flex-direction: column;
        align-items: center;
    }

    .portafolio-card {
        max-width: 100%;
    }

    .footer {
        text-align: center;
        margin-left: 0;
    }

    .redes-sociales {
        justify-content: center;
        gap: 12px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    }