/* 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: #f0a500;
  --accent-deep: #c27f00;
  --sans: "Archivo", 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-word { font-weight: 500; font-stretch: 125%; font-size: 15px; 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 ---------- */
.hero { position: relative; }
.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%; }
/* 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-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-leaders polyline { fill: none; stroke: #fff; stroke-width: 1; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s .6s var(--ease) forwards; filter: drop-shadow(0 0 2px rgba(0,0,0,.25)); }
.pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 1.5px solid #fff; border-radius: 50%; visibility: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pin::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.tag { position: absolute; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-shadow: 0 1px 10px rgba(20, 40, 70, .45); opacity: 0; visibility: hidden; animation: fade .6s 1.6s forwards; }
.tag em { display: block; font: 400 11.5px/1.5 var(--mono); font-style: normal; letter-spacing: .03em; color: rgba(255,255,255,.92); }
.hero-media.is-ready .pin, .hero-media.is-ready .tag { visibility: visible; }

.hero-overlay { position: relative; height: 100%; 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: 560px; }
.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(42px, 5.2vw, 84px); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.hero h1 b { font-weight: 700; }
.hero h1 .dot { color: var(--accent); }
.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 draw { to { stroke-dashoffset: 0; } }
@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 { padding-block: clamp(72px, 10vw, 136px); }
.section-alt { background: var(--bg-2); }

.block-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 40px; border-top: 1px solid var(--ink); padding-top: 16px; 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(34px, 4.6vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.bt-name b { font-weight: 700; }
.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: índice con vista previa ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 36px; }
.chip { border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 6px 0; font-size: 15px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; transition: color .2s, border-color .2s; }
.chip span { font: 500 11px var(--mono); }
.chip:hover { color: var(--ink); }
.chip.is-on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.chip.is-on span { color: var(--accent-deep); }

.works-index { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.works-head, .work { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 210px) 24px; gap: 20px; align-items: baseline; }
.works-head { padding: 0 0 10px; border-bottom: 1px solid var(--ink); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.works-list { list-style: none; margin: 0; padding: 0; }
.works-list li { border-bottom: 1px solid var(--line); }
.works-list li[hidden] { display: none; }
.work { width: 100%; background: none; border: 0; padding: 20px 0; text-align: left; cursor: pointer; color: inherit; position: relative; transition: padding .35s var(--ease); }
.work::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.w-num { font: 500 12px var(--mono); color: var(--muted); }
.w-main { display: grid; gap: 4px; min-width: 0; }
.w-title { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; transition: transform .35s var(--ease); }
.w-sys { font-size: 13.5px; color: var(--muted); }
.w-meta { display: grid; gap: 3px; }
.w-cat { font: 500 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.w-loc { font-size: 14px; color: var(--ink-2); }
.w-thumb { display: none; }
.w-go { font-size: 18px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease), color .25s; }
.work.is-active::before { width: 64px; }
.work.is-active .w-title { transform: translateX(6px); }
.work.is-active .w-num, .work.is-active .w-go { color: var(--ink); }
.work.is-active .w-go { opacity: 1; transform: none; }

.works-preview { position: sticky; top: 96px; margin: 0; }
.wp-frame { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; background: var(--tone); cursor: zoom-in; }
.wp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .45s var(--ease), transform .9s var(--ease); }
.wp-frame img.is-on { opacity: 1; transform: none; }
.works-preview figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 14px; }
#wp-title { font-weight: 600; }
#wp-count { font: 500 11px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.refs { margin-top: clamp(48px, 6vw, 80px); font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- 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 { 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; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .works-index { grid-template-columns: 1fr; }
  .works-preview { display: none; }
  .works-head { display: none; }
  .work { grid-template-columns: 36px minmax(0, 1fr) 132px; grid-template-areas: "num main thumb" "num meta thumb"; row-gap: 8px; align-items: start; padding: 16px 0; }
  .w-meta { grid-area: meta; }
  .w-num { grid-area: num; padding-top: 4px; }
  .w-main { grid-area: main; }
  .w-go { display: none; }
  .w-thumb { grid-area: thumb; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tone); }
  .w-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .work::before { display: none; }
  .work.is-active .w-title { transform: none; }
  .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-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)); }
  .pin, .tag, .hero-leaders { display: none; }
  .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; }
  .work { grid-template-columns: 30px minmax(0, 1fr) 96px; column-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) {
  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; }
}
