/* NidoFly 3D (nidofly.com/3Dmodel/): hoja de estilos propia e independiente de la app NidoFly. Sin fuentes ni recursos de terceros (CSP). */
:root {
  /* Paleta arquitectónica: blancos, grises y negro de plano; un solo acento azul oscuro */
  --bg: #FFFFFF; --surface: #FFFFFF; --alt: #F4F5F6; --ink: #111214; --muted: #565B60;
  --line: #D9DBDD; --line-strong: #111214; --accent: #1F4E9E; --accent-ink: #FFFFFF; --box: #FAFAFB;
  --accent-soft: rgba(31, 78, 158, .08); --accent-line: rgba(31, 78, 158, .35);
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(16px, 4vw, 40px); --r: 4px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 40px; width: auto; }
/* sello «3D»: cubo + texto sobre fondo de marca, con aire respecto al nombre */
.brand-3d { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 3px 10px 3px 8px; border-radius: 2px; color: #fff; background: var(--ink); font: 700 .95rem/1.2 var(--sans); letter-spacing: .12em; }
.b3-cube { width: 18px; height: 18px; fill: rgba(255, 255, 255, .22); stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-tag { display: none; margin-left: 6px; padding-left: 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: .95rem; white-space: nowrap; }
@media (min-width: 1100px) { .brand-tag { display: inline; } }
/* aviso «se ve en la propia página, sin instalar nada» junto al visor 3D */
.noinstall { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 9px 13px; border-radius: var(--r); background: rgba(17, 18, 20, .1); border: 1px solid rgba(17, 18, 20, .35); color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.ni-ck { flex: none; width: 22px; height: 22px; fill: #111214; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 12px 22px; border-radius: 2px; font-weight: 600; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.top nav a.btn { color: var(--accent-ink); }
.btn-small { padding: 6px 16px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.hero, .block { padding: clamp(40px, 8vw, 88px) var(--pad); max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.hero em { color: var(--accent); }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin: 0 0 12px; }
.hero-share { margin: -.2em 0 .6em; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--accent); line-height: 1.25; }
.lead { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.alt { max-width: none; background: var(--alt); }
.alt > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 700 1.6rem var(--serif); color: var(--accent); }
.steps span { color: var(--muted); }
.note { color: var(--muted); font-style: italic; }
.foot { padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }
.foot p { margin: 0; }
@media (max-width: 520px) { .top nav a { display: none; } }
.brand-name { font: 700 1.25rem var(--serif); color: var(--ink); }
.lang-select { height: 34px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 2px; padding: 0 10px; font: inherit; font-size: .9rem; cursor: pointer; }
.lang-select:hover { border-color: var(--muted); }
@media (max-width: 520px) { .logo { height: 28px; } .brand { gap: 6px; } .brand-name { font-size: 1.05rem; } .brand-3d { font-size: .9rem; padding: 2px 8px 2px 6px; } .b3-cube { width: 15px; height: 15px; } .top { gap: 8px; } .lang-select { padding: 0 6px; font-size: .85rem; } }

/* ---- Visor 3D (/3Dmodel/projecten/) ---- */
.viewer-page { max-width: 1280px; margin: 0 auto; padding: 24px var(--pad) 48px; }
.viewer-h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { font: inherit; font-size: .95rem; padding: 8px 16px; border-radius: 2px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stage { position: relative; height: min(68vh, 640px); min-height: 320px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, var(--surface), var(--alt)); }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.stage-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 16px; text-align: center; color: var(--muted); pointer-events: none; }
.stage-status[hidden] { display: none; }
.stage-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; }
.tool { width: 44px; height: 44px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 2px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.panel h2 { font-size: 1.4rem; margin-bottom: 8px; }
.panel h3 { font-size: 1rem; margin: 22px 0 10px; }
.summary { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .92rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.doc-name { flex: 1 1 100%; font-weight: 600; }
.doc-kind { font-size: .72rem; letter-spacing: .06em; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 1px 6px; }
.docs .btn-small { padding: 5px 14px; font-size: .9rem; }
.docs .muted { color: var(--muted); border: 0; padding: 0; }
@media (max-width: 860px) {
  .viewer-layout { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; overflow: visible; }
  .stage { height: 56vh; min-height: 300px; }
}
.tool[hidden] { display: none; }
.switch { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 0; padding: 10px 12px; font: inherit; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; }
.switch-track { flex: none; position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch[aria-checked="true"] { border-color: var(--accent); }
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(18px); }
.switch-label { font-weight: 600; font-size: .95rem; }

/* ---- Visor de documentos (páginas del PDF) ---- */
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-small { padding: 5px 12px; font-size: .85rem; }
.panel .muted { color: var(--muted); }
.pdf { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--alt); }
.pdf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pdf-title { flex: 1 1 100%; font-weight: 600; font-size: .95rem; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pdf-actions .btn-small { padding: 5px 12px; font-size: .85rem; }
.pdf-pages { max-height: 420px; overflow-y: auto; padding: 10px; display: grid; gap: 12px; outline-offset: -2px; overscroll-behavior: contain; }
.pdf-page { margin: 0; }
.pdf-page img { display: block; width: 100%; height: auto; min-height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: zoom-in; }
.pdf-page figcaption { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.pdf-full { position: fixed; inset: 0; z-index: 50; border-radius: 0; border: 0; display: flex; flex-direction: column; background: var(--bg); }
.pdf-full .pdf-pages { flex: 1; max-height: none; padding: 16px var(--pad); }
.pdf-full .pdf-page img { max-width: 1900px; margin: 0 auto; cursor: default; }
.no-scroll { overflow: hidden; }
@media (min-width: 861px) and (max-width: 1100px) { .viewer-layout { grid-template-columns: minmax(0, 1fr) 360px; } }


/* Panel: título + interruptor en una fila; datos al final */
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 4px; }
.panel-head h2 { margin: 0; }
.panel-head .switch { width: auto; margin: 0; padding: 6px 10px; gap: 8px; border-radius: 2px; }
.panel-head .switch-label { font-size: .85rem; }
.panel h3 { margin-top: 16px; }
.panel .facts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- Entrada por código ---- */
.gate { max-width: 640px; margin: clamp(24px, 8vh, 96px) auto; text-align: left; }
.gate[hidden], #app[hidden], .viewer-layout[hidden] { display: none; }
.gate-form label { display: block; font-weight: 600; margin: 18px 0 6px; }
.gate-row { display: flex; gap: 10px; }
.gate-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); }
.gate-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.gate-row .btn { cursor: pointer; font: inherit; font-weight: 600; }
.gate-row .btn[disabled] { opacity: .6; cursor: progress; }
.gate-msg { min-height: 1.5em; margin: 10px 4px 0; color: var(--accent); font-size: .95rem; }
.code-bar { margin-bottom: 12px; }
.code-bar .btn { cursor: pointer; font: inherit; font-size: .9rem; }

/* Ejemplos clicables bajo el campo de código */
.examples { margin-top: 36px; }
.examples h2 { font-size: 1.1rem; margin: 0 0 12px; }
.example-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.example { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.example:hover, .example:focus-visible { border-color: var(--accent); }
.example-code { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: 700 1.05rem var(--serif); }
.example-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.example-body strong { font-size: 1rem; }
.example-body span { color: var(--muted); font-size: .88rem; line-height: 1.35; }

/* =====================================================================================
   PORTADA (/3Dmodel/): hero con demo 3D en vivo, pasos, planos con nivel de detalle
   ===================================================================================== */
.badges { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 2px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.badges li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: 0 14px 40px -24px rgba(17, 18, 20, .45); }
.demo-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.demo-live { margin-left: auto; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.demo-live::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #1F4E9E; vertical-align: middle; }
.demo .stage.demo-stage { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: var(--alt); }
.demo-poster[hidden], .demo-start[hidden] { display: none; }
.demo .stage-status { z-index: 3; align-items: flex-end; padding-bottom: 18px; }
.demo .stage-tools { z-index: 4; }
.demo-start { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); cursor: pointer; font: inherit; font-weight: 600; }
.demo-open { margin: 12px 0 0; text-align: center; }
.demo-open .btn { cursor: pointer; }

.who { padding-top: 8px; padding-bottom: 8px; }
.who-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.who-card { background: var(--box); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 2px 10px rgba(17, 18, 20, .06); }
.who-card h3 { font-size: 1.2rem; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
/* iconos en color: cada trazo/relleno lleva su color en el SVG */
.who-ico { flex: none; width: 48px; height: 48px; padding: 9px; border-radius: 50%; stroke-linecap: round; stroke-linejoin: round; }
.who-tools, .who-home { background: var(--alt); border: 1px solid var(--line); }
.who-card p { margin: 0; color: var(--muted); }
/* beneficios en viñetas; las dos cajas miden lo mismo y sus filas quedan alineadas (subgrid) */
.who-card { display: flex; flex-direction: column; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.who-list li { position: relative; padding-left: 28px; color: var(--ink); line-height: 1.45; }
.who-list li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 2px; background: var(--ink); }
.who-card-h .who-list li::before { background: var(--ink); }
.who-list li::after { content: ''; position: absolute; left: 6px; top: calc(.2em + 3px); width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@supports (grid-template-rows: subgrid) {
  .who-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 10px; }
  .who-card h3 { margin-bottom: 4px; }
  .who-list { display: contents; }
  .who-card .who-share { align-self: end; margin-top: 6px; }
}
/* flecha «comparte el modelo con…» dentro de cada caja */
.who-card .who-share { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--ink); }
.who-arrow { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.who-share-t .who-arrow, .who-share-h .who-arrow { background: var(--accent); border-radius: 2px; }

.steps4 { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 560px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps4 { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 22px; }
.step-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--alt); color: var(--accent); margin-bottom: 14px; }
.step-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-n { position: absolute; top: 16px; right: 18px; font: 700 2.2rem/1 var(--serif); color: var(--line); }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 1000px) { .step:not(:last-child)::after { content: ''; position: absolute; top: 48px; right: -17px; width: 18px; height: 2px; background: var(--accent); } }
.photos { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.photos-ico { flex: none; margin: 0; }
.photos h3 { font-size: 1.05rem; margin-bottom: 6px; }
.photos p { margin: 0 0 10px; color: var(--muted); }
.chips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list li { padding: 4px 12px; border-radius: 2px; background: var(--alt); font-size: .85rem; }
.nodata { margin: 22px 0 0; padding: 12px 16px; border-radius: var(--r); background: var(--alt); font-weight: 600; }
.codeband .gate-form { max-width: 560px; }

/* Precios y paquetes: una progresión en escalera (Visualiza → Planifica → Prepara), no una tabla de precios */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pkg-intro { display: flex; gap: 16px; align-items: flex-start; margin: 18px 0 0; padding: 20px 22px; border-radius: var(--r); background: var(--alt); border: 1px solid var(--line); border-left: 3px solid var(--accent); max-width: 900px; }
.pkg-intro-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; background: var(--ink); color: #fff; }
.pkg-intro-ic .ic { width: 24px; height: 24px; }
.pkg-intro-h { margin: 0 0 4px; font: 700 1.3rem/1.25 var(--serif); color: var(--ink); }
.pkg-intro-p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.pkgs { display: grid; gap: 38px; grid-template-columns: minmax(0, 1fr); margin: 38px 0 8px; }
@media (min-width: 900px) { .pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } .pkg-1 { margin-top: 70px; } .pkg-2 { margin-top: 35px; } }
/* Tres niveles en monocromo: la progresión la dan las barras y las alturas; el acento solo marca el paquete recomendado */
.pkg { --lv: var(--ink); position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); padding: 22px 22px 22px; }
.pkg-main { --lv: var(--ink); border: 2px solid var(--ink); background: var(--alt); padding: 21px 21px 21px; }
.pkg + .pkg::before { content: '+'; position: absolute; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 2px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font: 400 1.2rem/1 var(--sans); top: -32px; left: calc(50% - 13px); }
@media (min-width: 900px) { .pkg + .pkg::before { top: 28px; left: -29px; } }
.pkg-badge { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; }
.pkg-bar { display: flex; gap: 4px; }
.pkg-bar i { flex: 1; height: 3px; background: var(--line); }
.pkg-bar i.on { background: var(--ink); }
.pkg-main .pkg-bar i.on { background: var(--accent); height: 3px; }
.pkg-step { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.pkg-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: 0; }
.pkg-name { font-size: 1.6rem; margin: 0; }
.pkg-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pkg-eur { font: 400 2.8rem/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.pkg-per { color: var(--muted); font-size: .9rem; }
.pkg-tag { margin: 0; line-height: 1.45; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pkg-inherit { display: grid; gap: 6px; padding: 10px 12px; border-radius: 2px; background: var(--alt); border: 1px solid var(--line); }
.pkg-main .pkg-inherit { background: var(--surface); }
.pkg-in-l { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pkg-in-i { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-mini { width: 20px; height: 20px; color: var(--ink); opacity: .6; }
.pkg-ontop { margin: 4px 0 0; font-weight: 700; font-size: .75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.pkg-list li { display: flex; gap: 12px; align-items: center; }
.pk-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pk-ic .ic { width: 20px; height: 20px; stroke-width: 1.5; }
.pkg-rev { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pkg-rev strong { color: var(--ink); }
.pkg-dots { display: inline-flex; gap: 5px; }
.pkg-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pkg-dots i.on { background: var(--ink); }
.pkg-terms { margin: 30px 0 8px; padding: 18px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pkg-terms h3 { font-size: 1.05rem; margin: 0 0 8px; }
.pkg-terms ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pkg-terms li { position: relative; padding-left: 22px; }
.pkg-terms li::before { content: '✓'; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
.pkg-terms .note { margin: 0; }
.sheets-h { margin: 34px 0 12px; font-size: 1.15rem; }
.sheet-pkg { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); background: transparent; }
.sheet-pkg.pk-2 { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet-pkg.pk-3 { background: var(--ink); color: #fff; }
/* aviso de paquetes dentro de «Zo werkt het» (paso 2) */
.pr-advice { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .95rem; line-height: 1.5; color: var(--ink); }
.pr-advice .ic { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--accent); }
.pr-advice a { color: var(--accent); font-weight: 600; }
.sheets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.sheet { transition: opacity .15s, filter .15s; }
.sheet a { display: block; text-decoration: none; color: inherit; }
.sheet img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 509; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sheet-cap { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.sheet a:hover img, .sheet a:focus-visible img { border-color: var(--accent); }
.trust { text-align: left; }
.trust .lead { max-width: 70ch; }
@media (max-width: 520px) { .photos { flex-direction: column; } .demo-live { display: none; } }
/* en las franjas de color el contenido se alinea con el título (el contenedor de 1000 px está centrado) */
.alt > .lead, .alt > .gate-form, .alt > .note { margin-left: max(0px, calc((100% - 1000px) / 2)); margin-right: auto; }

/* ---- Selector de idioma con banderas ---- */
.langmenu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 2px; cursor: pointer; }
.lang-btn:hover { border-color: var(--muted); }
.lang-btn:focus-visible, .lang-list [role="option"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.flag { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang-caret { width: 7px; height: 7px; margin: -3px 2px 0 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(-135deg); margin-top: 3px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 34px -14px rgba(17, 18, 20, .45); }
.lang-list[hidden] { display: none; }
.lang-list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r); cursor: pointer; }
.lang-list [role="option"]:hover, .lang-list [role="option"]:focus { background: var(--alt); }
.lang-list [aria-selected="true"] { font-weight: 700; }
.lang-list [aria-selected="true"]::after { content: '✓'; margin-left: auto; color: var(--accent); }
@media (max-width: 520px) { .lang-name { display: none; } .lang-btn { padding: 0 8px; gap: 6px; } }

/* ---- Solicitud por correo ---- */
.mail-layout[hidden], #mail-off[hidden], .mail-hint[hidden] { display: none; }
.mail-steps { margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 6px; color: var(--muted); }
.mail-steps li::marker { color: var(--accent); font-weight: 700; }
.mail-go { margin: 0 0 14px; }
.mail-go .btn { cursor: pointer; font: inherit; font-weight: 600; font-size: 1.05rem; padding: 14px 26px; }
.mail-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r); background: var(--alt); font-size: .92rem; }
.mail-draft { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.mail-draft summary { cursor: pointer; font-weight: 600; }
.mail-draft textarea { display: block; width: 100%; margin: 12px 0; padding: 12px; font: .9rem/1.5 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); resize: vertical; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mail-actions .btn { cursor: pointer; font: inherit; font-size: .9rem; }
.mail-addr { padding: 6px 12px; border-radius: 8px; background: var(--alt); font: 600 .95rem ui-monospace, Menlo, Consolas, monospace; user-select: all; }
.mail-copied { color: #111214; font-weight: 700; min-width: 1em; }
.mail-card .note { margin: 4px 0 0; font-size: .85rem; }

/* «Zo werkt het»: tres cajas */
.steps3 { grid-template-columns: 1fr; }
.steps3 .step .chips-list { margin-top: 12px; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); } .steps3 .step:not(:last-child)::after { content: ''; position: absolute; top: 48px; right: -17px; width: 18px; height: 2px; background: var(--accent); } }
@media (min-width: 560px) and (max-width: 899px) { .steps3 { grid-template-columns: 1fr; max-width: 640px; } }

/* ---- El visor de la portada NO depende de la animación: siempre visible e interactivo. Con el dedo sobre el visor se controla el modelo y la página no se desplaza ---- */
.demo .stage, .demo .stage canvas, .demo .demo-poster { touch-action: none; }
.demo .stage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ======================= «Heb je al een code?»: tarjeta enmarcada que destaca sobre el fondo ======================= */
.codeband { padding-top: 12px; padding-bottom: 12px; }
.code-card { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 390px); gap: 18px 26px; align-items: center; padding: clamp(18px, 3vw, 30px); background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r); box-shadow: none; }
.code-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
.code-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.code-text h2 { margin: 0 0 4px; font-size: 1.4rem; }
.code-text p { margin: 0; color: var(--muted); }
.code-form { margin: 0; max-width: none; }
.code-form label { margin: 0 0 6px; }
.code-form .gate-msg { margin-top: 8px; }
@media (max-width: 880px) { .code-card { grid-template-columns: auto minmax(0, 1fr); } .code-form { grid-column: 1 / -1; } }
@media (max-width: 460px) { .code-card { grid-template-columns: minmax(0, 1fr); } }

/* ======================= «Zo werkt het»: proceso en 3 tarjetas animadas (misma línea que la animación de la cabecera) ======================= */
.process { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .process { grid-template-columns: repeat(3, 1fr); } .pcard:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -19px; width: 20px; height: 2px; background: var(--accent); } }
.pcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: opacity .4s, border-color .3s, box-shadow .3s; }
.pn { position: absolute; top: 14px; right: 18px; display: grid; place-items: center; font: 700 2.2rem/1 var(--serif); color: var(--line); }
.pico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--alt); color: var(--accent); }
.pico svg, .att svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pico svg { width: 26px; height: 26px; }
.pcard h3 { margin: 0; font-size: 1.15rem; padding-right: 36px; }
.pdesc { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.pcta { margin: 2px 0 0; }
.pcta .btn { cursor: pointer; }
.mock { display: grid; gap: 9px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.mock-row { display: flex; gap: 10px; padding-bottom: 6px; font-size: .82rem; border-bottom: 1px solid var(--line); }
.mock-row b { min-width: 7ch; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; gap: 6px; padding: 4px 0; }
.ln { display: block; height: 7px; border-radius: 4px; background: var(--line); transform-origin: left; transition: transform .5s; }
.w90 { width: 90%; } .w75 { width: 75%; } .w55 { width: 55%; }
.mock-atts, .prep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.att { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; font-size: .8rem; font-weight: 600; color: var(--ink); transition: opacity .35s, transform .35s; }
.att svg { width: 16px; height: 16px; color: var(--accent); }
.pbar { display: block; height: 6px; background: var(--alt); border-radius: 2px; overflow: hidden; }
.pbar-fill { display: block; width: 100%; height: 100%; background: var(--accent); border-radius: 2px; }
.reply { display: grid; gap: 2px; padding: 8px 10px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 8px; font-size: .82rem; transition: opacity .4s, transform .4s; }
.reply-h { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.reply-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.reply-p { color: var(--muted); }
.browser { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: opacity .4s; }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 6px 8px; background: var(--alt); font-size: .72rem; color: var(--muted); }
.browser-bar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 8px; padding: 1px 10px; background: var(--bg); border-radius: 2px; }
.browser-body { display: grid; place-items: center; height: 152px; }
.pcard-last .flow-code { display: inline-flex; }
.pcard.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 78, 158, .14); }
.pcard.is-done .pn { color: #fff; font-size: 0; width: 30px; height: 30px; border-radius: 50%; background: #111214; }
.pcard.is-done .pn::before { content: '✓'; font: 700 .95rem var(--sans); }
.proc-replay { margin: 14px 0 0; }
/* estados de la animación (solo con JS: clase .anim). Sin JS / reducir movimiento: estado final */
.process.anim .pcard:not(.is-active):not(.is-done) { opacity: .5; }
.process.anim .ln { transform: scaleX(0); } .process.anim .ln.on { transform: none; }
.process.anim .att { opacity: .28; transform: scale(.9); } .process.anim .att.on { opacity: 1; transform: none; }
.process.anim .att.on::after { content: '✓'; color: #111214; font-weight: 700; margin-left: 2px; }
.process.anim .pbar-fill { width: 0; } .process.anim .pbar-fill.run { width: 100%; transition: width 2.4s linear; }
.process.anim .reply { opacity: 0; transform: translateY(8px); } .process.anim .reply.on { opacity: 1; transform: none; }
.process.anim .browser { opacity: .4; } .process.anim .browser.on { opacity: 1; }
.process.anim .flow-code-val::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: flow-blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .ln, .att, .reply, .browser, .process.anim .pbar-fill.run { transition: none; } }

/* el campo de código no aporta su ancho intrínseco al cálculo del grid (evita desbordes en móvil) */
.code-card > * { min-width: 0; }
.code-form .gate-row input { width: 0; flex: 1 1 0; min-width: 0; }
/* cabecera: por debajo de 840 px solo quedan «Contact» y el idioma (los enlaces de texto no caben) */
@media (max-width: 840px) { .top nav a:not(.btn) { display: none; } }

/* ======================= Solicitud por correo: 1) compositor animado · 2) enviar / copiar ======================= */
.mail-layout { margin-top: 24px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .mail-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.mcard { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s; }
.mcard.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 78, 158, .14); }
.mcard h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; }
.mn { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .9rem var(--sans); }
.mc-sub { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mc-stage { position: relative; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .mc-stage { grid-template-columns: minmax(0, 1fr) 118px; align-items: start; } }
.composer { display: grid; gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mc-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--alt); font-size: .78rem; color: var(--muted); }
.mc-bar i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mc-bar span { margin-left: 8px; font-weight: 600; }
.mc-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; min-height: 2.5em; }
.mc-row b { flex: none; min-width: 7ch; color: var(--muted); font-weight: 600; font-size: .82rem; }
.mc-val { font-weight: 600; word-break: break-all; }
.mc-body { display: grid; gap: 8px; padding: 10px 12px; min-height: 7.5em; align-content: start; }
.mc-body p { margin: 0; font-size: .9rem; line-height: 1.5; }
.mc-link { display: flex; align-items: flex-start; gap: 6px; color: #111214; min-height: 1.5em; }
.mc-link svg { flex: none; width: 15px; height: 15px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.slot { position: relative; width: 52px; height: 52px; border-radius: var(--r); border: 2px solid transparent; background: var(--line); transition: border-color .2s, background .2s, opacity .3s; overflow: hidden; }
/* miniaturas = fotos de ejemplo del baño visto desde dentro (scripts/3dmodel/gen-bath-photos.cjs) */
.slot.s1 { background: url(/3Dmodel/img/photo-bath-1.jpg) center / cover; } .slot.s2 { background: url(/3Dmodel/img/photo-bath-2.jpg) center / cover; } .slot.s3 { background: url(/3Dmodel/img/photo-bath-3.jpg) center / cover; }
.mc-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.mc-send { padding: 7px 20px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; transition: transform .15s, filter .15s; }
.mc-send.press { transform: scale(.9); filter: brightness(1.15); }
.mc-sent { color: #111214; font-weight: 700; font-size: .9rem; opacity: 0; transition: opacity .35s; }
.mc-sent.show { opacity: 1; }
.tray { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: var(--alt); border: 1px dashed var(--line); border-radius: var(--r); }
@media (min-width: 560px) { .tray { grid-template-columns: 1fr; justify-items: center; } }
.tray-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; justify-self: start; font-size: .78rem; font-weight: 700; color: var(--muted); }
.tray-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.photo { position: relative; z-index: 3; display: block; width: 52px; height: 52px; border-radius: var(--r); box-shadow: 0 2px 6px rgba(17, 18, 20, .25); }
.photo.ph1 { background: url(/3Dmodel/img/photo-bath-1.jpg) center / cover; } .photo.ph2 { background: url(/3Dmodel/img/photo-bath-2.jpg) center / cover; } .photo.ph3 { background: url(/3Dmodel/img/photo-bath-3.jpg) center / cover; }
.photo.grab { box-shadow: 0 10px 18px rgba(17, 18, 20, .35); }
.photo.gone { opacity: .22; box-shadow: none; }
.mc-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 24px; height: 24px; margin: -3px 0 0 -4px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mc-cursor.on { opacity: 1; }
.mc-cursor svg { width: 24px; height: 24px; fill: #fff; stroke: #111214; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.mc-replay { margin: 0; }
/* estados de la animación (clase .anim solo con JS; sin JS o «reducir movimiento» = estado final) */
.mcard.anim .slot:not(.filled) { background: transparent; border: 2px dashed var(--line); }
.mcard.anim .mc-typed:not(:empty)::after, .mcard.anim .mc-val:not(:empty)::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; background: var(--accent); vertical-align: -2px; animation: flow-blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .mc-cursor, .slot, .mc-send, .mc-sent { transition: none; } }
/* tarjeta 2: enviar / copiar */
.mc-sendcard .mail-go { margin: 4px 0 0; }
.mc-sendcard .mail-go .btn { cursor: pointer; font: inherit; font-weight: 600; font-size: 1.05rem; padding: 14px 26px; }
.btn.pulse { animation: btn-pulse 1.1s ease-in-out 2; }
@keyframes btn-pulse { 50% { box-shadow: 0 0 0 10px rgba(31, 78, 158, .22); } }
.copyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.copyrow .copy-label { grid-column: 1 / -1; }
.copy-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.copy-hint { font-size: .85rem; color: var(--muted); min-width: 0; }
.copyrow .mail-addr { margin: 0; justify-self: start; max-width: 100%; overflow-wrap: anywhere; font-size: .95rem; }
.copyrow .btn { cursor: pointer; font: inherit; font-size: .88rem; white-space: nowrap; }
.mc-sendcard .mail-copied { min-height: 1.2em; margin: -4px 0 0; }
.mc-sendcard .mail-draft { margin: 0; }
.mc-sendcard .note { margin: 0; font-size: .85rem; }
@media (max-width: 520px) { .copyrow { grid-template-columns: minmax(0, 1fr); } .copyrow .btn { justify-self: start; } .copyrow .mail-addr { white-space: nowrap; overflow-wrap: normal; font-size: .9rem; } }

/* Botones de compartir (share.js) */
.share-row { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 600; }
.ico-share { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-note { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; min-width: 0; }
.code-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Cabecera de «Stuur je aanvraag per e-mail»: correo → flecha → casita 3D girando (decorativo, solo CSS) */
.contact-head { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; column-gap: 40px; }
.contact-head h2 { grid-column: 1; margin: 0; }
.contact-head .lead { grid-column: 1 / -1; margin-top: 10px; }
@media (max-width: 700px) { .contact-head { grid-template-columns: minmax(0, 1fr); } .contact-head h2 { margin-bottom: 8px; } }
.send-anim { grid-column: 2; justify-self: start; display: flex; align-items: center; gap: 12px; margin: -38px 0 0; }
@media (max-width: 700px) { .send-anim { grid-column: 1; margin: 0; } }
.sa-mail { display: grid; place-items: center; width: 62px; height: 62px; border-radius: var(--r); background: var(--box); border: 2px solid var(--accent); box-shadow: 0 6px 16px rgba(31, 78, 158, .2); animation: sa-float 2.4s ease-in-out infinite; }
.sa-mail svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sa-line { position: relative; width: 96px; height: 3px; border-radius: 2px; background: var(--accent); }
.sa-line::after { content: ''; position: absolute; right: -2px; top: -6.5px; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: var(--accent); }
.sa-dot { position: absolute; top: -4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31, 78, 158, .25); animation: sa-run 2.4s ease-in-out infinite; }
.sa-scene { position: relative; width: 96px; height: 104px; perspective: 650px; }
.sa-tilt { position: absolute; left: 50%; top: 72%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-20deg); }
.sa-house { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: sa-spin 9s linear infinite; }
.sa-house i { position: absolute; display: block; }
.sa-f { backface-visibility: hidden; } /* paredes: cuerpo cerrado. El tejado y los frontones son de doble cara para que nunca desaparezcan al girar */
.sa-f { width: 50px; height: 30px; left: -25px; top: -30px; background: #F4F5F6; border: 1px solid #9A9EA2; box-sizing: border-box; }
.sa-front { transform: translateZ(21px); }
.sa-back { transform: translateZ(-21px) rotateY(180deg); background: #E3E5E7; }
.sa-left, .sa-right { width: 42px; left: -21px; background: #ECEEEF; }
.sa-left { transform: rotateY(-90deg) translateZ(25px); }
.sa-right { transform: rotateY(90deg) translateZ(25px); }
.sa-front::before { content: ''; position: absolute; left: 7px; bottom: 0; width: 10px; height: 17px; background: #111214; border-radius: 0; }
.sa-front::after { content: ''; position: absolute; right: 8px; top: 8px; width: 12px; height: 11px; background: #FFFFFF; border: 1px solid #111214; box-sizing: border-box; }
.sa-g { width: 42px; height: 21px; left: -21px; top: -51px; background: #ECEEEF; clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.sa-gl { transform: rotateY(-90deg) translateZ(27px); }
.sa-gr { transform: rotateY(90deg) translateZ(27px); }
.sa-r { width: 56px; height: 30px; left: -28px; top: -15px; background: #1F4E9E; border: 1px solid #163B78; box-sizing: border-box; }
.sa-rf { transform: translate3d(0, -40.5px, 10.5px) rotateX(45deg); }
.sa-rb { transform: translate3d(0, -40.5px, -10.5px) rotateY(180deg) rotateX(45deg); background: #2A5FB0; }
.sa-shadow { position: absolute; left: 50%; bottom: 6px; width: 70px; height: 12px; margin-left: -35px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(17, 18, 20, .28), rgba(17, 18, 20, 0) 70%); }
@keyframes sa-spin { to { transform: rotateY(360deg); } }
@keyframes sa-run { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 80% { left: calc(100% - 12px); opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes sa-float { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sa-house, .sa-mail, .sa-dot { animation: none; } .sa-house { transform: rotateY(30deg); } .sa-dot { left: calc(100% - 12px); } }
@media (max-width: 520px) { .send-anim { transform: scale(.9); transform-origin: left center; } .sa-line { width: 64px; } }

/* =====================================================================================
   TEMA ARQUITECTÓNICO (sin modo oscuro): blanco, grises, líneas negras finas y un único acento azul oscuro.
   Va al final a propósito: ajusta forma y jerarquía de lo anterior sin tocar la estructura.
   ===================================================================================== */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; }
h1 { letter-spacing: -.02em; }
.top { background: var(--surface); border-bottom: 1px solid var(--ink); }
.brand-name { font-weight: 400; letter-spacing: .02em; }
.btn { border-radius: 2px; font-size: .92rem; font-weight: 600; letter-spacing: .03em; border-width: 1px; padding: 12px 24px; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { filter: none; background: var(--ink); border-color: var(--ink); color: #fff; }
.top nav a.btn:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 7px 16px; font-size: .88rem; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: .78rem; letter-spacing: .16em; font-weight: 600; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); flex: none; }
.hero em { font-style: italic; color: var(--accent); }
.hero-share { color: var(--ink); }
.alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block > h2 { padding-top: 14px; border-top: 1px solid var(--ink); max-width: 1000px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.demo, .who-card, .step, .pcard, .mcard, .card, .panel, .code-card, .stage { box-shadow: none; }
.demo { border: 1px solid var(--ink); padding: 12px; }
.demo-switch .chip { padding: 6px 14px; font-size: .88rem; }
.chip { border: 1px solid var(--line); letter-spacing: .02em; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .tool[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool { border: 1px solid var(--line); border-radius: 2px; }
.stage { border-color: var(--ink); background: radial-gradient(ellipse at 50% 30%, #FFFFFF, #E9EBED); }
.demo-live { letter-spacing: .12em; }
.noinstall { background: var(--alt); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.ni-ck { fill: var(--ink); stroke: #fff; }
.who-card { border-color: var(--ink); background: var(--surface); }
.who-card h3 { font-size: 1.25rem; }
.who-ico { border-radius: 2px; }
.who-card .who-share { border-top: 1px solid var(--line); }
.code-card { border: 1px solid var(--ink); border-left: 4px solid var(--accent); background: var(--alt); }
.code-ico { border-radius: 2px; background: var(--ink); }
.step, .pcard, .mcard { border-color: var(--line); }
.pcard, .mcard, .step { background: var(--surface); }
.pcard.is-active, .mcard.is-active { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.flow-step.is-active { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.flow-step-last { border-color: var(--line); }
.flow-n, .mn { border-radius: 2px; background: var(--ink); }
.flow-step.is-active .flow-n, .mcard.is-active .mn { background: var(--accent); }
.pico, .step-ico { border-radius: 2px; background: var(--alt); border: 1px solid var(--line); color: var(--ink); }
.flow-icons svg, .att svg { stroke: var(--ink); color: var(--ink); }
.flow-arrow svg { stroke: var(--ink); }
.mc-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pcard:not(:last-child)::after, .steps3 .step:not(:last-child)::after, .step:not(:last-child)::after { height: 1px; background: var(--ink); }
.flow-progress-fill, .pbar-fill { background: var(--accent); }
.pbar, .flow.anim .flow-progress { border-radius: 0; height: 4px; }
.flow-progress-fill, .pbar-fill { border-radius: 0; }
.reply { border-left-color: var(--accent); }
.reply-dot { background: var(--accent); }
.flow-code, .copyrow, .mock, .composer, .browser, .mail-draft { border-radius: var(--r); }
.flow-code-go, .mc-send { background: var(--ink); border-radius: 2px; }
.flow-code-go.press, .mc-send.press { background: var(--accent); }
.mc-sent, .mail-copied, .flow.anim .flow-icons li.on::after, .process.anim .att.on::after { color: var(--ink); }
.pcard.is-done .pn, .flow-step.is-done .flow-n { background: var(--ink); border-radius: 2px; }
.badges li::before { border-radius: 0; }
.gate-row input, .lang-btn, .lang-select { border-color: var(--line-strong); border-radius: 2px; }
.gate-row input:focus-visible, .lang-btn:focus-visible { outline-color: var(--accent); }
.linkbtn { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sa-mail { border-radius: 2px; border: 1px solid var(--ink); box-shadow: none; }
.sa-mail svg { stroke: var(--ink); }
.sa-line, .sa-dot { background: var(--ink); }
.sa-line::after { border-left-color: var(--ink); }
.sa-dot { box-shadow: 0 0 0 4px rgba(17, 18, 20, .12); }
.sa-shadow { background: radial-gradient(ellipse at center, rgba(17, 18, 20, .22), rgba(17, 18, 20, 0) 70%); }
@keyframes btn-pulse { 50% { box-shadow: 0 0 0 8px rgba(31, 78, 158, .25); } }
.sheet img { border-radius: 2px; border-color: var(--ink); }
.sheet a:hover img, .sheet a:focus-visible img { border-color: var(--accent); }
.foot { border-top: 1px solid var(--ink); }
.lang-list { border-radius: var(--r); border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(17, 18, 20, .35); }
.lang-list [role="option"] { border-radius: 2px; }

/* ---- Fase 4: jerarquía de la portada ---- */
.demo-switch .chip { font-weight: 600; }
.demo .stage.demo-stage { aspect-ratio: 16 / 11; }

/* «Voor aannemers / particulieren»: dos columnas con numeración editorial (01–04) en lugar de viñetas de color */
.who-card { counter-reset: w; border-top: 3px solid var(--ink); border-color: var(--line); border-top-color: var(--ink); }
.who-list li { counter-increment: w; padding: 11px 0 0 44px; border-top: 1px solid var(--line); }
.who-list li::before { content: counter(w, decimal-leading-zero); top: 11px; width: auto; height: auto; border-radius: 0; background: none; font: 400 1.05rem/1.4 var(--serif); color: var(--accent); letter-spacing: .02em; }
.who-card-h .who-list li::before { background: none; }
.who-list li::after { content: none; }
.who-card .who-share { padding-top: 14px; }

/* galería de planos de ejemplo: los dos primeros grandes, los tres de Plus en fila (prueba de seriedad técnica) */
.sheets-h { font-size: 1.4rem; margin-top: 44px; }
@media (min-width: 900px) {
  .sheets { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
  .sheet { grid-column: span 2; }
  .sheet:nth-child(-n+2) { grid-column: span 3; }
}
.sheet img { border: 1px solid var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.sheet a:hover img, .sheet a:focus-visible img { transform: translateY(-2px); }
.sheet-cap { margin-top: 10px; font-size: .9rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sheet-cap strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; letter-spacing: .04em; }

/* Contacto: el compositor de correo se aligera (misma animación y función, menos peso visual) */
@media (min-width: 1000px) { .mail-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.mcard { padding: 20px 18px; gap: 10px; background: var(--surface); }
.mc-sub { font-size: .92rem; }
.composer { background: var(--surface); border-color: var(--line); }
.mc-bar { background: var(--alt); padding: 6px 10px; }
.mc-row { padding: 6px 12px; min-height: 2.2em; font-size: .86rem; }
.mc-body { min-height: 6.4em; gap: 6px; padding: 8px 12px; }
.mc-body p { font-size: .85rem; line-height: 1.45; }
.mc-atts { padding: 8px 12px; gap: 6px; }
.slot, .photo { width: 44px; height: 44px; border-radius: 2px; }
.mc-foot { padding: 8px 12px; }
.mc-send { padding: 6px 18px; font-size: .85rem; }
@media (min-width: 560px) { .mc-stage { grid-template-columns: minmax(0, 1fr) 96px; } }
.tray { background: var(--alt); border: 1px dashed var(--line); border-radius: 2px; padding: 8px; }
.photo { box-shadow: none; outline: 1px solid var(--line); }
.photo.grab { box-shadow: 0 8px 16px rgba(17, 18, 20, .25); }
.send-anim { transform: scale(.82); transform-origin: left center; margin-top: -30px; }
@media (max-width: 700px) { .send-anim { margin-top: 0; } }
.contact-head { padding-top: 14px; border-top: 1px solid var(--ink); max-width: 1000px; margin-left: auto; margin-right: auto; }
.contact-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

/* =====================================================================================
   HERO (fase de rediseño): promesa + visor arriba, 3 pasos de izquierda a derecha debajo, dibujo de línea de fondo
   ===================================================================================== */
.hero-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--bg); }
.hero-split { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: clamp(28px, 4.5vw, 64px) var(--pad) clamp(28px, 4vw, 52px); display: grid; align-items: center; gap: clamp(22px, 3vw, 40px) clamp(28px, 4.5vw, 64px); grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'demo' 'flow'; }
@media (min-width: 960px) { .hero-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); grid-template-areas: 'text demo' 'flow flow'; } }
.hero-text { grid-area: text; } .demo { grid-area: demo; } .flow-wrap { grid-area: flow; }
.hero-split h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin-bottom: .4em; }
.hero-split .lead { font-size: 1.1rem; line-height: 1.6; max-width: 40ch; color: var(--ink); }
.hero-split .cta { margin-top: 28px; }
.demo { background: rgba(255, 255, 255, .96); }
.noinstall { border: 0; background: none; padding: 0; margin: 10px 2px 0; font-size: .85rem; font-weight: 500; color: var(--muted); }
.noinstall .ni-ck { width: 18px; height: 18px; }

/* los 3 pasos: de izquierda a derecha, unidos por una línea que se rellena de azul */
.flow-wrap { display: grid; justify-items: end; gap: 8px; }
.flow { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 760px) { .flow { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1.25fr); } }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); transition: opacity .4s, box-shadow .3s; }
.flow-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 2px; background: var(--ink); color: #fff; font: 400 1.15rem var(--serif); transition: background .3s; }
.flow-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.flow-body strong { font: 400 1.2rem/1.25 var(--serif); letter-spacing: -.005em; }
.flow-p { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.flow-arrow { display: flex; align-items: center; justify-content: center; height: 26px; }
.fa-line { position: relative; display: block; width: 2px; height: 100%; background: var(--line); }
.fa-line::after { content: ''; position: absolute; left: -4px; bottom: -1px; border: solid transparent; border-width: 7px 5px 0; border-top-color: var(--ink); }
.fa-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); }
@media (min-width: 760px) {
  .flow-arrow { height: auto; padding: 0 4px; }
  .fa-line { width: 100%; height: 2px; }
  .fa-line::after { left: auto; right: -1px; bottom: -4px; border-width: 5px 0 5px 7px; border-color: transparent; border-left-color: var(--ink); }
  .fa-fill { width: 100%; height: 100%; }
}
.flow-step.is-active { box-shadow: inset 0 3px 0 var(--accent); }
.flow-step.is-active .flow-n { background: var(--accent); }
.flow-step.is-done .flow-n { font-size: 0; }
.flow-step.is-done .flow-n::before { content: '✓'; font: 700 1rem var(--sans); }
.flow.anim .flow-step:not(.is-active):not(.is-done) { opacity: .45; }
.flow.anim .fa-fill { transform: scaleX(0); transform-origin: left; }
.flow.anim .flow-arrow.on .fa-fill { transform: none; transition: transform .9s ease-out; }
@media (max-width: 759px) { .flow.anim .fa-fill { transform: scaleY(0); transform-origin: top; } }
.flow-replay { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; cursor: pointer; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.flow-replay:hover { border-color: var(--ink); }
.flow-step-last { flex-wrap: wrap; }
.flow-step-last .flow-mini { margin-left: auto; --ms: .72; width: 124px; height: 110px; }
@media (max-width: 420px) { .flow-step-last .flow-mini { margin: 0 auto; } }

/* campo de código de ejemplo (se teclea en el paso 3 y en «Zo werkt het») */
.flow-code { display: none; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 5px 4px 10px; width: fit-content; border: 1px solid var(--ink); border-radius: 2px; background: var(--bg); }
.flow-step-last .flow-code { display: inline-flex; }
.flow-code-label { color: var(--muted); font-size: .78rem; }
.flow-code-val { min-width: 2.4ch; font: 700 .95rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.flow-code-go { padding: 3px 12px; border-radius: 2px; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; transition: transform .15s, background .15s; }
.flow-code-go.press { transform: scale(.88); background: var(--accent); }
.flow.anim .flow-code-val::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: flow-blink 1s steps(1) infinite; }
@keyframes flow-blink { 50% { opacity: 0; } }
.linkbtn { font: inherit; font-size: .85rem; color: var(--ink); background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.demo.reveal { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 78, 158, .22); transition: box-shadow .4s, border-color .4s; }

/* =====================================================================================
   MINI BAÑO DE LUJO (CSS 3D, sin WebGL): paredes y suelo en travertino beige de formato grande, espejo circular con luz trasera,
   bañera exenta redondeada, mueble suspendido con lavabo de sobre y grifería en latón. Aparece en el paso 3 del hero y en «Zo werkt het».
   ===================================================================================== */
.flow-mini { --ms: 1; flex: none; width: 170px; height: 150px; transition: opacity .6s, transform .6s; }
.flow-mini .scene { position: relative; width: 100%; height: 100%; perspective: 560px; }
.flow-mini .world { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform: scale(var(--ms)) rotateX(-24deg) rotateY(28deg); animation: mini-spin 18s linear infinite; }
@keyframes mini-spin { from { transform: scale(var(--ms)) rotateX(-24deg) rotateY(28deg); } to { transform: scale(var(--ms)) rotateX(-24deg) rotateY(388deg); } }
.flow-mini .pl { position: absolute; left: 50%; top: 50%; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* suelo y paredes: baldosa de formato grande con junta fina y un velo de luz (veta suave) */
.flow-mini .floor { width: 100px; height: 72px; margin: -36px 0 0 -50px; transform: translateY(33px) rotateX(90deg); background-color: #D8C8AA; background-image: linear-gradient(135deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%), linear-gradient(#C3B093 1px, transparent 1px), linear-gradient(90deg, #C3B093 1px, transparent 1px); background-size: 100% 100%, 100% 24px, 25px 100%; }
.flow-mini .wall { background-color: #E7DAC4; background-image: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 45%, rgba(130, 100, 60, .12)), linear-gradient(100deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0) 62%), linear-gradient(#CDBB9C 1px, transparent 1px), linear-gradient(90deg, #CDBB9C 1px, transparent 1px); background-size: 100% 100%, 100% 100%, 100% 22px, 33.4px 100%; }
.flow-mini .w-back { width: 100px; height: 66px; margin: -33px 0 0 -50px; transform: translateZ(-36px); }
.flow-mini .w-front { width: 100px; height: 66px; margin: -33px 0 0 -50px; transform: translateZ(36px) rotateY(180deg); filter: brightness(.94); }
.flow-mini .w-left { width: 72px; height: 66px; margin: -33px 0 0 -36px; transform: translateX(-50px) rotateY(90deg); filter: brightness(.9); }
.flow-mini .w-right { width: 72px; height: 66px; margin: -33px 0 0 -36px; transform: translateX(50px) rotateY(-90deg); filter: brightness(.97); }
/* luz perimetral cálida en lo alto de las paredes */
.flow-mini .cove { height: 16px; background: linear-gradient(rgba(255, 233, 196, .95), rgba(255, 226, 176, 0)); }
.flow-mini .cv-b { width: 100px; margin: -33px 0 0 -50px; transform: translateZ(-35.8px); }
.flow-mini .cv-l { width: 72px; margin: -33px 0 0 -36px; transform: translateX(-49.8px) rotateY(90deg); }
/* espejo circular iluminado desde atrás: halo + cristal + marco de latón */
.flow-mini .halo { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; transform: translate3d(22px, -15px, -35.6px); background: radial-gradient(circle, rgba(255, 220, 150, 0) 50%, rgba(255, 214, 140, .95) 60%, rgba(255, 214, 140, 0) 100%); }
.flow-mini .mirror { width: 29px; height: 29px; margin: -14.5px 0 0 -14.5px; border-radius: 50%; transform: translate3d(22px, -15px, -35.4px); background: radial-gradient(circle at 34% 28%, #FFFFFF, #D3E0E6 58%, #A9BDC7); box-shadow: 0 0 0 1.5px #B38A45, 0 0 7px 1px rgba(255, 214, 140, .9); }
/* piezas con volumen (misma mecánica que antes: caja con 5 caras y --c / --ct) */
.flow-mini .b { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); margin-left: calc(var(--w) * -.5px); margin-top: calc(var(--h) * -.5px); transform-style: preserve-3d; transform: translate3d(calc(var(--x) * 1px), calc(var(--y) * 1px), calc(var(--z) * 1px)); }
.flow-mini .b i { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--c); }
.flow-mini .b .f { width: 100%; height: 100%; transform: translateZ(calc(var(--d) * .5px)); }
.flow-mini .b .k { width: 100%; height: 100%; transform: rotateY(180deg) translateZ(calc(var(--d) * .5px)); filter: brightness(.92); }
.flow-mini .b .l, .flow-mini .b .r { width: calc(var(--d) * 1px); height: 100%; left: calc((var(--w) - var(--d)) * .5px); }
.flow-mini .b .r { transform: rotateY(90deg) translateZ(calc(var(--w) * .5px)); filter: brightness(.88); }
.flow-mini .b .l { transform: rotateY(-90deg) translateZ(calc(var(--w) * .5px)); filter: brightness(.82); }
.flow-mini .b .t { width: 100%; height: calc(var(--d) * 1px); top: calc((var(--h) - var(--d)) * .5px); transform: rotateX(90deg) translateZ(calc(var(--h) * .5px)); background: var(--ct, var(--c)); }
.flow-mini .o-vanity { --w: 36; --d: 16; --h: 12; --x: 22; --y: 7; --z: -28; --c: #8A6A47; --ct: #ECE7DD; }
.flow-mini .basin { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; transform: translate3d(22px, .7px, -28px) rotateX(90deg); background: radial-gradient(circle, #D2DDE2 34%, #FBFAF7 40%); box-shadow: 0 0 0 1px #fff; }
.flow-mini .o-tap { --w: 2; --d: 2; --h: 9; --x: 22; --y: -3.5; --z: -33.5; --c: #C9A24E; }
.flow-mini .o-spout { --w: 2; --d: 6; --h: 2; --x: 22; --y: -7.5; --z: -31; --c: #C9A24E; }
.flow-mini .o-toilet { --w: 14; --d: 16; --h: 9; --x: -42; --y: 12; --z: 20; --c: #FBF9F4; --ct: #FFFFFF; }
.flow-mini .o-bench { --w: 24; --d: 11; --h: 8; --x: 30; --y: 29; --z: 24; --c: #9C7A52; --ct: #B8905C; }
.flow-mini .o-fill { --w: 2; --d: 2; --h: 28; --x: 12; --y: 19; --z: 2; --c: #C9A24E; }
/* bañera exenta redondeada: casco de 16 lamas + borde + fondo */
.flow-mini .tub { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translate3d(-6px, 25.5px, 2px); }
.flow-mini .tub i { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; width: 9px; height: 15px; margin: -7.5px 0 0 -4.5px; background: #FBF9F4; }
.flow-mini .tub i:nth-child(n+17) { background: #E9E3D8; }
.flow-mini .tub i:nth-child(33) { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; box-sizing: border-box; border: 2.5px solid #FFFFFF; background: transparent; transform: translateY(-7.5px) rotateX(90deg); filter: none; }
.flow-mini .tub i:nth-child(34) { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: radial-gradient(circle, #F2EEE5, #DCD5C8); transform: translateY(6.5px) rotateX(90deg); filter: none; }
.tub i:nth-child(1) { transform: rotateY(0deg) translateZ(21px); filter: brightness(1.01); }
.tub i:nth-child(17) { transform: rotateY(0deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(2) { transform: rotateY(22.5deg) translateZ(21px); filter: brightness(0.96); }
.tub i:nth-child(18) { transform: rotateY(22.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(3) { transform: rotateY(45deg) translateZ(21px); filter: brightness(0.87); }
.tub i:nth-child(19) { transform: rotateY(45deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(4) { transform: rotateY(67.5deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(20) { transform: rotateY(67.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.74); }
.tub i:nth-child(5) { transform: rotateY(90deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(21) { transform: rotateY(90deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.82); }
.tub i:nth-child(6) { transform: rotateY(112.5deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(22) { transform: rotateY(112.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.89); }
.tub i:nth-child(7) { transform: rotateY(135deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(23) { transform: rotateY(135deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.93); }
.tub i:nth-child(8) { transform: rotateY(157.5deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(24) { transform: rotateY(157.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.94); }
.tub i:nth-child(9) { transform: rotateY(180deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(25) { transform: rotateY(180deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.92); }
.tub i:nth-child(10) { transform: rotateY(202.5deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(26) { transform: rotateY(202.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.86); }
.tub i:nth-child(11) { transform: rotateY(225deg) translateZ(21px); filter: brightness(0.80); }
.tub i:nth-child(27) { transform: rotateY(225deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.79); }
.tub i:nth-child(12) { transform: rotateY(247.5deg) translateZ(21px); filter: brightness(0.82); }
.tub i:nth-child(28) { transform: rotateY(247.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(13) { transform: rotateY(270deg) translateZ(21px); filter: brightness(0.91); }
.tub i:nth-child(29) { transform: rotateY(270deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(14) { transform: rotateY(292.5deg) translateZ(21px); filter: brightness(0.98); }
.tub i:nth-child(30) { transform: rotateY(292.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(15) { transform: rotateY(315deg) translateZ(21px); filter: brightness(1.03); }
.tub i:nth-child(31) { transform: rotateY(315deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.tub i:nth-child(16) { transform: rotateY(337.5deg) translateZ(21px); filter: brightness(1.04); }
.tub i:nth-child(32) { transform: rotateY(337.5deg) translateZ(19.6px) rotateY(180deg); filter: brightness(0.72); }
.flow.anim .flow-mini, .process.anim .flow-mini { opacity: 0; transform: scale(.6) translateY(10px); }
.flow.anim .flow-mini.show, .process.anim .flow-mini.show { opacity: 1; transform: none; }
.flow.anim .flow-mini .world, .process.anim .flow-mini .world { animation-play-state: paused; }
.flow.anim .flow-mini.show .world, .process.anim .flow-mini.show .world { animation-play-state: running; }
.process .flow-mini { margin: 0 auto; --ms: 1.02; width: 190px; height: 150px; }
@media (prefers-reduced-motion: reduce) { .flow-mini .world { animation: none; } .flow-mini { transition: none; } .flow.anim .fa-fill { transition: none; } }
/* ajustes del hero tras la primera revisión visual: que los 3 pasos entren en la primera pantalla y el dibujo quede como filigrana */
.hero-split { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); gap: clamp(18px, 2.4vw, 32px) clamp(28px, 4.5vw, 64px); }
.demo { padding: 10px; background: rgba(255, 255, 255, .93); }
.demo .stage.demo-stage { aspect-ratio: 16 / 9; }
.demo-open { margin-top: 8px; }
.hero-split h1 { font-size: clamp(2.3rem, 4.3vw, 3.6rem); }

/* hero: dibujo de línea solo a la derecha (el titular queda limpio) y pasos más compactos */
.flow-step { padding: 14px 18px; }
.flow-step-last .flow-mini { width: 120px; height: 84px; margin-top: -14px; margin-bottom: -14px; --ms: .7; }
.flow-step-last .flow-body { flex: 1 1 140px; }

/* ---- Sin descargar nada: línea bajo los botones, franja de visor nativo y preguntas frecuentes ---- */
.trust-line { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.trust-line li { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.trust-line svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nativeband { background: var(--alt); border-bottom: 1px solid var(--line); }
.nb-list { list-style: none; margin: 0 auto; padding: 18px var(--pad); max-width: 1320px; display: grid; gap: 14px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .nb-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nb-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.nb-list .ic { flex: none; width: 34px; height: 34px; padding: 7px; border: 1px solid var(--ink); border-radius: 2px; background: var(--surface); color: var(--accent); stroke-width: 1.7; }
.faq-list { max-width: 820px; margin-top: 18px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font: 400 1.15rem/1.35 var(--serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 300 1.7rem/1 var(--sans); color: var(--accent); }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq-item p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }
/* mensaje de «navegador sin 3D» sobre el póster de la demo */
.demo .stage-status { z-index: 6; }
.stage-status.err { background: rgba(255, 255, 255, .94); font-weight: 600; color: var(--ink); align-items: center; }
.flow-code, .flow-code span { white-space: nowrap; }
@media (min-width: 760px) { .flow { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1.5fr); } }
.trust-line { gap: 8px 16px; } .trust-line li { font-size: .88rem; }

/* Fondo del hero: imagen de licencia Creative Commons (cocina en estilo plano azul, ver docs/3DMODEL.md) con velo blanco para que el texto se lea */
.hero-wrap::before { content: ''; position: absolute; inset: 0; background: url(/3Dmodel/img/hero-bg.jpg) center / cover no-repeat; pointer-events: none; }
.hero-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .9) 32%, rgba(255, 255, 255, .4) 64%, rgba(255, 255, 255, .12) 100%); }
@media (max-width: 959px) { .hero-wrap::after { background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .82)); } }

/* Aviso «haz clic y arrastra» sobre el visor del hero: círculo semitransparente con un dedo que arrastra; desaparece al primer toque */
.drag-hint { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; transition: opacity .35s; animation: dh-in .6s ease-out 1.2s both; }
.drag-hint.gone { opacity: 0; animation: none; }
@keyframes dh-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dh-circle { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: rgba(17, 18, 20, .42); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 9px rgba(255, 255, 255, .22); }
.dh-hand { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: dh-drag 2.2s ease-in-out infinite; transform-origin: 50% 80%; }
.dh-arrow { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: dh-pulse 2.2s ease-in-out infinite; }
.dh-arrow { filter: drop-shadow(0 0 2px rgba(17, 18, 20, .7)); }
.dh-l { left: -30px; } .dh-r { right: -30px; animation-delay: 1.1s; }
@keyframes dh-drag { 0%, 100% { transform: translateX(-17px) rotate(-12deg); } 50% { transform: translateX(17px) rotate(12deg); } }
@keyframes dh-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.dh-text { padding: 6px 14px; border-radius: 2px; background: rgba(17, 18, 20, .72); color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.dh-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .dh-mouse { display: none; } .dh-touch { display: inline; } }
@media (prefers-reduced-motion: reduce) { .drag-hint { animation: none; } .dh-hand, .dh-arrow { animation: none; } }

.pkg-foot { margin: 14px 2px 0; color: var(--muted); font-size: .9rem; }
.pkg-dots { gap: 4px; } .pkg-dots i { width: 11px; height: 11px; }

/* paso 3 del hero en pantallas estrechas: el campo del código puede partirse y el mini baño pasa a su propia fila (sin tapar el botón) */
.flow-code { max-width: 100%; flex-wrap: wrap; }
@media (max-width: 640px) {
  .flow-step-last { flex-wrap: wrap; align-items: flex-start; }
  .flow-step-last .flow-body { flex: 1 1 calc(100% - 60px); }
  .flow-step-last .flow-code, .flow-step-last .flow-code span { white-space: normal; }
  .flow-step-last .flow-mini { flex: 0 0 100%; width: 100%; height: 104px; margin: 8px 0 -10px; }
}
/* ---------- dos formas de contratar (correo · online), misma visibilidad (docs/3DMODEL-FORMULARIOS.md) ---------- */
.order-options { margin: 8px 0 28px; }
.order-h { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.order-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order-card { border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 20px; background: var(--surface); display: flex; flex-direction: column; }
.order-card h4 { font: 700 1.2rem/1.25 var(--serif); margin: 0 0 8px; }
.order-card p { margin: 0 0 12px; color: var(--muted); }
.order-card p:has(.btn) { margin-top: auto; }
.order-soon { font-size: .92rem; font-style: italic; }
.order-card .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.order-card .order-lead { margin: 0 0 14px; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }

/* ---- animaciones de las dos opciones de contratación (decorativas, solo CSS, aria-hidden) ---- */
.oa { position: relative; height: 104px; margin: 2px 0 14px; background: var(--alt); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.oa .oa-cube { position: absolute; right: 16px; top: 28px; width: 46px; height: 46px; animation: oa-cube 8s ease-out 3.6s infinite both; }
.oa .oa-cube svg { width: 100%; height: 100%; fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.oa-check { position: relative; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.oa-check::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* email: conversación → presupuesto aceptado → modelo */
.oa-bub { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; height: 22px; border-radius: 11px; background: #fff; border: 1px solid var(--line); animation: oa-pop 8s ease-out infinite both; }
.oa-bub i { display: block; height: 3px; border-radius: 2px; background: #C4C8CC; }
.oa-bub i + i { width: 60%; }
.oa-b1 { left: 12px; top: 10px; width: 34%; border-bottom-left-radius: 2px; }
.oa-b2 { left: 20%; top: 40px; width: 28%; height: 18px; background: var(--accent); border-color: var(--accent); border-bottom-right-radius: 2px; animation-delay: .9s; }
.oa-b2 i { background: rgba(255, 255, 255, .7); }
.oa-b3 { left: 12px; top: 68px; width: 30%; border-bottom-left-radius: 2px; animation-delay: 1.8s; }
.oa-quote { position: absolute; right: 78px; top: 20px; width: 50px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; animation: oa-pop 8s ease-out 2.7s infinite both; }
.oa-quote b { font: 700 1.25rem/1 var(--serif); color: var(--ink); }
/* online: formulario que se rellena → enviado → entrega rápida */
.oa-form { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 38%; padding: 9px 9px 0; display: flex; flex-direction: column; gap: 7px; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; }
.oa-form > i { display: block; height: 5px; border-radius: 2px; background: var(--accent-line); animation: oa-fill 6s ease-out infinite both; }
.oa-form > i:nth-child(1) { --w: 85%; }
.oa-form > i:nth-child(2) { --w: 60%; animation-delay: .35s; }
.oa-form > i:nth-child(3) { --w: 75%; animation-delay: .7s; }
.oa-send { position: absolute; right: 7px; bottom: 7px; width: 34px; height: 18px; display: grid; place-items: center; border-radius: 2px; background: var(--accent); }
.oa-send .oa-check { width: 14px; height: 14px; background: none; animation: oa-pop 6s ease-out 1.2s infinite both; }
.oa-send .oa-check::after { left: 4px; top: 1px; }
.oa-track { position: absolute; left: calc(38% + 24px); right: 74px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.oa-dash { position: absolute; top: -6px; width: 16px; height: 2px; background: var(--accent-line); animation: oa-speed 6s linear 1.6s infinite both; }
.oa-dash:nth-child(2) { top: 6px; animation-delay: 1.7s; }
.oa-dash:nth-child(3) { top: -12px; width: 10px; animation-delay: 1.8s; }
.oa-dot { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: oa-zip 6s cubic-bezier(.5, 0, .2, 1) 1.5s infinite both; }
.oa-fast .oa-cube { animation: oa-cube 6s ease-out 2.2s infinite both; }
@keyframes oa-pop { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 6% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
@keyframes oa-cube { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 8% { opacity: 1; transform: scale(1.12) rotate(4deg); } 12% { transform: scale(1) rotate(0); } 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: none; } }
@keyframes oa-fill { 0% { width: 0; } 9% { width: var(--w); } 82% { width: var(--w); } 92%, 100% { width: 0; } }
@keyframes oa-zip { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 10% { left: calc(100% - 12px); opacity: 1; } 13%, 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes oa-speed { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 10% { left: 70%; opacity: 0; } 100% { left: 70%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .oa *, .oa .oa-cube { animation: none !important; }
  .oa-form > i { width: var(--w); }
  .oa-dot { left: calc(100% - 12px); }
  .oa-dash { opacity: 0; }
}
.order-card + .order-card { border-top-color: var(--accent); }
.foot-links { margin-bottom: 8px !important; }
/* ---------- guía gratuita (lead magnet) en la portada: franja sobria con la portada real del PDF ---------- */
.guide-band { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .guide-band { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.guide-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.gb-cover { display: block; justify-self: center; width: 100%; max-width: 280px; }
.gb-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 12px 12px 0 var(--alt), 12px 12px 0 1px var(--line); }

/* ============================================================================================================================
   FONDOS DE SECCIÓN (decisión del propietario, 2026-11-26): ritmo de contraste para que el scroll no sea una sola página blanca.
   Blanco y gris claro se alternan para separar bloques; el color (el acento azul de la marca) se reserva a las dos zonas de
   ACCIÓN: «Ver tu proyecto» (#code, banda azul con la tarjeta en blanco) y «Solicitar» (#contact, azul muy claro).
   Banda a todo el ancho sin tocar el HTML ni dejar costuras: border-image con relleno que sale 100vmax a cada lado.
   hero blanco · franja gris · para quién blanco · cómo funciona GRIS · código AZUL · precios blanco · guía GRIS · FAQ blanco · contacto AZUL CLARO
   ============================================================================================================================ */
section#hoe, section#gids { --band: var(--alt); border-image: linear-gradient(var(--band) 0 0) fill 0 / / 0 100vmax; }
section#gids { border-top: 0; }
section#gids .gb-cover img { box-shadow: 12px 12px 0 #fff, 12px 12px 0 1px var(--line); }
section#code { --band: var(--accent); border-image: linear-gradient(var(--band) 0 0) fill 0 / / 0 100vmax; padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(32px, 6vw, 64px); }
section#code .code-card { background: var(--surface); border: 0; border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
section#contact { --band: #EDF1F8; border-image: linear-gradient(var(--band) 0 0) fill 0 / / 0 100vmax; margin-top: clamp(24px, 5vw, 48px); }
section#contact .order-card, #contact .mcard { box-shadow: 0 10px 28px -20px rgba(17, 18, 20, .45); }
section#faq { padding-bottom: clamp(24px, 5vw, 48px); }

/* ---- página propia «Prepara tu correo» (/3Dmodel/email/, generada en en/es por gen-home-langs.mjs) ---- */
.email-page .top nav > a:first-child { font-weight: 600; }
.email-block { margin-top: 0 !important; padding-top: clamp(28px, 5vw, 56px); }
.contact-head h1 { grid-column: 1; margin: 0; font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
@media (max-width: 700px) { .contact-head h1 { margin-bottom: 8px; } }
.email-block .contact-head { margin-bottom: clamp(18px, 3vw, 28px); }
.email-alt { max-width: 1000px; margin: clamp(24px, 4vw, 40px) auto 0; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); }
.email-alt p { margin: 0; }
.email-alt p:first-child { font-weight: 600; }
.btn[hidden] { display: none; }

/* ---- visor de proyectos: pantalla completa dentro de la ventana (botón #btn-full, viewer.js → setStageFull) ---- */
.tool-full .ico-shrink, .tool-full[aria-pressed="true"] .ico-expand { display: none; }
.tool-full[aria-pressed="true"] .ico-shrink { display: block; }
.stage.is-full { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; max-height: none; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.stage.is-full .stage-tools { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
body.stage-full-open { overflow: hidden; }

/* ============================================================================================================================
   FOOTER (2026-11-26): común a todas las páginas, generado desde 3dmodel-src/footer.mjs. Fondo negro de la marca, logo para
   fondo oscuro (logo-footer.svg), marca + frase + botón principal y tres columnas de enlaces; barra inferior con © y compartir.
   ============================================================================================================================ */
.foot.ft { margin-top: 0; padding: clamp(44px, 7vw, 72px) var(--pad) 0; background: var(--ink); color: rgba(255, 255, 255, .72); border-top: 0; text-align: left; font-size: .95rem; }
.ft a { color: #fff; text-decoration: none; }
.ft-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .ft-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; } }
@media (max-width: 639px) { .ft-col ul { gap: 12px; } .ft-col a { font-size: .95rem; } }
@media (min-width: 980px) { .ft-inner { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .ft-brand { grid-column: auto; } }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; }
.ft-logo img { display: block; width: 82px; height: auto; }
.ft-name { font: 400 1.35rem/1 var(--serif); color: #fff; }
.ft-3d { padding: 3px 8px; border-radius: 2px; background: #fff; color: var(--ink); font: 700 .8rem/1.2 var(--sans); letter-spacing: .12em; }
.ft-tag { max-width: 34ch; margin: 16px 0 20px !important; line-height: 1.55; }
.ft-cta .btn { padding: 11px 20px; }
.ft-cta .btn:hover, .ft-cta .btn:focus-visible { background: #fff; border-color: #fff; color: var(--accent); }
.ft-h { margin: 4px 0 14px; font: 700 .76rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-col a { color: rgba(255, 255, 255, .88); transition: color .15s; }
.ft-col a:hover, .ft-col a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft :focus-visible { outline-color: #fff; }
.ft-bottom { max-width: 1080px; margin: clamp(36px, 6vw, 56px) auto 0; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: .86rem; }
.ft-bottom p { margin: 0 !important; }
.ft-share { color: rgba(255, 255, 255, .72); }
.ft-share .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.ft-share .btn-ghost:hover { border-color: #fff; }
.ft-share .ico-share { stroke: currentColor; fill: none; }
.guide-page .foot.ft a { color: rgba(255, 255, 255, .88); }
@media print { .foot.ft { display: none; } }

/* Móvil y pantallas estrechas (< 760 px): se oculta la tira de 3 pasos del hero; justo debajo viene «Zo werkt het», que lo detalla (orden del propietario, 2026-11-27). Escritorio: se sigue viendo. */
@media (max-width: 759px) { .flow-wrap { display: none !important; } }

/* ---- Dock del visor de proyectos: modos 3D · Planta · Caminar, niveles y herramientas, PEGADO bajo el visor (viewer.js → setupModes/placeUI) ---- */
.page-viewer .viewer-main { display: flex; flex-direction: column; min-width: 0; }
.page-viewer .stage:not(.is-full) { border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.view-dock { display: grid; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--ink); border-top-color: var(--line); border-radius: 0 0 var(--r) var(--r); }
.view-dock[hidden] { display: none; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--alt); border: 1px solid var(--line); border-radius: var(--r); }
.seg[hidden] { display: none; }
.seg-btn { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.seg-btn svg { flex: none; }
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.seg-levels .seg-btn { min-height: 38px; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.seg-levels .seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dock-row { display: none; flex-wrap: wrap; align-items: center; gap: 8px; }
.dock-row:has(.seg-levels:not([hidden])), .dock-row:has(.dock-tools:not(:empty)) { display: flex; }
.dock-row .seg-levels { flex: 1 1 210px; }
.dock-tools { flex: 0 0 auto; margin-left: auto; }
.dock-tools:empty { display: none; }
.dock-tools .stage-tools { position: static; flex-direction: row; gap: 6px; }
.dock-tools .tool { width: 40px; height: 40px; }
/* En pantalla completa el dock se superpone abajo del visor */
.view-dock.dock-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: rgba(255, 255, 255, .95); padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
/* Joystick de «Caminar» (abajo a la izquierda del visor) */
.joy { position: absolute; left: 16px; bottom: 16px; z-index: 5; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.joy[hidden] { display: none; }
.joy-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); border: 1.5px solid var(--ink); }
.joy-ring::before, .joy-ring::after { content: ''; position: absolute; background: var(--line); }
.joy-ring::before { left: 50%; top: 14px; bottom: 14px; width: 1px; }
.joy-ring::after { top: 50%; left: 14px; right: 14px; height: 1px; }
.joy-knob { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); pointer-events: none; }
.stage.is-full .joy { bottom: calc(150px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); }
@media (max-width: 860px) {
  .page-viewer .viewer-page { padding: 8px 0 32px; }
  .page-viewer .top { padding-top: 8px; padding-bottom: 8px; }
  .page-viewer .code-bar { gap: 8px; padding: 0 var(--pad); margin-bottom: 8px; }
  .page-viewer .code-bar .btn { min-height: 36px; padding: 6px 10px; font-size: .82rem; white-space: nowrap; }
  .page-viewer .code-bar .share-note:empty { display: none; }
  /* el visor ocupa casi toda la pantalla disponible (cabecera, «otro proyecto» y dock restados), de borde a borde */
  .page-viewer .stage:not(.is-full) { height: max(360px, calc(100svh - 228px)); min-height: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .dock-row { flex-wrap: nowrap; }
  .dock-row .seg-levels { flex: 1 1 0; }
  .dock-tools .tool { width: 36px; height: 36px; }
  .dock-tools .stage-tools { gap: 4px; }
  .dock-row:not(:has(.seg-levels:not([hidden]))) .dock-tools, .dock-row:not(:has(.seg-levels:not([hidden]))) .dock-tools .stage-tools { flex: 1 1 100%; }
  .dock-row:not(:has(.seg-levels:not([hidden]))) .dock-tools .tool { flex: 1 1 0; width: auto; }
  .page-viewer .view-dock:not(.dock-over) { border-left: 0; border-right: 0; border-radius: 0; }
  .page-viewer .hint, .page-viewer .noinstall { margin-left: var(--pad); margin-right: var(--pad); }
  .page-viewer .panel { margin: 16px var(--pad) 0; }
}
@media (prefers-reduced-motion: reduce) { .seg-btn { transition: none; } }

/* ---- Extras opcionales de un proyecto (viewer.js): cámaras predefinidas, capas, leyenda y ficha al tocar un objeto ---- */
.seg-views { flex-wrap: wrap; }
.seg-views .seg-btn { flex: 1 1 auto; min-height: 36px; font-size: .84rem; padding: 4px 10px; }
.toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 5px; margin: 8px 0 4px; }
.switch.switch-row { margin: 0; padding: 5px 10px; gap: 10px; border-radius: 2px; }
.switch.switch-row .switch-label { font-size: .86rem; font-weight: 600; }
.legend-h { margin: 12px 0 4px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.legend { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--ink); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend-swatch { flex: none; width: 22px; height: 6px; border-radius: 1px; background: var(--muted); }
.pick-card { position: absolute; top: 12px; left: 12px; z-index: 7; width: min(320px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 10px 12px 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--ink); border-radius: var(--r); font-size: .84rem; color: var(--ink); }
.pick-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pick-head strong { font-size: .95rem; }
.pick-close { flex: none; width: 30px; height: 30px; margin: -4px -6px 0 0; font: inherit; font-size: 1.3rem; line-height: 1; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.pick-close:focus-visible { outline: 2px solid var(--ink); }
.pick-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.pick-card dt { color: var(--muted); }
.pick-card dd { margin: 0; }

/* Selector de ejemplos de la demo: matriz 2 × 2 cuando el hero se apila (móvil y tableta) */
@media (max-width: 959px) {
  .demo-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-switch .chip { width: 100%; min-width: 0; text-align: center; white-space: normal; line-height: 1.25; text-wrap: balance; padding: 7px 6px; font-size: .82rem; }
}
