Bolivia has elected a centrist senator, Rodrigo Paz, as its next president, bringing an end to nearly 20 years of continuous rule by the Movement for Socialism (Mas) party.

With almost all votes counted, Paz, of the Christian Democratic Party, defeated right-wing candidate Jorge "Tuto" Quiroga in Sunday's run-off election with a share of 54.6%.

A severe economic crisis and infighting within Mas, which has dominated Bolivian politics since 2006, saw many voters wanting change.

Paz has said he will end fuel shortages and address Bolivia's wider economic problems. In his victory speech, he said he would open up Bolivia to wider international investment and stimulate private-sector growth.

Paz, 58, went from being a surprise frontrunner in the first round of the election in August to achieving a clear win over Tuto Quiroga, who received 45.4% of the votes in the run-off.