/*
 Theme Name:     ddo Child
 Theme URI:      https://dedomultimedia.com/
 Description:    Divi Child Theme 
 Author:         Pepe
 Author URI:     https://www.dedomultimedia.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
#menu-menu-ppal {
    margin-right: 0px !important;
    margin-left: 0px !important;
}
#menu-menu-idiomas {
    display: none;
    li {
        margin-top:2px;
        padding: 0 10px 0 0;
        &.current-lang a {
            color: #000000 !important;
        }
    }
}

#menu-menu-legal {
    flex-direction: column;
    margin-top: -3px;
    li {
        margin-top:2px;
        padding: 0 0px 0 0;
    }
}
.et_mobile_menu {
    left: auto;
    right: 0;
    min-width: 264px;
}

@media (max-width: 980px) {
    .et_pb_menu_0_tb_header {
        display: none;
    }
    .et_pb_group_1_tb_header {
        position: absolute;
        top: 7px;
    }
    .et_pb_group_1_tb_header .et_pb_image_1_tb_header {
        margin-right: 0px!important;
        width: 42px;
    }
    /* Menú legal del pie: mostrar como lista normal en lugar de hamburguesa */
    .et_pb_menu_0_tb_footer .et_pb_menu__menu {
        display: flex !important;
    }
    .et_pb_menu_0_tb_footer .et_mobile_nav_menu {
        display: none !important;
    }
    .et_pb_menu_0_tb_footer #menu-menu-legal {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin: 0px !important;
    }
    .et_pb_menu_0_tb_footer #menu-menu-legal li {
        display: block;
        padding: 0;
    }
    .et_pb_menu_0_tb_footer #menu-menu-legal li a {
        padding: 4px 0;
    }
    #mobile_menu2 {
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;

        .idiomas-row {
            display: flex;
            justify-content: center;
            border-top: 2px solid #000000;
            border-bottom: none;
            padding: 10px 0 0 0;
            margin-top: 10px;

            .li-idioma {
                display: inline-block;
                width: auto;
                border-bottom: none;

                a {
                    display: inline-block;
                    padding: 10px 15px;
                    border-bottom: none;
                }
                &.current-lang {
                    a {
                        color: #000000 !important;
                    }
                }
            }
        }
    }
}