*, *:before, *:after{
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
}

.menu{
    background-color: #e9183b;
    height: 75px;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.6);
    
    /* fijar */

    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo{
    color: #fff;
    font-size: 35px;
    padding: 0 0;
    font-weight: bold;
    text-decoration: none;
}

.search{
    display: flex;
    margin-top: 0px;
    margin-left: 15%;
}

.busqueda{
    display: flex;
    width: 400px;
    padding: 10px;
    border: 0px;
}

.enviar{
    display: flex;
    padding: 10px;
    width: 40px;
    height: 40px;
    border: 0px;
    cursor: pointer;
}

.menu_items{
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.menu_items li{
    border-radius: 3px;
    margin: 0 5px;
    -ms-transform: translateY(15%);
    transform: translateY(15%);
}

.menu_items li a{
    padding: 7px 13px;
    text-decoration: none;
    font-size: 18px;
    display: block;
    text-transform: uppercase;
    color: #fff;
}

.menu_items li:hover, .active{
    background-color: rgba(0, 0, 0, 0.3);
    transition: .4s;
}

.publicar{
    display: flex;
    list-style: none;
    margin-left: -5%;
    margin-right: -10%;
}

.publicar li{
    border-radius: 3px;
    margin: 0 5px;
}

.publicar li a{
    padding: 7px 13px;
    text-decoration: none;
    font-size: 18px;
    display: block;
    text-transform: uppercase;
    color: #fff;
}

.publicar li:hover, .active{
    background-color: rgba(0, 0, 0, 0.3);
    transition: .4s;
}

.btn_menu{
    margin-right: 30px;
    font-size: 25px;
    color: #fff;
    cursor: pointer;
    display: none;
}

ul.show{
    top: 65px;
}

ul, ol{
    list-style: none;
}

.sub-menu-1{
    display: none;
    margin-left: 2px;
}

.menu ul li:hover .sub-menu-1{
    display:block;
    position: absolute;
    background: #e9183b;
    margin-top: 0px;
    margin-left: -70px;
    z-index: 1;
}

.menu ul li:hover .sub-menu-1 ul
{
  display: block;
  margin: 10px;
}

.menu ul li:hover .sub-menu-1 ul li
{
    font-size: 18px;
    margin: 10px 5px;
    padding: 0px 13px;
    border-bottom: 1px;
    background: transparent;
    border-radius: 0;
    text-align: center;
}

.menu ul li:hover .sub-menu-1 ul li:hover
{
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: .4s;
}

.modal-todos{
    width: 85%;
    height: 95%;
    top: 2%;
    left:10%;
    position: absolute;
    z-index: 21;
    border-radius: 12px;
    background-color: #202020;
}

.modal-edit{
    width: 35%;
    height: 100%;
    position: absolute;
    right: 0;
    border-radius: 12px;
    top: 0;
}

@media screen and (max-width:952px){
    .logo{
        margin-top: 10px;
        margin-left: 5px;
        max-width: 50%; 
        max-height: 50%;
    }
    .menu_items li a{
        font-size: 16px;
    }
    .search{
        position: absolute;
        display: flex;
        margin-top: 50px;
        margin-left: 40%;
    }
    .busqueda{
        display: flex;
        width: 110px;
        padding: 10px;
        border: 0px;
    }
    .menu ul li:hover .sub-menu-1{
        display:block;
        position: absolute;
        background: #202020;
        text-align: center;
        margin-top: 0px;
        margin-left: 0%;
        width: 100vw;
        height: calc(100%-65px);
        z-index: 1;
    }
}

@media screen and (max-width:858px){
    .menu{
        height: 65px;
    }
    .btn_menu{
        display: inline-flex;
    }
    .menu_items{
        position: fixed;
        width: 100vw;
        height: calc(100%-65px);
        background: #414141;
        top: -100vh;
        text-align: center;
        transition: all .4s;
        flex-direction: column;
    }
    .menu_items li{
        margin: 30px 0 0 0;
        line-height: 30px;
    }
    .menu_items li:hover{
        background: none;
    }
    .menu_items li a{
        font-size: 20px;
        color: #fff;
        font-weight: bold;
    }
    .menu_items li a:hover{
        color: #e9183b;
    }
    .logo{
        margin-top: 10px;
        margin-left: 5px;
        max-width: 50%; 
        max-height: 50%;
    }
    .search{
        display: flex;
        margin-top: 10px;
        margin-left: 35%;
    }
    .busqueda{
        display: flex;
        width: 100px;
        padding: 10px;
        border: 0px;
    }
    .menu ul li:hover .sub-menu-1{
        display:block;
        position: absolute;
        background: #202020;
        text-align: center;
        margin-top: 0px;
        margin-left: 0%;
        width: 100vw;
        height: calc(100%-65px);
        z-index: 1;
    }
}

@media screen and (max-width:858px) and (orientation: landscape){
    .menu_items li{
        margin: 5px 0 0 0;
    }
    .menu_items{
        overflow: scroll;
        height: calc(100% - 65px);
    }
    .search{
        background-color: #e9183b;
        display: flex;
        margin-top: 7px;
        margin-left: 40%;
    }
    .busqueda{
        display: flex;
        width: 130px;
        padding: 10px;
        border: 0px;
    }
    .menu ul li:hover .sub-menu-1{
        display:block;
        position: absolute;
        background: #202020;
        text-align: center;
        margin-top: 0px;
        margin-left: 0%;
        width: 100vw;
        height: calc(100%-65px);
        z-index: 1;
    }
}
