* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Barra de navegacion */

.navbar {
    background-color: #238FAA;
    height: 4em;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Contenedor del logo y los links */

.container-navbar {
    width: 0;
    background-color: #238FAA;
    position: absolute;
    height: 100%;
    transition: 1s;
}

/* Ajustes del logo */

.logo-position {
    display: flex;
    justify-content: center;

    height: 8em;
    width: 100%;
    margin-top: 2em;
    overflow: hidden;
    opacity: 0;
    transition: 1s;

}

.logo-position img {
    height: 8em;
}

/* Ajustes de los links */

/* Contenedor de todos los links */

.links {
    display: flex;
    flex-direction: column;


    padding-top: 2.5em;
    width: 100%;

    transition: 1s;
    opacity: 0;

    list-style-type: none;
}

/* Contenedor de cada link */

.link {
    overflow: hidden;
}

/* Ajustes del link */

.link a {
    text-decoration: none;
    color: #ddd;

    width: 100%;
    height: 2em;
    padding: 1em;

    transition: 0.5s;


    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    display: block;
}

.link a:hover {
    color: #fff;
}

.mostrar {
    height: 2em;
    transition: 1s;
    z-index: 1;
}

.mostrar:hover {
    height: 6em;
}


/* Para telefonos */

.closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    margin-left: 50px;

    font-size: 2em;

    text-decoration: none;
    color: #ddd;

    transition: 0.5s;
}

.closebtn:hover {
    color: #fff;
}


.openbtn {
    position: absolute;
    padding-top: 0.9em;
    padding-left: 1em;

    font-size: 1.27em;

    cursor: pointer;
    background-color: #238FAA;
    color: white;
    border: none;
}

.tel img {
    width: 1.4em;
    height: 1.4em;
    vertical-align: middle;
}

.tel{
    height: 3em;
    margin-top: .6em;
}

.tel a{
    margin-top: .3em;
    padding: 0;
}

.telefono{
    vertical-align: middle;
}

#listita{
    height: 0;
    transition: 0.7s;
}

@media only screen and (min-width: 916px) {
    .navbar {
        height: 5em;
    }

    .tel {
        margin: 0;
    }

    .tel a{
        margin: 0;
    }

    .tel{
        top: -.2em;
    }

    .links {
        height: 6em;
        margin-top: 3.2em;
    }

    .link {
        align-self: flex-start;
        margin-bottom: 4.5em;
    }

    .link ul {
        background-color: #238FAA;
    }

    .container-navbar {
        width: 100%;
        height: 5em;
        display: flex;
        flex-direction: row;
        transition: none !important;
    }

    .logo-position {
        transition: none !important;
        opacity: 1;
        flex: 2;
        height: 10em;
        margin-top: 1.2em;
    }

    .logo-position img {
        height: 10em;
    }

    .links {
        display: flex;
        flex-direction: row;
        transition: none !important;
        opacity: 1;
        align-items: flex-end;
        padding: 0;
        flex: 5;
        justify-content: space-between;
        margin-left: 3em;
    }

    .link {
        position: relative;
    }

    .link a {
        color: #fff;
        transition: none !important;
        font-size: 14px;
        display: block;
        padding: 0;
        text-align: left;
    }

    .link a span {
        font-size: 1.15em;
    }

    .openbtn {
        display: none;
    }

    .closebtn {
        display: none;
    }

    .links li:last-of-type {
        margin-right: 13%;
    }

    .links li:last-of-type a {
        font-size: 1.05em;
        padding-top: 0.2em;
    }

    #listita{
        position: absolute;
        margin-top: 1.8em;
        margin-left: 3.9em;
        padding: 0;
    }

    #listita a{
        margin: 0;
        width: 100%;
        padding: 0.7em 0.5em;
        vertical-align: center;
        height: 50%;
        border-top: 1px solid #fff
    }

    #listita .lista{
        width: 100%;
        margin: 0;
        height: 100%;
    }

    .last-link{
        padding-bottom: 2em;
    }
    

}

@media only screen and (min-width: 1550px) {
    .navbar {
        height: 154px;
    }

    .container-navbar {
        height: 154px;
    }

    .logo-position {
        position: absolute;
        padding: 0;
        margin: 0;
        width: 250px;
        margin-top: 50px;
        margin-left: 170px;
        height: 282px;
    }

    .link a span {
        font-size: 1em;
    }

    .logo-position img {
        width: 250px;
        height: 282px;
    }

    .link a,
    .link a strong {
        font-size: 23px;
    }

    .links {
        flex: 1;
        margin-left: 610px;
        margin-top: 105px
    }

    .links li:last-of-type a {
        margin-bottom: 15px;
    }

    .mostrar:hover {
        height: 135px;
    }

    .tel img {
        width: 2em;
        height: 2em;
    }

    .tel {
        top: -.4em;
    }
    #listita{
        margin-top: 3.05em
    }
}