Automation is still relatively underexploited in Spain. However, Spain has the technological know-how to revert this situation and, in the future , it will be forced to do so if it does not want to compete with fully automated companies elsewhere that are able to offer lower prices.
I have been following the subject of automation on TED: while some speakers are optimistic that the robot revolution will utimately lead to a net growth in jobs- as new sectors/jobs will replace the old one, most consider that it will lead to net job-loss.
The way to deal with this is through job-sharing and a universal basic income. If automation fulfils its promise, there will be enough money for this. However, we are going to have to change the way the economy is run to ensure that more people do not get left out. This requires politicians that are able to think beyond the next election.