input.menu-trigger {
    left: 0;
    top: 0;
    height: 53px;
    width: 52px;
    z-index: 1001;
    opacity: 0;
    cursor: pointer;
}

ul.menu {
    overflow: hidden;
    padding: 0;
    margin: auto;
    list-style-type: none;
    background-color: #ffffff;
    /* transition: all 0.2s ease; */
    z-index: 1000;
    display: table;
}

    ul.menu li a {
        display: block;
        padding: 6px 16px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        ul.menu li a:hover {
            color: #ffffff;
        }

    ul.menu li ul {
        padding: 0;
        margin: 0;
        list-style-type: none;
        margin-left: 10px;
        transition: all 0.3s ease;
        text-align: left;
    }

    ul.menu > li {
        visibility: visible;
        transition: all 0.5s ease;
    }

        ul.menu > li.start {
            position: fixed;
            visibility: visible;
            background-color: #ffffff;
            text-align: center;
            display: none;
        }

            ul.menu > li.start a {
                width: 52px;
                text-align: center;
                padding: 0;
            }

            ul.menu > li.start + li {
                margin-top: 52px;
            }

    ul.menu:hover {
        overflow-y: scroll;
    }

        ul.menu:hover > li {
            visibility: visible;
        }

        ul.menu:hover + div.overlay {
            width: 100%;
            height: 100%;
            opacity: 0.5;
            z-index: 999;
        }

input.menu-trigger:checked + ul.menu {
    height: 100%;
    width: 80%;
    overflow-y: scroll;
}

    input.menu-trigger:checked + ul.menu > li {
        visibility: visible;
    }

    input.menu-trigger:checked + ul.menu + div.overlay {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0.5;
        z-index: 999;
    }

div.overlay {
    opacity: 0;
    transition: all 0.2s ease;
}

@media screen and (min-width: 10px) {
    input.menu-trigger {
        display: none;
    }

    ul.menu {
        overflow: visible;
       /* transition-delay: 0.5s; */
    }

        ul.menu:hover {
            overflow: visible;
            transition-delay: 0.15s;
        }

            ul.menu:hover > li {
                visibility: visible;
                opacity: 1;
            }

        ul.menu > li {
            position: relative;
            float: left;
            opacity: 1;
            visibility: visible;
            transition: all 0.5s ease;
            transition-delay: 0.5s;
        }

            ul.menu > li > ul {
                top: 100% !important;
                left: 0 !important;
            }

            ul.menu > li:hover > ul {
                top: 100% !important;
                opacity: 1;
            }

                ul.menu > li:hover > ul li {
                    position: relative;
                    width: 100%;
                }

                    ul.menu > li:hover > ul li:hover > ul {
                        opacity: 1;
                    }

            ul.menu > li.start {
                position: relative;
                opacity: 1;
                visibility: visible;
            }

                ul.menu > li.start + li {
                    margin-top: 0;
                }

        ul.menu li ul {
            position: absolute;
            opacity: 0;
            margin-left: 0;
            min-width: 200px;
            visibility: hidden;
            background-color: #ffffff;
            top: 0;
            left: 100%;
        }

            ul.menu li ul li {
                position: relative;
                white-space: nowrap;
            }

        ul.menu li:hover ul {
            z-index: 1;
            transition: visibility 0s linear 0.2s, opacity 0.2s ease 0.2s;
        }

        ul.menu li:hover > ul {
            visibility: visible;
        }

    input.menu-trigger:checked + ul.menu {
        left: 0;
        height: 52px;
        width: 100%;
        overflow: visible;
        transition-delay: 0.15s;
    }

        input.menu-trigger:checked + ul.menu > li {
            visibility: visible;
            opacity: 1;
            transition-delay: 0.15s;
        }

    div.overlay {
        display: none;
    }
}

/* menú responsive */

#boton_menu, #boton_menu_2 {
    position: relative;
    top: 5px;
    height: 30px;
    width: 30px;
    border: none;
    left: -5px;
}

    #boton_menu:hover {
        color: #000000;
    }

#contenedor_menu_boton .hamburguesa::after {
    font-family: "FontAwesome";
    font-size: 21px;
}

#contenedor_menu_boton .equis::after {
    font-family: "FontAwesome";
    font-size: 21px;
}

.contenedor_menu_boton {
    position: relative;
    left: 0px;
    top: 0px;
    z-index: 1000;
    height: 35px;
    width: 100%;
    background-color: #ffffff;
}

#left_column {
    position: fixed;
}

#center_column {
    z-index: 20;
}

@media screen and (min-width: 785px) {
    .contenedor_menu_boton {
        display: none;
    }

    .dreta {
        background-color: #ffffff;
        transform: translate3d(0px, 0px, 0px); /* afecta al menú horizontal en pantalles grans. El segón valor ha de ser 0. Si té valors negatius començarà a tapar el header */
       /* transition: transform 0.4s ease 0s, -webkit-transform 0.4s ease 0s; */
    }

    .esquerra {
        transform: translate3d(-282px, 0px, 0px);
        /* transition: transform 0.4s ease 0s, -webkit-transform 0.4s ease 0s; */
        height: 1px !important;
    }

    #boton_menu_2 {
        display: none;
    }
}

@media screen and (max-width: 784px) {

    .row_cabecera {
        box-shadow: none;
    }

    #boton_menu_2 {
        display: block;
        height: 30px !important;
        background-color: transparent;
        margin-left: 10px;
        padding: 0px !important;
        border: none !important;
        box-shadow: none !important;
    }

    .dreta {
        background-color: transparent !important;
        transform: translate3d(0px, -30px, 0px); /* el segón valor ha de quedar a 0. Si te valors negatius començarà a tapar el header */
       /* transition: transform 0.4s ease 0s, -webkit-transform 0.4s ease 0s; */
        z-index: 1000;
        position: relative;
    }

    .ZonaRepresentantes .dreta {
        /*transform: translate3d(0px, 0px, 0px); */ /* el segón valor ha de quedar a 0. Si te valors negatius començarà a tapar el header */
    }

    .esquerra {
        transform: translate3d(-277px, -30px, 0px);
        /*transition: transform 0.4s ease 0s, -webkit-transform 0.4s ease 0s; */
        height: 1px !important;
    }

    ul.menu {
        padding-left: 45px;
        margin: initial;
        margin-top: -26px;
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.3);
        max-width: 250px;
    }

        ul.menu > li {
            float: initial;
        }

        ul.menu li:hover ul {
            z-index: 1;
        }

        ul.menu li ul {
            left: 100% !important;
        }

        ul.menu > li:hover > ul {
            top: 0% !important;
        }
}
