For decades Costa Rica has stood out for its stability and has benefited from the most developed welfare system in the region.
It has no standing army, and its citizens enjoy one of the highest life expectancy levels in the Western hemisphere and better living standards than their war-torn neighbours.
The opening of a large computer chip plant in the late 1990s was a fillip to the economy, but its fortunes have been subject to the fluctuating world demand for microchips.