Costa Rica has achieved a clean energy milestone by using 100 per cent renewable energy for a record 75 days in a row.