Spanish police detained six people, two of them minors, after a group of about 25 motorcycles rode dangerously on the A-7, prompting a chase that left an officer lightly injured.