this is a SUBROUTINE

llama1:
PAUSE 10
HIGH RELCALL
memorlay=1
IF TAMPER=0 and ldred=1 then llama1
IF TAMPER=0 AND Ldred=0 THEN mirarverde ; si puerta abierta y led verde activo
;significa que estamos en transito de la llamada
; pero que ha sido cerrada la puerta
RETURN
You seem to be trying to CALL the SUBROUTINE with a GOTO
if TAMPER=0 then GOTO LLAMA1; Miramos si esta el tamper activado, y si
this is never going to be ok

it needs to be like this
if TAMPER=0 then GOSUB LLAMA1; Miramos si esta el tamper activado, y si
I have not checked the rest of your code for other incidences of this error