Hi julio .. as you probably already know magnetic force from permanent magnets is a conservative force.
Over at overunity forum
https://overunity.com/ there is a whole section devoted to possible magnetic motors.
Just about every conceivable idea involving magnets is there in one form or another. Some coupled with gravity, some with springs and gravity etc. I recommend you read some of the threads and try to understand from the comments why these designs don't actually work in practice. Tho they appear that they should, especially ones like the V-gate and derivatives etc.
Basically if the magnetic force is strong enough to attract something then it is also strong enough not to release it at its closest separation, and it holds fast i.e. no continued rotation. What is referred to as the sticking point, or hump in the hill etc. Many ingenious methods have been tried to escape the sticking point or at least mitigate its effects.
As is always the case with any design that looks promising on paper, or in sim, or animation, the final proof of viability is to attempt a build. Then you can see for yourself what the problems are, or the positives, and that helps better understand the comments people make in the threads which do not always sink in at the time.
Best of luck in your research.