How climate change led to the appearance of a new bear species