Perez hit his 23rd home run of the season to highlight a four-run fourth. Santana gave the Royals the lead with a three-run homer to right in a five-run seventh.
“I think it got lost there at the end, but we were down six runs,” Royals manager Mike Matheny said. “I can’t think of another team that I have been around that is as resilient as this team.”
“We never quit, we just competed to the last out,” Perez said. “Nobody put their head down and there was a lot of energy in the dugout.”
Kyle Funkhouser (4-1) allowed all five runs in the seventh for Detroit.
“It was not Funkhouser’s sharpest outing,” Tigers manager A.J. Hinch said. "They just kept pecking away at him and came up with a huge swing with Santana.”
The Tigers pounced on Carlos Hernández early, backed by Jeimer Candelario and Miguel Cabrera. Hernández gave up five runs, four earned, on two hits with four walks in 2 2/3 innings with two strikeouts.
A three-run home run by Candelario in the third gave Casey Mize a comfortable lead.
Mize struck out six in 4 2/3 innings but gave up four runs on six hits with a walk.
Akil Baddoo hit a two-run homer in the ninth for the Tigers, his ninth of the season and fourth in the last 11 games.
Tarik Skubal (6-8, 4.18 ERA) will take the mound for Detroit in the series finale. Daniel Lynch (0-2, 15.75 ERA) will make his fourth career start for Kansas City.
Jeff McNeil puts Mets ahead with solo blast in the 7th
Jeff McNeil sends a solo home run over the right-center field fence to put the Mets ahead of the Phillies 3-2.
Los Angeles Angels' Shohei Ohtani strikes out 10 in loss just days after sore arm put pitching status in doubt
Just days after Angels manager Joe Maddon indicated Shohei Ohtani might not pitch again this season because of a sore right arm, the two-way star not only took the mound Sunday but matched a season high with 10 strikeouts in a 3-2 loss to the A's.
Dominic Smith's pinch-hit double ties the game
Dominic Smith lines a two-run double down the right-field line to tie the Mets and Phillies at two runs apiece.
Matt Chapman cranks 425-foot dinger vs. Angels
Matt Chapman crushes a 425-foot home run in the Athletics' 3-2 win vs. the Angels.
Ohtani strkes out 10, A's beat Angels 3-2, stay in WC race
Eddie Rosario hits for the cycle
Eddie Rosario records his first cycle and the 10th in Braves franchise history.