/* Interfaz propia basada en la plantilla VE; identidad del export y web oficial de Panamá. */
@font-face{font-family:Poppins;src:url('../ac/fonts/Poppins Regular.woff2') format('woff2');font-display:swap}
:root{--brand:#67364b;--glass:#67364bed;--accent:#e4b3c9;--paper:#f4f3f0;--ink:#422b37;--panel-width:300px;--edge:24px}
*{box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden}body{margin:0;background:var(--brand);color:white;font-family:Poppins,Arial,sans-serif}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}
#tour{position:fixed;inset:0;width:100%;height:100%;border:0;transition:opacity .25s}.tour-loading #tour{opacity:0}header{position:fixed;z-index:3;left:var(--edge);right:var(--edge);top:max(18px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}.identity{background:#fffef9ee;border:1px solid #ffffff70;border-radius:14px;padding:10px 15px 5px;box-shadow:0 4px 20px #0001;display:flex;flex-direction:column;align-items:center;width:220px}.identity span{font-size:8px;letter-spacing:1.8px;color:var(--brand)}.identity img{width:190px;height:auto;display:block}#toggle,#full{pointer-events:auto;display:flex;gap:9px;align-items:center;justify-content:center;min-height:48px;border:1px solid #fff5;border-radius:13px;padding:12px 16px;background:var(--glass);color:white;box-shadow:0 4px 25px #0002}#toggle{font-size:12px}
#panel{position:fixed;z-index:4;left:var(--edge);top:119px;bottom:max(24px,env(safe-area-inset-bottom));width:var(--panel-width);display:flex;flex-direction:column;overflow:hidden;border:1px solid #fff3;border-radius:21px;background:var(--glass);box-shadow:0 18px 55px #0003;backdrop-filter:blur(16px);transition:transform .25s,opacity .25s,visibility .25s}.closed #panel{opacity:0;visibility:hidden;transform:translateX(calc(-100% - var(--edge)));pointer-events:none}#panel-handle{position:fixed;z-index:5;top:190px;left:calc(var(--edge) + var(--panel-width));width:34px;min-height:99px;border:1px solid #fff8;border-left:0;border-radius:0 12px 12px 0;background:var(--paper);color:var(--ink);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:10px 4px;box-shadow:5px 4px 15px #0002;transition:left .25s}.closed #panel-handle{left:0}#panel-handle span{writing-mode:vertical-rl;font-size:11px}body:not(.closed) #panel-handle svg{transform:rotate(180deg)}
.project-tabs{display:grid;grid-template-columns:1.05fr 1.35fr .65fr;gap:5px;padding:12px 10px 0;flex:none}.project-tabs button{min-height:51px;line-height:1.5;padding:8px 3px;border:1px solid #fff5;border-radius:9px;background:transparent;color:white;font-size:10px}.project-tabs button[aria-pressed=true]{background:var(--paper);color:var(--ink)}#apartment-selector{display:flex;gap:8px;padding:10px 12px 0;flex:none}#apartment-selector button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #fff5;border-radius:9px;min-height:44px;padding:8px 12px;background:transparent;color:white;font-size:11px}#apartment-selector #select-x07{background:var(--paper);color:var(--ink);flex:1}.panel-heading{padding:19px 22px 14px;flex:none}.eyebrow{font-size:8px;letter-spacing:2px;color:#eeeefb}h1{font-size:20px;font-weight:400;line-height:1.4;margin:7px 0 5px}.panel-heading p{font-size:10px;margin:0;line-height:1.6;color:#e2e2f4}
.scene-scroll-frame{position:relative;min-height:0;flex:1;overflow:hidden;padding-right:10px}#scenes{overflow-y:auto;overscroll-behavior:contain;height:100%;padding:0 9px 12px 12px;scrollbar-width:none}#scenes::-webkit-scrollbar,#positions::-webkit-scrollbar{display:none}#scenes button{display:flex;align-items:center;gap:11px;text-align:left;width:100%;min-height:48px;margin:4px 0;padding:12px;border:1px solid transparent;border-radius:11px;background:#ffffffa6;color:var(--ink);font-size:12px}#scenes button:hover,#scenes button[aria-current=true]{background:var(--paper)}.num{font-size:10px;opacity:.65;font-variant-numeric:tabular-nums}.diagonal{margin-left:auto;flex:0 0 13px;width:13px;height:13px;stroke-width:.8}.group-title{font-size:9px;letter-spacing:1.4px;margin:16px 11px 10px}.scroll-cue{position:absolute;border-radius:20px;background:#ffffff25;pointer-events:none}.scroll-cue span{position:absolute;display:block;border-radius:20px;background:#dbdfff;min-width:3px;min-height:3px}.scroll-cue.vertical{right:8px;top:4px;bottom:12px;width:3px}.vertical span{width:3px}.scroll-cue.horizontal{bottom:0;left:0;right:0;height:3px}.horizontal span{height:3px}
#location-open{display:flex;align-items:center;gap:10px;flex-shrink:0;margin:8px 20px 0;padding:12px 10px;border:1px solid #ffffff45;border-radius:10px;background:transparent;color:#fff;font:inherit;text-align:left;cursor:pointer;min-height:44px}#location-open>svg:first-child{width:15px;height:18px}.panel-footer{border-top:1px solid #ffffff26;padding:11px 14px;text-align:center;flex:none}.panel-footer details{font-size:9px;color:#eeeefb}.panel-footer details p{font-size:9px;line-height:1.6;text-align:left;margin:8px 0;max-height:70px;overflow:auto}.signature{font-size:9px;white-space:nowrap;margin-top:8px}.signature strong{font-weight:400}
#tour-controls{position:fixed;z-index:2;bottom:max(22px,env(safe-area-inset-bottom));left:calc(var(--edge) + var(--panel-width) + 35px);right:var(--edge);display:flex;align-items:flex-end;gap:14px;pointer-events:none;transition:left .25s}.closed #tour-controls{left:var(--edge)}.current{background:var(--glass);border:1px solid #fff4;border-radius:14px;padding:12px 15px;min-width:210px;width:max-content;max-width:min(570px,calc(100% - 65px));pointer-events:auto}.current strong{display:block;font-size:13px;font-weight:400;margin-top:3px}.position-scroll-frame{position:relative;min-width:0;padding-bottom:9px;margin-top:9px}.position-scroll-frame:has(#positions:empty){display:none}#positions{display:flex;overflow-x:auto;overscroll-behavior:contain;gap:6px;scrollbar-width:none}#positions button{width:44px;height:44px;flex:0 0 44px;border:1px solid #fff6;border-radius:9px;background:#ffffff10;color:white;font-size:11px}#positions button[aria-current=true]{background:var(--paper);color:var(--ink)}#full{margin-left:auto;flex:none;width:48px;padding:12px}#hint{position:fixed;z-index:1;top:35px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:30px;background:var(--glass);font-size:10px;pointer-events:none}.tour-loading #hint{visibility:hidden}#loading{position:fixed;z-index:6;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--brand);border:1px solid #fff5;padding:18px 23px;border-radius:14px;box-shadow:0 6px 35px #0003;text-align:center;width:max-content;max-width:calc(100vw - 30px);font-size:12px}#loading:has(#status:empty){display:none}#retry-tour{display:block;margin:13px auto 0;min-height:44px;padding:10px 15px;border:1px solid #fff7;border-radius:9px;background:white;color:var(--brand)}
dialog{padding:0;border:1px solid #fff4;border-radius:20px;background:var(--brand);color:white;width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 24px 90px #0007}dialog::backdrop{background:#11112a99;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px}h2{font-size:18px;font-weight:400;margin:6px 0}.dialog-header button{width:44px;height:44px;flex:none;border:1px solid #fff5;border-radius:10px;background:transparent;color:white;font-size:28px}#location-map{position:static;inset:auto;display:block;border:0;width:100%;height:min(56dvh,480px);background:var(--paper)}.location-note{text-align:center;font-size:11px;line-height:1.8;padding:14px 18px;margin:0}#apartment-video{display:block;width:100%;max-height:65dvh;background:#000}#video-error{padding:16px;font-size:12px}
@media(max-width:700px){:root{--edge:14px;--panel-width:min(310px,calc(100vw - 58px))}header{top:max(14px,env(safe-area-inset-top))}.identity{width:177px;padding:7px 9px 3px}.identity span{font-size:6px;letter-spacing:1.4px}.identity img{width:158px}#toggle{font-size:11px;min-height:46px;padding:10px 12px;gap:6px}#toggle svg{width:16px}#panel{top:96px;bottom:max(14px,env(safe-area-inset-bottom));border-radius:18px}#panel-handle{top:155px}.project-tabs{padding:10px 9px 0}.panel-heading{padding:15px 19px 10px}h1{font-size:18px}#hint{top:86px;font-size:9px;white-space:nowrap}body:not(.closed) #hint,body:not(.closed) #tour-controls{visibility:hidden}#tour-controls,.closed #tour-controls{left:14px;right:14px;bottom:max(14px,env(safe-area-inset-bottom));gap:10px}.current{min-width:0;max-width:calc(100% - 58px);padding:10px 12px}.current strong{font-size:12px}.current .eyebrow{font-size:7px}#full{width:48px}.panel-footer{padding:9px 12px}.signature{font-size:8px}.dialog-header{padding:12px 16px}h2{font-size:16px}}
@media(max-width:350px){.identity{width:154px;padding:6px 6px 2px}.identity img{width:143px}.identity span{font-size:5.5px}#toggle{padding:10px 9px;font-size:10px}.project-tabs button{font-size:9px}#scenes button{font-size:11px;padding:11px 9px}.panel-heading{padding:12px 17px 8px}.panel-heading p{font-size:9px}}
@media(max-height:680px){#panel{top:102px}.panel-heading{padding:12px 19px 8px}.panel-heading p{display:none}.panel-footer{padding:8px 12px}.signature{margin-top:5px}#location-open{margin-bottom:5px}.project-tabs button{min-height:46px}}
@media(max-height:500px){#panel{top:83px;bottom:10px}.panel-heading{padding:8px 15px}.panel-heading .eyebrow,.panel-footer details,#hint{display:none}h1{font-size:15px;margin:0}.project-tabs{padding-top:8px}.project-tabs button{min-height:43px}.identity{width:175px;padding:6px 9px 2px}.identity img{width:155px}.identity span{font-size:6px}#panel-handle{top:115px;min-height:84px}.panel-footer{padding:8px}.signature{font-size:8px}#location-open{min-height:42px;margin-top:0;margin-bottom:0}#tour-controls{left:calc(var(--edge) + var(--panel-width) + 25px)}.current{max-width:calc(100% - 58px)}#apartment-selector{padding-top:6px}#apartment-selector button{min-height:36px;padding:4px 10px}}
.no-fullscreen .current{max-width:min(570px,100%)}
@media(prefers-reduced-motion:reduce){#panel,#panel-handle,#tour,#tour-controls{transition:none}}

/* Compact position rail: five touch targets, with a usable persistent scrollbar. */
#location-open{margin-bottom:12px}
#location-open:hover{background:#ffffff18}
#positions{flex-wrap:nowrap;overflow-x:auto;width:244px;max-width:100%}
.position-scroll-frame{width:244px;max-width:100%;padding-bottom:26px}
#position-scroll-cue{height:20px;pointer-events:auto;touch-action:none;cursor:pointer;background:linear-gradient(#ffffff40,#ffffff40) center/100% 3px no-repeat}
#position-scroll-cue span{height:4px;top:8px;cursor:grab}
#position-scroll-cue:active span{cursor:grabbing}
#position-scroll-cue:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.position-scroll-frame:has(#position-scroll-cue[hidden]){padding-bottom:0}
@media(max-width:700px){#location-open{margin:6px 14px 12px;padding:10px}}
#positions button:focus-visible{outline-offset:-3px}

.identity strong{font-size:19px;letter-spacing:.08em;line-height:1.25;color:var(--brand);text-align:center}.panel-heading{padding-top:18px}
@media(max-width:700px){.identity strong{font-size:15px}}

.identity{background:var(--brand)} .identity span{color:white}.identity img{max-height:68px;object-fit:contain}

/* Una barra fina como la referencia, con carril amplio para interacción. */
.scene-scroll-frame{padding-right:20px}
#scenes{scrollbar-width:none}
#scenes::-webkit-scrollbar{display:none;width:0;height:0}
#scene-scroll-cue{right:0;top:4px;bottom:12px;width:20px;pointer-events:auto;touch-action:none;cursor:pointer;background:linear-gradient(#ffffff40,#ffffff40) center/3px 100% no-repeat}
#scene-scroll-cue span{width:4px;left:8px;top:0;cursor:grab}
#scene-scroll-cue:active span{cursor:grabbing}
#scene-scroll-cue:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

@media(max-height:500px){.identity img{width:auto;max-width:155px;max-height:38px}}

/* Alinear el bloque de marca con el panel sin solapar el botón en móvil. */
.identity{width:var(--panel-width);border-radius:21px}
.identity img{max-width:100%}
@media(max-width:700px){.identity{width:min(var(--panel-width),calc(100vw - 160px));border-radius:18px}}
@media(max-height:500px) and (min-width:701px){.identity{width:var(--panel-width)}}

@media(max-width:700px) and (min-height:501px){#panel{top:max(112px,calc(env(safe-area-inset-top) + 98px))}}

/* El texto introductorio se conserva también en pantallas bajas. */
@media(max-height:680px){.panel-heading p{display:block}}
@media(max-height:500px){.panel-heading .eyebrow{display:block}.panel-heading p{display:block;font-size:9px;line-height:1.3}.panel-heading{padding:6px 15px} .panel-heading h1{margin:3px 0;font-size:15px}}

/* Mantener la indicación separada de la marca y del botón. */
@media(max-width:700px) and (min-height:501px){#hint{top:max(120px,calc(env(safe-area-inset-top) + 106px))}}
@media(min-width:701px) and (max-width:1050px) and (min-height:501px){#hint{left:auto;right:calc(var(--edge) + 145px);transform:none}}

/* Iconos del proyecto con el color del texto del ambiente. */
#scenes .area-icon{display:block;flex:0 0 25px;width:25px;height:25px;background-color:currentColor;-webkit-mask-image:var(--icon-mask);mask-image:var(--icon-mask);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}
#scenes button .area-label{min-width:0;line-height:1.3}
@media(max-width:350px){#scenes button{gap:7px}#scenes .area-icon{width:23px;height:23px;flex-basis:23px}}

.identity .project-name{font-size:24px;letter-spacing:3px;color:white;line-height:1.5}.project-tabs{grid-template-columns:1fr 1fr}#apartment-selector{display:flex}#apartment-selector button{flex:1}#apartment-selector button[aria-pressed=true]{background:var(--paper);color:var(--ink)}@media(max-height:680px){.panel-heading p,.panel-heading .eyebrow{display:block}}

/* Logo oficial sin placa, como en Mondrian y Tuliv. */
:root{--brand:#9c563c;--glass:#9c563ced}
.identity{background:transparent;border:0;box-shadow:none;padding:0;align-items:flex-start;pointer-events:none}
.identity img{width:180px;max-height:none;filter:drop-shadow(0 2px 4px #ffffff80)}
.project-tabs{grid-template-columns:1fr 1.18fr 1fr}
.project-tabs button{font-size:9px;overflow-wrap:anywhere}
#apartment-selector{display:block;padding:10px 12px 0}.apartment-label{display:block;font-size:10px;margin:0 2px 7px;color:#fff}.apartment-options{display:flex;gap:8px}#apartment-selector button{flex:1}
#apartment-selector button::before{content:"";display:block;width:18px;height:18px;flex:0 0 18px;background:currentColor;-webkit-mask:url('icons/departamento.svg') center / contain no-repeat;mask:url('icons/departamento.svg') center / contain no-repeat}
#scenes .area-icon-placeholder{display:block;flex:0 0 25px;width:25px;height:25px}
#floor-selector{position:fixed;right:24px;bottom:90px;z-index:3;background:var(--glass);border:1px solid #fff5;border-radius:15px;padding:14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 25px #0003}
#floor-selector span{font-size:8px;letter-spacing:1px}#floor-selector strong{font-size:12px;font-weight:400}#floor-buttons{display:flex;gap:6px}#floor-buttons button{width:44px;height:44px;border:1px solid #fff6;border-radius:9px;color:white;background:transparent}#floor-buttons button[aria-current=true]{background:var(--paper);color:var(--ink)}
@media(max-width:700px){.identity{width:min(160px,calc(100vw - 145px));padding:0}.identity img{width:100%;max-height:58px;object-fit:contain;object-position:left center}.project-tabs button{font-size:8px}.apartment-label{font-size:9px}#floor-selector{right:14px;bottom:82px;padding:9px;max-width:116px}#floor-selector span{font-size:7px}#floor-selector strong{font-size:10px}#floor-buttons{display:grid;grid-template-columns:1fr 1fr}#floor-buttons button{width:44px;height:44px}body:not(.closed) #floor-selector{visibility:hidden}}

/* Pestañas legibles en móvil, manteniendo las tres opciones visibles. */
@media(max-width:700px), (max-width:1000px) and (max-height:500px){.project-tabs{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:4px}.project-tabs button{font-size:11px;line-height:1.25;min-height:52px;padding:6px 1px;overflow-wrap:normal;white-space:normal}.project-tabs .tab-degree{display:block}}

/* Pestañas al tamaño de la integración de Tuliv. */
.project-tabs{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:4px}
.project-tabs button{font-size:11px;line-height:1.25;min-height:52px;padding:6px 1px;overflow-wrap:normal;white-space:normal}
.project-tabs .tab-degree{display:block}

/* El acceso al video debe distinguirse de los ambientes. */
#scenes button.video-entry{min-height:64px;padding:10px 12px;background:var(--paper);border:1px solid #fff9;gap:12px}
#scenes button.video-entry:hover{background:#fff;box-shadow:0 4px 14px #34132130}
.video-play{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--brand);color:white}.video-play svg{width:23px;height:23px}.video-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.video-copy strong{font-size:13px;font-weight:600;line-height:1.2}.video-copy span{font-size:11px;line-height:1.25}.video-chevron{margin-left:auto;font-size:25px;line-height:1;font-weight:300}

#apartment-selector button::before{display:none}.identity img{max-height:100%;object-fit:contain}

.project-tabs{grid-template-columns:repeat(3,minmax(0,1fr))} #location-open{margin-bottom:12px}.project-video{display:block;color:inherit;font-size:11px;padding:8px 12px;text-decoration:none}.project-video:hover{text-decoration:underline}

/* Marca oficial extraída visualmente del recurso original, sin placa. */
.identity .matiz-logo{display:block;width:180px;height:auto;overflow:hidden;max-height:none;object-fit:contain;filter:drop-shadow(0 1px 2px #0009)}
@media(max-width:700px){.identity .matiz-logo{width:min(160px,calc(100vw - 165px))}}
@media(max-height:500px){.identity .matiz-logo{width:145px}}
