/* =========================================================
   NORDTEX INDUSTRIAL — catálogo / showroom digital
   Mobile first. Colores principales: se pisan desde js/config.js
   ========================================================= */

:root {
  --ink: #16181b;
  --ink-2: #2b2e33;
  --muted: #676b72;
  --soft: #8d9197;
  --line: #d9d9d4;
  --line-2: #e7e7e3;
  --paper: #f4f4f2;
  --surface: #ffffff;
  --panel: #ececea;
  --accent: #2b50b8;
  --accent-ink: #1d3a8a;
  --accent-soft: #e8edf8;
  --ok: #2e8049;
  --warn: #b7800f;
  --bad: #b23a31;
  --wa: #1d9a53;
  --wa-ink: #147a40;

  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --r: 6px;
  --r-lg: 10px;
  --header-h: 60px;
  --cats-h: 56px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgb(22 24 27 / 0.06), 0 8px 24px -12px rgb(22 24 27 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.is-locked { overflow: hidden; padding-right: var(--scrollbar, 0); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip:focus { top: 8px; }

/* ---------- Tipografía ---------- */
.h2 { font: 700 clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem)/1 var(--cond); letter-spacing: 0.005em; text-transform: uppercase; }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 52ch; }
.kicker { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.eyebrow { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.dot { display: inline-block; vertical-align: 1px; margin-right: 0.45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(46 128 73 / 0.15); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 0.9rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-ink); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { font-size: 0.85rem; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.top__inner { display: flex; align-items: center; gap: 1rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { flex: none; }
.brand__name { display: flex; flex-direction: column; font: 700 1.3rem/0.9 var(--cond); letter-spacing: 0.06em; }
.brand__name small { font: 500 0.6rem/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top__nav { display: none; }
.top__actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 44px; height: 44px; padding: 0 0.5rem; border-radius: var(--r); color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.icon-btn__label { display: none; font-size: 0.92rem; font-weight: 500; }
.quote-btn { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; height: 44px; padding: 0 0.65rem; border-radius: var(--r); color: var(--ink); }
.quote-btn:hover { background: var(--paper); }
.quote-btn__label { display: none; font-size: 0.92rem; font-weight: 600; }
.quote-btn__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 0.68rem/18px var(--mono); text-align: center; }
.quote-btn__count[data-zero] { background: var(--line); color: var(--muted); }
.quote-btn__count.is-bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.menu { border-top: 1px solid var(--line-2); background: var(--surface); max-height: calc(100dvh - 60px); overflow-y: auto; }
.menu .wrap { display: grid; padding-block: 0.5rem 1.25rem; }
.menu a:not(.btn) { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line-2); font: 600 1.35rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.menu .btn { margin-top: 1.25rem; }

@media (min-width: 1024px) {
  .top__inner { height: 68px; gap: 2rem; }
  .top__nav { display: flex; gap: 1.75rem; }
  .top__nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
  .top__nav a:hover { border-color: var(--ink); }
  .top__actions { gap: 0.5rem; }
  .icon-btn__label { display: inline; }
  .icon-btn[data-search-open] { padding: 0 0.8rem; }
  .quote-btn { padding: 0 1rem; border: 1px solid var(--line); }
  .quote-btn:hover { border-color: var(--ink); background: none; }
  .quote-btn__label { display: inline; }
  .quote-btn__count { position: static; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- Portada ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line-2); }
.hero__grid { display: grid; gap: 1.75rem; padding-block: 1.75rem 1.5rem; }
.hero__title { margin: 0.9rem 0 0.35rem; font: 700 clamp(2.9rem, 1.6rem + 6vw, 5.6rem)/0.9 var(--cond); letter-spacing: 0.01em; }
.hero__title span { display: block; }
.hero__tagline { font: 600 clamp(1.25rem, 1rem + 1vw, 1.7rem)/1.2 var(--sans); color: var(--ink-2); }
.hero__intro { margin-top: 0.6rem; color: var(--muted); max-width: 46ch; }
.hero__search { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.3rem 0.3rem 0.3rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color 0.2s, background-color 0.2s; }
.hero__search:focus-within { border-color: var(--ink); background: var(--surface); }
.hero__search svg { flex: none; color: var(--muted); }
.hero__search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 1rem; }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.75rem; }
.hero__actions .btn { padding-inline: 0.6rem; }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.hero__media img.is-loaded { opacity: 1; }
.hero__tag { position: absolute; left: 12px; bottom: 12px; display: grid; gap: 0.1rem; padding: 0.75rem 0.9rem; border-radius: var(--r); background: rgb(255 255 255 / 0.94); backdrop-filter: blur(6px); font-size: 0.82rem; color: var(--muted); }
.hero__tag .mono { font-size: 0.64rem; letter-spacing: 0.12em; color: var(--accent); }
.hero__tag b { font: 700 1.35rem/1 var(--cond); color: var(--ink); text-transform: uppercase; }

.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.facts li { display: grid; gap: 0.15rem; padding: 1rem 0.75rem 1.1rem 0; font-size: 0.8rem; color: var(--muted); }
.facts li:nth-child(odd) { border-right: 1px solid var(--line-2); }
.facts li:nth-child(even) { padding-left: 0.9rem; }
.facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
.facts b { font-size: 0.9rem; color: var(--ink); font-weight: 600; line-height: 1.25; }

@media (min-width: 768px) {
  .hero__actions { display: flex; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(n) { padding: 1.2rem 1.25rem 1.4rem; border: 0; border-left: 1px solid var(--line-2); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3.5rem; padding-block: 3.5rem 3rem; }
  .hero__media { aspect-ratio: 5 / 5.2; }
  .hero__search { max-width: 520px; }
}

/* ---------- Encabezados de sección ---------- */
.section-head { display: grid; gap: 1.1rem; margin-bottom: 1.25rem; }
.section-head--stack { gap: 0; }
.section-head--stack .lead { margin-top: 0.75rem; }
@media (min-width: 900px) {
  .section-head:not(.section-head--stack) { grid-template-columns: 1fr minmax(320px, 440px); align-items: end; gap: 2rem; }
}

/* ---------- Catálogo ---------- */
.catalog { padding-top: 2.5rem; padding-bottom: 3rem; }
.search { position: relative; display: flex; align-items: center; gap: 0.6rem; height: 50px; padding: 0 0.5rem 0 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(22 24 27 / 0.06); }
.search svg { flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 1rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { width: 36px; height: 36px; border-radius: var(--r); font-size: 1.4rem; line-height: 1; color: var(--muted); }
.search__clear:hover { background: var(--paper); color: var(--ink); }
.search.is-flash { animation: flash 0.9s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgb(43 80 184 / 0.25); border-color: var(--accent); } }

.cats-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgb(244 244 242 / 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.cats { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.6rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.cat span { font: 500 0.72rem var(--mono); color: var(--soft); }
.cat:hover { border-color: var(--ink); }
.cat[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat[aria-selected="true"] span { color: rgb(255 255 255 / 0.6); }

.catalog__layout { display: grid; gap: 1.5rem; padding-top: 1rem; }
.toolbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.toolbar__filters { display: inline-flex; align-items: center; gap: 0.45rem; height: 42px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: 0.9rem; }
.toolbar__filters:hover { border-color: var(--ink); }
.toolbar__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font: 600 0.7rem/20px var(--mono); }
.toolbar__count { font-size: 0.86rem; color: var(--muted); margin-right: auto; }
.sort select { height: 42px; padding: 0 2rem 0 0.75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2316181b' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 0.7rem center; appearance: none; font-size: 0.88rem; font-weight: 500; max-width: 190px; }
@media (max-width: 420px) { .toolbar__count { order: 3; width: 100%; } }

.chips-active { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.chips-active:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 0.4rem; height: 32px; padding: 0 0.6rem 0 0.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.82rem; font-weight: 600; }
.achip::after { content: "×"; font-size: 1.05rem; line-height: 1; opacity: 0.7; }
.achip:hover::after { opacity: 1; }
.achip--clear { background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.achip--clear::after { content: none; }

/* Filtros: hoja en celular, columna en computadora */
.filters {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; flex-direction: column;
  max-height: 86dvh; background: var(--surface); border-radius: 16px 16px 0 0;
  transform: translateY(105%); transition: transform 0.35s var(--ease); visibility: hidden;
}
.filters.is-open { transform: none; visibility: visible; }
.filters__backdrop { position: fixed; inset: 0; z-index: 55; background: rgb(22 24 27 / 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.filters.is-open + .filters__backdrop { opacity: 1; pointer-events: auto; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter) 0.5rem; }
.filters__head h3 { font: 700 1.4rem/1 var(--cond); text-transform: uppercase; }
.filters__x { width: 44px; height: 44px; border-radius: var(--r); font-size: 1.6rem; line-height: 1; }
.filters__body { flex: 1; overflow-y: auto; padding: 0 var(--gutter) 1rem; overscroll-behavior: contain; }
.filters__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.6rem; padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }

.fgroup { margin: 0; padding: 1.1rem 0; border: 0; border-top: 1px solid var(--line-2); }
.fgroup:first-child { border-top: 0; padding-top: 0.5rem; }
.fgroup legend { float: left; width: 100%; margin-bottom: 0.7rem; font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fgroup legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 0.7rem; min-height: 40px; cursor: pointer; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.check em { margin-left: auto; font: normal 0.75rem var(--mono); color: var(--soft); }
.check.is-empty { color: var(--soft); }
.fchips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fchip { position: relative; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span { display: inline-flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: var(--r); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.fchip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fchip i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: 0.95rem; }
.switch input { appearance: none; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: var(--line); position: relative; cursor: pointer; transition: background-color 0.2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.2s var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

@media (min-width: 1024px) {
  .catalog__layout { grid-template-columns: 250px 1fr; gap: 2.5rem; padding-top: 1.5rem; }
  .filters { position: sticky; top: calc(var(--header-h) + var(--cats-h) + 16px); inset: auto; z-index: 1; align-self: start; max-height: calc(100vh - var(--header-h) - var(--cats-h) - 32px); transform: none; visibility: visible; border-radius: 0; background: none; transition: none; }
  .filters__head { padding: 0 0 0.5rem; }
  .filters__head h3 { font-size: 1.2rem; }
  .filters__x, .filters__backdrop, #filtersApply, .toolbar__filters { display: none; }
  .filters__body { padding: 0 0.5rem 0 0; overflow-y: auto; scrollbar-width: thin; }
  .filters__foot { grid-template-columns: 1fr; padding: 0.75rem 0 0; border: 0; }
  .filters__foot .btn { min-height: 40px; }
}

/* Grilla de productos */
.grid { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 0 0.9rem;
  padding: 0.75rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.card__media { position: relative; align-self: start; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__add { position: absolute; top: 0.75rem; left: calc(0.75rem + 112px - 38px); z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; margin: 4px; border-radius: var(--r); background: rgb(255 255 255 / 0.95); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.card__add:hover { background: var(--ink); color: #fff; }
.card__add.is-done { background: var(--ok); color: #fff; transform: scale(1.08); }
.card__body { display: flex; flex-direction: column; min-width: 0; }
.card__code { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.card__name { margin-top: 0.15rem; font: 600 1.02rem/1.2 var(--sans); }
.card__name button { text-align: left; }
.card__name button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__desc { display: none; margin-top: 0.35rem; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.card__specs { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; margin-top: 0.4rem; font-size: 0.78rem; }
.card__specs div { display: flex; gap: 0.3rem; }
.card__specs dt { color: var(--soft); }
.card__specs dd { font-weight: 500; }
.card__row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.card__swatches { display: flex; align-items: center; gap: 3px; }
.card__swatches small { margin-left: 3px; font: 500 0.7rem var(--mono); color: var(--muted); }
.card__price { margin-top: 0.45rem; font-size: 0.82rem; color: var(--muted); }
.card__price b { font: 700 1.12rem var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.card__price small { font-size: 0.75rem; }
.card__price--ask b { font-size: 0.98rem; color: var(--accent-ink); }
.card__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line-2); }
.card__actions .btn { min-height: 44px; }
.card--out .card__media img { filter: grayscale(0.7); opacity: 0.8; }

@media (min-width: 640px) {
  .card { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .card__media { aspect-ratio: 4 / 3; border-radius: 0; }
  .card__add { top: 10px; right: 10px; left: auto; margin: 0; width: 38px; height: 38px; }
  .card__body { padding: 1rem 1rem 0; }
  .card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__actions { margin: 1rem 1rem 1rem; }
  .card__row { margin-top: auto; padding-top: 0.75rem; }
}

.sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }

.stock { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--soft)); }
.stock--available { --c: var(--ok); }
.stock--check { --c: var(--warn); }
.stock--out { --c: var(--bad); }

.empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty p { font-weight: 600; font-size: 1.05rem; }
.empty small { display: block; margin: 0.35rem 0 1.25rem; color: var(--muted); }
.empty .btn + .btn { margin-left: 0.5rem; }
.catalog__note { margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- Aplicaciones ---------- */
.apps { padding-block: 3rem; background: var(--surface); border-block: 1px solid var(--line-2); }
.apps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 1.75rem; }
.app-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff; text-align: left; isolation: isolate; }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.app-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 13 15 / 0) 30%, rgb(12 13 15 / 0.82) 100%); }
.app-card:hover img { transform: scale(1.05); }
.app-card__body { position: absolute; inset: auto 0 0 0; display: grid; gap: 0.25rem; padding: 0.9rem; }
.app-card__body b { font: 700 1.35rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.02em; }
.app-card__body span { display: none; font-size: 0.86rem; color: rgb(255 255 255 / 0.8); line-height: 1.35; }
.app-card__body em { font: normal 500 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.75); }
@media (min-width: 768px) {
  .apps { padding-block: 4.5rem; }
  .apps__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .app-card { aspect-ratio: 4 / 3.4; }
  .app-card__body { padding: 1.25rem; }
  .app-card__body b { font-size: 1.7rem; }
  .app-card__body span { display: block; }
}

/* ---------- Showroom digital ---------- */
.showroom { padding-block: 3rem; background: var(--ink); color: #f1f1ee; overflow: hidden; }
.showroom .kicker { color: #8fa7e8; }
.showroom .lead { color: rgb(241 241 238 / 0.72); }
.showroom__grid { display: grid; gap: 2rem; }
.steps { display: grid; gap: 0; margin-top: 1.75rem; counter-reset: s; border-top: 1px solid rgb(255 255 255 / 0.12); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 0.75rem; padding: 0.95rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); font-size: 0.95rem; color: rgb(241 241 238 / 0.7); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: 500 0.8rem/1.6 var(--mono); color: #8fa7e8; }
.steps b { color: #fff; font-weight: 600; }
.showroom__visual { position: relative; display: grid; }
.showroom__photo { grid-area: 1 / 1; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-lg); opacity: 0.9; }
.label-card { grid-area: 1 / 1; align-self: end; justify-self: center; width: min(88%, 360px); margin-bottom: -1px; transform: translateY(18%); padding: 1rem; border-radius: var(--r-lg) var(--r-lg) var(--r) var(--r); background: #fff; color: var(--ink); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.6); }
.label-card__head { display: flex; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.6rem; margin-bottom: 0.8rem; border-bottom: 1px dashed var(--line); font: 500 0.62rem var(--mono); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.label-card__main { display: grid; grid-template-columns: 104px 1fr; gap: 0.9rem; align-items: start; }
.qr { position: relative; width: 104px; height: 104px; padding: 6px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; overflow: hidden; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8%; height: 2px; background: var(--accent); box-shadow: 0 0 10px 2px rgb(43 80 184 / 0.5); opacity: 0; }
.label-card:hover .qr::after, .qr.is-scanning::after { animation: scan 1.4s ease-in-out infinite; }
@keyframes scan { 0% { top: 8%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 90%; opacity: 0; } }
.label-card__code { font: 600 1.35rem/1 var(--mono); letter-spacing: -0.01em; }
.label-card__name { margin-top: 0.3rem; font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.label-card dl { display: grid; gap: 0.15rem; margin-top: 0.55rem; font-size: 0.75rem; }
.label-card dl div { display: flex; gap: 0.35rem; }
.label-card dt { color: var(--soft); }
.label-card dd { font-weight: 500; }
.label-card .btn { margin-top: 1rem; }
.showroom__hint { margin-top: 0.5rem; text-align: center; font-size: 0.74rem; color: var(--muted); }
@media (max-width: 767px) { .showroom { padding-bottom: 5.5rem; } }
@media (min-width: 900px) {
  .showroom { padding-block: 5rem; }
  .showroom__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .label-card { justify-self: start; align-self: center; margin-left: -2.5rem; transform: none; }
  .showroom__photo { width: 78%; justify-self: end; aspect-ratio: 4 / 4.6; }
}

/* ---------- Nosotros ---------- */
.about { padding-block: 3rem; }
.about__grid { display: grid; gap: 1.75rem; }
.about__media { border-radius: var(--r-lg); overflow: hidden; background: var(--panel); aspect-ratio: 16 / 10; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text > p:not(.kicker):not(.lead) { margin-top: 0.9rem; color: var(--muted); max-width: 56ch; }
.about__text .lead { margin-top: 1rem; color: var(--ink-2); }
.about__facts { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.about__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.about__facts dt { font: 500 0.7rem/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .about { padding-block: 5rem; }
  .about__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .about__media { aspect-ratio: 4 / 4.2; }
}

/* ---------- Contacto ---------- */
.contact { padding-block: 3rem; background: var(--surface); border-top: 1px solid var(--line-2); }
.contact__grid { display: grid; gap: 2rem; }
.contact .lead { margin-top: 0.9rem; color: var(--ink-2); }
.contact__actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.contact__list { display: grid; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font: 500 0.7rem/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { font-weight: 500; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__list a:hover { border-color: var(--ink); }
.contact__list dd span { display: block; }
.contact__list dd small { color: var(--muted); font-weight: 400; }
@media (min-width: 600px) { .contact__actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .contact { padding-block: 4.5rem; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Pie ---------- */
.footer { padding-block: 2rem calc(2rem + env(safe-area-inset-bottom)); background: var(--ink); color: rgb(241 241 238 / 0.7); font-size: 0.9rem; }
.footer__inner { display: grid; gap: 1.25rem; }
.footer__brand { display: grid; gap: 0.2rem; }
.footer__brand b { font: 700 1.3rem/1 var(--cond); letter-spacing: 0.06em; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer__nav a { text-decoration: none; padding: 0.3rem 0; }
.footer__nav a:hover { color: #fff; }
.footer__legal { font-size: 0.78rem; color: rgb(241 241 238 / 0.45); }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1.4fr auto auto; align-items: start; gap: 3rem; }
  .footer__legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.1); }
}
.has-quotebar .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }

/* ---------- Barra de cotización (celular) ---------- */
.quotebar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; align-items: center; gap: 0.75rem; min-height: 60px; padding: 0.5rem 0.9rem 0.5rem 0.55rem;
  border-radius: var(--r-lg); background: var(--ink); color: #fff; text-align: left;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.5); animation: rise 0.35s var(--ease);
}
@keyframes rise { from { transform: translateY(120%); } }
.quotebar__count { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: var(--r); background: rgb(255 255 255 / 0.12); font: 600 1rem var(--mono); }
.quotebar__text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.quotebar__text b { font-weight: 600; }
.quotebar__text small { color: rgb(255 255 255 / 0.65); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quotebar__cta { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
@media (min-width: 1024px) { .quotebar { display: none !important; } }

/* ---------- Paneles (hoja inferior / modal / lateral) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgb(22 24 27 / 0.5); opacity: 0; transition: opacity 0.3s; }
.sheet__panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: 94dvh;
  background: var(--surface); border-radius: 16px 16px 0 0; outline: none;
  transform: translateY(100%); transition: transform 0.38s var(--ease);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grab { position: absolute; top: 8px; left: 50%; z-index: 3; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgb(0 0 0 / 0.18); }
.sheet__x { position: absolute; top: 10px; right: 10px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 0.95); box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); font-size: 1.5rem; line-height: 1; }
.sheet__x--inline { position: static; box-shadow: none; background: var(--paper); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--gutter) 0.75rem; border-bottom: 1px solid var(--line-2); }
.sheet__title { font: 700 1.55rem/1 var(--cond); text-transform: uppercase; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__foot { padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--surface); }
.sheet__foot:empty { display: none; }
.sheet--small .sheet__body { padding: 1.75rem var(--gutter) 1rem; }

@media (min-width: 768px) {
  .sheet { align-items: center; padding: 2rem; }
  .sheet__panel { max-height: min(90vh, 920px); border-radius: var(--r-lg); transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.25s; }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__grab { display: none; }
  .sheet--small .sheet__panel { max-width: 520px; }
  .sheet--product .sheet__panel { max-width: 1080px; height: min(90vh, 820px); }
  .sheet--side { justify-content: flex-end; padding: 0; }
  .sheet--side .sheet__panel { height: 100%; max-height: none; max-width: 480px; border-radius: 0; transform: translateX(100%); opacity: 1; }
  .sheet--side.is-open .sheet__panel { transform: none; }
}

/* ---------- Ficha de producto ---------- */
.pd { display: grid; }
.pd__media { position: relative; background: var(--panel); }
/* Foto teñida: la textura en escala de grises se funde (soft-light) sobre el color elegido */
.swimg { position: relative; overflow: hidden; background: var(--panel); isolation: isolate; transition: background-color 0.35s; }
.swimg img { width: 100%; height: 100%; object-fit: cover; }
.swimg.is-tinted { background: var(--tint); }
.swimg.is-tinted img { filter: grayscale(1) brightness(var(--lift, 1)) contrast(1.4); mix-blend-mode: soft-light; }
.pd__media .swimg { aspect-ratio: 4 / 3.1; }
.pd__colortag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem; border-radius: var(--r); background: rgb(255 255 255 / 0.95); font-size: 0.86rem; font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / 0.12); }
.pd__colortag i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.pd__colortag .mono { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.pd__info { padding: 1.25rem var(--gutter) 1.5rem; }
.pd__crumb { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pd__name { margin-top: 0.35rem; font: 700 clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem)/1 var(--cond); text-transform: uppercase; letter-spacing: 0.005em; }
.pd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.7rem; }
.pd__code { font-size: 0.82rem; color: var(--muted); }
.pd__code b { color: var(--ink); font-weight: 500; }
.pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin-top: 1rem; }
.pd__price b { font: 700 1.9rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pd__price span { color: var(--muted); }
.pd__price small { width: 100%; font-size: 0.78rem; color: var(--soft); }
.pd__price--ask b { font-size: 1.45rem; color: var(--accent-ink); }
.pd__desc { margin-top: 0.9rem; color: var(--ink-2); line-height: 1.55; }

.keyspecs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.keyspecs div { padding: 0.75rem 0.85rem; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper); }
.keyspecs div:nth-child(2n) { border-right: 0; }
.keyspecs div:nth-last-child(-n+2) { border-bottom: 0; }
.keyspecs dt { font: 500 0.64rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.keyspecs dd { margin-top: 0.2rem; font-weight: 600; font-size: 1rem; line-height: 1.25; }

.pd__block { margin-top: 1.5rem; }
.pd__block > h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pd__block > h3 span { color: var(--ink); letter-spacing: 0.02em; text-transform: none; font-family: var(--sans); font-size: 0.86rem; font-weight: 600; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.5rem; }
.swatch { display: grid; justify-items: start; gap: 0.1rem; padding: 0.5rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.swatch i { width: 100%; height: 34px; margin-bottom: 0.35rem; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.swatch span { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.swatch small { font: 0.68rem var(--mono); color: var(--muted); }
.swatch:hover { border-color: var(--line); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.sizes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.size { display: grid; gap: 0.05rem; min-width: 88px; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r); text-align: left; transition: border-color 0.2s, background-color 0.2s; }
.size b { font-weight: 600; }
.size small { font: 0.72rem var(--mono); color: var(--muted); }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.size[aria-pressed="true"] small { color: rgb(255 255 255 / 0.7); }

.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.qty button { width: 44px; height: 100%; font-size: 1.3rem; line-height: 1; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty input { width: 4.2ch; height: 100%; border: 0; background: none; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty__unit { padding: 0 0.35rem 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
.qty--sm { height: 38px; }
.qty--sm button { width: 36px; font-size: 1.1rem; }
.qty-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.qty-row p { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.qty-row p b { color: var(--ink); font-weight: 600; }

.pd__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.25rem; }
.pd__actions .btn { padding-inline: 0.5rem; }

.spec { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec th, .spec td { padding: 0.65rem 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.spec th { width: 44%; padding-right: 1rem; font-weight: 400; color: var(--muted); }
.spec td { font-weight: 500; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line-2); }

.app-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.app-chip { height: 34px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; font-weight: 500; }
.app-chip:hover { border-color: var(--ink); }

.pd__label { display: grid; grid-template-columns: 76px 1fr; gap: 0.9rem; align-items: center; padding: 0.8rem; border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper); }
.pd__label .qr { width: 76px; height: 76px; padding: 4px; }
.pd__label p { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.pd__label b { display: block; color: var(--ink); font: 600 0.95rem var(--mono); margin-bottom: 0.15rem; }

.pd-foot { display: flex; align-items: center; gap: 0.75rem; }
.pd-foot__sum { display: grid; min-width: 0; line-height: 1.2; }
.pd-foot__sum b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-foot__sum small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.pd-foot .btn { flex: 1; }
.pd-foot--out { display: block; text-align: center; font-size: 0.9rem; color: var(--muted); }
.pd-foot--out .btn { margin-top: 0.5rem; }

.notice { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; padding: 0.8rem 0.9rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); font-size: 0.86rem; color: var(--muted); }
.notice b { color: var(--ink); }
.notice--warn { background: #fbf5e6; border-color: #efdfb5; }
.notice--bad { background: #fbeceb; border-color: #f0cdca; }

@media (min-width: 900px) {
  .sheet--product .sheet__body { overflow: hidden; display: flex; }
  .pd { grid-template-columns: 1fr 1fr; width: 100%; }
  .pd__media { height: 100%; }
  .pd__media .swimg { height: 100%; aspect-ratio: auto; }
  .pd__info { overflow-y: auto; padding: 2.25rem 2.25rem 2rem; overscroll-behavior: contain; }
  .sheet--product .sheet__foot { position: absolute; right: 0; bottom: 0; width: 50%; padding-inline: 2.25rem; }
  .sheet--product .pd__info { padding-bottom: 6rem; }
}

/* ---------- Muestra ---------- */
.form-title { font: 700 1.6rem/1.05 var(--cond); text-transform: uppercase; padding-right: 2.5rem; }
.form-sub { margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }
.sample-product { display: grid; grid-template-columns: 64px 1fr; gap: 0.8rem; align-items: center; margin-top: 1.25rem; padding: 0.6rem; border: 1px solid var(--line-2); border-radius: var(--r); }
.sample-product .swimg { width: 64px; height: 64px; border-radius: 4px; }
.sample-product b { display: block; font-weight: 600; line-height: 1.25; }
.sample-product small { font: 0.76rem var(--mono); color: var(--muted); }
.mini-swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mini-swatch { display: inline-flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.75rem 0 0.5rem; border: 1px solid var(--line); border-radius: var(--r); font-size: 0.85rem; font-weight: 500; }
.mini-swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.mini-swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field > span { font-size: 0.85rem; font-weight: 600; }
.field > span em { font-style: normal; font-weight: 400; color: var(--soft); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(22 24 27 / 0.06); }
.field [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgb(178 58 49 / 0.1); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-error { padding: 0.75rem 0.9rem; border-radius: var(--r); background: #fbeceb; color: #8d2b24; font-size: 0.88rem; font-weight: 500; }
.hint { margin-top: 0.55rem; text-align: center; font-size: 0.8rem; color: var(--muted); }
.foot-actions { display: grid; gap: 0.5rem; }

/* ---------- Mi cotización ---------- */
.quote { padding: 0.25rem var(--gutter) 1.25rem; }
.qlines { display: grid; }
.qline { display: grid; grid-template-columns: 60px 1fr auto; gap: 0 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--line-2); }
.qline .swimg { width: 60px; height: 60px; border-radius: var(--r); }
.qline__name { font-weight: 600; line-height: 1.25; }
.qline__meta { margin-top: 0.15rem; font-size: 0.72rem; color: var(--muted); }
.qline__meta i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: var(--c); vertical-align: -1px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.qline__price { margin-top: 0.15rem; font-size: 0.8rem; color: var(--muted); }
.qline__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
.qline__sub { font-weight: 600; font-size: 0.92rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qline__sub small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--accent-ink); }
.quote__tools { display: flex; justify-content: space-between; align-items: center; padding-top: 0.9rem; }
.qsum { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.qsum span { font-size: 0.86rem; color: var(--muted); }
.qsum span small { display: block; font-size: 0.74rem; color: var(--soft); }
.qsum b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.qempty { display: grid; justify-items: center; gap: 0.35rem; padding: 3rem 0.5rem 2rem; text-align: center; }
.qempty svg { color: var(--line); margin-bottom: 0.5rem; }
.qempty p { font-weight: 600; font-size: 1.05rem; }
.qempty small { max-width: 34ch; color: var(--muted); font-size: 0.9rem; }
.qempty .btn { margin-top: 1rem; }
.qempty .link { margin-top: 0.5rem; }
.recap { display: grid; gap: 0.35rem; padding: 0.85rem 0.9rem; border-radius: var(--r); background: var(--paper); font-size: 0.84rem; }
.recap li { display: flex; justify-content: space-between; gap: 1rem; }
.recap li span:last-child { white-space: nowrap; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.back:hover { color: var(--ink); }
.sent { display: grid; justify-items: center; gap: 0.6rem; padding: 2.75rem 0.5rem 1.5rem; text-align: center; }
.sent__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e3f2e8; color: var(--ok); }
.sent h3 { font: 700 1.6rem/1 var(--cond); text-transform: uppercase; }
.sent p { max-width: 34ch; color: var(--muted); }
.sent .btn { margin-top: 0.4rem; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 1rem; max-width: calc(100% - 24px); padding: 0.8rem 0.8rem 0.8rem 1rem;
  border-radius: var(--r); background: var(--ink); color: #fff; font-size: 0.9rem; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  transform: translate(-50%, 20px); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast button { flex: none; padding: 0.35rem 0.6rem; border-radius: 4px; background: rgb(255 255 255 / 0.12); color: #fff; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.has-quotebar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .has-quotebar .toast { bottom: 24px; } }
.field .qty input { width: 4.2ch; min-height: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.field .qty-row { margin-top: 0.1rem; }
.showroom .lead { margin-top: 0.9rem; }
