sketch_sep26b.ino:76:4: error: expected unqualified-id before 'if'

I have this problem with a modified IDE from pygmalion
in the sketch that i’m writing, when i’m compilig, it throws me this

sketch_sep26b.ino:76:4: error: expected unqualified-id before ‘if’

this is the sketch

int intersecciones = 0;
int botellas = 0;

void setup() {
motorSpeed(M1,100);
motorSpeed(M2,100);

}

void loop() {

if(lineRead(J1) == VOID && lineRead(J2) == VOID){
motorsOff(M1,M2);
}

if(lineRead(J1) == BLACK && lineRead(J2) == BLACK){
goForward(M1,M2);
}

if(lineRead(J1) == BLACK && lineRead(J2) == WHITE){
turnRight(M1,M2);
}

if(lineRead(J1) == WHITE && lineRead(J2) == BLACK){
turnLeft(M1,M2);
}

if(lineRead(J1) == WHITE && lineRead(J2) == WHITE){
intersecciones++;

goForward(M1,M2);
delay(200);
motorsOff(M1,M2);
delay(50);

if(intersecciones == 1){
turnRight(M1,M2);
delay(300);
while(lineRead(J1) == BLACK){
turnRight(M1,M2);
}
}
if(intersecciones == 4){
goForward(M1,M2);
delay(1000);
motorsOff(M1,M2);
motorOn(M3,REVERSE);
delay (300);
goReverse(M1,M2);
delay (800);
while(lineRead(J1) == WHITE && lineRead(J2) == WHITE){
goReverse(M1,M2);
}
turnRight(M1,M2);
delay(300);
while(lineRead(J1) == BLACK){
turnRight(M1,M2);
}
botellas++;
}
}

if(intersecciones == 2||intersecciones == 5){
turnLeft(M1,M2);
delay(300);
while(lineRead(J1) == BLACK){
turnLeft(M1,M2);
}
}
if(intersecciones == 3){
goForward(M1,M2);
delay (10);
}
}
if(ultrasoundRead(J3) <=9){
botellas++;

if(botellas == 1){
motorOff(M1,M2);
motorOn(M3,FORWARD);
delay (300);
motorOff(M3);
}

if(botellas == 2){
motorOff(M1,M2);
motorOn(M3,FORWARD);
delay (300);
motorOff(M3);
turnLeft(M1,M2);
delay (200);
goForward(M1,M2);
delay (1000);
motorOff(M1,M2);
motorOn(M3,REVERSE);
delay (300);
goReverse(M1,M2);
delay (1000);
turnRight(M1,M2);
delay (200);

}

}

}

}

Any ideas?
sorry for my english.

Yes.

Make your '{'s match the '}'s.

There is a superfluous '}' in line 75 and probably a couple more in the end.

If you put each { and } on their own line it is easier to see mismatches. Like this:

void setup()
{
     //setup stuff;
}

void loop()
{
     if(someDecision)
     {
          // do stuff;
     }
}

Proper indenting will help, too. In the IDE use ctrl-t or from the Tools menu auto indent.