* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{scroll-behavior: smooth;}

@font-face {
    font-family: 'Nothing';
    src: url(' https://fonts.googleapis.com/css?family=Nothing+You+Could+Do&display=swap');
}

body {
    font-family: 'Muli', sans-serif;
    background-color: #fff;
}

header,
main {
    margin: 0;
    width: 100%;
    position: relative;
}

header {
    height: auto;
}

body>footer {
    border-top: 1px solid #B8CCDF;
    background-color: #EBF0F6;
    position: relative;
    top: 22rem;
    width: 100%;
    padding-bottom: 1rem;
}

h1 {
    font-family: 'Nothing You Could Do', cursive;
    font-weight: 700;
    color: #3E4758;
    padding: 1.5rem;
    line-height: 0.1em;

}

h2,h3,p,footer ul li a {
    font-family: 'Muli', sans-serif;
    font-weight: 200;
    padding: 0.1rem 1.5rem;
    color: rgba(57, 64, 80, 0.8);
    text-align: justify;
}

main>section>h2{
    margin-top: -2.5rem;
    font-weight: 400;
}

h3{
    font-weight: 500;
    padding: 0.5rem 0.5rem 0.5rem 4rem;
    background-color:rgba(173, 135, 200, 0.3);
    width: 65vw;
    border-radius: 0 50vw 50vw 0;
    box-shadow: 1px 2px 4px grey;
    margin-bottom: 1rem;
    text-align: center;
}

h4{
    font-weight: 500;
    padding: 0.5rem;
    background-color:rgba(186,199,213, 0.7);
    width: 60%;
    border-radius: 50vw;
    box-shadow: 1px 2px 4px grey;
    margin: 2rem 20% 1rem;
    text-align: center;
}

h5{
    font-family: 'Muli', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    padding: 0.1rem 1.5rem;
    color: rgba(57, 64, 80, 0.7);
    text-align: center;
}
hr{width: 90%; color: transparent;}

ul {list-style-type: none;}

a {
    text-decoration: none;
    color: black;
}

p {margin: 1.2rem 1.5rem;}

main {
    margin: 0 auto;
    background-color: #FFF;
    background: linear-gradient(180deg, rgba(255,255,255,.9), #003D87);
    padding: 2rem 0;
}

section.circles{
    overflow: hidden;
    padding: 4rem 0;
    border-radius: 50vw 50vw 0 0;
    background: linear-gradient(180deg, white, #E0E5ED);
    box-shadow: 1px -1px 1px rgba(55, 75, 122, 0.5);
    border-top: 1px solid rgba(55, 75, 122, 0.2);
    font-family: 'Muli', sans-serif;
    margin: -24rem auto;
}
section.circles:last-child div{padding-bottom:0;}

section.circles p {margin-top: 0; margin-bottom: 0;padding-top: 0;}

section.first{
    margin-top: 0;
     }

section.circles>div{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 26rem;
}    

section.circles>div>div {
    
    margin: 0.5rem;
    height: 10rem;
    width: 10rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: left;
    background-color: #FFF;
    box-shadow: 2px 3px 3px inset rgba(0,0,0,.5);
    border-radius: 0.5vw;
}

iframe{
    height: 10rem;
    width: 10rem;
}

section.circles>div>div>p{
    width: 12rem;
    padding: 0;
    margin: 0;
    position: relative;
    top: 10.5rem;
    display: none;
}


#imagenweb iframe{border-radius: 0.5vw;}

#imagenweb p {top: 0;} 

main>section>p {display: none;}

section.circles>div>div{position: relative;}

#oleo {
    display: block;
    height: auto;
    background-color: white;
    padding: 4rem 0.5rem;
    border-radius: 20vw 20vw 0 0;
    margin: 0 0 -22rem;
}

#oleo h5, #oleo p {
    display: block;
    text-align: left;
    margin: 1rem;
    padding-left: 1rem;
}

#oleo h5{margin-top: 4rem; margin-bottom: 2rem;}

#galeria{
    display: none;
    position: absolute;
    top: 0;  
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 0;
}

#oscuro{
    position: fixed;
    top: 0rem;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index:11;
    opacity:0.98;
}

#oscuro h5{
    position: absolute;
    text-align: center;
    top: 4rem;
    left: 5%;
    width: 90%;
}

#claro{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 12;
    text-align: center;
    justify-content: center;
   

}
#claro img{ 
    width: 90%;
    align-self: center;
}

#siguiente, #anterior{
    position: fixed;
    top: 50vh;
    height: 5rem;
    padding: 10px;
    opacity: 0.75;
    z-index:14;
    transform: scale(0.8);
    transition: all 0.3s;
}
#siguiente:hover, #anterior:hover{
    opacity: 1;
    transform: scale(1.0);
}
#anterior{
    background: url("../imagenes/prev.png") no-repeat 0% 50%;
    left: 0;
}

#siguiente{
    background: url("../imagenes/next.png") no-repeat 100% 50%;
    right: 0;
}

#anterior a{display: block; width: 40px; height: 40px;}

#siguiente a{display: block; width: 40px; height: 40px;}

#piedefoto p{
    position: fixed;
    top: 88vh;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

a.bloc{
    color: rgba(0, 0, 0, 0.0);
    background: rgba(0, 0, 0, 0.5) url("../imagenes/ampliar.png") 100% 100% / 35px no-repeat;
    padding: 1rem 0.6rem 0.6rem;
    border-radius: 10px 0 10px 0;
    font-weight: bolder;
    font-size: 0.7rem;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: all ease-in-out 0.3s;

}

a.bloc:hover{
    color: rgba(255, 255, 255, 1.0);
    background-color: rgba(255, 255, 255, 0.4);
    text-shadow: 0px 0px 6px black, 1px 1px 1px black;
    padding: 6.6rem 0.5rem 2.4rem 8.5rem;
}

a.bloco, .bloco{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    padding: 0.5rem;
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
    color: #bbb;
    font-weight: bolder;
    text-align: center;
    background-size: 35px;
    z-index:13;
    transition: all 0.3s;
}

a.bloco:hover{
    color: #ddd;
    z-index:13;
}

img{transition:all 0.5s;}

footer>aside>ul{
    width: 80%;
    margin: 1rem auto 0;
    display: flex;
    flex-direction: row;
    text-align: center;
}

footer>aside>ul li{margin: 0 0.5rem; align-self: center;}

footer>aside>ul li a { font-size:small; margin: 0; padding: 0; opacity: 0.5;}

footer>aside>ul li a img{width: 40px;}

footer>aside>ul li a:hover{ opacity: 1;}

div.wrapper>aside{display: none;}

footer>aside{display: block;}

footer>aside>ul li{
    flex-grow: 1;
    justify-content: space-around;
}
body>footer>aside>p{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}

body>footer>p{
    margin: 1.2rem 0;
    text-align: center;
}

body>footer>p>span {
    padding: 0.05rem 0.5rem;
    border-right: 1px solid #A7A7A7;
}

body>footer>p>span:last-child {
    border: none;
}


/*Menú de navegación*/
header nav {
    width: 100%;
    background: linear-gradient(90deg, #848d96, rgba(180, 200, 219, 0.7));
    height: 50px;
    position: fixed;
    z-index: +5;
}

#menu-nav {
    background: linear-gradient(90deg, #848d96, transparent);
}

#menu_nav ul {
    background: linear-gradient(90deg, #848d96, transparent);
    list-style-type: none;
    font-size: 14px;
    display: flex;
    justify-content: center;
}

#menu_nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 17px 12px;
}

#menu_nav ul li a:hover {
    color: #FFFFFF;
    background: rgba(57, 64, 80, 0.6);
}

#menu_responsive {
    display: none;
    cursor: pointer;
    background: url(../imagenes/menu.png) no-repeat center center;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0px;
    top: 0px;
}

@media(max-width: 600px) {

    #menu_nav ul {
            justify-content: flex-start;
    }
    
    #menu_nav ul li a {
        padding: 17px;
    }

    #menu_responsive {
        display: block;
    }

    #menu_nav ul {
        overflow: hidden;
        padding-top: 50px;
        max-height: 0px;
        flex-direction: column;
    }

    #menu_nav ul li {
        border-top: 1px solid #4F545F;
    }


    #menu_nav ul li:last-child {
        border-bottom: 1px solid #4F545F;

    }

    #menu_nav ul li a {
        color: white;

    }

    #menu_nav ul li a:hover {

        background: linear-gradient(90deg, #4F545F, transparent);

    }

    #menu_nav ul.menu_nav_abierto {

        max-height: 400px;
        transition: max-height 0.4s;
    }

    .bajar {
        transition: all 0.4s;
    }
}

/*media queries*/

@media(min-width: 600px) {

    .img600, .img1600, .img600-2,.img1600-2{display: none;}

    .img1050, .img1050-2{display: block;}

    header {top: 0;}

    main { margin: 0 auto;}

    h1, h2 {margin: 0 auto; padding-left: 0; width: 84vw;}

    h1{margin-top: 2rem;}

    h3{ width: 70vw; margin-top: 3.5rem;}

    main>section>p {display: block; margin: 4rem auto; width: 60vw;}

    .circles>div>p{
        display: block;
        margin: 1rem 2rem;
    }

    main > section > p {width: 80vw;}

    footer>aside>ul{width: 50%;}

    #oleo { margin-bottom:-26rem;}
  
    #claro {
        left: 10%;
        width: 80%;
    }

    #oscuro h5{
    position: absolute;
    z-index: 100;
    top: 1rem;
    left: 10%;
    width: 80%;
    }

    section.circles>div>div {     
        margin: 4rem 1.5rem;
        height: 11rem;
        width: 14rem;
        
    }

    iframe{
        height: 11rem;
        width: 14rem;
    }

    section.circles>div>div>p{   
        margin: 0;
        top: 11.5rem;
        display: block;
        width: 14rem;
        text-align: left;
    }

    a.bloc:hover{
        padding: 7.6rem 0.5rem 2.4rem 12.5rem;
    }

}

@media(min-width: 800px){

    section.circles{
        padding: 4rem 0;
        border-radius: 25vw 25vw 0 0;
    }

    #claro {
        left: 14%;
        width: 72%;
    }

    #anterior{left: 10%;}

    #siguiente{right: 10%;}

    section.circles>div>div {
        margin: 2rem 2rem 4rem;
        height: 15rem;
        width: 20rem; 
    }

    iframe{
        height: 15rem;
        width: 20rem;
    }

    section.circles>div>div>p{
        width: 18.5rem;
        top: 15.5rem;
    }
    a.bloc:hover{
        padding: 11.8rem 0.5rem 2.4rem 20rem;
    }

    #oleo { padding: 8rem 4rem 4rem;}

}

@media(min-width: 1024px){

    header{ position: static; overflow: hidden; }

    main{border-radius: 0; padding-top: 0; overflow: hidden;}

    header nav{display: none;}

    div.wrapper{display: flex;}

    div.wrapper>aside{

        display: block; 
        height: 100vh;
        flex-grow: 1;
        order: 1;
    }

    div.wrapper2{
        flex-grow: 2;
        order:2;
        display: flex;
        flex-direction: column;
    }

    main{
        margin: 5rem 0 0 20%; 
        width: 80%;
        border-radius: 20vw 20vw 0 0;
    }

    header{
        padding-bottom: 15vw;
        padding-top: 18rem;

    }
    
    h1,h2,main>section>p {
        position: fixed;
        top: 4rem;
        left: 45vw;
        width: 55%;
        z-index: -1;
        text-align: center;
    }
    main>section>h2{margin-top: 0;}
    
    h2{top: 9rem;}

    h3{
        width: 40vw;
        margin-bottom: 4rem;
    }

    main>section>p{
        top: 1rem;
        right: 2rem;
        
        text-align: justify;
        padding: 7rem 2rem 3rem 6rem;
        background-color: rgba(255, 255, 255,.9);
        border-radius: 50vw 0 0 50vw;
        box-shadow: 0px 3px 4px rgba(61, 63, 73, 0.7);
        z-index: -2;
    }
    
    ul#lista_aside {
        position: fixed;
        width: 20%;
        background: linear-gradient(180deg, rgba(255,255,255,0.75), rgb(180, 200, 219));
        box-shadow: 1px 1px 2px rgba(61, 63, 73, 0.7);
        height: 100vh;
        z-index: +1;
   }

    ul#lista_aside{
        display: flex;
        flex-direction: column;
    }  

    ul#lista_aside li a {
        display: block;
        text-decoration: none;
        padding: 7vh 5vw;
        text-align: center;
        border-top: 1px solid rgba(57, 64, 80, 0.2); 
    }

    
    ul#lista_aside li a:hover {
        background: linear-gradient(180deg, rgba(55, 75, 122, 0.6), rgb(57, 64, 80, 0.01));
    }

    section.circles{border-radius: 20vw 20vw 0 0;}
    section.circles:last-child{padding-bottom: 24rem;}

    #oleo { margin-bottom: -2rem;}

    body>footer{top: 0;}
    body>footer>p, body>footer>aside{margin-left: 21%;}
    
    #claro {
        left: 17.5%;
        width: 65%;
    }

    #anterior{left: 12.5%;}

    #siguiente{right: 12.5%;}
}

@media(min-width: 1600px){ 
    header {
        padding-bottom: 8vw;
    }

    #contact{
        height: 35vw;
        padding: 4rem 6rem;
        margin: 0;
    }

    ul#lista_aside {
        width: 20%;
        margin: 0;
        padding: 0;
   }

    body>footer>aside>ul, body>footer>aside>p{width: 50%;}

    body>footer>aside>ul{width: 40%;}

    h1,h2,main>section>p {
        width: 40%;
        left:60vw;
    }

    #claro {
        left: 25%;
        width: 50%;
    }

    #anterior{left: 20%;}

    #siguiente{right: 20%;}

    main>section.circles>div>p {
        padding: 1rem 4rem;
        width: 75vw;
    }

    h3{
        width: 40vw;
        margin-bottom: 4rem;
    }

}

.img, .img600, .img1050,.img1600, .img2 {
    position: relative;
    z-index: -1;
    top: 0;
    width: 100%;
    height: 60vw;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.img1050, .img1600 {display: none;}

/*media queries*/

@media(min-width: 600px) {

    .img600, .img1600 {display: none;}

    .img1050 {display: block;}

}

@media(min-width: 1024px){

    .img, .img1600, .img2 {
        position: fixed;
        top:0; left:0;  
        width:  100vw;
        height: 100vh;
        z-index: -10;
    }

    .img1050 {display: none;}

    .img1600 {display: block;}

}

@media(min-width: 1600px){ 

    .img, .img1600, .img2 {
        position: fixed;
        top:0; left:0;  
        width:  100vw;
        height: 100vh;
        z-index: -10;
    }

    .img1050, .img2 {display: none;}

    .img1600 {display: block;}
}