Bagnaia wins in Barcelona, but Martin is the world champion