/* ==========================================================================
 * TuNutriplan · Recetario (1.23.0)
 * Estantería de filas + rejilla con ordenar y filtros en hoja de abajo,
 * tarjeta nueva, ficha con modo cocina y «a mi plan», página de cada receta.
 * ========================================================================== */

.tnp-recetario { --tnp-rt-hueco: var(--gutter, 16px); --tnp-rt-arriba: 0px; position: relative; }

/* ---------- Cabecera: buscador, ordenar/filtros y filtros activos ---------- */
.tnp-rt-cab {
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 8px;
	padding: 4px 0 12px; background: var(--tnp-crema); z-index: 30;
}
.tnp-rt-volver {
	width: 44px; height: 44px; margin-left: -8px; border: 0; border-radius: 999px; background: transparent;
	color: var(--tnp-verde); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tnp-rt-volver[hidden] { display: none; }
.tnp-rt-volver:hover { background: var(--tnp-menta); }
.tnp-rt-volver[hidden] + .tnp-rt-busca { grid-column: 1 / -1; }
.tnp-rt-busca { position: relative; display: flex; align-items: center; min-width: 0; }
.tnp-rt-busca > svg { position: absolute; left: 16px; color: var(--tnp-texto-suave); pointer-events: none; }
.tnp-recetario .tnp-rt-q {
	width: 100%; min-height: 48px; padding: 0 44px 0 46px; border-radius: 999px;
	border: 1.5px solid var(--tnp-borde); background: var(--tnp-superficie); color: var(--tnp-texto);
	font: 400 16px/1.2 var(--tnp-font); -webkit-appearance: none; appearance: none; box-shadow: var(--tnp-sombra);
}
.tnp-rt-q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.tnp-recetario .tnp-rt-q:focus { outline: none; border-color: var(--tnp-verde); box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.15); }
.tnp-rt-q::placeholder { color: var(--tnp-texto-suave); }
.tnp-rt-borrar {
	position: absolute; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 999px;
	background: transparent; color: var(--tnp-texto-suave); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tnp-rt-borrar[hidden] { display: none; }
.tnp-rt-barra, .tnp-rt-activos { grid-column: 1 / -1; }
.tnp-recetario[data-vista="estante"] .tnp-rt-barra,
.tnp-recetario[data-vista="estante"] .tnp-rt-activos { display: none; }
.tnp-rt-barra { display: flex; gap: 8px; }
.tnp-rt-boton {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; max-width: 62%;
	border: 1.5px solid var(--tnp-borde); border-radius: 999px; background: var(--tnp-superficie);
	color: var(--tnp-texto); font: 500 15px/1 var(--tnp-font); cursor: pointer; white-space: nowrap;
}
.tnp-rt-boton span { overflow: hidden; text-overflow: ellipsis; }
.tnp-rt-boton:hover { border-color: var(--tnp-verde); color: var(--tnp-verde); }
.tnp-rt-n {
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tnp-verde); color: #fff;
	font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.tnp-rt-n[hidden] { display: none; }
.tnp-rt-activos {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--tnp-rt-hueco)); padding: 0 var(--tnp-rt-hueco);
}
.tnp-rt-activos::-webkit-scrollbar { display: none; }
.tnp-rt-activos[hidden], .tnp-rt-activos:empty { display: none; }
.tnp-rt-chip {
	flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
	border: 0; border-radius: 999px; background: var(--tnp-menta); color: var(--tnp-verde);
	font: 500 14px/1 var(--tnp-font); cursor: pointer; white-space: nowrap;
}
.tnp-rt-chip.is-col { background: var(--tnp-verde); color: #fff; }
.tnp-rt-chip.is-borrar { background: transparent; text-decoration: underline; text-underline-offset: 3px; }

/* En la rejilla, la cabecera se queda arriba al bajar. */
.tnp-recetario[data-vista="lista"] .tnp-rt-cab {
	position: sticky; top: var(--tnp-rt-arriba);
	margin: 0 calc(-1 * var(--tnp-rt-hueco)); padding-inline: var(--tnp-rt-hueco);
	border-bottom: 1px solid transparent;
}
.tnp-recetario[data-vista="lista"] .tnp-rt-volver + .tnp-rt-busca { grid-column: auto; }

/* ---------- Sugerencias del buscador ---------- */
.tnp-rt-sug {
	margin: -4px 0 16px; padding: 8px; border-radius: 16px; background: var(--tnp-superficie);
	border: 1px solid var(--tnp-borde); box-shadow: var(--tnp-sombra-elevada); display: grid; gap: 2px;
}
.tnp-rt-sug[hidden] { display: none; }
.tnp-rt-sug-tit { margin: 8px 8px 4px; font-size: 13px; font-weight: 600; color: var(--tnp-texto-suave); text-transform: uppercase; letter-spacing: .04em; }
.tnp-rt-sug-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 8px; }
.tnp-rt-sug-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
	border: 1.5px solid var(--tnp-borde); background: var(--tnp-superficie); color: var(--tnp-texto); font: 500 15px/1 var(--tnp-font); cursor: pointer;
}
.tnp-rt-sug-chip svg { color: var(--tnp-texto-suave); }
.tnp-rt-sug-receta, .tnp-rt-sug-cat, .tnp-rt-sug-todas {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 8px; border: 0;
	border-radius: 12px; background: transparent; color: var(--tnp-texto); font: 400 15px/1.3 var(--tnp-font); text-align: left; cursor: pointer;
}
.tnp-rt-sug-receta:hover, .tnp-rt-sug-cat:hover, .tnp-rt-sug-todas:hover { background: var(--tnp-crema); }
.tnp-rt-sug-receta img, .tnp-rt-sug-receta .tnp-rc-sinfoto { flex: none; width: 48px; height: 40px; border-radius: 8px; object-fit: cover; }
.tnp-rt-sug-receta > span { display: grid; min-width: 0; }
.tnp-rt-sug-nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnp-rt-sug-dato { font-size: 13px; color: var(--tnp-texto-suave); }
.tnp-rt-sug-cat svg { flex: none; color: var(--tnp-texto-suave); margin: 0 15px; }
.tnp-rt-sug-cat span:not(.tnp-rt-sug-n) { flex: 1; }
.tnp-rt-sug-n { font-size: 13px; color: var(--tnp-texto-suave); }
.tnp-rt-sug-todas { color: var(--tnp-verde); font-weight: 600; justify-content: center; border-top: 1px solid var(--tnp-borde); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* ---------- Estantería ---------- */
.tnp-rt-estante[hidden], .tnp-rt-lista[hidden] { display: none; }
.tnp-rt-cifra { margin: 0 0 14px; font-size: 15px; color: var(--tnp-texto-suave); }
.tnp-rt-cifra strong { color: var(--tnp-texto); }
.tnp-rt-cifra a { color: var(--tnp-verde); font-weight: 600; white-space: nowrap; }
.tnp-rt-atajos {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--tnp-rt-hueco)) 8px; padding: 0 var(--tnp-rt-hueco) 4px;
}
.tnp-rt-atajos::-webkit-scrollbar { display: none; }
.tnp-rt-atajo {
	flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--tnp-borde);
	background: var(--tnp-superficie); color: var(--tnp-texto); font: 500 15px/1 var(--tnp-font); cursor: pointer; white-space: nowrap;
}
.tnp-rt-atajo:hover { border-color: var(--tnp-verde); color: var(--tnp-verde); }
.tnp-rt-fila { margin: 20px 0 8px; }
.tnp-rt-fila-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.tnp-rt-fila-tit {
	margin: 0; font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600;
	font-size: 21px; line-height: 1.2; color: var(--tnp-texto); min-width: 0;
}
.tnp-rt-vertodas {
	flex: none; border: 0; background: transparent; padding: 8px 0; min-height: 40px; color: var(--tnp-verde);
	font: 600 15px/1 var(--tnp-font); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.tnp-rt-vertodas-n { font-weight: 400; color: var(--tnp-texto-suave); }
.tnp-rt-pista-caja { position: relative; }
.tnp-rt-pista {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: 0 calc(-1 * var(--tnp-rt-hueco)); padding: 2px var(--tnp-rt-hueco) 6px; scroll-padding-inline: var(--tnp-rt-hueco);
	overscroll-behavior-x: contain;
}
.tnp-rt-pista::-webkit-scrollbar { display: none; }
.tnp-rt-pista > .tnp-rc { flex: 0 0 42%; scroll-snap-align: start; }
@media (min-width: 600px) { .tnp-rt-pista > .tnp-rc { flex-basis: 200px; } }
@media (min-width: 1000px) { .tnp-rt-pista > .tnp-rc { flex-basis: 215px; } }
.tnp-rc-mas button {
	width: 100%; aspect-ratio: 4 / 3; border: 1.5px dashed var(--tnp-borde); border-radius: 14px; background: transparent;
	color: var(--tnp-verde); font: 600 15px/1.2 var(--tnp-font); display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.tnp-rt-flecha {
	display: none; position: absolute; top: calc(50% - 40px); z-index: 2; width: 40px; height: 40px; border-radius: 999px;
	border: 0; background: var(--tnp-superficie); color: var(--tnp-texto); box-shadow: var(--tnp-sombra-elevada); cursor: pointer;
	align-items: center; justify-content: center;
}
.tnp-rt-flecha.is-izq { left: -8px; }
.tnp-rt-flecha.is-der { right: -8px; }
@media (hover: hover) and (pointer: fine) {
	.tnp-rt-pista-caja.hay-izq .tnp-rt-flecha.is-izq, .tnp-rt-pista-caja.hay-der .tnp-rt-flecha.is-der { display: inline-flex; }
}
.tnp-rt-todas { margin: 28px 0 8px; text-align: center; }
.tnp-rt-aviso { padding: 32px 0; text-align: center; color: var(--tnp-texto-suave); display: grid; gap: 12px; justify-items: center; }
.tnp-rt-aviso p { margin: 0; }

/* Esqueleto mientras llega el índice */
.tnp-rt-esqueleto { display: grid; gap: 12px; padding-top: 4px; }
.tnp-rt-esqueleto span, .tnp-rt-esqueleto i, .tnp-ficha-cargando span {
	display: block; border-radius: 12px;
	background: linear-gradient(90deg, #EFE9E0 0%, #F7F2EB 50%, #EFE9E0 100%); background-size: 200% 100%;
	animation: tnp-rt-brillo 1.2s ease-in-out infinite;
}
.tnp-rt-esq-chips { height: 40px; width: 90%; border-radius: 999px !important; }
.tnp-rt-esq-tit { height: 22px; width: 45%; margin-top: 12px; }
.tnp-rt-esq-fila { display: flex !important; gap: 12px; background: none !important; animation: none !important; overflow: hidden; }
.tnp-rt-esq-fila i { flex: 0 0 42%; aspect-ratio: 4 / 3.6; }
@keyframes tnp-rt-brillo { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .tnp-rt-esqueleto span, .tnp-rt-esqueleto i, .tnp-ficha-cargando span { animation: none; } }

/* ---------- Tarjeta ---------- */
.tnp-rc { position: relative; min-width: 0; }
.tnp-rc-enlace { display: grid; gap: 4px; color: var(--tnp-texto); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tnp-rc-enlace:hover .tnp-rc-tit { color: var(--tnp-verde); }
.tnp-rc-enlace:focus-visible { outline: none; }
.tnp-rc-enlace:focus-visible .tnp-rc-foto { outline: 2px solid var(--tnp-verde); outline-offset: 2px; }
.tnp-rc-foto {
	position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--tnp-menta); margin-bottom: 4px;
}
.tnp-rc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tnp-rc-enlace:active .tnp-rc-foto img { transform: scale(0.98); }
.tnp-rc-sinfoto {
	display: block; width: 100%; height: 100%;
	background: var(--tnp-menta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%232F5D50' stroke-opacity='.45' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M3 11h18a9 9 0 0 1-18 0zM7 7c0-2 2-2 2-4M12 7c0-2 2-2 2-4M17 7c0-2 2-2 2-4'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.tnp-rc-marcas { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 52px); }
.tnp-rc-marca {
	padding: 4px 8px; border-radius: 999px; font: 600 12px/1.2 var(--tnp-font); background: rgba(255, 255, 255, 0.94); color: var(--tnp-verde);
	box-shadow: 0 1px 2px rgba(31, 42, 38, 0.12);
}
.tnp-rc-marca.is-plan { background: var(--tnp-verde); color: #fff; }
.tnp-rc-marca.is-nueva { color: var(--tnp-terracota); }
.tnp-rc-tit {
	font: 600 15px/1.3 var(--tnp-font); color: inherit;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty;
}
.tnp-rc-version { font-size: 13px; font-weight: 500; color: var(--tnp-verde); }
.tnp-rc-dato { font-size: 14px; color: var(--tnp-texto-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnp-rc-dato.is-aviso { color: var(--tnp-terracota); font-weight: 500; }
.tnp-rc-guardar {
	position: absolute; top: 6px; right: 6px; z-index: 1; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, 0.92); color: var(--tnp-texto); display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; box-shadow: 0 1px 3px rgba(31, 42, 38, 0.16); -webkit-tap-highlight-color: transparent;
}
.tnp-rc-guardar.is-on { color: var(--tnp-verde); }
.tnp-rc-guardar.is-on svg { fill: currentColor; }
.tnp-rc-guardar:focus-visible { outline: 2px solid var(--tnp-verde); outline-offset: 2px; }
.tnp-rc.is-grande .tnp-rc-tit { font-size: 15px; }

/* ---------- Rejilla ---------- */
.tnp-rt-cuenta { margin: 4px 0 12px; font-size: 14px; color: var(--tnp-texto-suave); min-height: 1em; }
.tnp-rt-cuenta:empty { display: none; }
.tnp-rt-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 600px) { .tnp-rt-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 1100px) { .tnp-receta-pag .tnp-rt-rejilla, .pag-cuerpo .tnp-rt-rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tnp-rt-centinela { height: 1px; }
.tnp-rt-vacio { padding: 8px 0 0; }
.tnp-rt-vacio[hidden] { display: none; }
.tnp-rt-vacio-tit { margin: 8px 0 12px; font-size: 17px; font-weight: 600; }
.tnp-rt-alts { display: grid; gap: 8px; margin: 0 0 28px; justify-items: start; }
.tnp-rt-alt {
	min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--tnp-verde); background: transparent;
	color: var(--tnp-verde); font: 500 15px/1.2 var(--tnp-font); cursor: pointer; text-align: left;
}
.tnp-rt-vacio .tnp-rt-fila-tit { margin-bottom: 12px; }
.tnp-rt-sinjs { columns: 2; padding-left: 18px; }

/* ---------- Hoja que sube desde abajo ---------- */
.tnp-hoja-capa { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; }
.tnp-hoja-velo { position: absolute; inset: 0; background: rgba(31, 42, 38, 0.42); opacity: 0; transition: opacity .22s ease; }
.tnp-hoja {
	position: relative; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
	background: var(--tnp-superficie); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(31, 42, 38, 0.18);
	transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tnp-hoja-capa.is-abierta .tnp-hoja-velo { opacity: 1; }
.tnp-hoja-capa.is-abierta .tnp-hoja { transform: none; }
.tnp-hoja-asa { width: 40px; height: 4px; border-radius: 4px; background: var(--tnp-borde); margin: 8px auto 0; flex: none; }
.tnp-hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 4px 20px; flex: none; }
.tnp-hoja-tit { margin: 0; font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; font-size: 21px; color: var(--tnp-texto); }
.tnp-hoja-x { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--tnp-texto); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tnp-hoja-x:hover { background: var(--tnp-menta); }
.tnp-hoja-cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.tnp-hoja-pie {
	flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 20px 16px; border-top: 1px solid var(--tnp-borde); background: var(--tnp-superficie);
}
.tnp-hoja-pie .tnp-btn { flex: 1; max-width: 280px; }
.tnp-hoja-cargando { color: var(--tnp-texto-suave); }
@media (min-width: 640px) {
	.tnp-hoja-capa { align-items: center; }
	.tnp-hoja { border-radius: 20px; max-height: 80vh; }
	.tnp-hoja-asa { display: none; }
	.tnp-hoja-cab { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tnp-hoja, .tnp-hoja-velo { transition: none; } }

/* Ordenar */
.tnp-rt-opciones { display: grid; }
.tnp-rt-opcion {
	display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border: 0;
	border-bottom: 1px solid var(--tnp-borde); background: transparent; color: var(--tnp-texto); font: 400 16px/1.2 var(--tnp-font); cursor: pointer; text-align: left;
}
.tnp-rt-opcion:last-child { border-bottom: 0; }
.tnp-rt-opcion svg { color: var(--tnp-verde); visibility: hidden; }
.tnp-rt-opcion[aria-checked="true"] { font-weight: 600; color: var(--tnp-verde); }
.tnp-rt-opcion[aria-checked="true"] svg { visibility: visible; }

/* Filtros */
.tnp-rt-grupo { border-bottom: 1px solid var(--tnp-borde); }
.tnp-rt-grupo:last-child { border-bottom: 0; }
.tnp-rt-grupo summary {
	display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; list-style: none; font: 600 16px/1.2 var(--tnp-font); color: var(--tnp-texto);
}
.tnp-rt-grupo summary::-webkit-details-marker { display: none; }
.tnp-rt-grupo summary::after {
	content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid var(--tnp-texto-suave); border-bottom: 1.5px solid var(--tnp-texto-suave);
	transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.tnp-rt-grupo[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.tnp-rt-grupo-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tnp-verde); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tnp-rt-grupo-ops { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px; }
.tnp-rt-op {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
	border: 1.5px solid var(--tnp-borde); background: var(--tnp-superficie); color: var(--tnp-texto); font: 500 15px/1.1 var(--tnp-font); cursor: pointer;
}
.tnp-rt-op[aria-pressed="true"] { background: var(--tnp-verde); border-color: var(--tnp-verde); color: #fff; }
.tnp-rt-op:disabled { opacity: .45; cursor: default; }
.tnp-rt-op-n { font-size: 13px; font-weight: 400; color: var(--tnp-texto-suave); }
.tnp-rt-borrar-filtros { border: 0; background: transparent; color: var(--tnp-verde); font: 600 15px/1 var(--tnp-font); padding: 12px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tnp-rt-borrar-filtros:disabled { color: var(--tnp-texto-suave); text-decoration: none; cursor: default; }

/* ---------- Ficha: arriba (versiones, acciones, me gusta) ---------- */
.tnp-recipe-detail .tnp-recipe-vers {
	flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px 0 12px; padding: 4px; gap: 4px;
	background: var(--tnp-crema); border-radius: 999px; width: max-content; max-width: 100%;
}
.tnp-recipe-detail .tnp-recipe-vers::-webkit-scrollbar { display: none; }
.tnp-recipe-detail .tnp-recipe-vers-btn {
	flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
	color: var(--tnp-texto); font: 500 14px/1 var(--tnp-font); white-space: nowrap; cursor: pointer;
}
.tnp-recipe-detail .tnp-recipe-vers-btn[aria-pressed="true"] { background: var(--tnp-superficie); color: var(--tnp-verde); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 42, 38, 0.14); border-color: transparent; }
.tnp-recipe-detail .tnp-recipe-detail-meta { font-size: 15px; margin: 0 0 14px; }
.tnp-ficha-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tnp-ficha-acciones .tnp-btn { gap: 6px; white-space: nowrap; }
.tnp-ficha-acciones .tnp-ficha-cocinar { flex: 1 1 auto; max-width: 260px; }
.tnp-recipe-detail-body > .tnp-receta-gusto {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; padding: 10px 12px; border-radius: 14px;
}
.tnp-recipe-detail-body > .tnp-receta-gusto .tnp-receta-gusto-tit { margin: 0; font-size: 15px; flex: 1 1 auto; }
.tnp-recipe-detail-body > .tnp-receta-gusto .tnp-receta-gusto-btns { gap: 6px; }
.tnp-recipe-detail-body > .tnp-receta-gusto .tnp-gusto-btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.tnp-recipe-detail-body > .tnp-receta-gusto .tnp-receta-gusto-ing,
.tnp-recipe-detail-body > .tnp-receta-gusto .tnp-receta-gusto-ok { flex-basis: 100%; margin-top: 4px; }

/* Asa para cerrar deslizando (solo móvil) */
.tnp-modal-asa { display: none; }
@media (max-width: 600px) {
	.tnp-modal-asa {
		display: block; position: sticky; top: 0; z-index: 4; height: 0; pointer-events: none;
	}
	.tnp-modal-asa::before {
		content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px;
		border-radius: 4px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(31, 42, 38, 0.12);
	}
	.tnp-recetas-modal-panel { overscroll-behavior: contain; }
}

/* Ficha mientras carga */
.tnp-ficha-cargando { display: grid; gap: 12px; padding: 0 0 28px; }
.tnp-ficha-cargando-foto { aspect-ratio: 16 / 10; max-height: 320px; border-radius: 0 !important; }
.tnp-ficha-cargando-tit { height: 28px; width: 70%; margin: 8px 24px 0; }
.tnp-ficha-cargando-lin { height: 16px; width: 45%; margin: 0 24px; }
.tnp-ficha-error { padding: 64px 24px 32px; margin: 0; }

/* Ficha Premium para quien no está suscrito (R5) */
.tnp-ficha-previa .tnp-recipe-detail-body { padding-top: 20px; }
.tnp-ficha-previa.sin-foto .tnp-recipe-detail-body { padding-top: 64px; }
.tnp-recipe-locked.tnp-ficha-previa { padding: 0; text-align: left; }
.tnp-previa-lista { list-style: none; margin: 0; padding: 0; position: relative; filter: blur(2.5px); opacity: .8; }
.tnp-previa-lista li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--tnp-borde); }
.tnp-previa-lista i { display: block; height: 12px; border-radius: 6px; background: #E3DCD1; }
.tnp-previa-lista i:first-child { background: #CFC6B8; }
.tnp-previa-cta {
	position: relative; margin: -56px 0 0; padding: 72px 4px 4px; text-align: center; display: grid; gap: 10px; justify-items: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--tnp-superficie) 46%);
}
.tnp-previa-cta p { margin: 0; max-width: 40ch; }
.tnp-previa-tit { font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--tnp-texto); }
.tnp-previa-ya { font-size: 15px; color: var(--tnp-texto-suave); }
.tnp-previa-ya a { color: var(--tnp-verde); font-weight: 600; }

/* ---------- Modo cocina ---------- */
.tnp-cocina {
	position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: var(--tnp-crema); color: var(--tnp-texto);
	padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); opacity: 0; transform: translateY(16px);
	transition: opacity .2s ease, transform .2s ease;
}
.tnp-cocina.is-abierta { opacity: 1; transform: none; }
.tnp-cocina-cab { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; flex: none; }
.tnp-cocina-x { width: 48px; height: 48px; border: 0; border-radius: 999px; background: transparent; color: var(--tnp-texto); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tnp-cocina-cab-txt { flex: 1; min-width: 0; }
.tnp-cocina-receta { margin: 0; font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnp-cocina-luz { margin: 0; font-size: 13px; color: var(--tnp-exito); }
.tnp-cocina-luz[hidden] { display: none; }
.tnp-cocina-reloj {
	flex: none; min-width: 72px; padding: 8px 12px; border-radius: 999px; background: var(--tnp-verde); color: #fff;
	font: 600 17px/1 var(--tnp-font); font-variant-numeric: tabular-nums; text-align: center;
}
.tnp-cocina-reloj[hidden] { display: none; }
.tnp-cocina-reloj.is-fin { background: var(--tnp-ambar); animation: tnp-cocina-latido 1s ease-in-out infinite; }
@keyframes tnp-cocina-latido { 50% { transform: scale(1.06); } }
.tnp-cocina-prog { height: 4px; background: var(--tnp-borde); flex: none; }
.tnp-cocina-prog span { display: block; height: 100%; width: 0; background: var(--tnp-verde); transition: width .25s ease; }
.tnp-cocina-cuerpo { flex: 1 1 auto; overflow-y: auto; padding: 24px 20px; max-width: 680px; width: 100%; margin: 0 auto; }
.tnp-cocina-n { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--tnp-verde); text-transform: uppercase; letter-spacing: .05em; }
.tnp-cocina-texto { margin: 0 0 24px; font-size: 24px; line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.tnp-cocina-texto.is-intro { font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; }
.tnp-cocina-sub { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--tnp-texto-suave); }
.tnp-cocina-ings { padding: 14px 16px; border-radius: 14px; background: var(--tnp-superficie); margin: 0 0 20px; }
.tnp-cocina-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 18px; line-height: 1.35; }
.tnp-cocina-lista li { padding-left: 18px; position: relative; }
.tnp-cocina-lista li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 999px; background: var(--tnp-ambar); }
.tnp-cocina-temp {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px;
	border: 1.5px solid var(--tnp-verde); background: var(--tnp-superficie); color: var(--tnp-verde); font: 600 17px/1 var(--tnp-font); cursor: pointer;
}
.tnp-cocina-temp.is-on { background: var(--tnp-verde); color: #fff; }
.tnp-cocina-pie { display: flex; gap: 12px; padding: 12px 20px 16px; flex: none; max-width: 680px; width: 100%; margin: 0 auto; }
.tnp-cocina-pie .tnp-btn { flex: 1; min-height: 56px; font-size: 17px; }
.tnp-cocina-pie .tnp-btn-primary { flex: 2; }
.tnp-cocina-pie .tnp-btn:disabled { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .tnp-cocina, .tnp-cocina-prog span { transition: none; } .tnp-cocina-reloj.is-fin { animation: none; } }

/* ---------- Ponerla en mi plan ---------- */
.tnp-aplan-intro { margin: 0 0 14px; font-size: 15px; color: var(--tnp-texto-suave); }
.tnp-aplan-intro strong { color: var(--tnp-texto); }
.tnp-aplan-dias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 12px; padding: 0 20px 4px; }
.tnp-aplan-dias::-webkit-scrollbar { display: none; }
.tnp-chip-dia {
	flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--tnp-borde); background: var(--tnp-superficie);
	color: var(--tnp-texto); font: 500 15px/1 var(--tnp-font); cursor: pointer;
}
.tnp-chip-dia[aria-pressed="true"] { background: var(--tnp-verde); border-color: var(--tnp-verde); color: #fff; }
.tnp-aplan-comidas { list-style: none; margin: 0; padding: 0; }
.tnp-aplan-comidas li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tnp-borde); }
.tnp-aplan-comidas li:last-child { border-bottom: 0; }
.tnp-aplan-comidas div { min-width: 0; }
.tnp-aplan-comida { margin: 0; font-weight: 600; }
.tnp-aplan-ahora { margin: 2px 0 0; font-size: 14px; color: var(--tnp-texto-suave); overflow: hidden; text-overflow: ellipsis; }
.tnp-aplan-estado { margin: 12px 0 0; color: var(--tnp-error); font-size: 15px; }
.tnp-aplan-estado[hidden] { display: none; }
.tnp-aplan-hecho { display: grid; gap: 8px; justify-items: start; padding: 4px 0 8px; }
.tnp-aplan-hecho p { margin: 0; }
.tnp-aplan-hecho-tit { font-weight: 600; font-size: 17px; color: var(--tnp-verde); }
.tnp-aplan-hecho .tnp-btn { margin-top: 8px; }

/* ---------- Página de cada receta (R6) ---------- */
.wrap.tnp-receta-pag-wrap { max-width: 760px; padding-bottom: 48px; }
.tnp-migas { padding: 16px 0 8px; }
.tnp-migas a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--tnp-verde); font-weight: 500; text-decoration: none; margin-left: -6px; }
.tnp-receta-pag-ficha { background: var(--tnp-superficie); border-radius: 20px; overflow: hidden; box-shadow: var(--tnp-sombra); }
.tnp-receta-pag-ficha .tnp-recipe-detail-actions { position: absolute; top: 12px; right: 12px; margin: 0; }
.tnp-receta-pag-ficha .tnp-recipe-detail-img { max-height: 420px; }
.tnp-receta-pag-ficha .tnp-recipe-detail h2 { font-size: 30px; }
@media (max-width: 600px) {
	.wrap.tnp-receta-pag-wrap { padding-inline: 0; }
	.tnp-migas { padding-inline: var(--gutter, 16px); }
	.tnp-receta-pag-ficha { border-radius: 0; box-shadow: none; }
	.tnp-receta-pag-ficha .tnp-recipe-detail h2 { font-size: 26px; }
	.tnp-receta-pag-cta, .tnp-receta-pag-mas { margin-inline: var(--gutter, 16px); }
}
.tnp-receta-pag-cta { margin: 24px 0 0; padding: 24px; border-radius: 20px; background: var(--tnp-menta); display: grid; gap: 10px; justify-items: start; }
.tnp-receta-pag-cta p { margin: 0; }
.tnp-receta-pag-cta-tit { font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; font-size: 21px; line-height: 1.25; }
.tnp-receta-pag-mas { margin-top: 36px; }
.tnp-receta-pag-mas .tnp-rt-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .tnp-receta-pag-mas .tnp-rt-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* El recetario en la web pública (/recetas/) */
.pag-cuerpo .tnp-recetario { --tnp-rt-hueco: var(--gutter, 16px); }
