How important is the foreign language recommendation for Harvard?

Harvard wants to see that you maximized the courses available to you. If your school offered AP Spanish and you didn’t take it despite having three years of prior Spanish, it doesn’t look great. Looks like you gave up. As others have said, this isn’t fatal in itself, but when you’re applying to Harvard every bit counts.