:root{--ink:#303a33;--muted:#7d8075;--paper:#f4f1e9;--line:#d9d9cc;--accent:#68755c}*{box-sizing:border-box}body{margin:0;background:#e7e6dc;color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #758e58;outline-offset:4px}button:hover{color:#83916f}button:disabled{opacity:.45;cursor:wait}a{color:inherit;text-decoration:none}canvas#view{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:0;left:0;right:0;height:86px;display:flex;justify-content:space-between;align-items:center;padding:0 36px;background:linear-gradient(#f4f1e9ee,#f4f1e900);z-index:4;pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;gap:15px;align-items:center;font-size:11px;letter-spacing:.17em;font-weight:600}.brand small{display:block;font-size:8px;letter-spacing:.2em;color:var(--muted);margin-top:7px;font-weight:400}.brandmark{font:32px Georgia,serif;border:1px solid #79826c;width:44px;height:45px;display:grid;place-content:center;position:relative}.brandmark span{font:18px Georgia;position:absolute;right:0;top:0;background:var(--paper);height:13px}nav{display:flex;gap:12px;align-items:center}nav button{font-size:12px;padding:12px 15px;border:1px solid #aab09d50;border-radius:30px;background:#f4f1e9bb;backdrop-filter:blur(12px)}nav button span{margin-left:13px}#panel{position:fixed;z-index:3;left:26px;top:103px;bottom:88px;width:290px;padding:25px 25px 15px;background:#f4f1e9ed;backdrop-filter:blur(24px);overflow:auto;border:1px solid #ffffff90;border-radius:4px;scrollbar-width:thin;scrollbar-color:#bfc3b3 transparent}.eyebrow{font-size:9px;letter-spacing:.17em;color:var(--muted);font-weight:500}h1{font:36px/1.11 Georgia,serif;letter-spacing:-1.35px;margin:17px 0}h1 em{font-weight:400;color:#7f886f}p.intro{font-size:11px;line-height:1.8;color:var(--muted)}.divider{border-top:1px solid var(--line);margin:23px 0 18px}.sectionlabel{font-size:9px;color:#8e9380;letter-spacing:.06em;display:flex;gap:13px;margin-bottom:15px}.sectionlabel span{color:#59614f;letter-spacing:.14em}.segmented{display:flex;padding:4px;border:1px solid var(--line);border-radius:5px;gap:2px}.segmented button{flex:1;font-size:10px;padding:9px 3px;border-radius:3px;white-space:nowrap}.segmented button.active{background:#69755d;color:#fff}.viewgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.viewgrid button{display:flex;justify-content:space-between;border:1px solid var(--line);padding:10px;font-size:10px;border-radius:3px}.viewgrid button.active{border-color:#849171;background:#e7eadf}.viewgrid span{color:#8e9582}.disclosure{width:100%;display:flex;justify-content:space-between;font-size:11px;padding:10px 0}.setting{display:flex;justify-content:space-between;font-size:11px;margin-top:5px}.setting output{color:#878c7a;font-size:10px}input[type=range]{width:100%;height:3px;accent-color:#6d7b59;margin:18px 0 9px;cursor:pointer}.rangelabel{display:flex;justify-content:space-between;font-size:8px;color:#898d7e;margin-bottom:17px}.switchrow{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:13px 0}.switchrow input{appearance:none;width:28px;height:16px;border-radius:20px;background:#d6d8cc;position:relative;cursor:pointer}.switchrow input:after{content:'';position:absolute;width:10px;height:10px;top:3px;left:3px;background:white;border-radius:50%;transition:.2s}.switchrow input:checked{background:#778361}.switchrow input:checked:after{left:15px}.primary{background:#333f35;color:#f7f4eb;width:100%;padding:14px 12px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;font-size:10px;border-radius:3px}.primary span:last-child{opacity:.6;font-size:9px}.primary:hover{background:#53614b;color:white}.footnote{font-size:8px;line-height:1.7;color:#969989;margin:17px 0 0}#rooms{max-height:185px;overflow:auto}#rooms button{width:100%;display:flex;justify-content:space-between;font-size:10px;padding:9px 6px;border-bottom:1px solid var(--line)}#rooms small{color:var(--muted)}#caption{position:fixed;bottom:110px;left:355px;pointer-events:none;text-shadow:0 1px 12px #f5f2e8,0 0 25px #f5f2e8;z-index:2}#caption h2{font:29px Georgia,serif;letter-spacing:-.5px;margin:8px 0}#caption p{font-size:11px;margin:0;color:#5f6858}.bottom{position:fixed;bottom:21px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;z-index:4;gap:15px}.mode,.tools{display:flex;background:#f4f1e9eb;border:1px solid #ffffffaa;backdrop-filter:blur(20px);padding:5px;border-radius:40px;gap:4px}.mode button{font-size:11px;padding:11px 20px;border-radius:30px}.mode button.active{background:#dce1d3}.tools button{width:37px;height:36px;border-radius:50%;font-size:19px}.tools button:hover{background:#e1e5d7}#hint{font-size:10px;letter-spacing:.02em;background:#f4f1e9bb;padding:10px 18px;border-radius:30px}#panelToggle{display:none;position:fixed;z-index:6;top:88px;left:18px;background:var(--paper);border:1px solid var(--line);border-radius:50%;width:40px;height:40px}#loading{position:fixed;inset:0;z-index:20;background:var(--paper);display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .65s}#loading.done{opacity:0;pointer-events:none}.loadingmark{font:86px Georgia,serif;color:#7e876e;margin-bottom:28px}#loading h2{font:36px Georgia,serif;margin:14px}#loading p{color:var(--muted);font-size:12px}.progress{width:220px;height:2px;background:#dce0d4;margin:25px;overflow:hidden}.progress i{display:block;height:100%;width:8%;background:#6e7b5b;transition:width .3s}#toast{position:fixed;top:96px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#334137;color:#fff;border-radius:4px;z-index:22;font-size:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}dialog{border:1px solid #fff9;border-radius:6px;background:var(--paper);color:var(--ink);padding:25px;max-width:1100px;width:90vw;max-height:93vh;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#233028aa;backdrop-filter:blur(8px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialoghead h2{font:29px Georgia,serif;margin:8px 0 0}.close{font-size:30px;width:38px;height:38px}.galleryImage{position:relative;aspect-ratio:1.6;background:#e2e1d8;overflow:hidden}.galleryImage img{width:100%;height:100%;object-fit:contain;display:block}#beforeImage{position:absolute;inset:0;object-fit:cover}#compareLine{position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff}#imageTag{position:absolute;top:14px;left:14px;background:#f4f1e9dd;font-size:8px;letter-spacing:.1em;padding:8px 12px}.galleryfoot{display:flex;align-items:center;gap:20px;padding-top:16px}.galleryfoot button{font-size:23px}.galleryfoot h3{font:18px Georgia;margin:0}.galleryfoot p{font-size:10px;color:var(--muted);margin:6px 0 0}.galleryfoot a{margin-left:auto;font-size:11px;border-bottom:1px solid #9aa18c;padding-bottom:4px}#compareControl{font-size:10px;margin-left:auto;min-width:130px}#compareControl input{margin-top:10px}#plan{max-width:870px}#plan .segmented{max-width:300px}#map svg{width:100%;height:55vh;min-height:240px;margin-top:15px}#map .roomdot{cursor:pointer}#map .roomdot:hover circle{fill:#3e5a3f}#map .roomdot text{font-family:Arial,sans-serif;pointer-events:none}.mapnote{font-size:11px;color:var(--muted)}#helpDialog{max-width:590px}#helpDialog p{font-size:13px;line-height:1.8}#walkpad{position:fixed;right:35px;bottom:100px;z-index:5;text-align:center}#walkpad button{background:#f4f1e9dd;width:43px;height:43px;border-radius:50%;margin:3px;touch-action:none;border:1px solid var(--line);font-size:20px}[hidden]{display:none!important}
@media(max-height:820px) and (min-width:761px){#panel{top:92px;padding-top:19px}h1{font-size:30px;margin:13px 0}.intro{display:none}.divider{margin:17px 0 14px}.primary{margin-top:11px}.footnote{margin-top:12px}}@media(max-width:1000px){#panel{width:260px;left:20px;padding:21px}#caption{left:310px}#hint{display:none}h1{font-size:31px}header{padding:0 24px}}@media(max-width:760px){header{height:75px;padding:0 18px}.brand{font-size:9px;gap:10px}.brand small{font-size:7px}.brandmark{width:34px;height:35px;font-size:26px}nav{gap:5px}nav button{font-size:10px;padding:9px}nav button span{display:none}#fullscreen{display:none}#panelToggle{display:block}#panel{display:none;left:16px;top:138px;width:275px;bottom:90px;background:#f4f1e9f7}body.panel-open #panel{display:block}#caption{left:24px;bottom:105px;right:15px}#caption h2{font-size:26px}#caption p{font-size:10px;max-width:240px}.bottom{left:16px;right:16px;bottom:20px;gap:6px}.mode button{padding:11px 14px;font-size:10px}.tools button{width:30px;height:32px}.tools{gap:0}dialog{padding:17px;width:95vw}.dialoghead h2{font-size:23px}.galleryfoot{gap:10px;flex-wrap:wrap}.galleryfoot h3{font-size:15px}#compareControl{display:none}.galleryImage{aspect-ratio:1.25}#walkpad{right:18px;bottom:155px}#toast{width:80vw;top:80px;text-align:center}}
#caption{background:linear-gradient(90deg,#f4f1e9eb,#f4f1e900);padding:13px 35px 13px 17px;border-left:2px solid #8a9677;border-radius:2px}#caption h2{font-size:26px}#caption p{font-size:10px}
.panoLink{font-size:12px;padding:12px 17px;border:1px solid #f4f1e9aa;border-radius:30px;background:#364336;color:#fff;backdrop-filter:blur(12px)}.panoLink:hover{background:#58684a}@media(max-width:760px){.panoLink{font-size:10px;padding:10px 12px}nav #mapButton{display:none}}
@media(max-width:550px){.brand>span:nth-child(2){display:none}nav #mapButton{display:block}#caption{max-width:calc(100vw - 40px);padding-right:20px}#caption h2{font-size:23px}}
.segmented button,.viewgrid button{font-size:11px}.disclosure,.setting,.switchrow{font-size:12px}#rooms button{font-size:12px}#rooms small{font-size:10px}.setting output{font-size:11px}.primary{font-size:11px}.footnote{font-size:9px}.sectionlabel{font-size:10px}

@media(min-width:761px){#panelToggle{display:block;top:90px;left:325px;width:34px;height:34px;font-size:16px}body.panel-hidden #panel{display:none}body.panel-hidden #panelToggle{left:26px}body.panel-hidden #caption{left:26px}}
/* Leyenda de la vista oculta a petición del cliente (2026-09-10): el bloque sigue en el DOM porque app.js lo actualiza. */
#caption{display:none !important}

/* Piedra o liso (2026-09-29): tarjeta flotante para probar la piedra de cada fachada sin tapar la casa. */
#facadeCard{--stone:linear-gradient(#c7b08a,#b39a74);position:fixed;z-index:5;right:26px;top:103px;width:320px;max-height:calc(100vh - 200px);overflow:auto;padding:20px 22px 16px;background:#f4f1e9f2;backdrop-filter:blur(24px);border:1px solid #ffffff90;border-radius:4px;box-shadow:0 12px 50px #0000001a;scrollbar-width:thin}
#facadeCard .cardhead{display:flex;justify-content:space-between;align-items:flex-start}
#facadeCard h2{font:25px Georgia,serif;margin:8px 0 0;letter-spacing:-.4px}
#facadeCard .close{margin:-6px -8px 0 0}
.cardnote{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 14px}
#facadeGrid{display:grid;grid-template-columns:auto repeat(4,1fr);gap:6px 6px;align-items:center;margin-bottom:18px}
.facadehead{font-size:9px;letter-spacing:.08em;color:#6f7564;text-align:center}
.facaderow{font-size:10px;color:#59614f;padding-right:4px;line-height:1.2}
#facadeGrid button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:0}
#facadeGrid .sw{display:block;width:100%;aspect-ratio:1.25;border-radius:3px;border:1px solid #d6d3c6}
#facadeGrid small{font-size:9px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
/* Contador de piedra (2026-10-06): m² netos de las fachadas de la casa con la combinación de cada momento. */
#facadeMeter{display:flex;flex-direction:column;gap:3px;margin:16px 0 2px;padding:12px 14px 11px;background:#ece5d6;border:1px solid #dccfb4;border-radius:3px}
#facadeTotal{font:400 30px/1.1 Georgia,serif;letter-spacing:-.6px;color:var(--ink);font-variant-numeric:tabular-nums}
#facadeMeter small{font-size:9px;line-height:1.5;color:#837a66}
#facadeCard [data-state=piedra] .sw{background:var(--stone) center/260%;border-color:#b9a785}
#facadeCard [data-state=liso] .sw{background:#f7f5f0}
#facadeCard [data-state=mixto] .sw{background:linear-gradient(135deg,#f7f5f0 0 50%,transparent 50%),var(--stone) center/260%}
#facadeCard button[data-cell]:hover .sw{outline:2px solid #849171;outline-offset:1px}
#facadeCard button:disabled{opacity:.3;cursor:default}
#facadeExtras{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
#facadeExtras .chip{display:flex;align-items:center;gap:7px;font-size:11px;padding:6px 10px 6px 6px;border:1px solid var(--line);border-radius:30px}
#facadeExtras .sw{display:block;width:18px;height:18px;border-radius:50%;border:1px solid #d6d3c6}
#facadeExtras .chip[data-state=piedra]{border-color:#b9a785;background:#ece5d6}
#facadePresets button.active{background:#69755d;color:#fff}
#facadeShare{width:100%;display:flex;justify-content:space-between;font-size:11px;padding:12px 2px 4px;margin-top:8px;border-top:1px solid var(--line)}
#facadeCard .footnote{margin-top:8px}
nav #facadeButton.active{background:#364336;color:#fff;border-color:#364336}
@media(max-width:760px){#facadeCard{left:12px;right:12px;width:auto;top:auto;bottom:76px;max-height:52vh;padding:15px 16px 12px}
#facadeCard h2{font-size:21px}
#facadeMeter{margin-top:10px;padding:9px 12px 8px}
#facadeTotal{font-size:24px}
.cardnote{margin:6px 0 10px}
#facadeGrid{margin-bottom:12px}
#facadeGrid .sw{aspect-ratio:1.6}
}
