Javier - This sounds like a wonderful adventure ! Unfortunately it’s unlikely I will be able to afford the time

in 2021 anyway...
From the UK you have to add a few days for a cross-Spain adventure eg
Day 1 to Portsmouth
Day 2 overnight ferry to Bilbao / Santander and drive S towards Madrid... midway stop for the night somewhere like Segovia?
Day 3 drive to S Spain and ferry to Morroco?
Days 4-15/18 (11-14 days) Morocco
Day 16/19 - 18/21 return
On the other hand (thinking aloud) a Spain trip with a short diversion to Morocco to wave off the adventurers could be more feasible for some ( and er an easier sell for some 2nd halves!)
