I'm planning to do something similar to this, I'm spanish, been living in Andorra for some years and now changing to passive residence.
My plan is to live ~120 days in Andorra and travel the rest of the year.
I will spend the least amount of time in Spain as possible though, less than 60...