/* Prism & Patina · site styles */
:root {
  --paper: #F4F6F1; --panel: #FFFFFF; --ink: #18201C; --ink-2: #4B5750; --line: #D5DDD6;
  --moss: #2E5C3A; --moss-soft: #DCEBDF; --copper: #9C5424; --copper-soft: #F3E4D7; --focus: #2E5C3A;
  --night: #111714; --night-2: #1B2420; --night-ink: #E9EFEA; --night-ink-2: #A9B6AE; --glow: #E9B866;
  --ok: #3E8E54; --warn: #A36A12; --bad: #B83B3B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1411; --panel: #18201C; --ink: #E5ECE6; --ink-2: #A8B5AC; --line: #2B3731;
    --moss: #8DC09A; --moss-soft: #1F3326; --copper: #DE9A66; --copper-soft: #34261B; --focus: #8DC09A;
    --ok: #7FD08E; --warn: #E9B866; --bad: #E66767;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1411; --panel: #18201C; --ink: #E5ECE6; --ink-2: #A8B5AC; --line: #2B3731;
  --moss: #8DC09A; --moss-soft: #1F3326; --copper: #DE9A66; --copper-soft: #34261B; --focus: #8DC09A;
  --ok: #7FD08E; --warn: #E9B866; --bad: #E66767;
}
[hidden] { display: none !important; }
:root[data-lang="es"] .en, :root[data-lang="en"] .es { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Karla', 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.55; }
img, canvas { max-width: 100%; }
a { color: var(--moss); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--copper); margin: 0 0 10px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 12px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 12px 18px; font-weight: 700; cursor: pointer; background: var(--moss); color: var(--panel); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--moss); box-shadow: inset 0 0 0 1.5px var(--moss); }
.btn.small { padding: 8px 12px; font-size: 14px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 21px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .brandmark { flex: none; width: 30px; height: 30px; }
.brand small { font-family: 'Karla', sans-serif; font-weight: 500; font-size: 12px; color: var(--ink-2); margin-left: -4px; }
.nav nav { display: flex; gap: 18px; margin-left: auto; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--moss); }
.langbtn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.menubtn { display: none; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* hero */
.hero { background: radial-gradient(90% 120% at 75% 40%, #2a2419 0%, var(--night) 55%); color: var(--night-ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-block: 56px 60px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--glow); font-weight: 500; }
.hero .lede { color: var(--night-ink-2); }
.hero .kicker { color: var(--glow); }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn { background: var(--glow); color: #231A0E; }
.hero .btn.ghost { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px rgba(233,239,234,.4); }
.hero .facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: var(--night-ink-2); }
.hero .facts b { display: block; color: var(--night-ink); font-size: 15px; }
.window { position: relative; }
.window canvas { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 0 80px rgba(233,184,102,.25), 0 0 0 6px #2b231a; }
.window .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--night-ink-2); flex-wrap: wrap; }
.window .cap b { color: var(--night-ink); font-weight: 700; }
.window .cap .btns { display: flex; gap: 8px; }
.window .cap button { border: 1px solid rgba(233,239,234,.25); background: rgba(233,239,234,.06); color: var(--night-ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }

/* sections */
section.block { padding-block: 72px; }
section.block + section.block { border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); }

/* taller */
.taller { background: var(--night); padding-block: 56px 0; color: var(--night-ink); }
.taller .head .lede { color: var(--night-ink-2); }
.taller .kicker { color: var(--glow); }
.app { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); gap: 0; background: var(--paper); color: var(--ink); }
.stagewrap { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100dvh - 64px); padding: 14px; background: var(--night); }
.stage { position: relative; height: 100%; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 50% 38%, var(--night-2) 0%, var(--night) 62%); transition: background .6s; }
.stage.lit { background: radial-gradient(90% 70% at 50% 42%, #3a2d1c 0%, #1d1a14 45%, var(--night) 80%); }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage .top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.stage .top > * { pointer-events: auto; }
.stitle { color: var(--night-ink); font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 500; pointer-events: none !important; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sbtn { background: rgba(233,239,234,.08); border: 1px solid rgba(233,239,234,.18); color: var(--night-ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sbtn:hover { background: rgba(233,239,234,.16); }
.sbtn[aria-pressed="true"] { background: var(--glow); color: #231A0E; border-color: var(--glow); }
.sbtn:disabled { opacity: .4; cursor: not-allowed; }
.sbtn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.views { position: absolute; left: 14px; top: 52px; display: flex; gap: 6px; flex-wrap: wrap; }
.views .opt label { background: rgba(233,239,234,.08); border-color: rgba(233,239,234,.18); color: var(--night-ink); min-height: 32px; padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.views .opt input:checked + label { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); box-shadow: none; }
.fit { position: absolute; left: 14px; bottom: 64px; max-width: min(420px, calc(100% - 28px)); padding: 9px 12px; border-radius: 8px; background: rgba(15,20,18,.85); color: var(--night-ink); font-size: 13.5px; border-left: 4px solid var(--glow); }
.fit b { display: block; font-weight: 700; }
.fit span { color: var(--night-ink-2); font-size: 12.5px; }
.fit[data-state="ok"] { border-left-color: #7FD08E; }
.fit[data-state="tight"] { border-left-color: #E9B866; }
.fit[data-state="bad"] { border-left-color: #E66767; }
.stage .bottom { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; pointer-events: none; color: var(--night-ink-2); font-size: 12.5px; }
.stage .bottom b { color: var(--night-ink); }
.sprice { text-align: right; color: var(--night-ink); }
.sprice b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.sprice span { font-size: 11.5px; color: var(--night-ink-2); }
.stage.photo { background-color: #0d100e; background-size: contain; background-position: center; background-repeat: no-repeat; }
.calib { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.photohint { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; color: var(--night-ink); pointer-events: none; }
.photohint p { max-width: 34ch; margin: 0 auto; color: var(--night-ink-2); }
.photohint .btn { pointer-events: auto; justify-self: center; background: var(--glow); color: #231A0E; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--night-ink); padding: 24px; text-align: center; }

.panel { padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px; gap: 4px; }
.tabs button { border: 0; background: transparent; padding: 10px 8px; border-radius: 6px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--moss); color: var(--panel); }
.intro { color: var(--ink-2); margin: 0; font-size: 15px; }
.group { display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.off { opacity: .5; }
legend { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
legend .val { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); font-size: 13.5px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; cursor: pointer; font-size: 14px; min-height: 40px; }
.opt label .t { display: flex; flex-direction: column; }
.opt label small { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt input:checked + label { border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); background: var(--moss-soft); }
.opt input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt input:disabled + label { opacity: .45; cursor: not-allowed; }
.chip { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; }
.pal { display: flex; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); }
.pal i { width: 8px; height: 24px; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.opt.thumb label { flex-direction: column; align-items: stretch; padding: 6px; gap: 6px; }
.opt.thumb canvas { width: 100%; height: auto; border-radius: 3px; display: block; }
.opt.thumb .t { font-size: 13px; }
.range { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; }
.range label { font-size: 14px; color: var(--ink-2); }
.range input[type="range"] { width: 100%; accent-color: var(--moss); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nums label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); gap: 4px; }
.txt, select.txt, .nums input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.count { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--moss); margin: 0; }
.toggle small { display: block; color: var(--ink-2); font-size: 12px; }
.hint { font-size: 13px; color: var(--ink-2); margin: 0; }
.space { background: var(--copper-soft); border-radius: 8px; padding: 12px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sumhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ref { font-size: 12px; color: var(--ink-2); text-align: right; overflow-wrap: anywhere; }
.ref b { display: block; color: var(--ink); font-size: 12.5px; letter-spacing: .02em; }
details summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.lines { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lines li:last-child { border-bottom: 0; }
.lines li.tot { font-weight: 700; }
.lines span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lead { font-size: 14px; color: var(--ink-2); }
.lead b { color: var(--ink); }
.cta { display: flex; gap: 8px; flex-wrap: wrap; }
.fine { font-size: 12px; color: var(--ink-2); margin: 0; }
textarea.copybox { width: 100%; min-height: 120px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 8px; }

/* patterns gallery */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card canvas { width: 100%; height: auto; display: block; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 19px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.card .meta { font-size: 12.5px; color: var(--copper); font-weight: 700; letter-spacing: .02em; }
.card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.note { margin-top: 22px; padding: 12px 16px; border-left: 3px solid var(--copper); background: var(--copper-soft); border-radius: 0 6px 6px 0; font-size: 14px; max-width: 80ch; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.product h3 { font-size: 24px; }
.product .from { font-family: 'Fraunces', Georgia, serif; font-size: 20px; color: var(--moss); }
.product ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.product .btn { margin-top: auto; align-self: flex-start; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--moss); padding-top: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: 'Fraunces', Georgia, serif; font-size: 26px; color: var(--copper); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* faq + custom + contact */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; color: var(--ink); }
.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.custom { background: var(--moss); color: var(--panel); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.custom h3 { font-size: 26px; }
.custom p { margin: 0; opacity: .9; }
.custom ul { margin: 0; padding-left: 18px; opacity: .92; }
.custom .btn { background: var(--panel); color: var(--moss); align-self: flex-start; }
form.contact { display: grid; gap: 12px; }
form.contact label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
form.contact input, form.contact select, form.contact textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
form.contact textarea { min-height: 110px; resize: vertical; }
.formnote { font-size: 13px; color: var(--ink-2); }
.social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.social a { font-weight: 700; text-decoration: none; }
footer { background: var(--night); color: var(--night-ink-2); padding-block: 36px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer b { color: var(--night-ink); font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600; }
footer a { color: var(--night-ink); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 6px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 44px; }
  .app { grid-template-columns: 1fr; }
  .stagewrap { position: relative; top: 0; height: 64vh; min-height: 380px; max-height: 600px; padding: 10px; }
  .products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
  .nav nav.open { display: flex; }
  .menubtn { display: inline-block; margin-left: auto; }
  .brand small { display: none; }
  .steps { grid-template-columns: 1fr; }
  .panel { padding: 18px 16px 36px; }
  .stitle { font-size: 18px; }
  .sbtn .lbl { display: none; }
  .fit { bottom: 70px; }
}
