There's an important distinction here: Guanajuato City (the capital) has a much better safety profile than rural parts of the state, which have experienced cartel-related violence in recent years. For tourists, the city itself — including the downtown area, tunnels (túneles), and university zone — is safe. The rural and outer-state areas require more caution.