/* ELIMINAMOS BEFORE LINEA INFERIOR */
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.current-rollover:before,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left.current:not(.ma-menu-boton):before,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.open:not(.ma-menu-boton):before,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.current:not(.ma-menu-boton):before,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left:hover:before,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item:hover:before {
    content: none !important;
    display: none !important;
}

/* .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left.current {
    border-radius: 24px !important;
    color: #DF0027 !important;
    font-weight: 500 !important;
} */


/* eliminamos el borde de abajo del menu */
.ma-menu-section .et_pb_with_border,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu
{
    border-bottom-width: 0 !important;
}

/* .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item {
    font-size: 16px !important;
}

.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 .magl-menu-item {
    font-size: 14px !important;
} */


.ma-menu-section .magl_rollover_menu .magl-search {
    top: -17px !important;
}
 
.ma-menu-section .magl-search .magl-search__form,
.ma-menu-section .magl-search .magl-search__input {
    border-radius: 50px;
}



.ma-menu-section .magl_rollover_menu .magl-menu-item {
    color: #404040 !important;
    font-weight: 500 !important;
    line-height: 24px !important;
}

.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-level-2.current a.magl-menu-item.current,
.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-level-2 span.magl-menu-item.current-rollover {
    color: #DF0027 !important;
}

.ma-menu-section .magl-menu-level-1.ma-menu-boton.gray-button {
    border: none;
    background-color: #063F3F !important;
}

.ma-menu-section .magl-menu-level-1.ma-menu-boton.gray-button:hover {
    background-color: #1D6F70 !important;
}

.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-level-1 .magl-menu-item.ma-menu-enlace-flecha-derecha,
.ma-menu-section .magl-menu-rollover .ma-rollover .ma-rollover-enlaces-simples a {
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-level-1 .magl-menu-item.ma-menu-enlace-flecha-derecha:hover,
.ma-menu-section .magl-menu-rollover .ma-rollover .ma-rollover-enlaces-simples a:hover {
    text-decoration: none !important;
}


@media (min-width: 1183px) {

    header.cab_fija_sin_sticky .et_pb_section.ma-menu-section>.et_pb_row {
        margin-bottom: 70px !important;
    }

    header.cab_fija_sin_sticky .et_pb_section.ma-menu-section>.et_pb_row.segundo-nivel-new-height {
        margin-bottom: 20px !important;
    }

    .ma-menu-section .magl-search .magl-search__input {
        height: 56px !important;
    }
    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left.current {
        background: #FFEEF2 !important;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1 .magl-menu-item:not(.ma-menu-boton) {
        height: auto !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1 {
        margin-right: 8px;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1.has-children.current>.magl-menu-item.current {
        padding: 0;
    }

    /* ELIMINAMOS AFTER FLECHA */
    .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1.has-children>.magl-menu-item.menu-item-left::after {
        content: none !important;
        display: none !important;
        position: static !important;
        font-size: 0 !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1>.magl-menu-item.menu-item-left {
        /* display: block;
        letter-spacing: 0;
        line-height: 18px;
        position: relative; */
        padding: 4px 24px !important;
        border-radius: 24px !important;
        margin-bottom: 21px;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1.menu-item-left {
        height: auto !important;
        padding-top: 0 !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left {
        background: transparent !important;
        border-radius: 24px !important;
        border: 1px solid transparent;
        font-weight: 500 !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left:not(.current) {
        color: #666666 !important;
        font-weight: 500 !important;
    }
    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left:not(.current):hover {
        background: #FFFFFF;
        border-radius: 24px !important;
        border: 1px solid #666666 !important;
        color: #666666 !important;
        font-weight: 500 !important;
    }

    /* IMPORTANTE VALOR A TOCAR PARA MENUS GRANDES */
    /* .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 {
        margin-right: 32px !important;
    } */

    /* AFTER SEGUNDO NIVEL */

    /* .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2>.magl-menu-item */
    .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2>.magl-menu-item {
        display: inline-block !important;
        padding: 0 !important;
    }

    .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 span.magl-menu-item::after {
        content: "3";
        font-family: ETmodules;
        font-size: 1.4em;
        /* font-size: 14px !important; */
        position: absolute;
        transition: .3s ease;
        margin-left: 4px;
        line-height: 24px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* AFTER ROTATE */
    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 .magl-menu-item.current:after {
        transform: rotate(180deg);
        transition: .3s ease;
    }

    /* PARA EL BEFORE CUANDO EL MENU SECUNDARIO ES CURRENT */
    /* .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 .magl-menu-item.current::before {
        height: 1px !important;
        width: 100%;
        left: 0;
        position: absolute;
        content: ' ' !important;
        background-color: #404040 !important;
        display: block !important;
    } */


    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 .magl-menu-item.current,
    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-level-2 .magl-menu-item {
        color:#404040 !important;
    }


    /* IMPORTANTE VALOR A TOCAR PARA MENUS GRANDES */
    .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 {
        padding-left: 24px !important;
        /* padding-right: 24px !important; */
    }

    /* IMPORTANTE VALOR A TOCAR PARA MENUS GRANDES */
    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu li.magl-menu-level-2:last-of-type {
        padding-right: 24px !important;
    }


    /* .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 .magl-menu-item.current:before, */
    .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-menu-level-2 span.magl-menu-item:hover:before {
        /* top: calc(100% - 15px) !important; */
        top: 100% !important;
        /* width: 100% !important; */
        width: calc(100% + 40px) !important;
        text-align: center !important;
        left: -8px !important;
        height: 1px !important;
        position: absolute;
        content: ' ' !important;
        background-color: #526570;
        /* display: block !important; */
        display: inline-block !important;
    }
    
    .ma-menu-section .clon .magl_rollover_menu .magl-menu-nav .magl-menu-level-2 a.magl-menu-item:hover:before {
        top: 100% !important;
        /* width: 100% !important; */
        width: calc(100% + 16px) !important;
        text-align: center !important;
        left: -8px !important;
        height: 1px !important;
        position: absolute;
        content: ' ' !important;
        background-color: #526570;
        /* display: block !important; */
        display: inline-block !important;
    }

    /* header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-2 .magl-menu-item:not(.ma-menu-boton),
    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1 .magl-menu-item:not(.ma-menu-boton) {
        padding-right: 24px;
        padding-left: 24px;
    } */

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu.level-2 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-menu-level-1.current .magl-sub-menu,
    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1 .magl-sub-menu.level-2
    {
        width: fit-content;
        background: #F8F8F8;
        border-radius: 32px;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-rollover,
    header.header-fija.header-de-bajada .ma-menu-section .magl_rollover_menu .magl-menu-rollover {
        top: 148px !important;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-rollover.magl-menu-rollover-new-height {
        top: 198px !important;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu.level-2 {
        top: 0 !important;
    }

    header .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-level-1.ma-menu-boton.ma-menu-boton-new-height {
        top: 100px !important;
    }

    /* BUSCADOR */
    .magl_rollover_menu .magl-search-dsk {
        order: 22;
        margin-left: 16px !important;
        margin-top: -15px !important;
        width: 56px !important;
        min-width: 56px !important;
        display: flex;
        /* align-items: flex-start; */
        align-items: center !important;
        justify-content: center;
        height: 56px !important;
        /* border-radius: 32px; */
        border-radius: 50%;
        border: 1px solid;
    }

    .ma-menu-section .et_pb_with_border .et_pb_column .magl_rollover_menu .magl-menu-nav .magl-menu-main-level-1:not(.clon)   {
        margin-right: 0px;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item.menu-item-left.current {
        border-radius: 24px !important;
        color: #DF0027 !important;
        font-weight: 500 !important;
    }

    .ma-menu-section .et_pb_with_border.et_pb_column:not(.clon)   {
        z-index: 99;
    }

    .ma-menu-section .ma-menu-enlace-rollover.magl-menu-level-1>.magl-sub-menu {
        background-color: #fff !important;
        border: 1px solid #E8EBED !important;
        /* border-top: 4px solid #526570; */
        width: calc(100% + 15px);
        padding: 18px 7.5px;
        z-index: 92;
        left: 0;
        border-bottom-right-radius: 24px;
        border-bottom-left-radius: 24px;
        /* border-bottom-width */
    }

    .ma-menu-section .magl_rollover_menu .magl-search .magl-search__button {
        top: 20px !important;
    }

    .ma-menu-section .magl-menu-level-1.ma-menu-boton {
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-rollover .et_pb_section {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }


    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2 {
        margin-right: 0 !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-sub-menu .magl-menu-level-2[class*="ma-rollover-"] {
        margin-right: 24px !important;
    }

}


@media (max-width: 1182px) {
    .magl_rollover_menu .magl-menu-rollover {
        top: 100px !important;
    }

    .ma-menu-section .magl_rollover_menu .magl-menu-nav .magl-menu-item {
        font-size: 20px !important;
    }

    .ma-menu-section .magl-menu-level-1.ma-menu-boton.gray-button>.magl-menu-item {
        background-color: #063F3F !important;
    }

    .ma-menu-section .magl-menu-level-1.ma-menu-boton.gray-button>.magl-menu-item:hover {
        background-color: #1D6F70 !important;
    }
}