/* Maqueta 23/10/2026: componentes nuevos de la home, la landing, /chefs y /quienes-somos.
   Solo usa los tokens de styles.css (colores, radios, tipografía). Todo va con prefijo tp-
   para poder integrarlo en styles.css sin pisar nada. */

/* ---------- Cómo funciona: capturas de la app + vídeo ---------- */
.tp-how { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; margin-top: clamp(48px, 6vw, 72px); }
.tp-app-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.tp-app-step { display: flex; flex-direction: column; gap: 10px; }
.tp-app-step img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 10px 28px rgba(31, 77, 58, .14); background: var(--white); }
.tp-app-step-head { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.tp-app-step-head .step-num { font-size: 30px; font-weight: 900; line-height: 1; color: var(--grn); }
.tp-app-step h3 { font-size: 16px; line-height: 1.25; }
.tp-app-step p { font-size: 14px; color: var(--ink2); margin: 0; }
.tp-video { display: flex; flex-direction: column; gap: 16px; }
.tp-video-frame { position: relative; border-radius: 12px; overflow: hidden; background: var(--grn-dk); box-shadow: 0 16px 40px rgba(31, 77, 58, .18); aspect-ratio: 16 / 9; }
.tp-video-frame video, .tp-video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-video-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tp-video-cap p { margin: 0; font-size: 15px; color: var(--mut); }

.tp-week { margin-top: clamp(48px, 6vw, 72px); background: var(--cream); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.tp-week-copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.tp-week-copy h3 { font-size: clamp(24px, 2.4vw, 32px); }
.tp-week-copy ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tp-week-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.tp-week-img { min-height: 320px; }
.tp-week-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Precios: ingredientes aparte bien integrado ---------- */
.tp-ing-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #FBE9DE; color: #9A4A1F; font-size: 13px; font-weight: 800; }
.tp-ing-pill .icon { width: 16px; height: 16px; }
.price-card-v9--dk .tp-ing-pill { background: rgba(255, 255, 255, .12); color: #FFE2D1; }
.tp-shop { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: center; }
.tp-shop-head { display: flex; gap: 16px; align-items: flex-start; }
.tp-shop-head h3 { font-size: 22px; margin-bottom: 6px; }
.tp-shop-head p { margin: 0; font-size: 15px; color: var(--mut); }
.tp-shop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: shop; }
.tp-shop-steps li { background: var(--warm-white); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tp-shop-steps li::before { counter-increment: shop; content: counter(shop); width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.tp-shop-steps strong { color: var(--grn-dk); font-size: 16px; }
.tp-shop-steps span { font-size: 14px; color: var(--ink2); }

/* ---------- Coste de la semana con la compra ---------- */
.tp-cost { margin-top: clamp(48px, 6vw, 72px); background: var(--grn); color: var(--on-dk); border-radius: 14px; padding: clamp(28px, 4vw, 48px); }
.tp-cost h2 { color: var(--white); font-size: clamp(26px, 2.8vw, 38px); }
.tp-cost-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; margin-bottom: 28px; }
.tp-cost-head p { margin: 0; color: var(--on-dk); font-size: 16px; }
.tp-cost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tp-cost-card { background: var(--white); color: var(--ink); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tp-cost-card .name { font-weight: 800; color: var(--grn-dk); font-size: 17px; }
.tp-cost-card .big { font-size: 30px; font-weight: 900; color: var(--grn); line-height: 1; letter-spacing: -.01em; }
.tp-cost-card .big small { display: block; font-size: 13px; font-weight: 700; color: var(--mut); margin-top: 6px; letter-spacing: 0; }
.tp-cost-sum { font-size: 13px; color: var(--mut); border-top: 1px solid var(--line); padding-top: 12px; display: grid; grid-template-columns: 1fr auto; row-gap: 4px; font-variant-numeric: tabular-nums; }
.tp-cost-sum b { color: var(--grn-dk); }
.tp-bars { display: flex; flex-direction: column; gap: 6px; }
.tp-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--mut); }
.tp-bar i { display: block; height: 8px; border-radius: 4px; background: var(--grn); }
.tp-bar--ext i { background: #D9CFC0; }
.tp-cost-foot { margin-top: 20px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--on-dk); }
.tp-cost-foot strong { color: var(--white); }

/* ---------- Lo que va con cada servicio ---------- */
.tp-perks { margin-top: clamp(48px, 6vw, 72px); }
.tp-perks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tp-perk { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tp-perk h3 { font-size: 16px; line-height: 1.3; }
.tp-perk p { margin: 0; font-size: 14px; color: var(--mut); }

/* ---------- ¿Qué es una ración? ---------- */
.tp-racion { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: center; }
.tp-racion-copy { display: flex; flex-direction: column; gap: 18px; }
.tp-racion-copy h2 { font-size: clamp(30px, 3.3vw, 48px); }
.tp-racion-copy p { margin: 0; font-size: 17px; color: var(--ink); }
.tp-racion-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.tp-racion-facts div { background: var(--cream); border-radius: 10px; padding: 16px; }
.tp-racion-facts b { display: block; font-size: 24px; font-weight: 900; color: var(--grn); line-height: 1.1; }
.tp-racion-facts span { font-size: 13px; color: var(--mut); font-weight: 700; }
.tp-racion-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-racion-card { background: var(--warm-white); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tp-racion-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.tp-racion-card div { padding: 16px 18px 18px; }
.tp-racion-card h3 { font-size: 18px; }
.tp-racion-card .cap { font-size: 14px; color: var(--grn); font-weight: 800; margin: 4px 0 0; }
.tp-racion-card .dim { font-size: 13px; color: var(--mut); margin: 2px 0 0; }

/* ---------- Tapperly Plus con tabla comparativa ---------- */
.tp-plus { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: center; }
.tp-plus-copy { display: flex; flex-direction: column; gap: 18px; }
.tp-plus-copy h2 { color: var(--white); font-size: clamp(30px, 3.3vw, 48px); }
.tp-plus-copy p { margin: 0; font-size: 17px; color: var(--on-dk); }
.tp-plus-price { font-size: 44px; font-weight: 900; color: var(--white); line-height: 1; }
.tp-plus-price small { font-size: 16px; font-weight: 700; color: var(--on-dk); }
.tp-cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 12px; overflow: hidden; font-size: 15px; color: var(--ink); }
.tp-cmp th, .tp-cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.tp-cmp tr:last-child td { border-bottom: 0; }
.tp-cmp th { font-size: 15px; font-weight: 800; color: var(--grn-dk); background: var(--white); }
.tp-cmp th small { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.tp-cmp th:first-child, .tp-cmp td:first-child { text-align: left; font-weight: 700; color: var(--grn-dk); }
.tp-cmp .is-plus { background: var(--grn-d); }
.tp-yes, .tp-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.tp-yes { background: var(--grn); color: var(--white); }
.tp-yes::before { content: ""; width: 10px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.tp-no { background: transparent; }
.tp-no::before { content: "—"; color: #C3B9AA; font-weight: 800; }
.tp-cmp .txt { font-size: 14px; font-weight: 800; color: var(--grn-dk); }

/* ---------- Tarjetas con foto ---------- */
.tp-photo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tp-photo-card { background: var(--white); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 22px rgba(31, 77, 58, .07); }
.tp-photo-card > img { width: 100%; height: 210px; object-fit: cover; display: block; }
.tp-photo-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.tp-photo-card-body .icon-tile { position: absolute; top: -28px; left: 24px; box-shadow: 0 4px 12px rgba(31, 77, 58, .12); }
.tp-photo-card-body h3 { font-size: 20px; margin-top: 18px; }
.tp-photo-card-body p { margin: 0; font-size: 15px; color: var(--ink2); }
.tp-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tp-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.tp-ticks li::before { content: ""; flex-shrink: 0; margin-top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Chefs ---------- */
.tp-chef-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tp-chef-value { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tp-chef-value h3 { color: var(--white); font-size: 19px; }
.tp-chef-value p { margin: 0; font-size: 15px; color: var(--on-dk); }
.tp-req { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tp-req li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tp-req h3 { font-size: 17px; }
.tp-req p { margin: 0; font-size: 14px; color: var(--mut); }
.tp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.tp-timeline::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--line-2); }
.tp-timeline li { position: relative; padding-right: 24px; display: flex; flex-direction: column; gap: 10px; }
.tp-timeline .n { width: 44px; height: 44px; border-radius: 50%; background: var(--grn); color: var(--white); display: grid; place-items: center; font-weight: 900; font-size: 18px; position: relative; }
.tp-timeline h3 { font-size: 17px; margin-top: 6px; }
.tp-timeline p { margin: 0; font-size: 14px; color: var(--mut); }

@media (max-width: 960px) {
  .tp-how, .tp-week, .tp-shop, .tp-cost-head, .tp-racion, .tp-plus { grid-template-columns: minmax(0, 1fr); }
  .tp-app-steps, .tp-cost-grid, .tp-perks-grid, .tp-chef-values, .tp-req { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-shop-steps, .tp-photo-cards { grid-template-columns: minmax(0, 1fr); }
  .tp-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .tp-timeline::before { display: none; }
  .tp-week-img { min-height: 220px; order: -1; }
}
@media (max-width: 600px) {
  .tp-cost-grid, .tp-perks-grid, .tp-chef-values, .tp-req, .tp-racion-cards, .tp-timeline { grid-template-columns: minmax(0, 1fr); }
  .tp-app-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-cmp th, .tp-cmp td { padding: 11px 10px; font-size: 14px; }
}

/* ---------- Ronda 2 (comentarios 23/10 tarde) ---------- */
.tp-app-steps--wide { margin-top: clamp(48px, 6vw, 72px); gap: var(--gutter); }
.tp-app-steps--wide .tp-app-step img { max-width: 230px; margin-inline: auto; }
.tp-app-steps--wide .tp-app-step h3 { font-size: 19px; }
.tp-app-steps--wide .tp-app-step p { font-size: 15px; }
.tp-app-steps--wide .tp-app-step-head .step-num { font-size: 40px; }
.tp-week-img { display: flex; align-items: center; justify-content: center; background: #F2EADC; min-height: 0; }
.tp-week-img picture, .tp-week-img img { width: 100%; height: auto; object-fit: contain; }
.tp-week-facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px !important; }
.tp-week-facts li { background: var(--white); border-radius: 10px; padding: 14px 16px; display: flex; gap: 14px; align-items: center !important; }
.tp-week-facts b { display: block; font-size: 16px; color: var(--grn-dk); }
.tp-week-facts span:not(.icon-tile) { display: block; font-size: 14px; color: var(--mut); }
.tp-taper-call { display: flex; gap: 16px; align-items: flex-start; background: var(--orange); color: var(--white); border-radius: 12px; padding: 20px; }
.tp-taper-call b { display: block; font-size: 18px; line-height: 1.3; }
.tp-taper-call > div > span { display: block; font-size: 14px; opacity: .9; margin-top: 2px; }
.tp-taper-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tp-taper-chips span { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; }
.tp-why-cta { background: var(--cream); border-radius: 10px; padding: 18px; align-self: stretch; }
.tp-why-cta div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.icon-rows--grid2 { row-gap: 28px; }
@media (max-width: 960px) { .tp-app-steps--wide .tp-app-step img { max-width: 180px; } }

/* ---------- Ronda 3: semana de ejemplo en un solo tono ---------- */
.tp-week { background: #EFE6DA; }
.tp-week-img { background: transparent; padding: clamp(16px, 2vw, 28px); }
.tp-week-img img { max-height: 460px; width: auto; max-width: 100%; margin: 0 auto; display: block; }

/* ---------- Ronda SEO (28 oct): antetitulo dentro del H1, preguntas como H3, distritos ---------- */
.tp-h1-kicker { display: flex; width: fit-content; line-height: 1.3; }
.faq-question .tp-faq-q { display: inline; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.tp-price-seo { margin: 10px 0 0; color: var(--ink2); font-size: 17px; }
.tp-districts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 32px; padding: 0; }
.tp-districts a, .tp-districts span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--grn-dk); font-weight: 700; font-size: 15px; text-decoration: none; }
.tp-districts a:hover { border-color: var(--grn); }
.tp-blog-group { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 28px; }
.post-grid + .tp-blog-group { margin-top: clamp(56px, 6vw, 88px); }
.tp-text { max-width: 760px; }
.tp-text p { font-size: 18px; line-height: 1.6; color: var(--ink2); margin: 0 0 16px; }
.tp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.tp-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.tp-facts b { color: var(--grn-dk); }
.tp-chef-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.tp-chef-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tp-chef-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.tp-chef-card div { padding: 18px 20px; }
.tp-chef-card h3 { font-size: 20px; margin-bottom: 4px; }
.tp-sample { display: inline-block; font-size: 12px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; }
.tp-quote { background: var(--white); border-radius: 10px; padding: 24px 28px; border: 1px dashed var(--line); font-size: 18px; color: var(--ink2); }
@media (max-width: 900px) { .tp-facts, .tp-chef-cards { grid-template-columns: minmax(0, 1fr); } }

/* Pantallas de la app rediseñada (28 oct): móvil completo con marco, fondo transparente */
.tp-app-step img { background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 12px 22px rgba(31, 77, 58, .18)); }
.tp-app-shots { align-items: flex-start; }
.tp-app-shot { margin: 0; width: 240px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tp-app-shot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 22px rgba(31, 77, 58, .18)); }
@media (max-width: 600px) { .tp-app-shot { width: 200px; } }

/* Botones de tiendas del mismo tamaño (comentario 28 oct) */
.dl-storebtns { display: grid; grid-template-columns: repeat(2, 196px); gap: 14px; }
.dl-storebtns .btn-store { width: 100%; box-sizing: border-box; justify-content: flex-start; }
.storerow { display: grid; grid-template-columns: repeat(2, 176px); gap: 12px; }
.storerow .storebtn { width: 100%; box-sizing: border-box; justify-content: flex-start; }
@media (max-width: 480px) { .dl-storebtns, .storerow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Web SEO Madrid (29 oct): pregunta como H3 envolviendo el botón (patrón de acordeón accesible) ---------- */
.faq-item > .tp-faq-q { margin: 0; font: inherit; letter-spacing: inherit; }

/* ---------- Verificación de chefs fuera de la landing (/chef-a-domicilio-madrid) ---------- */
.verif-check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.verif-check:first-child { border-top: 0; }
.verif-check h3 { font-size: 16px; color: var(--warm-white); margin: 0 0 3px; }
.verif-check p { margin: 0; font-size: 13.5px; color: var(--on-dk); }
