Dietary patterns are associated with gestational weight gain and nutrient adequacy during pregnancy: the effects of healthy diet in pregnancy Authors: Elisabet Fernández-Gómez, Trinidad Luque-Vara, María López-Olivares, Silvia Navarro-Prado, María Angustias Sánchez-Ojeda, Miriam Mohatar-Barba, Carmen Enrique-Mirón Published: 2026 ABSTRACT BackgroundGestational weight gain (GWG) is associated with complications for both offspring and pregnant women, and GWG is closely related to maternal dietary intake and nutritional habits. The aim of the present study was to evaluate and analyze the association between maternal dietary patterns and nutrient intake, considering the GWG in pregnant women.MethodsThis is a retrospective cross-sectional study with a descriptive-correlational methodology whose sample consists of 306 pregnant women from the city of Melilla (Spain). The total GWG (kg) was obtained by subtracting pre-pregnancy weight from weight before delivery. Dietary intake was assessed using a validated food frequency questionnaire (FFQ) and a 24-hour recall.ResultsConfounder-adjusted regression models were established to show associations between dietary patterns and GWG and associations between dietary patterns and nutrient adequacy. A negative association was found between the Mediterranean pattern and the GWG (adjusted β= -0.008, 95% CI: −0.076, 0.039) and a direct correlation between the western pattern and the GWG (adjusted β = 0.086, 95% CI: -0.075, -0.082) was found.ConclusionsThe Mediterranean dietary pattern showed moderate evidence of meeting an adequate intake of dietary fiber and vitamins B12, D, and E (p < 0.05). This pattern is associated with adequate GWG during pregnancy and better nutrient adequacy. Given the relevance of food in this physiological stage, promoting healthy eating based on a Mediterranean dietary pattern through health education is considered essential. Background Excess gestational weight gain (GWG) involves complications for offspring such as congenital anomalies [1], fetal growth disturbances [2] or newborns with an increased risk of developing obesity or childhood diabetes [3–6]; for pregnant women, the risk of miscarriage or premature birth increases [7, 8], it also elevates the risk of maternal conditions such as gestational diabetes mellitus and preeclampsia [9, 10]. Maternal obesity significantly anticipates a higher likelihood of early childhood neuropsychiatric disorders, encompassing attention deficit hyperactivity disorder and various other neurodevelopmental conditions [11]. It is also related to cerebral palsy in newborns being one of the most frequent pediatric motor disabilities [12]. In contrast, low maternal weight is a less studied condition, although it is also identified as a risk factor for developing complications during pregnancy, enhancing the likelihood of giving birth to infants with low birth weight and intrauterine growth retardation [13]. GWG is a variable factor as it is intricately linked to the nutritional habits of the expectant mother and can be modified [14–16]. Examining dietary patterns throughout pregnancy stands as one of the most appropriate methods to demonstrate the impact of diet on the health of both mothers and newborns [17]. Nutrient requirements during pregnancy are increased compared with other life cycle stages. Therefore, the nutritional requirements, especially for most micronutrients, are also higher [18, 19]. Inadequate intake of micronutrients negatively affects maternal and perinatal health. Inadequate consumption of essential micronutrients is linked to heightened nutritional susceptibility in pregnant women [20]. Typically, this insufficiency is associated with Western dietary patterns characterized by elevated consumption of saturated fatty acids and simple carbohydrates, such as added sugars, while Mediterranean dietary patterns are the most prudent, characterized by a high consumption of vegetables, fruits, whole grains, and fish [21]. Limited research exists on the relationship between dietary factors, nutritional sufficiency, and GWG. Additionally, an inadequate GWG coupled with inadequate nutrient intake can adversely affect both maternal and fetal health. Consequently, this study aims to assess and examine the connection between nutrient intake and maternal dietary patterns while considering GWG in pregnant women in Spain. Methods Study design, participants, and data collection It is an observational, non-experimental, and retrospective cross-sectional study employing a descriptive-correlational research methodology. Data were obtained from a cohort of pregnant women attending the public health system of the city of Melilla (Spain). Data collection took place between March 2021 and October 2022. The participants were pregnant women who attended the prenatal care unit of Melilla after childbirth, spoke Spanish, had only one newborn, and agreed to complete the questionnaires. The following inclusion criteria were applied; to be in gestation period in any trimesters and attend Women’s Care Unit, maternal record book for the collection of obstetric, anthropometric and medical data and to speak Spanish. On the other hand, the following exclusion criteria were applied; having a high-risk pregnancy, metabolic complications diagnosed at the beginning of the pregnancy, any pathology that modified dietary habits. Furthermore, to minimize potential bias and address reverse causality, we excluded women diagnosed with metabolic complications at any stage of pregnancy, including gestational diabetes mellitus. Additionally, we excluded pregnant women with energy intakes that were not within predefined limits. After applying these inclusion and exclusion criteria, 340 women were initially eligible. However, sixteen women refused to participate and eighteen were excluded (due to energy intake outside predefined limits or diagnoses with metabolic complications). Thus, the final sample was composed of 306 pregnant women with a mean age of 29.92 ± 5.51 years (range: 18–43 years). The study adhered to the guidelines and ethical principles outlined in the Declaration of Helsinki. Participants were briefed on the study’s objectives, and their involvement was voluntary. They were provided with information and consent forms, which they willingly accepted and signed. None of the pregnant women declined to participate in the study. Assessment of dietary intake Food Frequency Questionnaire (FFQ) The participants received personal assistance from a trained professional to fill out a modified version of Food Frequency Questionnaire (FFQ) [22]. While the original tool was validated for the Spanish population, it was slightly modified to better suit the specific context of Melilla. This modification included adding daily consumption frequencies to the existing weekly and monthly options, ensuring a more accurate capture of habitual intake in this culturally diverse population. To maintain validity, the adaptation was overseen by nutrition experts and administered by trained researchers who could clarify any items for the participants. This survey inquired about the frequency of food and beverage consumption over the past month, prompting respondents to specify the number of occurrences per day, week, and month for a specified list of 39 foods and 6 drinks, totaling 45 items [23]. For each item listed in the FFQ, participants were asked to indicate both the frequency of consumption and the size of portions. The FFQ provided nine response choices (ranging from “never or almost never” to “more than six times a day”). The daily intake in grams was then estimated by converting the reported frequencies into daily intakes and multiplying them by the standard serving size weight. Nutrient details, along with total energy intake, were obtained from Spanish food composition Tables [24]. Additionally, a second questionnaire was employed to gather sociodemographic information, lifestyle factors including physical activity level, pregnancy BMI, supplement usage, and alcohol intake. The completion time for the entire questionnaire varied between 15 and 20 min [23]. Dietary pattern construction Factor analysis has been widely employed to discern prevalent patterns among closely associated variables using FFQ. This approach serves as a common tool for deriving dietary patterns after the fact. We employed factor analysis using the Principal Components Method (PCA). Initially, the food items from the FFQ were grouped into 21 categories based on their similar nutrient profiles and culinary purposes. The daily consumption (measured in grams) of each food group, adjusted based on total energy intake, was utilized in the factor analysis to discern maternal dietary patterns. Through examination of the factor loadings, two primary dietary patterns were discerned, distinguished by notable factor loadings of specific food groups [23]. A comprehensive of each food group can be found in follows; 1: Dairy products: homemade ice cream, yoghurt and milk. 2: Cheese: semi-cured, cured and fresh cheese. 3: White meat: Turkey and chicken. 4: Cold cuts: Pate and cold cuts. 5: Red meat: pork, beef, lamb and minced meat. 6: Fish: White and blue fish, and seafood. 7: Eggs: Chicken egg. 8: Vegetables: Vegetable garnish, greens and salads. 9: Fruits: Fresh fruit juice and citrus fruit. 10: Nuts: peanuts, walnuts, almonds, hazelnuts, etc. 11: Potatoes: Crisps and potatoes. 12: Bread: Bread. 13: Pulses: chickpeas, cooked peas, lentils and beans. 14: Pasta and cereals: macaroni, spaghetti, noodles, etc. 15: Chocolate: Chocolate. 16: Sugary drinks: packaged fruit juices and sugary drinks. 17: Pastries and cakes: Biscuits, cakes, muffins, doughnuts, canned fruit, and pastries. 18: Tea and coffee: Tea and coffee. 19: Beer and wine: beer, red and white wine, and rosé. 20: Alcoholic drinks: Gins, Vodka, brandy, rum, whisky, and spirits. 21: Diet drinks: Sugar-free drinks [23]. 24-Hour dietary recall The 24-hour dietary recall was used to know the quality of the diet [25]. This questionnaire provides information about the foods and drinks ingested the previous day. It also allows gathering information on the intake of dietary supplements, salt, and alcoholic beverages. In addition, it indicates if the food collected has been different from the usual for any reason. Tables were used with representative illustrations of foods and drinks of different sizes to facilitate data collection and help respondents to report food quantities more accurately. Utilizing data obtained from the 24-hour recall, nutrient intake was computed through the Diet Calculator IENVA (https://calcdieta.ienva.org/) from the Endocrinology and Clinical Nutrition Research Center. This calculation encompassed the total energy, dietary fiber, vitamins A, B9, B12, E, and D, as well as minerals. A comparative analysis was conducted against the recommended nutrient intakes, following the criteria outlined by the European Food Safety Agency [26]. The assessment considered Average Requirements (AR), Average Intake (AI), and tolerable upper intake level (UL), leading to the classification into three categories: inadequate intake (below AR/AI), adequate intake (falling between AR/AI and UL), and excessive intake (above UL). To address possible inaccuracies in measurement linked to the Food Frequency Questionnaire (FFQ) that might result in an overestimation bias, we computed the percentage of women whose dietary intakes fell below two-thirds (2/3) of the Dietary Reference Intakes (DRIs) [27, 28]. Anthropometric measurements The participants were asked about their pre-pregnancy weight, whereas height and gestational weight (kg) data were collected during prenatal care appointments. The weight prior to delivery was measured by a nurse at the admission for delivery. The total GWG (kg) was obtained by subtracting pre-pregnancy weight from weight before delivery. The recommended GWG is related to the BMI before conception; the recommended weight gain is 12.5–18 kg for women with low weight (BMI < 18.5 kg/m2), 11.5–16 kg for normal weight (BMI:18.5–24.9 kg/m2), 7–11.5 kg for overweight (BMI: 25.0–29.9 kg/m2), and 5–9 kg for obesity (BMI: >30 kg/m2) [29]. Statistical analysis The statistical analysis was conducted using SPSS Statistics for Windows, version 24.0 (International Business Machines Corporation, IBM, Armonk, NY, USA). A significance threshold of p < 0.05 was applied to the results. We performed a PCA analysis to determine patterns within dietary groups. Based on the likeness of food items, we established 21 distinct food groups. Factor loadings exceeding 0.2 were deemed indicative of a meaningful relationship with the respective factor and were therefore utilized to characterize and name the dietary patterns. Loadings below 0.2 were disregarded [30]. Of the 21 food groups initially considered, two groups (alcoholic drinks and diet drinks) had to be excluded due to their interference with factorial analysis. Subsequently, factor loadings were computed for the remaining 19 food groups. Out of all the factors identified, two were inferred from the variance elucidated by the successive components of the food score matrix. Together, these two factors accounted for 22.65% of the total variance (Table 1). The total variance is consistent with previous studies using PCA to identify dietary patterns [31, 32]. Table 1Factor loadings corresponding to the food groups across each dietary pattern (N = 306)GroupsMediterranean patternWestern patternDairy products0.081−0.245Cheese0.080-0.030White meat0.138-0.035Cold cuts−0.3720.044Red meat0.0230.300Fish0.5730.253Egg0.205−0.004Vegetables0.616−0.207Fruits0.5550.021Nuts0.581−0.012Potatoes0.0490.783Bread0.0790.153Pulses0.2780.080Pasta and cereals0.6390.057Chocolate−0.0670.315Sugary drinks−0.0830.673Pastries and cakes−0.0510.732Tea and coffee0.1930.067Beer and wine−0.089−0.103Variance explained (%)10.09312.557 Table 1Factor loadings corresponding to the food groups across each dietary pattern (N = 306)GroupsMediterranean patternWestern patternDairy products0.081−0.245Cheese0.080-0.030White meat0.138-0.035Cold cuts−0.3720.044Red meat0.0230.300Fish0.5730.253Egg0.205−0.004Vegetables0.616−0.207Fruits0.5550.021Nuts0.581−0.012Potatoes0.0490.783Bread0.0790.153Pulses0.2780.080Pasta and cereals0.6390.057Chocolate−0.0670.315Sugary drinks−0.0830.673Pastries and cakes−0.0510.732Tea and coffee0.1930.067Beer and wine−0.089−0.103Variance explained (%)10.09312.557 Factor loadings corresponding to the food groups across each dietary pattern (N = 306) In the inferential analysis, non-parametric tests were applied based on the results obtained from the Kolmogorov-Smirnov test. The comparison of proportions was conducted using the chi-square test. Additionally, the Mann-Whitney U and Kruskal Wallis tests were employed, taking into account the number of categories in the independent variables, to establish associations between GWG and diverse sociodemographic data. A p-value < 0.05 was deemed statistically significant in all instances. We employed multiple linear regression models to identify dietary patterns (considered as the independent variable) and gestational weight gain (treated as the dependent variable). On the other hand, logistic regression models were utilized to assess the relationship between dietary patterns and the adequacy of nutrient intake. Both crude β-coefficients and adjusted β-coefficients were derived from univariate and multivariate models, with a confidence interval (CI) set at 95%. A risk ratio (OR) greater than 1.0 indicates a positive association, while an OR of less than 1.0 indicates a negative association. Due to the exploratory nature of the study, no formal adjustment for multiple comparisons was applied. Model stability was assessed by checking for outliers and ensuring sufficient events per variable in each stratified analysis. Results Characteristics of participating pregnant women The distribution of women across various weight categories was as follows: 4.2% presented with underweight, 43.8% had a normal weight, 30.7% were women with overweight, and 21.2% were women with obesity. Concerning GWG, 22.2% of women experienced insufficient GWG, while 35.6% had excessive GWG. Maternal sociodemographic, lifestyle variables and anthropometric stratified by GWG are presented in Table 2. It was observed that women with insufficient GWG had a lower pre-pregnancy BMI (p = 0.018). Table 2Description of the characteristics of the study population (n = 306)Inadequate GWGAdequate GWGExcessive GWGP-valuen = 68n = 129n = 109Age in years, mean (SD)29.3 (5.3)30.5 (5.7)29.5 (5.2)0.179Pre-pregnancy BMI, mean (SD)24.9 (7.4)26.1 (6.0)27.4 (4.7)0.018Pre-pregnancy BMI, n (%) Underweight (< 18.5 kg/m 2)11 (16.2)1 (0.8)1 (0.9)< 0.001 Normal weight (18.5–24.9 kg/m 2)34 (50.0)68 (52.7)32 (29.4) Overweight (25–29.9 kg/m 2)11 (16.2)32 (24.8)51 (46.8) Obesity (≥ 30 kg/m 2)12 (17.6)28 (21.7)25 (22.9)Resident Resident61 (89.7)114 (88.4)80 (73.4)0.002 Non-resident7 (10.3)15 (11.6)29 (26.6)Parity Nulliparous30 (44.1)60 (46.5)27 (24.8)0.004 1–2 children33 (48.5)57 (44.2)62 (56.9) > 2 children5 (7.4)12 (9.3)20 (18.3)Marital status Single8 (11.8)18 (14.0)12 (11.0)0.799 Married or domestic partner60 (88.2)109 (84.5)96 (88.1) Separated or divorced02 (1.6)1 (0.9)Religion Christianity22 (32.4)41 (31.8)24 (22.0)0.344 Islam43 (63.2)82 (63.6)82 (75.2) Other3 (4.4)6 (4.7)3 (2.8)Educational level No studies5 (7.4)5 (3.9)13 (11.9)0.003 Elementary or middle school19 (27.9)42 (32.6)51 (46.8) High school or vocational training26 (38.2)39 (30.2)28 (25.7) University degree18 (26.5)43 (33.3)17 (15.6)SD Standard deviation, BMI Body mass indexPearson chi-square and Kruskal-Wallis tests were performed to evaluate differences in categorical and continuous variables, respectively Table 2Description of the characteristics of the study population (n = 306)Inadequate GWGAdequate GWGExcessive GWGP-valuen = 68n = 129n = 109Age in years, mean (SD)29.3 (5.3)30.5 (5.7)29.5 (5.2)0.179Pre-pregnancy BMI, mean (SD)24.9 (7.4)26.1 (6.0)27.4 (4.7)0.018Pre-pregnancy BMI, n (%) Underweight (< 18.5 kg/m 2)11 (16.2)1 (0.8)1 (0.9)< 0.001 Normal weight (18.5–24.9 kg/m 2)34 (50.0)68 (52.7)32 (29.4) Overweight (25–29.9 kg/m 2)11 (16.2)32 (24.8)51 (46.8) Obesity (≥ 30 kg/m 2)12 (17.6)28 (21.7)25 (22.9)Resident Resident61 (89.7)114 (88.4)80 (73.4)0.002 Non-resident7 (10.3)15 (11.6)29 (26.6)Parity Nulliparous30 (44.1)60 (46.5)27 (24.8)0.004 1–2 children33 (48.5)57 (44.2)62 (56.9) > 2 children5 (7.4)12 (9.3)20 (18.3)Marital status Single8 (11.8)18 (14.0)12 (11.0)0.799 Married or domestic partner60 (88.2)109 (84.5)96 (88.1) Separated or divorced02 (1.6)1 (0.9)Religion Christianity22 (32.4)41 (31.8)24 (22.0)0.344 Islam43 (63.2)82 (63.6)82 (75.2) Other3 (4.4)6 (4.7)3 (2.8)Educational level No studies5 (7.4)5 (3.9)13 (11.9)0.003 Elementary or middle school19 (27.9)42 (32.6)51 (46.8) High school or vocational training26 (38.2)39 (30.2)28 (25.7) University degree18 (26.5)43 (33.3)17 (15.6)SD Standard deviation, BMI Body mass indexPearson chi-square and Kruskal-Wallis tests were performed to evaluate differences in categorical and continuous variables, respectively Description of the characteristics of the study population (n = 306) SD Standard deviation, BMI Body mass index Pearson chi-square and Kruskal-Wallis tests were performed to evaluate differences in categorical and continuous variables, respectively Table 2 shows statistically significant differences in pre-pregnancy BMI, residence, number of children, and educational level based on the GWG. Most pregnant women residing in Melilla have an adequate GWG; however, the highest percentage of non-resident women have an excessive GWG. Moreover, most childless women have an adequate GWG (46.5%); however, those with 1–2 children or > 2 children (56.9% and 18.3%, respectively) have mostly excessive GWG. Finally, pregnant women with lower educational levels had the highest percentages of excessive GWG (11.9% and 46.8%), while those with higher educational levels presented mostly low (38.2%) and adequate GWG (33.3%). Dietary patterns and GWG Table 3 displays the unadjusted and adjusted β coefficients derived from both univariate and multivariate linear models, investigating the relationship between two dietary patterns and the total GWG. Initially, there existed a positive correlation between the Mediterranean dietary pattern and GWG (unadjusted β = 0.018, 95% CI: -0.223, 0.093), as well as the Western pattern (unadjusted β = 0.085, 95% CI: -0.103, 0.494). However, upon considering confounding factors, a negative association emerged between the Mediterranean pattern and GWG (adjusted β = -0.008, 95% CI: -0.076, 0.039). Table 3Multivariate regression models for the association between dietary patterns and GWG (n = 306)Dietary patternGWGCrude β coefficients(95% CI)Adjusted β coefficients a(95% CI)Western dietary pattern0.085(-0.103, 0.494)0.086(-0.075, 0.082)Mediterranean dietary pattern0.018(-0.223, 0.093)-0.008(-0.076, 0.039)Crude β-coefficients: crude β-coefficients, adjusted β-coefficients a: adjusted β-coefficientsa The multivariate model was adjusted for parity age, educational level, and BMI Table 3Multivariate regression models for the association between dietary patterns and GWG (n = 306)Dietary patternGWGCrude β coefficients(95% CI)Adjusted β coefficients a(95% CI)Western dietary pattern0.085(-0.103, 0.494)0.086(-0.075, 0.082)Mediterranean dietary pattern0.018(-0.223, 0.093)-0.008(-0.076, 0.039)Crude β-coefficients: crude β-coefficients, adjusted β-coefficients a: adjusted β-coefficientsa The multivariate model was adjusted for parity age, educational level, and BMI Multivariate regression models for the association between dietary patterns and GWG (n = 306) Crude β-coefficients: crude β-coefficients, adjusted β-coefficients a: adjusted β-coefficients a The multivariate model was adjusted for parity age, educational level, and BMI Frequency of individuals with adequate, inadequate, or excessive nutrient consumption categorized according to GWG Table 4 displays the percentage of women with appropriate, insufficient, or excessive nutrient intake categorized by their GWG. The vitamins with the most notable inadequacies in intake were B9, D, E, and dietary fiber. Women with decreased GWG exhibited a lower occurrence of inadequate dietary fiber intake compared to those with adequate or excessive GWG (p < 0.05). Likewise, women with appropriate GWG demonstrated higher vitamin B12 intake than those with insufficient or excessive GWG (p < 0.05). Table 4Prevalence of participants with adequate, inadequate, or excessive nutrient intake according to 2/3 EFSA DRI stratified by GWGNutrientsInadequate GWGAdequate GWGExcessive GWG p n = 68n = 129n = 109RI toIA bIE cRI toIA bIE cRI toIA bIE cDietary fiber (g/day)58.841.2-60.539.5-67.033.0-0.041Vitamin A (µg/day)5.650.344.15.059.335.76.852.840.40.558Vitamin B9 (µg/day)100.000100.000100.0000.994Vitamin B12 (µg/day)11.562.9-11.288.8-14.285.8-0.038Vitamin D (µg/day)98.51.5097.72.3094.55.500.123Vitamin E (mg/day)95.64.4095.34.7099.10.900.528Calcium (mg/day)35.065.0034.465.6029.870.200.240Magnesium (mg/day)052.947.1055.844.2065.134.90.779Iodine (µg/day)33.861.44.431.864.33.936.758.74.60.989EFSA Science, safe food, sustainability, DRI Dietary Reference IntakeIntake: a inadequate intake (RI), b adequate intake (AI), and c excessive intake (EI)Values are % unless otherwise notedThe Pearson chi-square test was used to determine the differences between the groups. There is no upper-level intake (UL) in the evaluated micronutrients Table 4Prevalence of participants with adequate, inadequate, or excessive nutrient intake according to 2/3 EFSA DRI stratified by GWGNutrientsInadequate GWGAdequate GWGExcessive GWG p n = 68n = 129n = 109RI toIA bIE cRI toIA bIE cRI toIA bIE cDietary fiber (g/day)58.841.2-60.539.5-67.033.0-0.041Vitamin A (µg/day)5.650.344.15.059.335.76.852.840.40.558Vitamin B9 (µg/day)100.000100.000100.0000.994Vitamin B12 (µg/day)11.562.9-11.288.8-14.285.8-0.038Vitamin D (µg/day)98.51.5097.72.3094.55.500.123Vitamin E (mg/day)95.64.4095.34.7099.10.900.528Calcium (mg/day)35.065.0034.465.6029.870.200.240Magnesium (mg/day)052.947.1055.844.2065.134.90.779Iodine (µg/day)33.861.44.431.864.33.936.758.74.60.989EFSA Science, safe food, sustainability, DRI Dietary Reference IntakeIntake: a inadequate intake (RI), b adequate intake (AI), and c excessive intake (EI)Values are % unless otherwise notedThe Pearson chi-square test was used to determine the differences between the groups. There is no upper-level intake (UL) in the evaluated micronutrients Prevalence of participants with adequate, inadequate, or excessive nutrient intake according to 2/3 EFSA DRI stratified by GWG EFSA Science, safe food, sustainability, DRI Dietary Reference Intake Intake: a inadequate intake (RI), b adequate intake (AI), and c excessive intake (EI) Values are % unless otherwise noted The Pearson chi-square test was used to determine the differences between the groups. There is no upper-level intake (UL) in the evaluated micronutrients Relationship between maternal dietary patterns and adequate nutrient intake based on GWG Table 5 presents the association between the sufficiency of nutrients and dietary patterns in relation to GWG status. Regardless of the GWG, there is moderate evidence suggesting that adhering to a Mediterranean dietary pattern is associated with higher odds of achieving recommended levels for dietary fiber intake, as well as the intake of vitamins B12, D, and E (p < 0.05). Table 5Multivariate logistic regression of association between nutrient adequacy and dietary patterns according to GWGInadequate GWGAdequate GWGExcessive GWGOR (95% CI)n = 68OR (95% CI)n = 129OR (95% CI)n = 109Dietary fiberWestern dietary pattern0.5 (0.3, 0.9)0.4 (0.3, 1.8)0.6 (0.5, 1.1)Mediterranean dietary pattern4.2 (2.0, 6.2)2.3 (0.7, 2.3)1.3 (0.5, 1.4)Vitamin AWestern dietary pattern0.6 (0.3, 1.2)0.5 (0.3, 0.9)0.7 (0.4, 0.9)Mediterranean dietary pattern0.9 (0.7, 1.3)1.1 (0.7, 1.3)1.0 (0.6, 1.3)Vitamin B12Western dietary pattern0.3 (0.2, 0.5)0.3 (0.2, 0.7)0.4 (0.3, 0.9)Mediterranean dietary pattern1.8 (1.5, 2.7)2.4 (1.2, 2.5)1.6 (1.1, 2.1)Vitamin DWestern dietary pattern0.6 (0.5, 0.7)0.7 (0.6, 1.5)0.8 (0.8, 1.8)Mediterranean dietary pattern3.9 (2.1, 6.5)3.7 (2.0, 7.8)3.3 (1.4, 4.6)Vitamin EWestern dietary pattern0.8 (0.4, 1.2)1.0 (0.4, 1.9)0.9 (0.3, 1.8)Mediterranean dietary pattern2.3 (1.1, 4.3)1.6 (1.0, 2.2)2.7 (0.8, 7.2)CalciumWestern dietary pattern0.6 (0.5, 1.4)0.6 (0.5, 1.7)0.7 (0.5, 1.2)Mediterranean dietary pattern1.2 (0.6, 2.0)1.1 (0.7, 1.7)1.0 (0.7, 1.4)IodineWestern dietary pattern0.8 (0.7, 1.1)1.2 (0.9, 1.5)1.0 (0.8, 1.4)Mediterranean dietary pattern1.6 (1.0, 2.5)1.6 (1.0, 2.6)1.8 (1.4, 3.5)The multivariate model was adjusted for parity age, educational level, and BMI Table 5Multivariate logistic regression of association between nutrient adequacy and dietary patterns according to GWGInadequate GWGAdequate GWGExcessive GWGOR (95% CI)n = 68OR (95% CI)n = 129OR (95% CI)n = 109Dietary fiberWestern dietary pattern0.5 (0.3, 0.9)0.4 (0.3, 1.8)0.6 (0.5, 1.1)Mediterranean dietary pattern4.2 (2.0, 6.2)2.3 (0.7, 2.3)1.3 (0.5, 1.4)Vitamin AWestern dietary pattern0.6 (0.3, 1.2)0.5 (0.3, 0.9)0.7 (0.4, 0.9)Mediterranean dietary pattern0.9 (0.7, 1.3)1.1 (0.7, 1.3)1.0 (0.6, 1.3)Vitamin B12Western dietary pattern0.3 (0.2, 0.5)0.3 (0.2, 0.7)0.4 (0.3, 0.9)Mediterranean dietary pattern1.8 (1.5, 2.7)2.4 (1.2, 2.5)1.6 (1.1, 2.1)Vitamin DWestern dietary pattern0.6 (0.5, 0.7)0.7 (0.6, 1.5)0.8 (0.8, 1.8)Mediterranean dietary pattern3.9 (2.1, 6.5)3.7 (2.0, 7.8)3.3 (1.4, 4.6)Vitamin EWestern dietary pattern0.8 (0.4, 1.2)1.0 (0.4, 1.9)0.9 (0.3, 1.8)Mediterranean dietary pattern2.3 (1.1, 4.3)1.6 (1.0, 2.2)2.7 (0.8, 7.2)CalciumWestern dietary pattern0.6 (0.5, 1.4)0.6 (0.5, 1.7)0.7 (0.5, 1.2)Mediterranean dietary pattern1.2 (0.6, 2.0)1.1 (0.7, 1.7)1.0 (0.7, 1.4)IodineWestern dietary pattern0.8 (0.7, 1.1)1.2 (0.9, 1.5)1.0 (0.8, 1.4)Mediterranean dietary pattern1.6 (1.0, 2.5)1.6 (1.0, 2.6)1.8 (1.4, 3.5)The multivariate model was adjusted for parity age, educational level, and BMI Multivariate logistic regression of association between nutrient adequacy and dietary patterns according to GWG The multivariate model was adjusted for parity age, educational level, and BMI Discussion International research on lifestyle actions during pregnancy allows knowing the effectiveness of diet adaptation to prevent GWG and its consequences [33]. Statistically significant differences in pre-pregnancy BMI, residence, number of children, and educational level were found according to according to the GWG. Thus, living in their hometown, having higher education, having fewer children, and having a lower pre-pregnancy BMI are related to an adequate GWG. Consistent results were found by Cano-Ibanez et al. [27]. Similarly, adherence to a Mediterranean dietary pattern showed a non-significant downward trend in relation to GWG, whereas the Western pattern was positively associated. Although our findings for the Mediterranean pattern did not reach statistical significance, current research suggests that diets with higher intake of vegetables, legumes, fish, and fruits have beneficial results in pregnancy [34, 35]. In general, higher adherence to this pattern has been described as a potential protective factor against cardiometabolic risk [36] and hypertensive disorders [37]. While our data aligned with the direction of the risk reduction of excessive GWG reported in other studies [38], further research with larger samples may be needed to confirm this association in our population. In alignment with our findings, Al Wattar et al. [39] identified that a Mediterranean-style diet, characterized by elevated consumption of vegetables, extra virgin olive oil and legumes, is associated with a reduction in GWG. Multiple studies support a positive correlation between the intake of whole grains and a decrease in the risk of cardiovascular disease (CVD), cancer, and both morbidity and mortality [40–42], is also associated with a lower risk of GWG and type 2 diabetes because fiber hinders the absorption of glucose in the intestine, so it decreases the glycemic index in the body. Therefore, a higher consumption of whole grains positively affects the decrease of the GWG [16]. The results of the present study highlight that the Mediterranean dietary pattern, which includes these whole grains, shows a similar effect. This research shows that the Western dietary pattern, an energy-dense pattern characterized by high consumption of red meats and cold meats, pastries, chocolate, and sugary drinks, increases the GWG in consistency with the described by Maugeri et al. [17]. Despite the relationship established between dietary patterns and associated diseases, interventions to modify eating habits and improve health have had limited impact [43]. The majority of investigations regarding this matter have predominantly concentrated on the analysis of individual nutrients. In contrast, contemporary epidemiological research underscores the significance of appraising the impact of dietary quality on overall health through the identification of dietary patterns. This innovative approach offers various advantages, such as considering the interplay between food components [44] and discerning causality in statistically significant associations. People do not consume foods in isolation; rather, they intake a combination of nutrients through their dietary choices. Analyzing dietary patterns offers a more comprehensive understanding of both food and nutrient consumption. Such patterns have shown the potential to predict the risk of specific diseases more effectively compared to studying individual foods or nutrients alone, as highlighted by Hu [45]. Generally, research on dietary patterns serves as a more holistic approach, yielding meaningful results for specific populations, as emphasized by Loy and Mohamed [46] and Wesołowska et al. [47]. The most inadequate intake was found for vitamins B9, D, E, and dietary fiber. Participants with a low GWG showed a lower prevalence of inadequate dietary fiber intake in consistency with the study conducted by Cano-Ibanez et al. [27]. Similarly, women with adequate GWG exhibited higher vitamin B12 intake. Adequate intake of B9 accompanied by iron during pregnancy may decrease the risk of anemia, low-weight babies, and premature births [48–50]. Regardless of the GWG, a positive effect of the Mediterranean dietary pattern on the adequate intake of vitamins B12, E, D and dietary fiber have been found in the present study in consistency with the described in a similar study [27]. It is important to acknowledge that GWG was used in this study as an intermediate outcome. From an obstetric perspective, the clinical relevance of monitoring GWG is based on its role as a key predictor for perinatal outcomes, including fetal growth patterns, risk of pregnancy complications, and the mode of delivery. Therefore, our findings regarding dietary patterns should be interpreted as a strategy to maintain weight gain within recommended ranges to ultimately support better maternal and neonatal health. Limitations The results of the present study should be interpreted considering some limitations. The questionnaire used induces possible biases in the collection of information because it relies on the memory of the participants. To correct this possible error, we excluded pregnant women with energy intakes that were not within the predefined limits [51]. and used the residual method to adjust food intake for energy intake. Secondly, it is important to collect physical activity or other socioeconomic factors. Another limitation of this study is the timing and method of dietary assessment. Dietary intake was assessed using an FFQ and a 24-hour recall, focusing on the month prior to the interview. Consequently, these data probably do not reflect dietary patterns throughout the gestational period. Since pregnancy is a dynamic process with significant dietary changes across trimesters, our results should be interpreted as an association with late pregnancy habits rather than a longitudinal reflection of the entire pregnancy. Future studies should implement serial dietary assessments across all three trimesters to better understand the specific impact of each period on cumulative GWG. Furthermore, our analysis did not take into account specific obstetric complications or symptoms such as nausea and vomiting of pregnancy. These conditions are known to significantly affect both dietary intake and weight gain trajectory. The absence of these variables means that residual confounding cannot be completely ruled out, and the observed associations between dietary patterns and GWG should be interpreted taking this clinical context into account. This study’s strengths include its utilization of a sample with comprehensive data on dietary intake and the incorporation of dietary patterns instead of focusing solely on individual foods. Additionally, it stands out as one of the limited studies examining the correlation between GWG and dietary patterns in pregnant Spanish women, along with assessing adequate micronutrient intake. Additionally, it should be noted that multiple statistical tests were performed to explore the associations between dietary patterns and nutrient adequacy across different GWG strata. This approach may increase the probability of observing significant results by chance. Therefore, our findings should be interpreted with caution and considered exploratory, providing a basis for further validation in larger prospective studies. Conclusions In the present study, we found that an adequate GWG is related to better nutrient adequacy. Pregnancy offers a favorable opportunity to promote healthy behaviors, as women are generally more inclined to adopt nutritious dietary practices during this time. Therefore, our research supports the promotion of healthy eating habits based on the Mediterranean diet, which emphasizes abundant consumption of vegetables, nuts, whole grains, and olive oil, throughout pregnancy. Furthermore, offering guidance and advocating for the Mediterranean diet during prenatal appointments could serve as a sustainable and practical method for managing gestational weight gain and ensuring sufficient nutrient intake during this crucial phase of fetal development. Moreover, it has the potential to become a significant public health initiative with broad implications throughout a woman’s life.