:root {
  /* Colores corporativos TEXWORKS: negro, gris y blanco */
  --ink: #000000;
  --ink-2: #1c1c1c;
  --text: #1a1a1a;
  --muted: #6e6e6e;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --accent: #a6a6a6;        /* gris TEXWORKS */
  --accent-ink: #000000;
  --accent-2: #000000;
  --ok: #15803d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17,24,39,.06), 0 6px 18px rgba(17,24,39,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
#app:focus { outline: none; }

/* ---------- topbar & header ---------- */
.topbar { background: var(--ink); color: #cfcfcf; font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 20px; }
.topbar b, .topbar a { color: var(--accent); }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-in { display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; }
.logo-img-footer { height: 78px; width: auto; margin-bottom: 6px; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark path { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.logo-mark .tick { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .5px; color: var(--ink); }
.search { flex: 1; display: flex; max-width: 640px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; padding: 10px 18px; outline: none; min-width: 0; background: transparent; }
.search button { border: 0; background: var(--ink); color: #fff; padding: 0 18px; cursor: pointer; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr-link { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; position: relative; }
.hdr-link:hover { background: var(--bg-soft); }
.cart-count { position: absolute; top: 0; left: 26px; background: var(--accent-2); color: #fff; border: 2px solid #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; border-radius: 8px; }
.menu-btn { display: none; }
.catnav { background: var(--ink-2); }
.catnav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { color: #e5e7eb; padding: 11px 14px; font-weight: 600; font-size: 13.5px; white-space: nowrap; border-bottom: 3px solid transparent; }
.catnav a:hover, .catnav a.active { color: #fff; border-bottom-color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: transform .05s, background .15s; font-size: 15px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2e2e2e; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- home ---------- */
.hero { background: radial-gradient(1200px 400px at 85% 0%, rgba(166,166,166,.22), transparent 60%), linear-gradient(135deg, #000 0%, #1f1f1f 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 56px 20px; }
.hero h1 { font-style: italic; font-family: var(--display); font-size: clamp(38px, 5vw, 64px); line-height: .98; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .3px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #cfcfcf; font-size: 17px; max-width: 520px; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: #000; }
.hero .btn-primary:hover { background: #e6e6e6; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual .tile { background: #fff; border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-visual .tile:nth-child(2) { transform: translateY(24px); }
.hero-visual .tile:nth-child(3) { transform: translateY(-10px); }
.hero-visual img { max-height: 100%; object-fit: contain; }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--display); font-size: 30px; color: var(--accent); line-height: 1; }
.hero-stats span { color: #9a9a9a; font-size: 13px; }

.usp { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.usp-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 20px; }
.usp-item { display: flex; gap: 12px; align-items: center; }
.usp-item .ico { width: 42px; height: 42px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); }
.usp-item b { display: block; font-size: 14px; }
.usp-item span { font-size: 12.5px; color: var(--muted); }

.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 22px; }
.section-head h2, .page-title { font-style: italic; font-family: var(--display); font-size: 34px; text-transform: uppercase; margin: 0; line-height: 1.05; letter-spacing: .3px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .img { aspect-ratio: 4/3; display: grid; place-items: center; padding: 16px; background: #fff; }
.cat-card img { max-height: 100%; object-fit: contain; }
.cat-card .meta { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; border-top: 3px solid var(--accent); background: var(--ink); color: #fff; }
.cat-card b { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .3px; }
.cat-card span { font-size: 12px; color: #9a9a9a; }

.brands { display: flex; gap: 14px; flex-wrap: wrap; }
.brand-chip { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--ink-2); text-transform: uppercase; background: #fff; }
.brand-chip:hover { border-color: var(--ink); }
.brand-chip small { display: block; font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none; }

.b2b { background: var(--accent); }
.b2b-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 40px 20px; }
.b2b h2 { font-style: italic; font-family: var(--display); font-size: 40px; text-transform: uppercase; margin: 0 0 8px; line-height: 1; }
.b2b ul { margin: 0; padding-left: 18px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; position: relative; }
.card:hover { box-shadow: var(--shadow); border-color: #cfcfcf; }
.card .img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.card .img img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .img img { transform: scale(1.04); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.card h3 { font-size: 15px; margin: 0; line-height: 1.3; font-weight: 600; }
.card .desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 8px; padding-top: 8px; }
.card .swatches { display: flex; gap: 4px; }
.price { font-weight: 800; font-size: 19px; color: var(--ink); }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); display: block; }
.quote-tag { font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--bg-soft); padding: 4px 8px; border-radius: 6px; }
.norm-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: #fff; letter-spacing: .2px; }
.badge.light { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.badge.ce { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.card .ribbon { position: absolute; top: 10px; left: 10px; z-index: 1; }

/* ---------- catalog layout ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-bottom: 50px; }
.filters { position: sticky; top: 130px; align-self: start; max-height: calc(100vh - 150px); overflow: auto; padding-right: 6px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.filter-group label .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.filter-group input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; }
.size-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.size-pills button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 9px; font-size: 13px; cursor: pointer; min-width: 38px; }
.size-pills button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.filter-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 10px 0 40px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-self: start; position: sticky; top: 130px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.thumbs button { border: 1.5px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; cursor: pointer; aspect-ratio: 1; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.main-img { border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; padding: 24px; background: #fff; }
.main-img img { max-height: 100%; object-fit: contain; }
.pdp h1 { font-style: italic; font-family: var(--display); font-size: 40px; line-height: 1; margin: 6px 0 8px; text-transform: uppercase; }
.pdp .ref { color: var(--muted); font-size: 13px; }
.pdp .lead { font-size: 16px; margin: 14px 0; }
.price-box { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.price-box .price { font-size: 32px; }
.price-box .sub { font-size: 13px; color: var(--muted); }
.opt { margin: 16px 0; }
.opt-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.opt-label span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 54px; height: 54px; padding: 3px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.colors button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent); }
.colors img { width: 100%; height: 100%; object-fit: contain; }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sizes button { min-width: 48px; padding: 10px 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; cursor: pointer; }
.sizes button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.buy-row { display: flex; gap: 10px; margin-top: 18px; }
.qty { display: flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: #fff; cursor: pointer; font-size: 18px; }
.qty input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; }
.assurances { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; font-size: 13px; }
.assurances div { display: flex; gap: 8px; align-items: center; }
.assurances svg { color: var(--ok); width: 20px; height: 20px; flex-shrink: 0; }
.tabs { margin-top: 30px; border-top: 1px solid var(--line); }
.tabs details { border-bottom: 1px solid var(--line); }
.tabs summary { padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }
.tabs summary::after { content: "+"; font-size: 20px; line-height: 1; }
.tabs details[open] summary::after { content: "–"; }
.tabs .content { padding: 0 0 18px; }
.feat-list { margin: 0; padding-left: 18px; }
.feat-list li { margin: 4px 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 36%; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.docs a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-weight: 600; }
.docs a:hover { border-color: var(--ink); }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; padding: 10px 0 50px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .img { border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 1; padding: 6px; display: grid; place-items: center; }
.cart-item .img img { max-height: 100%; object-fit: contain; }
.cart-item h3 { font-size: 15px; margin: 0 0 2px; }
.cart-item .opts { font-size: 13px; color: var(--muted); }
.cart-item .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: end; }
.remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.summary { background: var(--bg-soft); border-radius: 14px; padding: 22px; position: sticky; top: 130px; }
.summary h3 { margin: 0 0 14px; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum-row.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.progress { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin: 6px 0 14px; }
.progress div { height: 100%; background: var(--ok); }
.notice { background: #f4f4f4; border: 1px solid #d0d0d0; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 12px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input:invalid:not(:placeholder-shown) { border-color: #dc2626; }
.fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.fieldset h3 { margin: 0 0 16px; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.radio-card { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--bg-soft); }
.radio-card input { accent-color: var(--ink); }
.radio-card .r { margin-left: auto; font-weight: 700; }
.check { display: flex; gap: 8px; font-size: 13px; align-items: start; margin: 10px 0; }
.mini-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; }
.mini-item img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 3px; }
.mini-item .t { flex: 1; }
.success { text-align: center; padding: 70px 20px; max-width: 620px; margin: 0 auto; }
.success .big { width: 80px; height: 80px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.success .big svg { width: 42px; height: 42px; stroke-width: 3; }
.prose { max-width: 820px; padding: 10px 0 60px; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-size: 24px; margin-top: 28px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cfcfcf; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 20px 28px; }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .6px; font-size: 13px; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 7px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer .muted { color: #9a9a9a; }
.logo-footer .logo-text { color: #fff; }
.footer-bottom { border-top: 1px solid #333; display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 12.5px; color: #9a9a9a; flex-wrap: wrap; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s; z-index: 50; display: flex; gap: 14px; align-items: center; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--accent); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
  .filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .usp-in { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .topbar-in { justify-content: center; padding: 7px 16px; }
  .header-in { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo-img { height: 36px; }
  .hero-in { grid-template-columns: 1fr; padding: 34px 16px; }
  .hero-visual { display: none; }
  .b2b-in { grid-template-columns: 1fr; padding: 30px 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .card h3 { font-size: 14px; }
  .price { font-size: 17px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card b { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .thumbs button { width: 64px; flex-shrink: 0; }
  .pdp h1 { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item .right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .section-head h2, .page-title { font-size: 28px; }
  .assurances { grid-template-columns: 1fr; }
}

mark.pending { background: #fff3b0; color: #000; padding: 0 4px; border-radius: 3px; }
.prose ul { padding-left: 20px; } .prose li { margin: 6px 0; }

/* Asesor de EPIs con IA */
.tw-chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tw-chat-fab:hover { background: #2e2e2e; }
.tw-chat.open .tw-chat-fab { display: none; }
.tw-chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 380px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 40px)); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.tw-chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ink); color: #fff; }
.tw-chat-panel header span { display: block; font-size: 12px; color: var(--accent); }
.tw-chat-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.tw-chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.tw-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.tw-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.tw-msg.me { background: var(--ink); color: #fff; align-self: flex-end; }
.tw-msg.error { border-color: #e0a3a3; color: #8a1c1c; }
.tw-msg ul { margin: 6px 0; padding-left: 18px; } .tw-msg li { margin: 3px 0; }
.tw-msg .link { text-decoration: underline; font-weight: 600; }
.tw-msg.typing { display: flex; gap: 4px; } .tw-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: twdot 1s infinite; }
.tw-msg.typing i:nth-child(2) { animation-delay: .15s; } .tw-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes twdot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.tw-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.tw-chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 14px; max-height: 120px; }
.tw-chat-form .btn { padding: 0 14px; }
.tw-chat-note { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); }
.tw-chat-note a { text-decoration: underline; }
@media (max-width: 640px) {
  .tw-chat-fab { right: 14px; bottom: 14px; padding: 12px; } .tw-chat-fab span { display: none; }
  .tw-chat-panel { right: 0; bottom: 0; width: 100%; max-width: 100%; height: 100%; border-radius: 0; }
}
html:not(.tw-asesor-on) .asesor-only { display: none !important; }
