Heat the oven to 350°F / 180°C.
If using chicken, toss the sliced thighs with garlic powder, cumin, paprika, oregano, cayenne, salt, pepper, and lime juice. Heat olive oil in a large skillet, sauté the chicken until browned and cooked through, then cool briefly and shred or chop it.
Heat 1 tablespoon olive oil in a skillet over high heat. Add the corn and cook for a few minutes until lightly charred, then cool slightly.
Toss the corn with diced tomatoes, sliced scallions, lime juice, salt, and pepper to make the salsa.
Warm the tortillas directly on the oven rack for 3 to 5 minutes per side, until slightly stiff but not browned.
Place one tortilla on a baking tray. Add one-sixth of the meat, some salsa, and cheese. Repeat twice so each stack has three filled layers, then finish with a fourth tortilla on top. Build a second stack with the remaining tortillas and fillings.
Bake for about 10 minutes, until the centers are hot and the cheese is melted.
Rest briefly, then top with the remaining salsa, sour cream, avocado, jalapeno, and cilantro before serving.