Catalonia is going to get crushed in any direct military confrontation. Even if they can get some of the local police forces to side with them, they won’t win directly against Madrid. This is likely to turn into a rebel terrorist action with assassinations and bombs along with street action by the Catalans to test Madrid’s will.
All they need to do is stop paying any taxes.
Spain will collapse.