What popular Spanish dance dress was the inspiration of the meramid dress?

I'm pretty sure that would be the Flamenco dance dresses. They have multiple layers of ruffles on the edge that give the bottom of the dress volume like the mermaid dresses.