.elementor-widget-header_menu_e601c018,
.elementor-widget-header_menu_e601c018 .elementor-widget-container {
    z-index: 9999 !important;
    position: relative !important;
    overflow: visible !important;
}

.hm-e601c018-wrapper {
    position: relative;
    width: 100%;
    min-height: 80px;
    display: flex;
    box-sizing: border-box;
}

.hm-e601c018-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3a6cb6;
    z-index: 1;
}

.hm-e601c018-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #1a1f26;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.hm-e601c018-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 30px;
    box-sizing: border-box;
}

.hm-e601c018-logo {
    width: 200px;
    display: flex;
    align-items: center;
}

.hm-e601c018-logo img {
    max-height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.hm-e601c018-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.hm-e601c018-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.hm-e601c018-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap; /* ← evita que las palabras se partan en varias líneas */
}

.hm-e601c018-caret {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hm-e601c018-menu li.is-open > a .hm-e601c018-caret {
    transform: rotate(180deg);
}

.hm-e601c018-external-arrow {
    flex-shrink: 0;
}

/* NUEVA animación de flecha sin desplazamiento (pulso de escala) */
@keyframes arrowPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hm-e601c018-menu li a:hover .hm-e601c018-external-arrow {
    animation: arrowPulse 0.4s ease-in-out forwards;
    transform-origin: center;
}

@media (min-width: 1025px) {
    .hm-e601c018-menu > li {
        position: relative;
    }

    .hm-e601c018-menu > li > .hm-e601c018-submenu-wrapper {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 240px;
        z-index: 99999;
        background: #ffffff;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-radius: 6px;
        overflow: visible !important;
        display: none;
    }

    .hm-e601c018-menu ul.sub-menu {
        list-style: none;
        padding: 8px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .hm-e601c018-menu ul.sub-menu li {
        width: 100%;
        position: relative;
    }

    .hm-e601c018-menu ul.sub-menu li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        color: #2b3442;
        font-size: 13.5px;
        text-transform: none;
        font-weight: 500;
        transition: background-color 0.2s, color 0.2s;
    }

    .hm-e601c018-menu ul.sub-menu li a:hover {
        background-color: #f4f7fc;
        color: #3a6cb6;
    }

    .hm-e601c018-menu li.menu-item-level-2 > .hm-e601c018-submenu-wrapper {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 0;
        width: 100%;
        display: none;
    }

    .hm-e601c018-menu li.menu-item-level-2 > .hm-e601c018-submenu-wrapper ul.sub-menu li a {
        padding-left: 35px;
        font-size: 13px;
        color: #556275;
    }
}

/* Ajustes para pantallas de PC medianas (entre 1025px y 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .hm-e601c018-menu {
        gap: 15px; /* reduce el espacio entre ítems */
    }

    .hm-e601c018-menu li a {
        font-size: 13px; /* opcional: reduce ligeramente el tamaño de fuente */
    }
}

.hm-e601c018-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 100000;
}

.hm-e601c018-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2b3442;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-e601c018-toggle.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hm-e601c018-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.hm-e601c018-toggle.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .hm-e601c018-left {
        width: 180px;
        clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
    }

    .hm-e601c018-toggle {
        display: flex;
        margin-left: auto;               /* <-- Posiciona el toggle a la derecha */
    }

    /* El logo cede espacio flexible */
    .hm-e601c018-logo {
        margin-right: auto;
    }

    .hm-e601c018-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2b3442;
        z-index: 9999;
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 75vh;
        overflow-y: auto;
    }

    .hm-e601c018-nav.is-open {
        display: block !important;
    }

    .hm-e601c018-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
        align-items: stretch;
    }

    .hm-e601c018-menu li {
        width: 100%;
        display: block;
    }

    .hm-e601c018-menu li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 24px;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hm-e601c018-submenu-wrapper {
        display: none;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
    }

    .hm-e601c018-menu ul.sub-menu li a {
        padding-left: 40px;
        font-size: 13.5px;
    }

    .hm-e601c018-menu li.menu-item-level-2 > .hm-e601c018-submenu-wrapper ul.sub-menu li a {
        padding-left: 60px;
        font-size: 13px;
    }
}