/*HEADER SUPERIOR*/
.header__superior{
    max-width: 100%;
    margin: auto;
    display: compact;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}

.logo img{
    width: 250px;
}

.search input{
    width: 300px;
    padding: 10px;
}

/*BARRA MENU*/

.container__menu{
    padding-bottom:40px;
    width: 100%;
    height: 40px;
	background: #000000;
	background-size: cover;
	background-repeat:no-repeat;
    padding-top: 10px;
}

.menu{
    max-width: 100%;
    height: 100%;
}

nav{
    height: 100%;
}

nav > ul{
    height: 100%;
    display: flex;
}

nav ul li{
    height: 100%;
    list-style: none;
    position: relative;
}

nav > ul > li:first-child > a{
    background-image: url(img/home.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 0px 20px;
}

nav > ul > li:first-child:hover > a{
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav > ul > li > a{
    width: 100%;
    height: 100%;
    display: inherit;
    align-items: center;
	padding-right:20px;
	padding-left:10px;
    color: #FFF;
    text-transform: uppercase;
    font-size: 12px;
	font-weight: bold;
    transition: all 300ms ease;
}

nav > ul > li > a:hover{
    transform: scale(1.1);
	color: white;
    background: #F00;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}

#selected{
    transform: scale(1.1);
    background-color: #F00;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}


/*SUBMENU*/

nav ul li ul{
    width: 240px;
    display: block;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 10px;
    left: 0px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    z-index: 10;
    transition: all 300ms ease;
}

nav ul li:hover ul{
    visibility: visible;
    opacity: 1;
    top: 30px;
}

nav ul li ul:before{
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    position: absolute;
    top: -10px;
    left: 20px;
}

nav ul li ul li a{
    display: block;
    color: #000000;
    padding: 5px;
    padding-left: 5px;
    margin-top: 2px;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 300ms ease;
}

nav ul li ul li a:hover{
    background: #F00;
    color: #fff;
    transform: scale(1.1);
    padding-left: 20px;
    font-size: 12px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}

/*ARTICULO*/

main{
    background: #006;
    padding: 20px 20px;
    margin-top: 200px;
}

article{
    max-width: 1200px;
    margin: 20px auto;
    padding: 40px;
    background: #fff;
}

article p{
    margin-top: 20px;
    font-size: 18px;
    font-weight: 300;
}

/*ELEMENTOS RESPONSIVOS*/

.icon__menu{
    font-size: 26px;
    color: white;
    cursor: pointer;
    width: 26px;
    height: 100%;
    display: none;
    align-items: center;
}

#label__check{
    width: 26px;
    height: 100%;
    display: none;
}

#check__menu{
    display: none;
}

@media screen and (max-width: 720px){

    .search input{
        display: none;
    }
    
    .header__superior{
        padding: 10px;
    }

    .logo img{
        width: 200px;
    }

    nav > ul{
        flex-direction: column;
        background-color: #023877;
        position: fixed;
        left: 0;
        top: 170px;
        width: 100%;
        height: 0px;
        transition: all 300ms ease;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
    }

    nav > ul > li > a:hover{
        transform: scale(1);
    }

    nav ul li ul{
        left: 90px;
    }

    nav > ul > li:hover ul{
        top: 50px;
    }

    nav > ul > li:first-child a{
        background-position: 20px;
    }

    #selected{
        transform: scale(1);
    }

    #label__check{
        display: block;
    }

    .icon__menu{
        display: flex;
    }

    #check__menu:checked ~ nav > ul{
        height: 300px;
        visibility: visible;
        opacity: 1;
    }

    main{
        margin-top: 158px;
    }
}