
body {
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

header {    
    width: 100%;
    background: #4E94AB;
    color: #fff;
}

header label {
    display: none;
    width: 38px;
    height: 30px;
    /*padding: 10px;
    border-right: 1px solid #fff;*/
    font-size: 10px;
}

header label:hover {
    cursor: pointer;
    background: rgba(0,0,0,0,0.3);
}

#contenedor {
    width: 300px;
    margin: 150px auto;
    overflow: hidden;
}

#contenedor ul {
    position: relative;
    list-style: none;
    width: 1200px;
    display: flex;
    animation: slide 20s infinite alternate;
}

@keyframes slide {
    0% {left:  0%;}  /*EL TIEMPO QUE DURA LA IMAGEN SE CALCULA MULTIPLICANDO LOS SEGUNDOS 20s POR EL PORCENTAJE 20% (0.20) = 4 SEGUNDOS*/
    20% {left: 0px;} /*LOS 300 PIXELES ES EL TAMANO DE LA IMAGEN*/
/*EN ESTE ESPACIO SE CALCULA QUE TARDARA 1 SEGUNDO EN LA TRANSISION, SE MULTIPLICA 20 SEGUNDOS POR EL 0.05 QUE ES EL 5% = 1s*/    
    25% {left: -340px;}
    45% {left: -340px;}
    
    50% {left: -640px;}
    70% {left: -640px;}
    
    75% {left: -940px;}
    100% {left: -940px;}
    
}

#btn-menu {
    display: none;
}



/*ESTILOS GENERALES*/
.menu ul {
    /*background: #4E94AB;*/
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.menu li {
    line-height: 2rem;
    position: relative;
    font-size: 13px;
}

.menu li ul {
    position: absolute;
}
.menu a {
    color: #ddd;
    display:block;
    padding: 0 2.5em;
    text-decoration: none;
    transition: .4s;
}

.menu a:hover {
    background: #7FA0B6;
}
/*
.menu li ul {
    display: none;
}

.menu ul > li:hover > ul {
    display: block;
}
*/

/*PRIMER NIVEL*/

.menu > ul {
    background: #4E94AB;
    display: table;
    width: 100%;
}

.menu > ul > li {
    float: left;
}
/*SEGUNDO NIVEL*/

.menu li li {
    background: #4E94AA;
    max-height: 0;
    overflow: hidden;
    transition: all .6s;
    width:120%;
}

.menu li:hover > ul > li {
    max-height: 1000px;
    overflow: visible;
}

.menu > ul > li > ul {
    display: block;
    top:100%;
}
/*TERCER NIVEL*/

.menu ul ul ul {
    left: 100%;
    display: block;
    top:0;
}

.menu li li li {
    background: #4E949C;
    width:170%;
}




/*

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



.menu li:hover {
    background: rgba(0,0,0,0.3);
}

.menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;

}
/*
@media (max-width:768px) {
    header label {
        display: block;
    }

    .menu {
        position: absolute;
        background: #4E94AB;
        width: 70%;
        margin-left: -70%;
        transition: all 0.5s;
    }

    .menu ul {
        /*flex-direction: column;*/
/*        display: block;
        background: #555;
    }

    .menu li {
        border-top: 1px solid #fff;
    }

    .menu ul li:hover ul {
        display: none;
    }

    #btn-menu:checked ~ .menu  {
        margin: 0;
    }
 */

}