Guanajuato is an extremely safe city in Mexico. You can feel free to wander and explore the city center without having to avoid certain areas. Like all destinations, stay aware of your surroundings, don't get too intoxicated, and keep in touch with someone at home.