/* Ficha y visor independientes; el SVG editable nunca recibe un zoom propio. */
.gh-depa-dialog { box-sizing:border-box; width:min(1200px,calc(100% - 48px)); height:min(940px,94svh); max-width:none; max-height:94svh; margin:auto; padding:0; border:1px solid rgba(255,255,255,.5); border-radius:30px; background:var(--gh-cream,#f4f1e8); color:var(--gh-forest,#10312b); box-shadow:0 32px 100px #0005; overflow:hidden; }
.gh-depa-dialog::backdrop { background:rgba(5,25,20,.68); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); }
.gh-depa-dialog__panel { display:grid; grid-template-rows:auto minmax(0,1fr); height:100%; min-height:0; }
.gh-depa-dialog__bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px clamp(20px,3vw,40px); border-bottom:1px solid #10312b18; background:var(--gh-cream,#f4f1e8); }
.gh-depa-dialog__label { font:600 .65rem/1.5 var(--gh-sans,Montserrat,sans-serif); text-transform:uppercase; letter-spacing:.15em; }
.gh-depa-dialog__actions { display:flex; align-items:center; gap:20px; }
.gh-depa-dialog__actions a { color:inherit; font-size:.75rem; text-underline-offset:4px; }
.gh-depa-dialog__close { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; padding:0; border:0; border-radius:50%; color:var(--gh-forest,#10312b); background:var(--gh-lime,#a1d184); font:400 1.8rem/1 sans-serif; cursor:pointer; }
.gh-depa-dialog__body { position:relative; min-height:0; }
.gh-depa-dialog iframe { width:100%; height:100%; display:block; border:0; background:var(--gh-cream,#f4f1e8); }
.gh-depa-dialog__loading { position:absolute; inset:0; display:grid; place-items:center; background:var(--gh-cream,#f4f1e8); pointer-events:none; }
.gh-depa-dialog__loading[hidden] { display:none; }
[data-gh-department-views] [data-gh-unit-link] { cursor:pointer !important; }
.gh-depa-page { margin:0; background:var(--gh-cream,#f4f1e8); color:var(--gh-forest,#10312b); }
.gh-depa { box-sizing:border-box; width:min(100%,1180px); margin:auto; padding:clamp(24px,4vw,48px); font-family:var(--gh-sans,Montserrat,sans-serif); }
.gh-depa__overview { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:clamp(24px,4vw,56px); }
.gh-depa__overview > header { min-width:0; }
.gh-depa__eyebrow { display:block; margin-bottom:12px; font-size:.65rem; font-weight:600; line-height:1.6; letter-spacing:.15em; text-transform:uppercase; }
.gh-depa h1 { margin:0 0 20px; font-family:var(--gh-serif,serif); font-size:clamp(36px,5vw,62px); font-weight:400; line-height:1.08; letter-spacing:-.045em; }
.gh-depa h1 em { display:block; font-weight:400; }
.gh-depa__meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:20px; font-size:.85rem; }
.gh-depa__status { padding:7px 12px; border-radius:999px; background:#10312b0d; font-weight:600; }
.gh-depa__status.is-available { background:var(--gh-lime,#a1d184); }
.gh-depa__intro { font-size:.9375rem; line-height:1.7; color:#36564e; white-space:pre-line; }
.gh-depa__facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0; }
.gh-depa__facts div { padding-top:12px; border-top:1px solid #10312b26; }
.gh-depa__facts dt { font-size:.7rem; font-weight:400; }
.gh-depa__facts dd { margin:5px 0 0; font-size:1.1rem; font-weight:600; }
.gh-depa__features { font-size:.8rem; line-height:1.7; }
.gh-depa__model { margin:0; padding:20px; border-radius:24px; background:#10312b06; }
.gh-depa__model img { display:block; width:100%; height:clamp(210px,32vw,330px); object-fit:contain; }
.gh-depa__floor { margin-top:clamp(32px,5vw,56px); }
.gh-depa__floor-heading h2 { margin:0 0 20px; font:400 clamp(28px,3vw,40px)/1.15 var(--gh-serif,serif); letter-spacing:-.035em; }
.gh-plan { min-width:0; }
.gh-plan__toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.gh-plan:not([data-plan-ready]) .gh-plan__toolbar { display:none; }
.gh-plan__toolbar button { display:grid; place-items:center; min-width:44px; min-height:44px; padding:8px 14px; border:0; border-radius:999px; background:var(--gh-forest,#10312b); color:#fff; font:600 1rem/1.2 var(--gh-sans,Montserrat,sans-serif); cursor:pointer; }
.gh-plan__toolbar button[data-plan-reset] { background:#10312b0d; color:var(--gh-forest,#10312b); font-size:.75rem; }
.gh-plan__toolbar button:disabled { opacity:.4; cursor:default; }
.gh-plan__toolbar output { min-width:60px; text-align:center; font-size:.8rem; font-variant-numeric:tabular-nums; }
.gh-plan__hint,.gh-plan__location { font-size:.75rem; line-height:1.6; color:#36564e; }
.gh-plan__viewport { position:relative; overflow:hidden; border:1px solid #10312b1a; border-radius:20px; background:#fffdf7; touch-action:pan-y pinch-zoom; user-select:none; -webkit-user-select:none; }
.gh-plan__viewport.is-zoomed { cursor:grab; touch-action:none; }
.gh-plan__viewport.is-panning { cursor:grabbing; }
.gh-plan__world { position:relative; width:100%; transform-origin:0 0; }
.gh-plan__world > img { display:block; width:100%; height:auto; pointer-events:none; }
.gh-plan__world > .gh-floor-mask { position:absolute; inset:0; width:100%; height:100%; }
.gh-plan__world .tipo-depa:has(.tipo-depa__etiqueta:empty) { visibility:hidden; }
.gh-plan__world .gh-floor-mask .is-selected > .cls-1 { stroke:var(--gh-forest,#10312b); stroke-width:4px; opacity:.8; }
.gh-depa__more { margin-top:24px; padding:18px 0; border-block:1px solid #10312b26; font-size:.9rem; line-height:1.7; }
.gh-depa__more summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:600; }
.gh-depa__contact { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; margin-top:24px; }
.gh-depa__contact p { margin:0; font-size:.85rem; }
.gh-depa__error { padding-block:40px; max-width:600px; }
.gh-depa :focus-visible,.gh-depa-dialog :focus-visible { outline:3px solid var(--gh-water,#007da5); outline-offset:4px; }
.gh-depa [tabindex="-1"]:focus { outline:none; }
@media(max-width:700px) {
 .gh-depa-dialog { width:100%; height:100svh; max-height:100svh; border:0; border-radius:0; }
 .gh-depa-dialog__bar { padding:max(12px,env(safe-area-inset-top)) 20px 12px; }
 .gh-depa-dialog__label { max-width:19ch; }
 .gh-depa-dialog__actions { gap:12px; }
 .gh-depa { padding:24px 20px max(24px,env(safe-area-inset-bottom)); }
 .gh-depa__overview { grid-template-columns:1fr; gap:20px; }
 .gh-depa__model img { height:230px; }
 .gh-plan__viewport { border-radius:14px; }
}
@media(prefers-reduced-motion:reduce) { .gh-depa-dialog,.gh-plan__world { animation:none !important; transition:none !important; } }
