/* ==========================================================================
   VIVA OS - Menu Principal v2.0 (Estilo Facebook)
   Creado: Marzo 2026
   ========================================================================== */

/* Protección de visibilidad para shell loading */
[data-viva-mobile-shell] {
    min-height: 56px;
    display: block !important;
    visibility: visible !important;
}

/* Contenedor Principal del Menú */
.viva-menu-container {
    position: fixed;
    top: 0;
    left: -100%; /* Inicia fuera de la pantalla */
    width: 100%;
    max-width: 580px; /* Ancho similar a la app de FB */
    height: 100%;
    background: linear-gradient(135deg, #1f2227 0%, #1b1e23 100%);
    color: #f1f3f6;
    z-index: 10000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex !important;
    flex-direction: column;
    font-family: 'Segoe UI', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-y: auto;
    border-right: 1px solid #313844;
    visibility: visible !important;
}

.viva-menu-container.active {
    left: 0;
}

/* Overlay para el fondo */
#viva-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#viva-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


/* Cabecera del Perfil */
.viva-menu-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #2a2e35;
    flex-shrink: 0;
}

.viva-menu-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    object-fit: cover;
}

.viva-menu-user-info {
    margin-left: 16px;
}

.viva-menu-user-name {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.viva-menu-user-role {
    font-size: 14px;
    color: #d0d8e4;
}

.viva-menu-close-btn {
    margin-left: auto;
    width: 44px;
    height: 44px;
    background: #3a3f48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

/* Título de Sección */
.viva-menu-section-title {
    font-size: 18px;
    font-weight: 700;
    padding: 20px 16px 8px 16px;
    color: #e9edf2;
}

/* Grid de Botones */
.viva-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.viva-menu-card {
    background: #232830;
    border: 1px solid #313844;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-decoration: none;
    color: #eef2f7;
    transition: background-color 0.2s ease;
    min-height: 94px;
}

.viva-menu-card:hover {
    background-color: #3a3f48;
}

.viva-menu-card .icon {
    font-size: 22px;
    color: #d4af37;
    margin-bottom: 8px;
}

.viva-menu-card span {
    font-size: 16px;
    font-weight: 600;
}

/* Card destacada — estilo "Artista Detrás de la Lente" */
.viva-menu-card--featured {
    background: #111317;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.viva-menu-card--featured .icon {
    display: none;
}

.viva-menu-card--featured span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1.4;
    color: #ffffff;
}

/* Botón "Ver más" */
.viva-menu-expand-btn {
    background: #3a3f47;
    border-radius: 8px;
    margin: 16px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Acordeón */
.viva-menu-accordion {
    padding: 0 16px;
    border-top: 1px solid #3a414d;
    margin-top: 16px;
}

.viva-menu-accordion-item {
    border-bottom: 1px solid #3a414d;
}

.viva-menu-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.viva-menu-accordion-header i {
    transition: transform 0.3s ease;
}

.viva-menu-accordion-item.active .viva-menu-accordion-header i {
    transform: rotate(180deg);
}

.viva-menu-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 0;
}

.viva-menu-accordion-content a {
    color: #d0d8e4;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
}
.viva-menu-accordion-content a:hover {
    background-color: #3a3f48;
    color: #fff;
}

.viva-menu-accordion-item.active .viva-menu-accordion-content {
    padding-bottom: 16px;
}


/* Botón de Cerrar Sesión */
.viva-menu-logout-btn {
    background: #3a3f47;
    border-radius: 8px;
    margin: 16px;
    padding: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: auto; /* Empuja al final */
    flex-shrink: 0;
}

/* Botón de Hamburguesa Animado */
.viva-hamburger-button {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(30, 30, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
    z-index: 10001; /* Encima del menú */
    position: fixed; /* O absolute, dependiendo del layout */
    top: 20px;
    left: 20px;
}

.viva-hamburger-button span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 2.5px 0;
}

.viva-hamburger-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.viva-hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.viva-hamburger-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Archivo limpio para nuevo contenido */
