Republican lawmakers have a message for those who want the party to soften its emphasis on social conservatism in hopes of reaching a wider national audience: Not so fast.

House Republicans flexed their cultural and conservative muscles Tuesday, passing the most restrictive abortion measure in years. They also advanced legislation to crack down on immigrants living illegally in the country, even as senators pursue a plan that would offer those same millions a shot at citizenship.

The actions reflect a roiling debate among Republicans over why they lost two elections to President Barack Obama, and how best to rebuild a winning formula.

Many Republicans in Congress and elsewhere think the party’s establishment erred in concluding the GOP must embrace “comprehensive immigration reform” to attract Hispanic voters. And they dismiss the notion that Republicans should soft-pedal their opposition to abortion, a subject on which they say public opinion is moving their way.

“There’s been a misleading thought as to what happened after the last election cycle,” said Rep. John Fleming, R-La.

“Most Americans do not support amnesty, especially without securing the borders,” he said, regarding the idea of citizenship for those here illegally. As for abortion, Fleming said, there’s growing public concern about second-trimester abortions, “so we’re actually gaining ground.”

Like Democrats, Republicans often discuss ways to keep their base loyal while attracting independent voters near the political center. The urgency rose last fall, when Mitt Romney became the fifth Republican in six presidential elections to lose the popular vote.

On abortion and reproductive rights, some strategists say the greatest need is for Republicans — especially men — to steer clear of incendiary language such as “legitimate rape.” They know there’s no way the Democratic-led Senate will embrace the House bill, which would bar abortions 20 weeks after conception.

The debate was largely symbolic but important, Republican leaders said.

Immigration’s fate in Congress is less certain. It’s increasingly clear, however, that many Republicans think party elders were hasty in saying the GOP won’t win future presidential elections unless it agrees to far-reaching immigration changes that include new pathways to citizenship.

“What an idiot,” Washington state Republican Chairman Kirby Wilbur said Tuesday of Sen. Lindsey Graham’s recent comments on the matter. Graham, R-S.C., said that without “immigration reform” along the lines the Senate is weighing, “we’re in a demographic death spiral as a party.”

“The pathology report of the death of the Republican Party is grossly overstated,” Wilbur said. Republicans must do better jobs of messaging and finding voters, but they should not overreact to Romney’s relatively narrow loss to Obama, he said. Obama won 51 percent of the popular vote to Romney’s 47 percent but defeated the Republican by a wide margin in the Electoral College, 332-206.

Democrats want to portray Republicans as out of step with the nation’s values on gay rights, women’s rights and common-sense solutions to illegal immigration.

During Tuesday’s House debate on abortion, Rep. Ami Bera, D-Calif., asked to bring up a student loan bill instead. “This is a direct attack on women’s rights,” he said after being overruled.

Republicans responded by sending a parade of women to the House microphones.

“We are changing hearts and minds,” said Rep. Ann Wagner, R-Mo. “We hear more and more evidence that life begins at conception.” She said she covets the day when abortion is “absolutely unthinkable.”