MEXICO CITY — Mexican democracy has come a long way from the days when the ruling party would give out washing machines for votes and rip up ballots with the wrong box checked off. Today, electoral regulators preside over an elaborate system of safeguards that have made stealing the presidency at the ballot box impossible, political analysts say.