/* NEXO · identidad: negro, Manrope grande y apretada, morado solo en lo pulsable,
   halo morado al pasar, detalles de imprenta (marcas de corte, fichas). */
:root {
  --bg: #000;
  --bg-2: #0A090D;
  --bg-3: #121017;
  --fg: #F4F2F7;
  --fg-2: #C9C5D1;
  --muted: #8E8A97;
  --dim: #55515E;
  --line: #1E1C23;
  --line-strong: #34303D;
  --violet: #8A3FFC;
  --violet-text: #A774FF;
  --spot: rgba(167,116,255,.22);
  --glow: 0 0 0 1px rgba(150,90,255,.45), 0 0 6px rgba(150,90,255,.55), 0 0 18px rgba(138,63,252,.55), 0 0 42px rgba(118,50,240,.38);
  --paper: #F4F2F7;           /* fondo de las fotos de producto */
  --ok: #3DDC97;
  --warn: #FFB547;
  --bad: #FF5C7A;
  --radius: 16px;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --head: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body { font-family: var(--font); color: var(--fg); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.label, .section-title, .filters h4 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- logo con halo (igual que la web) ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.brand svg { display: block; width: 96px; height: auto; overflow: visible; }
.brand .b-face { color: var(--fg); transition: color .45s ease; }
.brand .b-halo { opacity: 0; transition: opacity .45s ease; }
.brand:hover .b-face { color: #070609; }
.brand:hover .b-halo { opacity: 1; transition-duration: .1s; }
.brand:hover .b-pw { animation: bpower 1s ease-out both; }
@keyframes bpower { 0%{opacity:0} 8%{opacity:.5} 13%{opacity:.1} 22%{opacity:.7} 28%{opacity:.3} 45%,100%{opacity:1} }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .brand:hover .b-pw { animation: none; } }

/* ---------- barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--head); background: rgba(0,0,0,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 3vw, 48px); }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--fg); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(138,63,252,.18); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 0; position: relative; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--violet); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; margin-left: 2px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--warn); }
.toggle input:checked::after { transform: translateX(14px); background: #000; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .25s, box-shadow .3s, background .25s, transform .15s; }
.btn:hover { background: #0b0a0f; border-color: rgba(150,90,255,.7); color: #fff; box-shadow: var(--glow); }
.btn:active { transform: scale(.97); }
.btn.primary, .quote-btn { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.primary:hover, .quote-btn:hover { background: #0b0a0f; }
.btn.dark { background: var(--fg); border-color: var(--fg); color: #000; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); box-shadow: 0 0 0 1px rgba(255,92,122,.4), 0 0 18px rgba(255,92,122,.3); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.quote-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--violet); font-weight: 700; font-size: 14px; cursor: pointer; transition: box-shadow .3s, background .25s; }
.quote-btn:hover { box-shadow: var(--glow); border-color: rgba(150,90,255,.7); }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet-text); cursor: pointer; font-size: 13px; font-weight: 600; }
.link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea, .filters select, select.btn {
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-2); color: var(--fg); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(138,63,252,.18); }
.field textarea { min-height: 76px; resize: vertical; }
select { color-scheme: dark; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; }

/* ---------- catálogo ---------- */
body.noscroll { overflow: hidden; }
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding: 28px clamp(16px, 3vw, 48px) 60px; max-width: 1680px; margin: 0 auto; }
.results { min-width: 0; }

/* menú lateral de filtros */
.filters { position: sticky; top: calc(var(--head) + 20px); align-self: start; max-height: calc(100vh - var(--head) - 40px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding: 0 10px 20px 0; }
.f-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.f-head-t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.badge.on { background: var(--violet); color: #fff; }
.f-sec { border-bottom: 1px solid var(--line); }
.f-title { width: 100%; display: flex; align-items: center; gap: 8px; padding: 16px 0; background: none; border: 0; cursor: pointer; color: var(--fg); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-align: left; }
.f-title:hover { color: #fff; }
.f-title .chev { width: 12px; height: 12px; margin-left: auto; color: var(--muted); transition: transform .25s var(--ease); }
.f-sec.closed .chev { transform: rotate(-90deg); }
.f-sec.closed .f-body { display: none; }
.f-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 10px; letter-spacing: 0; }
.f-body { padding-bottom: 16px; }
.f-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.f-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--fg-2); font-size: 14px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.f-opt:hover { background: var(--bg-2); color: #fff; }
.f-opt:disabled { opacity: .35; cursor: default; background: none; }
.f-opt.on { color: #fff; font-weight: 700; }
.f-box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.f-box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .15s; }
.f-opt:hover .f-box { border-color: rgba(150,90,255,.7); }
.f-opt.on .f-box { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 10px rgba(138,63,252,.5); }
.f-opt.on .f-box svg { opacity: 1; }
.f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-count { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 600; }
.f-opt.on .f-count { color: var(--violet-text); }
.f-sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); flex: none; object-fit: cover; }
.f-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.f-more { margin-top: 8px; }
.f-range { padding: 4px 0 2px; }
.f-range input { width: 100%; accent-color: var(--violet); }
.f-range-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.f-range-l b { color: var(--fg); font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s; }
.seg button small { font-size: 10px; font-weight: 600; color: var(--dim); }
.seg button:hover { color: #fff; }
.seg button.on { background: var(--violet); color: #fff; }
.seg button.on small { color: rgba(255,255,255,.75); }
.f-apply { display: none; }
.f-head-a { display: inline-flex; align-items: center; gap: 12px; }
.f-close { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: #000; color: var(--fg); font-size: 18px; line-height: 1; cursor: pointer; }

/* cabecera de resultados */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.results-head h1 { font-size: clamp(34px, 4.2vw, 64px); line-height: .95; font-weight: 800; letter-spacing: -.045em; margin: 10px 0 0; }
.rh-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.results-head .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sort select { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--fg); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.sort select:focus { outline: none; border-color: var(--violet); }
.active-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.active-f:empty { display: none; }
.af { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid rgba(150,90,255,.55); background: rgba(138,63,252,.1); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: box-shadow .25s, background .2s; }
.af span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 14px; line-height: 1; }
.af:hover { box-shadow: var(--glow); background: #0b0a0f; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; position: relative; transition: border-color .25s, transform .25s var(--ease), box-shadow .3s; }
.card:hover { border-color: rgba(150,90,255,.55); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(150,90,255,.25), 0 18px 50px rgba(98,40,220,.18); }
.card .ph { aspect-ratio: 1 / 1; background: var(--paper); display: grid; place-items: center; overflow: hidden; margin: 8px 8px 0; border-radius: 10px; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .ref { font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.card .name { font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--fg); }
.card .price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.card .price b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatches img { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); object-fit: cover; }
.swh { display: inline-block; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.swatches .swh { width: 16px; height: 16px; }
.colorpick .swh { width: 34px; height: 34px; vertical-align: middle; }
.add-color .swh { width: 18px; height: 18px; }
.f-sw.swh { width: 16px; height: 16px; }
.swatches .more { font-size: 11px; color: var(--muted); align-self: center; font-weight: 600; }
.tag { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; background: #000; color: var(--fg); border: 1px solid var(--line-strong); }
.tag.novedad { background: var(--violet); border-color: var(--violet); color: #fff; }
.tag.nuevo_color { color: var(--violet-text); border-color: var(--violet); }
.tag.baja_precio { color: var(--ok); border-color: rgba(61,220,151,.5); }
.tag.fin_existencias, .tag.color_fin_existencias { color: var(--warn); border-color: rgba(255,181,71,.5); }
.empty { padding: 80px 20px; text-align: center; color: var(--muted); grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty b { color: var(--fg); font-size: 20px; letter-spacing: -.02em; }
.more-row { text-align: center; padding: 32px; }
.internal { color: var(--warn); }

/* ---------- página de producto ---------- */
.pp { max-width: 1480px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 48px) 80px; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.crumbs .back { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 700; text-decoration: none; padding: 6px 12px 6px 8px; border: 1px solid var(--line-strong); border-radius: 999px; transition: box-shadow .3s, border-color .25s; }
.crumbs .back:hover { border-color: rgba(150,90,255,.7); box-shadow: var(--glow); }
.crumb { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px; }
.crumb:hover { color: var(--violet-text); }
.pp-nav { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none; transition: box-shadow .3s, border-color .25s; }
.icon-btn:hover { border-color: rgba(150,90,255,.7); box-shadow: var(--glow); }
.icon-btn.off { opacity: .3; pointer-events: none; }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pp-gallery { position: sticky; top: calc(var(--head) + 20px); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pp-gallery:not(:has(.pp-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.pp-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: min(78vh, 720px); overflow: auto; scrollbar-width: none; }
.pp-thumbs button { padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); cursor: pointer; overflow: hidden; flex: none; transition: border-color .2s, box-shadow .2s; }
.pp-thumbs button img { width: 74px; height: 74px; object-fit: contain; }
.pp-thumbs button:hover { border-color: rgba(150,90,255,.6); }
.pp-thumbs button.on { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 0 16px rgba(138,63,252,.35); }
/* .pp-main lleva las marcas de corte (fuera); .pp-frame recorta siempre la foto, también con la lupa */
.pp-main { position: relative; min-width: 0; align-self: start; }
.pp-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(78vh, 760px); background: var(--paper); border-radius: 18px; overflow: hidden; isolation: isolate; cursor: zoom-in; display: grid; place-items: center; }
.pp-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; will-change: transform; }
.pp-frame.zoom > img { transform: scale(2); }
.pp-main .crop { position: absolute; width: 16px; height: 16px; pointer-events: none; }
.pp-main .crop.tl { top: -18px; left: -18px; border-right: 1px solid var(--dim); border-bottom: 1px solid var(--dim); }
.pp-main .crop.br { bottom: -18px; right: -18px; border-left: 1px solid var(--dim); border-top: 1px solid var(--dim); }
.pp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0,0,0,.75); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, box-shadow .3s; z-index: 2; }
.pp-arrow.l { left: 14px; } .pp-arrow.r { right: 14px; }
.pp-main:hover .pp-arrow, .lightbox .pp-arrow { opacity: 1; }
.pp-arrow:hover { box-shadow: var(--glow); border-color: rgba(150,90,255,.7); }
.pp-count { position: absolute; left: 14px; bottom: 14px; font-size: 12px; font-weight: 700; color: #000; background: rgba(255,255,255,.85); border-radius: 999px; padding: 3px 10px; z-index: 2; }
.pp-zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: box-shadow .3s; }
.pp-zoom:hover { box-shadow: var(--glow); }

.pp-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pp-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pp-meta .tag { position: static; }
.ref-big { color: var(--fg); font-size: 13px; font-weight: 800; letter-spacing: .16em; margin-right: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { border-color: rgba(61,220,151,.45); color: var(--ok); }
.pill.warn { border-color: rgba(255,181,71,.45); color: var(--warn); }
.pp-title { margin: -6px 0 0; font-size: clamp(36px, 3.6vw, 60px); line-height: .95; font-weight: 800; letter-spacing: -.05em; }
.pp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 0 2px; }
.pp-price b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.pp-price .muted { font-size: 13px; }
.pp-block { display: flex; flex-direction: column; gap: 10px; }
.section-title b { color: var(--fg); letter-spacing: .06em; margin-left: 4px; }
.colorpick { display: flex; gap: 8px; flex-wrap: wrap; }
.colorpick button { border: 2px solid transparent; padding: 2px; border-radius: 50%; background: none; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; }
.colorpick button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.colorpick button.on { border-color: var(--violet); box-shadow: 0 0 14px rgba(138,63,252,.5); }
.colorpick img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sizes span { min-width: 44px; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.tiers-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; transition: border-color .2s, box-shadow .25s, background .2s; }
.tier-q { font-size: 12px; font-weight: 600; color: var(--muted); }
.tier b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tier .internal { font-size: 11px; }
.tier.on { border-color: var(--violet); background: rgba(138,63,252,.1); box-shadow: 0 0 0 1px var(--violet), 0 0 24px rgba(138,63,252,.2); }
.tier.on .tier-q { color: var(--violet-text); }

.addbox { background: #000; border: 1px solid var(--line-strong); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.addbox-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.add-color { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.add-color img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.qtygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.qtygrid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-align: center; }
.qtygrid input { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; text-align: center; background: var(--bg-2); color: var(--fg); font-weight: 700; font-size: 15px; outline: none; -moz-appearance: textfield; }
.qtygrid input::-webkit-outer-spin-button, .qtygrid input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtygrid input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(138,63,252,.18); }
.marcajes { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.marcajes summary { cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 700; color: var(--fg-2); list-style: none; display: flex; align-items: center; gap: 6px; }
.marcajes summary::-webkit-details-marker { display: none; }
.marcajes summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 14px; line-height: 1; color: var(--violet-text); }
.marcajes[open] summary::before { content: "–"; }
.checks { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.checks label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); padding: 6px 0; border-top: 1px solid var(--line); }
.checks .m-pos { font-size: 12px; color: var(--muted); white-space: nowrap; }
.checks input[type=number] { width: 46px; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-2); color: var(--fg); text-align: center; }
.checks input[type=checkbox] { accent-color: var(--violet); width: 16px; height: 16px; }
.add-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-size: 13px; min-height: 22px; }
.add-total { font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.add-btn { width: 100%; height: 50px; font-size: 15px; }

.pp-tabs { border-top: 1px solid var(--line); padding-top: 6px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 12px 0; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--fg); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--violet); }
.tab-body { padding-top: 16px; }
.desc { color: var(--fg-2); font-size: 15px; line-height: 1.65; margin: 0; }
.specs { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0; margin: 0; font-size: 14px; }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { color: var(--fg); }
.icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.icons img { width: 56px; height: 56px; background: var(--paper); border-radius: 10px; padding: 6px; object-fit: contain; }
.docs { display: flex; flex-direction: column; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--fg); transition: border-color .25s, box-shadow .3s; }
.docs a .arrow { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.docs a:hover { border-color: rgba(150,90,255,.7); box-shadow: var(--glow); }
.docs a:hover .arrow { transform: translateX(4px); color: var(--violet-text); }

.pp-rel { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.rel-h { margin-bottom: 22px; }
.rel-h h2 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 46px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.rel-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* visor a pantalla completa */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: 56px 72px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox > img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: var(--paper); border-radius: 12px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #000; color: #fff; font-size: 22px; cursor: pointer; }
.lb-close:hover { box-shadow: var(--glow); }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
.lb-cap b { color: var(--fg); letter-spacing: .12em; }
.lb-cap .num { margin-left: 10px; }

/* ---------- panel presupuesto ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(660px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-strong); z-index: 60; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; box-shadow: -30px 0 80px rgba(0,0,0,.6); }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.drawer .content { flex: 1; overflow: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 20px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; background: #000; }
.qline { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qline img { width: 68px; height: 68px; object-fit: contain; border-radius: 10px; background: var(--paper); }
.qline .t { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.qline .sz { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.qline .sz label { display: flex; flex-direction: column; font-size: 10px; font-weight: 700; color: var(--muted); align-items: center; gap: 2px; }
.qline .sz input { width: 48px; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; text-align: center; background: #000; color: var(--fg); font-weight: 700; }
.qline .right { text-align: right; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.qline .right label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qline .right input { width: 88px; height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; text-align: right; background: #000; color: var(--fg); }
.qline .right b { font-size: 16px; font-weight: 800; }
.qline .marks { font-size: 12px; color: var(--violet-text); margin-top: 6px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; font-size: 14px; color: var(--fg-2); }
.totals .grand { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--fg); padding-top: 6px; }
.sharebox { background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.sharebox input { flex: 1; min-width: 200px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #000; color: var(--violet-text); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; }

/* ---------- páginas simples ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 36px clamp(16px, 3vw, 48px) 80px; }
.page h1 { font-size: clamp(40px, 5vw, 72px); line-height: .95; font-weight: 800; letter-spacing: -.05em; margin: 0 0 28px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
table.list th { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
table.list tr:hover td { background: rgba(138,63,252,.04); }
table.list td.r, table.list th.r { text-align: right; }
.edit-table input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #000; color: var(--fg); }

/* ---------- acceso ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background:
  radial-gradient(60% 50% at 50% 38%, rgba(138,63,252,.16), transparent 70%), var(--bg); }
.login-box { position: relative; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 22px; padding: 40px 32px 32px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-box:has(form.wide) { width: min(640px, 100%); }
.login-box form { display: flex; flex-direction: column; gap: 16px; }
.login-box::before, .login-box::after { content: ""; position: absolute; width: 16px; height: 16px; }
.login-box::before { top: -18px; left: -18px; border-right: 1px solid var(--dim); border-bottom: 1px solid var(--dim); }
.login-box::after { bottom: -18px; right: -18px; border-left: 1px solid var(--dim); border-top: 1px solid var(--dim); }
.login-intro { margin: -4px 0 0; text-align: center; color: var(--fg-2); font-size: 14px; }
.login-alt { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.login-foot { margin: 0; text-align: center; font-size: 12px; color: var(--dim); }
.link-btn.center { align-self: center; }
.login .brand { justify-content: center; margin-bottom: 4px; }
.login .brand svg { width: 132px; }
.login h1 { margin: 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.login .btn { width: 100%; height: 48px; margin-top: 4px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-3); color: #fff; border: 1px solid rgba(150,90,255,.6); box-shadow: var(--glow); padding: 12px 18px; border-radius: 999px; z-index: 100; font-size: 14px; font-weight: 600; animation: rise .3s var(--ease); }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-weight: 600; letter-spacing: .08em; }

/* ---------- tienda, pedidos y clientes ---------- */
.badge:empty { display: none; }
.solo-movil { display: none; }
/* barra superior de la web (escaparate público) */
.topnote { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px clamp(16px, 3vw, 48px); background: var(--violet); color: #fff; font-size: 13px; font-weight: 500; text-align: center; }
.topnote b { font-weight: 800; }
.topnote .link-btn { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.topnote .link-btn:hover { color: #000; }
/* escaparate público (sin precios) */
.nav-link { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.nav-link:hover { color: var(--fg); }
.ver-precio { font-size: 12px; font-weight: 700; color: var(--violet-text); white-space: nowrap; }
.banner-alta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.banner-alta b { color: #fff; }
.cta-alta { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid rgba(150,90,255,.5); border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(138,63,252,.18), transparent 60%), #000; }
.cta-alta > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.cta-alta b { font-size: 18px; letter-spacing: -.02em; }
.cta-alta span { color: var(--fg-2); font-size: 14px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--fg-2); margin-top: 6px; }
.check-line input { accent-color: var(--violet); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--fg-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: rgba(150,90,255,.6); color: #fff; }
.chip.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.banner { padding: 10px clamp(16px, 3vw, 48px); background: rgba(255,181,71,.1); border-bottom: 1px solid rgba(255,181,71,.35); color: var(--warn); font-size: 13px; font-weight: 600; }
.banner a { color: #fff; margin-left: 8px; }
.banner.ok { background: rgba(138,63,252,.12); border-color: rgba(150,90,255,.4); color: var(--violet-text); }
.nav-user { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.estado { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--fg-2); vertical-align: middle; }
h1 .estado { font-size: 12px; margin-left: 10px; position: relative; top: -6px; }
.e-recibido, .c-pendiente { background: var(--violet); border-color: var(--violet); color: #fff; }
.e-en_revision { color: var(--violet-text); border-color: var(--violet); }
.e-confirmado, .e-en_produccion { color: var(--warn); border-color: rgba(255,181,71,.5); }
.e-enviado, .e-entregado, .c-activo { color: var(--ok); border-color: rgba(61,220,151,.5); }
.e-cancelado, .c-bloqueado { color: var(--bad); border-color: rgba(255,92,122,.5); }
table.list.clickable tbody tr { cursor: pointer; }
table.list tr.nuevo td:first-child { box-shadow: inset 3px 0 0 var(--violet); }
.crumb-back { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.crumb-back:hover { color: var(--violet-text); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: paso; }
.steps li { position: relative; padding-top: 14px; font-size: 12px; font-weight: 700; color: var(--dim); border-top: 3px solid var(--line-strong); }
.steps li.done { color: var(--fg); border-top-color: var(--violet); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid2 > .panel { margin-bottom: 0; }
.panel.grid2 { gap: 24px; }
.page > .grid2 { margin-bottom: 18px; }
.panel.msg { border-color: rgba(150,90,255,.45); background: rgba(138,63,252,.07); }
.oline { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.oline:last-of-type { border-bottom: 0; }
.oline img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--paper); }
.oline .t { font-weight: 700; }
.oline .r { text-align: right; }
.oline .r b { font-size: 16px; }
.sz-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sz-chips span { border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; color: var(--fg); text-decoration: none; }
.file small { color: var(--muted); }
a.file:hover { border-color: var(--violet); }
.upload { cursor: pointer; }
.warnbox { align-items: flex-start !important; padding: 10px 12px; border: 1px solid rgba(255,181,71,.4); border-radius: 10px; background: rgba(255,181,71,.06); }
.warnbox span { color: var(--fg-2); font-size: 13px; line-height: 1.45; }
body.noscroll-m { overflow: hidden; }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; animation: fade .2s ease; }
.modal-card { position: relative; width: min(760px, 100%); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; animation: rise .3s var(--ease); }
.modal-card h2 { margin: 2px 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.modal-card .close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: #000; color: var(--fg); font-size: 20px; cursor: pointer; }
.drawer .empty { border: 0; padding: 40px 10px; }

/* ---------- menú lateral: accesos rápidos y categorías ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.f-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px 0 4px; }
.f-quick:empty { display: none; }
.qk { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); color: var(--fg-2); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .3s, background .2s; }
.qk .ic { width: 18px; height: 18px; color: var(--violet-text); }
.qk span { font-size: 12px; font-weight: 700; line-height: 1.1; }
.qk small { font-size: 11px; color: var(--dim); font-weight: 600; }
.qk:hover { border-color: rgba(150,90,255,.6); color: #fff; }
.qk.on { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 18px rgba(138,63,252,.45); }
.qk.on .ic, .qk.on small { color: #fff; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-opt { width: calc(100% + 16px); margin: 0 -8px; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--fg-2); cursor: pointer; font-size: 14px; font-weight: 600; text-align: left; transition: background .15s, color .15s; }
.cat-opt .ic { padding: 6px; width: 32px; height: 32px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2); transition: border-color .2s, color .2s, box-shadow .3s; }
.cat-opt:hover { background: var(--bg-2); color: #fff; }
.cat-opt:hover .ic { border-color: rgba(150,90,255,.6); color: var(--violet-text); }
.cat-opt.on { color: #fff; }
.cat-opt.on .ic { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 14px rgba(138,63,252,.5); }
.cat-opt.on .f-count { color: var(--violet-text); }

/* ---------- portada de la tienda ---------- */
.lp { overflow-x: clip; }
.lp .label { margin-bottom: 14px; }
.lp .v { color: var(--violet-text); }
.lp .lead { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 52ch; margin: 0; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 15px; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(36px, 6vw, 96px) clamp(16px, 4vw, 72px) clamp(40px, 5vw, 72px); max-width: 1640px; margin: 0 auto; position: relative; }
.lp-hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(138,63,252,.22), transparent 70%); pointer-events: none; z-index: -1; }
.lp-hero h1 { font-size: clamp(48px, 7.4vw, 132px); line-height: .9; font-weight: 800; letter-spacing: -.06em; margin: 0 0 26px; text-wrap: balance; }
.lp-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lp-stats li { padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.lp-stats li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.lp-stats b { font-size: clamp(20px, 2vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.lp-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.lp-collage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 640px; justify-self: center; }
.lp-ph { position: absolute; padding: 0; border: 0; border-radius: 22px; background: var(--paper); overflow: hidden; cursor: pointer; box-shadow: 0 30px 70px rgba(0,0,0,.55); transition: transform .5s var(--ease), box-shadow .4s; }
.lp-ph img { width: 100%; height: 100%; object-fit: contain; }
.lp-ph:hover { box-shadow: 0 0 0 1px rgba(150,90,255,.6), 0 0 40px rgba(138,63,252,.45), 0 30px 70px rgba(0,0,0,.55); z-index: 5; }
.lp-ph-tag { position: absolute; left: 12px; bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: .14em; background: #000; color: #fff; padding: 4px 9px; border-radius: 999px; }
.lp-ph.ph0 { left: 4%; top: 6%; width: 56%; aspect-ratio: 1; transform: rotate(-4deg); z-index: 3; }
.lp-ph.ph1 { right: 0; top: 0; width: 40%; aspect-ratio: 1; transform: rotate(5deg); z-index: 2; }
.lp-ph.ph2 { right: 6%; bottom: 4%; width: 46%; aspect-ratio: 1; transform: rotate(-2deg); z-index: 4; }
.lp-ph.ph3 { left: 0; bottom: 0; width: 34%; aspect-ratio: 1; transform: rotate(6deg); z-index: 1; }
.lp-ph:hover { transform: rotate(0) scale(1.03); }
.lp-collage .crop { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.lp-collage .crop.tl { top: -8px; left: -8px; border-right: 1px solid var(--dim); border-bottom: 1px solid var(--dim); }
.lp-collage .crop.br { bottom: -8px; right: -8px; border-left: 1px solid var(--dim); border-top: 1px solid var(--dim); }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-in { display: flex; gap: 28px; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.marquee i { color: var(--violet); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } }

.lp-sec { max-width: 1640px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 72px) 0; }
.lp-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.lp-h h2, .lp-custom h2, .lp-final h2 { margin: 0; font-size: clamp(34px, 4.4vw, 72px); line-height: .95; font-weight: 800; letter-spacing: -.05em; }
.lp-h-a { display: flex; align-items: center; gap: 10px; }
.tlink { background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0 0 2px; color: var(--fg); font-size: 14px; font-weight: 700; cursor: pointer; margin-right: 8px; transition: border-color .2s; }
.tlink:hover { border-color: var(--violet); }
.icon-btn { background: transparent; cursor: pointer; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 4 * 18px) / 5)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > .card { scroll-snap-align: start; }

.lp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lp-cat { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--fg); cursor: pointer; text-align: left; overflow: hidden; transition: border-color .25s, box-shadow .3s, transform .25s var(--ease); }
.lp-cat:hover { border-color: rgba(150,90,255,.6); box-shadow: 0 0 0 1px rgba(150,90,255,.25), 0 18px 50px rgba(98,40,220,.2); transform: translateY(-2px); }
.lp-cat-img { width: 96px; height: 96px; border-radius: 12px; background: var(--paper); overflow: hidden; }
.lp-cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.lp-cat:hover .lp-cat-img img { transform: scale(1.08); }
.lp-cat-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-cat-txt .ic { color: var(--violet-text); width: 22px; height: 22px; margin-bottom: 2px; }
.lp-cat-txt b { font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.lp-cat-txt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.lp-cat > .arrow { color: var(--dim); font-size: 18px; }
.lp-cat:hover > .arrow { color: var(--violet-text); }

.lp-custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.lp-custom .lead { margin-top: 20px; }
.lp-tecnicas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.tec { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; }
.tec b { font-size: 16px; }
.tec span { font-size: 13px; color: var(--muted); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lp-steps li { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lp-steps .n { grid-row: span 2; font-size: 44px; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--violet-text); line-height: 1; }
.lp-steps b { font-size: 22px; letter-spacing: -.02em; }
.lp-steps span:not(.n) { color: var(--muted); font-size: 14px; }

/* franja de logos de marcas, todo centrado */
.lp-h.centro { justify-content: center; text-align: center; }
.lp-h.centro > div { display: flex; flex-direction: column; align-items: center; }
.lp-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1180px; margin: 0 auto; }
.lp-logo { flex: 0 1 260px; min-width: 0; height: 128px; display: grid; place-items: center; padding: 22px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--fg); transition: border-color .25s, box-shadow .3s, color .25s; }
.lp-logo > span { display: block; height: 42px; width: min(100%, calc(42px * var(--ratio, 4))); background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.lp-logo:hover { border-color: rgba(150,90,255,.6); box-shadow: var(--glow); color: var(--violet-text); }
@media (max-width: 640px) {
  .lp-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-logo { height: 92px; padding: 16px; }
  .lp-logo > span { height: 30px; width: min(100%, calc(30px * var(--ratio, 4))); }
}

.lp-final { max-width: 1640px; margin: clamp(56px, 7vw, 104px) auto 0; padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 72px); text-align: center; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, rgba(138,63,252,.18), transparent 70%); }
.lp-final .lead { margin: 20px auto 0; }
.lp-final .lp-ctas { justify-content: center; }
.lp-foot { max-width: 1640px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 72px) 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.lp-foot-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.lp-foot-brand svg { width: 80px; color: var(--fg); }
.lp-foot-brand svg .b-halo { display: none; }
.lp-foot-data { color: var(--muted); font-size: 13px; }

/* ---------- móvil ---------- */
.filters-toggle { display: none; }
@media (max-width: 1100px) {
  .brand-tag { display: none; }
  .pp-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); }
}
@media (max-width: 900px) {
  :root { --head: auto; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .nav { margin-left: auto; gap: 14px; }
  .nav a { font-size: 13px; }
  .toggle span { display: none; }
  .quote-btn { height: 38px; padding: 0 14px; font-size: 13px; }
  .layout { grid-template-columns: 1fr; padding: 18px 16px 48px; }
  /* filtros como panel deslizante */
  .filters { position: fixed; inset: 0 auto 0 0; top: 0; width: min(360px, 88vw); max-height: none; height: 100vh; z-index: 70; background: var(--bg-2); border-right: 1px solid var(--line-strong); padding: 18px 18px 96px; transform: translateX(-102%); transition: transform .3s var(--ease); }
  .filters.open { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.7); }
  .f-apply { display: block; position: fixed; left: 0; bottom: 0; width: min(360px, 88vw); padding: 14px 18px; background: var(--bg-2); border-top: 1px solid var(--line); }
  .f-apply .btn { width: 100%; }
  .f-close { display: inline-grid; place-items: center; }
  body.noscroll::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.6); }
  .filters-toggle { display: inline-flex; }
  .results-head { align-items: flex-start; }
  .rh-tools { width: 100%; justify-content: space-between; }
  .sort span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .body { padding: 10px 12px 12px; }
  .card .name { font-size: 14px; }
  .card .price b { font-size: 17px; }
  .tag { top: 12px; left: 12px; }
  /* producto */
  .pp { padding: 12px 16px 60px; }
  .pp-bar { margin-bottom: 18px; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-gallery, .pp-gallery:not(:has(.pp-thumbs)) { position: static; grid-template-columns: minmax(0, 1fr); }
  .pp-gallery .pp-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; min-width: 0; }
  .pp-thumbs button img { width: 60px; height: 60px; }
  .pp-frame { max-height: none; cursor: default; }
  .pp-main .crop { display: none; }
  .pp-arrow { opacity: 1; width: 36px; height: 36px; }
  .tiers-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier { padding: 10px; }
  .tier b { font-size: 17px; }
  .lightbox { padding: 56px 8px; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .lp-hero { grid-template-columns: 1fr; padding-top: 28px; }
  .lp-collage { max-width: 360px; margin-top: 8px; }
  .solo-pc { display: none; }
  .solo-movil { display: inline; }
  .banner-alta span { font-size: 12px; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .lp-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .lp-custom { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 70%; gap: 12px; }
  .lp-h-a .icon-btn { display: none; }
  .lp-cats { grid-template-columns: 1fr; }
  .lp-cat { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .lp-cat-img { width: 72px; height: 72px; }
  .btn.lg { height: 48px; padding: 0 20px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .oline { grid-template-columns: 56px minmax(0, 1fr); }
  .oline img { width: 56px; height: 56px; }
  .oline .r { grid-column: 2; text-align: left; }
  table.list { font-size: 13px; }
  .nav-user { max-width: 110px; }
}
@media (max-width: 520px) {
  .brand svg { width: 78px; }
  .nav a[data-nav="ajustes"] { display: none; }
  .pp-nav span { display: none; }
}

/* ------------------------------------------------------------ menú de categorías con submenús */
.catnav { position: relative; z-index: 25; background: var(--bg); border-bottom: 1px solid var(--line); }
.catnav-in { display: flex; gap: 0; padding: 0 clamp(8px, 2vw, 32px); overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
/* centrado cuando cabe; si no cabe, desplazable sin cortar el primero */
.catnav-in > :first-child { margin-left: auto; }
.catnav-in > :last-child { margin-right: auto; }
.catnav-it { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 50px; padding: 0 clamp(8px, .8vw, 14px); border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; position: relative; white-space: nowrap; transition: color .2s; }
.catnav-it .ic { width: 18px; height: 18px; flex: none; }
@media (max-width: 1480px) and (min-width: 901px) { .catnav-it .ic { display: none; } }
.catnav-it::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--violet-text); transform: scaleX(0); transition: transform .25s; }
.catnav-it:hover, .catnav-it.on { color: var(--fg); }
.catnav-it.on::after { transform: scaleX(1); box-shadow: 0 0 10px rgba(150,90,255,.8); }

.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: rgba(6,5,9,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.mega-panel.open { opacity: 1; visibility: visible; transform: none; }
.mega-in { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 48px) 32px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 48px); }
.mega-col .label { margin-bottom: 10px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col ul.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.mega-col li button { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-left: -10px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.mega-col li button small { color: var(--dim); font-size: 12px; font-weight: 600; }
.mega-col li button:hover { background: rgba(138,63,252,.14); color: var(--violet-text); }
.mega-col li button:hover small { color: var(--violet-text); }
.mega-col li button.ver { color: var(--violet-text); font-weight: 700; }
.mega-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); color: var(--fg); cursor: pointer; text-align: left; position: relative; padding: 0; font: inherit; transition: border-color .25s, box-shadow .3s; }
.mega-card:hover { border-color: rgba(150,90,255,.6); box-shadow: var(--glow); }
.mega-img { display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.mega-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.mega-card:hover .mega-img img { transform: scale(1.05); }
.mega-card-t { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 14px 16px; }
.mega-card-t .ic { width: 22px; height: 22px; grid-row: span 2; color: var(--violet-text); }
.mega-card-t b { font-size: 15px; }
.mega-card-t small { color: var(--muted); font-size: 12px; }
.mega-card .arrow { position: absolute; right: 16px; bottom: 22px; color: var(--violet-text); }

@media (max-width: 900px) {
  .catnav-in { justify-content: flex-start; padding: 0 8px; }
  .catnav-it { height: 46px; padding: 0 12px; font-size: 13px; }
  .mega-panel { max-height: calc(100vh - 160px); overflow-y: auto; }
  .mega-in { grid-template-columns: 1fr; gap: 18px; padding: 18px 16px 22px; }
  .mega-col ul.dos { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .mega-card { flex-direction: row; align-items: center; }
  .mega-img { width: 84px; height: 84px; aspect-ratio: auto; flex: none; }
  .mega-card .arrow { bottom: auto; top: 50%; transform: translateY(-50%); }
}

