Trailing 28-23 early in the fourth quarter, the Cardinals scored two touchdowns in the final 11 minutes to defeat Miami, 38-31.