/* css/mobile-menu.css - Menú móvil mejorado */

/* Ocultar el menú hamburguesa en desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

/* Icono hamburguesa animado */
.hamburger-icon {
    width: 25px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

/* Animación cuando está activo */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Overlay oscuro */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #1e293b;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

/* Header del menú móvil */
.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-menu-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.mobile-menu-header p {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Usuario en móvil */
.mobile-user-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    margin: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-avatar {
    width: 40px;
    height: 40px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-user-email {
    color: #94a3b8;
    font-size: 0.7rem;
}

/* Navegación móvil */
.mobile-nav {
    padding: 0 15px;
}

.mobile-nav-item {
    margin: 5px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-nav-link i {
    width: 24px;
    font-size: 1.1rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

.mobile-nav-link.active {
    background: #e94560;
    color: #fff;
}

/* Separador */
.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px;
}

/* Footer del menú móvil */
.mobile-menu-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.mobile-menu-footer p {
    color: #94a3b8;
    font-size: 0.7rem;
}

/* Mostrar solo en móvil */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ocultar menú normal en móvil */
    .main-nav ul {
        display: none !important;
    }
    
    /* Ajustar header para móvil */
    .header-top .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
}