/* Aluminios AG — hoja de estilos */
:root {
  --bg: #fafaf8;
  --bg-2: #f1f0ec;
  --tone: #e6e4de;
  --ink: #111314;
  --ink-2: #33383b;
  --muted: #6a7074;
  --line: #d3d1ca;
  --line-soft: #e4e2dc;
  --accent: #f9a825;
  --accent-deep: #c07e12;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono-label { font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 248, .92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 50px; height: auto; margin-left: -6px; }
.logo-word { font-family: "Archivo", var(--sans); font-weight: 500; font-stretch: 125%; font-size: 16px; letter-spacing: .06em; }
.logo-word b { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav .nav-cta { border: 1px solid var(--ink); color: var(--ink); padding: 8px 16px; }
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.menu-btn span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
/* El hero queda fijo y la sección siguiente sube y lo tapa. --p (0 a 1) lo actualiza app.js al hacer scroll. */
.hero { position: sticky; top: 64px; z-index: 0; --p: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: #0d1114; opacity: calc(var(--p) * .45); pointer-events: none; }
.hero-media { position: relative; height: calc(100svh - 64px); min-height: 640px; max-height: 1040px; overflow: hidden; background: #a9c9ea; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; transform: translate3d(0, calc(var(--p) * -5%), 0) scale(calc(1.04 + var(--p) * .08)); transform-origin: 50% 40%; will-change: transform; }
/* Velo claro a la izquierda para que el texto se lea sobre la foto */
.hero-fog { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250,250,248,.9) 0%, rgba(250,250,248,.72) 20%, rgba(250,250,248,.28) 35%, rgba(250,250,248,0) 47%),
    linear-gradient(0deg, rgba(250,250,248,.6) 0%, rgba(250,250,248,0) 17%); }
.hero-overlay { position: relative; height: 100%; transform: translate3d(0, calc(var(--p) * -60px), 0); opacity: calc(1 - var(--p) * 1.4); display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(48px, 9vh, 110px) clamp(32px, 6vh, 64px); pointer-events: none; }
.hero-copy { pointer-events: auto; max-width: 640px; }
.kicker { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 4.9vw, 80px); font-weight: 200; line-height: .94; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 b { font-weight: 700; letter-spacing: -.04em; }
.lead { margin-top: 22px; font-size: clamp(16px, 1.15vw, 18px); color: var(--ink-2); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn .ico { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn-glass { background: rgba(250,250,248,.7); backdrop-filter: blur(6px); }
@keyframes fade { to { opacity: 1; } }

.hero-facts { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 18px 0; margin: 0; }
.hero-facts div { padding-right: clamp(20px, 2.4vw, 36px); }
.hero-facts div + div { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid rgba(17,19,20,.25); }
.hero-facts dt { font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; max-width: 12em; }
.hero-facts dd { margin: 6px 0 0; font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Secciones ---------- */
.section { position: relative; z-index: 1; background: var(--bg); padding-block: clamp(72px, 10vw, 136px); }
#clientes { box-shadow: 0 -24px 48px -24px rgba(13, 17, 20, .25); }
.section-alt { background: var(--bg-2); }

.block-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.bt-code { grid-column: 1 / -1; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.bt-name { font-size: clamp(30px, 4.2vw, 58px); font-weight: 200; letter-spacing: -.03em; line-height: .98; text-transform: uppercase; }
.bt-name b { font-weight: 700; letter-spacing: -.035em; }
.bt-note { font: 500 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); max-width: 290px; text-align: right; padding-bottom: 6px; }

/* ---------- Con quién trabajamos ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.aud { display: flex; flex-direction: column; gap: 18px; }
.aud-tag { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.aud h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.03em; }
.aud p { color: var(--ink-2); max-width: 36em; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 1.5px; background: var(--accent); }
.aud .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Obras seleccionadas ---------- */
.selected-works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 8vw, 112px) 32px; align-items: start; }
.project { min-width: 0; grid-column: span 6; }
.project-wide { grid-column: 1 / -1; }
.project-portrait { grid-column: span 5; }
.project-offset { grid-column: span 7; padding-top: clamp(64px, 12vw, 170px); }
.project-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.project-image { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tone); }
.project-wide .project-image { aspect-ratio: 2.15; }
.project-portrait .project-image { aspect-ratio: 4 / 5; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.065); transition: transform 1.1s var(--ease); }
.project-open:hover img, .project-open:focus-visible img { transform: scale(1.11); }
.project-view { position: absolute; right: 20px; bottom: 20px; background: var(--bg); padding: 10px 16px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease); }
.project-open:hover .project-view, .project-open:focus-visible .project-view { opacity: 1; transform: none; }
.project-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; }
.project-caption > span:first-child { display: grid; gap: 8px; }
.project-category { font: 400 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .045em; color: var(--muted); }
.project-name { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.project-system { font-size: 13px; color: var(--muted); }
.project-arrow { font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.project-open:hover .project-arrow { transform: translate(3px,-3px); }
.refs { margin-top: 80px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; max-width: 65em; }

/* ---------- Qué fabricamos ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sol { padding: 32px 28px 40px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.sol:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.sol svg { width: 120px; height: 90px; margin-bottom: 12px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.sol svg .thin { stroke: var(--accent-deep); stroke-width: 1.1; stroke-dasharray: 4 3; }
.sol h3 { font-size: 20px; font-weight: 600; }
.sol p { color: var(--ink-2); font-size: 15px; }

/* ---------- Tablas ---------- */
.spec-tables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; padding: 0 0 14px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
th { text-align: left; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
td:first-child { width: 36%; color: var(--ink); }
td b { display: block; font-weight: 600; }
td small { display: block; font: 400 11.5px/1.4 var(--mono); color: var(--muted); margin-top: 3px; }
.finishes { margin-top: clamp(48px, 6vw, 72px); }
.fin-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.finishes ul { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; font-size: 14px; }
.finishes li { display: grid; gap: 10px; color: var(--ink-2); }
.finishes i { display: block; height: 64px; border: 1px solid var(--line); background: var(--c); }
.finishes i.other { background: conic-gradient(#b8402d, #d9a02c, #5b8a4a, #3a6a8f, #b8402d); }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; border-top: 1px solid var(--ink); }
.steps li { position: relative; padding-right: 24px; }
.step-n { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--ink); border-radius: 50%; font: 500 13px var(--mono); margin-bottom: 22px; }
.steps li:first-child .step-n { background: var(--accent); border-color: var(--accent); }
.steps h3 { font-size: 19px; margin-bottom: 8px; font-weight: 600; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* ---------- Planilla ---------- */
.planilla-intro { max-width: 46em; color: var(--ink-2); margin: -24px 0 40px; font-size: 17px; }
.configurator { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border: 1px solid var(--ink); background: var(--bg); }
.cfg-form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; border-right: 1px solid var(--ink); align-content: start; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; }
.type-opt label { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 9px; border: 1px solid var(--line); cursor: pointer; font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--ink-2); min-height: 92px; transition: border-color .2s, background .2s; }
.type-opt svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; }
.type-opt input:checked + label { border-color: var(--ink); color: var(--ink); background: var(--bg-2); box-shadow: inset 0 -3px 0 var(--accent); }
.type-opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.type-opt label:hover { border-color: var(--ink-2); }
.cfg-form label, .q-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.unit, .opt { font: 400 11px var(--mono); color: var(--muted); margin-left: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cfg-form input[type=number], .cfg-form input[type=text], .cfg-form select,
.q-form input:not([type=radio]):not([type=checkbox]):not([type=file]), .q-form select, .q-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); padding: 11px 12px; min-height: 46px; font-size: 15px; border-radius: 0; }
.cfg-form input[type=number] { font-family: var(--mono); }
.cfg-form input:focus, .cfg-form select:focus, .q-form input:focus, .q-form select:focus, .q-form textarea:focus { outline: none; border-color: var(--ink); }
.check { display: flex !important; align-items: center; gap: 10px !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.cfg-error { color: #a3321d; font-size: 14px; }
.cfg-error:empty { display: none; }

.cfg-preview { display: flex; flex-direction: column; min-width: 0; }
.preview-head { display: flex; gap: 16px; align-items: baseline; padding: 16px 22px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#pv-code { color: var(--accent-deep); }
#pv-name { color: var(--ink); }
#pv-area { margin-left: auto; }
.preview-canvas { flex: 1; min-height: 380px; display: grid; place-items: center; padding: 20px;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center; }
.preview-canvas svg { width: 100%; height: 100%; max-height: 460px; }
.preview-note { padding: 12px 22px; border-top: 1px solid var(--line); font: 400 11px var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* Dibujo técnico: negro sobre blanco */
.dw-frame { fill: var(--bg); stroke: var(--ink); stroke-width: 2.4; }
.dw-sash { fill: rgba(17, 19, 20, .025); stroke: var(--ink); stroke-width: 1.2; }
.dw-glass { stroke: rgba(17, 19, 20, .3); stroke-width: 1; }
.dw-open { fill: none; stroke: var(--accent-deep); stroke-width: 1.3; stroke-dasharray: 7 5; }
.dw-arrow { fill: none; stroke: var(--accent-deep); stroke-width: 1.6; }
.dw-handle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dw-mesh { fill: url(#mesh); stroke: none; }
.dw-dim { stroke: var(--ink-2); stroke-width: 1; }
.dw-dimtxt { fill: var(--ink); font: 500 15px var(--mono); }
.dw-floor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }

.sheet { margin-top: 32px; }
.sheet-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.sheet-head h4 { margin: 0; font-size: 24px; font-weight: 600; }
.sheet-totals { font: 500 13px var(--mono); color: var(--muted); }
.sheet-totals b { color: var(--ink); font-weight: 600; }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-item { display: grid; grid-template-columns: 64px 100px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.si-code { font: 500 14px var(--mono); color: var(--accent-deep); }
.si-thumb svg { width: 100px; height: 72px; }
.si-main b { display: block; font-size: 15px; font-weight: 600; }
.si-main span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.si-actions { display: flex; gap: 6px; align-items: center; }
.si-actions .qty { font: 500 14px var(--mono); margin-right: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; font-size: 15px; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.sheet-actions[hidden] { display: none; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info .block-title { grid-template-columns: 1fr; margin-bottom: 0; }
.contact-lead { font-size: 18px; color: var(--ink-2); margin-bottom: 28px; max-width: 30em; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-list li > span { font: 500 11px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }
.q-form textarea { resize: vertical; }
.client-type { display: flex; flex-wrap: wrap; gap: 8px; }
.client-type label { display: block; position: relative; }
.client-type input { position: absolute; opacity: 0; }
.client-type span { display: inline-block; border: 1px solid var(--line); padding: 9px 14px; font-size: 14px; cursor: pointer; }
.client-type input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.client-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.file input { border: 1px dashed var(--line); padding: 14px; background: var(--bg-2); font-size: 14px; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-status.ok { color: #2d6a34; }
.form-status.err { color: #a3321d; }
.q-form .check { font-size: 14px; }

/* ---------- Pedido de presupuesto ---------- */
.q-flow { display: grid; gap: clamp(48px, 6vw, 72px); }
.q-step { display: grid; gap: 22px; min-width: 0; }
.q-step-head { display: flex; align-items: center; gap: 14px; }
.q-step-head h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.025em; }
.q-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; font: 500 13px var(--mono); flex: none; }
.q-form .q-step-head:not(:first-child) { margin-top: 26px; }

.q-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.q-tabs button { border: 0; background: none; padding: 12px 22px 12px 0; margin-right: 22px; font-size: 16px; font-weight: 500; color: var(--muted); cursor: pointer; position: relative; display: inline-flex; gap: 8px; align-items: baseline; }
.q-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.q-tabs button[aria-selected="true"] { color: var(--ink); }
.q-tabs button[aria-selected="true"]::after { background: var(--accent); }
.q-tabs button:hover { color: var(--ink); }
.q-badge { font: 500 11px var(--mono); color: var(--accent-deep); }
.q-badge:empty { display: none; }
.q-panel[hidden] { display: none; }

.dropzone { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: clamp(36px, 6vw, 64px) 20px; border: 1px dashed var(--ink-2); background: var(--bg); cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.6; margin-bottom: 6px; }
.dropzone b { font-size: 17px; font-weight: 600; }
.dropzone span { font-size: 14px; color: var(--muted); }
.dropzone .dz-hint { font: 500 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.dropzone:hover, .dropzone.is-over { background: var(--bg-2); border-color: var(--accent-deep); }
.dropzone .dz-touch { display: none; }
@media (pointer: coarse) { .dropzone .dz-desk { display: none; } .dropzone .dz-touch { display: block; } }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fi-ext { display: grid; place-items: center; height: 40px; border: 1px solid var(--ink); font: 500 11px var(--mono); }
.fi-main { display: grid; gap: 3px; min-width: 0; }
.fi-main b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-main > span { font-size: 13px; color: var(--muted); }
.fi-bar { display: block; height: 2px; background: var(--line-soft); margin-top: 4px; }
.fi-bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.file-item.has-error .fi-main > span { color: #a3321d; }

.q-form { display: grid; gap: 16px; max-width: 860px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-summary { font-size: 16px; color: var(--ink-2); }
.q-summary b { color: var(--ink); }
.q-form .btn[type=submit] { justify-self: start; min-width: 240px; }
.q-form .btn[disabled] { opacity: .6; cursor: progress; }

.q-done { max-width: 720px; padding: clamp(32px, 4vw, 48px) 0; border-top: 3px solid var(--accent); display: grid; gap: 14px; }
.q-done h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; }
.q-done p { color: var(--ink-2); font-size: 17px; }
.q-done:focus { outline: none; }


/* ---------- Cierre ---------- */
.site-end { position: relative; z-index: 1; background: var(--bg); display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 18px 84px; font: 400 12px var(--mono); color: var(--muted); }
.site-end a { text-decoration: none; }
.site-end a:hover { color: var(--ink); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--bg); color: var(--ink); text-decoration: none; padding: 11px 16px 11px 13px; font-weight: 600; font-size: 14px; border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.08); transition: background .2s; }
.wa-float svg { width: 22px; height: 22px; fill: #1f9d55; }
.wa-float:hover { background: var(--accent); }

/* ---------- Galería de obra ---------- */
.work-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); }
.work-dialog::backdrop { background: rgba(250, 250, 248, .9); backdrop-filter: blur(4px); }
.wd-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); max-height: calc(100vh - 34px); }
.wd-media { position: relative; background: var(--tone); display: grid; min-height: 0; }
.wd-media img { width: 100%; height: 100%; max-height: calc(100vh - 34px); object-fit: contain; }
.wd-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px; }
.wd-nav button { width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 18px; }
.wd-nav button:hover { background: var(--accent); }
.wd-nav span { font: 500 12px var(--mono); background: var(--bg); padding: 6px 10px; }
.wd-info { padding: 24px 28px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.wd-top { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); color: var(--muted); letter-spacing: .05em; }
.wd-close { border: 1px solid var(--line); background: transparent; padding: 8px 12px; cursor: pointer; font: 500 12px var(--mono); }
.wd-close:hover { border-color: var(--ink); }
.wd-info h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; }
.wd-info > p { color: var(--ink-2); }
.wd-info dl { margin: 0; border-top: 1px solid var(--ink); }
.wd-info dl div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.wd-info dt { font: 500 11px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wd-info dd { margin: 0; }
.wd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wd-thumbs button { padding: 0; border: 2px solid transparent; cursor: pointer; aspect-ratio: 1; overflow: hidden; background: var(--tone); }
.wd-thumbs button[aria-current="true"] { border-color: var(--ink); }
.wd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wd-info .btn { align-self: flex-start; margin-top: auto; }

.print-sheet { display: none; }

/* ---------- Dirección visual: arquitectura y precisión ---------- */
:root { --bg: #f8f8f5; --bg-2: #efefeb; --gutter: clamp(20px, 5vw, 72px); --wrap: 1600px; }
.site-header { background: rgba(248,248,245,.96); }
.nav { font-size: 13px; gap: 24px; }
.hero-copy { max-width: 680px; }
.hero h1 { font-size: clamp(44px, 5.8vw, 92px); line-height: .95; letter-spacing: -.055em; }
.hero h1 b { letter-spacing: -.055em; }
.hero-fog { background: linear-gradient(90deg, rgba(248,248,245,.94), rgba(248,248,245,.68) 24%, rgba(248,248,245,0) 54%), linear-gradient(0deg, rgba(248,248,245,.65), rgba(248,248,245,0) 15%); }
.hero-overlay { padding-top: clamp(56px, 10vh, 112px); }
.lead { max-width: 29em; font-size: 15px; line-height: 1.65; }
.section { padding-block: clamp(80px, 9vw, 144px); }
.bt-name { font-size: clamp(36px, 5.6vw, 82px); text-transform: none; line-height: 1; letter-spacing: -.055em; font-weight: 400; }
.bt-name b { font-weight: 500; letter-spacing: -.055em; }
#obras .block-title { margin-bottom: clamp(48px, 6vw, 88px); }
.audience { gap: clamp(40px, 8vw, 128px); }
.aud { border-top: 1px solid var(--ink); padding-top: 22px; }
.aud h3 { font-size: clamp(28px, 3vw, 44px); }
.aud p:not(.aud-tag), .ticks { font-size: 14px; }
.sol { padding-block: 36px; }
.sol svg { width: 140px; height: 105px; margin-bottom: 20px; }
.sol h3 { font-weight: 500; font-size: 23px; letter-spacing: -.035em; }
.sol p { font-size: 14px; max-width: 28em; }
.finishes i { height: 48px; }
.step-n { border-radius: 0; border: 0; background: var(--bg); font-size: 20px; width: 54px; justify-content: start; }
.steps li:first-child .step-n { background: var(--bg); color: var(--accent-deep); }
.steps::before { border-color: var(--line); }
.steps h3 { font-size: 22px; font-weight: 500; }
.btn { transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
@media (max-width: 860px) {
  .selected-works { gap: 48px 20px; }
  .project-portrait, .project-offset { grid-column: span 6; padding-top: 0; }
  .hero h1 { font-size: clamp(40px, 8vw, 66px); }
  .hero-fog { background: linear-gradient(0deg, var(--bg), transparent); }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .selected-works { display: grid; grid-template-columns: 1fr; gap: 44px; }
  .project, .project-portrait, .project-offset { grid-column: 1; }
  .project-wide .project-image { aspect-ratio: 4 / 3; }
  .project-portrait .project-image { aspect-ratio: 1; }
  .project-caption { padding-top: 14px; }
  .project-view { display: none; }
  .project-category { font-size: 9px; }
  .refs { margin-top: 48px; }
  .hero h1 { font-size: clamp(37px, 9.5vw, 56px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .sol:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .configurator { grid-template-columns: 1fr; }
  .cfg-form { border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--ink); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0 0 28px; }
  .steps .step-n { grid-row: span 2; margin: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .wd-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .wd-media img { max-height: 58vh; }
}
@media (max-width: 860px) {
  .hero { position: relative; top: auto; --p: 0 !important; }
  .hero-media > img, .hero-overlay { transform: none; }
  .hero-media { height: auto; min-height: 0; max-height: none; overflow: visible; background: none; }
  .hero-media > img { position: relative; height: 52svh; min-height: 300px; }
  .hero-fog { inset: auto 0 auto 0; top: calc(52svh - 120px); height: 120px; background: linear-gradient(0deg, var(--bg), rgba(250,250,248,0)); }
  .hero-overlay { height: auto; padding-block: 8px 40px; gap: 36px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--ink); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .nav-cta { margin-top: 14px; text-align: center; padding: 14px; }
  .audience, .spec-tables { grid-template-columns: 1fr; }
  .block-title { grid-template-columns: 1fr; }
  .bt-note { text-align: left; max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero-facts { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .hero-facts div, .hero-facts div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .hero-facts dt { font-size: 17px; }
  .hero-facts dd { margin: 0; text-align: right; }
  .actions .btn { width: 100%; }
  .solutions { grid-template-columns: 1fr; }
  .sol, .sol:nth-child(2n) { padding-left: 0; border-left: 0; }
  .finishes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row3 { grid-template-columns: 1fr; }
  .preview-canvas { min-height: 280px; }
  .sheet-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .si-thumb { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .contact-info { grid-template-columns: 1fr; row-gap: 28px; }
  .q-form .row2 { grid-template-columns: 1fr; }
  .q-form .btn[type=submit] { width: 100%; }
  .q-tabs button { font-size: 15px; padding-right: 0; margin-right: 18px; }
  .dropzone .dz-hint { display: block; }
  .q-form input[type=file] { min-width: 0; width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
  .spec-label:not(:first-child) { margin-left: 0; }
  .spec-label { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { --p: 0 !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Impresión de la planilla ---------- */
@media print {
  body.printing > *:not(.print-sheet) { display: none !important; }
  body.printing .print-sheet { display: block; color: #000; font: 11pt/1.4 var(--sans); }
  .print-sheet h1 { font-size: 20pt; margin-bottom: 4pt; }
  .print-sheet .ps-meta { font: 9pt var(--mono); margin-bottom: 14pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .print-sheet th, .print-sheet td { border: 1px solid #000; padding: 6pt; vertical-align: middle; color: #000; }
  .print-sheet td svg { width: 110px; height: 80px; }
}
