/**
 * MANITAS LIGHT FINAL 2.0.1
 * Capa final obligatoria. Neutraliza estilos oscuros heredados de módulos antiguos.
 */
:root{
  color-scheme:light;
  --mta-bg:#f6f8fb;
  --mta-surface:#ffffff;
  --mta-surface-soft:#f8fafc;
  --mta-surface-green:#f3faee;
  --mta-text:#172033;
  --mta-muted:#64748b;
  --mta-border:#dfe7ef;
  --mta-primary:#80c342;
  --mta-primary-dark:#5f9e25;
  --mta-secondary:#005c67;
  --mta-shadow:0 12px 32px rgba(15,23,42,.08);
}
html,body.manitas-app,body.manitas-auth{
  background:#f6f8fb!important;
  background-image:none!important;
  color:#172033!important;
}
body.manitas-auth{background:linear-gradient(180deg,#f3faee 0,#f6f8fb 42%,#fff 100%)!important}
body.manitas-app :where(main,.site-main,.content-area,.entry-content,.page-content),
body.manitas-auth :where(main,.site-main,.content-area,.entry-content,.page-content){background:transparent!important;color:#172033!important}

/* Superficies generales de todos los módulos */
body.manitas-app :where(
 [class*="-shell"],[class*="-card"],[class*="-panel"],[class*="-box"],[class*="-wrap"],
 .mta-card,.mta-panel,.mp-card,.mj-card,.mc-card,.mr-card,.mv-card,.ms-card,.mch-card,
 .mch-box,.mj-shell,.mj-hero-card,.mj-trust-card,.mca-form,.mca-verify,.mco-card,
 .mp-shell,.pc-card,.ck-box,.mta-viewer-shell,.mta-ag-box
){color:#172033!important}
body.manitas-app :where(
 .mta-card,.mta-panel,.mp-card,.mj-card,.mc-card,.mr-card,.mv-card,.ms-card,.mch-card,
 .mch-box,.mj-shell,.mj-hero-card,.mj-trust-card,.mca-form,.mca-verify,.mco-card,
 .mp-shell,.pc-card,.ck-box,.mta-viewer-shell,.mta-ag-box,.mj-progress,.mj-info,.mj-action-card,
 .mp-plan,.mp-help,.mp-notice,.mta-loading,.mta-contract-accept,.mta-ag-badge
){background:#fff!important;background-image:none!important;border-color:#dfe7ef!important;box-shadow:var(--mta-shadow)!important}

/* Texto */
body.manitas-app :where(h1,h2,h3,h4,h5,h6,strong,b,.mch-title,.mj-info-value,.mp-card-title,.mca-title){color:#172033!important}
body.manitas-app :where(p,span,li,dd,dt,.mch-sub,.mch-l,.mta-note,.mp-card-sub){color:inherit}
body.manitas-app :where(.muted,.mta-muted,.mch-sub,.mch-l,.mj-info-label,.mp-card-sub){color:#64748b!important}

/* Formularios */
body.manitas-app :where(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),select,textarea),
body.manitas-auth :where(input:not([type="submit"]):not([type="button"]),select,textarea),
body.manitas-app :where(.mta-inp,.mta-sel,.mta-ta,.mch-inp,.mch-sel,.mch-compose textarea){
  background:#fff!important;color:#172033!important;border:1px solid #d7e1ea!important;box-shadow:none!important;
}
body.manitas-app :where(input,select,textarea)::placeholder,body.manitas-auth :where(input,select,textarea)::placeholder{color:#94a3b8!important;opacity:1}
body.manitas-app :where(input,select,textarea):focus,body.manitas-auth :where(input,select,textarea):focus{border-color:#005c67!important;box-shadow:0 0 0 3px rgba(0,92,103,.12)!important}

/* Navegación completamente clara */
.mx-appbar,.mx-footerbar,.mx-footer{background:rgba(255,255,255,.98)!important;background-image:none!important;border-color:#dfe7ef!important;color:#172033!important;box-shadow:0 6px 22px rgba(15,23,42,.07)!important}
.mx-appbar__inner,.mx-brand,.mx-user-pill,.mx-btn-top,.mx-footer-link{color:#172033!important}
.mx-brand-img,.mx-user-pill,.mx-btn-top,.mx-footer-link{background:#fff!important;border-color:#dfe7ef!important}
.mx-btn-top:hover,.mx-footer-link:hover{background:#f3faee!important;color:#005c67!important}
.mx-menu{background:#fff!important;background-image:none!important;border-color:#dfe7ef!important;box-shadow:0 20px 50px rgba(15,23,42,.14)!important}
.mx-menu a{color:#334155!important}.mx-menu a:hover,.mx-menu a.is-active{background:#eef8e9!important;color:#005c67!important}
.mx-menu .mx-sep{background:#e2e8f0!important}
.mx-footer-link.is-active{background:#eef8e9!important;color:#005c67!important;border:1px solid #cfe5c0!important}
.mx-overlay{background:rgba(15,23,42,.34)!important}

/* Chat claro */
.mch-wrap{color:#172033!important}
.mch-head,.mch-tabs{background:#fff!important;border-color:#e2e8f0!important}
.mch-layout,.mch-chatbox{background:#fff!important}
.mch-msgs{background:#f4f7f9!important;background-image:linear-gradient(135deg,rgba(128,195,66,.035),rgba(0,92,103,.025))!important}
.mch-msg{color:#172033!important;box-shadow:0 1px 3px rgba(15,23,42,.10)!important}
.mch-msg.me{background:#e7f5dc!important;color:#172033!important;border:1px solid #c7e7b1!important}
.mch-msg.from-client,.mch-msg.from-tech,.mch-msg.from-other{background:#fff!important;color:#172033!important;border:1px solid #dfe7ef!important}
.mch-msg.system{background:#eef2f6!important;color:#475569!important}
.mch-msg.system.is-offer{background:#f3faee!important;color:#172033!important;border:1px solid #cfe5c0!important;border-left:4px solid #80c342!important}
.mch-msg :where(.mch-meta,.mch-text),.mch-msg.system.is-offer :where(.mch-meta,.mch-text){color:inherit!important}
.mch-compose{background:#fff!important;border-color:#dfe7ef!important}
.mch-tab,.mch-pill,.mch-btn{background:#f8fafc!important;color:#334155!important;border-color:#dfe7ef!important}
.mch-tab.is-active,.mch-btn.primary{background:#80c342!important;color:#fff!important;border-color:#80c342!important}

/* Estados claros */
body.manitas-app :where(.ok,.success,.is-success,.mp-ok,.pc-ok){color:#166534!important}
body.manitas-app :where(.warn,.warning,.is-warning){color:#9a3412!important}
body.manitas-app :where(.bad,.danger,.error,.is-error,.mco-err){color:#991b1b!important}
body.manitas-app :where(.mp-ok,.pc-ok){background:#ecfdf5!important;border-color:#bbf7d0!important}
body.manitas-app :where(.mco-err){background:#fef2f2!important;border-color:#fecaca!important}

/* Botones: oscuros solo como acento institucional, nunca como panel */
body.manitas-app :where(button,input[type="submit"],input[type="button"],.mta-btn,.mp-btn,.mj-btn,.mch-btn,.ms-btn,.mca-btn){box-shadow:none}
body.manitas-app :where(.primary,.btn-primary,.is-primary,.mta-btn-primary),
body.manitas-auth :where(button[type="submit"],input[type="submit"]){background:#80c342!important;background-image:none!important;color:#fff!important;border-color:#80c342!important}
body.manitas-app :where(.primary,.btn-primary,.is-primary,.mta-btn-primary):hover,
body.manitas-auth :where(button[type="submit"],input[type="submit"]):hover{background:#5f9e25!important;color:#fff!important}

/* Modales: overlay puede oscurecer, el contenido nunca */
body.manitas-app :where([class*="modal"] [class*="content"],[class*="modal"] [class*="dialog"],[class*="viewer"]){color:#172033}
body.manitas-app :where(.mta-viewer-top){background:#005c67!important;color:#fff!important}

/* Autenticación tipo InmoPlus */
body.manitas-auth :where(.mca-auth-card,.manitas-auth-card,.auth-card,.mca-card){background:#fff!important;color:#172033!important;border:1px solid #dfe7ef!important;box-shadow:0 20px 55px rgba(15,23,42,.10)!important}
body.manitas-auth :where(h1,h2,h3,h4,label,p,span){color:inherit}

@media(max-width:760px){
 body.manitas-app,body.manitas-auth{background:#f6f8fb!important}
 .mx-menu{background:#fff!important}
 body.manitas-app :where(.mta-card,.mp-card,.mj-card,.mch-card,.ms-card){box-shadow:0 6px 18px rgba(15,23,42,.06)!important}
}
