The decision immediately put in danger $ 3.5 billion invested in Bolivia since the late 1990 's by Petrobras of Brazil , British Gas , Repsol of Spain and Total of France -- all of them lured here by Latin America 's second-largest natural gas deposits .