.am-app{--am-ink:#202124;--am-blue:#5274F5;--am-coral:#FF7965;--am-yellow:#FFCD35;--am-teal:#23B8AE;--am-paper:#EDE8DD;color:var(--am-ink);font-family:'Thasadith',sans-serif;font-weight:700;line-height:1.45;font-size:16px;width:100%;max-width:480px;margin:20px auto 30px;text-align:left}.am-app *{box-sizing:border-box}.am-app button{font:inherit;cursor:pointer;border:0;transition:filter .15s,transform .15s}.am-app button:active{transform:scale(.985)}.am-app button:focus-visible,.am-app input:focus-visible{outline:3px solid var(--am-blue);outline-offset:2px}.am-shell{background:var(--am-paper);border:1px solid #e3e0da;border-radius:22px;overflow:hidden;min-height:670px;box-shadow:0 12px 32px #20212413}.am-header{display:flex;align-items:center;padding:16px 19px;background:#fff;border-bottom:1px solid #ebe9e4;gap:10px}.am-logo{width:46px;height:46px;object-fit:contain}.am-brand{display:flex;flex-direction:column;line-height:1.08}.am-brand small{font-size:10px;letter-spacing:2px}.am-brand strong{font-size:21px;letter-spacing:.5px;font-weight:850}.am-online{margin-left:auto;font-size:9px;letter-spacing:1px;white-space:nowrap;font-weight:700}.am-online i,.am-chat-head i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--am-teal);margin-right:4px}.am-main{padding:18px 18px 28px;min-height:550px}.am-intro{padding:23px 20px;background:var(--am-blue);color:white;border-radius:16px}.am-kicker{font-size:10px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase}.am-app h1,.am-app h2,.am-app p{margin:0}.am-app h1{font-size:27px;line-height:1.12;letter-spacing:-.7px;margin:12px 0}.am-app h2{font-size:19px;letter-spacing:-.4px;margin-bottom:10px}.am-app p{font-size:14px;line-height:1.55}.am-intro p{color:#fff;font-size:12px}.am-progress{background:#ffffff60;height:7px;border-radius:99px;overflow:hidden;margin:20px 0 7px}.am-progress span{display:block;height:100%;background:var(--am-yellow);border-radius:99px}.am-intro small{font-size:11px}.am-section{margin:22px 0}.am-section>p{color:#52545a}.am-central-teaser{width:100%;display:flex;align-items:center;gap:12px;padding:13px;background:#fff;border:1px solid #dcdad4;border-radius:13px;text-align:left;color:var(--am-ink)}.am-central-teaser img,.am-chat-head img{width:55px;height:55px;object-fit:cover;object-position:center 18%;background:#e5f7f3;border-radius:50%;border:2px solid var(--am-ink)}.am-central-teaser span,.am-chat-head span{flex:1;display:flex;flex-direction:column;gap:4px}.am-central-teaser strong,.am-chat-head strong{font-size:14px}.am-central-teaser small,.am-chat-head small{font-size:11px;color:#62666b}.am-central-teaser b{font-size:22px}.am-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.am-shortcuts button{display:flex;flex-direction:column;text-align:left;gap:4px;border-radius:13px;padding:16px;color:var(--am-ink)}.am-shortcuts span{font-size:27px}.am-shortcuts strong{font-size:16px}.am-shortcuts small{font-size:11px}.am-yellow{background:var(--am-yellow)}.am-turquoise{background:var(--am-teal)}.am-nav{display:flex;position:sticky;bottom:0;z-index:2;background:var(--am-ink);padding:11px 6px max(11px,env(safe-area-inset-bottom));justify-content:space-around}.am-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;background:transparent;color:#d1d1d1;font-size:10px;min-width:55px;padding:3px 5px}.am-nav button.is-active{color:var(--am-yellow);font-weight:800}.am-navicon{font-size:23px;line-height:1}.am-headline{margin-top:2px}.am-headline h1{margin:8px 0}.am-map{position:relative;height:300px;border-radius:16px;overflow:hidden;background:#e6f3ec;border:1px solid #cbdcd4}.am-map:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(32deg,transparent 0 35px,#ffffffb0 36px 43px,transparent 44px 80px),repeating-linear-gradient(122deg,transparent 0 55px,#ffffff8c 56px 63px,transparent 64px 105px);opacity:.8}.am-map-water{position:absolute;width:150%;height:42px;background:#a4d9ee;transform:rotate(-23deg);left:-20%;top:45%;border-top:4px solid #fff;border-bottom:4px solid #fff}.am-map-label{position:absolute;left:12px;bottom:12px;font-size:9px;font-weight:800;letter-spacing:1px;background:#fff;padding:7px;border-radius:6px}.am-pin{position:absolute;transform:translate(-50%,-50%);border:3px solid #fff!important;box-shadow:0 2px 10px #0003;width:45px;height:45px;border-radius:50%;background:var(--am-coral);color:var(--am-ink);font-weight:800!important;font-size:17px!important}.am-pin.done{background:var(--am-teal)}.am-mission-list{display:flex;flex-direction:column;gap:9px}.am-mission{display:flex;align-items:center;width:100%;background:#fff;border:1px solid #e1ded9!important;border-radius:12px;padding:12px;gap:12px;text-align:left;color:var(--am-ink)}.am-mission-mark{background:var(--am-yellow);width:35px;height:35px;display:grid;place-items:center;border-radius:50%;font-size:20px}.am-mission-mark.done{background:var(--am-teal)}.am-mission span:nth-child(2){flex:1;display:flex;flex-direction:column}.am-mission strong{font-size:14px}.am-mission small{font-size:11px;color:#62666b}.am-chevron{font-size:19px}.am-chat-head{display:flex;align-items:center;gap:12px;background:white;padding:14px;border-radius:13px;border:1px solid #e2dfd9}.am-chat-log{display:flex;flex-direction:column;gap:12px;margin:15px 0 22px;padding:12px;background:#eff4f2;border-radius:13px;min-height:240px}.am-bubble{background:#fff;border:1px solid #e5e8e4;padding:13px;border-radius:13px 13px 13px 2px;max-width:94%}.am-chat-tip{font-size:11px;color:#666;text-align:center;margin-top:auto;padding-top:12px}.am-file-list{display:flex;flex-direction:column;gap:10px;margin-top:18px}.am-file{display:flex;align-items:center;gap:13px;border:1px solid #dedbd6;border-radius:13px;padding:14px;background:#efeeeb}.am-file.unlocked{background:#fff}.am-file-icon{width:44px;height:44px;border-radius:9px;background:#d8d7d3;display:grid;place-items:center;font-size:23px}.am-file.unlocked .am-file-icon{background:var(--am-teal)}.am-file span{display:flex;flex-direction:column;gap:3px}.am-file strong{font-size:14px}.am-file small{font-size:11px;color:#60636a}.am-back{background:none;color:var(--am-ink);padding:6px 0;font-size:13px!important;font-weight:700!important}.am-mission-hero{background:var(--am-yellow);padding:22px;border-radius:14px;margin-top:13px}.am-mission-hero p{font-size:13px}.am-answers{display:flex;flex-direction:column;gap:10px;margin-top:18px}.am-answers button{border:1px solid #d9d7d2;background:#fff;color:var(--am-ink);padding:14px;text-align:left;border-radius:11px;font-weight:600}.am-answers button:hover{border-color:var(--am-blue);background:#f0f2ff}.am-answer-form{display:flex;flex-direction:column;gap:10px;margin-top:18px}.am-answer-form label{font-size:13px;font-weight:700}.am-answer-form input{background:#fff;border:1px solid #aaa;padding:13px;border-radius:10px;color:var(--am-ink);font:inherit;width:100%}.am-primary,.am-outline{display:block;width:100%;border-radius:11px;padding:14px 15px;margin-top:16px;font-weight:800!important;text-align:center}.am-primary{background:var(--am-ink);color:#fff}.am-outline{background:#fff;color:var(--am-ink);border:1px solid var(--am-ink)!important}.am-hint{background:transparent;color:#3152be;text-decoration:underline;margin-top:16px;font-size:12px!important;padding:0}.am-hint-text{background:#fff0c0;padding:12px;border-radius:8px;margin-top:8px!important}.am-error{color:#9d2828!important;margin-top:12px!important;font-weight:700}.am-notice,.am-success{background:#d7f2e8;padding:15px;border-radius:12px;margin:18px 0!important;color:#153f35;font-weight:700;font-size:13px!important}.am-loading{padding:40px;text-align:center}@media(max-width:500px){.am-app{margin:0 auto;max-width:100%}.am-shell{border:0;border-radius:0;min-height:100dvh;box-shadow:none}.am-main{min-height:calc(100dvh - 150px)}.am-nav{position:sticky;bottom:0}}

/* Identidad Moriarty v0.2 */
.am-app{font-size:19px;line-height:1.35}.am-app h1{font-family:'Glass Antiqua',serif;font-size:40px;letter-spacing:0;font-weight:400;line-height:1.07}.am-app h2{font-family:'Glass Antiqua',serif;font-size:30px;font-weight:400;letter-spacing:0}.am-app p{font-size:18px;line-height:1.35}.am-kicker{font-size:12px}.am-brand strong{font-family:'Thasadith',sans-serif;font-weight:700}.am-app button,.am-app input{font-family:'Thasadith',sans-serif;font-weight:700}.am-illustrated-icon{width:34px;height:34px;object-fit:cover;border-radius:11px;display:block}.am-navicon{height:38px;display:grid;place-items:center}.am-nav button{font-size:13px}.am-nav button.is-active{color:#fff}.am-nav button.is-active .am-illustrated-icon{outline:2px solid var(--am-yellow)}.am-shortcuts .am-illustrated-icon{width:52px;height:52px}.am-file-icon .am-illustrated-icon{width:43px;height:43px}.am-team{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:15px 0}.am-team-person{background:#fff;border:1px solid #e1ded9!important;border-radius:12px;padding:8px 3px!important;display:flex;flex-direction:column;align-items:center;gap:5px;color:#202124;min-width:0}.am-team-person img{width:60px;height:60px;object-fit:cover;object-position:center 16%;border-radius:50%;background:#ffcd35}.am-team-person strong{font-size:12px;line-height:1.1;text-align:center}.am-message{display:flex;gap:9px;align-items:flex-start}.am-message>img{width:45px;height:45px;flex:none;object-fit:cover;object-position:center 15%;border-radius:50%;background:#ffcd35}.am-message .am-bubble{flex:1}.am-bubble strong,.am-bubble small{display:block}.am-bubble strong{font-size:16px}.am-bubble small{font-size:12px;color:#686868}.am-bubble p{margin-top:7px}.am-person-profile{text-align:center;padding:18px;background:#fff;border-radius:14px}.am-person-profile img{height:190px;max-width:90%;object-fit:contain}.am-person-profile h1{margin:6px 0}.am-app .am-intro p{font-size:16px}.am-app .am-section>p{font-size:18px}.am-app .am-paper-corinthia{font-family:'Corinthia',cursive}.am-app .am-paper-caveat{font-family:'Caveat',cursive}.am-app .am-paper-shadows{font-family:'Shadows Into Light',cursive}@media(max-width:520px){.am-app{max-width:100%;margin:0 auto}.am-shell{border-radius:0;border:0;min-height:100dvh}.am-main{min-height:calc(100dvh - 165px)}.am-team{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Moriarty 0.3: interfaz móvil, elementos aislados y navegación ilustrada */
body.moriarty-standalone{margin:0!important;padding:0!important;background:#EDE8DD!important;min-height:100vh}
body.moriarty-standalone .am-app{margin:0 auto!important;max-width:480px;min-height:100dvh}
.am-app,.am-app *{box-sizing:border-box}
.am-v3{min-height:100dvh;position:relative}
.am-v3 .am-main{padding-bottom:115px}
.am-v3 .am-nav-v3{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:sticky;bottom:0;overflow:visible!important;z-index:20;padding:11px 4px max(8px,env(safe-area-inset-bottom));background:#202124}
.am-v3 .am-nav-v3 button{min-width:0;overflow:visible!important;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;padding:0 1px;background:transparent;color:#fff;border:0;font-family:'Thasadith',sans-serif;font-weight:700}
.am-v3 .am-nav-v3 button .am-navicon{display:flex;align-items:center;justify-content:center;overflow:visible!important;height:53px;width:100%;background:transparent!important;border:0!important}
.am-v3 .am-nav-v3 button .am-navicon .am-icon{height:61px;width:61px;max-width:none;object-fit:contain;position:relative;top:-9px;filter:none!important;clip-path:none!important}
.am-v3 .am-nav-v3 button.is-active{color:#FFCD35}
.am-v3 .am-nav-v3 button.is-active .am-navicon .am-icon{transform:translateY(-4px) scale(1.08)}
.am-v3 .am-icon{display:block;object-fit:contain;width:54px;height:54px}
.am-v3 h1,.am-v3 .am-welcome h1,.am-v3 .am-tutorial h1{font-family:'Glass Antiqua',serif!important;font-weight:400!important}
.am-v3 button,.am-v3 p,.am-v3 label,.am-v3 input,.am-v3 small,.am-v3 strong,.am-v3 legend,.am-v3 span{font-family:'Thasadith',sans-serif;font-weight:700}
.am-v3 .am-welcome{padding:18px 22px 24px;text-align:center}
.am-v3 .am-welcome-logo img{width:95px;height:95px;object-fit:contain;margin:12px auto 8px}
.am-v3 .am-welcome h1{font-size:clamp(43px,12vw,62px);line-height:1.02;margin:14px 0}
.am-v3 .am-welcome>p{font-size:18px}
.am-v3 .am-profile-form{text-align:left;display:grid;gap:15px;margin-top:22px}
.am-v3 .am-profile-form>label{display:grid;gap:8px;font-size:17px}
.am-v3 .am-profile-form input[type=text],.am-v3 .am-profile-form input:not([type]){width:100%;border:1.5px solid #202124;border-radius:12px;padding:13px;font-size:18px;background:#fff;color:#202124}
.am-v3 .am-profile-form fieldset{border:0;margin:0;padding:0}
.am-v3 .am-profile-form legend{font-size:17px;margin-bottom:9px}
.am-v3 .am-radio-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.am-v3 .am-radio-grid label{position:relative;cursor:pointer}
.am-v3 .am-radio-grid input{position:absolute;opacity:0}
.am-v3 .am-radio-grid span{display:block;text-align:center;background:#fff;border:2px solid #202124;border-radius:12px;padding:13px 4px;font-size:18px}
.am-v3 .am-radio-grid input:checked+span{background:#FFCD35;box-shadow:3px 3px 0 #202124}
.am-v3 .am-radio-grid input:focus-visible+span{outline:3px solid #5274F5}
.am-v3 .am-tutorial-btn{display:flex;align-items:center;justify-content:center;gap:10px;margin:20px auto 0;background:transparent;border:0;color:#202124;font-size:19px;text-decoration:underline}
.am-v3 .am-tutorial-btn .am-icon{width:42px;height:42px}
.am-v3 .am-demo-note{font-size:13px!important;color:#656565;margin-top:14px}
.am-v3 .am-tutorial-step{display:flex;align-items:flex-start;gap:14px;border-bottom:1px solid #ddd;padding:15px 0}
.am-v3 .am-tutorial-step .am-icon{flex-shrink:0;width:70px;height:70px}
.am-v3 .am-tutorial-step h2{font-size:20px;margin:0 0 5px}
.am-v3 .am-tutorial-step p{margin:0;font-size:17px}
.am-v3 .am-agent-pill{margin-left:auto;border:1px solid #202124;border-radius:99px;background:#FFCD35;padding:5px 9px;font-size:12px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-v3 .am-shortcuts .am-icon{width:75px;height:75px;margin:auto}
.am-v3 .am-central-list,.am-v3 .am-contact-list{display:grid;gap:11px;padding:10px 16px}
.am-v3 .am-internal-card,.am-v3 .am-contact{width:100%;display:flex;align-items:center;text-align:left;gap:12px;background:#fff;border:1px solid #deded9;border-radius:14px;padding:11px;color:#202124}
.am-v3 .am-internal-card img,.am-v3 .am-contact img{width:62px;height:62px;object-fit:cover;border-radius:50%;background:#e6f4f0;flex-shrink:0}
.am-v3 .am-internal-card span,.am-v3 .am-contact span{min-width:0;display:grid;gap:3px;flex:1}
.am-v3 .am-internal-card strong,.am-v3 .am-contact strong{font-size:18px}
.am-v3 .am-internal-card small,.am-v3 .am-contact small{font-size:14px;line-height:1.2}
.am-v3 .am-internal-card em{font-size:12px;color:#168d84;font-style:normal}
.am-v3 .am-internal-head{background:#202124;color:#fff;display:flex;gap:15px;align-items:center;padding:20px}
.am-v3 .am-internal-head img{width:92px;height:92px;object-fit:cover;border-radius:50%;background:#23B8AE}
.am-v3 .am-internal-head h1{color:#fff;font-size:35px;margin:0}
.am-v3 .am-internal-head p{margin:0}
.am-v3 .am-internal-feed{padding:18px;display:grid;gap:14px}
.am-v3 .am-report{background:#fff;border:1px solid #202124;border-left:6px solid #23B8AE;border-radius:10px;padding:16px}
.am-v3 .am-report small{letter-spacing:1px;color:#5274F5}
.am-v3 .am-report p{font-size:19px}
.am-v3 .am-report span{font-size:12px;color:#168d84}
.am-v3 .am-whatsapp{background:#F0F1E9;min-height:65dvh;display:flex;flex-direction:column}
.am-v3 .am-wa-head{display:flex;align-items:center;gap:10px;background:#fff;padding:12px}
.am-v3 .am-wa-head button{border:0;background:transparent;font-size:25px}
.am-v3 .am-wa-head img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.am-v3 .am-wa-head span{display:grid}.am-v3 .am-wa-head strong{font-size:18px}.am-v3 .am-wa-head small{font-size:13px}
.am-v3 .am-wa-thread{flex:1;padding:16px;display:flex;flex-direction:column;gap:12px}
.am-v3 .am-wa-date{align-self:center;font-size:13px;color:#6b6b6b;background:#fff9;padding:5px 13px;border-radius:99px}
.am-v3 .am-wa-bubble{align-self:flex-start;max-width:86%;padding:12px 14px;background:#fff;border-radius:4px 14px 14px 14px;box-shadow:0 1px 2px #0001;font-size:18px;line-height:1.4}
.am-v3 .am-wa-bubble small{display:block;text-align:right;font-size:12px;color:#777}
.am-v3 .am-wa-empty{font-size:17px;color:#777}
.am-v3 .am-wa-input{margin:10px;background:#fff;border-radius:99px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;color:#777;font-size:13px}
.am-v3 .am-wa-input .am-icon{width:38px;height:38px}
@media(max-width:350px){.am-v3 .am-nav-v3 button .am-navicon .am-icon{height:52px;width:52px}.am-v3 .am-nav-v3 button{font-size:11px}}

/* v0.4: identidad y controles resistentes a estilos de Elementor */
body.moriarty-standalone .am-v3 .am-primary,body.moriarty-standalone .am-v3 .am-primary:hover,body.moriarty-standalone .am-v3 .am-primary:focus,body.moriarty-standalone .am-v3 .am-primary:active{background:#FFCD35!important;color:#202124!important;border:2px solid #202124!important;box-shadow:2px 3px 0 #202124!important;text-decoration:none!important}
body.moriarty-standalone .am-v3 .am-outline,body.moriarty-standalone .am-v3 .am-outline:hover,body.moriarty-standalone .am-v3 .am-outline:focus{background:#fff!important;color:#202124!important;border:1.5px solid #202124!important}
body.moriarty-standalone .am-v3 .am-tutorial-btn,body.moriarty-standalone .am-v3 .am-tutorial-btn:hover,body.moriarty-standalone .am-v3 .am-tutorial-btn:focus{background:transparent!important;color:#202124!important;border:0!important}
body.moriarty-standalone .am-v3 .am-nav-v3 button,body.moriarty-standalone .am-v3 .am-nav-v3 button:hover,body.moriarty-standalone .am-v3 .am-nav-v3 button:focus{background:transparent!important;color:#fff!important;border:0!important}
body.moriarty-standalone .am-v3 .am-nav-v3 button.is-active{color:#FFCD35!important}
body.moriarty-standalone .am-v3 button:focus-visible{outline:3px solid #5274F5!important;outline-offset:2px}
.am-v3 .am-cover{padding:18px 18px 30px!important;text-align:left!important}
.am-v3 .am-cover-brand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.am-v3 .am-cover-brand img{width:56px;height:56px;object-fit:contain}
.am-v3 .am-cover-brand>div{display:flex;flex-direction:column;line-height:1.05}
.am-v3 .am-cover-brand small{font-size:13px;letter-spacing:3px}
.am-v3 .am-cover-brand strong{font-size:29px;letter-spacing:-1px}
.am-v3 .am-cover-head .am-kicker{font-size:10px;letter-spacing:2px;color:#5274F5}
.am-v3 .am-cover-head h1{font-size:clamp(44px,12vw,62px);line-height:.9;margin:12px 0!important}
.am-v3 .am-cover-head p{font-family:'Caveat',cursive!important;font-weight:700!important;font-size:27px!important;margin:6px 0!important}
.am-v3 .am-cover-art{margin:6px -18px 10px;height:210px;overflow:hidden;background:#EDE8DD}
.am-v3 .am-cover-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 58%;max-width:none}
.am-v3 .am-cover .am-profile-form{margin-top:12px;gap:16px}
.am-v3 .am-cover .am-choice-grid span{min-height:115px;padding:12px 10px;text-align:left;display:flex;flex-direction:column;gap:5px}
.am-v3 .am-cover .am-choice-grid b{font-size:22px}
.am-v3 .am-cover .am-choice-grid small{font-size:14px;line-height:1.25;font-weight:700;color:#424242}
.am-v3 .am-cover .am-choice-grid input:checked+span{background:#FFCD35!important;border-color:#202124!important;color:#202124!important;box-shadow:3px 3px 0 #202124!important}
.am-v3 .am-cover .am-choice-grid input:not(:checked)+span{background:#fff!important;border-color:#202124!important;color:#202124!important}
.am-v3 .am-cover .am-cover-start{margin-top:2px;font-size:22px!important}
.am-v3 .am-cover .am-tutorial-btn{width:100%;border:1.5px solid #202124!important;border-radius:12px;text-decoration:none;padding:8px;font-size:17px}
.am-v3 .am-cover .am-demo-note{text-align:center}
@media(max-width:390px){.am-v3 .am-cover-art{height:185px}.am-v3 .am-cover .am-choice-grid span{min-height:124px}.am-v3 .am-cover .am-choice-grid small{font-size:13px}}

/* v0.4.2: iconos transparentes y aislamiento de estados visuales */
html body.moriarty-standalone .am-app.am-v3,
html body.moriarty-standalone .am-app.am-v3 * { -webkit-tap-highlight-color:transparent; }
html body.moriarty-standalone .am-app.am-v3 button,
html body.moriarty-standalone .am-app.am-v3 button:hover,
html body.moriarty-standalone .am-app.am-v3 button:active,
html body.moriarty-standalone .am-app.am-v3 button:focus,
html body.moriarty-standalone .am-app.am-v3 a,
html body.moriarty-standalone .am-app.am-v3 a:hover,
html body.moriarty-standalone .am-app.am-v3 a:active,
html body.moriarty-standalone .am-app.am-v3 a:focus { color:inherit; text-decoration:none!important; accent-color:#23B8AE!important; }
html body.moriarty-standalone .am-app.am-v3 button:focus-visible,
html body.moriarty-standalone .am-app.am-v3 a:focus-visible {outline:3px solid #5274F5!important;outline-offset:2px}
html body.moriarty-standalone .am-app.am-v3 input[type=radio],
html body.moriarty-standalone .am-app.am-v3 input[type=checkbox] {accent-color:#23B8AE!important}
html body.moriarty-standalone .am-app.am-v3 .am-primary:is(:hover,:focus,:active),
html body.moriarty-standalone .am-app.am-v3 .am-primary {background:#FFCD35!important;color:#202124!important;border-color:#202124!important}
html body.moriarty-standalone .am-app.am-v3 .am-outline:is(:hover,:focus,:active),
html body.moriarty-standalone .am-app.am-v3 .am-outline {background:#fff!important;color:#202124!important;border-color:#202124!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 {padding-top:24px!important;overflow:visible!important;min-height:103px;align-items:end}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button,
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button:is(:hover,:focus,:active) {background:transparent!important;color:#fff!important;border:0!important;box-shadow:none!important;overflow:visible!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button.is-active,
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button.is-active:is(:hover,:focus,:active) {color:#FFCD35!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 .am-navicon {height:54px!important;overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 img.am-icon {display:block!important;width:59px!important;height:62px!important;object-fit:contain!important;object-position:center!important;position:relative!important;top:-7px!important;max-width:none!important;border:0!important;border-radius:0!important;clip-path:none!important;filter:none!important;background:transparent!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button.is-active img.am-icon {transform:translateY(-3px) scale(1.05)!important}
html body.moriarty-standalone .am-app.am-v3 .am-radio-grid input:checked+span,
html body.moriarty-standalone .am-app.am-v3 .am-radio-grid input:checked+span:is(:hover,:focus,:active) {background:#FFCD35!important;color:#202124!important;border-color:#202124!important}
html body.moriarty-standalone .am-app.am-v3 .am-radio-grid input:not(:checked)+span {background:#fff!important;color:#202124!important;border-color:#202124!important}
html body.moriarty-standalone .am-app.am-v3 .am-tutorial-btn:is(:hover,:focus,:active) {background:transparent!important;color:#202124!important}

/* v0.4.3: independent transparent icons and unclipped navigation */
.am-v3 .am-nav-v3{overflow:visible!important;padding-top:14px!important;min-height:83px!important;isolation:isolate}
.am-v3 .am-nav-v3 button{overflow:visible!important;position:relative!important;min-height:66px!important;justify-content:flex-end!important;gap:1px!important;padding:0 1px 3px!important}
.am-v3 .am-nav-v3 button .am-navicon{display:block!important;position:relative!important;width:100%!important;height:46px!important;overflow:visible!important;flex-shrink:0!important}
.am-v3 .am-nav-v3 button .am-navicon img.am-icon{display:block!important;position:absolute!important;left:50%!important;bottom:0!important;top:auto!important;transform:translateX(-50%)!important;width:clamp(48px,14vw,66px)!important;height:clamp(48px,14vw,66px)!important;max-width:none!important;object-fit:contain!important;clip-path:none!important;filter:none!important}
.am-v3 .am-nav-v3 button.is-active .am-navicon img.am-icon{transform:translateX(-50%) translateY(-4px) scale(1.04)!important}
.am-v3 .am-nav-v3 button>span:last-child{position:relative;z-index:2;line-height:1.1!important}
.am-v3 .am-icon{object-fit:contain!important;clip-path:none!important}
/* v0.4.4: ajuste de escala de iconos PNG con margen transparente interno */
html body.moriarty-standalone .am-app.am-v3 .am-shortcuts .am-icon {
 width:116px!important;height:116px!important;max-width:100%!important;object-fit:contain!important;
 margin:0 auto 1px!important;flex-shrink:0!important;
}
html body.moriarty-standalone .am-app.am-v3 .am-shortcuts button {align-items:stretch!important;gap:2px!important;min-height:205px!important;}
html body.moriarty-standalone .am-app.am-v3 .am-shortcuts strong,html body.moriarty-standalone .am-app.am-v3 .am-shortcuts small {text-align:left!important;}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 {min-height:106px!important;padding-top:21px!important;}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button {min-height:80px!important;}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button .am-navicon {height:62px!important;}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button .am-navicon img.am-icon {width:clamp(72px,19vw,88px)!important;height:clamp(72px,19vw,88px)!important;}
@media(max-width:370px){html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button .am-navicon img.am-icon{width:clamp(65px,19vw,77px)!important;height:clamp(65px,19vw,77px)!important}html body.moriarty-standalone .am-app.am-v3 .am-shortcuts .am-icon{width:104px!important;height:104px!important}}

/* v0.4.5: icon PNG artwork fills its canvas (transparent padding removed) */
html body.moriarty-standalone .am-app.am-v3 .am-shortcuts .am-icon{width:102px!important;height:102px!important;max-width:100%!important;object-fit:contain!important}
html body.moriarty-standalone .am-app.am-v3 .am-shortcuts button{min-height:190px!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3{min-height:100px!important;padding-top:17px!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button .am-navicon{height:60px!important}
html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button .am-navicon img.am-icon{width:clamp(55px,15vw,72px)!important;height:clamp(55px,15vw,72px)!important}
@media(max-width:370px){html body.moriarty-standalone .am-app.am-v3 .am-nav-v3 button .am-navicon img.am-icon{width:clamp(52px,15vw,63px)!important;height:clamp(52px,15vw,63px)!important}}

/* v0.4.7 - identidad fija y marco de portada por expediente */
.am-v3 .am-cover-brand{display:flex;align-items:center;gap:10px;margin:0 0 18px!important}
.am-v3 .am-cover-brand>div{display:flex;flex-direction:column;line-height:.82;gap:3px}
.am-v3 .am-cover-brand small,.am-v3 .am-cover-brand strong{font-family:'Glass Antiqua',serif!important;font-weight:400!important;letter-spacing:0!important;color:#202124}
.am-v3 .am-cover-brand small{font-size:24px!important}
.am-v3 .am-cover-brand strong{font-size:45px!important}
.am-v3 .am-adventure-frame{border:2px solid #202124;border-radius:17px;overflow:hidden;background:#fff;margin:0 0 20px}
.am-v3 .am-adventure-frame .am-cover-head{padding:17px 15px 8px}
.am-v3 .am-adventure-frame .am-cover-head h1{font-size:clamp(37px,10vw,55px)!important;margin:0 0 8px!important;line-height:1!important}
.am-v3 .am-adventure-frame .am-cover-head p{margin:0!important;font-size:25px!important}
.am-v3 .am-adventure-frame .am-cover-art{margin:0!important;height:auto!important;aspect-ratio: 1.5;overflow:hidden}
.am-v3 .am-adventure-frame .am-cover-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.am-v3 .am-music-toggle{margin-left:auto!important;align-self:center;background:#fff!important;color:#202124!important;border:1.5px solid #202124!important;border-radius:24px!important;padding:6px 9px!important;font-size:13px!important;white-space:nowrap}
.am-v3 .am-music-toggle:hover,.am-v3 .am-music-toggle:focus{background:#FFCD35!important;color:#202124!important}
@media(max-width:390px){.am-v3 .am-cover-brand strong{font-size:36px!important}.am-v3 .am-cover-brand small{font-size:20px!important}}

/* v0.5.3: same icon sizing on all adventure URLs (not only demo standalone) */
.am-app .am-v3 .am-shortcuts .am-icon{width:102px!important;height:102px!important;max-width:100%!important;object-fit:contain!important}
.am-app .am-v3 .am-shortcuts button{min-height:190px!important}
.am-app .am-v3 .am-nav-v3{min-height:100px!important;padding-top:17px!important}
.am-app .am-v3 .am-nav-v3 button .am-navicon{height:60px!important}
.am-app .am-v3 .am-nav-v3 button .am-navicon img.am-icon{width:clamp(55px,15vw,72px)!important;height:clamp(55px,15vw,72px)!important;max-width:none!important;object-fit:contain!important}
.am-app .am-v3 .am-map-real:before{display:none!important;content:none!important}
.am-app .am-v3 .am-map-real{background-repeat:no-repeat!important;background-size:contain!important;background-position:center!important;background-color:#fff!important}
@media(max-width:370px){.am-app .am-v3 .am-nav-v3 button .am-navicon img.am-icon{width:clamp(52px,15vw,63px)!important;height:clamp(52px,15vw,63px)!important}}

/* 0.5.4: real map is an image, not the demo illustration */
.am-app .am-map-image{position:relative;width:100%;overflow:hidden;border:1px solid #cbdcd4;border-radius:16px;background:white;line-height:0}
.am-app .am-map-image>img{display:block;width:100%;height:auto;object-fit:contain}
.am-app .am-map-image .am-pin{line-height:1.2;z-index:1}
.am-app .am-map-empty{display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;background:#fff;height:160px}

/* v0.5.5 - portada a sangre y formulario enmarcado */
.am-v3 .am-cover-brand{gap:7px!important;margin-bottom:12px!important}
.am-v3 .am-cover-brand img{width:39px!important;height:39px!important}
.am-v3 .am-cover-brand small{font-size:17px!important}
.am-v3 .am-cover-brand strong{font-size:33px!important}
.am-v3 .am-music-toggle{font-size:12px!important;padding:5px 8px!important}
.am-v3 .am-adventure-cover{margin:0 -18px 18px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
.am-v3 .am-adventure-cover .am-cover-head{padding:6px 18px 12px!important}
.am-v3 .am-adventure-cover .am-cover-art{margin:0!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;overflow:visible!important;background:transparent!important}
.am-v3 .am-adventure-cover .am-cover-art img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;object-fit:contain!important;border-radius:0!important}
.am-v3 .am-cover .am-profile-form.am-profile-framed{border:2px solid #202124!important;border-radius:16px!important;background:#fff!important;padding:18px 14px 16px!important;margin-top:16px!important;gap:16px!important}
@media(max-width:390px){.am-v3 .am-cover-brand strong{font-size:29px!important}.am-v3 .am-cover-brand small{font-size:16px!important}.am-v3 .am-cover-brand img{width:35px!important;height:35px!important}}

/* v0.5.6: crema global, formulario blanco */
.am-app{--am-paper:#EDE8DD!important}
.am-app .am-shell,.am-app .am-main,.am-app .am-header{background:#EDE8DD!important}
.am-app .am-profile-form.am-profile-framed{background:#FFFFFF!important}
body.moriarty-standalone{background:#EDE8DD!important}

/* v0.5.7: brand, compact case panel, clean tutorial icon */
.am-app .am-v3 .am-header{padding:11px 15px!important;gap:7px!important}
.am-app .am-v3 .am-header .am-logo{width:34px!important;height:34px!important}
.am-app .am-v3 .am-brand{line-height:1!important;min-width:0}
.am-app .am-v3 .am-brand small,.am-app .am-v3 .am-brand strong{font-family:'Glass Antiqua',serif!important;font-weight:400!important;letter-spacing:0!important}
.am-app .am-v3 .am-brand small{font-size:12px!important;letter-spacing:1px!important}
.am-app .am-v3 .am-brand strong{font-size:24px!important;line-height:1!important}
.am-app .am-v3 .am-intro{padding:13px 14px!important;border-radius:12px!important}
.am-app .am-v3 .am-intro h1{font-size:clamp(19px,5.5vw,26px)!important;line-height:1.05!important;margin:0 0 7px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-app .am-v3 .am-intro p{font-size:12px!important;line-height:1.2!important}
.am-app .am-v3 .am-intro .am-progress{margin:9px 0 4px!important;height:5px!important}
.am-app .am-v3 .am-intro small{font-size:10px!important}
.am-app .am-v3 .am-tutorial-btn .am-icon{width:43px!important;height:43px!important;object-fit:contain!important;background:transparent!important}
.am-app .am-v3 .am-tutorial-link{display:flex;align-items:center;justify-content:center;gap:8px}
.am-app .am-v3 .am-tutorial-link .am-icon{width:34px;height:34px;object-fit:contain;background:transparent}

/* v0.5.8: informe introductorio por aventura */
.am-v3 .am-briefing{padding:20px 18px 30px;display:flex;flex-direction:column;gap:18px}
.am-v3 .am-briefing h1{font-family:'Glass Antiqua',serif;font-size:clamp(44px,12vw,65px);line-height:1;margin:0}
.am-v3 .am-briefing-image{display:block;width:100%;height:auto;max-height:390px;object-fit:contain;border-radius:10px}
.am-v3 .am-briefing-copy{white-space:normal;font-size:20px;line-height:1.5}
.am-v3 .am-briefing-link{display:flex;align-items:center;justify-content:space-between;gap:12px}
.am-v3 .am-briefing-link h2{margin:0}
.am-v3 button.am-briefing-open{display:inline-flex;align-items:center;justify-content:center;flex:0 0 60px;width:60px;height:60px;background:transparent!important;border:0!important;padding:0;box-shadow:none!important;cursor:pointer}
.am-v3 .am-briefing-open .am-icon{width:58px;height:58px;object-fit:contain}

.am-app .am-map-image .am-pin{width:42px;height:42px;display:grid;place-items:center;padding:5px;line-height:1;background:#FFCD35}
.am-app .am-map-image .am-pin img{display:block;width:100%;height:100%;object-fit:contain}
.am-app .am-location-list-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#FFCD35;border-radius:50%}
.am-app .am-location-list-icon img{width:30px;height:30px;object-fit:contain}
