Gonalo Ramos' 94th-minute header put Portugal ahead before a controversial VAR offside call denied Croatia a late equalizer, sending Portugal to the Round of 16 against Spain.