Dear Rye,

You will be able to opt for Spanish citizenship after having legally resided in Spain for two years. Any time spent as student does not count towards citizenship.