01 - If using fresh corn, place the ears under a broiler or on a hot grill, turning occasionally, until the kernels are lightly charred and caramelized. Let cool slightly, then slice the kernels off the cobs. Set aside. If using frozen corn, thaw and pat dry before roasting.
02 - Heat the olive oil in a large soup pot over medium heat. Add the diced onion, carrots, celery, and red bell pepper. Cook, stirring occasionally, until the vegetables have softened and the onion is translucent, about 6 to 7 minutes.
03 - Add the minced garlic and jalapeño to the pot. Stir continuously and cook for about 1 minute, until fragrant, being careful not to let the garlic brown.
04 - Stir in the smoked paprika, ground cumin, dried oregano, ground coriander, and chili powder. Continue cooking for 1 minute, stirring constantly, to toast the spices and release their essential oils.
05 - Add the roasted corn kernels, drained pinto beans, and vegetable broth to the pot. Stir well to combine all ingredients and bring the mixture to a rolling boil over medium-high heat.
06 - Once boiling, reduce the heat to medium-low. Let the soup simmer uncovered for 25 minutes, stirring occasionally, until the flavors meld and the vegetables are fully tender.
07 - Using a potato masher or an immersion blender, partially mash some of the beans directly in the pot. This will naturally thicken the broth while leaving texture. Adjust the amount of mashing to your preferred consistency.
08 - Remove the pot from heat and stir in the fresh lime juice. Season generously with kosher salt and freshly ground black pepper, tasting and adjusting as needed.
09 - Ladle the hot soup into bowls. Garnish with chopped fresh cilantro and any desired toppings such as avocado slices, sour cream, shredded cheese, or crushed tortilla chips. Serve immediately.