Spain's heavy investment in renewables and nuclear power has cushioned it from Europe's latest energy crisis, though its model remains difficult to replicate and far from foolproof.