It's expensive to home-grow your own solutions and if you try transitioning too many services at once the cost will be outrageous and you'll probably open other security holes. I am glad Spain is taking this step and I hope they continue this trend - but outright refusing to use any software built abroad requires a massive investment in domestic tech. That investment would likely pay economic dividends but it is a cost that needs to be measured against other investments Spain needs to make and in Spain's case resilience against global warming is especially important.