In Chile, an established and stable democracy had elected a Socialist president with an ambitious program of social and economic reforms.