SAN FRANCISCO -- Quarterback Colin Kaepernick passed for 185 yards and ran for a 50-yard touchdown with 2:10 remaining, lifting the San Francisco 49ers to a 27-13 victory over the Miami Dolphins on Sunday at Candlestick Park.