For God’s sake,the father doesn’t even want them.
.
I understand that, but the mother doesn’t want them full-time, either. So they can share custody, or they can go into a foster program (or whatever it is Spain has). There is no reason why the mother should have the full-time care of them if there is also a father. He is also a parent, whether he likes it or not.