It's a bit more complicated than that. It can be argued that if there is a clear link between contributions and pensions, promised pensions based on past contributions are private property, with the usual protections. I don't know the situation in Spain, but Finland at least has made that choice.
If you choose that (or if your legal system determines that), you need to be proactive with keeping the pension system in balance. While you can change what you promise in exchange for future contributions, substantial changes to what you have already promised can easily require constitutional amendments.
There is no system where you can get more than a share of what the economy produces currently.
Paid contributions should only ensure that you get a part of that, a bit more if you paid more, less if you paid less.
If workforce/economy halves when pensioners double, you will get 4x less than you "expect".
loading story #50302191