beatriz was queen consort of both kingdoms until she died