:root {
  --green: #57ab27;
  --green-600: #458c1c;
  --green-50: #eef7e8;
  --red: #d4021d;
  --ink: #17181a;
  --ink-2: #3e3d40;
  --muted: #6b6d70;
  --line: #e5e6e3;
  --bg: #fafaf8;
  --surface: #ffffff;
  --tile: #f2f3ef;
  --shadow: 0 1px 2px rgba(20, 22, 18, .05), 0 8px 24px -12px rgba(20, 22, 18, .18);
  --shadow-lg: 0 30px 80px -20px rgba(10, 12, 8, .45);
  --r: 18px;
  --r-sm: 12px;
  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f2ee; --ink-2: #d9dbd5; --muted: #9a9d97; --line: #2a2d29;
    --bg: #0f110f; --surface: #171a17; --tile: #f3f4f0; --green-50: #1b2915;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f1f2ee; --ink-2: #d9dbd5; --muted: #9a9d97; --line: #2a2d29;
  --bg: #0f110f; --surface: #171a17; --tile: #f3f4f0; --green-50: #1b2915;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand__logo { height: 26px; width: auto; }
.brand__logo--dark { display: none; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; opacity: .85; transition: background .2s, opacity .2s; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
@media (min-width: 980px) { .nav { display: flex; } }
.topbar__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.iconbtn--plain { border-color: var(--line); background: transparent; color: var(--ink); }
.orderbtn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; transition: transform .15s var(--ease), background .2s; }
.orderbtn:active { transform: scale(.97); }
.orderbtn:hover { background: var(--green-600); }
.orderbtn__count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.22); display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.orderbtn.bump .orderbtn__count { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 480px) { .orderbtn__label { display: none; } }

.topbar.is-solid { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.topbar.is-solid .brand__logo--light { display: none; }
.topbar.is-solid .brand__logo--dark { display: block; }
.topbar.is-solid .iconbtn { border-color: var(--line); background: var(--surface); }
.topbar.is-solid .nav a:hover { background: var(--tile); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar.is-solid .brand__logo--light { display: block; }
  :root:not([data-theme="light"]) .topbar.is-solid .brand__logo--dark { display: none; }
  :root:not([data-theme="light"]) .topbar.is-solid .nav a:hover { background: rgba(255,255,255,.08); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0c0e0b; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear; }
.hero__media img.is-on { opacity: 1; transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8,10,7,.55) 0%, rgba(8,10,7,.15) 30%, rgba(8,10,7,.7) 72%, rgba(8,10,7,.95) 100%),
  linear-gradient(90deg, rgba(8,10,7,.7) 0%, rgba(8,10,7,0) 65%); }
.hero__in { padding-top: 140px; padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); margin: 0 0 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(87,171,39,.3); }
.hero h1 { font: 800 clamp(38px, 5.4vw, 76px)/.98 var(--head); letter-spacing: -.035em; margin: 0 0 24px; max-width: 17ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); max-width: 58ch; color: rgba(255,255,255,.82); margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s var(--ease), background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; max-width: 820px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 4px 0 12px; }
.stats dt { font: 700 clamp(26px, 3vw, 36px)/1 var(--head); letter-spacing: -.02em; }
.stats dd { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.65); }

/* ---------- Section tiles ---------- */
.sections { display: grid; gap: 16px; margin-top: -1px; padding-top: 56px; padding-bottom: 24px; }
@media (min-width: 860px) { .sections { grid-template-columns: repeat(3, 1fr); padding-top: 72px; } }
.tile { position: relative; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile__img { aspect-ratio: 16 / 10; background: var(--tile); display: grid; place-items: center; padding: 24px; }
.tile__img { overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__txt { padding: 20px 22px 22px; display: grid; gap: 4px; }
.tile__num { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile h2 { font: 700 26px/1.1 var(--head); letter-spacing: -.02em; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile h2 svg { width: 22px; height: 22px; color: var(--green); transition: transform .3s var(--ease); }
.tile:hover h2 svg { transform: translateX(4px); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Toolbar ---------- */
.catalog { padding-top: 32px; padding-bottom: 80px; }
.toolbar { position: sticky; top: 68px; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.toolbar__in { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .25s var(--ease), color .2s; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.seg button .n { font-weight: 500; opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.toolbar__right { display: flex; gap: 8px; align-items: center; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; min-width: 0; }
.search svg { position: absolute; left: 14px; color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 40px 0 40px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
@media (min-width: 720px) { .search input { font-size: 15px; } }
.search input:focus { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.search kbd, .palette kbd { position: absolute; right: 12px; font: 500 12px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--bg); }
.search input:not(:placeholder-shown) + kbd { display: none; }
select#sort { height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 14px; max-width: 200px; }
.viewtoggle { display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; }
.viewtoggle button { width: 36px; height: 34px; border: 0; background: transparent; border-radius: 999px; display: grid; place-items: center; color: var(--muted); }
.viewtoggle button.is-on { background: var(--tile); color: var(--ink); }
.viewtoggle svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .toolbar__right { width: 100%; }
  .search { max-width: none; }
  select#sort { width: 44px; padding: 0; color: transparent; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6d70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M7 20l-3-3M7 20l3-3M17 20V4M17 4l-3 3M17 4l3 3'/%3E%3C/svg%3E") center / 18px no-repeat; appearance: none; }
  select#sort option { color: var(--ink); }
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--muted); }
.chip.is-on { background: var(--green-50); border-color: var(--green); color: var(--green-600); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.is-on { color: #9bd66f; } }
.chip .n { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }

.resultinfo { color: var(--muted); font-size: 14px; margin: 20px 0 8px; min-height: 22px; }

/* ---------- Group + grid ---------- */
.group { margin-top: 28px; }
.group__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.group__head h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.1 var(--head); letter-spacing: -.02em; margin: 0; }
.group__head span { color: var(--muted); font-size: 14px; }
.group__desc { color: var(--muted); font-size: 14px; margin: -8px 0 16px; max-width: 80ch; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__hit { position: absolute; inset: 0; border: 0; background: transparent; z-index: 1; border-radius: inherit; }
.card__img { aspect-ratio: 1 / 1; background: var(--tile); display: grid; place-items: center; padding: 18px; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__img .ph { color: #b7bab2; display: grid; place-items: center; gap: 6px; font: 700 22px var(--head); letter-spacing: -.02em; text-align: center; }
.card__img .ph small { font: 500 11px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 20px); }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #fff; color: #3e3d40; box-shadow: 0 1px 2px rgba(0,0,0,.08); white-space: nowrap; }
.badge--green { background: var(--green); color: #fff; }
.badge--red { background: var(--red); color: #fff; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.code { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--green-600); letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .code { color: #8fcf62; } }
.card__name { font-weight: 600; font-size: 15px; line-height: 1.3; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { font: 700 20px/1 var(--head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { display: block; font: 500 11.5px/1.3 var(--body); color: var(--muted); letter-spacing: 0; margin-top: 4px; white-space: normal; }
.price .from { font: 500 12px var(--body); color: var(--muted); margin-right: 3px; }
.addbtn { position: relative; z-index: 2; width: 38px; height: 38px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.addbtn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.addbtn:active { transform: scale(.9); }
.addbtn.is-added { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 520px) {
  .card__body { padding: 12px; }
  .card__name { font-size: 14px; }
  .card .price { font-size: 16px; }
  .card .price .from { display: block; margin: 0 0 3px; font-size: 11px; }
  .card__foot { gap: 6px; }
  .addbtn { width: 34px; height: 34px; }
  .card__badges .badge--green { display: none; }
  .toolbar__in { padding-top: 10px; gap: 8px; }
}

/* ---------- List (tarifa) ---------- */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: grid; grid-template-columns: 56px 110px 1fr auto 44px; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-top: 1px solid var(--line); position: relative; }
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--tile) 50%, transparent); }
.row__img { width: 56px; height: 56px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; padding: 4px; overflow: hidden; }
.row__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.row__name { font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.row__name small { display: block; color: var(--muted); font-size: 12.5px; }
.row .price { font-size: 16px; text-align: right; }
.row .card__hit { z-index: 1; }
@media (max-width: 720px) {
  .row { grid-template-columns: 48px 1fr auto 38px; gap: 10px; }
  .row__img { width: 48px; height: 48px; }
  .row .code { grid-column: 2; grid-row: 1; align-self: start; margin-top: 6px; }
  .row__name { grid-column: 2; grid-row: 1; margin-top: 22px; }
  .row .price { grid-column: 3; grid-row: 1; }
  .row .addbtn { grid-column: 4; grid-row: 1; }
  .row__img { grid-row: 1; }
}

.empty { text-align: center; padding: 80px 16px; color: var(--muted); }
.empty strong { display: block; font: 700 24px var(--head); color: var(--ink); margin-bottom: 8px; }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 80px; }
@media (min-width: 860px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust__item { background: var(--surface); padding: 28px; display: grid; gap: 6px; }
.trust__item strong { font: 700 26px/1.1 var(--head); letter-spacing: -.02em; color: var(--green); }
.trust__item span { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #111310; color: rgba(255,255,255,.7); padding: 56px 0 72px; font-size: 14px; }
.footer__in { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer__in { grid-template-columns: 1.3fr 1.3fr .8fr; } }
.footer__logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer h2 { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.footer a { color: #fff; }

/* ---------- Modal ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 12, 9, .55); backdrop-filter: blur(6px); }
.modal { width: min(1100px, calc(100% - 32px)); margin: auto; }
.modal[open] .modal__box { animation: pop .35s var(--ease); }
.modal[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); display: grid; overflow: hidden; max-height: calc(100dvh - 48px); }
@media (min-width: 880px) {
  .modal__box { grid-template-columns: 1.05fr 1fr; grid-template-rows: minmax(0, 1fr); height: min(820px, calc(100dvh - 48px)); }
  .gallery, .pm__info { min-height: 0; height: 100%; }
  .gallery__main { flex: 1 1 auto; }
}
.pm__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.gallery { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.gallery__main { flex: 1; display: grid; place-items: center; padding: 32px; min-height: 280px; aspect-ratio: 1 / 1; max-height: 62dvh; }
@media (min-width: 880px) { .gallery__main { aspect-ratio: auto; max-height: none; min-height: 420px; } }
.gallery__main { position: relative; min-height: 0; }
.gallery__main img { position: absolute; inset: 32px; width: calc(100% - 64px); height: calc(100% - 64px); object-fit: contain; mix-blend-mode: multiply; animation: fade .3s ease; }
.gallery__thumbs { display: flex; gap: 8px; padding: 0 16px 16px; justify-content: center; }
.gallery__thumbs button { width: 60px; height: 60px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 4px; }
.gallery__thumbs button.is-on { border-color: var(--green); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pm__info { padding: 28px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 880px) { .pm__info { padding: 40px 40px 32px; } }
.pm__crumbs { font-size: 13px; color: var(--muted); margin: 0; }
.pm__info h2 { font: 700 clamp(26px, 3vw, 36px)/1.05 var(--head); letter-spacing: -.025em; margin: 6px 0 0; }
.pm__sub { color: var(--muted); margin: 6px 0 0; }
.pm__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm__tags .badge { background: var(--tile); box-shadow: none; }
.pm__desc { margin: 0; color: var(--ink-2); }
.pm__h { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.pm__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.pm__list li { position: relative; padding-left: 20px; }
.pm__list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--muted); }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.opt input { accent-color: var(--green); width: 18px; height: 18px; margin: 2px 0 0; }
.opt__name { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.opt__name small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.opt .price { font-size: 17px; }
.buy { display: flex; gap: 10px; align-items: center; position: sticky; bottom: -32px; background: var(--surface); padding: 14px 0 32px; margin-bottom: -32px; box-shadow: 0 -12px 16px -8px var(--surface); margin-top: auto; }
.buy .btn { flex: 1; }
.buy__total { font: 700 26px/1 var(--head); font-variant-numeric: tabular-nums; }
.buy__total small { display: block; font: 500 12px var(--body); color: var(--muted); margin-top: 4px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 50px; }
.stepper button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 20px; color: var(--ink); border-radius: 999px; }
.stepper output, .stepper span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper--sm { height: 34px; }
.stepper--sm button { width: 32px; font-size: 16px; }
.pm__meta { font-size: 12.5px; color: var(--muted); margin: 0; }
@media (max-width: 879px) {
  .modal { width: 100%; margin: auto 0 0; }
  .modal__box { border-radius: 24px 24px 0 0; max-height: 94dvh; overflow-y: auto; }
  .pm__info { overflow: visible; }
  .modal[open] .modal__box { animation: sheet .4s var(--ease); }
  .buy { bottom: 0; padding-bottom: 16px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Palette ---------- */
.palette { width: min(640px, calc(100% - 32px)); margin: 12vh auto auto; }
.palette[open] .palette__box { animation: pop .25s var(--ease); }
.palette__box { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette__field { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.palette__field svg { position: absolute; left: 20px; color: var(--muted); }
.palette__field input { width: 100%; height: 64px; border: 0; outline: none; background: transparent; padding: 0 70px 0 54px; font-size: 18px; }
.palette__field input::-webkit-search-cancel-button { display: none; }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.palette__list li button { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border: 0; background: transparent; border-radius: 12px; text-align: left; }
.palette__list li button[aria-selected="true"], .palette__list li button:hover { background: var(--tile); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .palette__list li button[aria-selected="true"], :root:not([data-theme="light"]) .palette__list li button:hover { background: rgba(255,255,255,.06); } }
.palette__list .row__img { width: 44px; height: 44px; }
.palette__list .t { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.palette__list .t small { display: block; color: var(--muted); font-size: 12px; }
.palette__list .price { font-size: 15px; }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,12,9,.5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 700 24px var(--head); letter-spacing: -.02em; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .row__img { width: 56px; height: 56px; }
.line__name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.line__name small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.line__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line__rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.line .price { font-size: 16px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum strong { font: 700 28px var(--head); font-variant-numeric: tabular-nums; }
.sum span { color: var(--muted); font-size: 13px; }
.drawer__foot .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.drawer__empty svg { width: 44px; height: 44px; color: var(--line); margin: 0 auto 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .topbar, .hero, .sections, .toolbar, .trust, .drawer, .toast { display: none !important; }
  body { background: #fff; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .viewtoggle button.is-on { background: rgba(255,255,255,.14); }
  :root:not([data-theme="light"]) .pm__tags .badge { background: rgba(255,255,255,.1); color: var(--ink); }
  :root:not([data-theme="light"]) .row:hover { background: rgba(255,255,255,.03); }
}

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 28px; align-items: center; margin-bottom: 40px; padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.contact__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
.contact h2 { font: 700 clamp(28px, 3.6vw, 44px)/1.05 var(--head); letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.contact__txt p:last-child { color: var(--muted); margin: 0; max-width: 56ch; }
.contact__cards { display: grid; gap: 12px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; min-width: 0; }
.ccard[hidden] { display: none; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green); }
.ccard__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.ccard small { display: block; color: var(--muted); font-size: 13px; }
.ccard strong { font: 700 clamp(18px, 2vw, 22px)/1.2 var(--head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pm__meta a { color: var(--green-600); font-weight: 500; }
.ccard__ico--wa { background: #25d366; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1fb457; }
.ivanote { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--green-50); color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.line .price small { display: block; text-align: right; }
.footer__dist { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 6px 12px; border-radius: 999px; background: rgba(87,171,39,.14); border: 1px solid rgba(87,171,39,.4); color: #fff; font-weight: 600; font-size: 13.5px; }
.footer__dist::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Manuales ---------- */
.manuals { padding-top: 32px; padding-bottom: 24px; }
.manuals__head { max-width: 640px; margin-bottom: 24px; }
.manuals__head h2 { font: 700 clamp(28px, 3.6vw, 44px)/1.05 var(--head); letter-spacing: -.025em; margin: 0 0 12px; }
.manuals__head p:last-child { color: var(--muted); margin: 0; }
.manuals__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mcard { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; display: grid; gap: 10px; }
.mcard strong { font-weight: 600; font-size: 15px; }
.mcard__links { display: flex; flex-wrap: wrap; gap: 6px; }
.pdf { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.pdf svg { width: 16px; height: 16px; color: var(--red); }
.pdf:hover { border-color: var(--green); background: var(--green-50); }

/* Familias: en ordenador se ven todas (varias líneas); en móvil, deslizables */
@media (min-width: 720px) {
  .chips { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 719px) {
  .chips { mask-image: none; -webkit-mask-image: none; }
  .chips.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .chips.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
  .chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
}
/* Precio único: sin botón de opción, nombre a la izquierda y precio a la derecha */
.opt:has(input[hidden]) { grid-template-columns: 1fr auto; cursor: default; }
.opt:has(input[hidden]):hover { border-color: var(--green); }
.opt input[hidden] { display: none; }
.opt .price { text-align: right; }

/* ---------- Selector de idioma ---------- */
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); color: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang__btn svg { width: 17px; height: 17px; }
.lang__btn .lang__chev { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.topbar.is-solid .lang__btn { border-color: var(--line); background: var(--surface); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; animation: pop .2s var(--ease); }
.lang__menu[hidden] { display: none; }
.lang__menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; border-radius: 10px; font-size: 14.5px; text-align: left; color: var(--ink); }
.lang__menu button b { width: 24px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.lang__menu button:hover { background: var(--tile); }
.lang__menu button[aria-checked="true"] { background: var(--green-50); color: var(--green-600); font-weight: 600; }
.lang__menu button[aria-checked="true"] b { color: var(--green-600); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lang__menu button:hover { background: rgba(255,255,255,.06); } }
@media (max-width: 400px) { .lang__btn { padding: 0 8px; gap: 4px; } .lang__btn svg:first-child { display: none; } .topbar__actions { gap: 6px; } }

/* Menú superior: una sola línea; con nombres largos (PT) se oculta antes */
.nav a, .orderbtn__label { white-space: nowrap; }
@media (max-width: 1080px) { .nav { display: none; } }
@media (max-width: 1340px) { html[lang="pt-PT"] .nav, html[lang="fr"] .nav { display: none; } }

/* ---------- Pedido en dos pasos + datos del cliente ---------- */
.steps { display: flex; gap: 8px; list-style: none; margin: 8px 0 4px; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--tile); }
.steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); flex: none; }
.steps li.is-on { background: var(--green-50); color: var(--ink); }
.steps li.is-on b { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.is-done b { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li { background: rgba(255,255,255,.05); } :root:not([data-theme="light"]) .steps li.is-on { background: var(--green-50); } }
.cust { display: grid; gap: 14px; padding: 8px 0 16px; }
.cust__intro { margin: 0; font-size: 13.5px; color: var(--muted); }
.cust fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
.cust fieldset[hidden] { display: none; }
.cust legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-600); padding: 0 6px; }
.fields { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: grid; gap: 4px; flex: 1 1 100%; min-width: 0; }
.field--half { flex: 1 1 calc(50% - 5px); }
.field span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 12px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
@media (min-width: 720px) { .field input, .field textarea { font-size: 14.5px; } }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.cust.was-validated .field input:invalid { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.check--small { font-size: 13px; color: var(--muted); }
.cust__req { margin: 0; font-size: 12.5px; color: var(--muted); }
.drawer__foot .btns .btn--wa { color: #fff; }

/* Pedido enviado */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { text-align: center; padding: 48px 12px; }
.sent__ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .4s var(--ease); }
.sent__ico svg { width: 32px; height: 32px; stroke-width: 2.4; }
.sent h3 { font: 700 26px var(--head); letter-spacing: -.02em; margin: 0 0 8px; }
.sent p { color: var(--ink-2); margin: 0; }
.senderr { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecee; color: #a40016; font-size: 13.5px; }
