/* Tostao · Sitio — ficha de producto de la tienda (cafés, cafeteras, tampers, distribuidores, estaciones…).
   Todo cuelga de .ts-w; clases con prefijo ts-p-. Cortes: 960 (tableta) y 600 (móvil).
   Las tarjetas de «Combina con» son las de la tienda (tienda.css). Sin JavaScript todo se ve y se compra:
   la clase .ts-p-js (la pone un script de una línea al abrir <main>) activa solo las mejoras. */

/* ---- base y reinicio local (el kit de Elementor, el tema y WooCommerce estilan títulos, listas, tablas, botones y campos) ---- */
.ts-w .ts-p { color: var(--ts-granate); font-family: var(--ts-fuente); background: #fff; line-height: 1.5; overflow-x: clip; }
.ts-w .ts-p :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.ts-w .ts-p :where(h1, h2, h3, h4) { font-family: var(--ts-fuente); font-weight: 700; color: inherit; text-transform: none; letter-spacing: normal; }
.ts-w .ts-p :where(ul, ol) { list-style: none; }
.ts-w .ts-p img { display: block; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; height: auto; }
.ts-w .ts-p a { color: inherit; text-decoration: none; }
.ts-w .ts-p svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-p :focus-visible { outline: 3px solid var(--ts-granate); outline-offset: 3px; }
.ts-w .ts-p-in { max-width: var(--ts-ancho); margin: 0 auto; padding: 8px 40px 72px; }

/* ---- botones (relleno amarillo con texto granate; secundarios en contorno) ---- */
.ts-w .ts-p .ts-p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--ts-amarillo); color: var(--ts-granate); font: 700 14px/1.2 var(--ts-fuente); letter-spacing: .01em; padding: 12px 26px; border: 0; border-radius: 999px; text-align: center; transition: background .15s, color .15s; }
.ts-w .ts-p .ts-p-btn:hover, .ts-w .ts-p .ts-p-btn:focus-visible { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-p .ts-p-btn svg { width: 18px; height: 18px; flex: none; }
.ts-w .ts-p .ts-p-btn-lin { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ts-granate); }
.ts-w .ts-p .ts-p-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---- migas ---- */
.ts-w .ts-p-migas { font-size: 12.5px; color: var(--ts-suave); }
.ts-w .ts-p-migas ol { display: flex; flex-wrap: nowrap; align-items: center; overflow: hidden; }
.ts-w .ts-p-migas li { display: inline-flex; flex: none; align-items: center; min-width: 0; }
.ts-w .ts-p-migas li:last-child { flex: 0 1 auto; }
.ts-w .ts-p-migas li:last-child > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 44px; min-height: 0; }
.ts-w .ts-p-migas li + li::before { content: "/"; margin: 0 9px; color: #c9b88a; }
.ts-w .ts-p-migas a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 -5px; padding: 0 5px; }
.ts-w .ts-p-migas [aria-current="page"] { display: inline-flex; align-items: center; min-height: 44px; }
.ts-w .ts-p-migas a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-p-migas [aria-current="page"] { color: var(--ts-granate); font-weight: 600; }

/* ---- avisos de WooCommerce (al añadir sin JavaScript) ---- */
.ts-w .ts-p-avisos { margin-top: 10px; }
.ts-w .ts-p .woocommerce-notices-wrapper { margin: 0; }
.ts-w .ts-p .woocommerce-message, .ts-w .ts-p .woocommerce-error, .ts-w .ts-p .woocommerce-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 10px; padding: 14px 20px; border: 1px solid var(--ts-linea); border-radius: 14px; background: var(--ts-crema-claro); color: var(--ts-granate); font-size: 14px; font-weight: 600; list-style: none; }
.ts-w .ts-p .woocommerce-error li { margin: 0; }
.ts-w .ts-p .woocommerce-message::before, .ts-w .ts-p .woocommerce-error::before, .ts-w .ts-p .woocommerce-info::before { content: none; }
.ts-w .ts-p .woocommerce-message a.button, .ts-w .ts-p .woocommerce-message .wc-forward { order: 2; float: none; display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 18px; border-radius: 999px; background: var(--ts-granate); color: var(--ts-amarillo); font-weight: 700; font-size: 13px; }

/* ---- bloque superior: galería + resumen ---- */
.ts-w .ts-p-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; margin-top: 14px; align-items: start; }
.ts-w .ts-p-gal, .ts-w .ts-p-resumen { min-width: 0; align-self: start; }
.ts-w .ts-p-pegajoso { position: sticky; top: calc(var(--ts-sticky-top, 0px) + 24px); }

/* galería */
.ts-w .ts-p-stage-wrap { position: relative; border-radius: 26px; background: var(--ts-gris); overflow: hidden; }
.ts-w .ts-p-stage { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--ts-gris); }
.ts-w .ts-p-stage::-webkit-scrollbar { display: none; }
.ts-w .ts-p-slide { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: center; scroll-snap-stop: always; }
.ts-w .ts-p .ts-p-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ts-w .ts-p .ts-p-zoom img { width: 100%; height: 100%; object-fit: contain; padding: 3%; mix-blend-mode: multiply; }
.ts-w .ts-p .ts-p-zoom:focus-visible { outline-offset: -4px; border-radius: 26px; }
.ts-w .ts-p-lupa { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ts-granate); pointer-events: none; box-shadow: 0 2px 8px rgba(63, 21, 14, .14); }
.ts-w .ts-p-lupa svg { width: 21px; height: 21px; }
.ts-w .ts-p .ts-p-flecha { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ts-granate); box-shadow: 0 2px 8px rgba(63, 21, 14, .18); transition: background .15s, color .15s; }
.ts-w .ts-p .ts-p-flecha[hidden] { display: none; }
.ts-w .ts-p .ts-p-flecha:hover, .ts-w .ts-p .ts-p-flecha:focus-visible { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-p .ts-p-flecha svg { width: 20px; height: 20px; }
.ts-w .ts-p-flecha-izq { left: 12px; }
.ts-w .ts-p-flecha-der { right: 12px; }
.ts-w .ts-p-cuenta { display: none; position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ts-granate); font-size: 12px; font-weight: 700; line-height: 1.4; }
.ts-w .ts-p-js .ts-p-cuenta { display: block; }
.ts-w .ts-p-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 3px; overflow-x: auto; scrollbar-width: thin; }
.ts-w .ts-p-thumbs li { flex: none; }
.ts-w .ts-p .ts-p-thumb { display: block; width: 74px; height: 74px; border: 2px solid transparent; border-radius: 16px; background: var(--ts-gris); overflow: hidden; transition: border-color .15s; }
.ts-w .ts-p .ts-p-thumb:hover { border-color: #c9b88a; }
.ts-w .ts-p .ts-p-thumb[aria-current="true"] { border-color: var(--ts-granate); }
.ts-w .ts-p .ts-p-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.ts-w .ts-p-stage.ts-p-pend { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 26px; color: var(--ts-suave); }
.ts-w .ts-p-pend-in { display: grid; justify-items: center; gap: 12px; padding: 0 16px 28px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.ts-w .ts-p-pend-in svg { width: 116px; height: 116px; stroke: currentColor; fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }

/* resumen */
.ts-w .ts-p-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: -6px 0 2px; }
.ts-w .ts-p .ts-p-cat { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .8px; line-height: 1.3; text-transform: uppercase; color: var(--ts-suave); }
.ts-w .ts-p .ts-p-cat:hover { color: var(--ts-granate); text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-p-chip { background: var(--ts-granate); color: var(--ts-amarillo); font-size: 11px; font-weight: 800; line-height: 1.3; padding: 4px 10px; border-radius: 6px; letter-spacing: .4px; }
.ts-w .ts-p-chip-agotado { background: #fff; color: var(--ts-suave); box-shadow: inset 0 0 0 1px var(--ts-linea); }
.ts-w .ts-p-chip-oferta { background: var(--ts-amarillo); color: var(--ts-granate); }
.ts-w .ts-p h1.ts-p-titulo { font-size: 36px; line-height: 1.08; font-weight: 700; letter-spacing: -.9px; overflow-wrap: anywhere; text-wrap: balance; }
.ts-w .ts-p-sub { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ts-suave); }
.ts-w .ts-p-nota-media { margin-top: 8px; font-size: 13.5px; font-weight: 700; }
.ts-w .ts-p-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 20px; }
.ts-w .ts-p-precio-n { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ts-w .ts-p-precio b, .ts-w .ts-p-precio ins { font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; text-decoration: none; }
.ts-w .ts-p-precio ins { background: linear-gradient(transparent 64%, var(--ts-amarillo) 64%); padding: 0 3px; }
.ts-w .ts-p-precio del { font-size: 18px; font-weight: 600; color: var(--ts-suave); }
.ts-w .ts-p-desde { font-size: 15px; font-weight: 600; color: var(--ts-suave); }
.ts-w .ts-p-iva { font-size: 12.5px; font-weight: 600; color: var(--ts-suave); }
.ts-w .ts-p-lead { margin-top: 16px; font-size: 15.5px; line-height: 1.65; }
.ts-w .ts-p-ideal { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px; background: var(--ts-crema-claro); border: 1px solid var(--ts-linea); border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ts-w .ts-p-ideal svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ts-w .ts-p-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.ts-w .ts-p-dato { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border: 1px solid var(--ts-linea); border-radius: 16px; background: #fff; }
.ts-w .ts-p-dato:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ts-w .ts-p-dato > svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--ts-crema); color: var(--ts-granate); }
.ts-w .ts-p-dato > div { min-width: 0; }
.ts-w .ts-p-dato dt { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; line-height: 1.3; text-transform: uppercase; color: var(--ts-suave); }
.ts-w .ts-p-dato dd { margin: 1px 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

/* zona de compra */
.ts-w .ts-p-compra { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ts-linea); }
.ts-w .ts-p-stock { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; }
.ts-w .ts-p-punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2f7d4e; }
.ts-w .ts-p-stock-pocas .ts-p-punto, .ts-w .ts-p-stock-reserva .ts-p-punto { background: #c98a16; }
.ts-w .ts-p-stock-agotado .ts-p-punto { background: #9d8b8d; }
.ts-w .ts-p-agotado { padding: 18px 20px; border: 1.5px dashed var(--ts-linea); border-radius: 18px; background: var(--ts-crema-claro); font-size: 14.5px; line-height: 1.55; }
.ts-w .ts-p-agotado .ts-p-botones { margin-top: 14px; }

/* formulario de WooCommerce: cantidad − + y botón principal */
.ts-w .ts-p-compra form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; padding: 0; }
.ts-w .ts-p-compra form.variations_form { display: block; }
.ts-w .ts-p-compra .woocommerce-variation-add-to-cart, .ts-w .ts-p-compra form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.ts-w .ts-p-compra .quantity { display: flex; align-items: center; flex: none; height: 54px; margin: 0; padding: 0 4px; border: 1.5px solid var(--ts-granate); border-radius: 999px; background: #fff; }
.ts-w .ts-p-compra .quantity:has(input[type="hidden"]), .ts-w .ts-p-compra .quantity:has(input.hidden) { display: none; }
.ts-w .ts-p-compra .quantity input.qty { width: 52px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ts-granate); font: 700 16px/1 var(--ts-fuente); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.ts-w .ts-p-compra .quantity input.qty::-webkit-outer-spin-button, .ts-w .ts-p-compra .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ts-w .ts-p-compra .quantity input.qty:focus-visible { outline: 3px solid var(--ts-granate); outline-offset: 2px; border-radius: 8px; }
.ts-w .ts-p-compra .ts-p-qb { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: transparent; color: var(--ts-granate); transition: background .15s; }
.ts-w .ts-p-js .ts-p-compra .ts-p-qb { display: grid; }
.ts-w .ts-p-compra .ts-p-qb svg { width: 18px; height: 18px; }
.ts-w .ts-p-compra .ts-p-qb:hover, .ts-w .ts-p-compra .ts-p-qb:focus-visible { background: var(--ts-crema); color: var(--ts-granate); }
.ts-w .ts-p-compra .ts-p-qb[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.ts-w .ts-p .single_add_to_cart_button.button, .ts-w .ts-p .single_add_to_cart_button { flex: 1 1 210px; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin: 0; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ts-amarillo); color: var(--ts-granate); font: 800 15px/1.2 var(--ts-fuente); letter-spacing: .01em; text-transform: none; cursor: pointer; box-shadow: none; transition: background .15s, color .15s; }
.ts-w .ts-p .single_add_to_cart_button.button.alt:hover, .ts-w .ts-p .single_add_to_cart_button:hover, .ts-w .ts-p .single_add_to_cart_button:focus-visible { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-p .single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.ts-w .ts-p .single_add_to_cart_button.loading::after, .ts-w .ts-p .single_add_to_cart_button.added::after { content: none; }
.ts-w .ts-p .single_add_to_cart_button.button.alt.disabled, .ts-w .ts-p .single_add_to_cart_button.button.alt:disabled, .ts-w .ts-p .single_add_to_cart_button.button.alt[disabled], .ts-w .ts-p .single_add_to_cart_button.button.alt.disabled:hover, .ts-w .ts-p .single_add_to_cart_button.button.alt.disabled:focus-visible { opacity: .5; cursor: not-allowed; background: var(--ts-amarillo); color: var(--ts-granate); }
.ts-w .ts-p .added_to_cart { display: none; }
.ts-w .ts-p-pista { margin-top: 12px; padding: 10px 16px; border-radius: 12px; background: var(--ts-crema-claro); border: 1px solid var(--ts-linea); font-size: 13.5px; font-weight: 700; }
.ts-w .ts-p-pista[hidden] { display: none; }

/* variaciones: píldoras (el desplegable de WooCommerce sigue ahí, oculto, porque es el que lee su JavaScript) */
.ts-w .ts-p-compra table.variations { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; background: transparent; }
.ts-w .ts-p-compra table.variations tbody, .ts-w .ts-p-compra table.variations tr { display: block; padding: 0; margin: 0; border: 0; background: transparent; }
.ts-w .ts-p-compra table.variations th.label { display: block; padding: 0 0 8px; border: 0; background: transparent; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--ts-suave); line-height: 1.3; }
.ts-w .ts-p-compra table.variations th.label label { font: inherit; letter-spacing: inherit; color: inherit; }
.ts-w .ts-p-compra table.variations td.value { display: block; padding: 0 0 14px; border: 0; background: transparent; }
.ts-w .ts-p-compra table.variations select { display: block; width: 100%; height: 50px; margin: 0; padding: 0 40px 0 18px; border: 1.5px solid var(--ts-granate); border-radius: 999px; background: #fff; color: var(--ts-granate); font: 700 14px/1.3 var(--ts-fuente); }
.ts-w .ts-p-js .ts-p-compra table.variations td.value:has(.ts-p-opc) select, .ts-w .ts-p-compra select.ts-p-oculto { display: none; }
.ts-w .ts-p-opc { display: none; flex-wrap: wrap; gap: 8px; }
.ts-w .ts-p-js .ts-p-opc { display: flex; }
.ts-w .ts-p-compra .ts-p-opcion { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--ts-granate); border-radius: 999px; background: #fff; color: var(--ts-granate); font: 700 14px/1.2 var(--ts-fuente); text-align: left; transition: background .15s, color .15s; }
.ts-w .ts-p-compra .ts-p-opcion:hover { background: var(--ts-crema-claro); color: var(--ts-granate); }
.ts-w .ts-p-compra .ts-p-opcion[aria-pressed="true"], .ts-w .ts-p-compra .ts-p-opcion[aria-pressed="true"]:hover { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-p-compra .ts-p-opcion[aria-disabled="true"] { opacity: .42; cursor: not-allowed; text-decoration: line-through; background: #fff; color: var(--ts-granate); }
.ts-w .ts-p-compra .ts-p-opc[data-error="true"] .ts-p-opcion:not([aria-pressed="true"]) { box-shadow: 0 0 0 2px var(--ts-amarillo); }
.ts-w .ts-p-compra a.reset_variations { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-p-compra .single_variation_wrap { margin-top: 4px; }
.ts-w .ts-p-compra .woocommerce-variation { margin: 0; }
.ts-w .ts-p-compra .woocommerce-variation-price { display: none; }
.ts-w .ts-p-compra .woocommerce-variation-description { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--ts-suave); }
.ts-w .ts-p-compra .woocommerce-variation-description p { margin: 0; }
.ts-w .ts-p-compra .woocommerce-variation-availability { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; }
.ts-w .ts-p-compra .woocommerce-variation-availability p { margin: 0; }
.ts-w .ts-p-compra .reset_variations_alert { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* productos agrupados (WooCommerce pinta su lista): filas limpias que no desbordan en móvil */
.ts-w .ts-p-compra table.group_table, .ts-w .ts-p-compra table.group_table tbody { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: transparent; }
.ts-w .ts-p-compra table.group_table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ts-linea); background: transparent; }
.ts-w .ts-p-compra table.group_table td { display: block; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 14.5px; line-height: 1.4; }
.ts-w .ts-p-compra table.group_table .woocommerce-grouped-product-list-item__label a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-p-compra table.group_table .woocommerce-grouped-product-list-item__price { font-weight: 700; text-align: right; }
.ts-w .ts-p-compra table.group_table .quantity { width: max-content; margin: 0; }

/* confianza: solo datos confirmados */
.ts-w .ts-p-confianza { display: grid; gap: 10px; margin-top: 22px; padding: 0; }
.ts-w .ts-p-confianza li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 28px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ts-suave); }
.ts-w .ts-p-confianza li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; flex: 1 1 0; min-width: 0; }
.ts-w .ts-p-confianza svg { flex: none; width: 20px; height: 20px; margin: 0 6px 0 0; color: var(--ts-granate); }
.ts-w .ts-p .ts-p-confianza a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1px; color: var(--ts-granate); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- detalle: descripción + información adicional ---- */
.ts-w .ts-p-detalle { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--ts-linea); }
.ts-w .ts-p-detalle-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.ts-w .ts-p-detalle-in.ts-p-solo { grid-template-columns: minmax(0, 820px); }
.ts-w .ts-p-desc h2, .ts-w .ts-p-esp h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.5px; }
.ts-w .ts-p-lema { margin-top: 14px; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; }
.ts-w .ts-p-intro { margin-top: 12px; font-size: 16.5px; line-height: 1.7; }
.ts-w .ts-p-puntos { margin-top: 22px; padding: 22px 24px; background: var(--ts-crema-claro); border: 1px solid var(--ts-linea); border-radius: 22px; }
.ts-w .ts-p-puntos h3 { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ts-suave); }
.ts-w .ts-p-puntos ul { display: grid; gap: 12px; margin-top: 14px; }
.ts-w .ts-p-puntos li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.55; }
.ts-w .ts-p-puntos li > svg { flex: none; width: 24px; height: 24px; padding: 5px; margin-top: 0; border-radius: 50%; background: var(--ts-granate); color: var(--ts-amarillo); stroke-width: 2.2; }
.ts-w .ts-p-puntos li b, .ts-w .ts-p-puntos li strong { font-weight: 800; }
.ts-w .ts-p-notas { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--ts-linea); border-left: 4px solid var(--ts-amarillo); border-radius: 14px; background: #fff; font-size: 14.5px; line-height: 1.6; }
.ts-w .ts-p-notas > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.ts-w .ts-p-notas p + p { margin-top: 6px; }
.ts-w .ts-p-cont { margin-top: 22px; }
.ts-w .ts-p-cont > :first-child { margin-top: 0; }
.ts-w .ts-p-cont h3 { margin: 34px 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.3px; }
.ts-w .ts-p-cont h4, .ts-w .ts-p-cont h5 { margin: 24px 0 8px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.ts-w .ts-p-cont p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; }
.ts-w .ts-p-cont b, .ts-w .ts-p-cont strong { font-weight: 700; }
.ts-w .ts-p-cont ul { list-style: disc; margin: 0 0 16px; padding-left: 1.35em; }
.ts-w .ts-p-cont ol { list-style: decimal; margin: 0 0 16px; padding-left: 1.5em; }
.ts-w .ts-p-cont li { margin: 0 0 8px; padding-left: 4px; font-size: 15.5px; line-height: 1.7; }
.ts-w .ts-p-cont li::marker { color: var(--ts-granate); font-weight: 700; }
.ts-w .ts-p-cont li p { margin: 0; }
.ts-w .ts-p-cont a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ts-w .ts-p-cont blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--ts-amarillo); font-size: 16px; font-style: italic; }
.ts-w .ts-p-cont img { border-radius: 16px; margin: 14px 0; }
.ts-w .ts-p-cont table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 14.5px; background: transparent; }
.ts-w .ts-p-cont table th, .ts-w .ts-p-cont table td { padding: 12px 18px; border: 0; border-bottom: 1px solid var(--ts-linea); background: transparent; text-align: left; vertical-align: top; line-height: 1.5; }
.ts-w .ts-p-cont table tbody tr:nth-child(odd) > td, .ts-w .ts-p-cont table tbody tr:nth-child(odd) > th { background: transparent; }
.ts-w .ts-p-cont table thead th { background: var(--ts-crema); font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.ts-w .ts-p-cont table tbody tr:last-child td, .ts-w .ts-p-cont table tbody tr:last-child th { border-bottom: 0; }
.ts-w .ts-p-cont table tbody td:first-child, .ts-w .ts-p-cont table tbody th:first-child { font-weight: 700; }
.ts-w .ts-p-tabla { margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--ts-linea); border-radius: 16px; background: #fff; }
.ts-w .ts-p-tabla:focus-visible { outline-offset: 2px; }
.ts-w .ts-p-tabla table { min-width: 360px; }

/* acordeón (descripciones muy largas): elemento <details> nativo, accesible con teclado */
.ts-w .ts-p-acordeon { margin: 4px 0 0; }
.ts-w .ts-p-acordeon details { margin: 0 0 10px; border: 1px solid var(--ts-linea); border-radius: 18px; background: #fff; overflow: hidden; }
.ts-w .ts-p-acordeon summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 60px 14px 22px; font-size: 16.5px; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.ts-w .ts-p-acordeon summary::-webkit-details-marker { display: none; }
.ts-w .ts-p-acordeon summary::before, .ts-w .ts-p-acordeon summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ts-granate); transition: transform .2s; }
.ts-w .ts-p-acordeon summary::after { transform: rotate(90deg); }
.ts-w .ts-p-acordeon details[open] > summary::after { transform: rotate(0deg); }
.ts-w .ts-p-acordeon details[open] > summary { background: var(--ts-crema-claro); }
.ts-w .ts-p-acordeon summary:hover { background: var(--ts-crema-claro); }
.ts-w .ts-p-acordeon summary:focus-visible { outline-offset: -4px; border-radius: 18px; }
.ts-w .ts-p-acordeon-cuerpo { padding: 14px 22px 8px; }
.ts-w .ts-p-acordeon-cuerpo > :last-child { margin-bottom: 8px; }

/* información adicional */
.ts-w .ts-p-esp { position: sticky; top: calc(var(--ts-sticky-top, 0px) + 24px); padding: 24px 26px 18px; border: 1px solid var(--ts-linea); border-radius: 22px; background: #fff; }
.ts-w .ts-p-esp h2 { font-size: 20px; }
.ts-w .ts-p-esp table { width: 100%; margin: 12px 0 0; border: 0; border-collapse: collapse; background: transparent; font-size: 14.5px; }
.ts-w .ts-p-esp table th, .ts-w .ts-p-esp table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--ts-linea); background: transparent; vertical-align: top; text-align: left; line-height: 1.45; }
.ts-w .ts-p-esp table tbody tr:nth-child(odd) > td, .ts-w .ts-p-esp table tbody tr:nth-child(odd) > th { background: transparent; }
.ts-w .ts-p-esp table th { width: 40%; padding-right: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ts-suave); }
.ts-w .ts-p-esp table td { font-weight: 600; overflow-wrap: anywhere; }
.ts-w .ts-p-esp table td p { margin: 0; }
.ts-w .ts-p-esp table tr:last-child th, .ts-w .ts-p-esp table tr:last-child td { border-bottom: 0; }

/* ---- valoraciones (solo si WooCommerce las tiene activadas) ---- */
.ts-w .ts-p-valoraciones { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--ts-linea); }
.ts-w .ts-p-valoraciones h2, .ts-w .ts-p-valoraciones .woocommerce-Reviews-title { font-size: 26px; line-height: 1.2; letter-spacing: -.4px; margin-bottom: 16px; }
.ts-w .ts-p-valoraciones ol.commentlist { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.ts-w .ts-p-valoraciones ol.commentlist li { margin: 0; padding: 16px 20px; border: 1px solid var(--ts-linea); border-radius: 16px; }
.ts-w .ts-p-valoraciones ol.commentlist li img.avatar { display: none; }
.ts-w .ts-p-valoraciones .comment-form label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 700; }
.ts-w .ts-p-valoraciones .comment-form :is(input[type="text"], input[type="email"], textarea) { width: 100%; padding: 12px 16px; border: 1.5px solid var(--ts-granate); border-radius: 14px; background: #fff; color: var(--ts-granate); font: 500 15px/1.5 var(--ts-fuente); }
.ts-w .ts-p-valoraciones p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.ts-w .ts-p-valoraciones .comment-form p.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.ts-w .ts-p-valoraciones .comment-form p.comment-form-cookies-consent label { margin: 0; font-weight: 600; }
.ts-w .ts-p-valoraciones .comment-form :is(input[type="submit"], button[type="submit"], .submit) { min-height: 48px; margin-top: 8px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ts-amarillo); color: var(--ts-granate); font: 800 14px var(--ts-fuente); letter-spacing: .01em; text-transform: none; cursor: pointer; }
.ts-w .ts-p-valoraciones .comment-form :is(input[type="submit"], button[type="submit"], .submit):hover { background: var(--ts-granate); color: var(--ts-amarillo); }

/* ---- «Combina con» (tarjetas de la tienda) ---- */
.ts-w .ts-p-rel { margin-top: 72px; }
.ts-w .ts-p-rel .ts-t { background: transparent; }
.ts-w .ts-p-rel-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.ts-w .ts-p-rel h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.6px; }
.ts-w .ts-p .ts-p-rel-mas { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ts-w .ts-p-rel .ts-t-rej { margin-top: 0; }
/* objetivos táctiles de 44 px también en las tarjetas de esta sección (en móvil la tienda las deja en 40) */
.ts-w .ts-p-rel .ts-t .ts-t-add { width: 44px; height: 44px; right: 10px; bottom: 10px; }
.ts-w .ts-p-rel .ts-t .ts-t-opc { display: inline-flex; align-items: center; min-height: 44px; right: 10px; bottom: 10px; }

/* ---- «Aprende con nosotros» ---- */
.ts-w .ts-p-aprende { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); margin-top: 72px; border: 1px solid var(--ts-linea); border-radius: 28px; background: var(--ts-crema-claro); overflow: hidden; }
.ts-w .ts-p-aprende:has(.ts-p-sin-foto) { grid-template-columns: minmax(0, 1fr); }
.ts-w .ts-p-aprende-foto { position: relative; min-height: 340px; background: var(--ts-crema); }
.ts-w .ts-p-aprende-foto.ts-p-sin-foto { display: none; }
.ts-w .ts-p-aprende-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-w .ts-p-tag { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: var(--ts-crema); color: var(--ts-granate); font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; line-height: 1.3; text-transform: uppercase; }
.ts-w .ts-p-aprende-txt { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.ts-w .ts-p-aprende-txt h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.6px; }
.ts-w .ts-p-aprende-sub { margin-top: 8px; font-size: 14px; color: var(--ts-suave); }
.ts-w .ts-p-aprende-txt h3 { margin-top: 24px; font-size: 22px; line-height: 1.2; letter-spacing: -.3px; }
.ts-w .ts-p-aprende-frase { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ts-suave); }
.ts-w .ts-p-aprende-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.ts-w .ts-p-fecha, .ts-w .ts-p-etq { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--ts-linea); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.ts-w .ts-p-fecha svg { width: 15px; height: 15px; }
.ts-w .ts-p-etq.ts-libre { background: #fff; box-shadow: inset 0 0 0 1px var(--ts-granate); border-color: transparent; }
.ts-w .ts-p-etq.ts-conf { background: var(--ts-granate); border-color: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-p-etq.ts-escasez { background: var(--ts-amarillo); border-color: var(--ts-amarillo); color: var(--ts-granate); }
.ts-w .ts-p-etq.ts-lleno { background: #fff; color: var(--ts-suave); }
.ts-w .ts-p-aprende-precio { font-size: 20px; font-weight: 800; }
.ts-w .ts-p-aprende-precio span { font-size: 12.5px; font-weight: 600; color: var(--ts-suave); }

/* ---- barra inferior pegajosa (móvil y tableta) ---- */
.ts-w .ts-p-barra { display: none; }
.ts-w .ts-p-fin { height: 1px; }
.ts-w .ts-p-aviso { position: fixed; left: 0; right: 0; bottom: 22px; z-index: 9000; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); margin: 0 auto; padding: 12px 14px 12px 20px; background: var(--ts-granate-osc); color: var(--ts-crema); border-radius: 999px; box-shadow: 0 12px 32px rgba(43, 13, 17, .35); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ts-w .ts-p-aviso[hidden] { display: none; }
.ts-w .ts-p .ts-p-aviso a { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--ts-amarillo); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ts-w .ts-p .ts-p-aviso button { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ts-crema); }
.ts-w .ts-p .ts-p-aviso button:hover { background: rgba(255, 255, 255, .16); color: var(--ts-crema); }
.ts-w .ts-p .ts-p-aviso button svg { width: 16px; height: 16px; stroke-width: 2; }
.ts-w .ts-p .ts-p-aviso :focus-visible { outline-color: var(--ts-amarillo); }

/* ---- ventana de ampliación ---- */
.ts-w dialog.ts-p-lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(30, 8, 10, .95); color: #fff; font-family: var(--ts-fuente); }
.ts-w dialog.ts-p-lb:not([open]) { display: none; }
.ts-w .ts-p-lb-in { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 76px 76px; }
.ts-w .ts-p-lb-fig { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1100px; height: 100%; overflow: auto; }
.ts-w .ts-p-lb-fig img { flex: 0 1 auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; cursor: zoom-in; }
.ts-w dialog.ts-p-lb.ts-p-lb-ampliada .ts-p-lb-fig { align-items: flex-start; justify-content: flex-start; }
.ts-w dialog.ts-p-lb.ts-p-lb-ampliada .ts-p-lb-fig img { flex: none; max-width: none; max-height: none; width: 190%; cursor: zoom-out; }
.ts-w dialog.ts-p-lb button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; transition: background .15s, color .15s; }
.ts-w dialog.ts-p-lb button:hover, .ts-w dialog.ts-p-lb button:focus-visible { background: var(--ts-amarillo); color: var(--ts-granate); }
.ts-w dialog.ts-p-lb button svg { width: 22px; height: 22px; stroke-width: 2; }
.ts-w dialog.ts-p-lb :focus-visible { outline: 3px solid var(--ts-amarillo); outline-offset: 3px; }
.ts-w dialog.ts-p-lb button[hidden] { display: none; }
.ts-w .ts-p-lb-x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.ts-w .ts-p-lb-b { position: absolute; top: 50%; z-index: 3; margin-top: -24px; }
.ts-w .ts-p-lb-prev { left: 14px; }
.ts-w .ts-p-lb-next { right: 14px; }
.ts-w .ts-p-lb-pie { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font-size: 14px; font-weight: 600; }
.ts-w dialog.ts-p-lb .ts-p-lb-zoom { width: auto; height: 44px; padding: 0 20px; border-radius: 999px; font: 700 13.5px/1 var(--ts-fuente); }
.ts-w dialog.ts-p-lb .ts-p-lb-zoom[aria-pressed="true"] { background: var(--ts-amarillo); color: var(--ts-granate); }
html.ts-p-lb-abierto { overflow: hidden; }

/* ---- tableta ---- */
@media (max-width: 960px) {
	.ts-w .ts-p-in { padding: 16px 28px 52px; }
	.ts-w .ts-p-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ts-w .ts-p-pegajoso { position: static; }
	.ts-w .ts-p-stage-wrap, .ts-w .ts-p-stage.ts-p-pend { border-radius: 22px; }
	.ts-w .ts-p h1.ts-p-titulo { font-size: 32px; }
	.ts-w .ts-p-detalle { margin-top: 52px; padding-top: 40px; }
	.ts-w .ts-p-detalle-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.ts-w .ts-p-esp { position: static; }
	.ts-w .ts-p-detalle-in.ts-p-solo { grid-template-columns: minmax(0, 1fr); }
	.ts-w .ts-p-rel { margin-top: 56px; }
	.ts-w .ts-p-rel h2 { font-size: 26px; }
	.ts-w .ts-p-rel .ts-t-rej { display: flex; gap: 14px; margin: 0 -28px; padding: 4px 28px 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 28px; scrollbar-width: thin; }
	.ts-w .ts-p-rel .ts-t-item { flex: 0 0 min(250px, 62vw); scroll-snap-align: start; }
	.ts-w .ts-p-aprende { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
	.ts-w .ts-p-aprende-foto { min-height: 0; height: 240px; }
	.ts-w .ts-p-aprende-txt { padding: 30px 28px 32px; }
	.ts-w .ts-p-aprende-txt h2 { font-size: 26px; }
	/* barra inferior: aparece cuando el botón principal se ha ido de la pantalla */
	.ts-w .ts-p-barra:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ts-linea); box-shadow: 0 -8px 24px rgba(43, 13, 17, .08); }
	.ts-w .ts-p .ts-p-barra-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 560px; min-height: 52px; margin: 0 auto; padding: 0 22px; border-radius: 999px; background: var(--ts-amarillo); color: var(--ts-granate); font: 800 15px/1.2 var(--ts-fuente); transition: background .15s, color .15s; }
	.ts-w .ts-p .ts-p-barra-btn:hover, .ts-w .ts-p .ts-p-barra-btn:focus-visible { background: var(--ts-granate); color: var(--ts-amarillo); }
	body.ts-p-barra-on .ts-w .ts-p-aviso, body.ts-p-barra-on .ts-w .ts-t-aviso { bottom: 88px; }
	.ts-w .ts-p-tiene-barra .ts-p-in { padding-bottom: 92px; }
	.ts-w .ts-p-lb-in { padding: 60px 16px 76px; }
	.ts-w .ts-p-lb-b { top: auto; bottom: 14px; margin-top: 0; }
	.ts-w .ts-p-lb-prev { left: 14px; }
	.ts-w .ts-p-lb-next { right: 14px; }
}
/* tableta vertical (721–960): dos columnas, para que la foto no ocupe toda la pantalla */
@media (min-width: 721px) and (max-width: 960px) {
	.ts-w .ts-p-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.ts-w .ts-p .ts-p-pegajoso { position: sticky; top: calc(var(--ts-sticky-top, 0px) + 16px); }
	.ts-w .ts-p h1.ts-p-titulo { font-size: 28px; }
	.ts-w .ts-p-precio b, .ts-w .ts-p-precio ins { font-size: 28px; }
	.ts-w .ts-p .ts-p-thumb { width: 62px; height: 62px; border-radius: 14px; }
}
@media (hover: none) {
	.ts-w .ts-p .ts-p-flecha { display: none; }
}

/* ---- móvil ---- */
@media (max-width: 600px) {
	.ts-w .ts-p-in { padding: 4px 18px 40px; }
	.ts-w .ts-p-top { gap: 22px; margin-top: 4px; }
	.ts-w .ts-p-gal { margin: 0 -18px; }
	.ts-w .ts-p-stage-wrap, .ts-w .ts-p-stage.ts-p-pend { border-radius: 0; }
	.ts-w .ts-p-thumbs { gap: 8px; margin-top: 10px; padding: 3px 18px; }
	.ts-w .ts-p .ts-p-thumb { width: 56px; height: 56px; border-radius: 12px; }
	.ts-w .ts-p h1.ts-p-titulo { font-size: 27px; letter-spacing: -.6px; }
	.ts-w .ts-p-sub { font-size: 15px; }
	.ts-w .ts-p-precio b, .ts-w .ts-p-precio ins { font-size: 28px; }
	.ts-w .ts-p-lead { font-size: 15px; }
	.ts-w .ts-p-datos { gap: 8px; }
	.ts-w .ts-p-dato { gap: 10px; padding: 10px 12px; }
	.ts-w .ts-p-dato > svg { width: 34px; height: 34px; padding: 7px; }
	.ts-w .ts-p-dato dd { font-size: 14px; }
	.ts-w .ts-p-compra { margin-top: 22px; padding-top: 18px; }
	.ts-w .ts-p-detalle { margin-top: 44px; padding-top: 34px; }
	.ts-w .ts-p-desc h2 { font-size: 24px; }
	.ts-w .ts-p-lema { font-size: 18px; }
	.ts-w .ts-p-intro { font-size: 16px; }
	.ts-w .ts-p-puntos { padding: 18px 18px; border-radius: 18px; }
	.ts-w .ts-p-cont h3 { font-size: 20px; margin-top: 28px; }
	.ts-w .ts-p-cont table th, .ts-w .ts-p-cont table td { padding: 10px 14px; }
	.ts-w .ts-p-acordeon summary { padding: 14px 54px 14px 18px; font-size: 16px; }
	.ts-w .ts-p-acordeon-cuerpo { padding: 12px 18px 6px; }
	.ts-w .ts-p-esp { padding: 20px 20px 12px; border-radius: 18px; }
	.ts-w .ts-p-rel { margin-top: 48px; }
	.ts-w .ts-p-rel h2 { font-size: 24px; }
	.ts-w .ts-p-rel .ts-t-rej { margin: 0 -18px; padding: 4px 18px 14px; scroll-padding: 0 18px; }
	.ts-w .ts-p-rel .ts-t-item { flex-basis: min(228px, 66vw); }
	.ts-w .ts-p-aprende { margin-top: 48px; border-radius: 22px; }
	.ts-w .ts-p-aprende-foto { height: 190px; }
	.ts-w .ts-p-aprende-txt { padding: 24px 20px 26px; }
	.ts-w .ts-p-aprende-txt h2 { font-size: 24px; }
	.ts-w .ts-p-aprende-txt h3 { margin-top: 20px; font-size: 20px; }
	.ts-w .ts-p .ts-p-botones .ts-p-btn { flex: 1 1 100%; }
	.ts-w .ts-p-aviso { border-radius: 18px; bottom: 14px; }
	.ts-w .ts-p-lb-fig img { border-radius: 8px; }
}

@media (max-width: 600px) {
	.ts-w .ts-p-compra table.group_table tr { grid-template-columns: minmax(0, 1fr) auto; }
	.ts-w .ts-p-compra table.group_table .woocommerce-grouped-product-list-item__label { order: 1; }
	.ts-w .ts-p-compra table.group_table .woocommerce-grouped-product-list-item__price { order: 2; }
	.ts-w .ts-p-compra table.group_table .woocommerce-grouped-product-list-item__quantity { order: 3; grid-column: 1 / -1; }
}
@media (max-width: 380px) {
	.ts-w .ts-p-datos { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.ts-w .ts-p *, .ts-w .ts-p *::before, .ts-w .ts-p *::after, .ts-w dialog.ts-p-lb, .ts-w dialog.ts-p-lb * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Cafeteras: «¿Dudas? Te asesoramos» (solo en las fichas de la categoría «Cafeteras»; lo pinta el módulo cafeteras) ---- */
.ts-w .ts-p-asesora { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; margin-top: 56px; padding: 32px 40px; border: 1px solid var(--ts-linea); border-radius: 28px; background: var(--ts-crema-claro); }
.ts-w .ts-p-asesora h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.5px; }
.ts-w .ts-p-asesora-txt p { margin-top: 8px; max-width: 52ch; font-size: 15px; line-height: 1.55; color: var(--ts-suave); }
.ts-w .ts-p-asesora-txt .ts-p-asesora-horario { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.ts-w .ts-p .ts-p-asesora .ts-p-botones { flex-direction: column; align-items: stretch; margin-top: 0; }
.ts-w .ts-p .ts-p-asesora .ts-p-btn { justify-content: flex-start; padding: 12px 24px; text-align: left; overflow-wrap: anywhere; }
@media (max-width: 960px) {
	.ts-w .ts-p-asesora { grid-template-columns: minmax(0, 1fr); margin-top: 44px; padding: 28px 28px 30px; }
	.ts-w .ts-p-asesora h2 { font-size: 26px; }
	.ts-w .ts-p .ts-p-asesora .ts-p-botones { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
	.ts-w .ts-p-asesora { margin-top: 36px; padding: 24px 20px 26px; border-radius: 22px; }
	.ts-w .ts-p-asesora h2 { font-size: 24px; }
	.ts-w .ts-p .ts-p-asesora .ts-p-botones .ts-p-btn { flex: 1 1 100%; }
}

/* ---- Variaciones: el texto propio del acabado va DEBAJO del botón de compra (el botón no salta de sitio al elegir) y una pista mientras no se elige ---- */
.ts-w .ts-p-compra .single_variation_wrap { display: flex; flex-direction: column; }
.ts-w .ts-p-compra .single_variation_wrap .woocommerce-variation-add-to-cart { order: 1; }
.ts-w .ts-p-compra .single_variation_wrap .woocommerce-variation { order: 2; }
.ts-w .ts-p-compra .woocommerce-variation-description { margin: 16px 0 0; }
.ts-w .ts-p-compra .woocommerce-variation-availability { margin: 10px 0 0; }
.ts-w .ts-p-js .ts-p-compra table.variations:has(.ts-p-opcion):not(:has(.ts-p-opcion[aria-pressed="true"])) th.label label::after { content: " · elige una opción"; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---- Ficha técnica larga (más de 12 filas: las cafeteras): a ancho completo y en dos columnas ---- */
.ts-w .ts-p-detalle-in.ts-p-ancha { grid-template-columns: minmax(0, 1fr); gap: 44px; }
.ts-w .ts-p-ancha .ts-p-desc { max-width: 820px; }
.ts-w .ts-p-ancha .ts-p-esp { position: static; padding: 30px 36px 14px; }
.ts-w .ts-p-ancha .ts-p-esp h2 { font-size: 26px; letter-spacing: -.4px; }
.ts-w .ts-p-esp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
.ts-w .ts-p-esp-cols table { margin-top: 8px; }
.ts-w .ts-p-ancha .ts-p-esp table th { width: 36%; }
@media (max-width: 960px) {
	.ts-w .ts-p-ancha .ts-p-esp { padding: 24px 24px 10px; }
	.ts-w .ts-p-esp-cols { grid-template-columns: minmax(0, 1fr); }
	.ts-w .ts-p-esp-cols table + table { margin-top: 0; }
	.ts-w .ts-p-esp-cols table:first-child tr:last-child th, .ts-w .ts-p-esp-cols table:first-child tr:last-child td { border-bottom: 1px solid var(--ts-linea); }
}
@media (max-width: 600px) {
	/* móvil: la etiqueta encima del valor (el valor ocupa todo el ancho y no se parte en cinco líneas) */
	.ts-w .ts-p-ancha .ts-p-esp { padding: 20px 18px 6px; }
	.ts-w .ts-p-ancha .ts-p-esp table, .ts-w .ts-p-ancha .ts-p-esp tbody, .ts-w .ts-p-ancha .ts-p-esp tr, .ts-w .ts-p-ancha .ts-p-esp th, .ts-w .ts-p-ancha .ts-p-esp td { display: block; width: auto; }
	.ts-w .ts-p-ancha .ts-p-esp table th { padding: 12px 0 2px; border-bottom: 0; }
	.ts-w .ts-p-ancha .ts-p-esp table td { padding: 0 0 12px; border-bottom: 1px solid var(--ts-linea); }
	.ts-w .ts-p-ancha .ts-p-esp table tr:last-child td { border-bottom: 1px solid var(--ts-linea); }
	.ts-w .ts-p-ancha .ts-p-esp table:last-child tr:last-child td { border-bottom: 0; }
}
.ts-w .ts-p-esp tr[hidden] { display: none !important; }
.ts-w .ts-p .ts-p-esp-mas { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 8px 0 14px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ts-granate); color: var(--ts-granate); font: 700 14px/1.2 var(--ts-fuente); text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.ts-w .ts-p .ts-p-esp-mas:hover, .ts-w .ts-p .ts-p-esp-mas:focus-visible { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-p .ts-p-esp-mas[hidden] { display: none; }
@media (max-width: 600px) {
	.ts-w .ts-p-ancha .ts-p-esp table th { width: auto; padding-right: 0; }
}

/* botón «Añadir a la cesta» antes de elegir acabado: sigue siendo legible (contraste ≥ 4,5:1 con la opacidad al 72 %); al pulsarlo explica qué falta */
.ts-w .ts-p .single_add_to_cart_button.button.alt.disabled, .ts-w .ts-p .single_add_to_cart_button.button.alt:disabled, .ts-w .ts-p .single_add_to_cart_button.button.alt[disabled], .ts-w .ts-p .single_add_to_cart_button.button.alt.disabled:hover, .ts-w .ts-p .single_add_to_cart_button.button.alt.disabled:focus-visible { opacity: .72; }
.ts-w dialog.ts-p-lb.ts-p-lb-baja .ts-p-lb-fig img { cursor: default; }

/* ---- Cafeteras independientes: el acabado, como dato visible junto al título ---- */
.ts-w .ts-p-acabado { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 12px; font-size: 15px; line-height: 1.4; }
.ts-w .ts-p-acabado span { font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--ts-suave); }
.ts-w .ts-p-acabado b { font-weight: 700; }

/* ---- «Otros acabados de esta gama»: enlaces a las demás fichas de la misma gama (sin JavaScript), el actual marcado con aria-current ---- */
.ts-w .ts-p-acab { margin-top: 22px; }
.ts-w .ts-p-acab-t { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .9px; line-height: 1.3; text-transform: uppercase; color: var(--ts-suave); }
.ts-w .ts-p-acab-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 122px)); justify-content: start; gap: 10px; }
.ts-w .ts-p .ts-p-acab-i { display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: 100%; padding: 6px 6px 8px; border: 1px solid var(--ts-linea); border-radius: 16px; background: #fff; color: var(--ts-granate); text-align: center; transition: border-color .15s, background .15s; }
.ts-w .ts-p .ts-p-acab-i:hover { border-color: #c9b88a; background: var(--ts-crema-claro); }
.ts-w .ts-p .ts-p-acab-i[aria-current="page"] { border-color: var(--ts-granate); box-shadow: inset 0 0 0 1px var(--ts-granate); background: var(--ts-crema-claro); }
.ts-w .ts-p-acab-foto { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 11px; background: var(--ts-gris); overflow: hidden; }
.ts-w .ts-p-acab-foto img { width: 100%; height: 100%; object-fit: contain; box-sizing: border-box; padding: 4px; mix-blend-mode: multiply; }
.ts-w .ts-p-acab-foto svg { width: 56%; height: auto; opacity: .4; }
.ts-w .ts-p-acab-foto.ts-sf { background: var(--ts-sf-fondo, var(--ts-crema-claro)); box-shadow: inset 0 0 0 1px var(--ts-linea); }
.ts-w .ts-p-acab-foto.ts-sf img { mix-blend-mode: normal; object-position: 50% 100%; padding: 6px 5px 5px; }
.ts-w .ts-p-acab-n { font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ts-w .ts-p .ts-p-acab-i[aria-current="page"] .ts-p-acab-n { font-weight: 800; }
.ts-w .ts-p-acab-p { font-size: 12px; font-weight: 700; color: var(--ts-suave); }
@media (max-width: 600px) {
	.ts-w .ts-p-acab-lista { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
	.ts-w .ts-p .ts-p-acab-i { padding: 5px 5px 8px; border-radius: 14px; }
	.ts-w .ts-p-acab-n { font-size: 12px; }
}

/* ---- RECORTES SIN FONDO en la galería, las miniaturas y la ventana de ampliación (marca _tostao_foto_sin_fondo → .ts-sf): sin panel gris ni multiply,
        la máquina sobre crema claro, apoyada abajo y con una sombra de suelo suave ---- */
.ts-w .ts-p-slide.ts-sf { background: var(--ts-sf-fondo, var(--ts-crema-claro)); box-shadow: inset 0 0 0 1px var(--ts-linea); }
.ts-w .ts-p-slide.ts-sf::before { content: ""; position: absolute; z-index: 0; left: 16%; right: 16%; bottom: 9.4%; height: 5.4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 21, 14, .34), rgba(63, 21, 14, .15) 56%, rgba(63, 21, 14, 0)); pointer-events: none; }
.ts-w .ts-p .ts-p-slide.ts-sf .ts-p-zoom img { position: relative; z-index: 1; padding: 7% 6% 12%; object-position: 50% 100%; mix-blend-mode: normal; }
.ts-w .ts-p .ts-p-slide.ts-sf .ts-p-lupa { z-index: 2; }
.ts-w .ts-p .ts-p-thumb.ts-sf { background: var(--ts-sf-fondo, var(--ts-crema-claro)); }
.ts-w .ts-p .ts-p-thumb.ts-sf img { object-position: 50% 100%; padding: 5px 4px 4px; mix-blend-mode: normal; }
.ts-w dialog.ts-p-lb.ts-p-lb-sf .ts-p-lb-fig img { box-sizing: border-box; padding: 3%; background: var(--ts-sf-fondo, var(--ts-crema-claro)); }

/* ---- Revisión de diseño (23-nov-2026) ---- */
/* Título de una cafetera independiente: el nombre de la gama en el título y el acabado como segunda línea más ligera (sigue dentro del h1, que lleva el nombre entero).
   Antes el acabado iba dentro del título (tres líneas de 36 px) y otra vez justo debajo. */
.ts-w .ts-p h1.ts-p-titulo .ts-p-t-ac { display: block; margin-top: 12px; font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.35; color: var(--ts-granate); }
.ts-w .ts-p h1.ts-p-titulo .ts-p-t-ac::before { content: "Acabado"; content: "Acabado" / ""; display: inline-block; margin-right: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--ts-suave); }
@media (max-width: 600px) { .ts-w .ts-p h1.ts-p-titulo .ts-p-t-ac { margin-top: 10px; font-size: 16px; } }
/* «Acabados de esta gama»: el foco del teclado se ve con el mismo anillo que el resto de la ficha */
.ts-w .ts-p .ts-p-acab-i:focus-visible { outline: 3px solid var(--ts-granate); outline-offset: 3px; }
/* «¿Dudas? 643 …»: el icono del teléfono va arriba, alineado con la primera línea (con dos líneas quedaba en medio) */
.ts-w .ts-p-confianza li:has(a) { align-items: flex-start; }
.ts-w .ts-p-confianza li:has(a) > svg { margin-top: 12px; } /* el enlace mide 44 px y su texto va centrado: el icono se alinea con esa primera línea */
