Rural livelihood diversification decreases vulnerability to climate change in the Andean-Amazon foothills