Colombia has been locked in a long-running civil war involving two leftist rebel groups , rightist paramilitaries and the government .