:root {
  color-scheme: dark;
  --bg: #111313;
  --surface: #1c1f20;
  --field: #151718;
  --line: #383c3d;
  --text: #f5f6f2;
  --muted: #b6babc;
  --lime: #c9fa7d;
  --lilac: #d2b7ff;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: min(1280px, 100% - clamp(40px, 9vw, 144px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--sans); }
button, input, textarea, select { font: inherit; }
button, summary, select, label:has(input[type=radio]) { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
button { color: inherit; }
img { display: block; width: 100%; height: auto; }
.wrap { width: var(--wrap); margin-inline: auto; }
:focus-visible { outline: 3px solid #b598ff; outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; background: var(--lime); color: #161c12; }
.skip:focus { transform: none; }
.top { position: relative; z-index: 3; background: #111313; border-bottom: 1px solid #252827; }
.navigation, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.navigation { min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; white-space: nowrap; font-size: 1.47rem; line-height: 1; letter-spacing: -.07em; font-weight: 750; }
.wordmark > .ico { color: var(--lime); width: 32px; height: 31px; stroke: none; }
.wordmark span span { font-weight: 450; }
.desktop-nav, .nav-end { display: flex; align-items: center; gap: 12px; }
.desktop-nav { gap: clamp(20px, 3.3vw, 52px); }
.desktop-nav a, .mobile-nav nav a, .sub-link { font-size: .94rem; font-weight: 550; color: #d7dad6; text-decoration: none; }
.desktop-nav a:hover, .sub-link:hover, .mobile-nav nav a:hover { color: var(--lime); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px; font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.button .ico { width: 17px; height: 17px; }
.button-lime { color: #18200f; background: var(--lime); }
.button-lime:hover { background: #dafda5; }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: wait; }
.nav-action { white-space: nowrap; min-height: 41px; padding: 8px 16px; border-radius: 9px; }
.mobile-nav { display: none; position: relative; }

/* La portada y la galería comparten el tratamiento de fotografías de producto. */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #161c13; background: radial-gradient(ellipse at 75% 0%, #ddffd7 0%, transparent 58%), linear-gradient(110deg, #c9fa79 3%, #cbf98b 59%, #b9f6a9 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; background-image: radial-gradient(#45602d 0.8px, transparent 0.9px); background-size: 13px 13px; mask-image: linear-gradient(110deg, transparent 31%, black 90%); }
.hero-layout { display: grid; grid-template-columns: .95fr 1.15fr; align-items: center; gap: clamp(24px, 4vw, 72px); padding-block: clamp(36px, 4.2vw, 66px); }
.hero-kicker, .eyebrow, .figure-kicker, .category { display: flex; align-items: center; gap: 9px; font: 600 .77rem/1.4 var(--mono); letter-spacing: .103em; text-transform: uppercase; }
.hero-kicker { color: #35432d; }
.hero-kicker .ico { width: 21px; height: 21px; }
h1 { font-size: clamp(3.55rem, 6.7vw, 6.8rem); letter-spacing: -.075em; font-weight: 650; line-height: .945; margin: clamp(18px, 2.3vw, 32px) 0 0 -.055em; }
h1 span { color: #516c37; }
.hero-intro { max-width: 32ch; margin-top: clamp(17px, 2vw, 28px); color: #34402d; font-size: clamp(1.04rem, 1.45vw, 1.29rem); line-height: 1.48; letter-spacing: -.015em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: clamp(23px, 2.4vw, 35px); }
.hero-actions .button { min-height: 49px; }
.service-note { max-width: 40ch; margin-top: 14px; font-size: .95rem; line-height: 1.45; color: #35432d; }
.button-ink { background: #141813; color: white; }
.button-ink:hover { background: #2e3928; }
.button-clear { color: #1a2416; border-color: #778e5c; background: #f2ffdc24; }
.button-clear:hover { background: #f2ffdc88; border-color: #435c30; }
.hero-media { position: relative; min-width: 0; overflow: hidden; border-radius: 20px; background: #19141f; box-shadow: 0 18px 45px -28px #242c25aa; }
.hero-media picture { display: block; }
.hero-media img { width: 100%; aspect-ratio: 1.57; object-fit: cover; }
.hero-media figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 21px 14px; background: #19191c; border-top: 1px solid #ffffff14; color: white; }
.figure-kicker { font-size: .69rem; color: #b4b0bd; letter-spacing: .13em; }
.hero-media figcaption strong { display: block; font-weight: 600; line-height: 1.25; font-size: 1.12rem; letter-spacing: -.025em; margin-top: 2px; }
.figure-type { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: #d2c7e1; }
.figure-type .ico { width: 17px; height: 17px; }
h2 { font-size: clamp(2.25rem, 4.15vw, 4.25rem); line-height: 1.04; font-weight: 590; letter-spacing: -.064em; }
h3 { font-size: 1.25rem; line-height: 1.22; font-weight: 650; letter-spacing: -.028em; }
.eyebrow { margin-bottom: 11px; color: var(--lime); }
.eyebrow .ico { width: 16px; height: 16px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(22px, 2.8vw, 38px); }
.section-intro > p { max-width: 34ch; color: var(--muted); line-height: 1.48; margin-bottom: 3px; }
.pieces, .quote-section, .questions { padding-block: clamp(45px, 5.1vw, 82px); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.65vw, 26px); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.catalog-card { display: flex; flex-direction: column; align-items: stretch; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; cursor: pointer; }
.catalog-card:hover, .catalog-card:focus-visible { border-color: var(--lime); }
.catalog-card img { aspect-ratio: 62 / 41; object-fit: cover; background: #353437; }
.catalog-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: clamp(12px, 1.65vw, 22px); }
.catalog-name { font-size: clamp(1rem, 1.65vw, 1.45rem); line-height: 1.2; letter-spacing: -.025em; }
.catalog-description { color: var(--muted); font-size: .94rem; line-height: 1.4; }
.catalog-action { color: var(--lime); font-size: .875rem; font-weight: 650; margin-top: auto; padding-top: 8px; }
.catalog-card[aria-busy="true"] { cursor: progress; border-color: var(--lime); }
.catalog-status:not(:empty) { margin-top: 14px; }
#preview-title { scroll-margin-top: 20px; }
.section-intro a { text-underline-offset: 3px; }
.piece-card { min-width: 0; }
.piece-image { display: block; position: relative; width: 100%; overflow: hidden; border: 0; border-radius: 14px; background: #222524; margin: 0; padding: 0; cursor: zoom-in; }
.piece-image img { aspect-ratio: 1.38; object-fit: cover; transition: transform .35s ease; }
.piece-image:hover img, .piece-image:focus-visible img { transform: scale(1.035); }
.expand-icon, .detail-close { display: grid; place-items: center; border-radius: 50%; color: white; background: #141714d9; border: 1px solid #ffffff41; }
.expand-icon { position: absolute; right: 11px; bottom: 11px; width: 34px; height: 34px; }
.expand-icon .ico { width: 16px; height: 16px; }
.piece-caption { padding-top: 16px; }
.category { font-size: .72rem; color: #bcbfc0; letter-spacing: .11em; margin-bottom: 4px; }
.piece-caption h3 { font-size: clamp(1.22rem, 1.65vw, 1.6rem); }
.piece-caption > p:last-child { margin-top: 5px; color: var(--muted); max-width: 36ch; }
#piece-dialog { position: fixed; width: min(540px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; }
#piece-dialog::backdrop { background: #060709cb; }
.detail-card { position: relative; }
.detail-card > img { height: min(53dvh, 470px); object-fit: contain; background: #121314; }
.detail-card .piece-caption { padding: 18px 22px 22px; }
.detail-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; }
body:has(#piece-dialog[open]) { overflow: hidden; }

/* Espacio de configuración y estimaciones. */
.quote-section { background: #171919; border-block: 1px solid #303433; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-column { min-width: 0; display: grid; gap: 14px; }
.preview-card, .settings-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.preview-card { overflow: hidden; }
.preview-heading, .preview-footer, .settings-heading, .estimate-heading, .price-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-heading { min-height: 62px; padding: 12px 19px; }
.preview-heading h3 { display: flex; align-items: center; gap: 8px; }
.preview-heading h3 .ico { color: var(--lilac); }
.preview-badge { padding: 3px 9px; border-radius: 40px; border: 1px solid #54465f; color: #e4cbff; background: #372e40; font-size: .78rem; font-weight: 550; }
.scene { position: relative; height: clamp(290px, 33vw, 480px); overflow: hidden; background: radial-gradient(ellipse at 48% 42%, #3a3045, #201e25 67%, #191a1c); }
.scene canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.scene canvas.dragging { cursor: grabbing; }
.scene canvas:focus-visible { outline-offset: -5px; }
.scene-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 44px; color: #f0e3ff; text-align: center; pointer-events: none; }
.viewer-buttons { position: absolute; top: 12px; right: 12px; display: grid; border: 1px solid #ffffff33; overflow: hidden; border-radius: 9px; background: #1a191c; }
.viewer-buttons button { display: grid; place-items: center; width: 43px; height: 42px; padding: 0; border: 0; color: #f5f5f5; background: transparent; font-size: 1.24rem; line-height: 1; }
.viewer-buttons button + button { border-top: 1px solid #ffffff26; }
.viewer-buttons button:hover { background: #39333f; }
.viewer-buttons button:focus-visible { outline-offset: -4px; }
.model-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px clamp(10px, 2vw, 18px); border-block: 1px solid var(--line); background: #222126; }
.model-dimensions > div + div { border-inline-start: 1px solid #414046; padding-inline-start: clamp(6px, 1.2vw, 16px); }
.model-dimensions dt { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.model-dimensions dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; margin: 2px 0 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dimension-axis { color: #faa7a7; font: 600 .8rem/1.2 var(--mono); }
.model-dimensions > div:nth-child(2) .dimension-axis { color: #c2e99c; }
.model-dimensions > div:nth-child(3) .dimension-axis { color: #c7b5ff; }
.preview-footer { min-height: 76px; padding: 12px 18px; }
.preview-footer > div:first-child { min-width: 0; }
.preview-footer strong { display: block; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-footer span { display: block; color: var(--muted); font-size: .78rem; }
.layer-control { flex-shrink: 0; }
.layer-control label, .check-line { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--lime); }
.drop-zone { position: relative; display: flex; align-items: center; gap: 13px; min-height: 85px; padding: 12px 16px; background: #20261c; border: 1px dashed #6c8058; border-radius: 13px; cursor: pointer; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--lime); background: #293322; }
.drop-zone:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.file-icon { display: grid; place-items: center; flex: 0 0 38px; height: 39px; border: 1px solid #64784f; border-radius: 9px; color: var(--lime); }
.drop-copy { min-width: 0; }
.drop-copy strong, .drop-copy span { display: block; }
.drop-copy strong { font-size: .98rem; }
.drop-copy span { color: #c6d0bb; font-size: .85rem; }
.upload-action { margin-left: auto; font-weight: 650; font-size: .86rem; white-space: nowrap; color: var(--lime); }
.upload-error { margin-top: 8px; color: #ffb7ac; font-size: .92rem; }
.text-button { padding: 8px 0; border: none; background: none; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.settings-card { display: grid; gap: 19px; padding: clamp(17px, 2vw, 28px); }
.settings-heading { flex-wrap: wrap; }
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #131516; border: 1px solid #383d3b; border-radius: 9px; }
.tabs button { min-height: 35px; padding: 5px 12px; background: transparent; border: 0; border-radius: 6px; color: var(--muted); font-size: .88rem; font-weight: 620; }
.tabs button[aria-pressed=true] { background: #353b35; color: var(--lime); }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
legend, .advanced-grid label, .material-row label, .description { font-weight: 600; font-size: .92rem; }
legend { padding: 0; margin-bottom: 8px; }
.quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.quality-grid label { min-width: 0; position: relative; }
.quality-grid input { position: absolute; opacity: 0; }
.quality-grid input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }
.quality-grid label > span { display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 100%; min-height: 62px; padding: 8px 10px; border: 1px solid #444948; background: var(--field); border-radius: 8px; }
.quality-grid label:hover > span { border-color: #87977a; }
.quality-grid input:checked + span { border-color: var(--lime); color: var(--lime); background: #2a3523; }
.quality-grid strong { font-size: .94rem; }
.quality-grid small { color: #c0c5c0; font-size: .77rem; line-height: 1.3; }
.advanced-grid, .material-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; }
.advanced-grid label, .material-row label, .description { display: block; }
.advanced-grid input, .settings-card select, textarea { display: block; width: 100%; min-height: 43px; margin-top: 5px; padding: 9px 11px; border: 1px solid #464b47; background-color: var(--field); color: var(--text); border-radius: 8px; font-size: 1rem; font-weight: 400; }
.settings-card select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #bcc6b7 50%), linear-gradient(135deg, #bcc6b7 50%, transparent 50%); background-position: calc(100% - 17px) 54%, calc(100% - 12px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.advanced-set .check-line { margin-top: 10px; }
.material-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; }
.material-row p { color: var(--muted); font-size: .88rem; line-height: 1.38; padding-bottom: 3px; }
.description span { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: 5px; }
textarea { min-height: 69px; resize: vertical; }
textarea::placeholder { color: #9a9f9b; }
.estimate { border: 1px solid #3f4941; border-radius: 10px; background: #222822; padding: 13px 14px; }
.estimate-heading h4 { font-size: 1rem; font-weight: 650; }
.estimate-heading > span, .estimate-grid dt, .estimate-note { color: #bfc6be; font-size: .8rem; }
.estimate-grid { display: grid; grid-template-columns: .92fr .72fr 1.42fr; gap: 7px; margin: 10px 0 13px; }
.estimate-grid > div { min-width: 0; }
.estimate-grid dd { margin: 2px 0 0; font: 600 .85rem/1.4 var(--mono); overflow-wrap: anywhere; }
.price-line { padding-block: 10px 4px; border-top: 1px solid #424a40; font-size: .93rem; font-weight: 600; }
.price-line strong { color: var(--lime); font-size: clamp(1.12rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -.045em; }
.estimate-note { line-height: 1.45; }
.request-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.button-outline { color: var(--text); border-color: #535856; background: transparent; }
.button-outline:hover:not(:disabled) { border-color: #9aa297; background: #292f2b; }
.request-hint { color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: -8px; }

.question-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 54px; }
.questions h2 { max-width: 10ch; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 16px; list-style: none; line-height: 1.35; font-weight: 620; }
.accordion summary::-webkit-details-marker, .mobile-nav summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 26px; height: 26px; line-height: 1; color: var(--lime); font-size: 1.25rem; font-weight: 400; }
.accordion details[open] summary::after { content: '−'; }
.accordion p { color: var(--muted); margin: -2px 32px 18px 0; }
.footer { border-top: 1px solid var(--line); }
.footer-layout { min-height: 100px; }
.footer-service { font-size: .9rem; color: var(--muted); }
.footer .sub-link { margin-right: 46px; text-decoration: underline; text-underline-offset: 4px; }
.whatsapp-float { position: fixed; z-index: 4; right: max(19px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; place-items: center; height: 54px; width: 54px; background: #147940; border: 1px solid #79de9c; border-radius: 50%; color: white; box-shadow: 0 4px 16px #0006; text-decoration: none; }
.whatsapp-float svg { width: 31px; height: 31px; }
.whatsapp-float:hover { background: #0c6735; }
.whatsapp-float span { position: absolute; right: calc(100% + 9px); top: 50%; transform: translateY(-50%); pointer-events: none; width: max-content; padding: 7px 10px; border: 1px solid #48594c; border-radius: 7px; background: #152219; color: #fff; opacity: 0; font-size: .84rem; font-weight: 600; }
@media (hover: hover) { .whatsapp-float:hover span { opacity: 1; } }
.whatsapp-float:focus-visible span { opacity: 1; }
@media (max-width: 960px) {
  .hero-layout { gap: 24px; grid-template-columns: .95fr 1.05fr; }
  .hero-media img { aspect-ratio: 1.38; }
  .workspace { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section-intro > p { max-width: 31ch; }
  .piece-image img { aspect-ratio: 1.18; }
  .settings-card { padding: 16px; }
  .drop-zone { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --wrap: min(100% - 38px, 600px); }
  .navigation { min-height: 60px; gap: 10px; }
  .desktop-nav { display: none; }
  .nav-end { gap: 7px; }
  .nav-action { min-height: 39px; padding: 8px 11px; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #414542; border-radius: 9px; list-style: none; }
  .mobile-nav nav { display: grid; position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; padding: 5px; border: 1px solid #434a43; border-radius: 12px; background: #1a1d1a; box-shadow: 0 9px 24px #0006; }
  .mobile-nav nav a { display: block; padding: 11px 13px; }
  .hero-layout { grid-template-columns: 1fr; gap: 25px; padding-block: 33px 24px; }
  .hero-kicker { font-size: .73rem; }
  h1 { font-size: clamp(3.6rem, 11.2vw, 5.4rem); margin-top: 16px; }
  .hero-intro { max-width: 40ch; margin-top: 15px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button { min-height: 45px; }
  .hero-media { border-radius: 14px; }
  .hero-media img { aspect-ratio: 1.97; object-position: 50% 45%; }
  .hero-media figcaption { padding: 9px 14px 11px; }
  .hero-media figcaption strong { font-size: 1.04rem; }
  .section-intro { display: grid; }
  .section-intro > p { max-width: 48ch; }
  .workspace, .question-layout { grid-template-columns: 1fr; }
  .scene { height: clamp(235px, 60vw, 355px); }
  .questions h2 { max-width: none; }
  .gallery { gap: 12px; }
  .footer-service { display: none; }
  .footer-layout { min-height: 90px; }
}
@media (max-width: 540px) {
  .nav-extra { display: none; }
  .hero-media img { aspect-ratio: 1.5; }
  .gallery { grid-template-columns: 1fr; gap: 26px; }
  .piece-image img { aspect-ratio: 1.6; }
  .piece-caption { padding-top: 11px; }
  .piece-caption > p:last-child { max-width: none; }
  .preview-heading, .preview-footer { padding-inline: 13px; }
  .preview-footer { min-height: 66px; }
  .drop-zone { flex-wrap: nowrap; padding-inline: 12px; gap: 9px; }
  .drop-copy span { font-size: .8rem; }
  .file-icon { flex-basis: 32px; height: 36px; }
  .upload-action { font-size: .8rem; }
  .button { padding-inline: 13px; }
  .whatsapp-float { width: 50px; height: 50px; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .footer-layout { flex-wrap: wrap; padding-block: 16px 68px; }
  .footer .sub-link { margin-right: 0; }
}
@media (max-width: 360px) {
  :root { --wrap: calc(100% - 26px); }
  .wordmark { font-size: 1.22rem; gap: 5px; }
  .nav-action .ico, .upload-action { display: none; }
  .quality-grid label > span { padding-inline: 6px; }
  .preview-badge, .figure-type { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.quantity-field, .order-heading, .order-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quantity-field label { font-size: .94rem; font-weight: 650; }
.stepper { display: inline-flex; border: 1px solid #535856; border-radius: 9px; overflow: hidden; }
.stepper button, .stepper input { width: 42px; min-height: 44px; color: var(--text); background: var(--field); border: 0; text-align: center; }
.stepper button { cursor: pointer; font-size: 1.14rem; }
.stepper button:disabled { opacity: .45; }
.stepper input { width: 4rem; border-inline: 1px solid #535856; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper :focus-visible { outline-offset: -3px; }
.order-summary { display: grid; gap: 16px; margin-top: 18px; padding: clamp(16px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.order-heading h3 { font-size: 1.35rem; }
.order-heading > span, .line-detail, .order-total small { color: var(--muted); font-size: .89rem; }
.order-lines { padding: 0; margin: 0; list-style: none; }
.order-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 20px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.line-info { min-width: 0; }
.line-info strong, .line-info span, .order-total small { display: block; overflow-wrap: anywhere; }
.line-price { white-space: nowrap; }
.line-actions { display: flex; gap: 3px; }
.line-actions button, .dialog-close { border: 0; border-radius: 6px; background: transparent; color: var(--muted); min-height: 44px; padding: 4px 9px; cursor: pointer; }
.line-actions button[data-action="edit"] { color: var(--lime); }
.line-actions button:hover, .dialog-close:hover { background: #303532; }
.add-model { justify-self: start; }
.order-total { border-top: 1px solid var(--line); padding-top: 16px; }
.order-total > strong { font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: var(--lime); }
.order-summary .request-actions { justify-content: end; grid-template-columns: repeat(2, auto); }
.order-summary .request-hint { margin: 0; }
#add-dialog { width: min(480px, calc(100% - 24px)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); }
#add-dialog::backdrop { background: #080a09c9; }
.add-dialog-body { display: grid; gap: 16px; padding: 20px; }
.dialog-close { width: 42px; font-size: 1.5rem; }
.file-choice { position: relative; cursor: pointer; }
.file-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-choice:focus-within { outline: 2px solid var(--lilac); }
#add-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#add-catalog button { display: flex; text-align: left; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 5px; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; line-height: 1.2; font-size: .9rem; }
#add-catalog button:hover { border-color: var(--lime); }
#add-catalog img { width: 44px; height: 36px; object-fit: cover; border-radius: 5px; }
#add-demo-note { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) {
  .order-line { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .line-actions { grid-column: 1 / -1; }
  .line-actions button:first-child { padding-left: 0; }
  .order-summary .request-actions { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  #add-catalog { grid-template-columns: 1fr; }
}

.tanza-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tanza-photo img { width: 100%; height: auto; display: block; }
.tanza-copy { padding: clamp(20px, 4vw, 56px); }
.tanza-copy h3 { margin: 0; font-size: clamp(1.7rem, 4vw, 3.4rem); }
.tanza-copy p { max-width: 44ch; margin: 12px 0; }
.tanza-actions { display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.tanza-actions button, .tanza-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.tanza-actions button { border: 0; color: #171914; background: var(--lime); border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.tanza-actions a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 680px) { .tanza-feature { grid-template-columns: 1fr; } }
