Viladecans, being a part of Spain, is relatively safe for solo female travelers. Crime rate is low and local people are generally friendly and helpful. As with anywhere, it's advised to stay vigilant, especially during the night or in less crowded areas but overall, you should feel quite secure.