/* ==========================================================================
   Mi Mundo Gourmet – Blog, recetas y newsletter
   ========================================================================== */

/* Tarjetas de entradas ([mmg_ultimas_entradas]) */
.mmg-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
@media (max-width: 921px) { .mmg-posts { grid-template-columns: 1fr; } }
.mmg-post-card { background: var(--mmg-white); }
.mmg-post-card__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mmg-cream);
}
.mmg-post-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.mmg-post-card:hover .mmg-post-card__img img { transform: scale(1.04); }
.mmg-post-card__body { padding: 20px 4px 0; }
.mmg-post-card__cat,
.mmg-blog-header__eyebrow,
.mmg-recipe-products__eyebrow,
.mmg-newsletter__eyebrow {
	font-family: var(--mmg-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mmg-green-dark);
	margin: 0 0 8px;
}
.mmg-post-card__title {
	font-family: var(--mmg-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 10px;
}
.mmg-post-card__title a { color: var(--mmg-ink); text-decoration: none; }
.mmg-post-card__title a:hover { color: var(--mmg-green-dark); }
.mmg-post-card__excerpt {
	font-family: var(--mmg-sans);
	font-size: 15px;
	line-height: 1.7;
	color: var(--mmg-text);
	margin: 0 0 14px;
}
.mmg-post-card__more {
	font-family: var(--mmg-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mmg-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--mmg-green);
	padding-bottom: 3px;
}
.mmg-post-card__more:hover { color: var(--mmg-green-dark); }

/* Cabecera del blog */
.mmg-blog-header {
	text-align: center;
	padding: 20px 0 50px;
	max-width: 760px;
	margin: 0 auto;
}
.mmg-blog-header__title {
	font-family: var(--mmg-serif) !important;
	font-weight: 400 !important;
	font-size: 44px !important;
	color: var(--mmg-ink) !important;
	margin: 0 0 14px !important;
}
.mmg-blog-header__text {
	font-family: var(--mmg-sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--mmg-text);
	margin: 0 0 28px;
}
.mmg-blog-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.mmg-blog-filters a {
	font-family: var(--mmg-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mmg-ink);
	text-decoration: none;
	border: 1px solid var(--mmg-line);
	padding: 10px 18px;
	transition: all .2s ease;
}
.mmg-blog-filters a:hover,
.mmg-blog-filters a.is-active {
	background: var(--mmg-ink);
	border-color: var(--mmg-ink);
	color: var(--mmg-white);
}
@media (max-width: 767px) { .mmg-blog-header__title { font-size: 32px !important; } }

/* Listado del blog (Astra) */
.blog .ast-article-post .ast-article-inner,
.category .ast-article-post .ast-article-inner {
	background: var(--mmg-white) !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.blog .entry-title,
.category .entry-title,
.single-post .entry-title {
	font-family: var(--mmg-serif) !important;
	font-weight: 400 !important;
}
.blog .entry-title a,
.category .entry-title a { color: var(--mmg-ink) !important; }
.blog .ast-blog-featured-section img,
.category .ast-blog-featured-section img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
.blog .ast-read-more-container a,
.category .ast-read-more-container a,
.blog .read-more a,
.category .read-more a {
	font-family: var(--mmg-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mmg-ink) !important;
	border-bottom: 1px solid var(--mmg-green);
	text-decoration: none;
}

/* Cajetín de productos de la receta ([mmg_productos]) */
.mmg-recipe-products {
	background: var(--mmg-cream);
	border-left: 3px solid var(--mmg-green);
	padding: 32px;
	margin: 40px 0;
}
.mmg-recipe-products__title {
	font-family: var(--mmg-serif);
	font-size: 26px;
	font-weight: 400;
	color: var(--mmg-ink);
	margin: 0 0 6px;
}
.mmg-recipe-products__text {
	font-family: var(--mmg-sans);
	font-size: 15px;
	color: var(--mmg-text);
	margin: 0 0 20px;
}
.mmg-recipe-products__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mmg-recipe-product {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	align-items: center;
	gap: 16px;
	background: var(--mmg-white);
	padding: 10px 16px 10px 10px;
}
.mmg-recipe-product__img img { width: 72px; height: 72px; object-fit: cover; display: block; }
.mmg-recipe-product__info { display: flex; flex-direction: column; gap: 2px; }
.mmg-recipe-product__name {
	font-family: var(--mmg-sans);
	font-size: 14px;
	color: var(--mmg-ink) !important;
	text-decoration: none;
}
.mmg-recipe-product__price { font-family: var(--mmg-sans); font-size: 14px; font-weight: 600; color: var(--mmg-ink); }
.mmg-recipe-product__add.button {
	font-family: var(--mmg-sans);
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 0 !important;
	background: var(--mmg-ink) !important;
	color: var(--mmg-white) !important;
	padding: 12px 16px !important;
	white-space: nowrap;
}
.mmg-recipe-product__add.button:hover { background: var(--mmg-green) !important; }
.mmg-recipe-product .added_to_cart { display: none; }
@media (max-width: 600px) {
	.mmg-recipe-products { padding: 22px 16px; }
	.mmg-recipe-product { grid-template-columns: 60px 1fr; }
	.mmg-recipe-product__img img { width: 60px; height: 60px; }
	.mmg-recipe-product__add.button { grid-column: 1 / -1; text-align: center; }
}

/* Tarjeta de receta (WP Recipe Maker) con los colores de la marca */
.wprm-recipe-container .wprm-recipe {
	font-family: var(--mmg-sans);
	border-color: var(--mmg-line) !important;
}
.wprm-recipe-container .wprm-recipe-name,
.wprm-recipe-container .wprm-recipe-header {
	font-family: var(--mmg-serif) !important;
	font-weight: 400 !important;
	color: var(--mmg-ink) !important;
}
.wprm-recipe-container a.wprm-recipe-link,
.wprm-recipe-container .wprm-recipe-print,
.wprm-recipe-container .wprm-recipe-jump {
	background: var(--mmg-ink) !important;
	border-color: var(--mmg-ink) !important;
	color: var(--mmg-white) !important;
	border-radius: 0 !important;
}
.wprm-recipe-container .wprm-recipe-ingredient::marker,
.wprm-recipe-container .wprm-recipe-instruction::marker { color: var(--mmg-green-dark); }

/* Newsletter ([mmg_newsletter]) */
.mmg-newsletter-section { background: var(--mmg-cream); }
.mmg-newsletter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
@media (max-width: 921px) { .mmg-newsletter { grid-template-columns: 1fr; gap: 20px; } }
.mmg-newsletter__title {
	font-family: var(--mmg-serif) !important;
	font-size: 30px !important;
	font-weight: 400 !important;
	color: var(--mmg-ink) !important;
	margin: 0 0 8px !important;
}
.mmg-newsletter__text { font-family: var(--mmg-sans); font-size: 15px; color: var(--mmg-text); margin: 0; }
.mmg-newsletter__row { display: flex; }
.mmg-newsletter__row input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--mmg-ink) !important;
	border-right: 0 !important;
	border-radius: 0 !important;
	background: var(--mmg-white) !important;
	padding: 14px 16px !important;
	font-family: var(--mmg-sans);
	font-size: 15px;
}
.mmg-newsletter__row button {
	font-family: var(--mmg-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	background: var(--mmg-ink) !important;
	color: var(--mmg-white) !important;
	border: 1px solid var(--mmg-ink) !important;
	border-radius: 0 !important;
	padding: 14px 24px !important;
	cursor: pointer;
}
.mmg-newsletter__row button:hover { background: var(--mmg-green) !important; border-color: var(--mmg-green) !important; }
.mmg-newsletter__row button:disabled { opacity: .6; }
.mmg-newsletter__consent {
	display: flex;
	gap: 8px;
	align-items: center;
	font-family: var(--mmg-sans);
	font-size: 13px;
	color: var(--mmg-text);
	margin-top: 12px;
}
.mmg-newsletter__consent a { color: var(--mmg-ink); text-decoration: underline; }
.mmg-newsletter__hp { position: absolute !important; left: -9999px !important; }
.mmg-newsletter__msg { font-family: var(--mmg-sans); font-size: 14px; color: var(--mmg-green-dark); margin: 10px 0 0; min-height: 1em; }
