So probably more than 20 generations. Duly noted.
Too long. Which is why the last ones were dutifully booted in the 15th.
Booted from land that Moors had ruled twice as long as did the Dark Age Visigothic kings upon whom Ferdinand and Isabella based their claims.
I'll ask again: In the late 14th century, how long had the Moors been in Iberia?
Except that the Visigothic claim to Spain came directly from Roman Emperor Honorius. Rome's claim on Spain dates to 201 B.C., which puts their cumulative right of succession at 912 years before the Moors showed up.
So as I said in answer to your question, too long.