New research finds high ranking Spanish noble was a woman