/* JME Soluciones Industriales · catálogo web
   Concepto: catálogo técnico de suministro. Bandas azul marino de la marca, fotos sobre fichas blancas,
   naranja de seguridad reservado a las acciones de cotizar. Títulos en Archivo semicondensada (rotulado
   industrial), texto en Archivo de ancho normal. */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --fg: #142235;
  --muted: #5A6878;
  --line: #D8DEE6;
  --line-strong: #B9C3CF;
  --brand: #0B2545;
  --brand-2: #13345F;
  --brand-fg: #FFFFFF;
  --brand-muted: #A9B8CB;
  --accent: #F26B1D;
  --accent-hover: #FF8236;
  --accent-ink: #0B1B30;
  --accent-text: #B4480C;
  --photo: #FFFFFF;
  --ok: #1F7A4D;
  --warn: #B42318;
  --focus: #F26B1D;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .07);
  --logo-light: block;
  --logo-dark: none;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --r-s: 6px;
  --r-m: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1422; --surface: #101E33; --fg: #E6ECF3; --muted: #9AABBE; --line: #21324B; --line-strong: #31476A;
    --brand: #0D2442; --brand-2: #163357; --brand-fg: #FFFFFF; --brand-muted: #9DB0C8;
    --accent: #FF7A2E; --accent-hover: #FF9452; --accent-ink: #0B1B30; --accent-text: #FF9A5C;
    --photo: #FFFFFF; --ok: #4CC38A; --warn: #FF8A80; --focus: #FF7A2E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1422; --surface: #101E33; --fg: #E6ECF3; --muted: #9AABBE; --line: #21324B; --line-strong: #31476A;
  --brand: #0D2442; --brand-2: #163357; --brand-fg: #FFFFFF; --brand-muted: #9DB0C8;
  --accent: #FF7A2E; --accent-hover: #FF9452; --accent-ink: #0B1B30; --accent-text: #FF9A5C;
  --photo: #FFFFFF; --ok: #4CC38A; --warn: #FF8A80; --focus: #FF7A2E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --logo-light: none; --logo-dark: block; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 85%; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-s); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line-strong); background: var(--surface); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: var(--brand-fg); background: transparent; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 22px; }
.link { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brandmark { display: flex; align-items: center; flex: none; }
.brandmark img { height: 40px; width: auto; }
.brandmark .lg-l { display: var(--logo-light); }
.brandmark .lg-d { display: var(--logo-dark); }
.search { display: flex; flex: 1; max-width: 560px; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); overflow: hidden; }
.search:focus-within { border-color: var(--fg); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; height: 44px; outline: none; font-size: 15px; }
.search button { border: 0; background: var(--brand); color: var(--brand-fg); padding: 0 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.search button svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a.nl { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: var(--r-s); color: var(--fg); }
.nav a.nl:hover, .nav a.nl[aria-current="page"] { background: var(--bg); }
.cartbtn { position: relative; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.badge[data-n="0"] { background: var(--line); color: var(--muted); }
.top-search-m { display: none; padding-bottom: 12px; }
@media (max-width: 860px) {
  .top-row { min-height: 60px; gap: 10px; }
  .brandmark img { height: 32px; }
  .top-row .search, .nav .nl-empresa { display: none; }
  .top-search-m { display: block; }
  .top-search-m .search { max-width: none; }
  .nav a.nl { padding: 8px 8px; font-size: 14px; }
  .cartbtn .lbl { display: none; }
  .cartbtn { padding: 0 12px; }
}

/* ------------------------------------------------------------------ portada */
.hero { background: var(--brand); color: var(--brand-fg); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--brand-muted); max-width: 34em; }
.hero .search { margin-top: 30px; max-width: 600px; border: 0; border-radius: var(--r-m); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero .search input { height: 58px; font-size: 17px; padding: 0 18px; color: #142235; background: #fff; }
.hero .search input::placeholder { color: #6B7787; }
.hero .search button { background: var(--accent); color: var(--accent-ink); padding: 0 22px; font-size: 16px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: var(--brand-fg); }
.chips a:hover { border-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic a { background: var(--photo); border-radius: var(--r-m); aspect-ratio: 1; display: grid; place-items: center; padding: 12%; transition: transform .2s; }
.mosaic a:nth-child(3n+2) { transform: translateY(22px); }
.mosaic a:hover { transform: translateY(-3px); }
.mosaic a:nth-child(3n+2):hover { transform: translateY(19px); }
.mosaic img { width: 100%; height: 100%; object-fit: contain; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts div { display: flex; flex-direction: column; }
.facts b { font-family: var(--display); font-stretch: 85%; font-size: 30px; line-height: 1; }
.facts span { font-size: 14px; color: var(--brand-muted); margin-top: 4px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 36px 40px; gap: 28px; }
  .mosaic { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .mosaic a { padding: 10%; border-radius: var(--r-s); }
  .mosaic a:nth-child(3n+2), .mosaic a:nth-child(3n+2):hover { transform: none; }
  .hero .search input { height: 52px; font-size: 16px; }
}
@media (max-width: 520px) { .mosaic { grid-template-columns: repeat(3, 1fr); } .mosaic a:nth-child(n+4) { display: none; } }

/* ------------------------------------------------------------------ secciones */
.sec { padding-block: 64px; }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: 6px; max-width: 40em; }
@media (max-width: 700px) { .sec { padding-block: 40px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.step { padding: 24px 26px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.step + .step { border-left: 1px solid var(--line); }
.step .n { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 18px; }
.step b { font-size: 17px; }
.step span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; border-top: 1px solid var(--line); } }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.catc { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; transition: border-color .15s; min-width: 0; }
.catc:hover { border-color: var(--fg); }
.catc .ph { background: var(--photo); border-radius: var(--r-s); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); }
.catc .ph img { width: 100%; height: 100%; object-fit: contain; }
.catc b { display: block; font-size: 15px; line-height: 1.25; }
.catc small { color: var(--muted); font-size: 13px; }

.band { background: var(--brand); color: var(--brand-fg); border-radius: var(--r-m); padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.band h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.band p { color: var(--brand-muted); margin-top: 10px; }
.band .acts { display: flex; flex-direction: column; gap: 10px; }
.band .mail { color: var(--brand-muted); font-size: 14px; }
.band .mail a { color: var(--brand-fg); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 26px 20px; } }

.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.sectors li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.brands a, .brands span { background: var(--photo); border: 1px solid var(--line); border-radius: var(--r-s); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 14px 16px; }
.brands img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.brands a:hover img { filter: none; opacity: 1; }
.tm { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ------------------------------------------------------------------ tarjetas de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hide-m { display: inline; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-media { background: var(--photo); aspect-ratio: 1; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.code { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.card-title { font-family: var(--body); font-stretch: 100%; font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-brand { font-size: 13px; color: var(--muted); }
.card-act { padding: 10px 14px 14px; position: relative; z-index: 1; }
.card-act .btn { width: 100%; min-height: 40px; font-size: 14px; }
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--accent); border-radius: var(--r-s); overflow: hidden; height: 40px; background: var(--surface); }
.stepper button { width: 42px; border: 0; background: transparent; cursor: pointer; font-size: 20px; font-weight: 700; color: var(--fg); }
.stepper button:hover { background: var(--bg); }
.stepper input { flex: 1; min-width: 0; width: 100%; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.incart { font-size: 12px; color: var(--accent-text); font-weight: 700; margin-bottom: 6px; display: block; }
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 2px; } .card-act { padding: 8px 10px 10px; }
  .card-title { font-size: 14px; }
  .hide-m { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catc { grid-template-columns: 1fr; gap: 8px; padding: 10px; align-content: start; }
  .catc .ph { width: 64px; }
  .catc b { font-size: 14px; }
}

/* ------------------------------------------------------------------ catálogo */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding-block: 18px 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--fg); }
.crumbs span[aria-hidden] { opacity: .6; }
.page-head { padding-block: 6px 22px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 46em; }
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-bottom: 64px; align-items: start; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 22px; padding-right: 4px; }
.fg h2 { font-family: var(--body); font-stretch: 100%; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 8px; }
.fl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.fl button { width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: var(--r-s); cursor: pointer;
  display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.3; }
.fl button:hover { background: var(--surface); }
.fl button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); font-weight: 600; }
.fl button small { color: inherit; opacity: .65; flex: none; }
.fl details summary { cursor: pointer; padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--accent-text); list-style: none; }
.fl details summary::-webkit-details-marker { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar .search { max-width: none; flex: 1 1 260px; }
.toolbar select { height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); padding: 0 12px; }
.count { font-size: 14px; color: var(--muted); width: 100%; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.active button:hover { border-color: var(--fg); }
.ftoggle { display: none; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 40px 24px; text-align: center; }
.empty h2 { font-size: 24px; }
.empty p { color: var(--muted); margin: 8px auto 18px; max-width: 34em; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filters { position: static; max-height: none; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; margin-bottom: 16px; }
  .filters.open { display: flex; }
  .ftoggle { display: inline-flex; }
}

/* ------------------------------------------------------------------ ficha de producto */
.pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding-block: 8px 48px; align-items: start; }
.pd-media { max-width: 520px; width: 100%; background: var(--photo); border: 1px solid var(--line); border-radius: var(--r-m); aspect-ratio: 1; display: grid; place-items: center; padding: 8%; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin-top: 6px; }
.pd-brand { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pd-brand img { height: 30px; width: auto; background: var(--photo); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line); }
.pd-desc { margin-top: 18px; font-size: 17px; }
.pd-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.specs { margin: 22px 0 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); padding-right: 24px; }
.specs dd { font-weight: 600; }
.speclist { margin: 16px 0 0; padding-left: 20px; }
.speclist li { margin: 4px 0; }
.qbox { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.qbox .row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: end; }
.qbox label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 6px; }
.qbox .stepper { height: 48px; border-color: var(--line-strong); }
.qbox .btn { min-height: 48px; }
.qbox small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pd-media { position: static; max-width: 460px; width: 100%; margin: 0 auto; }
  .qbox .row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ cotización */
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 64px; }
.qlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.qrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 140px 40px; gap: 14px; align-items: center; padding: 14px 16px; }
.qrow + .qrow { border-top: 1px solid var(--line); }
.qrow .ph { background: var(--photo); border: 1px solid var(--line); border-radius: var(--r-s); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.qrow .ph img { width: 100%; height: 100%; object-fit: contain; }
.qrow a { text-decoration: none; font-weight: 650; line-height: 1.3; }
.qrow a:hover { text-decoration: underline; }
.qrow .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.qrow .unit { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.iconbtn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--r-s); cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.iconbtn:hover { background: var(--bg); color: var(--warn); }
.iconbtn svg { width: 20px; height: 20px; }
.qside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.qside h2 { font-size: 22px; font-weight: 800; }
.qside p.help { font-size: 14px; color: var(--muted); }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); padding: 10px 12px; font-size: 15px; }
.field input:focus, .field textarea:focus { border-color: var(--fg); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field .err { color: var(--warn); font-size: 13px; margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qsum { display: flex; justify-content: space-between; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status { font-size: 14px; background: var(--bg); border-radius: var(--r-s); padding: 10px 12px; }
.qfoot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
.textbtn { border: 0; background: transparent; color: var(--accent-text); font-weight: 600; cursor: pointer; padding: 8px 0; font-size: 14px; }
.textbtn.danger { color: var(--warn); }
details.preview { font-size: 14px; }
details.preview summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
details.preview pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 12px; border-radius: var(--r-s); font-family: var(--body); font-size: 13px; margin: 8px 0 0; max-height: 280px; overflow: auto; }
@media (max-width: 960px) {
  .q-layout { grid-template-columns: minmax(0, 1fr); }
  .qside { position: static; }
}
@media (max-width: 560px) {
  .qrow { grid-template-columns: 60px minmax(0, 1fr) 40px; grid-template-areas: "ph info del" "ph qty qty"; gap: 8px 12px; }
  .qrow .ph { grid-area: ph; } .qrow .info { grid-area: info; } .qrow .qty { grid-area: qty; } .qrow .iconbtn { grid-area: del; }
  .two { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ empresa */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-bottom: 56px; }
.about .prose p { font-size: 18px; margin-bottom: 16px; max-width: 36em; }
.about h2 { font-size: 26px; font-weight: 800; margin: 8px 0 14px; }
.offer { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.offer li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.offer b { display: block; margin-bottom: 2px; }
.offer span { color: var(--muted); font-size: 15px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.contact small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.contact b { font-size: 18px; word-break: break-word; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ------------------------------------------------------------------ pie */
.foot { background: var(--brand); color: var(--brand-fg); margin-top: 24px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 48px 28px; }
.foot img { height: 38px; width: auto; }
.foot p { color: var(--brand-muted); font-size: 15px; margin-top: 14px; max-width: 30em; }
.foot h2 { font-family: var(--body); font-stretch: 100%; font-size: 14px; font-weight: 700; color: var(--brand-muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: 13px; color: var(--brand-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr; gap: 28px; } }

/* ------------------------------------------------------------------ barra de cotización y aviso */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--brand); color: var(--brand-fg);
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); display: none; box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
.cartbar.show { display: block; }
.cartbar-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar span { font-weight: 600; font-size: 15px; }
body.has-cartbar { padding-bottom: 76px; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70;
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: var(--r-s); font-size: 15px; font-weight: 600; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 39; width: 56px; height: 56px; border-radius: 50%;
  background: #1FAF54; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; }
body.has-cartbar .wa-float { display: none; }
