﻿

.menu-container, .menu-panel, .submenu-panel, #btnSubMenuRegresar {
    display: none;
}


@media (max-width: 1024px) {

    .menu-logo {
        cursor: pointer;
    }

    a:focus, a:hover {
        color: #43474A;
        text-decoration: none;
    }

    .menu-container {
        position: sticky;
        width: 100%;
        z-index: 1000;
        display: flex;
        padding: 12px 24px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        align-self: stretch;
        background: #FFF;
    }

    .menu-logo {
        width: 130px;
        height: 26.88px;
    }

    /*icono hamburguesa*/
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

        .hamburger span {
            display: block;
            height: 3px;
            width: 100%;
            background-color: #585C61;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Animación para convertir en "X" */
        .hamburger.active span:nth-child(1) {
            transform: translateY(7.5px) rotate(45deg);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-7.5px) rotate(-45deg);
        }

    /* Ejemplo de menú desplegable (puedes ajustar según tu diseño) */
    .menu-items {
        display: none;
        flex-direction: column;
        background-color: #fff;
        padding: 12px 24px;
    }

        .menu-items.open {
            display: flex;
        }

    .menu-items-sesion {
        display: flex;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        align-self: stretch;
    }

    .title-menu {
        color: #2E3133;
        font-family: 'Montserrat';
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 30px;
    }

    .line {
        height: 1px;
        margin: 24px 0px;
        width: 100%;
        display: flex;
        color: #D2D4D7;
        background: #D2D4D7;
    }


    /* --- Panel lateral --- */
    .menu-panel {
        display: block;
        position: fixed;
        top: 51px;
        left: 0;
        width: 100%;
        height: -webkit-fill-available;
        -webkit-overflow-scrolling: touch;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
        overflow-y: auto;
        z-index: 9999;
        padding: 24px;
    }

        /* Menú abierto */
        .menu-panel.open {
            transform: translateX(0);
        }

        /* --- Estilo del contenido --- */
        .menu-panel h2 {
            font-size: 20px;
            margin-bottom: 16px;
            border-bottom: 1px solid #e5e5e5;
            padding-bottom: 8px;
        }

        .menu-panel ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

    .item-li {
        display: flex;
        height: 40px;
        padding: var(--spacing-alias-spacing-s, 8px) var(--spacing-alias-spacing-m, 12px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        align-self: stretch;
    }

        .item-li a {
            color: #43474A;
            font-family: "Open Sans";
            font-size: 14px;
            font-style: normal;
            font-weight: 600;
            line-height: 18.9px;
        }


    #btnEmpresas {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex: 1 0 0;
        border-radius: 4px;
        background: #0074D9;
        border: none;
        width: 100%;
    }

        #btnEmpresas a {
            text-decoration: none;
            color: #FFF;
            font-family: "Open Sans";
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: 21.6px;
            margin: 0;
            padding: 8px 16px;
        }

    /*    .menu-panel a {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 16px;
        gap: 8px;
    }*/

    .menu-actions {
        margin-top: 24px;
        display: flex;
        gap: 8px;
    }

    .menu-actions-btn-a {
        text-decoration: none;
        display: flex;
        padding: var(--spacing-alias-spacing-s, 8px) var(--spacing-alias-spacing-l, 16px);
        justify-content: center;
        align-items: center;
        gap: var(--spacing-alias-spacing-s, 8px);
        flex: 1 0 0;
        border-radius: var(--radius-alias-radius-s, 4px);
        border: 1px solid var(--general-link, #0074D9);
        font-family: "Open Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 21.6px;
    }

    .menu-actions-btn-a-reg {
        color: #0074D9;
        background-color: white;
    }

    .menu-actions-btn-a-ses {
        color: #FFF;
        background-color: #0074D9;
    }

    .menu-actions-btn-a-reg:hover {
        text-decoration: none;
        color: #0074D9;
        border-width: 2px;
        padding: 7px 15px;
    }

    .menu-actions-btn-a-reg:active {
        border: 2px solid #004480;
        color: #0074D9;
        text-decoration: none;
        padding: 7px 15px;
    }

    .menu-actions-btn-a-ses:hover, #btnEmpresas:hover {
        background-color: #004480;
        color: #FFFFFF;
        text-decoration: none;
    }

    .menu-actions-btn-a-ses:active, #btnEmpresas:active {
        border-radius: var(--radius-alias-radius-s, 4px);
        border-top: 1px solid var(--primary-alias-primary-darker, #003666);
        border-right: 1px solid var(--primary-alias-primary-darker, #003666);
        border-left: 1px solid var(--primary-alias-primary-darker, #003666);
        background: linear-gradient(0deg, var(--primary-alias-primary-darker, #003666) -12.5%, var(--primary-alias-primary-darker, #003666) 100%);
        box-shadow: 0 7px 12px 0 rgba(0, 0, 0, 0.43) inset;
    }



    .btn-outline {
        flex: 1;
        padding: 10px;
        border: 1px solid #0078D7;
        background: none;
        color: #0078D7;
        border-radius: 4px;
        cursor: pointer;
    }

    .btn-solid {
        flex: 1;
        padding: 10px;
        border: none;
        background: #0078D7;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
    }

    .submenu-items {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 15px;
    }

    .submenu-items-li {
/*        display: flex;
        height: 40px;
        padding: 8px 12px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        align-self: stretch;*/
    }

    .submenu-items-li-a {
        color: #43474A;
        margin: 8px 12px;
        font-family: "Open Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 18.9px;
        display: flex;
        height: 40px;
        padding: var(--spacing-alias-spacing-s, 8px) var(--spacing-alias-spacing-m, 12px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        align-self: stretch;
    }

    .submenu-items-li:first-child .submenu-items-li-a:active, .item-li:first-child .submenu-items-li-a:active {
        border-radius: var(--radius-alias-radius-s, 4px);
        border: 1px solid var(--general-blue-second-bg, #A3CDF1);
        background: var(--general-link-bg, #ECF3F9);
    }

    .submenu.open .submenu-items {
        max-height: fit-content;
        padding-bottom: 8px;
    }

    .cont-submenu-title {
        display: flex;
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        align-self: stretch;
    }

    .submenu-title {
        cursor: pointer;
        padding: 10px 0;
        font-weight: bold;
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px 0;
        font-weight: bold;
        gap: 8px;
    }

    .submenu-img {
        width: 24px;
        height: 24px;
    }

    .submenu-title-text {
        overflow: hidden;
        color: #004480;
        text-overflow: ellipsis;
        font-family: "Open Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 21.6px;
        margin: 0;
    }

    .submenu-subtext {
        margin: 0;
        padding: 0px 8px;
        color: #585C61;
    }

    .submenu-items {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    /*REVISAR SI NO MOVIO ALGO*/
    /*    .submenu-items li a {
        display: block;
        padding: 5px 0;
        font-weight: normal;
        color: #333;
        text-decoration: none;
    }*/

    /*    .submenu-items li a:hover {
        color: #007bff;
    }*/

    .item-next {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }


    /*   Estilos para el Menu cuando existe sesion */

    .item-next-sesion {
        display: flex;
        height: 40px;
        padding: 8px 12px;
        /*        flex-direction: column;*/
        /*        justify-content: center;*/
        align-items: flex-start;
        align-self: stretch;
    }

    .item-btn-sesion {
        text-decoration: none;
        color: #43474A;
        font-family: "Open Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 18.9px;
    }

    .menu-actions-sesion {
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        height: 40px;
        gap: 8px;
        cursor: pointer;
    }

    .btn-logout-sesion {
        color: #AC1C10;
        font-family: "Open Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 135%;
    }

    .cont-btns-session {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        width: calc(100% - 48px);
        bottom: 40px;
    }

        .cont-btns-session button:nth-child(1) {
            display: flex;
            height: 40px;
            padding: 8px 16px;
            justify-content: center;
            align-items: center;
            gap: 8px;
            align-self: stretch;
            border: none;
            border-radius: 32px;
            background: var(--Chip-Default-background-new, #F2F5FA);
        }

            .cont-btns-session button:nth-child(1) p {
                color: var(--Chip-Default-text-new, #0A2D66);
                /* Body/SemiBold/body */
                font-family: var(--font-family-body, "Open Sans");
                font-size: var(--font-size-body, 14px);
                font-style: normal;
                font-weight: 600;
                line-height: 135%; /* 18.9px */
                margin: 0;
            }

        .cont-btns-session button:nth-child(2) {
            display: flex;
            height: 32px;
            padding: var(--spacing-alias-spacing-xs, 4px) var(--spacing-alias-spacing-s, 8px);
            justify-content: center;
            align-items: center;
            gap: var(--spacing-alias-spacing-s, 8px);
            align-self: stretch;
            border: none;
            border-radius: var(--radius-alias-radius-s, 4px);
            background: var(--Button-Default-Altern-background, rgba(0, 116, 217, 0.00));
        }

            .cont-btns-session button:nth-child(2) p {
                color: var(--general-link, #0074D9);
                /* Body/Bold/body */
                font-family: var(--font-family-body, "Open Sans");
                font-size: var(--font-size-body, 14px);
                font-style: normal;
                font-weight: 700;
                line-height: 135%; /* 18.9px */
                margin: 0;
            }

    /*        Estilos para el submenu-panel */
    .submenu-panel {
        display: block;
        position: fixed;
        top: 51px;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
        overflow-y: auto;
        z-index: 9999;
        padding: 24px;
    }

        /* Sub Menú abierto */
        .submenu-panel.open {
            transform: translateX(0);
        }

    .submenu-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #btnSubMenuRegresar {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

        #btnSubmenuRegresar {
            color: #004480;
            font-family: "Open Sans";
            font-size: 14px;
            font-style: normal;
            font-weight: 600;
            line-height: 18.9px;
        }

    #submenuTitle {
        color: #2E3133;
        font-family: 'Montserrat';
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 30px;
    }

    #submenu-items-dinamic {
        display: flex;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        align-self: stretch;
    }

    .submenu-li {
        display: flex;
        height: 40px;
        padding: 8px 32px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        align-self: stretch;
    }

    #submenu-items-dinamic .submenu-li:last-child {
        margin-bottom: 120px;
    }

    .submenu-link {
        color: #43474A;
        font-family: "Open Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 18.9px;
    }
}


