*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    height: 100%;
    font-size: 62.7%;
}
body{
    min-height: 100%;
    background-color: #EFEFEF;
}

/* header - cabecera */
header{
    margin-top: 1%;
    position: fixed;
    width:100%;
    display: grid;
    grid-template-columns: 20% 50% 30%;
    grid-template-rows: 100%;
    height: 12%;
    background-color: #EFEFEF;
}
header .imagen_logo{
    width: 15vw;
    height: 100%;
    text-align: end;
    margin-top: 5%;
    margin-left: 5%;
}
.imagen_logo > a img{
    max-width: 100vw;
    min-width: 18vw;
    max-height: 10vh;
    min-height: 10vw;
}
header h1{
    margin-left: -1%;
    text-align: start;
    align-self:center;
    font-size: 2rem;
    font-weight: bold;
}
header h1 a{
    text-decoration: none;
    color: black;

}
header button{
    position: fixed;
    right: 5%;
    top: 3%;
    border: none;
    background: none;
}
.nav-toggle>span{
    font-size: 4rem;
}

nav >ul{
    flex-direction: column;
    align-items: center;
    position: fixed;
    top:13%;
    width: 100%;
    background-color: #4582A8;
    left: 100%;
    transition: left 0.3s;
    height: calc(100% - 13%);
}
nav li{
    padding: 3%;
    margin-top: 10%;
    list-style: none;
    text-align: center;
}
nav li>a{
    text-decoration: none;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}
nav li>a:hover{
    border-bottom: .2em solid white;
    text-decoration: line-through #4582A8;
}
.inicio{
    border-bottom: .2em solid white;
}
.nav-menu_visible{
    left: 0;
}

/* main - contenido principal */
main{
    padding-top: 25%;
    margin: 0 auto;
    width: 90%;
}
main iframe {
    width: 100%;
    height: 40vh;
    border-radius: .7em;
}

main div{
    width: 100%;
    height: 40vh;
}

main div section{
    margin: 5% 0;
    text-align: justify;
}
main div section h3{
    font-size: 1.9rem;
}
main div section p{
    font-size: 1.5rem;
    margin-top: 1.5%;
    text-align: center;
}
div .redes_sociales img{
    width: 15%; 
    margin: 0 5%;
}


/* tablet */
@media (min-width:768px) and (max-width:1023px){
    header{
        height: 15%;
    }
    nav >ul{
        top:15%;
        height: calc(100% - 15%);
    }

    header a .imagen_logo{
        margin-top: 5%;
        margin-left: 13%;
    }

    header h1{
        text-align: start;
        align-self:center;
        margin-left: 0;
        font-size: 3.6rem;
    }
    .nav-toggle>span{
        font-size: 6rem;
    }
    /* main - contenido principal */
    main{
        padding-top: 20%;
    }
    main iframe {
        height: 40vh;
    }
    
    main div{
        height: 30vh;
    }
    
    main div section h3{
        font-size: 3rem;
    }
    main div section p{
        font-size: 3rem;
        margin-top: 1%;
        text-align: center;
    }
    div .redes_sociales img{
        width: 13%; 
        margin: 0 5%;
    }
    
}


/* pc */
@media (min-width:1024px){

/* header - cabecera */
/* header - cabecera */
header{
    margin-top: 3%;
    display:grid;
    height: 15%;
    grid-template-columns: 20% 28% 52%;
}
header .imagen_logo{
    margin-top: 0;
    margin-left: 25%;
}
.imagen_logo >a img{
    margin-top: -7%;
    max-width: 10vw;
    min-width: 10vw;
    min-height: 10vw;
}
header>h1{
    font-size: 5rem;
}

.nav-toggle{
    display: none;
}
nav{
    position: relative;
    align-self: center;
}
nav ul{
    position: absolute;
    left: 0;
    padding:0;
    margin: 0;
    height: 0;
}
nav ul >li{
    background: none;
    right: 0;
    padding:0;
    margin-top: -3%;
    margin-right: 5%;
    display: inline-block;
}
nav ul li>a{
    font-size: 3rem;
    color: black;
    font-weight: bold;
}
.inicio{
    color: #004AAD;
    border-bottom: .2em solid #004AAD;
}
nav li>a:hover{
    color: #004AAD;
    border-bottom: .2em solid #004AAD;
}

    /* main - contenido principal */
    main{
        padding-top: 15%;
        margin: 0 auto;
        width: 90%;
        display: flex;
    }
    main iframe {
        width: 60%;
        height: 65vh;
    }
    
    main div{
        width: 30%;
        height: 65vh;
        margin-left: 8%;
    }
    
    main div section h3{
        font-size: 3.2rem;
         margin-top: 15%;
    }
    main div section p{
        font-size: 2.7rem;
        text-align: center;
    }
    div .redes_sociales img{
        width: 15%; 
        margin: 0 5%;
    }
}



