*{
    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{
    padding-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%;

}
section >h2{
    font-size: 2.5rem;
    text-align: center;
    margin: 0 3%;
    color: #f13333;
    font-weight: bold;
    border-radius: .5em;
    text-shadow: 1px 1px 1px white, 0 0 .1em black, 0 0 0.2em white;
}
section >h3{
    font-size: 2rem;
    text-align: center;
    color: #004AAD;
    font-weight: bold;
    box-shadow: .1em .5em 5em  #004AAD;
    text-shadow: 1px 1px 2px #c8dffd, 0 0 1em #84a5cf, 0 0 0.2em #e4effd;
    text-decoration: underline;
}
section>p{
    text-align: center;
    font-size: 2rem;
    margin-top: 5%;
    color: #545454;
    background-color: #e5effd;
}

/* figure {
    margin-top: 5%;
    width: 100%;
    height: 40vh;
} */
main figure {border: solid rgb(255, 158, 158);
    margin: 5% auto 0;
    background-size: contain;
    background-repeat: no-repeat;
    width: 95%;
    height: 35vh;
    border-radius: .7em;
    background-image: url("../img/imagen_principal.png");
    animation: cambiarImagenPrincipal 25s infinite;
}
@keyframes cambiarImagenPrincipal {

    10%{
        background-size: 100% 100%;
        background-image: url(" ../img/imagen_principal.png");
    }
    16.6%{
        background-size: 100% 100%;
        background-image: url("../img/Home1.png");
    }
    33.2%{
        background-size: 100% 100%;
        background-image: url("../img/Home2.png");
    }
    49.8%{
        background-size: 100% 100%;
        background-image: url("../img/Home3.png");
    }
    66.4%{
        background-size: 100% 100%;
        background-image: url("../img/Home4.png");
    }83%{
        background-size: 100% 100%;
        background-image: url("../img/Home5.png");
    }99.6%{
        background-size: 100% 100%;
        background-image: url("../img/Home6.png");
    }
}
.centrar_boton{
    text-align: center;
    margin-top: 5%
}
.centrar_boton button{
    padding: 2%;
    border-radius: 1em;
    background-color: #4582A8;
}
.centrar_boton a{
    font-size: 2rem;
    color: white;
    text-decoration: none;
}

/* 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: 5rem;
    }
    .nav-toggle>span{
        font-size: 6.5rem;
    }
    /* main - contenido principal */
main{
    padding-top: 20%;
}
section >h2{
    font-size: 5rem;
}
section >h3{
    font-size: 4rem;
}
section>p{
    font-size: 3.5rem;
    margin-top: 5%;
    margin-bottom: 3%;
}

main figure {
    margin: 5% auto 0;
    width: 80%;
    height: 35vh;
    border-radius: 1rem;
}

.centrar_boton{
    text-align: center;
    margin-top: 5%
}
.centrar_boton a{
    font-size: 2.8rem;
}
}


/* pc */
@media (min-width:1024px){
    /* 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{
    display: grid;
    width: 100%;
    height: 100vh;
    grid-template-columns: 40% 60%;
    grid-template-rows: 75% 25%;
    padding-top: 17%;
}
section >h2{
    font-size: 5rem;
    margin: 5% 7% 3%;
    text-shadow: 5px 10px 5px white, 0 0 .1em black, 0 0 0.2em white;
}
section >h3{
    font-size: 4rem;
    box-shadow: .1em .5em 5em  #f6faff;
    text-shadow: 5px 10px 7px #dbe9fc, 0 0 1em #a3c2eb, 0 0 0.2em #d5e5fa;
}
section >p{
    font-size: 3.5rem;
    background-color: #f5f9ff;
    text-shadow: 5px 10px 7px white, 0 0 1em white, 0 0 0.2em white;
}

main figure {
    margin-top: -5%;
    width: 90%;
    height: 65vh;
    border-radius: 1.5rem;
}

.centrar_boton {
    text-align: center;
}
}



