Bernardo Arevalo, a 64-year-old ex-diplomat and son of a former president, had built an unassailable advantage after 94% of the votes had been counted.