@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans 3', sans-serif;
    text-decoration: none;
}
/*header superior a lo mejor en lo posterior*/
.header-superior{
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px ;
}
.logoH img{
    width: 100px;
}
.search input{
    width: 350px;
    padding: 5px
}
/*Barra del menu*/
header{
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 100;
}

/*HEADER SUPERIOR*/

/* Para logo y barra de busqueda
.header__superior{
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo img{
    width: 250px;
}

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

/*BARRA MENU*/

.container__menu{
    width: 95%;
    max-width: 1600px;
    margin: auto;
    height: 40px;
    background: #0e5312;
    padding: 0px 20px;
}

.menu{
    max-width: 1200px;
    margin: auto;
    height: 100%;
}

nav{
    height: 100%;
}

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

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

.fa-house{
    color: white;
    font-size: 10px;
    padding: 2px;
    margin: -7px 0px -0px -8px;
}

.fa-house:hover{
    transform: scale(1.42);
    margin: -7px 0px -0px -8px;
}
/*
nav > ul > li:first-child > a{
    background-image: url(../img/home.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px 20px;
    border-radius: 50%;
}

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

nav > ul > li > a{
    width: 95%;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 14px;
    color: white;
/*    text-transform: uppercase;*/
    font-size: 19px;
    transition: all 400ms ease;
}

nav > ul > li > a:hover{
    transform: scale(1.1);
    background: #0ea230;
    border: 1px solid red;
    box-shadow: 0px 0px 10px 0px rgba(10,0,0,1.5);
}

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


/*SUBMENU*/

nav ul li ul{
    width: 220px;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 90px;
    left: -5px;
    padding: 1px 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: 42px;
}

/*esto es lo que necesito*/

nav ul li:hover {
    background: #0ea230;
}

/*hasta aqui borrar*/

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

nav ul li ul li a{
    display: block;
/*    background: #34d082;*/
    color: #0e5312;
    padding: 0px;
    padding-left: 14px;
    margin-top: 5px;
    font-size: 19px;
/*    text-transform: uppercase;*/
    transition: all 300ms ease;
}

nav ul li ul li a:hover{
    background: #0e5312;
    color: #fff;
    transform: scale(1.2);
    padding-left: 30px;
    font-size: 17px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}

/*ARTICULO*/

main{
    background: #f0f0f0;
    margin-top: 14px;
}

.a720{
    background: red;
    width: 720px;
    margin: auto;
}
.a800{
    background: #7171e0;
    width: 800px;
    margin: auto;
}
/*ELEMENTOS RESPONSIVOS*/

.icon__menu{
    position: absolute;
    top: 60px;
    left: 35px;
    z-index: 110;
    background: green;
    border: 2px red solid;
    font-size: 26px;
    color: white;
    cursor: pointer;
    width: 26px;
    height: 28px;;
    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: rgb(27, 85, 16);
        position: fixed;
        left: 0;
        top: 94px;
        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: 120px;
    }
    
    nav > ul > li:hover ul{
        top: 40px;
    }

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

    #selected{
        transform: scale(1);
    }

    #label__check{
        display: block;
    }

    .icon__menu{
        display: flex;
    }

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

    main{
        margin-top: 14px;
    }
    nav > ul > li:first-child > a{
    border-radius: 0%;
}
    .a720{
        display: none;
    }
}


@media screen and (max-width: 800px){
nav > ul > li > a{
    font-size: 14px;
    width: 95%;
}
    .a800{
        display: none;
    }
}