Costa Rica likes to advertise itself as an ecological paradise, where more than 98 percent of its electricity needs are met by clean energy.…