@import url(MenuSup.css);
@import url(MenuLat.css);
@import url(Unidad.css);
@import url(Tema.css);
@import url(Loader.css);
@import url(all.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10.5pt;
}

.contenedor {
    background:#fff;
    width:100%;
    max-width:1300px;
    height: calc(100vh - 2vh);
    margin: 0 auto;
    display:flex;
    flex-flow:row wrap;
}

.logo{
    display: flex;
    align-content: center;
    background: #fff;
}
.logo img{
    margin: 0;
    padding: 0;
    width: 1300px;
    vertical-align: top;
    height: 100px;
}

.menuSup {
    flex: 1 1 100%;
    top: 100px;
    height: 30px;
    background: #ffaa64;
    border: 1px solid #ffaa64;
    box-shadow: inset 3px 10px 19px rgba(255, 255, 255, 0.3), inset -2px -2px 3px #ffaa64;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    color: #fff;
}
.menuSup div{
    cursor: pointer;
    padding: 0.5em 3em;
    font-size: 10pt;
    color: #fff;
    -webkit-transition:all .7s ; /* Safari */
    transition:all .7s ;
    text-align: center;
}
.active, .menuSup div:hover{
    box-shadow: 0 -100px rgba(0,0,0,0.2) inset;
}

 .menuLat{
    flex:1 1 18%;
    display: flex;
    top: auto;
    flex-shrink: 1;
    flex-flow:column;
    justify-content: center;
    margin: 0;
    padding: 20px 0;
    max-width: 155px;
}
.menuLat .box{
    position: relative;
    text-align: center;
    cursor: pointer;
    padding: 1em 0;
    font-size: 8pt;
    height: 50px;
    -webkit-transition: all .4s ; /* Safari */
    transition: all .4s ; 
    align-items: center;
    justify-content: center;
    display: flex;
}
.menuLat .box .antes{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 8pt;
}
.menuLat .box:hover{
    box-shadow: 160px 0 rgba(255,170,100,1) inset;
    color: #fff;
}
.menuLat i{
    color: #ffaa64;
    margin: 0 0.1em;
    }
.menuLat .box:hover i{
    color: #fff;
    }
.menuLat .box:hover .antes{
    font-size: 0pt;
    z-index: 1;
}
.menuLat .box .despues{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.2s;
    font-size: 0pt;
    color: #fff;
    padding: 1em;
}
.lactive, .box .despues:hover{
    font-size: 8pt;  
    z-index: 2;
}
.lactive{
    box-shadow: 5px 0 rgba(255,170,100,0.9) inset;
}
.menuLat div > span:hover{
    display: none;
}
.menuLat span{
    font-size: 8pt;
    text-align: center;
    display: block;
    border-bottom: 1px solid #e3e3e3;
    padding: 0.7em 0;
    max-width: 155px;
}
.menuLat div:nth-child(5) {
    border-top: 1px solid #e3e3e3;
}

embed{
    display: flex;
    flex-flow: row nowrap;
    width: calc(100vw - 30vw);
    height: calc(100vh - 35vh);
    margin: 1em auto;
    padding: 1em 0 0 1em;
}

.main {
    display: block;
    margin: 0 0.5em ;
    border-radius: 1%;
    border: 3px solid #e6e6e6;
    flex:1 1 80%;
    flex-grow: 1;
    position: relative;
    height: calc(100vh - 21vh);
    overflow: auto;
    overflow-x: hidden;
}
 .opcionesU{
    flex-flow: row wrap;
    margin: 1em auto;
    padding: 0;
    justify-content: center;
    width: 100%
}
.main article{
    position: absolute;
    top: 1.5em;
    padding: 0 1em;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}
.UnidadArt{
    position: absolute;
    margin: 2.7em 0 0 0;
}
.cabecera{
    position: absolute;
    width: 100%;
    background: #fff;
    align-items: center;
    display: flex;
    line-height: 50%;
    flex-flow: column wrap;
    justify-content: center;
    z-index: 2;
}
.cabecera p,h2{
    display: block;
}

.btn-menu {
    display: none;
}

footer{
    display: flex;
    background: rgba(255,170,100,1);
    box-shadow: inset 3px 10px 19px rgba(255, 255, 255, 0), inset -2px -2px 3px #ffaa64;
    width: 100%;
    flex-flow: row wrap;
    justify-content: center;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 21;
    height: 17px;
}
footer .derechos{
    font-size: 8pt;
    color: #fff;
}
.menuH{
    width: 36px;
    height: 36px;
}

.fondo{
    position: absolute;
    background: #000;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: 0;
}

p::-moz-selection, h2::-moz-selection {
  color: white;
  background: #ffaa64;
}

p::-moz-selection, h2::selection {
  color: white;
  background: #ffaa64;
}

@media screen and (min-height: 760px){
    .main{
        margin: 0.2em 0em; 
        height: calc(100vh - 20vh);
    }
    .cabecera{
        width: 100%;
        flex-flow: row wrap;
        margin-bottom: 1em;
        height: 70px;
        padding: 0 20em;
        line-height: 150%;
    } 
    footer{
        height: 30px;
    }

    .menuLat .box{
        height: 30px;
        font-size: 9.5pt;
    }

    .logo img{
        height: calc(100px - 10px);
    }
}

@media screen and (max-width: 500px){
    embed{
        margin: 2em auto 0 auto;
        width: calc(100vw - 30vw);
        height: calc(100vh - 30vh);
    }
    .cabecera{
        width: 100%;
        flex-flow: row wrap;
        margin-bottom: 1em;
        height: 70px;
        padding: 0 3em;
        line-height: 150%;
    }  
    .menuLat .box{
        height: 30px;
        font-size: 9.5pt;
    }
    .logo img{
        height: calc(100px - 10px);
    }
}


@media screen and (max-width: 1000px) {
    .menuSup{
        display: block;
        position: absolute;
        height: 150px;
        width: 100vw;
        top: -100%;
        z-index: 15;
        -webkit-transition: 0.4s;
        -o-transition: 0.4s;
        transition: 0.4s;
        margin: 0 auto;
    }
    
    .menuSup > div{
        width: 100%;
    }

    .main{
        height: calc(100vh - 24vh);
    }

    embed{
        display: flex;
        flex-flow: row nowrap;
        width: calc(100vw - 5vw);
        height: calc(100vh - 35vh);
        margin: 0 auto;
        padding: 0 auto;
    }

    .opcionesU{
        flex-flow: row wrap;
        margin: 1em auto;
        padding: 0;
        justify-content: center;
        width: 100%
    }
    
    .titulo{
        line-height: 1em;
    }
    .opcionesU img{
       width: 168px;
       height: 66px;
    }
    .img1, .img3{
        margin: 2em 3em;
        padding: 0;
        justify-content: space-around;
        flex-flow: row wrap;
    }
    
    .menuLat {
        display: flex;
        flex-flow: column nowrap;
        position: absolute;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        z-index: 15;
        top: -250%;
        background: #fff;
        box-shadow: inset 3px 10px 19px rgba(255, 255, 255, 0), inset -2px -2px 3px #ffaa64;
        -webkit-transition: 0.4s;
        -o-transition: 0.4s;
        transition: 0.4s;
        margin: 0 auto;
    }
    .menuLat .box{
        width: 100%;
        height: 32px;
        font-size: 9pt;
    }
    .menuLat .box, span{
        width: 100%;
    }
    .menuLat .box > div{
        width: 100%;
    }
    .menuLat .box:hover{
        box-shadow: 1360px 0 rgba(255,170,100,1) inset; 
    }    
    .lactive{
        box-shadow: 10px 0 rgba(255,170,100,1) inset;
    }
    
    .btn-menu {
        cursor: pointer;
        display: block;
        z-index: 20;
    }
    
    .logo,.main{
        z-index: 5;
    }

    footer{
        padding: 0;
        margin: 0;
        height: 35px;
    }
    
    footer .btn-menu {       
        flex:1 1 20%;
        -webkit-transition: 2s;
        -o-transition: 2s;
        transition: 2s; 
    }
    
    footer .derechos{
        flex:1 1 80%;
        margin-top: 1em;
    }
    
    .opcionesU .sesion{
        flex-flow: row wrap;
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }   

    .main article{
        width: calc(100vw - 5vw);
    } 
}
