HOUSTON — It is easy to say the Yankees’ trip to Texas was a success because they split the first two games of the ALCS against the Astros at Minute Maid Park, where the hosts are very difficult to topple.

However, after a dominating win in Game 1, the Yankees were in greed mode Sunday night in Game 2 and looking to leave with two victories and a commanding advantage in the best-of-seven series, which shifts to Yankee Stadium for the next three games.

Thanks to a 3-2 loss in 11 innings that was witnessed by 43,359, the Yankees and Astros are even heading to the Bronx for Tuesday afternoon’s Game 3. The Yankees are scheduled to start Luis Severino and the Astros will counter with Cy Young candidate Gerrit Cole.

Carlos Correa ended the game by driving J.A. Happ’s first pitch of the 11th into the right-field seats.

Counting starter James Paxton, who was pulled with one out and two runners on in the third, the Yankees went through nine of the 13 pitchers on their staff.

Aaron Judge gave the Yankees a 2-1 lead in the fourth with a homer to center off Justin Verlander, but that advantage vanished in the fifth when George Springer homered off Adam Ottavino. From there it was a battle of the bullpens.

“It came down to one mistake more than they made,’’ said Zack Britton, who worked a scoreless eighth inning.

After DJ LeMahieu failed to score from second base in the sixth inning when Brett Gardner’s hard ground ball went off Jose Altuve’s glove and bounded away, but Correa, the shortstop, fielded it and threw home to get LeMahieu, the Yankees didn’t get a runner into scoring position again until the 11th.

That’s when the ice-cold Edwin Encarnacion walked with two outs and Gardner singled to right. Gary Sanchez caught a break when plate umpire Cory Blaser ruled Sanchez tipped a 1-2 pitch when he clearly missed it. The next pitch was wide, but Blaser called it a strike and the scoring threat died.

“No doubt in my mind, 100 percent, that was a ball there. He called it and I don’t know how he called it. I definitely knew that was a ball,’’ Sanchez said of the final pitch of a 10-pitch at-bat. “Definitely gonna be mad about a call like that, especially at that time of the game. I’m trying to contribute. I’m trying to find a way to help the team. The game is 2-2. … To get a call like that, you’re not gonna like it.’’

Asked if he believed Blaser was guilty of a make-up call, Sanchez said, “Maybe. I don’t know. Maybe he figured to make an adjustment. I don’t know.’’

Happ entered the game with runners on first and second and one out in the 10th, and struck out Jordan Alvarez and retired Yuli Gurriel on a lazy pop to left field.

One pitch into the 11th, Correa ended it.

“Try to elevate a fastball, which I did, and he put a good swing on it,’’ Happ said.

As for going home 1-1, CC Sabathia said the Yankees didn’t let a victory vanish.

“Going home with a split, they are tough to beat here,’’ said Sabathia, who started the 10th and got Michael Brantley to ground out and was replaced by Jonathan Loaisiga. “It’s exciting going home.’’

Yet there was a sense of a missed opportunity.

“Tough loss. Off day [Monday] and reboot. It wasn’t meant to be. Obviously disappointed it didn’t go our way. We weren’t able to get that big hit when we needed it,’’ Gardner said.