I recommend you to file a consultation at the relevant immigration office, as you have the right to apply for the residence card as the relative of an EU citizen once your wife moves to Spain.
...