/* PE2.14: página interior, no modal. Menú madera siempre visible. */
.te-pe-access-layer[hidden],#tePeAccessLogin[hidden],#tePeAccessFrame[hidden]{display:none!important}
.te-pe-access-layer{position:fixed!important;inset:0!important;z-index:21000!important;background:transparent!important;display:flex!important;justify-content:center!important;align-items:stretch!important;padding:clamp(90px,12vw,185px) 0 0!important;box-sizing:border-box!important;pointer-events:none!important}
.te-pe-access-paper{width:min(1050px,82vw)!important;height:100%!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;pointer-events:auto!important;border-radius:0!important;box-shadow:0 0 24px #0004!important;background:#f5f0e6 url('papel-artesanal.jpg') center top/100% auto repeat!important;display:block!important;color:#30271e!important}
.te-pe-access-toolbar{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;background:#30241e;color:#f2e5cf;padding:12px 22px}
.te-pe-access-toolbar button{width:auto!important;height:auto!important;border-radius:5px!important;padding:9px 15px!important;font-size:12px!important;background:#695346;color:white;cursor:pointer}
#tePeAccessLogin{max-width:440px!important;margin:80px auto!important;padding:0 22px 80px!important}
#tePeAccessForm{display:grid!important;gap:16px!important}#tePeAccessForm label{display:grid!important;gap:7px!important}#tePeAccessForm input{display:block!important;width:100%!important;box-sizing:border-box!important}
#tePeAccessFrame{padding:22px!important;width:auto!important;min-height:0!important;height:auto!important;background:transparent!important;overflow:visible!important}
#tePeAccessFrame .tes-front{max-width:100%!important;margin:0!important}#tePeAccessFrame .tes-front *{box-sizing:border-box}
body.te-pe-access-active #teWelcomeWidgets,body.te-pe-access-active #teCommuneOverlay,body.te-pe-access-active .islands,body.te-pe-access-active #tourPanel,body.te-pe-access-active #detailPanel,body.te-pe-access-active #teAndrea,body.te-pe-access-active #teMusicToggle{visibility:hidden!important;pointer-events:none!important}
body.te-pe-access-active #map{pointer-events:none!important}body.te-pe-access-active #teTopMenu{z-index:30000!important}
@media(max-width:900px){.te-pe-access-paper{width:95vw!important}}

/* TE 5.8.3: estilos cargados REALMENTE en portada; iframe de ancho completo. */
body.te-pe-access-active #tePeAccessLayer{inset:0!important;padding:0!important;pointer-events:none!important;background:transparent!important}
body.te-pe-access-active #tePeAccessLayer .te-pe-access-paper{width:min(1100px,92vw)!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0 auto!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;border-radius:0!important;pointer-events:auto!important;background:#f5f0e6 url('papel-artesanal.jpg') repeat!important;background-size:512px 512px!important}
body.te-pe-access-active #tePeAccessLayer .te-pe-access-toolbar{flex:0 0 auto!important;min-height:48px!important;box-sizing:border-box!important;margin-top:clamp(90px,11vw,160px)!important}
body.te-pe-access-active #tePeAccessFrame{display:block!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important}
body.te-pe-access-active #tePeAccessFrame[hidden]{display:none!important}
body.te-pe-access-active #tePeAccessFrame > iframe.te58-admin-iframe{display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;position:static!important;transform:none!important;box-sizing:border-box!important}
@media(max-width:700px){body.te-pe-access-active #tePeAccessLayer .te-pe-access-paper{width:100vw!important}body.te-pe-access-active #tePeAccessLayer .te-pe-access-toolbar{margin-top:75px!important;padding:8px 12px!important}}
