A criminal gang was dismantled across Spain as police made 31 arrests and seized drugs, weapons and cash.