Spanish past perfect progressive
El Pluscuamperfecto Progresivo is a tense that describes actions in progress in the past.
It uses "estar" in El Pluscuamperfecto followed by a gerund.
It is used for those actions in progress in the past that "had been happening".
See also: Spanish Past Tenses and All Spanish Tenses