/* AVATAR */
.menu-profile .avatar {
    width: 30px;
    height: 30px;
    background-color: #000000;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
    margin-right: 10px;
}
.avatar-btn {
    width: 25px;
    height: 25px;
    background-color: #000000;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
}
	
@media (max-width: 1210px) {
    .menu-btn .username-wrapper {
        display: none;
    }
}
	
	
.menu-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    gap: 7px;
	border-radius: 6px;
    font-weight: 600;
    justify-content:flex-end;
}

/* RESPONSIVE TEXTO */
.username-desktop{display:inline;}
.username-tablet{display:none;}
@media(max-width:1024px){ .username-desktop{display:none;} .username-tablet{display:inline;} }
@media(max-width:600px){ .username-wrapper{display:none;} }

/* MODAL */
.menu-modal {
    display: block; /* siempre block para poder animar */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Contenido del modal */
/* Contenido del modal */
.menu-content {
    background: #fff;
    width: 321px;
    height: 100vh; /* Ocupa toda la altura de la ventana */
    position: fixed;
    top: 0;
    right: -321px; /* fuera de pantalla */
    transition: right 0.3s ease;
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
	
.menu-sidebar .menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    color: #333;
    padding: 10px;
    font-size: 16px;
    justify-content: flex-start;
    font-weight: 600;
}
	
.menu-sidebar ul.sub-items {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    padding: 0px;
}
	
li.menu-item a {
    font-size: 16px;
    color: #000;
}

li.menu-item a:hover {
    color: #000;
	font-weight: 600;
}
	
li.menu-item.menu-item-type-post_type:hover  {
    background-color: #f7f7f7;
	font-weight: 600;
}
	
li.menu-item.menu-item-type-custom:hover  {
    background-color: #f7f7f7;
	font-weight: 600;
}

/* Menu sidebar: scrollable si excede altura */
.menu-sidebar {
    flex: 1; /* toma todo el espacio disponible */
    overflow-y: auto; /* habilita scroll vertical */
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding-right: 5px; /* espacio para scroll */
}

/* Opcional: scrollbar personalizado */
.menu-sidebar::-webkit-scrollbar {
    width: 6px;
}
.menu-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.menu-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Cuando abrimos */
.menu-modal.open {
    opacity: 1;
}

.menu-modal.open .menu-content {
    right: 0; /* se desliza hacia la izquierda */
}

/* Cuando cerramos (agregando clase 'closing') */
.menu-modal.closing .menu-content {
    right: -321px; /* se desliza hacia la derecha */
}

/* HEADER */
.menu-header{
    display:flex;
    justify-content:flex-end;
    border-bottom:1px solid #eee;
}
.menu-close{
    background:none;
    border:none;
    font-size:1.8em;
    cursor:pointer;
}

/* PERFIL */
.menu-profile {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    background-color: #f7f7f7;
}

/* MENÚ */
.menu-sidebar{
    display:flex;
    flex-direction:column;
    gap:.5em;
}

.sub-items{
    display:none;
}


/* FLECHAS */
.openItemIcon-sub{
    transition: transform 0.3s ease;
}

.menu-header .close-btn {
    background: #f8f8f8;
    color: #000;
    border: 1px solid #d4d4d4;
    padding: 0px 10px 0px;
    justify-content: center;
    align-items: center;
}

.menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}


