/* MG Nutrición – estilos del sitio (paleta pastel sobre blanco) */
:root {
	--mg-ink: #24424a;
	--mg-text: #44525a;
	--mg-muted: #6b7a82;
	--mg-accent: #2f7d68;
	--mg-accent-dark: #25655a;
	--mg-celeste: #bfe3f5;
	--mg-celeste-soft: #eaf6fc;
	--mg-verde: #cdebd4;
	--mg-verde-soft: #edf8f0;
	--mg-rosa: #f9d5e0;
	--mg-rosa-soft: #fdf0f4;
	--mg-lila: #dcd0f2;
	--mg-lila-soft: #f4f0fb;
	--mg-line: #e6edf0;
	--mg-radius: 22px;
	--mg-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--mg-sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

body {
	background: #fff;
	color: var(--mg-text);
	font-family: var(--mg-sans);
	font-size: 17px;
	line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mg-serif);
	color: var(--mg-ink);
	font-weight: 600;
	line-height: 1.18;
	text-wrap: balance;
}
a { color: var(--mg-accent); }
a:hover { color: var(--mg-accent-dark); }

/* ---------- Encabezado (tema Hello Elementor) ---------- */
.site-header {
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--mg-line);
	padding-block: 14px;
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
}
.admin-bar .site-header { top: 32px; }
.site-header .site-title,
.site-header .site-title a {
	font-family: var(--mg-serif);
	font-weight: 600;
	font-size: 24px;
	color: var(--mg-ink);
	text-decoration: none;
	margin: 0;
}
.site-header .site-description { display: none; }
.site-header .site-navigation ul.menu { gap: 4px; align-items: center; }
.site-header .site-navigation ul.menu li a {
	color: var(--mg-ink);
	font-weight: 600;
	font-size: 15.5px;
	padding: 9px 14px;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.2s;
}
.site-header .site-navigation ul.menu li a:hover,
.site-header .site-navigation ul.menu li.current-menu-item > a {
	background: var(--mg-verde-soft);
	color: var(--mg-accent-dark);
}
.site-header .site-navigation ul.menu li.mg-menu-cta > a {
	background: var(--mg-accent);
	color: #fff;
	padding-inline: 20px;
	margin-left: 6px;
}
.site-header .site-navigation ul.menu li.mg-menu-cta > a:hover { background: var(--mg-accent-dark); color: #fff; }
.site-navigation-toggle-holder .site-navigation-toggle {
	background: var(--mg-verde-soft);
	color: var(--mg-ink);
	border-radius: 12px;
}
.site-navigation-dropdown ul.menu { background: #fff; box-shadow: 0 18px 30px rgba(36, 66, 74, 0.12); }
.site-navigation-dropdown ul.menu li a {
	background: #fff;
	color: var(--mg-ink);
	font-weight: 600;
	padding: 14px 24px;
}
.site-navigation-dropdown ul.menu li.current-menu-item a { background: var(--mg-verde-soft); color: var(--mg-accent-dark); }

/* ---------- Pie ---------- */
.site-footer {
	background: var(--mg-celeste-soft);
	border-top: 1px solid var(--mg-line);
	padding-block: 34px;
	font-size: 15px;
	color: var(--mg-muted);
}
.site-footer .site-title,
.site-footer .site-title a {
	font-family: var(--mg-serif);
	font-size: 20px;
	color: var(--mg-ink);
	text-decoration: none;
}
.site-footer .site-description { display: none; }
.site-footer .site-navigation ul.menu li a { color: var(--mg-ink); font-size: 15px; padding: 6px 10px; text-decoration: none; }
.site-footer .site-navigation ul.menu li a:hover { color: var(--mg-accent); }
.site-footer .copyright { max-width: 780px; }
.site-footer .copyright p { margin: 0; line-height: 1.6; }

/* ---------- Piezas reutilizables (Elementor) ---------- */
.elementor .mg-eyebrow .elementor-heading-title {
	font-family: var(--mg-sans);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mg-accent);
	line-height: 1.4;
}
.elementor .mg-lead { font-size: 19px; color: var(--mg-text); }
.elementor .mg-lead p:last-child,
.elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor .mg-btn-ghost .elementor-button {
	background: #fff;
	color: var(--mg-accent-dark);
	box-shadow: inset 0 0 0 2px var(--mg-verde);
}
.elementor .mg-btn-ghost .elementor-button:hover { background: var(--mg-verde-soft); color: var(--mg-accent-dark); }
.elementor .elementor-button { transition: background-color 0.2s, transform 0.2s; }
.elementor .elementor-button:hover { transform: translateY(-1px); }
.elementor .mg-card { transition: transform 0.25s, box-shadow 0.25s; }
.elementor .mg-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(36, 66, 74, 0.08); }
.elementor .mg-shadow img { box-shadow: 0 24px 50px rgba(36, 66, 74, 0.14); }
.elementor .mg-cover img { box-shadow: 0 22px 44px rgba(36, 66, 74, 0.18); border-radius: 14px; }
.elementor .mg-center { text-align: center; }
.elementor .mg-narrow { max-width: 720px; margin-inline: auto; }
.elementor .mg-placeholder {
	font-size: 14.5px;
	color: var(--mg-muted);
	background: #fff;
	border: 1px dashed #c9d6dc;
	border-radius: 14px;
	padding: 12px 16px;
}
.elementor .elementor-icon-list-icon svg,
.elementor .elementor-icon-list-icon i { color: var(--mg-accent); fill: var(--mg-accent); }
.elementor .elementor-accordion .elementor-accordion-item { border-color: var(--mg-line); }
.elementor .elementor-accordion .elementor-tab-title { font-family: var(--mg-sans); font-weight: 700; color: var(--mg-ink); }

/* ---------- Grilla de artículos ---------- */
.mg-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 28px;
}
.mg-post-card {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s, box-shadow 0.25s;
}
.mg-post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(36, 66, 74, 0.09); }
.mg-post-thumb { display: block; aspect-ratio: 3 / 2; background: var(--mg-verde-soft); overflow: hidden; }
.mg-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; text-align: left; }
.mg-chip {
	align-self: flex-start;
	display: inline-block;
	background: var(--mg-lila-soft);
	color: #5d4a96;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 4px 12px;
	border-radius: 999px;
	text-decoration: none;
}
.mg-chip:hover { background: var(--mg-lila); color: #4a3a7d; }
.mg-post-title { font-size: 22px; margin: 2px 0 0; }
.mg-post-title a { color: var(--mg-ink); text-decoration: none; }
.mg-post-title a:hover { color: var(--mg-accent); }
.mg-post-excerpt { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--mg-text); }
.mg-post-more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.mg-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.mg-pagination .page-numbers {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--mg-verde-soft);
	color: var(--mg-ink);
	font-weight: 700;
	text-decoration: none;
}
.mg-pagination .page-numbers.current { background: var(--mg-accent); color: #fff; }

/* ---------- Entrada individual ---------- */
body.single-post .site-main { max-width: 780px; padding: 56px 20px 72px; }
body.single-post .page-header .entry-title { font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 18px; }
.mg-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14.5px; color: var(--mg-muted); margin-bottom: 26px; }
.mg-single-thumb { margin: 0 0 34px; }
.mg-single-thumb img { width: 100%; height: auto; border-radius: var(--mg-radius); display: block; }
body.single-post .page-content h2 { font-size: 30px; margin: 44px 0 14px; }
body.single-post .page-content h3 { font-size: 23px; margin: 32px 0 10px; }
body.single-post .page-content li { margin-bottom: 6px; }
.mg-note {
	margin-top: 44px;
	background: var(--mg-celeste-soft);
	border-radius: 16px;
	padding: 16px 20px;
	font-size: 15px;
}
.mg-cta-box {
	margin-top: 24px;
	background: linear-gradient(120deg, var(--mg-verde-soft), var(--mg-rosa-soft));
	border-radius: var(--mg-radius);
	padding: 30px 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}
.mg-cta-box > div { flex: 1 1 320px; }
.mg-cta-box p { margin: 0; }
.mg-cta-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mg-accent); }
.mg-cta-title { font-family: var(--mg-serif); font-size: 26px; font-weight: 600; color: var(--mg-ink); line-height: 1.2; margin: 4px 0 8px !important; }
.mg-btn {
	display: inline-block;
	background: var(--mg-accent);
	color: #fff !important;
	font-weight: 700;
	padding: 13px 26px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}
.mg-btn:hover { background: var(--mg-accent-dark); }

/* Comentarios */
.comments-area { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--mg-line); }
.comments-area .comment-reply-title, .comments-area .title-comments { font-size: 28px; margin: 0 0 12px; }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] {
	border: 1px solid #cfdbe0; border-radius: 14px; padding: 12px 14px;
}
.comments-area .submit, .comments-area input[type="submit"] {
	background: var(--mg-accent); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 700;
}
.comments-area .submit:hover { background: var(--mg-accent-dark); }

/* ---------- Archivos (categorías, búsqueda) y páginas sin Elementor ---------- */
body.archive .site-main,
body.search .site-main,
body.blog .site-main { padding: 56px 20px 72px; }
body.archive .page-header .entry-title,
body.search .page-header .entry-title { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 30px; }
body.archive .page-content,
body.search .page-content,
body.blog .page-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
body.archive .page-content article.post,
body.search .page-content article.post,
body.blog .page-content article.post {
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	padding: 22px 24px 26px;
	background: #fff;
}
body.archive .page-content article.post .entry-title,
body.blog .page-content article.post .entry-title { font-size: 22px; margin: 0 0 12px; }
body.archive .page-content article.post .entry-title a,
body.blog .page-content article.post .entry-title a { color: var(--mg-ink); text-decoration: none; }
body.archive .page-content article.post img,
body.blog .page-content article.post img { border-radius: 14px; margin-bottom: 12px; width: 100%; height: auto; }
body.page:not(.elementor-page) .site-main { max-width: 780px; padding: 56px 20px 72px; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 767px) {
	body { font-size: 16.5px; }
	.site-header { position: static; }
	.elementor .mg-lead { font-size: 17.5px; }
	.mg-cta-box { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.elementor .mg-card, .mg-post-card, .elementor .elementor-button { transition: none; }
}
