Room-temperature photonic logical qubits via second-order nonlinearities