/*Hoja de estilos CSS*/

/* selector { propiedad: valor;} */

/* Fuentes */
@font-face {
    font-family: 'roboto_slabregular';'roboto_slabregular';
    src: url('fuentes/RobotoSlab-Regular-webfont.eot');
    src: url('fuentes/RobotoSlab-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('fuentes/RobotoSlab-Regular-webfont.woff') format('woff'),
         url('fuentes/RobotoSlab-Regular-webfont.ttf') format('truetype'),
         url('fuentes/RobotoSlab-Regular-webfont.svg#roboto_slabregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'roboto_slabthin';
    src: url('fuentes/RobotoSlab-Thin-webfont.eot');
    src: url('fuentes/RobotoSlab-Thin-webfont.eot?#iefix') format('embedded-opentype'),
         url('fuentes/RobotoSlab-Thin-webfont.woff') format('woff'),
         url('fuentes/RobotoSlab-Thin-webfont.ttf') format('truetype'),
         url('fuentes/RobotoSlab-Thin-webfont.svg#roboto_slabthin') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'robotothin';
    src: url('fuentes/Roboto-Thin-webfont.eot');
    src: url('fuentes/Roboto-Thin-webfont.eot?#iefix') format('embedded-opentype'),
         url('fuentes/Roboto-Thin-webfont.woff') format('woff'),
         url('fuentes/Roboto-Thin-webfont.ttf') format('truetype'),
         url('fuentes/Roboto-Thin-webfont.svg#robotothin') format('svg');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'roboto_slablight';
    src: url('fuentes/RobotoSlab-Light-webfont.eot');
    src: url('fuentes/RobotoSlab-Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('fuentes/RobotoSlab-Light-webfont.woff') format('woff'),
         url('fuentes/RobotoSlab-Light-webfont.ttf') format('truetype'),
         url('fuentes/RobotoSlab-Light-webfont.svg#roboto_slablight') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'robotobold';
    src: url('fuentes/Roboto-Bold-webfont.eot');
    src: url('fuentes/Roboto-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fuentes/Roboto-Bold-webfont.woff') format('woff'),
         url('fuentes/Roboto-Bold-webfont.ttf') format('truetype'),
         url('fuentes/Roboto-Bold-webfont.svg#robotobold') format('svg');
    font-weight: normal;
    font-style: normal;

}





/*REGLAS GENERALES*/

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


body {
    background-image: url(../1/img/fondocolores2.png);
    background-size: cover;
    margin: 0 0 0 0;
    
}


main {
    margin-top: 7em;
    padding: 2em 2em;
    background-color: rgba(0, 0, 0, 0.3);
}


ul li a {
    text-decoration: none;
    color:whitesmoke;
    font-size: 0.9em;
    }



li {
    padding: 0.6em auto;
    list-style: none;
}


h6 {
    color: white;
    font-size: 4.3em;
    line-height: 1em;
    letter-spacing: 0.01em;
    box-sizing: border-box;
    margin: 0 0 0 0;
    font-family: 'robotothin';
  
}

.nombre  {
    margin-top: 1em;
    
}

article p{
    font-family: 'robotothin';
}

h2, h3, h4, h5 {
    font-family: 'roboto_slablight';
}

.logoncho img {
    width: 23em;
    box-shadow: 5px 5px 5px #888888;
    margin-bottom: 5%;
    
}

p img {
     width: 20em;
    box-shadow: 5px 5px 5px #888888;
    margin-bottom: 5%;
    
}



/* Reglas específicas*/
        
header, footer{
    flex: 0 1 auto;
    
        
}
/*Header y menú*/
header {
    top:0;
    height: 5.9em;
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 0.2em;
    background: rgba(44, 44, 44, 0.9);
    box-shadow: 0px 0.5px 20px 0px;
    font-family: 'roboto_slablight';
  
    }
#menu-bar{
    display: none;
}

.menu ul  ul {
    display: none;
    }

.menu ul li:hover ul{
    display:block;
    position:absolute;
    }

.menu a{
    display: block;
    padding: 0.2em 0.5em;
    text-decoration: none;
    font-size: 1em;
    text-align: center;
    background: rgba(44, 44, 44, 0.9);
    }



.menu a:hover{ 
    background: rgba(0,0,0,0.9);
    }




.destacado{
    color:#ededec;
    font-size: 2em;
    margin-top: 1em;
    text-align:left;
    padding-left: 1em;
    
}


/*Footer*/

footer{
    padding: 1em;
    background-color: rgba(0,0,0,0.2);
}
footer p{
    color: #2c2c2c;
    padding: 0em 1em 0em 1em;
        font-size: 0.9em;
        text-align: justify;
     
}

/*A partir de 320*/
@media screen and (min-width:20em){
    
    header{
        align-content: center;    
        
    }
    
    header label{
    float: right;
    width: 2.5em;
    margin-top: 2em;
    cursor: pointer;
    margin-right: 1.4em;
        
}
    
    .menu ul{
        display: flex;
    }
    .destacado{
        float: left;
        display: block;
        font-size: 1.4em;
        padding-left: 0;
        
    }
    .menu{
        display: flex;
        position: absolute;
        width: 100%;
        height: 100vh;
        top: 5.8em;
        left: 0;
        transition: all 0.5s;
        transform: translateX(-100%)
    }
    #menu-bar:checked~.menu{
        transform: translateX(0%)
    }
    .menu ul li{
        flex: 1;
        
    }
    .menu a{
        padding: 1em;
    }
    section {
    display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        align-items:stretch;
        
    }
    
    article {
       flex: 1 1 50%;
       
    }
    
    #pagina {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    }
    
    .logoncho {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items:flex-end;
        align-content: space-around;
    }
    
    .nombre {
        flex: 1 1;
        box-sizing: content-box;
        margin: 1em 0 0 2em;
    }
        
    }

/*A partir de 480*/
    @media screen and (min-width:30em) {
        header{
            align-content: center;
            background: rgba(44, 44, 44, 0.9);
        }
        .destacado{
            float: none;
            padding-left: 0em;
        }
        .menu{
            display: flex;
            justify-content: center;
            position: static;
            width: auto;
            height: auto;
            transform: translateX(0%);
            flex-basis: calc( 100% - 8em);
            margin-top: 1em;
            
    
        
        }
        header label{
    
            display: none;
        }
        .menu ul{
            display: flex;
            width: 100%;
        }
    
       .menu ul li{
        flex: 1;
        justify-content: space-between;
        font-size: 1.4em;
        }
        .menu li a{
            padding: 1em;
           background: rgba(44, 44, 44, 0.9);
        }
        .menu li ul li a{ font-size: 0.8em;
        }
        #colores div{
        margin: 0.3em;
        }
    }
        /* apartir de 640*/
        @media screen and (min-width:40em) {
            header{
            display: flex;
            justify-content: space-between;
            align-items: baseline; 
            height: auto;
                background: rgba(44, 44, 44, 0.9);
                
            }
            .menu{
                margin-top: 1em;
            padding: 0em 1em 0em 0em;
            justify-content: flex-end;
            align-items: baseline;
            }
            .menu ul{
            display: flex;
            width: auto;
        }
            .menu li a{
                background: rgba(0, 0, 0, 0);
            }
            .submenu li a{
                background: rgba(44, 44, 44, 0.9);
            }
            .destacado{
            width: 200%;
            }
        }
        /*A partir de 800*/
            @media screen and (min-width:50em) {
                .contenidos {
                    flex-direction: row;}
                .subtitulo{
                    width: 100%;
                }
                .texto{
                    width: 48%;
                    margin-right: 1em;
                }
                .textotres{
                    margin-right: 1em;
                    width: 100%;
                }
                .uno{
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    justify-content: center;
                    align-items: baseline;
                }
                
                
            }
