/* ==========================================================================
   1.61.0 · Temporada (rediseño de las herramientas, tableros T0–T2).
   Un mes (ilustración de la estación, el mes entre flechas, pestañas, «Llega
   ahora», «En su mejor momento», «Se despiden» y «Para cocinar en <mes>») y la
   ficha de cada producto (dibujo grande, su temporada en doce meses, cómo
   elegirlo y guardarlo, los atajos y sus recetas). Clases .tnp-tp-* (TNP_Temporada).
   Se carga con tnp-public.css (los tokens --tnp-*) en la web y en la app.
   Colores fijos solo para lo propio de la temporada (cálido, ámbar claro, gris cálido).
   ========================================================================== */
.tnp-tp { max-width: 720px; margin: 0 auto; font-family: var(--tnp-font); color: var(--tnp-texto); display: flex; flex-direction: column; gap: 22px; }
.tnp-tp > * { margin: 0; }
.tnp-tp [hidden] { display: none !important; }
.tnp-tp svg { flex: none; }
.tnp-tp .ic-l, .tnp-tp-volver svg, .tnp-tp-flecha svg, .tnp-tp-compartir svg, .tnp-tp-chip svg, .tnp-tp-como-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tnp-tp ul { list-style: none; margin: 0; padding: 0; }
.tnp-tp li { margin: 0; }
.tnp-tp p { margin: 0; }
.tnp-tp a { text-decoration: none; }
/* En la web, la herramienta pinta su cabecera: el cuerpo empieza más arriba. */
.pag-cuerpo.herramienta-sola { padding-top: 20px; }
@media (min-width: 768px) { .pag-cuerpo.herramienta-sola { padding-top: 32px; } }

/* ---------- Cabecera: «‹ Herramientas» / «‹ Noviembre» y «Compartir» ---------- */
.tnp-tp-miga, .tnp-tp-cabficha { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: -6px 0 -10px; }
.tnp-tp-volver { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -8px; padding: 0 12px 0 6px; border-radius: 999px; color: var(--tnp-verde); font-size: 15px; font-weight: 600; line-height: 1.2; }
.tnp-tp-volver:hover { background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-volver:focus-visible, .tnp-tp-flecha:focus-visible, .tnp-tp-compartir:focus-visible, .tnp-tp-tab:focus-visible, .tnp-tp-prod-a:focus-visible, .tnp-tp-rc:focus-visible, .tnp-tp-chip:focus-visible, .tnp-tp-btn:focus-visible, .tnp-tp-mas:focus-visible { outline: 2px solid var(--tnp-verde); outline-offset: 2px; }
.tnp-tp-compartir { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: -8px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--tnp-verde); font: 600 15px/1.2 var(--tnp-font); cursor: pointer; }
.tnp-tp-compartir:hover { background: var(--tnp-menta); }
.tnp-tp-copiado { margin: -16px 0 -8px !important; font-size: 14px; color: var(--tnp-texto-suave); text-align: right; }
.tnp-tp-copiado:empty { display: none; }

/* ---------- T1 · La ilustración de la estación y el mes ---------- */
.tnp-tp-ilus { position: relative; height: 160px; border-radius: 20px; overflow: hidden; background: var(--tnp-menta); }
.tnp-tp-ilus .ilus { display: block; width: 100%; height: 100%; }
.tnp-tp-pill { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--tnp-crema); color: var(--tnp-terracota); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.tnp-tp-cabmes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }
.tnp-tp-flecha { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1.5px solid var(--tnp-borde); border-radius: 999px; background: var(--tnp-superficie); color: var(--tnp-texto); }
.tnp-tp-flecha:hover { border-color: var(--tnp-verde); color: var(--tnp-verde); }
.tnp-tp-h1 { margin: 0; font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; color: var(--tnp-texto); text-align: center; text-wrap: balance; }
.tnp-tp-h1.is-ficha { font-size: 38px; text-align: left; margin-top: -4px; }
.tnp-tp-h2 { margin: 0; font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--tnp-texto); }
.tnp-tp-h3 { margin: 0; font-family: var(--tnp-font); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--tnp-texto); }
.tnp-tp-etq { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tnp-texto-suave); }

/* Pestañas Todo / Frutas / Verduras */
.tnp-tp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 999px; background: #F2ECE3; }
.tnp-tp-tab { min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--tnp-texto-suave); font: 500 15px/1.2 var(--tnp-font); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.tnp-tp-tab[aria-selected="true"] { background: var(--tnp-superficie); color: var(--tnp-texto); font-weight: 600; box-shadow: var(--tnp-sombra); }
.tnp-tp-tab:hover { color: var(--tnp-texto); }

/* Secciones y rejillas de productos */
.tnp-tp-cuerpo { display: flex; flex-direction: column; gap: 22px; }
.tnp-tp-sec { display: flex; flex-direction: column; gap: 12px; }
.tnp-tp-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tnp-tp-rejilla.is-vertical { gap: 12px; }
.tnp-tp-prod { min-width: 0; }
.tnp-tp-prod-a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px; box-sizing: border-box; border-radius: 16px; background: var(--tnp-superficie); box-shadow: var(--tnp-sombra); color: var(--tnp-texto); transition: box-shadow .15s, transform .15s; }
.tnp-tp-prod-a:hover { box-shadow: var(--tnp-sombra-elevada); transform: translateY(-1px); color: var(--tnp-texto); }
.tnp-tp-circulo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 999px; background: var(--tnp-menta); }
.tnp-tp-circulo.is-calido { background: #F6E7D6; }
.tnp-tp-circulo .dib-temp { width: 44px; height: 44px; }
.tnp-tp-prod-txt { display: grid; gap: 2px; min-width: 0; }
.tnp-tp-prod-n { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tnp-tp-prod-m { font-size: 13px; line-height: 1.35; color: var(--tnp-texto-suave); }
.tnp-tp-prod-m.is-fin { color: var(--tnp-terracota); font-weight: 500; }
.tnp-tp-prod-plan { justify-self: start; margin-top: 2px; padding: 2px 6px; border-radius: 8px; background: var(--tnp-menta); color: var(--tnp-verde); font-size: 10px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.tnp-tp-prod.is-vertical .tnp-tp-prod-plan { justify-self: center; }
/* «Llega ahora»: tarjetas verticales, con el dibujo grande. */
.tnp-tp-prod.is-vertical .tnp-tp-prod-a { flex-direction: column; justify-content: flex-start; gap: 12px; padding: 18px 12px 16px; text-align: center; }
.tnp-tp-prod.is-vertical .tnp-tp-circulo { width: 92px; height: 92px; }
.tnp-tp-prod.is-vertical .tnp-tp-circulo .dib-temp { width: 68px; height: 68px; }
.tnp-tp-prod.is-vertical .tnp-tp-prod-txt { justify-items: center; }
.tnp-tp-prod.is-vertical .tnp-tp-prod-n { font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.tnp-tp-centro { text-align: center; }
.tnp-tp-mas { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--tnp-verde); font: 600 15px/1.2 var(--tnp-font); cursor: pointer; }
.tnp-tp-mas:hover { background: var(--tnp-menta); }
.tnp-tp-vacio { font-size: 15px; line-height: 1.5; color: var(--tnp-texto-suave); }

/* Recetas: foto, «Libre» / «Premium», nombre y «Coliflor · 30 min». */
.tnp-tp-rc-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tnp-tp-rc-n { font-size: 15px; font-weight: 500; color: var(--tnp-texto-suave); font-variant-numeric: tabular-nums; }
.tnp-tp-rc-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.tnp-tp-rc-item { min-width: 0; }
.tnp-tp-rc { display: grid; gap: 6px; height: 100%; color: var(--tnp-texto); border-radius: 12px; }
.tnp-tp-rc:hover { color: var(--tnp-texto); }
.tnp-tp-rc:hover .tnp-tp-rc-tit { text-decoration: underline; text-underline-offset: 3px; }
.tnp-tp-rc-foto { position: relative; display: block; height: 104px; border-radius: 12px; overflow: hidden; background: var(--tnp-menta); }
.tnp-tp-rc-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tnp-tp-rc.is-bloq .tnp-tp-rc-foto img { opacity: .72; }
.tnp-tp-rc-foto img.is-rota { visibility: hidden; }
.tnp-tp-cuenco { display: block; width: 100%; height: 100%; background: var(--tnp-menta); }
.tnp-tp-rc-etq { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.tnp-tp-rc-etq.is-libre { background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-rc-etq.is-premium { background: var(--tnp-superficie); color: var(--tnp-terracota); }
.tnp-tp-rc-etq svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tnp-tp-rc-tit { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tnp-tp-rc-dato { font-size: 13px; line-height: 1.35; color: var(--tnp-texto-suave); }

/* Botones */
.tnp-tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px; box-sizing: border-box; border: 0; border-radius: 999px; background: var(--tnp-verde); color: #FFFFFF; font: 600 16px/1.2 var(--tnp-font); text-align: center; text-decoration: none; cursor: pointer; }
.tnp-tp-btn:hover { background: #274F44; color: #FFFFFF; }
.tnp-tp-btn.is-borde { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--tnp-verde); background: transparent; color: var(--tnp-verde); }
.tnp-tp-btn.is-borde:hover { background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-btn.is-texto { min-height: 44px; background: transparent; color: var(--tnp-verde); }
.tnp-tp-btn.is-texto:hover { background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-btn.is-ancho { width: 100%; }

/* El puente al test (solo sin plan). */
.tnp-tp-puente { display: grid; gap: 12px; padding: 28px 22px; border-radius: 20px; background: var(--tnp-menta); color: var(--tnp-texto); }
.tnp-tp-puente-tit { margin: 0; font-family: var(--tnp-display); font-variation-settings: "opsz" 32; font-weight: 600; font-size: 28px; line-height: 1.12; letter-spacing: -0.01em; color: var(--tnp-texto); }
.tnp-tp-puente p { font-size: 16px; line-height: 1.55; color: #3F5249; }
.tnp-tp-puente .tnp-tp-btn { margin-top: 4px; }
.tnp-tp-puente .tnp-tp-aval { text-align: center; font-size: 14px; }
.tnp-tp-nota { font-size: 13px; line-height: 1.5; color: var(--tnp-texto-suave); }

/* ---------- T2 · La ficha de un producto ---------- */
.tnp-tp-hero { position: relative; display: flex; align-items: center; justify-content: center; height: 210px; border-radius: 24px; overflow: hidden; background: var(--tnp-menta); }
.tnp-tp-hero.is-calido { background: #F6E7D6; }
.tnp-tp-hero-f1, .tnp-tp-hero-f2 { position: absolute; border-radius: 999px; background: rgba(255, 255, 255, 0.45); }
.tnp-tp-hero-f1 { width: 150px; height: 150px; right: -40px; top: -50px; }
.tnp-tp-hero-f2 { width: 110px; height: 110px; left: -30px; bottom: -40px; background: rgba(31, 42, 38, 0.05); }
.tnp-tp-hero .dib-temp { position: relative; width: 170px; height: 170px; }
.tnp-tp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -10px; }
.tnp-tp-pill-tipo, .tnp-tp-pill-estado { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 1.2; }
.tnp-tp-pill-tipo { background: #F2ECE3; color: var(--tnp-texto-suave); font-weight: 500; }
.tnp-tp-pill-estado { background: #F2ECE3; color: var(--tnp-texto-suave); font-weight: 600; }
.tnp-tp-pill-estado.is-ok { background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-pill-estado.is-fin { background: #F6E7D6; color: var(--tnp-terracota); }
.tnp-tp-tarjeta { padding: 16px; border-radius: 16px; background: var(--tnp-superficie); box-shadow: var(--tnp-sombra); }
.tnp-tp-temp { display: grid; gap: 12px; }
.tnp-tp-h2.is-temp { margin-top: -6px; }
.tnp-tp-tira { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; }
.tnp-tp-tira-mes { display: grid; gap: 4px; justify-items: center; align-content: end; min-width: 0; }
.tnp-tp-tira-ahora { min-height: 12px; font-size: 10px; font-weight: 600; line-height: 1.2; color: var(--tnp-terracota); white-space: nowrap; }
.tnp-tp-tira-barra { display: block; width: 100%; height: 20px; border-radius: 6px; background: #EFE8DE; }
.tnp-tp-tira-mes.is-on .tnp-tp-tira-barra { height: 44px; background: #F2C08F; }
.tnp-tp-tira-mes.is-on.is-hoy .tnp-tp-tira-barra { background: var(--tnp-ambar); }
.tnp-tp-tira-ini { font-size: 13px; line-height: 1.2; color: var(--tnp-texto-suave); }
.tnp-tp-tira-mes.is-on .tnp-tp-tira-ini { color: var(--tnp-texto); font-weight: 600; }
.tnp-tp-tira-mes.is-hoy .tnp-tp-tira-ini { color: var(--tnp-texto); font-weight: 700; }
.tnp-tp-leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--tnp-texto-suave); }
.tnp-tp-leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.tnp-tp-leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: #EFE8DE; }
.tnp-tp-leyenda i.is-on { background: #F2C08F; }
.tnp-tp-leyenda i.is-hoy { background: var(--tnp-ambar); }
.tnp-tp-enplan { padding-top: 10px; border-top: 1px solid var(--tnp-borde); font-size: 14px; line-height: 1.45; color: var(--tnp-texto); }
.tnp-tp-como { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tnp-tp-como-c { display: grid; gap: 6px; align-content: start; padding: 14px; }
.tnp-tp-como-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-como-ic svg { width: 18px; height: 18px; }
.tnp-tp-como-c p { font-size: 14px; line-height: 1.5; color: var(--tnp-texto-suave); }
.tnp-tp-aviso { margin-top: -8px !important; padding: 12px 14px; border-radius: 12px; background: #F6E7D6; color: var(--tnp-texto); font-size: 14px; line-height: 1.5; }
.tnp-tp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tnp-tp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1.5px solid var(--tnp-borde); border-radius: 999px; background: var(--tnp-superficie); color: var(--tnp-verde); font-size: 15px; font-weight: 600; line-height: 1.2; }
.tnp-tp-chip:hover { border-color: var(--tnp-verde); background: var(--tnp-menta); color: var(--tnp-verde); }
.tnp-tp-chip svg { width: 18px; height: 18px; }

/* La hoja «Recetario Premium» usa las clases de la hoja de la calculadora (tnp-public.css). */
.tnp-tp-hoja .tnp-k-premium svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tnp-tp-hoja .tnp-k-gris { font-size: 16px; line-height: 1.55; }

/* ---------- Ordenador ---------- */
@media (min-width: 600px) {
	.tnp-tp-rejilla, .tnp-tp-rc-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* «Llega ahora» enseña 4: dos filas de dos hasta que caben las cuatro en una. */
	.tnp-tp-rejilla.is-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tnp-tp-como { gap: 12px; }
}
@media (min-width: 768px) {
	.tnp-tp { gap: 26px; }
	.tnp-tp-ilus { height: 200px; }
	.tnp-tp-h1 { font-size: 44px; }
	.tnp-tp-h1.is-ficha { font-size: 46px; }
	.tnp-tp-h2 { font-size: 26px; }
	.tnp-tp-hero { height: 260px; }
	.tnp-tp-hero .dib-temp { width: 200px; height: 200px; }
	.tnp-tp-rejilla, .tnp-tp-rejilla.is-vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tnp-tp-rc-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
	.tnp-tp-rc-foto { height: 140px; }
	.tnp-tp-puente { padding: 32px; }
	.tnp-tp-puente .tnp-tp-btn { justify-self: start; min-width: 260px; }
	.tnp-tp-puente .tnp-tp-aval { text-align: left; }
	.tnp-tp-tira-barra { height: 24px; }
	.tnp-tp-tira-mes.is-on .tnp-tp-tira-barra { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.tnp-tp-tab, .tnp-tp-prod-a { transition: none; }
	.tnp-tp-prod-a:hover { transform: none; }
}
