/* ══ Tienda: la web de INSITI con aire de tienda de muebles premium ══════
   Fase 2 de la auditoría del 18-11. Va DESPUÉS de styles.css y solo en las
   páginas que la cargan (portada, /demo y sus fichas).

   Regla de color, que es la que hace que se lea como una tienda:
   · la tienda es blanca y negra: fondos blancos, losetas casi blancas,
     tinta y botones negros, como Kave Home, Article o &Tradition;
   · todo lo que es INSITI va en naranja: instalar, la capa de comerciante,
     los pines y la caja que explica la app. Nada más lleva naranja.

   Nada de superficies naranjas grandes, ni malla poligonal, ni fotos
   oscuras. El movimiento se queda en aparecer y en cambiar de foto. */

:root {
  --t-fondo:     #FFFFFF;
  --t-loseta:    #F4F4F4;   /* gris de estudio, apenas cálido, para las fotos de producto */
  --t-loseta-2:  #EDEDED;   /* la loseta al pasar el ratón */
  --t-tinta:     #1B1B1B;
  --t-texto-2:   #5E5E5E;
  --t-texto-3:   #8A8A87;
  --t-linea:     #E6E6E3;
  --t-naranja:   #D76B30;
  --t-naranja-t: #A24717;   /* naranja de texto pequeño sobre blanco (AA) */
  --t-naranja-s: #FBE9DD;
  --t-ancho:     1320px;
  --t-margen:    clamp(16px, 3.2vw, 40px);
  --t-hueco:     clamp(16px, 2vw, 24px);
  --t-seccion:   clamp(64px, 9vw, 120px);
}

/* ── Base de la tienda ───────────────────────────────────────────── */
.t-wrap { width: 100%; max-width: var(--t-ancho); margin: 0 auto; padding-inline: var(--t-margen); }
.t-etiqueta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-texto-2);
}
.t-etiqueta--insiti { color: var(--t-naranja-t); }
.t-h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.t-cifra { font-variant-numeric: tabular-nums; }
.t-enlace {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.92rem; font-weight: 500; color: var(--t-tinta);
  text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px;
  text-decoration-color: rgba(27, 27, 27, 0.35);
  transition: text-decoration-color .2s ease;
}
.t-enlace:hover { text-decoration-color: currentColor; }

/* Botones de tienda: rectos, sin sombra y en negro. El naranja (.btn--primary
   de styles.css) se reserva para instalar. */
.t-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.5rem;
  font: 500 0.95rem/1 var(--f-sans);
  border: 1px solid var(--t-tinta); border-radius: 2px;
  background: var(--t-tinta); color: #fff;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.t-boton:hover { background: #000; }
.t-boton--borde { background: transparent; color: var(--t-tinta); }
.t-boton--borde:hover { background: var(--t-tinta); color: #fff; }
.t-boton--blanco { background: #fff; border-color: #fff; color: var(--t-tinta); }
.t-boton--blanco:hover { background: var(--t-tinta); border-color: var(--t-tinta); color: #fff; }
.t-boton--insiti { background: var(--t-naranja); border-color: var(--t-naranja); color: #14100D; }
.t-boton--insiti:hover { background: #B85A22; border-color: #B85A22; color: #fff; }
.t-boton:focus-visible, .t-enlace:focus-visible, .t-pieza a:focus-visible, .t-bolita:focus-visible {
  outline: 2px solid var(--t-naranja); outline-offset: 3px;
}

/* ── Cinta de aviso, como la de envíos de una tienda ─────────────── */
.t-aviso {
  background: var(--t-tinta); color: #fff;
  font-size: 0.8rem; letter-spacing: 0.01em;
}
.t-aviso .t-wrap { display: flex; justify-content: center; align-items: center; gap: 0.75rem; min-height: 36px; text-align: center; }
.t-aviso p { color: rgba(255, 255, 255, 0.86); line-height: 1.35; padding-block: 0.45rem; }
.t-aviso a { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; white-space: nowrap; }

/* La cabecera de styles.css pasa a la de una tienda: blanca y con filete. */
.t-pagina .nav { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--t-linea); }
.t-pagina .nav.is-stuck { box-shadow: none; }
.t-pagina .nav__trigger, .t-pagina .nav__links > a { font-weight: 500; }

/* ── Escaparate: la foto grande de la portada ───────────────────── */
.t-escaparate { position: relative; background: var(--t-loseta); overflow: hidden; }
.t-escaparate__foto { display: block; width: 100%; height: clamp(560px, 82vh, 820px); }
.t-escaparate__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; display: block; }
.t-escaparate__texto {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start;
  padding-top: clamp(48px, 9vh, 104px);
  pointer-events: none;
}
.t-escaparate__caja { max-width: 560px; pointer-events: auto; }
.t-escaparate h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}
.t-escaparate__sub { margin-top: 1.1rem; max-width: 30rem; font-size: 1.05rem; line-height: 1.55; color: #3E3E3E; }
.t-escaparate__botones { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.t-escaparate__botones .btn { border-radius: 2px; box-shadow: none; min-height: 48px; padding-block: 0; }
.t-escaparate__precio { margin-top: 1.1rem; font-size: 0.86rem; color: var(--t-texto-2); }
.t-escaparate__precio a { color: var(--t-tinta); text-decoration: underline; text-underline-offset: 0.25em; }

/* Etiqueta de "compra el look" sobre la pieza de la foto. */
.t-punto {
  position: absolute;
  left: var(--x, 72%); top: var(--y, 64%);
  display: flex; align-items: center; gap: 0.6rem;
  transform: translate(-12px, -12px);
}
.t-punto__aro {
  position: relative; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  flex: none;
}
.t-punto__aro::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--t-tinta);
}
.t-punto__ficha {
  display: grid; gap: 0.1rem;
  padding: 0.6rem 0.85rem; border-radius: 2px;
  background: #fff; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem; line-height: 1.3; color: var(--t-tinta);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.t-punto__ficha b { font-weight: 600; }
.t-punto__ficha span { color: var(--t-texto-2); }
.t-punto:hover .t-punto__ficha, .t-punto:focus-visible .t-punto__ficha { opacity: 1; transform: none; }
.t-punto:focus-visible { outline: none; }
.t-punto:focus-visible .t-punto__aro { outline: 2px solid var(--t-naranja); outline-offset: 3px; }

/* ── Vitrina: la cuadrícula de piezas ───────────────────────────── */
.t-seccion { padding-block: var(--t-seccion); }
.t-seccion--corta { padding-block: clamp(48px, 6vw, 80px); }
.t-cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.t-cabeza__texto { max-width: 40rem; display: grid; gap: 0.7rem; }
.t-cabeza__texto p { color: var(--t-texto-2); max-width: 36rem; }

.t-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--t-hueco); }
.t-pieza { position: relative; display: grid; gap: 0.85rem; align-content: start; }
.t-pieza__foto {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--t-loseta);
  transition: background .3s ease;
}
.t-pieza__foto img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity .35s ease;
}
.t-pieza__foto img + img { opacity: 0; }
.t-pieza:hover .t-pieza__foto { background: var(--t-loseta-2); }
.t-pieza:hover .t-pieza__foto img + img { opacity: 1; }
.t-pastilla {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.6rem; border-radius: 999px;
  background: #fff; color: var(--t-tinta);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
}
.t-pastilla svg { width: 14px; height: 14px; }
.t-pieza__datos { display: grid; gap: 0.2rem; }
.t-pieza__nombre { font-size: 0.98rem; font-weight: 500; color: var(--t-tinta); line-height: 1.3; }
.t-pieza__nombre a::after { content: ""; position: absolute; inset: 0; }
.t-pieza__medidas { font-size: 0.84rem; color: var(--t-texto-2); }
.t-pieza__precio { font-size: 0.92rem; color: var(--t-tinta); margin-top: 0.15rem; }
.t-pieza__precio small { font-size: 0.74rem; color: var(--t-texto-3); margin-left: 0.35rem; }
.t-bolitas { display: flex; align-items: center; gap: 0.4rem; position: relative; z-index: 1; }
.t-bolita {
  width: 18px; height: 18px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--c, #ccc) center / cover; border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
}
.t-bolita[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px #fff, 0 0 0 3px var(--t-tinta); }
.t-bolitas__n { font-size: 0.78rem; color: var(--t-texto-2); margin-left: 0.15rem; }

/* ── Editorial: foto grande y poco texto, alternando ────────────── */
.t-editorial { display: grid; gap: clamp(56px, 8vw, 112px); }
.t-bloque { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--t-hueco); align-items: center; }
.t-bloque__foto { grid-column: 1 / span 7; background: var(--t-loseta); overflow: hidden; }
.t-bloque__foto img { display: block; width: 100%; height: auto; }
.t-bloque__texto { grid-column: 9 / span 4; display: grid; gap: 0.9rem; }
.t-bloque--der .t-bloque__foto { grid-column: 6 / span 7; order: 2; }
.t-bloque--der .t-bloque__texto { grid-column: 1 / span 4; order: 1; }
.t-bloque__texto p { color: var(--t-texto-2); }
.t-bloque__texto ul { margin: 0.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.t-bloque__texto li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; color: #3E3E3E; line-height: 1.5; }
.t-bloque__texto li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 1px; background: var(--t-tinta);
}
/* La foto del móvil es alta y estrecha: va sobre loseta, centrada. */
.t-bloque__foto--movil { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px); aspect-ratio: 7 / 6; }
.t-bloque__foto--movil img { width: auto; max-height: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.16)); }

/* ── Banda de ambiente a sangre ─────────────────────────────────── */
.t-banda { position: relative; min-height: clamp(420px, 62vh, 640px); display: grid; align-items: end; overflow: hidden; background: var(--t-loseta); }
.t-banda > picture, .t-banda > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-banda__texto { position: relative; padding-block: clamp(32px, 6vw, 72px); }
.t-banda__caja { display: inline-grid; gap: 1.1rem; justify-items: start; max-width: 30rem; padding: clamp(20px, 3vw, 32px); background: rgba(255, 255, 255, 0.94); }
.t-banda__caja p { color: var(--t-texto-2); }

/* ── Servicios de tienda, en cuatro columnas ────────────────────── */
.t-servicios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--t-hueco); border-top: 1px solid var(--t-linea); border-bottom: 1px solid var(--t-linea); }
.t-servicio { display: grid; gap: 0.5rem; align-content: start; padding: clamp(24px, 3vw, 36px) clamp(4px, 1vw, 12px); }
.t-servicio svg { width: 28px; height: 28px; color: var(--t-tinta); margin-bottom: 0.35rem; }
.t-servicio b { font-weight: 600; font-size: 0.98rem; }
.t-servicio p { font-size: 0.9rem; color: var(--t-texto-2); line-height: 1.5; }

/* ── La caja de INSITI: lo único naranja ancho de la página ─────── */
.t-insiti { border: 1px solid var(--t-naranja); padding: clamp(24px, 4vw, 56px); display: grid; gap: clamp(28px, 4vw, 48px); }
.t-insiti__cabeza { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 3rem; align-items: end; }
.t-insiti__cabeza p { color: var(--t-texto-2); }
.t-insiti__botones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.t-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--t-hueco); counter-reset: paso; margin: 0; padding: 0; list-style: none; }
.t-paso { display: grid; gap: 0.75rem; align-content: start; counter-increment: paso; }
.t-paso img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--t-loseta); }
.t-paso b { font-weight: 600; font-size: 1rem; }
.t-paso b::before { content: counter(paso) ". "; color: var(--t-naranja-t); }
.t-paso p { font-size: 0.92rem; color: var(--t-texto-2); }

/* ── Qué es INSITI: el texto que lee Google y la tabla honesta ──── */
.t-quees { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.t-quees__texto { display: grid; gap: 1rem; }
.t-quees__texto p { color: var(--t-texto-2); }
.t-tabla-wrap { overflow-x: auto; }
.t-tabla { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.t-tabla th, .t-tabla td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--t-linea); text-align: left; vertical-align: top; }
.t-tabla thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-texto-2); }
.t-tabla thead th:last-child { color: var(--t-naranja-t); }
.t-tabla td:not(:first-child) { width: 7.5rem; text-align: center; }
.t-tabla th:not(:first-child) { text-align: center; }
.t-si, .t-no { display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: middle; }
.t-no { color: var(--t-texto-3); }
.t-tabla .t-si { color: var(--t-tinta); }
.t-tabla td:last-child .t-si { color: var(--t-naranja-t); }
.t-nota { font-size: 0.8rem; color: var(--t-texto-3); margin-top: 0.75rem; }

/* La aparición al hacer scroll es la de assets/revelar.js (marca .t-pieza,
   .t-paso y .t-servicio además de titulares y articles). */

/* ── Tableta ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .t-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(28px, 4vw, 40px); }
  .t-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-bloque__foto, .t-bloque--der .t-bloque__foto { grid-column: 1 / -1; order: 0; }
  .t-bloque__texto, .t-bloque--der .t-bloque__texto { grid-column: 1 / -1; order: 1; max-width: 36rem; }
  .t-insiti__cabeza, .t-quees { grid-template-columns: minmax(0, 1fr); }
}

/* ── Móvil ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .t-aviso { font-size: 0.75rem; }
  /* En móvil la foto va arriba y el texto debajo, como en las tiendas:
     encima de la foto no se leería. */
  .t-escaparate__foto { height: auto; aspect-ratio: 4 / 5; }
  .t-escaparate__foto img { object-position: 50% 70%; }
  .t-escaparate__texto { position: static; padding: 28px 0 8px; background: var(--t-fondo); }
  .t-escaparate { background: var(--t-fondo); }
  .t-escaparate h1 { font-size: 2.15rem; }
  .t-escaparate__botones { flex-direction: column; align-items: stretch; }
  .t-escaparate__botones .btn, .t-escaparate__botones .t-boton { justify-content: center; }
  .t-punto__ficha { display: none; }
  .t-pasos { grid-template-columns: 1fr; }
  .t-paso { grid-template-columns: 112px minmax(0, 1fr); column-gap: 1rem; align-items: center; }
  .t-paso img { grid-row: span 2; }
  .t-servicios { grid-template-columns: 1fr; }
  .t-servicio { grid-template-columns: 36px minmax(0, 1fr); column-gap: 0.9rem; padding-inline: 0; }
  .t-servicio svg { grid-row: span 2; margin: 0; }
  .t-servicio + .t-servicio { border-top: 1px solid var(--t-linea); }
  .t-banda { min-height: 0; display: block; }
  .t-banda > picture { position: static; display: block; aspect-ratio: 4 / 3; }
  .t-banda > picture img { position: static; }
  .t-banda__texto { padding-block: 24px 0; }
  .t-banda__caja { padding: 0; background: none; }
}

/* ══ Ficha de producto (/demo/<pieza>) ═════════════════════════════
   Dos columnas como en Kave Home o Article: galería 7/12 y compra 5/12. El
   visor que se abre es el de la extensión de Shopify tal cual: sus colores
   no se tocan desde aquí (regla de Lorenzo), solo se coloca su botón. */

/* Barra de INSITI encima de la ficha: blanca, con filete naranja. */
.t-barra { border-bottom: 1px solid var(--t-naranja); background: #fff; font-size: 0.84rem; }
.t-barra .t-wrap { display: flex; align-items: center; gap: 0.75rem 1.5rem; min-height: 48px; flex-wrap: wrap; padding-block: 0.4rem; }
.t-barra__texto { flex: 1 1 18rem; color: var(--t-texto-2); line-height: 1.4; }
.t-barra__texto b { color: var(--t-naranja-t); font-weight: 600; }
.t-barra__corto { display: none; }
@media (max-width: 720px) { .t-barra__corto { display: inline; } }
.t-barra__acciones { display: flex; align-items: center; gap: 1rem; }
.t-barra a { color: var(--t-naranja-t); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

/* Conmutador "Ver como comerciante". */
.t-conmutador { display: inline-flex; align-items: center; gap: 0.55rem; background: none; border: 0; padding: 0.3rem 0; cursor: pointer; font: 500 0.84rem/1 var(--f-sans); color: var(--t-tinta); }
.t-conmutador__riel { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #D5D5D2; transition: background .2s ease; flex: none; }
.t-conmutador__riel::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .2s ease; }
.t-conmutador[aria-pressed="true"] .t-conmutador__riel { background: var(--t-naranja); }
.t-conmutador[aria-pressed="true"] .t-conmutador__riel::after { transform: translateX(14px); }
.t-conmutador:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: 3px; }

/* Cesta en la cabecera. */
.t-cesta-boton { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--t-tinta); border-radius: 2px; }
.t-cesta-boton svg { width: 22px; height: 22px; }
.t-cesta-boton span { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--t-tinta); color: #fff; font: 600 0.66rem/17px var(--f-sans); text-align: center; }
.t-cesta-boton span:empty { display: none; }
.t-cesta-boton:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: 2px; }

.t-migas { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1.1rem 0; font-size: 0.8rem; color: var(--t-texto-2); margin: 0; list-style: none; }
.t-migas li + li::before { content: "/"; margin-right: 0.4rem; color: var(--t-texto-3); }
.t-migas a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.t-ficha { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: var(--t-seccion); }

/* Galería: la foto grande y las miniaturas. */
.t-galeria { display: grid; gap: 12px; position: sticky; top: 92px; }
.t-galeria__principal { position: relative; aspect-ratio: 4 / 5; background: var(--t-loseta); overflow: hidden; }
.t-galeria__principal > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.t-galeria__principal > img.is-escena { object-fit: cover; }
/* El botón "Ver en 3D" de la extensión va arriba a la izquierda de la foto,
   donde lo pone el bloque en la galería de un tema. */
.t-galeria__visor { position: absolute; top: 16px; left: 16px; z-index: 2; }
.t-miniaturas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.t-miniatura { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--t-loseta); cursor: pointer; position: relative; overflow: hidden; }
.t-miniatura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.t-miniatura img.is-escena { object-fit: cover; }
.t-miniatura[aria-current="true"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--t-tinta); }
.t-miniatura:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: 2px; }

/* Columna de compra. */
.t-compra { display: grid; gap: 1.4rem; align-content: start; padding-top: 0.25rem; }
.t-compra__titulo { display: grid; gap: 0.45rem; }
.t-compra h1 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.t-compra__medidas { font-size: 0.92rem; color: var(--t-texto-2); }
.t-compra__precio { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.t-compra__precio b { font-size: 1.35rem; font-weight: 500; color: var(--t-tinta); }
.t-compra__precio small { font-size: 0.76rem; color: var(--t-texto-3); }
.t-opcion { display: grid; gap: 0.7rem; }
.t-opcion legend, .t-opcion__titulo { font-size: 0.88rem; color: var(--t-tinta); padding: 0; }
.t-opcion legend b, .t-opcion__titulo b { font-weight: 600; }
.t-opcion fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.t-opcion__bolitas { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.t-opcion__bolitas .t-bolita { width: 34px; height: 34px; }
.t-compra__fila { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; }
.t-cantidad { display: inline-flex; align-items: center; border: 1px solid var(--t-linea); height: 48px; }
.t-cantidad button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--t-tinta); }
.t-cantidad button:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: -2px; }
.t-cantidad input { width: 36px; height: 100%; border: 0; text-align: center; font: 500 0.95rem var(--f-sans); color: var(--t-tinta); -moz-appearance: textfield; }
.t-cantidad input::-webkit-outer-spin-button, .t-cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.t-compra__medidas-btn { justify-self: start; }
.t-servicio-linea { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; background: var(--t-loseta); font-size: 0.86rem; color: #3E3E3E; line-height: 1.5; }
.t-servicio-linea svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.t-aviso-pieza { font-size: 0.82rem; color: var(--t-texto-2); line-height: 1.5; }

/* Acordeones, cerrados salvo la descripción. */
.t-acordeon { border-top: 1px solid var(--t-linea); }
.t-acordeon details { border-bottom: 1px solid var(--t-linea); }
.t-acordeon summary { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; cursor: pointer; list-style: none; font-size: 0.95rem; font-weight: 500; color: var(--t-tinta); }
.t-acordeon summary::-webkit-details-marker { display: none; }
.t-acordeon summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: var(--t-texto-2); }
.t-acordeon details[open] summary::after { content: "\2212"; }
.t-acordeon summary:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: 2px; }
.t-acordeon__cuerpo { padding: 0 0 1.2rem; display: grid; gap: 0.8rem; font-size: 0.92rem; }
.t-acordeon__cuerpo p { color: var(--t-texto-2); }
.t-acordeon dl { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0; }
.t-acordeon dt { color: var(--t-texto-2); }
.t-acordeon dd { margin: 0; color: var(--t-tinta); }
.t-cotas { display: block; width: 100%; max-width: 360px; height: auto; color: var(--t-tinta); }

/* "Combina con" y el catálogo comparten la rejilla de la portada. */
.t-combina { border-top: 1px solid var(--t-linea); padding-block: clamp(48px, 7vw, 96px); }

/* Filtros del catálogo. */
.t-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; list-style: none; }
.t-filtro { min-height: 36px; padding: 0 1rem; border: 1px solid var(--t-linea); background: #fff; color: var(--t-tinta); font: 500 0.84rem/1 var(--f-sans); cursor: pointer; border-radius: 999px; }
.t-filtro[aria-pressed="true"] { background: var(--t-tinta); border-color: var(--t-tinta); color: #fff; }
.t-filtro:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: 2px; }
.t-pieza[hidden] { display: none; }

/* ── Cesta simulada: cajón lateral y hoja de pago ───────────────── */
.t-velo { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 20, 0.36); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.t-velo.is-abierto { opacity: 1; pointer-events: auto; }
.t-cajon { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 100vw); background: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 40px -30px rgba(0, 0, 0, 0.4); }
.t-cajon.is-abierto { transform: none; }
.t-cajon__cabeza { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--t-linea); }
.t-cajon__cabeza h2 { font-size: 1.05rem; font-weight: 600; }
.t-cerrar { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--t-tinta); }
.t-cerrar svg { width: 20px; height: 20px; }
.t-cerrar:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: -2px; }
.t-cajon__lineas { overflow-y: auto; padding: 0.5rem 1.25rem; margin: 0; list-style: none; }
.t-linea { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--t-linea); align-items: start; }
.t-linea img { width: 76px; height: 95px; object-fit: contain; background: var(--t-loseta); }
.t-linea b { display: block; font-weight: 500; font-size: 0.92rem; }
.t-linea span { display: block; font-size: 0.82rem; color: var(--t-texto-2); margin-top: 0.15rem; }
.t-linea__precio { font-size: 0.9rem; }
.t-linea__quitar { margin-top: 0.4rem; padding: 0; border: 0; background: none; font: 0.8rem var(--f-sans); color: var(--t-texto-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.t-cajon__vacia { padding: 2rem 0; color: var(--t-texto-2); font-size: 0.92rem; }
.t-cajon__pie { padding: 1.1rem 1.25rem 1.4rem; border-top: 1px solid var(--t-linea); display: grid; gap: 0.8rem; }
.t-cajon__total { display: flex; justify-content: space-between; font-size: 0.98rem; }
.t-cajon__total b { font-weight: 600; }
.t-cajon__pie small { font-size: 0.76rem; color: var(--t-texto-3); }
.t-cajon__pie .t-boton { width: 100%; }

.t-hoja { position: fixed; z-index: 95; left: 50%; top: 50%; width: min(520px, calc(100vw - 32px)); transform: translate(-50%, -46%); opacity: 0; pointer-events: none; background: #fff; border-top: 3px solid var(--t-naranja); padding: clamp(24px, 4vw, 36px); display: grid; gap: 1rem; transition: opacity .2s ease, transform .25s ease; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45); }
.t-hoja.is-abierta { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.t-hoja h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.t-hoja p { color: var(--t-texto-2); font-size: 0.95rem; }
.t-hoja__botones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.3rem; }
.t-hoja .t-cerrar { position: absolute; top: 8px; right: 8px; }

/* ── Capa de comerciante: pines y panel, apagados por defecto ───── */
.t-pin { position: relative; display: none; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--t-naranja); color: #fff; font: 700 0.72rem/22px var(--f-sans); text-align: center; cursor: pointer; flex: none; vertical-align: middle; box-shadow: 0 0 0 4px rgba(215, 107, 48, 0.18); }
.es-comerciante .t-pin { display: inline-block; }
.t-pin:focus-visible { outline: 2px solid var(--t-tinta); outline-offset: 2px; }
.t-pin-ancla { display: flex; align-items: center; gap: 0.6rem; }
.t-nota-pin { position: absolute; z-index: 30; width: min(280px, 80vw); padding: 0.85rem 1rem; background: #fff; border: 1px solid var(--t-naranja); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.4); font-size: 0.84rem; line-height: 1.5; color: #3E3E3E; }
.t-nota-pin b { display: block; color: var(--t-naranja-t); font-weight: 600; margin-bottom: 0.2rem; }
.t-nota-pin[hidden] { display: none; }

.t-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(380px, 100vw); background: #fff; border-left: 1px solid var(--t-naranja); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.es-comerciante .t-panel { transform: none; }
.t-panel__cabeza { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--t-linea); }
.t-panel__cabeza h2 { font-size: 1rem; font-weight: 600; color: var(--t-naranja-t); }
.t-panel__lista { overflow-y: auto; margin: 0; padding: 0.5rem 1.25rem; list-style: none; counter-reset: pin; }
.t-panel__lista li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--t-linea); font-size: 0.88rem; line-height: 1.5; color: #3E3E3E; }
.t-panel__lista li::before { counter-increment: pin; content: counter(pin); width: 22px; height: 22px; border-radius: 50%; background: var(--t-naranja); color: #fff; font: 700 0.72rem/22px var(--f-sans); text-align: center; }
.t-panel__lista b { display: block; color: var(--t-tinta); font-weight: 600; }
.t-panel__pie { padding: 1rem 1.25rem 1.3rem; border-top: 1px solid var(--t-linea); display: grid; gap: 0.6rem; }
.t-panel__pie .t-boton { width: 100%; }
/* Con el panel abierto, la ficha deja sitio en pantallas anchas. */
@media (min-width: 1280px) {
  .es-comerciante .t-contenido { padding-right: 380px; transition: padding .3s ease; }
}

/* Botón flotante del modo comerciante en móvil. */
.t-flotante { display: none; }

/* Barra fija de compra en móvil. */
.t-fija { display: none; }

@media (max-width: 1080px) {
  .t-ficha { grid-template-columns: 1fr; }
  .t-galeria { position: static; }
}
@media (max-width: 720px) {
  .t-barra__acciones .t-conmutador { display: none; }
  .t-barra__largo { display: none; }
  .t-barra .t-wrap { flex-wrap: nowrap; min-height: 40px; }
  .t-barra__texto { flex: 1 1 auto; }
  /* En la tienda, el botón naranja de la cabecera deja sitio a la cesta: el
     "Instalar gratis" sigue en la barra de INSITI, justo debajo. */
  .t-pagina--tienda .nav__actions .btn--primary { display: none; }
  .t-flotante { display: inline-flex; position: fixed; right: 16px; bottom: 84px; z-index: 70; align-items: center; gap: 0.45rem; padding: 0 0.9rem; min-height: 40px; border: 0; border-radius: 999px; background: var(--t-naranja); color: #14100D; font: 600 0.8rem/1 var(--f-sans); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); cursor: pointer; }
  .t-flotante[aria-pressed="true"] { background: var(--t-tinta); color: #fff; }
  .t-fija { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; gap: 0.75rem; padding: 0.65rem 16px calc(0.65rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--t-linea); }
  .t-fija__precio { flex: 1; display: grid; font-size: 0.8rem; color: var(--t-texto-2); }
  .t-fija__precio b { font-size: 1rem; font-weight: 500; color: var(--t-tinta); }
  .t-pagina--ficha { padding-bottom: 72px; }
  .t-miniaturas { grid-template-columns: repeat(5, 64px); overflow-x: auto; }
  .t-panel { top: auto; left: 0; width: 100%; max-height: 72vh; border-left: 0; border-top: 1px solid var(--t-naranja); transform: translateY(100%); }
  .es-comerciante .t-panel { transform: none; }
  .t-compra__fila { grid-template-columns: auto minmax(0, 1fr); }
}

/* Pin 3 de la capa de comerciante: junto al botón Ver en 3D que el visor
   real ancla en la esquina de la foto. */
.t-galeria__pin { position: absolute; top: 60px; right: 22px; z-index: 3; }

/* Bolitas de la ficha como radios de tema: la marca va en el radio elegido. */
.t-bolita-op { position: relative; display: inline-block; cursor: pointer; }
.t-bolita-op .t-bolita { display: block; width: 34px; height: 34px; }
.t-bolita-op input:checked + .t-bolita { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px var(--k-fondo, #fff), 0 0 0 3px var(--k-tinta, #1B1B1B); }
.t-bolita-op input:focus-visible + .t-bolita { outline: 2px solid var(--t-naranja); outline-offset: 3px; }

/* Arreglos de la revisión del 18-11 */
.t-rejilla { margin: 0; padding: 0; list-style: none; }
/* La sombra del cajón solo cuando está abierto: escondido fuera de la
   pantalla, su sombra asomaba por el borde derecho. */
.t-cajon { box-shadow: none; }
.t-cajon.is-abierto { box-shadow: -20px 0 40px -30px rgba(0, 0, 0, 0.4); }
/* El panel de comerciante empieza bajo la cabecera y no la tapa. */
@media (min-width: 721px) { .t-panel { top: 73px; } }

/* Ficha dentro del configurador de la portada (?incrustado=1): solo la
   ficha, sin nada de la web alrededor. */
.t-incrustado .nav, .t-incrustado .t-barra, .t-incrustado .t-migas,
.t-incrustado .t-combina, .t-incrustado .t-seccion--corta, .t-incrustado .footer,
.t-incrustado .t-fija, .t-incrustado .t-flotante, .t-incrustado .avisocookies { display: none !important; }
.t-incrustado .t-pagina--ficha { padding-bottom: 0; }
.t-incrustado .t-ficha { padding-block: 24px; }
.t-incrustado .t-galeria { top: 24px; }

/* El "tema" de la tienda de ejemplo: el botón Ver medidas de la extensión
   lleva las clases de botón de un tema tipo Dawn (.button y
   .button--secondary) y se pinta con lo que le dé el tema. Sin estas reglas
   salía como un botón gris del navegador. Solo lo usa ese botón; nada del
   visor lleva estas clases. */
.t-pagina .button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.1rem; font: 500 0.9rem/1 var(--f-sans); border: 1px solid var(--t-tinta); border-radius: 2px; background: var(--t-tinta); color: #fff; cursor: pointer; }
.t-pagina .button--secondary { background: #fff; color: var(--t-tinta); border-color: #CFCFCF; }
.t-pagina .button--secondary:hover { border-color: var(--t-tinta); }
.t-pagina .button:focus-visible { outline: 2px solid var(--t-naranja); outline-offset: 3px; }
/* Galería de la ficha en cuadrado y con la pieza centrada: en 4:5 los
   renders dejaban media foto vacía encima del mueble. */
.t-galeria__principal { aspect-ratio: 1 / 1; }
.t-galeria__principal > img:not(.is-escena) { object-fit: cover; object-position: 50% 62%; }
.t-miniatura { aspect-ratio: 1 / 1; }
.t-miniatura img:not(.is-escena) { object-fit: cover; object-position: 50% 62%; }
