html.emony-global-gate-lock,html.emony-global-gate-lock body{overflow:hidden!important;overscroll-behavior:none!important}
.emony-global-gate[hidden]{display:none!important}
.emony-global-gate{position:fixed;inset:0;z-index:2147483647;display:flex;justify-content:center;align-items:stretch;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif;color:#172033;background:#fff}
.emony-global-gate__backdrop{position:absolute;inset:0;background:#fff}
.emony-global-gate__sheet:focus{outline:none}
.emony-global-gate__sheet{position:relative;z-index:1;width:100%;height:100dvh;overflow:auto;background:#fff;padding:calc(22px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));text-align:center;-webkit-overflow-scrolling:touch}
.emony-global-gate__handle{display:none}
.emony-global-gate__logo{display:block;width:min(210px,54vw);max-height:74px;object-fit:contain;margin:4px auto 28px}
.emony-global-gate__platform{width:62px;height:62px;margin:0 auto 18px;border:1px solid #e8ecf3;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 8px 24px rgba(31,47,79,.06)}
.emony-global-gate__platform svg{width:31px;height:31px}
.emony-global-gate__kicker{display:none}
.emony-global-gate h1{margin:0 auto;color:#172033;font-size:clamp(30px,8.5vw,43px);line-height:1.08;letter-spacing:-1.15px;font-weight:900;max-width:560px}
.emony-global-gate h1 .os-android{color:#62b92c}
.emony-global-gate__copy{max-width:520px;margin:14px auto 0;color:#8390a6;font-size:17px;line-height:1.45;font-weight:500}
.emony-global-gate__install-cta{margin:26px auto 0;width:min(100%,480px)}
.emony-global-gate__install-cta button{width:100%;min-height:58px;border:0;border-radius:22px;background:#2856d8;color:#fff;font:inherit;font-size:17px;font-weight:900;box-shadow:0 12px 24px rgba(40,86,216,.18);display:flex;align-items:center;justify-content:center;gap:10px}
.emony-global-gate__install-cta button svg{width:25px;height:25px}
.emony-global-gate__steps{width:min(100%,560px);margin:28px auto 0;padding:0;border:1px solid #e2e7ef;border-radius:24px;background:#fff;box-shadow:0 10px 34px rgba(34,49,82,.06);overflow:hidden;text-align:left;color:#778399;font-size:14px;line-height:1.42}
.gate-step-heading{padding:18px 20px 4px;color:#2856d8;font-size:15px;font-weight:900}
.gate-step{display:grid;grid-template-columns:50px 1fr;gap:14px;align-items:center;padding:17px 20px;position:relative}
.gate-step+.gate-step{border-top:1px solid #edf0f5}
.gate-step__icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#f2f6ff;color:#2856d8}
.gate-step__icon svg{width:25px;height:25px}.gate-step__icon.is-green{background:#eef9ed;color:#39ad4a}.gate-step__icon.is-yellow{background:#fff8e7;color:#f4b400}
.gate-step__body{min-width:0}.gate-step__title{display:block;color:#172033;font-size:15px;line-height:1.25;font-weight:900;margin-bottom:3px}.gate-step__sub{display:block;color:#8290a5;font-size:13px;line-height:1.4}.gate-step__accent{color:#2856d8}
.gate-ios-card .gate-step{grid-template-columns:52px 28px 1fr;gap:10px;padding:15px 18px}.gate-step__number{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf3ff;color:#2856d8;font-size:13px;font-weight:900}
.gate-fallback{width:min(100%,560px);margin:14px auto 0;padding:14px 18px;border:1px solid #e2e7ef;border-radius:19px;display:flex;align-items:center;gap:13px;text-align:left;background:#fff}.gate-fallback__icon{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f4f7fb}.gate-fallback__icon svg{width:25px;height:25px}.gate-fallback strong{display:block;color:#172033;font-size:14px;margin-bottom:2px}.gate-fallback span{display:block;color:#8390a5;font-size:12.5px;line-height:1.35}
.emony-global-gate__status{width:min(100%,560px);margin:16px auto 0;padding:15px 18px;border-radius:18px;background:#f2f6ff;color:#2856d8;font-size:13px;line-height:1.42;text-align:left;display:flex;align-items:center;gap:12px}.emony-global-gate__status:before{content:"";flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#e5edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232856d8' stroke-width='2'%3E%3Cpath d='M18 8a6 6 0 10-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E") center/17px no-repeat}.emony-global-gate__status.is-ok{background:#edf9f1;color:#16864e}.emony-global-gate__status.is-error{background:#fff2f1;color:#a63030}.emony-global-gate__status.is-error:before{background-color:#ffe5e3}
.emony-global-gate__actions{width:min(100%,560px);display:grid;gap:10px;margin:18px auto 0}.emony-global-gate__primary,.emony-global-gate__secondary{width:100%;min-height:56px;border-radius:20px;padding:0 18px;font:inherit;font-size:15px;font-weight:900;cursor:pointer}.emony-global-gate__primary{border:0;background:#2856d8;color:#fff;box-shadow:0 10px 24px rgba(40,86,216,.16)}.emony-global-gate__secondary{border:1.5px solid #2856d8;background:#fff;color:#2856d8}.emony-global-gate__primary:disabled,.emony-global-gate__secondary:disabled{opacity:.62;cursor:wait}
.emony-global-gate__qr{margin:26px auto 4px;padding:16px;width:min(250px,70vw);background:#fff;border:1px solid #e3e8f1;border-radius:22px;text-align:center;box-shadow:0 10px 30px rgba(25,39,72,.07)}.emony-global-gate__qr img{display:block;width:100%;height:auto;image-rendering:pixelated}.emony-global-gate__qr small{display:block;margin-top:10px;color:#8a95a8;font-size:12px;font-weight:700}

/* El gate de instalación ocupa toda la pantalla y reproduce la composición de las referencias. */
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__logo,.emony-global-gate[data-mode="install-android"] .emony-global-gate__logo{margin-top:8px;margin-bottom:26px}
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__platform{display:none!important}
.emony-global-gate[data-mode="install-android"] .emony-global-gate__platform{margin-bottom:20px}
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__actions{margin-top:20px}
.emony-global-gate[data-mode="install-android"] .emony-global-gate__actions{margin-top:16px}

/* Escritorio: conservar el comportamiento/modal QR compacto. */
@media(min-width:760px){
 .emony-global-gate{align-items:center;background:#f5f8fd}.emony-global-gate__backdrop{background:rgba(245,248,253,.95);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
 .emony-global-gate__sheet{width:min(520px,calc(100% - 56px));height:auto;max-height:calc(100dvh - 56px);border:1px solid #e1e7f0;border-radius:30px;padding:30px 32px;box-shadow:0 20px 60px rgba(20,39,79,.14)}
 .emony-global-gate__logo{width:170px;margin:0 auto 22px}.emony-global-gate__platform{display:none!important}.emony-global-gate h1{font-size:31px}.emony-global-gate__copy{font-size:15px}
}
@media(max-width:390px){.emony-global-gate__sheet{padding-left:16px;padding-right:16px}.emony-global-gate__logo{width:180px;margin-bottom:22px}.emony-global-gate h1{font-size:31px}.emony-global-gate__copy{font-size:15px}.gate-step{padding-left:15px;padding-right:15px}.gate-ios-card .gate-step{padding-left:14px;padding-right:14px;grid-template-columns:46px 26px 1fr}.gate-step__icon{width:44px;height:44px}.emony-global-gate__steps{margin-top:22px}}


/* v2.1 · Instalación móvil más compacta: sin logo/botones redundantes. */
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__logo,
.emony-global-gate[data-mode="install-android"] .emony-global-gate__logo,
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__platform,
.emony-global-gate[data-mode="install-android"] .emony-global-gate__platform{display:none!important}
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__sheet,
.emony-global-gate[data-mode="install-android"] .emony-global-gate__sheet{padding-top:calc(26px + env(safe-area-inset-top));padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__steps,
.emony-global-gate[data-mode="install-android"] .emony-global-gate__steps{margin-top:20px}
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__copy,
.emony-global-gate[data-mode="install-android"] .emony-global-gate__copy{margin-top:10px}
.emony-global-gate[data-mode="install-ios"] .emony-global-gate__actions,
.emony-global-gate[data-mode="install-android"] .emony-global-gate__actions{display:none!important}
@media(max-height:720px){
 .emony-global-gate[data-mode="install-ios"] .emony-global-gate__sheet,.emony-global-gate[data-mode="install-android"] .emony-global-gate__sheet{padding-top:calc(16px + env(safe-area-inset-top))}
 .emony-global-gate[data-mode="install-ios"] h1,.emony-global-gate[data-mode="install-android"] h1{font-size:30px}
 .emony-global-gate[data-mode="install-ios"] .emony-global-gate__copy,.emony-global-gate[data-mode="install-android"] .emony-global-gate__copy{font-size:14px;line-height:1.35}
 .emony-global-gate[data-mode="install-ios"] .gate-step,.emony-global-gate[data-mode="install-android"] .gate-step{padding-top:12px;padding-bottom:12px}
 .emony-global-gate[data-mode="install-ios"] .emony-global-gate__status,.emony-global-gate[data-mode="install-android"] .emony-global-gate__status{margin-top:12px;padding-top:12px;padding-bottom:12px}
}
