Ramos and Nacho was trying to emulate the moment when Cristiano Ronaldo tripped and a penalty was awarded.
The goal was Ronaldo's first of a decisive hat-trick was the 51st of the player's star-studded career, and meant that Portugal were able to earn a point against their Iberian rivals.
Spain and Portugal played an all-time World Cup classic when the two sides faced off last week in a Group B clash at the FIFA World Cup 2018 in Russian Federation, with the match ending at 3-3 at the end of the 90 minutes.
The Portugal captain scored his fourth goal at this year's FIFA World Cup after just four minutes against Morocco on Wednesday afternoon, taking his tally at football's biggest showpiece to seven strikes over four tournaments.
Portugal are not widely regarded as one of the contenders despite their unlikely European success two years back.
Cristiano Ronaldo underlined his G.O.A.T credentials in Portugal's 3-3 draw with Spain last time out. and is now sporting a goatee.
The first match was already interesting, with the local team (Russia) scoring five goals.' 'I expect a great World Cup.
Herve Renard's men face a monumental challenge, with games to come against Portugal and Spain.
Further forward, winger Nordin Amrabat has been ruled out of the clash after a clash of heads with Iran's Vahid Amiri in St Petersburg on Friday. Cristiano's performance was very good.
Portugal's final match in Group is against Iran at the Mordovia Arena in Saransk on Monday, June 25.