/* ===========================================================================
   Pepiño Recetas — estilos públicos. Usa las variables del tema hijo (--jp-*): misma línea que la web
   (blanco, Bricolage Grotesque + Manrope, granate #a30004, contenedor 1240, botones píldora).
   =========================================================================== */
.jp-rec { --jp-rec-gap: 28px; }
.jp-rec-wrap { width: 100%; max-width: var(--jp-ancho, 1240px); margin: 0 auto; padding: 22px 24px 90px; }
.jp-rec .jp-migas { margin-bottom: 18px !important; }
.jp-rec h1, .jp-rec h2, .jp-rec h3 { font-family: var(--jp-display); color: var(--jp-tinta); letter-spacing: -.01em; padding: 0; }
.jp-rec a { text-decoration: none; }

/* --- Rejilla de tarjetas ------------------------------------------------- */
.jp-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--jp-rec-gap); }
.jp-rec-card { display: flex; flex-direction: column; min-width: 0; }
.jp-rec-card-img { display: block; position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: var(--jp-hueso); border: 1px solid var(--jp-linea); }
.jp-rec-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.jp-rec-card:hover .jp-rec-card-img img { transform: scale(1.035); }
.jp-rec-card-sinfoto { display: block; width: 100%; height: 100%; background: var(--jp-hueso); }
.jp-rec-card-txt { padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.jp-rec-card-tipo { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--jp-marca); }
.jp-rec-card-tipo:hover { color: var(--jp-marca-osc); }
.jp-rec-card-titulo, .jp-rec h2.jp-rec-card-titulo, .jp-rec h3.jp-rec-card-titulo { font-family: var(--jp-texto); font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: 0; text-wrap: pretty; }
.jp-rec-card-titulo a { color: var(--jp-tinta); }
.jp-rec-card:hover .jp-rec-card-titulo a { color: var(--jp-marca); }

/* Chips de datos (dificultad · tiempo · comensales) */
.jp-rec-chips { list-style: none !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 !important; padding: 0 !important; }
.jp-rec-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--jp-linea); border-radius: 999px; font-family: var(--jp-texto); font-size: 14px; font-weight: 600; color: var(--jp-tinta); line-height: 1; margin: 0; }
.jp-rec-chips svg { width: 17px; height: 17px; color: var(--jp-marca); flex: 0 0 auto; }
.jp-rec-chips--mini { gap: 12px; margin: 2px 0 0 !important; }
.jp-rec-chips--mini li { padding: 0; border: 0; font-size: 13px; font-weight: 500; color: var(--jp-gris); }
.jp-rec-chips--mini svg { width: 15px; height: 15px; }

/* --- Archivo ---------------------------------------------------------------- */
.jp-rec-cabecera { margin-bottom: 40px; }
.jp-rec-cabecera .jp-eyebrow { display: block; }
.jp-rec-cabecera .jp-blog-descripcion p { padding-bottom: 0; }
.jp-rec-cabecera .jp-subcats { margin-top: 20px; }
.jp-rec-paginacion { margin-top: 48px; }
.jp-rec-paginacion .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.jp-rec-paginacion .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid var(--jp-linea); border-radius: 999px; font-family: var(--jp-texto); font-weight: 700; font-size: 14px; color: var(--jp-tinta); }
.jp-rec-paginacion .page-numbers:hover, .jp-rec-paginacion .page-numbers.current { background: var(--jp-tinta); border-color: var(--jp-tinta); color: #fff; }
.jp-rec-paginacion .page-numbers.dots { border: 0; }
.jp-rec-paginacion .screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.jp-rec-vacio { font-size: 17px; color: var(--jp-gris); }
.jp-rec-vacio a { color: var(--jp-marca); text-decoration: underline; text-underline-offset: 3px; }
.jp-rec-cabecera .jp-busqueda-n { margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 600; color: var(--jp-tinta); }
.jp-rec-cabecera .jp-buscar-otros { margin: 0; }

/* --- Ficha: cabecera ------------------------------------------------------- */
.jp-rec-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; margin: 8px 0 56px; }
.jp-rec-cab .jp-eyebrow { display: block; }
.jp-rec-cab .jp-eyebrow a { color: inherit; }
.jp-rec-cab .jp-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jp-rec-titulo, .jp-rec h1.jp-rec-titulo { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; margin: 0 0 16px; text-wrap: balance; }
.jp-rec-intro { font-size: 18px; line-height: 1.6; color: var(--jp-gris); margin: 0; padding: 0; max-width: 34em; }
.jp-rec-tiempos { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--jp-gris); }
.jp-rec-tiempos b { color: var(--jp-tinta); font-weight: 700; }
.jp-rec-hero { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--jp-radio, 22px); overflow: hidden; background: var(--jp-hueso); border: 1px solid var(--jp-linea); }
.jp-rec-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- Ficha: cuerpo (ingredientes + elaboración) ---------------------------- */
.jp-rec-cuerpo { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; }
.jp-rec-lado { position: sticky; top: calc(var(--jp-cab-alto, 90px) + 24px); display: flex; flex-direction: column; gap: 20px; }
.jp-rec-ingredientes { background: var(--jp-hueso); border-radius: 20px; padding: 26px 26px 22px; }
.jp-rec-ingredientes h2, .jp-rec-compra h2, .jp-rec-pasos h2, .jp-rec-consejo h2 { font-size: 24px; margin: 0 0 6px; }
.jp-rec-para { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--jp-gris); margin: 0 0 14px; padding: 0; }
.jp-rec-para svg { width: 16px; height: 16px; color: var(--jp-marca); }
.jp-rec-ing, .jp-rec ul.jp-rec-ing { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.jp-rec-ing li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid rgba(27, 24, 23, .08); font-size: 15.5px; line-height: 1.45; color: var(--jp-tinta); margin: 0; }
.jp-rec-ing li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--jp-marca); }
.jp-rec-ing li:first-child { border-top: 0; }
.jp-rec-ing li b { font-weight: 700; margin-right: 2px; }
.jp-rec-ing li.jp-rec-ing-grupo { padding-left: 0; padding-top: 16px; font-family: var(--jp-display); font-weight: 700; font-size: 16px; }
.jp-rec-ing li.jp-rec-ing-grupo::before { display: none; }
.jp-rec-ing-prod { color: var(--jp-marca); font-weight: 600; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(163, 0, 4, .35); }
.jp-rec-ing-prod:hover { color: var(--jp-marca-osc); text-decoration-color: currentColor; }

.jp-rec-compra { border: 1px solid var(--jp-linea); border-radius: 20px; padding: 22px 22px 8px; }
.jp-rec-compra h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 8px; }
.jp-rec-compra h2 svg { width: 20px; height: 20px; color: var(--jp-marca); }
.jp-rec-prods, .jp-rec ul.jp-rec-prods { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.jp-rec-prods li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--jp-linea); margin: 0; }
.jp-rec-prods li:first-child { border-top: 0; }
.jp-rec-prod-img, .jp-rec .jp-foto.jp-rec-prod-img { display: block; width: 84px; aspect-ratio: 3 / 2; border-radius: 10px; }
.jp-rec-prod-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jp-rec-prod-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jp-rec-prod-nombre { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--jp-tinta); }
.jp-rec-prod-nombre:hover { color: var(--jp-marca); }
.jp-rec-prods .jp-precio { font-size: 15px; }
.jp-rec-prods .jp-precio del { color: var(--jp-gris-claro); font-weight: 500; font-size: .85em; }
.jp-rec-prods .jp-precio ins { text-decoration: none; }
.jp-rec-prods .woocommerce-price-suffix { display: none; }
.jp-rec-add, .jp-rec a.jp-rec-add { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--jp-marca); color: #fff; font-family: var(--jp-texto); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background .15s ease, transform .15s ease; }
.jp-rec-add:hover, .jp-rec a.jp-rec-add:hover { background: var(--jp-marca-osc); color: #fff; transform: translateY(-1px); }
.jp-rec-add--ver, .jp-rec a.jp-rec-add--ver { background: transparent; color: var(--jp-tinta); border: 1px solid var(--jp-tinta); }
.jp-rec-add--ver:hover, .jp-rec a.jp-rec-add--ver:hover { background: var(--jp-tinta); color: #fff; }
.jp-rec-add .jp-rec-add-ok { display: none; }
.jp-rec-add.added .jp-rec-add-txt { display: none; }
.jp-rec-add.added, .jp-rec a.jp-rec-add.added { background: var(--jp-verde); }
.jp-rec-add.added .jp-rec-add-ok { display: inline; }
.jp-rec-add.loading { opacity: .6; }
.jp-rec-add::after { display: none !important; }
.jp-rec-prods a.added_to_cart { display: none !important; }

.jp-rec-principal { min-width: 0; }
.jp-rec-texto { margin-bottom: 36px; }
.jp-rec-texto p:last-child { padding-bottom: 0; }
.jp-rec-pasos h2 { margin-bottom: 22px; }
.jp-rec-ol, .jp-rec ol.jp-rec-ol { list-style: none !important; margin: 0 !important; padding: 0 !important; counter-reset: none; }
.jp-rec-ol > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--jp-linea); margin: 0; scroll-margin-top: calc(var(--jp-cab-alto, 90px) + 16px); }
.jp-rec-ol > li:last-child { border-bottom: 1px solid var(--jp-linea); }
.jp-rec-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--jp-marca); color: #fff; font-family: var(--jp-display); font-size: 20px; font-weight: 700; line-height: 1; }
.jp-rec-ol h3 { font-size: 20px; margin: 9px 0 6px; line-height: 1.2; }
.jp-rec-ol p { font-size: 17px; line-height: 1.68; color: var(--jp-tinta); margin: 0; padding: 0; }
.jp-rec-ol > li:not(:has(h3)) p { padding-top: 9px; }
.jp-rec-paso-foto { margin: 16px 0 4px; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--jp-hueso); border: 1px solid var(--jp-linea); }
.jp-rec-paso-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jp-rec-consejo { margin-top: 36px; background: var(--jp-hueso); border-radius: 20px; padding: 26px 28px; }
.jp-rec-consejo h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 10px; }
.jp-rec-consejo h2 svg { width: 22px; height: 22px; color: var(--jp-marca); }
.jp-rec-consejo p { font-size: 16.5px; line-height: 1.65; color: var(--jp-tinta); margin: 0; padding: 0; }
.jp-rec-acciones { margin: 28px 0 0; padding: 0; }
.jp-rec-imprimir { background: transparent; }
.jp-rec-imprimir svg { width: 18px; height: 18px; }

/* --- Secciones inferiores ------------------------------------------------- */
.jp-rec-seccion { margin-top: 88px; }
.jp-rec-seccion .jp-sec-cab { margin-bottom: 32px; }
.jp-rec-productos .woocommerce { clear: both; }
.jp-rec-productos .woocommerce ul.products { margin-bottom: 0; }
.jp-rec-bloque { margin: 0 0 40px; }
.jp-rec-en-producto { margin: 0 auto 72px; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
	.jp-rec-cuerpo { grid-template-columns: 320px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 980px) {
	.jp-rec-wrap { padding-bottom: 64px; }
	.jp-rec-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
	.jp-rec-cab { grid-template-columns: 1fr; gap: 26px; margin-bottom: 36px; }
	.jp-rec-hero { order: -1; }
	.jp-rec-cuerpo { grid-template-columns: 1fr; gap: 36px; }
	.jp-rec-lado { position: static; }
	.jp-rec-seccion { margin-top: 64px; }
}
@media (max-width: 600px) {
	.jp-rec-wrap { padding-left: 20px; padding-right: 20px; }
	.jp-rec-grid, .jp-rec-grid--archivo { grid-template-columns: 1fr; gap: 28px; }
	.jp-rec-card-img, .jp-rec-hero { border-radius: 16px; }
	.jp-rec-titulo, .jp-rec h1.jp-rec-titulo { font-size: 32px; }
	.jp-rec-intro { font-size: 17px; }
	.jp-rec-chips li { font-size: 13px; padding: 7px 12px; }
	.jp-rec-ingredientes { padding: 22px 20px 18px; }
	.jp-rec-ol > li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
	.jp-rec-num { width: 36px; height: 36px; font-size: 17px; }
	.jp-rec-ol h3 { margin-top: 5px; }
	.jp-rec-ol > li:not(:has(h3)) p { padding-top: 6px; }
	.jp-rec-paso-foto { border-radius: 12px; margin-top: 12px; }
	.jp-rec-prods li { grid-template-columns: 72px minmax(0, 1fr); }
	.jp-rec-prods li .jp-rec-add { grid-column: 2; justify-self: start; }
	.jp-rec-prod-img, .jp-rec .jp-foto.jp-rec-prod-img { width: 72px; }
	.jp-rec-consejo { padding: 22px 20px; }
}

/* --- Impresión ------------------------------------------------------------ */
.jp-rec-print-cab { display: none; }
@media print {
	@page { margin: 14mm 14mm 16mm; }
	header.et-l--header, footer.et-l--footer, #et-boc .et-l--header, #et-boc .et-l--footer, #jp-buscador, .jp-rec-migas, .jp-rec-compra, .jp-rec-acciones, .jp-rec-seccion, .jp-whatsapp, #moove_gdpr_cookie_info_bar, #wpadminbar { display: none !important; }
	/* Cabecera de impresión: logo de la web arriba a la izquierda y dirección a la derecha */
	.jp-rec-print-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid #bbb; }
	.jp-rec-print-cab img { display: block; height: 20mm; width: auto; max-width: 70mm; object-fit: contain; }
	.jp-rec-print-cab strong { font-family: var(--jp-display, sans-serif); font-size: 18pt; }
	.jp-rec-print-cab span { font-size: 10pt; color: #555; text-align: right; }
	.jp-rec-wrap { padding: 0; max-width: none; }
	.jp-rec-cab { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
	.jp-rec-cuerpo { grid-template-columns: 1fr; gap: 24px; }
	.jp-rec-lado { position: static; }
	.jp-rec-ingredientes, .jp-rec-consejo { background: none; border: 1px solid #ccc; }
	.jp-rec-num { background: none; color: #000; border: 1px solid #000; }
	.jp-rec-ol p { font-size: 13pt; }
}
