Upvote:2
The 180 days are literally 180 days, next to each other on the calendar -- no pauses, no interruptions, no breaks.
They never "reset"; you always need to comply with the 90/180 rule for the the period that consists of today together with the previous one-hundred and seventy-nine days.
The 90 days count
If your "working holiday visa" is a type D visa (which I think they are in general), then your 90 days in Spain did not satisfy condition 4, and therefore your 90/180 Schengen counter is still at 0 days spent.