@font-face {
    font-family: 'Archivo';
    src: url(../FONTS/Archivo-VariableFont_wdth\,wght.ttf);
}

*{
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    margin: 0;
}

h1{font-size: 2.7em; margin: 0;}
h2{font-size: 4vw; margin: 0;}
p{font-size: 1.2em}
a{text-decoration: none;}
ul{list-style: none;}

.container{
    max-width: 1600px;
    margin: auto;
}

header{
    background-color: rgb(245,245,245);
}

header .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo{
    margin: 4vh;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-img{
    width: 30%;
    height: auto; 
}

.logo-nombre{
    font-size: 4vw;
    white-space: nowrap;
    color: rgb(0, 84, 48);
    font-family:'Archivo';
    font-weight: 900;
    margin: 2vh;
}

.menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-top: 0;
}

.menu > li{
    text-align: center;
    margin: 1vh;
    position: relative; /* Elemento padre de submenu */
    display: flex;
    justify-content: center;
}

.nav-link{
    color: black;
    font-weight: bold;
    white-space: nowrap;
}

.nav-link:hover{
    color: rgb(0, 84, 48);
}

.submenu {
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    width: 80vw;
    background-color:lightgray;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.submenu > li > a {
    padding: 1.5vh 4vh;
    color: black;
    text-align: center;
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.submenu > li > a:hover {
    background-color: rgb(175, 174, 174);
}

.menu > li:hover .submenu {
    display: block;
    z-index: 1000;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

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

#banner{
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    )
    ,url(../IMG/DSC00525.JPG);
    background-size: cover;
    background-position: center center;
    height: 30vh;
    width: auto;
    display: flex;
    justify-content: center;
    color: white;
    align-items: center;
    white-space: nowrap;
}

#certificados{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#certificados .container{
    margin: 5vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#certificados .container > p{
    margin: 5vw;
}

#certificados .container ul{
    color: white;
    margin: 0;
    width: 100%;
    padding: 0;
}

#certificados .container ul li{
    background-color: rgb(0, 84, 48);
    margin: 3vh;
    padding: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

button{
    font-size: 4vw;
    white-space: nowrap;
    background-color: rgb(0, 84, 48);
    margin: 2vh 3vh 3vh;
    font-weight: bold;
    padding: 1.5vh 8vh;
    border-radius: 100px;
    border: 3px solid white;
    color: white;
    transition: color .4s, background-color .4s;
}

button:hover{
    background-color: white;
    color: rgb(0, 84, 48);
}

/*footer*/
footer{
    width: 100%;
    background-color: lightgray;
    padding: 2vw;
}

footer a{
    font-size: 4vw;
    color: black;

}

footer a:hover{
    color:rgb(0, 84, 48);
}

footer p{
    font-size: 4vw;
}

@media (min-width: 780px){
    header{
        position: fixed;
        width: 100%;
        top: 0%;
    }

    header .container{
        max-width: initial;
        flex-direction: row;
        justify-content: space-between;
        height: 100px;
    }

    .logo{
        margin: 1vw 1vw 1vw 3vw;
    }

    .logo-img{
        width: 8.5vw;
        height: auto; 
    }
    
    .logo-nombre{
        font-size: 1.75vw;
        font-family: "Archivo";
        white-space: nowrap;
        color: rgb(0, 84, 48);
        font-weight: 900;
        margin-left: 0;
        margin-right: 0;
    }
    
    .menu{
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 0 3vw 0 0;
    }

    .menu > li{
        margin: 0 1.4vw;
        font-size: 1.5vw;
    }

    .submenu{
        width: auto;
    }

    .submenu > li > a {
        padding: 1vh 1.5vw;
        font-size: 19px;
    }

    #banner{
        margin-top: 100px;
        padding: 10vh;
        height: 50vh;
    }

    h1{
        font-size: 4.5vw;
    }

    #certificados .container{
        width: 100%;
        text-align: left;
    }

    #certificados .container > p{
        margin: 5vh 0;
        font-size: 1.4em;
    }

    #certificados .container ul{
        width: 80%;
        font-weight: 600;
    }

    #certificados .container ul li{
        margin: 3vh;
        padding: 1vh 3vw;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-radius: 20px;
    }

    button{
        font-size: 1em;
        white-space: nowrap;
        background-color: rgb(0, 84, 48);
        margin: 2vh 3vh 3vh;
        font-weight: bold;
        padding: 1.5vh 4vw;
        border-radius: 100em;
        border: 3px solid white;
        color: white;
    }
    footer{
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    footer a{
        margin-left: 3vw;
        font-size: 1.1em;
    }

    footer p{
        margin: 0 3vw 0 0;
        font-size: 1.1em;
        
    }
}    