/* Kit-tools · Modelo 4 — piel clara
   ------------------------------------------------------------------
   Va encima de la hoja del modelo 3 (/modelo-3/assets/css/sistema.css):
   los mismos componentes con otra piel.
   - Fondo blanco; gris muy claro para separar zonas, sin líneas finas.
   - Otras formas: radios grandes, píldoras, tarjetas separadas con sombra
     suave en vez de la rejilla de línea de 1 px del modelo 3.
   - Titulares a anchura normal (en el 3 van estrechos): voz más de producto.
   - Un toque de "IA": el degradado naranja → magenta → violeta solo en lo que
     responde (asistente, recomendador, lectura en directo). La marca sigue
     siendo el naranja en los botones de acción.
   ------------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --surface: #f1f3f6;
  --raised: #eef1f5;
  --line: rgba(16, 24, 32, 0.08);
  --line-2: rgba(16, 24, 32, 0.13);
  --line-3: rgba(16, 24, 32, 0.22);
  --text: #0f1419;
  --muted: #4a5561;   /* 7,6:1 sobre blanco */
  --faint: #66717c;   /* 5,0:1 sobre blanco */
  --brand: #f39910;
  --brand-soft: #9a5200; /* naranja para texto: 5,9:1 sobre blanco */
  --brand-ink: #1b1204;
  --brand-wash: rgba(243, 153, 16, 0.12);
  --brand-line: rgba(243, 153, 16, 0.55);
  --r-panel: 24px;
  --r-card: 18px;
  --r-ctl: 12px;
  --fill-1: rgba(16, 24, 32, 0.025);
  --fill-2: rgba(16, 24, 32, 0.05);
  --fill-3: rgba(16, 24, 32, 0.08);
  --grid-line: rgba(16, 24, 32, 0.045);
  --scrim: rgba(15, 20, 25, 0.32);
  --shadow-panel: 0 1px 2px rgba(16, 24, 32, 0.05), 0 16px 40px -20px rgba(16, 24, 32, 0.22);
  --shadow-pop: 0 1px 2px rgba(16, 24, 32, 0.06), 0 30px 60px -28px rgba(16, 24, 32, 0.3);
  --shadow-dialog: 0 40px 100px -30px rgba(16, 24, 32, 0.35);
  --drop: rgba(16, 24, 32, 0.2);
  --sombra: 0 1px 2px rgba(16, 24, 32, 0.05), 0 10px 28px -16px rgba(16, 24, 32, 0.2);
  --sombra-alta: 0 2px 4px rgba(16, 24, 32, 0.05), 0 24px 48px -24px rgba(16, 24, 32, 0.32);
  --ia: linear-gradient(120deg, #f39910 0%, #ec5a6a 40%, #d9489c 65%, #7a5cff 100%);
  --ia-suave: linear-gradient(120deg, rgba(243, 153, 16, 0.1), rgba(217, 72, 156, 0.08) 55%, rgba(122, 92, 255, 0.1));
  --tinta: #0f1419;
  /* Errores del formulario: el rojo del modelo 3 es para fondo oscuro. */
  --danger: #c8321e;
  --danger-soft: #b42318; /* 6,6:1 sobre blanco */
}

/* ---------------------------------------------------------------- base */
h1, h2 { font-stretch: 100%; letter-spacing: -0.03em; }
h3 { letter-spacing: -0.015em; }
::selection { background: rgba(243, 153, 16, 0.3); color: var(--text); }
:focus-visible { outline-color: #7a5cff; }
.chispa { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------- barra */
.bar { background: rgba(255, 255, 255, 0.82); }
.bar__nav a { border-radius: var(--r-pill); }
.bar__nav a[aria-current="page"] { background: var(--fill-2); }
.cmdk-open, .tray-open { border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--sombra); }
@media (max-width: 900px) {
  .bar__nav { background: var(--bg); box-shadow: var(--sombra-alta); }
  .bar__nav a { border-radius: 0; }
}

/* ---------------------------------------------------------------- piezas */
.btn { border-radius: var(--r-pill); }
.btn--brand { box-shadow: 0 10px 22px -12px rgba(243, 153, 16, 0.9); }
.btn--brand:hover { background: #ffab2e; }
.btn--ghost { background: var(--bg); box-shadow: var(--sombra); }
.add { border-radius: var(--r-pill); background: var(--bg); }
.chip { background: var(--bg); }
.icon-btn { border-radius: var(--r-pill); }
.label { font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--brand-soft); }
.pill { background: var(--bg); box-shadow: var(--sombra); }

/* ---------------------------------------------------------------- secciones */
.sec--line { border-top: 0; }
.sec--line:nth-of-type(even) { background: var(--bg-2); }
.band { border: 0; background: var(--bg); }
.logos img { opacity: 0.55; }
.phead {
  border-bottom: 0;
  background: radial-gradient(60% 120% at 0% 0%, rgba(243, 153, 16, 0.09), transparent 60%),
              radial-gradient(50% 100% at 100% 0%, rgba(122, 92, 255, 0.07), transparent 60%), var(--bg);
}
.close { border-top: 0; background: var(--bg-2); }
.close__in { background: var(--bg); border-radius: 32px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--sombra); }
.foot { border-top: 0; background: var(--bg-2); }

/* La rejilla de línea fina del modelo 3 pasa a tarjetas separadas */
.ops, .steps, .specimens { gap: 14px; background: none; border: 0; overflow: visible; }
.op, .step, .specimen { border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sombra); overflow: hidden; }
.op { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
a.op:hover { background: var(--bg); transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.step { background: var(--bg); }
.specimen__img { background: radial-gradient(circle at 50% 55%, #ffffff 0%, var(--bg-2) 75%); }
.facts { gap: 14px; border: 0; overflow: visible; }
.facts > div, .facts > div:first-child { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--sombra); }

.blist, .fams { display: grid; gap: 12px; border: 0; overflow: visible; }
.brow, .brow:first-child, .fam, .fam:first-child { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--sombra); }
.brow:hover { background: var(--bg); box-shadow: var(--sombra-alta); }
.brow__logo img, .fam__logo img, .group__logo img { opacity: 0.8; }
.group, .spec, .film, .source, .req, .refbox, .cats, .enviada { box-shadow: var(--sombra); }
.spec, .req, .enviada { background: var(--bg); }
.cats { border-radius: var(--r-panel); }
.cbar__search { border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--sombra); }
.cmdk__box, .tray__panel { background: var(--bg); }
.decode { border-radius: var(--r-card); }

/* ---------------------------------------------------------------- selector de propuestas */
.props {
  position: fixed; left: 50%; bottom: 16px; z-index: 45; translate: -50% 0;
  /* Con left: 50% el ancho disponible es medio viewport: sin esto, los textos
     se parten en dos líneas en pantallas medianas. */
  width: max-content; max-width: calc(100vw - 16px); white-space: nowrap;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: var(--r-pill); background: var(--tinta); color: #fff;
  box-shadow: 0 20px 50px -18px rgba(16, 24, 32, 0.6);
}
.props__t { padding: 0 8px 0 10px; font-size: 12.5px; color: #aab4bd; }
.props__a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: var(--r-pill); font-size: 14px; color: #dfe5ea; transition: background-color var(--fast) var(--ease); }
.props__a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 12px; }
.props__a:hover { background: rgba(255, 255, 255, 0.08); }
.props__a[aria-current="page"] { background: #fff; color: var(--tinta); }
.props__a[aria-current="page"] b { background: var(--ia); color: #fff; }
.props__a:focus-visible { outline-color: #fff; }
.is-home .foot { padding-bottom: 72px; }
@media (max-width: 640px) {
  .props { left: 8px; right: 8px; bottom: 8px; translate: none; width: auto; justify-content: space-between; }
  .props__t { display: none; }
  .props__a { flex: 1; justify-content: center; padding: 0 8px 0 4px; font-size: 13px; gap: 6px; }
}

/* ---------------------------------------------------------------- insignia "IA" */
.ia-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: var(--sombra); font-size: 13.5px; font-weight: 580; color: var(--text);
}

/* ================================================================ A · ASISTENTE */
.asis {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: calc(100svh - var(--bar-h));
  padding: clamp(40px, 8vh, 96px) var(--gutter) 88px;
}
/* Aurora: tres manchas de color muy suaves detrás del buscador */
.asis::before {
  content: ""; position: absolute; inset: 0 0 30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 45% at 28% 32%, rgba(243, 153, 16, 0.16), transparent 70%),
    radial-gradient(34% 42% at 72% 26%, rgba(122, 92, 255, 0.13), transparent 70%),
    radial-gradient(30% 40% at 52% 62%, rgba(217, 72, 156, 0.09), transparent 70%);
  filter: blur(8px);
}
.asis__in { width: min(100%, 780px); margin: 0 auto; }
.asis__head { text-align: center; }
.asis__t { margin: 22px 0 14px; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1; font-weight: 650; }
.asis__lede { max-width: 60ch; margin: 0 auto 30px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); }

.prompt {
  position: relative; z-index: 0;
  display: flex; align-items: flex-end; gap: 10px;
  padding: 10px 10px 10px 22px; border-radius: 30px; background: var(--bg);
  box-shadow: var(--sombra-alta);
}
/* Anillo de degradado: un borde de 1,5 px que se enciende al escribir */
.prompt::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit;
  background: var(--ia); opacity: 0.45; transition: opacity 0.25s var(--ease);
}
.prompt::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg); }
.prompt:focus-within::before { opacity: 1; }
.prompt:focus-within { box-shadow: 0 0 0 7px rgba(217, 72, 156, 0.08), var(--sombra-alta); }
.prompt textarea {
  flex: 1; min-width: 0; max-height: 168px; padding: 11px 0; border: 0; outline: 0; resize: none;
  background: transparent; font-size: 1.1rem; line-height: 1.5; color: var(--text);
}
.prompt textarea::placeholder { color: var(--faint); }
.prompt__go {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border: 0; border-radius: 50%; background: var(--tinta); color: #fff;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.prompt__go:hover { background: #000; transform: translateY(-1px); }
.prompt__go .i { width: 20px; height: 20px; stroke-width: 2; }

.sugs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.sug {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.75);
  font-size: 14px; color: var(--muted); text-align: left;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.sug:hover { color: var(--text); border-color: var(--line-3); background: var(--bg); }
.asis__nota { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint); }

/* Conversación */
.hilo { display: grid; gap: 18px; }
.asis.is-chat { align-items: start; }
.asis.is-chat .asis__head { text-align: left; }
.asis.is-chat .asis__t { margin: 16px 0 22px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.asis.is-chat .asis__lede, .asis.is-chat .asis__nota { display: none; }
.asis.is-chat .hilo { margin-bottom: 22px; }
.asis.is-chat .prompt { position: sticky; bottom: 76px; }
.asis.is-chat .sugs { justify-content: flex-start; }

.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg--yo { justify-content: flex-end; }
.msg--yo .msg__b {
  max-width: min(80%, 560px); padding: 11px 16px; border-radius: 22px 22px 6px 22px;
  background: var(--tinta); color: #fff; font-size: 15.5px;
}
.msg__av { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--ia); box-shadow: 0 8px 18px -8px rgba(217, 72, 156, 0.7); }
.msg__av svg { width: 18px; height: 18px; }
.msg__av path { fill: #fff; }
.msg--kt .msg__b {
  flex: 1; min-width: 0; padding: 16px 18px 14px; border-radius: 6px 22px 22px 22px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sombra);
}
.msg--kt .msg__b.is-nueva { animation: kt-sube 0.35s var(--ease); }
@keyframes kt-sube { from { opacity: 0; transform: translateY(6px); } }
.pensando { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.pensando__p { display: inline-flex; gap: 5px; }
.pensando__p i { width: 7px; height: 7px; border-radius: 50%; background: var(--ia); animation: kt-punto 1s var(--ease) infinite; }
.pensando__p i:nth-child(2) { animation-delay: 0.15s; }
.pensando__p i:nth-child(3) { animation-delay: 0.3s; }
@keyframes kt-punto { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.resp__t { font-size: 15.5px; margin-bottom: 10px; }
.entiendo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--faint); }
.tag--ia { border-color: transparent; background: var(--ia-suave); color: var(--text); }
.resp__grupo { margin-top: 14px; }
.resp__grupo h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 1.02rem; }
.resp__grupo h3 img { width: 40px; height: 40px; padding: 4px; object-fit: contain; border-radius: 12px; background: var(--bg-2); }
.resp__grupo h3 a:hover { color: var(--brand-soft); }
.resp__n { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); }
.fila {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.fila__logo img { width: auto; max-width: 96px; max-height: 28px; opacity: 0.85; }
.fila__txt { font-size: 13.5px; color: var(--muted); }
.fila__txt b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.fila__txt .tag { margin-left: 6px; height: 20px; font-size: 10.5px; vertical-align: 2px; }
.enl-cat { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--brand-soft); }
.enl-cat .i { width: 12px; height: 12px; }
.enl-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.resp__mas { display: inline-flex; margin-top: 8px; font-size: 14px; }
.sigue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13.5px; color: var(--faint); }
.sigue .sug { min-height: 32px; padding: 4px 12px; font-size: 13.5px; }
.resp__nueva { margin-top: 4px; }
@media (max-width: 640px) {
  .fila { grid-template-columns: minmax(0, 1fr) auto; }
  .fila__logo { grid-column: 1 / -1; }
  .asis.is-chat .prompt { bottom: 64px; }
}

/* ================================================================ B · PASO A PASO */
.guia { padding: clamp(40px, 7vh, 88px) 0 clamp(64px, 8vw, 104px); background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); }
.guia__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.guia__intro { position: sticky; top: calc(var(--bar-h) + 32px); }
.guia__intro h1 { margin: 20px 0 14px; font-size: clamp(2.3rem, 3.8vw, 3.2rem); line-height: 1.02; font-weight: 650; }
.guia__intro > p { color: var(--muted); max-width: 44ch; }
.guia__texto {
  display: flex; align-items: center; gap: 8px; margin-top: 26px; padding: 6px 6px 6px 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg); box-shadow: var(--sombra);
}
.guia__texto:focus-within { border-color: rgba(122, 92, 255, 0.45); box-shadow: 0 0 0 5px rgba(122, 92, 255, 0.08), var(--sombra); }
.guia__texto > .i { color: var(--faint); }
.guia__texto input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.guia__texto .btn { height: 40px; }

.guia__panel { padding: clamp(18px, 2.4vw, 28px); border-radius: 30px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sombra-alta); }
.guia__pasos { display: grid; gap: 24px; }
.guia__paso h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; font-weight: 620; letter-spacing: -0.01em; }
.guia__paso h2 small { font-size: 12.5px; font-weight: 400; color: var(--faint); }
.guia__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; font-weight: 650; }
.guia__paso.is-hecho .guia__n { border-color: transparent; background: var(--ia); color: #fff; }
.guia__ops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gop {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 72px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.gop b { font-size: 15px; font-weight: 600; line-height: 1.2; }
.gop small { font-size: 12px; color: var(--faint); }
.gop:hover { border-color: var(--line-3); box-shadow: var(--sombra); }
.gop[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.gop[aria-pressed="true"] small { color: #c3cbd2; }
.guia__mats, .guia__tipos { display: flex; flex-wrap: wrap; gap: 8px; }
.iso {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg); font-size: 14px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.iso__l { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: 13px; font-weight: 700; }
.iso[data-g-mat="M"] .iso__l { color: var(--tinta); }
.iso:hover { border-color: var(--line-3); }
.iso[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.guia__tipos .chip.is-fuera { display: none; }

.guia__res { margin-top: 24px; padding: 18px; border-radius: 22px; background: var(--ia-suave); border: 1px solid rgba(217, 72, 156, 0.14); }
.guia__vacio { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; }
.rec__t { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 620; }
.rec__por { margin: 6px 0 4px; font-size: 13.5px; color: var(--muted); }
.rec__grupo { margin-top: 12px; padding: 14px 16px 4px; border-radius: 18px; background: var(--bg); box-shadow: var(--sombra); }
.rec__grupo.is-nueva { animation: kt-sube 0.3s var(--ease) both; }
.rec__grupo .resp__grupo { margin-top: 0; }
@media (max-width: 960px) {
  .guia__in { grid-template-columns: 1fr; }
  .guia__intro { position: static; }
}
@media (max-width: 560px) { .guia__ops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ C · AL INSTANTE (la portada elegida) */
.insta { padding: clamp(16px, 3vh, 32px) 0 clamp(64px, 8vw, 104px); }

/* Escena: el vídeo de mecanizado de fondo, en un panel redondeado. El velo
   oscurece la izquierda (donde va el titular) y deja el vídeo limpio a la
   derecha. */
.escena {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(440px, 64vh, 640px);
  padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(84px, 9vw, 116px);
  border-radius: 32px; color: #fff;
  background: var(--tinta) url("/videos/hero-taladrado.jpg") center / cover no-repeat;
  box-shadow: var(--sombra-alta);
}
.escena__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.escena__velo {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.82) 0%, rgba(8, 11, 14, 0.55) 42%, rgba(8, 11, 14, 0.08) 78%),
    linear-gradient(0deg, rgba(8, 11, 14, 0.6) 0%, transparent 42%);
}
.escena__txt { max-width: 640px; }
.escena__txt h1 { margin: 18px 0 14px; max-width: 12ch; color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 0.98; font-weight: 660; letter-spacing: -0.045em; }
.escena__txt > p:last-child { max-width: 50ch; color: rgba(255, 255, 255, 0.84); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.ia-badge--oscuro { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.escena__cred { position: absolute; right: 22px; bottom: 16px; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }

/* El buscador monta sobre el borde de la escena */
.insta__box { position: relative; z-index: 20; max-width: 820px; margin: -40px clamp(12px, 4vw, 64px) 0; }
.insta__campo {
  position: relative; z-index: 0;
  display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 16px 0 22px;
  border-radius: 22px; background: var(--bg); box-shadow: 0 24px 60px -24px rgba(16, 24, 32, 0.45);
}
.insta__campo::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; background: var(--line-2); transition: background 0.25s var(--ease); }
.insta__campo::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg); }
.insta__campo:focus-within::before { background: var(--ia); }
.insta__campo > .i { width: 22px; height: 22px; color: var(--faint); }
.insta__campo input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1.15rem; }
.insta__campo input::-webkit-search-cancel-button { cursor: pointer; }
.insta__lee { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; margin-top: 12px; font-size: 13px; color: var(--faint); }
.insta__lee .tag { animation: kt-sube 0.25s var(--ease) both; }
.insta__panel {
  position: absolute; left: 0; right: 0; top: 82px; z-index: 30;
  max-height: min(62vh, 560px); overflow: auto; padding: 8px;
  border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.ip__sec { padding: 10px 12px 4px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.ip__it {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 16px; color: var(--text);
}
a.ip__it:hover, a.ip__it:focus-visible { background: var(--bg-2); outline: none; }
.ip__img { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.ip__img img { width: 40px; height: 40px; object-fit: contain; }
.ip__img--logo img { width: 42px; height: auto; max-height: 18px; }
.ip__img--ia { background: var(--ia-suave); }
.ip__txt b { display: block; font-size: 15px; font-weight: 600; }
.ip__txt span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip__txt .enl-cat { white-space: nowrap; }
.ip__ir { color: var(--faint); }
.ip__it .add { justify-self: end; }
/* Respuestas del buscador (precio, contacto, qué es…): texto completo y las
   acciones debajo */
.ip__it--resp { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
.ip__it--resp .ip__txt span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.ip__acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ip__acts .link { font-size: 13.5px; }
.ip__acts .add { justify-self: start; }
.ip__sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 12px 10px; font-size: 13px; color: var(--muted); }
.ip__pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* Mosaico de productos: todos con imagen */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 184px; grid-auto-flow: dense; gap: 14px; margin-top: 40px; }
.bento__t {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 18px 20px; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.bento__t:hover { transform: translateY(-3px); background: var(--bg); box-shadow: var(--sombra-alta); }
.bento__t--xl { grid-column: span 2; grid-row: span 2; }
.bento__t--ancho { grid-column: span 2; }
.bento__t--alto { grid-row: span 2; }
.bento__n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.bento__name { max-width: 13ch; font-size: 1.28rem; font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; }
.bento__t--xl .bento__name { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.bento__sub { max-width: 22ch; font-size: 13px; color: var(--muted); }
/* Recorte: en la esquina, detrás del texto */
.bento__img {
  position: absolute; z-index: -1; right: -2%; bottom: -6%; width: 54%; height: 72%;
  object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 16px 22px rgba(16, 24, 32, 0.18));
  transition: transform 0.35s var(--ease);
}
.bento__t--xl .bento__img { width: 70%; height: 70%; right: 4%; bottom: 4%; }
.bento__t--ancho .bento__img { width: 48%; height: 92%; }
.bento__t:hover .bento__img { transform: scale(1.04) rotate(-2deg); }
/* En las casillas pequeñas, el texto a la izquierda y la pieza a la derecha,
   sin pisarse */
.bento__t:not(.bento__t--xl):not(.bento__t--ancho):not(.bento__t--foto) :is(.bento__name, .bento__sub) { max-width: 58%; }
/* En el móvil la casilla es estrecha: el nombre, a todo el ancho (la pieza va
   abajo), para que "Machos de roscar" no se parta en tres líneas. */
@media (max-width: 560px) { .bento__t:not(.bento__t--xl):not(.bento__t--ancho):not(.bento__t--foto) .bento__name { max-width: none; } }
.bento__t:not(.bento__t--xl):not(.bento__t--ancho) .bento__img { width: 46%; height: 64%; right: -1%; bottom: -4%; }
.bento__t--marcas { background: var(--bg); }
.bento__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: center; width: 100%; margin-top: auto; }
.bento__logos img { width: auto; max-width: 100%; max-height: 18px; opacity: 0.7; }
/* Fotografía: a sangre, con un velo para que el texto blanco se lea */
.bento__t--foto { justify-content: flex-end; background: var(--tinta); border-color: transparent; color: #fff; }
.bento__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.bento__t--foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 11, 14, 0.78) 0%, rgba(8, 11, 14, 0.2) 55%, rgba(8, 11, 14, 0) 80%); }
.bento__t--foto .bento__n { color: rgba(255, 255, 255, 0.75); }
.bento__t--foto .bento__sub { color: rgba(255, 255, 255, 0.82); }
.bento__t--foto:hover { background: var(--tinta); }
.bento__t--foto:hover .bento__foto { transform: scale(1.05); }
.bento__t--dato { justify-content: flex-end; background: var(--tinta); border-color: var(--tinta); color: #fff; }
.bento__t--dato .bento__sub { color: #c3cbd2; }
.bento__t--dato:hover { background: #000; }
.bento__num { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 680; line-height: 1; letter-spacing: -0.04em; background: var(--ia); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Las marcas, por dentro */
.dentro-sec { padding-top: 0; }
.dentro { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dentro__t {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 3 / 4; padding: 14px; border-radius: 22px; background: var(--tinta); color: #fff;
  box-shadow: var(--sombra);
}
.dentro__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.dentro__t::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 11, 14, 0.8) 0%, rgba(8, 11, 14, 0.15) 50%, rgba(8, 11, 14, 0.05) 100%); }
.dentro__t:hover .dentro__foto { transform: scale(1.05); }
.dentro__logo { align-self: flex-start; display: grid; place-items: center; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5); }
.dentro__logo img { width: auto; max-width: 92px; max-height: 20px; }
.dentro__txt b { display: block; font-size: 1.05rem; font-weight: 640; }
.dentro__txt span { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

/* Selector de vídeo (botones, no enlaces) */
button.props__a { border: 0; background: transparent; font: inherit; cursor: pointer; }
.props__a[aria-pressed="true"] { background: #fff; color: var(--tinta); }
.props__a[aria-pressed="true"] b { background: var(--ia); color: #fff; }

@media (max-width: 1100px) { .dentro { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 164px; }
}
@media (max-width: 640px) {
  .escena { min-height: 460px; border-radius: 26px; }
  .escena__cred { right: 16px; bottom: 58px; }
  .insta__box { margin: -34px 8px 0; }
  .dentro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bento__t--ancho { grid-column: span 2; }
  .bento__name { font-size: 1.1rem; }
  .bento__sub { display: none; }
  .bento__t--xl .bento__sub { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .escena__video { display: none; }
  .bento__t:hover, .bento__t:hover .bento__img, .bento__t--foto:hover .bento__foto, .dentro__t:hover .dentro__foto, a.op:hover { transform: none; }
}

/* Casillas de producto con imagen, en claro */
.op__img { border-bottom: 0; background: radial-gradient(circle at 50% 60%, #ffffff 0%, var(--bg-2) 80%); }

/* Catálogos en claro: portadas con sombra, filtros en píldora */
.cat__portada { border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 32, 0.08); }
.catf { border: 0; border-radius: var(--r-panel); background: var(--bg); box-shadow: var(--sombra); }
.ccard__portada { border: 0; border-radius: 10px; box-shadow: var(--sombra); }
.ccard__portada:hover { box-shadow: var(--sombra-alta); }
.csec { border-radius: 14px; background: var(--bg); }
.visor__panel { background: var(--bg); }
.visor__area { background: var(--bg-2); }
.visor__hoja canvas { box-shadow: var(--sombra-alta); }
.visor__estado p { background: var(--bg); box-shadow: var(--sombra); }
.visor__res { background: var(--bg); box-shadow: var(--sombra-alta); }
.visor__buscar input { box-shadow: var(--sombra); }

/* ---------------------------------------------------------------- ofertas
   Ofertas del mes: página /ofertas, bloque «En oferta» en producto y marca y
   franja en la portada. Es la única parte de la web con precio, y el precio
   manda en la tarjeta. Lo caducado lo esconde app.js con [hidden]. */
[data-oferta][hidden], [data-ofertas][hidden], .ofertas-vacio[hidden], .bar__nav a[hidden] { display: none !important; }

.ofertas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.oferta {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; scroll-margin-top: 96px;
  border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); box-shadow: var(--sombra);
}
.oferta:target { box-shadow: 0 0 0 2px var(--brand-line), var(--sombra-alta); }
/* La imagen va posicionada: así la caja manda (4:3) y no el tamaño del archivo. */
.oferta__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 60%, #ffffff 0%, var(--bg-2) 80%); }
.oferta__img img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
.oferta__img--foto img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oferta__main { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 0; }
.oferta__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.oferta__t { font-size: 1.3rem; line-height: 1.2; }
.oferta__d { color: var(--muted); }
/* Borrador: solo en la vista previa; no se publica con ofertas así. */
.oferta__borrador, .oferta__falta { border: 1px dashed #c98a1a; background: #fff8e8; color: #6b4200; }
.oferta__borrador { padding: 2px 10px; border-radius: var(--r-pill); font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.oferta__falta { padding: 10px 12px; border-radius: var(--r-ctl); font-size: 14px; }
.oferta__compra { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 18px 22px 22px; }
.oferta__precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.oferta__precio b { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.oferta__precio span { color: var(--muted); }
.oferta__cond { font-size: 14px; color: var(--faint); }
.oferta__acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.oferta__add[aria-pressed="true"] { background: var(--brand-wash); color: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-line); }
.oferta__add[aria-pressed="true"] .add__on { display: inline; }
.oferta__add[aria-pressed="true"] .add__off { display: none; }

/* «Gíralo en 3D»: toda la foto es el botón que abre el visor (Guillem,
   2026-10-20); la píldora de abajo es la pista. */
.oferta__3d {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 12px; border: 0; border-radius: 0; background: none; cursor: pointer;
}
.oferta__3d:focus-visible { outline: 2px solid #7a5cff; outline-offset: -4px; }
.oferta__3d-pildora {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px;
  border-radius: var(--r-pill); background: rgba(15, 20, 25, 0.86); color: #fff;
  font: 600 13.5px/1 var(--font); box-shadow: var(--sombra);
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.oferta__3d-pildora .i { width: 17px; height: 17px; color: var(--brand); }
.oferta__3d:hover .oferta__3d-pildora { background: var(--tinta); transform: translateY(-1px); }
.oferta__img img { transition: transform 0.35s var(--ease); }
.oferta__img:has(.oferta__3d:not([hidden]):hover) img { transform: scale(1.04); }
.oferta__3d[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .oferta__img img { transition: none; }
  .oferta__img:has(.oferta__3d:hover) img { transform: none; }
}
.oferta__stock { font-size: 14px; font-weight: 700; color: var(--text); }
.oferta__ref { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.oferta__nota { font-size: 13px; color: var(--faint); }
.visor3d {
  width: min(960px, calc(100vw - 24px)); max-width: none; max-height: none;
  height: min(780px, calc(100vh - 24px));  /* sin dvh (Safari < 15.4, Chrome < 108) */
  height: min(780px, calc(100dvh - 24px));
  margin: auto; padding: 0; border: 0; border-radius: var(--r-panel); background: var(--bg); color: var(--text); box-shadow: var(--shadow-dialog);
}
.visor3d::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.visor3d__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.visor3d__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 0 22px; }
.visor3d__t { font-size: 1.15rem; line-height: 1.25; }
.visor3d__zona { position: relative; min-height: 220px; background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--bg-2) 78%); }
.visor3d__zona .visor3d__lienzo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.visor3d__zona .visor3d__lienzo:active { cursor: grabbing; }
/* «Cargando…» o el aviso de error, con su botón de volver a probar */
.visor3d__estado { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); font-size: 14.5px; }
.visor3d__estado p { max-width: 44ch; }
.visor3d__ayuda { padding: 10px 16px 16px; text-align: center; font-size: 13.5px; color: var(--faint); }
/* Botones del propio modelo (abrir y cerrar el estuche), abajo y al centro */
.visor3d__acciones { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.visor3d__accion { background: var(--bg); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); white-space: nowrap; }

/* En la página de un producto o de una marca: ancha y baja */
.ofertas--fila { grid-template-columns: 1fr; }
.oferta--fila { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(230px, 290px); }
.oferta--fila .oferta__img { aspect-ratio: auto; min-height: 160px; }
.oferta--fila .oferta__img img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.oferta--fila .oferta__img--foto img { inset: 0; width: 100%; height: 100%; }
.oferta--fila .oferta__main { padding: 20px 8px 20px 22px; }
.oferta--fila .oferta__compra { justify-content: center; margin-top: 0; padding: 20px 22px; border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .oferta--fila { grid-template-columns: 1fr; }
  .oferta--fila .oferta__img { aspect-ratio: 16 / 9; }
  .oferta--fila .oferta__main { padding: 18px 20px 0; }
  .oferta--fila .oferta__compra { border-left: 0; padding: 14px 20px 20px; }
}
.ofertas-sec { padding-bottom: 0; }
.ofertas-sec + .shot { margin-top: clamp(28px, 4vw, 48px); }
.ofertas-sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.ofertas-sec__head .label { margin-bottom: 6px; }
.ofertas-sec__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* /ofertas: sin ofertas en marcha, y la letra pequeña */
.ofertas-vacio { max-width: 560px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-panel); background: var(--bg); box-shadow: var(--sombra); }
.ofertas-vacio h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.ofertas-vacio p { margin: 10px 0 18px; color: var(--muted); }
.ofertas-nota { margin-top: 24px; max-width: 70ch; font-size: 14px; color: var(--faint); }

/* Franja de la portada */
.franja-of { padding-block: 0 clamp(36px, 5vw, 64px); }
.franja-of__in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--brand-line); border-radius: 28px; background: var(--bg); box-shadow: var(--sombra);
}
.franja-of__txt .label { margin-bottom: 4px; }
.franja-of__txt h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.franja-of__btn { grid-column: 2; grid-row: 1; }
.franja-of__lista { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.franja-of__lista a { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 16px; background: var(--bg-2); transition: background-color var(--fast) var(--ease); }
.franja-of__lista a:hover { background: var(--brand-wash); }
.franja-of__lista b { font-weight: 600; }
.franja-of__lista span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .franja-of__in { grid-template-columns: 1fr; }
  .franja-of__btn { grid-column: auto; grid-row: auto; justify-self: start; }
  .franja-of__lista { flex-direction: column; }
}

/* Fuentes de la ficha de una marca: plegadas y en letra pequeña al final,
   no son para el cliente (Guillem, 2026-10-22) */
.fuentes-ficha { padding: 6px 0 22px; font-size: 12.5px; color: var(--faint); }
.fuentes-ficha summary { cursor: pointer; width: max-content; max-width: 100%; }
.fuentes-ficha summary:hover { color: var(--muted); }
.fuentes-ficha ol { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 4px; }
.fuentes-ficha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fuentes-ficha span { opacity: 0.85; }
.fuentes-ficha p { margin-top: 8px; }

/* Con «Ofertas», el menú tiene siete apartados y entre 901 y ~970 px no cabía:
   la página se desplazaba de lado. Ahí «Solicitud» se queda en icono (como por
   debajo de 900 px), con el texto solo oculto a la vista, y los enlaces del
   menú se juntan un poco. Con «Técnico» (ocho apartados, 2026-10-28) se juntan
   algo más y la letra baja a 14 px. */
@media (min-width: 901px) and (max-width: 1000px) {
  .tray-open__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar__nav { gap: 2px; }
  .bar__nav a { padding: 8px 6px; font-size: 14px; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .tray-open__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar__nav a { padding: 8px 8px; }
}
/* Entre 1101 y 1280 px tampoco cabía (ya pasaba con siete): el buscador pierde
   el ancho mínimo y el atajo de teclado, y «Solicitud» se queda en icono. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .cmdk-open { min-width: 0; }
  .cmdk-open kbd { display: none; }
  .tray-open__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar__nav a { padding: 8px 10px; }
}

/* Opciones dentro de una oferta (la calidad de plaquita): una tarjeta pequeña
   por opción, la elegida con el borde de la marca */
.oferta__ops { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.oferta__ops legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.oferta__op { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); cursor: pointer; font-size: 14px; background: var(--bg); }
.oferta__op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oferta__op b { font-variant-numeric: tabular-nums; }
.oferta__op span { color: var(--muted); font-size: 13.5px; }
.oferta__op:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: #fff8ec; }
.oferta__op:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ================================================================ TÉCNICO (/tecnico)
   Chat con Claude (modelo-4/assets/js/tecnico.js). */
.tec { max-width: 880px; display: grid; gap: 18px; }
.tec__chat { display: grid; gap: 18px; }
.tec__vacio { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ia-suave); }
.tec__vacio-t { color: var(--muted); margin: 0 0 14px; }
.tec__ejemplos { display: flex; flex-wrap: wrap; gap: 10px; }
.tec__ej { text-align: left; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: #fff; color: var(--text); font: inherit; font-size: 15px; line-height: 1.4; cursor: pointer; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.tec__ej:hover { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-wash); }
.tec__msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tec__msgs:empty { display: none; }
.tec__msg--yo { justify-self: end; max-width: min(80%, 640px); padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--surface); }
.tec__msg--tec { padding: clamp(16px, 2.4vw, 22px); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--sombra); min-width: 0; }
.tec__msg.is-error { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.tec__msg.is-error .tec__texto { color: var(--danger-soft); }
.tec__quien { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.01em; }
.tec__ia { width: 10px; height: 10px; border-radius: 50%; background: var(--ia); flex: none; }
.tec__msg.is-pensando .tec__ia { animation: tec-latido 1.2s var(--ease) infinite; }
@keyframes tec-latido { 50% { transform: scale(1.5); opacity: 0.6; } }
.tec__pensando { margin: 0; color: var(--faint); }
.tec__busquedas { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--faint); }
.tec__busquedas li::before { content: "↳ "; color: var(--brand-soft); }
.tec__texto { line-height: 1.6; overflow-wrap: anywhere; }
.tec__texto > :first-child { margin-top: 0; }
.tec__texto > :last-child { margin-bottom: 0; }
.tec__texto p, .tec__texto ul, .tec__texto ol, .tec__texto pre, .tec__tabla { margin: 0 0 12px; }
.tec__texto ul, .tec__texto ol { padding-left: 22px; }
.tec__texto li { margin-bottom: 4px; }
.tec__texto li.sub { margin-left: 18px; list-style-type: circle; }
.tec__texto h3, .tec__texto h4, .tec__texto h5 { font-size: 16.5px; font-stretch: 100%; margin: 18px 0 8px; }
.tec__texto code { font-family: var(--mono); font-size: 0.9em; padding: 1px 5px; border-radius: 6px; background: var(--fill-2); }
.tec__texto pre { padding: 12px 14px; border-radius: var(--r-ctl); background: var(--surface); overflow-x: auto; }
.tec__texto pre code { padding: 0; background: none; }
.tec__texto hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.tec__tabla { overflow-x: auto; }
.tec__tabla table { border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; min-width: 100%; }
.tec__tabla th, .tec__tabla td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tec__tabla th { font-weight: 600; background: var(--fill-1); white-space: nowrap; }
.tec__cat { display: inline; border-bottom: 1px solid var(--brand-line); }
.tec__aviso { color: var(--muted); font-size: 14px; }
.tec__con { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tec__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tec__chip button { border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 2px; }
.tec__form { position: sticky; bottom: 12px; z-index: 5; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: #fff; box-shadow: var(--sombra-alta); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.tec__form:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-wash), var(--sombra-alta); }
.tec__form.is-encima { border-style: dashed; border-color: var(--brand); }
.tec__form textarea { width: 100%; border: 0; resize: vertical; min-height: 52px; max-height: 40vh; font: inherit; line-height: 1.5; color: var(--text); background: none; padding: 4px 6px; }
.tec__form textarea:focus { outline: 0; }
.tec__adjuntos { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.tec__barra { display: flex; align-items: center; gap: 10px; }
.tec__adj { cursor: pointer; }
.tec__adj:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.tec__estado { flex: 1; margin: 0; font-size: 13.5px; color: var(--faint); min-width: 0; }
.tec__estado.is-mal { color: var(--danger-soft); }
.tec__form [data-tec-enviar]:disabled { opacity: 0.55; cursor: progress; }
.tec__pie { display: grid; gap: 10px; }
.tec__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 560px) {
  .tec__msg--yo { max-width: 92%; }
  .tec__adj span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tec__barra { flex-wrap: wrap; }
  .tec__estado { order: 3; flex-basis: 100%; }
  .tec__barra [data-tec-enviar] { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .tec__msg.is-pensando .tec__ia { animation: none; } }

/* ================================================================ te decimos cuál (2026-11-10)
   Las tres entradas de la portada, la guía de la página del producto
   ([data-cual], guia.js) y «No lo encuentro». Datos: _build/guia.mjs. */

/* Las tres entradas, debajo del buscador */
.puertas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 820px; margin: 14px clamp(12px, 4vw, 64px) 0; }
.puerta { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
.puerta:hover { transform: translateY(-2px); background: var(--bg); box-shadow: var(--sombra-alta); }
.puerta__i { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--brand-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.puerta b { display: block; font-size: 1rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.puerta span span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.elige-t { margin: 36px 0 -22px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 650; letter-spacing: -0.02em; scroll-margin-top: 92px; }
.bento__cual { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 650; }

/* La guía */
.cual-sec { scroll-margin-top: 76px; padding-bottom: 0; }
.cual { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: var(--bg-2); }
.cual__t { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 660; letter-spacing: -0.03em; line-height: 1.02; }
.cual__sub { margin: 8px 0 0; max-width: 62ch; color: var(--muted); }
.cual__paso { margin-top: 24px; }
.cual__q { margin: 0 0 12px; font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
.cual__mats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cual__mat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 92px; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-card); background: var(--bg); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.15; text-align: left; cursor: pointer; transition: transform 0.18s var(--ease), border-color 0.18s var(--ease); }
.cual__mat:hover { transform: translateY(-2px); border-color: var(--line-3); }
.cual__mat i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--c); color: var(--ct, #fff); font: 500 14px var(--mono); font-style: normal; }
.cual__mat[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.cual__diam { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cual__campo { display: inline-flex; align-items: center; gap: 6px; height: 54px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg); font-size: 1.35rem; font-weight: 650; }
.cual__campo:focus-within { border-color: var(--text); }
.cual__campo input { width: 3.4em; padding: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
.cual__campo small { font-size: 15px; font-weight: 500; color: var(--faint); }
.cual__diam .chip { cursor: pointer; }
.cual__diam .chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.cual__res { margin-top: 28px; scroll-margin-top: 84px; }
.cual__rt { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 650; letter-spacing: -0.02em; }
.cual__tars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cual__mas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.cual__mas p { margin: 0 6px 0 0; font-weight: 600; }
.cual__nada { padding: 18px; border-radius: 18px; background: var(--bg); }
.cual__nada p { margin: 0; }

/* Cada recomendada */
.rtar { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 18px; border-radius: 20px; background: var(--bg); box-shadow: var(--sombra); }
.rtar__uso { margin: 0; font-size: 13px; font-weight: 650; color: var(--brand-soft); }
.rtar__dib { margin: 6px 0 2px; }
.rtar__n { margin: 4px 0 0; font-size: 1.14rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.18; }
.rtar__sub { margin: 4px 0 0; font-size: 14px; line-height: 1.35; color: var(--muted); }
.rtar__op { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.rtar__op button { height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font-size: 13px; cursor: pointer; }
.rtar__op button:hover { border-color: var(--line-3); }
.rtar__op button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.rtar__ref { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.rtar__ref code { font: 500 13px var(--mono); color: var(--text); }
.rtar__a { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.rtar__a .btn { justify-content: center; width: 100%; }
.rtar__cat { font-size: 13.5px; color: var(--muted); text-align: center; text-decoration: underline; text-underline-offset: 2px; }
.rtar__cat:hover { color: var(--text); }
.rpide__si, .rpide[aria-pressed="true"] .rpide__no { display: none; }
.rpide[aria-pressed="true"] .rpide__si { display: inline; }
.rpide[aria-pressed="true"] { background: var(--brand-wash); color: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-line); }

/* El dibujo a escala. Como mucho 400 px de ancho: con las tarjetas en una
   columna (tablet, móvil en horizontal) no se hace enorme */
.rdib { display: block; width: 100%; height: auto; overflow: visible; }
.rtar__dib .rdib { max-width: 400px; margin-inline: auto; }
.rdib__mango { fill: #cfd5db; }
.rdib__corte--negro { fill: #2f353c; }
.rdib__corte--brillo { fill: #a4adb6; }
.rdib__corte--bronce { fill: #8d6a43; }
.rdib__corte--md { fill: #4a525c; }
.rdib__oro { fill: #d3a62b; }
.rdib__hel { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.3; }
.rdib__refri { stroke: #3aa0e0; stroke-width: 1.4; stroke-dasharray: 4 3; }
.rdib__cota { fill: none; stroke: var(--faint); stroke-width: 0.9; }
.rdib__txt { fill: var(--muted); font: 500 11.5px var(--mono); }
/* Los de los machos y las guías «tabla» (guia.js, dibujoTabla): portaherramientas,
   barras, fresas, escariadores, limas y laminación */
.rdib__txt--chico { font-size: 10.5px; }
.rdib__txt--claro { fill: rgba(255, 255, 255, 0.85); }
.rdib__grab { fill: rgba(0, 0, 0, 0.55); font: 600 9.5px var(--mono); letter-spacing: 0.02em; }
.rdib__cuerpo { fill: #b3bcc5; }
.rdib__mango--md { fill: #6f7882; }
.rdib__corte--tialn { fill: #5b5670; }
.rdib__pla { fill: #3a4048; }
.rdib__pla-l { fill: none; stroke: #3a4048; stroke-width: 4.5; stroke-linecap: round; }
.rdib__tor { fill: #e9edf0; stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.8; }
.rdib__hueco { fill: none; stroke: var(--faint); stroke-width: 1; stroke-dasharray: 4 3; }
.rdib__amort { fill: rgba(255, 255, 255, 0.28); stroke: rgba(0, 0, 0, 0.3); stroke-width: 0.9; stroke-dasharray: 3 2; }
.rdib__weldon { fill: #a3acb5; }
.rdib__diente { fill: none; stroke: rgba(255, 255, 255, 0.38); stroke-width: 0.9; }
.rdib__frontal { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; stroke-dasharray: 1.5 1.5; }
.rdib__rod { fill: #8d959e; }
.rdib__fil { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 0.9; }
.rdib__pieza { fill: #dfe4e8; stroke: #c3cad1; stroke-width: 0.8; }

/* Guía de plaquitas: la designación escrita, los botones por torno y fresa,
   la plaquita vista desde arriba (guia.js, dibujoPla) y los datos de corte */
.cual__campo--pla input { width: 9.5em; font-family: var(--mono); font-size: 1.15rem; text-transform: uppercase; }
.cual__campo--pla input::placeholder { text-transform: none; color: var(--faint); }
.cual__plas { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cual__plg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cual__plg > span { min-width: 5.2em; font-size: 14px; font-weight: 600; color: var(--muted); }
.cual__plg .chip { font-family: var(--mono); font-size: 13px; cursor: pointer; }
.cual__plg .chip[data-cual-ei] { font-family: inherit; font-size: 14px; }
.cual__plg .chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.rtar__dib--pla { display: grid; place-items: center; padding: 6px 0; }
.rpl { display: block; width: 116px; height: auto; overflow: visible; }
.rpl__cuerpo { stroke-linejoin: round; }
.rpl--cvd .rpl__cuerpo { fill: #3a4048; stroke: #3a4048; }
.rpl--pvd .rpl__cuerpo { fill: #5b5670; stroke: #5b5670; }
.rpl--sin .rpl__cuerpo { fill: #b6bdc5; stroke: #b6bdc5; }
.rpl--cbn .rpl__cuerpo { fill: #b6bdc5; stroke: #b6bdc5; }
.rpl__punta { fill: #6b5326; }
.rpl__agujero { fill: var(--bg); stroke: rgba(0, 0, 0, 0.18); stroke-width: 1; }
.cual__modos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 4px; width: fit-content; max-width: 100%; border-radius: var(--r-pill); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cual__modos button { height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.cual__modos button[aria-pressed="true"] { background: var(--text); color: #fff; }
.cual__cmd { margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--bg); }
.cual__cmd-t { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--brand-soft); }
.cual__cmd-i { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cual__cmd-i:first-of-type { border-top: 0; }
.cual__cmd-i > span { flex: 1 1 260px; }
.cual__cmd-i code { font: 500 13px var(--mono); }
.cual__nota { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.rtar__broca { margin: 10px 0 0; font-size: 14px; }
.rtar__broca b { font-weight: 650; }
.rtar__datos { margin: 10px 0 0; font: 500 12.5px var(--mono); color: var(--muted); }

/* Series que se acaban, junto a la referencia */
.ip__txt .ip__ojo, .res__ojo { display: block; width: fit-content; max-width: 100%; margin-top: 6px; padding: 5px 10px; border-radius: 10px; background: var(--brand-wash); color: var(--brand-soft); font-size: 13px; font-weight: 550; white-space: normal; }

/* «¿No lo encuentras?»: siempre a la vista */
.flota { position: fixed; z-index: 44; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--tinta); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--sombra-alta); cursor: pointer; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.flota:hover { transform: translateY(-2px); }
.flota.is-oculta { opacity: 0; pointer-events: none; transform: translateY(10px); }
.flota svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foto__in { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.foto__in p { margin: 0; color: var(--muted); }
.foto__in .btn { justify-content: center; }
.foto__wa { background: #178a45; color: #fff; }
.foto__wa:hover { background: #12733a; }
.foto__o { margin-top: 6px !important; font-size: 14px; }

@media (max-width: 1000px) {
  .cual__mats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cual__tars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .puertas { grid-template-columns: minmax(0, 1fr); margin-inline: 0; }
  .insta__campo kbd { display: none; }
  .cual__mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cual__mat { min-height: 80px; }
  .flota { right: 12px; bottom: 12px; height: 44px; padding: 0 14px; font-size: 14px; }
  /* En el móvil, el dibujo aprovecha parte del margen de la tarjeta: más
     grande y con la letra más legible (de 9,7 a 10,5 px en 375 de ancho) */
  .rtar__dib:not(.rtar__dib--pla) { margin-inline: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .puerta:hover, .cual__mat:hover, .flota:hover { transform: none; }
}
@media print { .flota { display: none; } }

/* Filas de marca con muchas etiquetas (Dormer Pramet tiene 6): las etiquetas no se comen el texto */
.fam .tags { max-width: 340px; }
@media (min-width: 721px) and (max-width: 1100px) {
  .fam--marca { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .fam--marca .tags { grid-column: 2 / -1; grid-row: 2; max-width: none; }
}

/* Guías «tabla» (portaherramientas, fresas de plaquitas, escariadores,
   antivibratorias, laminación y limas): la primera pregunta puede ser qué vas
   a hacer (botones sin letra) y la tarjeta puede llevar «También de…» */
.cual__mats.cual__mats--ops { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cual__mat--op { min-height: 0; justify-content: center; padding: 14px 16px; }
.cual-sec + .cual-sec { padding-top: 0; }
.rtar__alt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.rtar__alt p { margin: 0 0 6px; }
.rtar__alt code, .rtar--tabla .rtar__ref code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .cual__mats.cual__mats--ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Portada: las guías «Te decimos cuál», debajo del buscador (la entrada principal) */
.insta__guias { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 820px; margin: 14px clamp(12px, 4vw, 64px) 0; }
.insta__guias > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 14px; font-weight: 650; color: var(--text); }
.insta__guias > span svg { width: 16px; height: 16px; }
.insta__guia { background: var(--bg); text-decoration: none; }
.insta__guia:hover { border-color: var(--text); }
@media (max-width: 680px) { .insta__guias { margin-inline: 0; } }
