/* Configurador de cocinas, armarios y muebles a medida — estilos */
:root { --acc: #1F6F50; --acc2: #1F3A45; --ink: #1d2226; --mut: #6b7177; --line: #e3e1dc; --bg: #f5f4f0; --card: #fff; --warn: #b7791f; --err: #b4382f; --ok: #2f7d4f; --r: 10px; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

#loading { position: fixed; inset: 0; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 14px; z-index: 50; color: var(--mut); }
.spinner { width: 42px; height: 42px; border: 4px solid #d9e6df; border-top-color: var(--acc); border-radius: 50%; animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- barra superior */
.topbar { height: 64px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo { width: 38px; height: 38px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-txt b { font-size: 15px; white-space: nowrap; }
.brand-txt span { font-size: 12px; color: var(--mut); white-space: nowrap; }
.prod-tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; margin: 0 auto; }
.prod-tabs button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--mut); }
.prod-tabs button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.prod-tabs button.on { background: #fff; color: var(--acc); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.top-right { display: flex; align-items: center; gap: 10px; }
.price-box { text-align: right; line-height: 1.15; margin-right: 6px; }
.price-box #hdrPrice { font-size: 13px; color: var(--mut); display: flex; gap: 6px; align-items: baseline; justify-content: flex-end; }
.price-box #hdrPrice b { font-size: 17px; color: var(--ink); }
.price-box small { font-size: 11px; color: var(--mut); }
.btn { border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: .15s; }
.btn.primary { background: var(--acc); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.danger:hover { border-color: var(--err); color: var(--err); }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-content: center; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.more { position: relative; }
.dropdown { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 6px; min-width: 240px; z-index: 20; }
.dropdown button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.dropdown button:hover { background: var(--bg); color: var(--acc); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dd-title { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); padding: 4px 12px; }
.only-sm { display: none; }

/* ---------- zona principal */
.app { display: flex; height: calc(100% - 64px); }
.viewer { position: relative; flex: 1; min-width: 0; background: #e9e7e2; }
#scene { position: absolute; inset: 0; }
#scene canvas { display: block; width: 100% !important; height: 100% !important; outline: none; }
.overlay { position: absolute; z-index: 3; }
.overlay.tl { left: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.overlay.tr { right: 14px; top: 14px; }
.overlay.bottom { left: 0; right: 0; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.chip-info { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.chip-info b { font-size: 15px; }
.chip-info span { font-size: 12px; color: var(--mut); }
.warn-chip { border: 0; border-radius: 999px; padding: 5px 12px 5px 26px; font-size: 12.5px; font-weight: 600; position: relative; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.warn-chip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ok); }
.warn-chip.warn::before { background: var(--warn); } .warn-chip.err::before { background: var(--err); }
.warn-chip.err { color: var(--err); }
.seg { display: inline-flex; background: rgba(255, 255, 255, .94); border-radius: 10px; padding: 3px; gap: 2px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.seg button.active, .seg button.on { background: var(--acc); color: #fff; }
.toolbar { pointer-events: auto; display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-radius: 14px; padding: 5px; box-shadow: 0 4px 18px rgba(0, 0, 0, .1); }
.tool { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--mut); min-width: 58px; }
.tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tool:hover { color: var(--acc); background: #f0f5f2; }
.tool.on { color: #fff; background: var(--acc); }
.toolbar .sep { width: 1px; height: 30px; background: var(--line); margin: 0 4px; }
.hint { font-size: 12px; color: var(--mut); margin: 0; }
.overlay.bottom .hint { background: rgba(255, 255, 255, .7); padding: 2px 10px; border-radius: 99px; }
.dim-label { font-size: 11px; font-weight: 700; color: var(--acc2); background: rgba(255, 255, 255, .88); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.dim-label.dim-main { font-size: 12.5px; color: #fff; background: var(--acc); padding: 2px 8px; }
.dim-label.dim-h { background: var(--acc2); color: #fff; }
.dim-label.dim-fig { background: #5d7c93; color: #fff; border-radius: 99px; padding: 2px 9px; }

/* editor flotante */
.editor { position: absolute; left: 14px; bottom: 96px; z-index: 4; width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 12px 14px; border-top: 4px solid var(--acc); }
.ed-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.ed-h small { display: block; color: var(--mut); font-size: 11.5px; }
.ed-h b { font-size: 15px; }
.ed-h .icon-btn { width: 30px; height: 30px; font-size: 13px; }
.ed-b { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- panel lateral */
.panel { width: 430px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.steps { display: flex; padding: 10px 10px 0; gap: 4px; border-bottom: 1px solid var(--line); }
.steps button { flex: 1; border: 0; background: transparent; padding: 8px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--mut); border-bottom: 3px solid transparent; }
.steps button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: grid; place-content: center; font-size: 12px; }
.steps button.on { color: var(--acc); border-bottom-color: var(--acc); }
.steps button.on i { background: var(--acc); color: #fff; }
.step-body { flex: 1; overflow-y: auto; padding: 6px 18px 20px; }
.step-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fcfcfa; }
.grp { padding: 14px 0 6px; border-bottom: 1px solid #f0eeea; }
.grp:last-child { border-bottom: 0; }
.grp h4 { margin: 0 0 10px; font-size: 14.5px; }
.grp .hint { margin: -4px 0 10px; }
.grp > .seg, .grp .seg { display: flex; flex-wrap: wrap; background: var(--bg); box-shadow: none; margin-bottom: 10px; width: 100%; }
.grp .seg button { flex: 1; padding: 8px 8px; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.grp .seg button:disabled { opacity: .35; cursor: not-allowed; }
.seg.icons button svg { width: 38px; height: 38px; }
.seg svg .room { fill: #fff; stroke: #b9b5ad; stroke-width: 1.2; }
.seg svg .run, .cards svg .run { fill: currentColor; opacity: .85; }
.cards svg .room { fill: #fff; stroke: currentColor; stroke-width: 1.2; }
.seg button.on svg .room { fill: rgba(255, 255, 255, .15); stroke: #fff; }
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 12.5px; color: var(--mut); font-weight: 600; min-width: 0; }
.fld > span { display: flex; justify-content: space-between; gap: 6px; }
.fld > span b { color: var(--ink); }
.fld small { font-weight: 400; font-size: 11.5px; }
.fld input, .fld select, .fld textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); font-weight: 500; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid color-mix(in srgb, var(--acc) 35%, transparent); border-color: var(--acc); }
.inp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.inp input { border: 0 !important; outline: none !important; }
.inp em { font-style: normal; color: var(--mut); padding: 0 10px 0 2px; font-size: 12px; }
.fld.rng input { padding: 0; accent-color: var(--acc); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 13.5px; cursor: pointer; }
.chk input { display: none; }
.chk i { flex: none; width: 36px; height: 20px; border-radius: 99px; background: #d5d3ce; position: relative; transition: .15s; margin-top: 1px; }
.chk i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.chk input:checked + i { background: var(--acc); }
.chk input:checked + i::after { left: 18px; }
.chk small { display: block; color: var(--mut); font-size: 11.5px; margin-top: 2px; }
.sub { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 6px; }
details.fine { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
details.fine summary { padding: 9px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fine-body { padding: 4px 12px 10px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatches.small { grid-template-columns: repeat(5, 1fr); }
.sw { border: 1px solid transparent; background: transparent; padding: 3px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.sw .chip { width: 100%; aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); display: grid; place-content: center; font-weight: 700; color: var(--mut); background-color: var(--bg); }
.sw b { font-size: 11px; font-weight: 600; line-height: 1.15; }
.sw small { font-size: 10px; color: var(--mut); line-height: 1.1; }
.sw.on { border-color: var(--acc); background: #eef5f1; }
.sw.on .chip { box-shadow: inset 0 0 0 2px var(--acc); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 8px; text-align: left; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.card svg { width: 34px; height: 34px; color: var(--mut); margin-bottom: 2px; }
.card b { font-size: 12.5px; }
.card small { font-size: 11px; color: var(--mut); line-height: 1.25; }
.card.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); background: #f2f8f4; }
.card.on svg { color: var(--acc); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px 4px 5px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.dot i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.dot.on { border-color: var(--acc); background: #eef5f1; color: var(--acc); }
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.style { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.style .mix { display: flex; gap: 3px; margin-bottom: 4px; align-items: center; }
.style .mix i { width: 30px; height: 30px; border-radius: 6px; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.style .mix i.t { width: 12px; height: 12px; border-radius: 50%; margin-left: 4px; }
.style b { font-size: 13px; } .style small { font-size: 11px; color: var(--mut); }
.style.on { border-color: var(--acc); background: #f2f8f4; }
.mini-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.miniplan { width: 100%; height: auto; touch-action: none; user-select: none; }
.miniplan .mk { cursor: grab; }
.miniplan .mk:active { cursor: grabbing; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--mut); margin: 8px 0 2px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.run-box { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.run-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg); font-size: 13px; }
.run-h span { color: var(--mut); font-size: 12px; }
.run-h .link { margin-left: auto; border: 0; background: none; color: var(--acc); font-size: 12px; font-weight: 600; padding: 0; }
.mod { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-top: 1px solid #f1efeb; background: #fff; padding: 7px 10px; font-size: 13px; text-align: left; }
.mod span { flex: 1; } .mod b { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.mod .tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: #e8efe9; color: var(--acc); min-width: 44px; text-align: center; }
.mod .tag.a { background: #e7eef3; color: var(--acc2); }
.mod:hover { background: #fafaf7; }
.mod.on { background: #eef5f1; box-shadow: inset 3px 0 0 var(--acc); }
.bigprice { margin: 14px 0 6px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.bigprice .p-from, .bigprice .p-to { font-size: 14px; opacity: .95; }
.bigprice b { font-size: 26px; }
.bigprice small { opacity: .85; font-size: 12px; margin-top: 2px; }
.bigprice p { margin: 8px 0 0; font-size: 12px; opacity: .85; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.cta-row .btn { flex: 1; }
.warns { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.warns li { font-size: 13px; padding: 8px 10px 8px 30px; border-radius: 8px; position: relative; background: #f4f8f5; }
.warns li::before { content: "✓"; position: absolute; left: 10px; top: 8px; font-weight: 700; color: var(--ok); }
.warns li.warn { background: #fdf6ea; } .warns li.warn::before { content: "!"; color: var(--warn); }
.warns li.err { background: #fbeeed; } .warns li.err::before { content: "✕"; color: var(--err); }
table.sum { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sum td { padding: 5px 0; border-bottom: 1px solid #f1efeb; vertical-align: top; }
table.sum td:first-child { color: var(--mut); width: 42%; }
details.cap { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
details.cap summary { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
details.cap summary::-webkit-details-marker { display: none; }
details.cap table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 0 0 6px; }
details.cap td { padding: 4px 12px; border-top: 1px solid #f3f1ed; }
details.cap td.q { color: var(--mut); white-space: nowrap; } details.cap td.r { text-align: right; white-space: nowrap; }

/* ---------- modales */
.modal-back { position: fixed; inset: 0; background: rgba(20, 24, 26, .45); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: min(480px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal.wide { width: min(720px, 100%); } .modal.xwide { width: min(1180px, 100%); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 16px 18px 18px; overflow: auto; }
.muted { color: var(--mut); } .small { font-size: 12px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lead .lead-top { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px; }
.lead .lead-top img { width: 160px; border-radius: 8px; }
.lead .lead-top div { display: flex; flex-direction: column; gap: 2px; }
.lead .lead-top span { font-size: 12px; color: var(--mut); }
.lead .lead-top em { font-style: normal; font-weight: 700; color: var(--acc); }
.lead .hp { position: absolute; left: -9999px; }
.err { color: var(--err); font-size: 13px; font-weight: 600; }
.done { text-align: center; padding: 10px; }
.ok-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 30px; display: grid; place-content: center; margin: 0 auto 10px; }
.plans nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.plans nav button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.plans nav button.on { background: var(--acc); color: #fff; border-color: var(--acc); }
.plan-view { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 64vh; background: #fff; }
.plan-view svg { width: 100%; height: auto; }
.ar-modal { display: flex; gap: 18px; align-items: flex-start; }
.ar-modal .qr { flex: none; width: 240px; }
.ar-modal .qr svg { width: 100%; height: auto; }
.ar-modal ol { padding-left: 18px; font-size: 14px; }
.saved { display: flex; flex-direction: column; gap: 8px; }
.sv { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.sv img { width: 110px; border-radius: 8px; }
.sv div { flex: 1; display: flex; flex-direction: column; } .sv small { color: var(--mut); }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; align-items: center; }
.toast { background: var(--acc2); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: .4s; }
.toast.err { background: var(--err); } .toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- responsive */
@media (max-width: 1180px) { .prod-tabs button span { display: none; } .price-box #hdrPrice { flex-direction: column; gap: 0; } }
@media (max-width: 900px) {
  .hide-sm { display: none; } .only-sm { display: grid; }
  .brand-txt span { display: none; }
  .panel { position: fixed; right: 0; top: 64px; bottom: 0; width: min(430px, 100%); z-index: 8; transform: translateX(100%); transition: .25s; box-shadow: -10px 0 30px rgba(0, 0, 0, .15); }
  body.panel-open .panel { transform: none; }
  .toolbar .tool span { display: none; } .tool { min-width: 40px; }
  .overlay.bottom .hint { display: none; }
  .editor { left: 8px; right: 8px; width: auto; bottom: 70px; }
  .price-box { display: none; }
}
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 0 8px; } .brand { display: none; } .btn { padding: 8px 10px; }
  .prod-tabs { margin: 0; } .prod-tabs button { padding: 7px 10px; }
  #btnLead { font-size: 13px; padding: 8px 10px; }
  .overlay.tr { top: auto; bottom: 74px; right: 50%; transform: translateX(50%); }
  .chip-info { padding: 6px 10px; } .chip-info b { font-size: 13px; }
  .row3 { grid-template-columns: 1fr 1fr; } .swatches { grid-template-columns: repeat(3, 1fr); } .ar-modal { flex-direction: column; }
  .editor { bottom: 118px; }
}

/* ---------- v2: menús flotantes de la barra (aperturas, cotas, persona) */
.toolpop { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 6; width: min(360px, calc(100% - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 16px 44px rgba(0, 0, 0, .2); padding: 14px 16px 12px; border-top: 4px solid var(--acc); }
.toolpop h5 { margin: 0 26px 10px 0; font-size: 15px; }
.toolpop .pop-x { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 14px; color: var(--mut); width: 28px; height: 28px; border-radius: 8px; }
.toolpop .pop-x:hover { background: var(--bg); color: var(--ink); }
.pop-row { display: flex; gap: 8px; } .pop-row .btn { flex: 1; }
.pop-sub { font-size: 11.5px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 6px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--acc); color: var(--acc); }
.chip.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.toolpop .hint { margin: 6px 0 0; line-height: 1.4; }
.toolpop .chk { margin: 6px 0; }
.ed-open { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ed-open-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.ed-open-h b { color: var(--ink); }
.ed-open input[type=range] { width: 100%; accent-color: #e8a33d; margin: 6px 0 2px; }
.ed-open small { display: block; margin-top: 6px; font-size: 11.5px; }
/* familias de acabados plegables */
details.fam { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fff; }
details.fam > summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px; list-style: none; }
details.fam > summary::-webkit-details-marker { display: none; }
details.fam > summary::before { content: "▸"; color: var(--mut); font-size: 11px; transition: .15s; }
details.fam[open] > summary::before { transform: rotate(90deg); }
details.fam > summary span { font-size: 11px; color: var(--mut); background: var(--bg); border-radius: 99px; padding: 1px 7px; }
details.fam > summary em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--acc); }
details.fam .swatches { padding: 2px 8px 10px; }
@media (max-width: 900px) { .toolpop { bottom: 74px; } }
@media (max-width: 560px) { .toolpop { bottom: 122px; } }


/* ---------- v3: ejemplos de partida, elementos de la estancia, reforma, deshacer ---------- */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 8px 9px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.preset svg { width: 34px; height: 34px; color: var(--acc); margin-bottom: 2px; }
.preset svg .room { fill: #fff; stroke: #b9b5ad; stroke-width: 1.2; } .preset svg .run { fill: currentColor; opacity: .85; }
.preset b { font-size: 12.5px; } .preset small { font-size: 11px; color: var(--mut); line-height: 1.25; }
.preset:hover { border-color: var(--acc); background: #f2f8f4; }
.add-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
details.el { margin-top: 6px; }
details.el summary { display: flex; align-items: center; gap: 8px; list-style: none; }
details.el summary::-webkit-details-marker { display: none; }
details.el summary span { flex: 1; } details.el summary em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--mut); }
.dotc { flex: none; width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.link { border: 0; background: none; color: var(--acc); font-size: 12px; font-weight: 600; padding: 0; cursor: pointer; }
.link.danger { color: #b3402e; } .link.mut { color: var(--mut); font-weight: 500; }
.run-box.off { opacity: .8; border-style: dashed; }
.hint.bad { color: #b3402e; font-weight: 600; margin-top: 6px; }
.sub.first { margin-top: 0; }
.rf-total { display: flex; justify-content: space-between; align-items: baseline; background: #f2f8f4; border: 1px solid #cfe3d8; border-radius: 10px; padding: 9px 12px; margin-top: 8px; font-size: 13px; }
.rf-total b { font-size: 15px; color: var(--acc); }
.undo { display: flex; gap: 4px; }
.mini-btn { width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); display: grid; place-content: center; color: var(--ink); cursor: pointer; }
.mini-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-btn:disabled { opacity: .35; cursor: default; }
.steps button span { white-space: nowrap; }

@media (max-width: 760px) { .presets { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; } .preset { flex: 0 0 128px; scroll-snap-align: start; } }

/* ---------- v4: comparador de proveedores ---------- */
.provcmp table.cmp th small, .provcmp table.cmp td small { display: block; font-size: 11px; font-weight: 500; color: var(--mut); text-transform: none; letter-spacing: 0; }
.provcmp table.cmp td, .provcmp table.cmp th { text-align: right; } .provcmp table.cmp td:first-child, .provcmp table.cmp th:first-child { text-align: left; }
.provcmp table.cmp td.win { background: #eef7f1; font-weight: 700; }
.provcmp table.cmp .best { color: var(--acc); font-weight: 800; }
.provcmp table.cmp tr.tot td { font-weight: 800; border-top: 2px solid var(--line); }
.provcmp table.cmp tr.sep td { border-top: 2px solid var(--line); background: #faf9f6; }
.provcmp table.cmp td.neg { color: var(--err); }
.provcmp table.cmp td.na { color: var(--mut); }
.provcmp small.miss { color: #a8641a !important; }
.provcmp .combo { display: flex; flex-direction: column; gap: 3px; background: #f2f8f4; border: 1px solid #cfe3d8; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 13px; }
.provcmp .combo small { color: var(--mut); }
.provcmp .provcmp-t { margin: 0 0 8px; font-weight: 700; }
.provcmp table.det td small.muted { display: block; }
.provcmp table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.provcmp table.t th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.provcmp table.t td { padding: 6px 8px; border-bottom: 1px solid #f1efeb; vertical-align: top; }

/* ---------- v4: comparar dos diseños ---------- */
.sv-pick { display: grid; place-content: center; cursor: pointer; }
.sv-pick input { display: none; }
.sv-pick i { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); display: block; background: #fff; }
.sv-pick input:checked + i { background: var(--acc); border-color: var(--acc); box-shadow: inset 0 0 0 3px #fff; }
.sv-cmp { margin-top: 10px; }
.cmpd .cp-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-bottom: 10px; }
.cmpd .cp-h { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.cmpd .cp-h img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: #f3f1ec; margin-bottom: 4px; }
.cmpd .cp-h small { color: var(--mut); font-size: 12px; }
.cmpd .cp-h em { font-style: normal; font-weight: 800; color: var(--acc); font-size: 15px; }
.cmpd .cp-h .btn { align-self: flex-start; margin-top: 4px; }
.cmpd .cp-vs { align-self: center; color: var(--mut); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cmpd .cp-diff { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #f2f8f4; border: 1px solid #cfe3d8; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.cmpd table.cp { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.cmpd table.cp th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cmpd table.cp td { padding: 6px 8px; border-bottom: 1px solid #f1efeb; vertical-align: top; }
.cmpd table.cp td:first-child { color: var(--mut); font-weight: 600; width: 22%; }
.cmpd table.cp tr.dif td { background: #fff8e3; }
.cmpd table.cp tr.tot td { font-weight: 800; border-top: 2px solid var(--line); }
.cmpd .mas { color: #b3402e; font-weight: 700; } .cmpd .menos { color: var(--acc); font-weight: 700; }
.cmpd .cp-ac { display: inline-flex; align-items: center; gap: 6px; }
.cmpd .cp-ac i { width: 22px; height: 22px; border-radius: 5px; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
@media (max-width: 760px) { .cmpd .cp-cols { grid-template-columns: 1fr 1fr; } .cmpd .cp-vs { display: none; } .cmpd table.cp td:first-child { width: auto; } }

/* ---------- v4: cómo medir ---------- */
.medir-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; }
.medir-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.medir-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.medir-nav button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--mut); cursor: pointer; }
.medir-nav button.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.medir-view { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; min-height: 250px; }
.medir-view:has(> .medir-txt:only-child) { grid-template-columns: 1fr; }
.medir-dib { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.medir-svg { width: 100%; height: auto; display: block; }
.medir-txt h4 { margin: 2px 0 8px; font-size: 15px; }
.medir-txt ul { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.medir .row-end { margin-top: 14px; }
@media (max-width: 760px) { .medir-view { grid-template-columns: 1fr; } }

/* ---------- v4: idioma ---------- */
.lang-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; height: 30px; min-width: 38px; padding: 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.lang-btn:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- v6: sello «Desarrollado por Grup3D» (se puede quitar en Marca y ajustes) ---------- */
.credit { position: absolute; left: 14px; bottom: 38px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--mut); font-size: 11px; font-weight: 600; letter-spacing: .02em; transition: border-color .15s, color .15s, transform .15s; }
.credit img { height: 20px; width: auto; display: block; }
.credit span { display: none; }                     /* en pantallas anchas cabe también el «Desarrollado por» */
@media (min-width: 1500px) { .credit span { display: inline; } }
.credit:hover { border-color: var(--acc); color: var(--ink); transform: translateY(-1px); }
.credit[hidden] { display: none; }
@media (max-width: 860px) { .credit { left: 8px; bottom: 120px; padding: 4px 9px; } .credit img { height: 17px; } }  /* por encima de la barra de vistas y de las herramientas */

/* ---------- v7: modo presentación, modo foto, barra desplazable en móvil ---------- */
body.present .topbar, body.present .panel, body.present .overlay.tl, body.present .overlay.tr, body.present .overlay.bottom, body.present .editor, body.present .toolpop { display: none !important; }
body.present .app { height: 100%; }
body.present #presentExit { display: block; position: absolute; right: 14px; top: 14px; z-index: 6; }
#presentExit[hidden] { display: none; }
.pop-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
@media (max-width: 900px) { .toolbar { max-width: calc(100vw - 12px); overflow-x: auto; scrollbar-width: none; } .toolbar::-webkit-scrollbar { display: none; } }

/* ---------- v7: guía, glosario, progreso, avisos con arreglo, precio que reacciona, miniaturas, compartir ---------- */
.help-btn { font-weight: 800; font-size: 16px; color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, #fff); }
.help-btn:hover { background: #f0f5f2; }
.price-box { position: relative; }
.why { display: block; border: 0; background: none; color: var(--acc); font-size: 11px; font-weight: 600; padding: 0; cursor: pointer; margin-left: auto; }
.why:hover { text-decoration: underline; } .why[hidden] { display: none; }
.price-delta { position: absolute; right: 0; top: -22px; font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 99px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.price-delta.show { opacity: 1; transform: none; } .price-delta.up { background: #fbeeed; color: var(--err); } .price-delta.down { background: #e3f3e8; color: var(--ok); }
#hdrPrice.bump b { animation: bump .45s ease; display: inline-block; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
.warn-chip { cursor: pointer; padding-right: 22px; transition: box-shadow .15s; }
.warn-chip::after { content: "▾"; position: absolute; right: 9px; top: 50%; transform: translateY(-52%); font-size: 11px; color: var(--mut); }
.warn-chip:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .14); }
.warns li .fix { display: block; margin-top: 6px; }
.toolpop .warns li { font-size: 12.5px; }
.prog { position: relative; margin: 0 10px; padding: 8px 2px 6px; font-size: 12px; color: var(--mut); border-bottom: 1px solid var(--line); }
.prog i { display: block; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc2)); margin-bottom: 5px; transition: width .4s; min-width: 4px; }
.prog b { color: var(--ink); } .prog .link { font-size: 12px; }
.styles .style .thumb { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background: #efeee9 center / cover no-repeat; margin-bottom: 6px; position: relative; overflow: hidden; }
.thumb.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.styles .style .mix { margin-bottom: 2px; } .styles .style .mix i { width: 18px; height: 18px; border-radius: 4px; } .styles .style .mix i.t { width: 10px; height: 10px; }
.swatches .sw .chip { border-radius: 50%; background-size: 175%; box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .28), inset 4px 5px 10px rgba(255, 255, 255, .32), 0 1px 3px rgba(0, 0, 0, .18); }
.swatches .sw.on .chip { box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .28), inset 4px 5px 10px rgba(255, 255, 255, .32), 0 0 0 2.5px var(--acc); }
.swatches .sw .chip::after { content: ""; position: absolute; left: 22%; top: 14%; width: 30%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .45); filter: blur(2px); }
.sw .chip { position: relative; }
.perfiles, .alts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.perfil, .alt { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 10px; text-align: left; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.perfil:hover, .alt:hover { border-color: var(--acc); background: #f2f8f4; }
.perfil b, .alt b { font-size: 12.5px; } .perfil small, .alt small { font-size: 11px; color: var(--mut); line-height: 1.25; }
.alt .thumb { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background: #efeee9 center / cover no-repeat; position: relative; overflow: hidden; margin-bottom: 4px; }
.tline { margin: 10px 0 4px; } .tl h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); }
.tline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: tl; }
.tline li { position: relative; padding: 8px 8px 8px 10px; border-radius: 10px; background: #f4f8f5; font-size: 12px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--acc); }
.tline li::before { counter-increment: tl; content: counter(tl); position: absolute; right: 8px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-content: center; }
.tline li b { font-size: 12.5px; padding-right: 22px; } .tl li span { color: var(--mut); font-size: 11px; line-height: 1.3; } .tl li em { font-style: normal; font-weight: 700; color: var(--acc); font-size: 12px; margin-top: 2px; }
.tline.compact ol { grid-template-columns: repeat(4, 1fr); } .tl.compact li { padding: 6px 6px 6px 8px; }
@media (max-width: 560px) { .tline ol, .tline.compact ol { grid-template-columns: 1fr 1fr; } }
.gl { display: inline-grid; place-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--acc) 45%, #fff); background: #fff; color: var(--acc); font-size: 10px; font-weight: 800; line-height: 1; vertical-align: 1px; padding: 0; cursor: help; }
.gl:hover { background: var(--acc); color: #fff; }
.gl-pop { position: fixed; z-index: 70; width: 320px; max-width: calc(100vw - 16px); background: #fff; border-radius: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .22); border-top: 4px solid var(--acc); padding: 12px 14px 12px; display: flex; gap: 12px; align-items: flex-start; }
.gl-pop .gl-dib { flex: none; width: 96px; color: var(--acc); background: #f4f8f5; border-radius: 10px; padding: 6px; }
.gl-pop .gl-dib svg { width: 100%; height: auto; }
.gl-pop .gl-txt b { display: block; font-size: 14px; margin: 2px 26px 4px 0; } .gl-pop .gl-txt p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.gl-pop .gl-x { position: absolute; right: 8px; top: 8px; border: 0; background: transparent; color: var(--mut); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; }
.gl-pop .gl-x:hover { background: var(--bg); color: var(--ink); }
.welcome-back { position: fixed; inset: 0; background: rgba(20, 24, 26, .5); display: grid; place-items: center; z-index: 45; padding: 16px; }
.welcome { background: #fff; border-radius: 18px; width: min(640px, 100%); padding: 22px 24px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.welcome h2 { margin: 0 0 6px; font-size: 22px; } .welcome > p { margin: 0 0 14px; font-size: 14px; }
.w-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.w-step { background: #f4f8f5; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.w-step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; display: grid; place-content: center; font-size: 13px; }
.w-step b { font-size: 14px; } .w-step span { font-size: 12.5px; color: var(--mut); line-height: 1.35; }
.w-tips { font-size: 12.5px; color: var(--mut); background: #fff8e3; border-radius: 10px; padding: 8px 12px; } .w-tips span { font-weight: 800; color: #8a5a00; }
@media (max-width: 560px) { .w-steps { grid-template-columns: 1fr; } }
.coach { position: fixed; z-index: 44; width: 320px; max-width: calc(100vw - 16px); background: #fff; border-radius: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .24); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; border-top: 4px solid #e8a33d; animation: coachIn .25s ease; }
@keyframes coachIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.coach-anim { flex: none; width: 92px; color: #e8a33d; background: #fff8e3; border-radius: 10px; padding: 4px; }
.coach-anim svg { width: 100%; height: auto; display: block; }
.coach-txt b { display: block; font-size: 14px; margin-bottom: 3px; } .coach-txt p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.4; }
.coach-b { display: flex; gap: 10px; align-items: center; }
.coach-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.coach[data-side="right"] .coach-arrow { right: -7px; top: var(--ay, 30px); margin-top: -7px; box-shadow: 3px -3px 6px rgba(0, 0, 0, .06); }
.coach[data-side="top"] .coach-arrow { top: -7px; left: var(--ax, 30px); margin-left: -7px; background: #e8a33d; }
.coach[data-side="bottom"] .coach-arrow { bottom: -7px; left: var(--ax, 30px); margin-left: -7px; box-shadow: 3px 3px 6px rgba(0, 0, 0, .06); }
.coach-target { outline: 2px solid #e8a33d; outline-offset: 3px; border-radius: 10px; animation: pulse 1.3s ease 2; }
@keyframes pulse { 0%, 100% { outline-color: #e8a33d; } 50% { outline-color: transparent; } }
.gest .cursor { transform-origin: 40px 40px; }
.g-drag .win { animation: gDrag 2.2s ease-in-out infinite; } .g-drag .cursor { animation: gDragC 2.2s ease-in-out infinite; }
@keyframes gDrag { 0%, 15% { transform: translate(0, 0); } 60%, 100% { transform: translate(28px, 0); } }
@keyframes gDragC { 0%, 15% { transform: translate(0, 0); } 60%, 100% { transform: translate(28px, 0); } }
.g-click .cursor { animation: gTap 1.6s ease-in-out infinite; } .g-click .ring { animation: gRing 1.6s ease-out infinite; transform-origin: 26px 30px; }
@keyframes gTap { 0%, 20% { transform: translate(0, 0); } 35% { transform: translate(-6px, -6px) scale(.92); } 50%, 100% { transform: translate(0, 0); } }
@keyframes gRing { 0%, 30% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; } 80%, 100% { opacity: 0; transform: scale(1.8); } }
.g-dbl .cursor { animation: gDbl 2s ease-in-out infinite; } .g-dbl .door { transform-origin: 12px 30px; animation: gDoor 2s ease-in-out infinite; }
@keyframes gDbl { 0%, 15% { transform: translate(0, 0); } 22% { transform: translate(-5px, -5px) scale(.92); } 28% { transform: translate(0, 0); } 34% { transform: translate(-5px, -5px) scale(.92); } 40%, 100% { transform: translate(0, 0); } }
@keyframes gDoor { 0%, 40% { transform: scaleX(1); } 60%, 85% { transform: scaleX(.35) skewY(-8deg); } 100% { transform: scaleX(1); } }
.g-hover .cursor { animation: gHover 2.4s ease-in-out infinite; }
@keyframes gHover { 0% { transform: translate(-22px, -6px); } 50% { transform: translate(2px, -6px); } 100% { transform: translate(24px, -6px); } }
.g-tap .cursor { animation: gTap 1.6s ease-in-out infinite; }
.share { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.share-card img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #f3f1ec; aspect-ratio: 3 / 2; object-fit: cover; }
.share-card small { display: block; margin-top: 6px; }
.share-acts { display: flex; flex-direction: column; gap: 8px; }
.share-acts .btn { text-align: center; text-decoration: none; }
.share-wa { background: #25d366 !important; }
.share-qr { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 10px; padding: 8px; margin-top: 4px; }
.share-qr .qr { flex: none; width: 92px; } .share-qr .qr svg { width: 100%; height: auto; }
.share-qr b { display: block; font-size: 13px; } .share-qr span { font-size: 11.5px; color: var(--mut); line-height: 1.3; }
@media (max-width: 640px) { .share { grid-template-columns: 1fr; } }

/* la línea de ayuda del visor nunca se parte ni pisa el sello */
.overlay.bottom .hint { white-space: nowrap; max-width: calc(100% - 290px); overflow: hidden; text-overflow: ellipsis; margin-left: 150px; }
@media (max-width: 1250px) { .overlay.bottom .hint { display: none; } }
/* v8: botones de acercar, alejar y vista inicial (abajo a la derecha del visor) */
.navpad { position: absolute; right: 14px; bottom: 96px; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 3px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .1); }
.navpad button { width: 36px; height: 34px; border: 0; background: transparent; border-radius: 9px; color: var(--mut); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.navpad button:hover { color: var(--acc); background: #f0f5f2; } .navpad button:active { transform: scale(.94); }
.navpad svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.present .navpad { display: none; }
@media (max-width: 860px) { .navpad { right: 8px; bottom: 120px; } .navpad button { width: 34px; height: 32px; } }

/* ---------- v7: menú de idioma ---------- */
.lang-menu { position: fixed; z-index: 30; min-width: 150px; }
.lang-menu button.on { color: var(--acc); font-weight: 700; }

/* v9 · botón «Enviar mi diseño por WhatsApp» */
.wa-btn{display:inline-flex;align-items:center;gap:8px}
.wa-btn[hidden]{display:none!important}
.wa-btn .wa-ico{width:18px;height:18px;flex:0 0 auto}
@media (max-width:1360px){.con-wa .wa-btn span{display:none}.con-wa .wa-btn{padding-left:12px;padding-right:12px}}
