/* ============================================================
   MENÚ LATERAL MÓVIL
   SOLO MÓVIL – SIN TOCAR ESCRITORIO
============================================================ */

/* OVERLAY */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 4000;
}

/* CONTENEDOR */
#menu-lateral {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #001f3f;
    box-shadow: 4px 0 18px rgba(0,0,0,.25);
    transition: left .3s ease;
    z-index: 5000;
    overflow-y: auto;
    padding-bottom: 2rem;
}

/* ACTIVACIÓN */
body.menu-open #menu-lateral {
    left: 0;
}

body.menu-open #menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* HEADER */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

#menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* LISTA BASE */
.menu-movil ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ITEM CONTENEDOR */
.menu-item-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* LINK PRINCIPAL */
.menu-link {
    flex: 1;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

/* BOTÓN FLECHA */
.submenu-toggle {
    width: 60px;
    height: 50px;
    background: rgba(255,255,255,.05);
    border: none;
    border-left: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* ICONO */
.arrow-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    transition: transform .3s ease;
}

/* ROTACIÓN */
li.open .arrow-icon {
    transform: rotate(-135deg);
}

/* SUBMENÚ */
.menu-movil ul ul {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,.2);
    transition: max-height .4s ease;
}

.menu-movil li.open > ul {
    max-height: 500px;
}

/* LINKS SUB */
.menu-movil ul ul li a {
    display: block;
    padding: .8rem 1.5rem .8rem 2.5rem;
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.menu-movil ul ul li a:hover {
    background: #003366;
    color: #fff;
}

/* SOLO MÓVIL */
@media (min-width: 769px) {
    #menu-lateral,
    #menu-overlay {
        display: none;
    }
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-logo img {
    height: 40px;       /* ajusta si quieres */
    max-width: 160px;
    object-fit: contain;
}
