Traditional Costa Rican pastries split into two families: fried corn dough with a crisp shell and a soft, steamy middle, and sweet baked goods with a tender crumb that holds its shape when cool. The fried ones get their texture from masa harina hydrated just past the crumble stage, then rested so the dough stops cracking at the edges. The baked ones get theirs from creaming butter and sugar long enough to trap air, then mixing only until the flour disappears.
Start With the Dough That Fits Your Pastry
Two doughs cover most of the traditional repertoire. The first is a corn dough for empanadas de chiverre and fried turnovers: masa harina, warm water, a little salt, and enough fat to make it pliable. The second is a sweet wheat dough for baked pastries such as cajetas and small filled cakes: flour, butter, sugar, egg, and a leavening agent.
Masa harina is not the same as cornmeal. Cornmeal stays gritty and will not hold a seal. Look for the package that says masa harina, nixtamalized corn flour, and hydrate it with water at about 110F/43C, which is warm to the touch but not hot enough to cook the starch on contact.
Corn Dough for Fried Pastries
- 300 g (2 1/2 cups) masa harina
- 360 ml (1 1/2 cups) warm water, about 110F/43C
- 60 g (1/4 cup) softened butter or lard
- 5 g (1 tsp) fine salt
- 15 g (1 tbsp) granulated sugar, optional for sweet fillings
Sweet Dough for Baked Pastries
- 250 g (2 cups) all-purpose flour
- 113 g (1/2 cup) unsalted butter, softened
- 100 g (1/2 cup) granulated sugar
- 1 large egg
- 5 g (1 tsp) baking powder
- 2 g (1/2 tsp) fine salt
- 5 ml (1 tsp) vanilla extract
- 30 ml (2 tbsp) whole milk, added only if the dough looks dry
Mix, Rest, and Shape Without Cracks
- Whisk the masa harina and salt together in a bowl. Add the warm water in three additions, stirring with a fork until no dry patches remain. The dough should feel like soft clay and press into a ball without crumbling.
- Work in the butter or lard with your fingertips until evenly distributed, about 2 minutes. Cover and rest 15 minutes at room temperature so the flour fully hydrates.
- For the sweet dough, cream the butter and sugar for 3-4 minutes until pale and fluffy. Beat in the egg and vanilla, then stir in the flour, baking powder, and salt just until combined. Add milk 1 tbsp at a time only if the dough will not hold together.
- Wrap the sweet dough and chill 30 minutes. Cold dough rolls thinner and holds a filled shape without slumping.
- Portion the corn dough into balls of about 40 g each. Flatten each between two sheets of plastic to a 4-inch (10 cm) round, about 1/8 inch (3 mm) thick. Fill with 1 tbsp of filling, fold over, and press the seam with a fork.
- Roll the chilled sweet dough to 1/8 inch (3 mm) on a floured surface. Cut 3-inch (7.5 cm) rounds, place 1 tsp filling in the center, fold, and crimp.
Fry or Bake at the Right Temperature
Fried pastries need oil at 350F/175C. Hotter oil browns the shell before the filling heats through; cooler oil lets the dough drink fat and turn greasy. Fry in batches of three or four so the oil temperature does not drop, 2-3 minutes per side, until deep golden brown. Drain on a rack, not paper towels, so the underside stays crisp.
Baked pastries go into a 375F/190C oven for 18-22 minutes, until the edges are golden and the tops feel set when pressed lightly. Rotate the pan halfway through if your oven runs uneven. Let them cool on the pan 5 minutes, then move to a rack.
If you are filling with a custard or any mixture containing egg, cook it to 160F/71C before using it as filling, and refrigerate the finished pastry rather than leaving it on the counter.
Fix Dry, Runny, or Dense Results
| Problem | Cause | Fix |
|---|---|---|
| Corn dough cracks at the fold | Too little water or no rest | Add water 1 tbsp at a time, rest 10 minutes, and shape between plastic |
| Fried pastry greasy | Oil below 350F/175C or overcrowded pan | Fry fewer at a time and check oil with a thermometer |
| Filling leaks in the fryer | Seam not sealed or overfilled | Use 1 tbsp filling maximum and press the seam twice |
| Baked pastry dry and crumbly | Too much flour or overbaking | Weigh flour, stop at golden edges, pull 2 minutes early if needed |
| Baked pastry dense | Butter too warm or overmixed | Chill dough 30 minutes and mix only until flour disappears |
| Filling runny | Too much liquid or undercooked starch | Cook filling until it coats a spoon and cool completely before filling |
Swap Ingredients and Equipment That Matters
Lard gives the most traditional corn dough texture; butter works and tastes richer, and vegetable shortening gives the most neutral result. Use the same weight, not the same volume, when swapping fats. For the sweet dough, 30 g (2 tbsp) of the butter can be replaced with an equal weight of cream cheese for a softer crumb.
Masa harina cannot be swapped for wheat flour in the fried dough; the texture and flavor change completely. If you only have cornmeal, the dough will not seal reliably, so choose the baked recipe instead.
A cast-iron skillet or heavy Dutch oven holds frying temperature better than a thin pan. A clip-on thermometer is the one piece of equipment worth buying; without it, drop a small piece of dough in the oil and it should sizzle and rise within 2 seconds. For baking, a light-colored aluminum sheet pan browns bottoms more evenly than a dark nonstick pan, which runs hot.
Keep Pastries Fresh and Safe
Fried pastries are best the same day. Store cooled pastries in a paper bag at room temperature up to 1 day, or in an airtight container up to 2 days; the crust softens either way. Reheat at 350F/175C for 5-6 minutes to restore crispness.
Baked pastries keep in an airtight container at room temperature for 2-3 days. Refrigerate any pastry with a custard, cheese, or egg filling and eat within 3 days. Freeze fried pastries unbaked for up to 2 months, fry from frozen at 350F/175C adding 1-2 minutes; freeze baked pastries up to 2 months and reheat at 325F/165C for 8-10 minutes.
Pastries with perishable filling sit out no more than 2 hours, or 1 hour above 90F/32C. Leftovers reheat to 165F/74C. Raw flour and raw egg in the dough mean you should not taste the mixture before cooking.