/*
 * MANITAS 8.0 — PRODUCTION UI SYSTEM
 * RC34 visual unified — 2026-08-23
 * Single visual authority. Legacy declarations are preserved without forced
 * cascade; the unified layer below owns tokens, shells, controls and responsive UI.
 */

/*
 * ===========================================================
 * MANITAS – Unified Theme CSS
 * Archivo: assets/css/manitas-theme.css
 * Versión: 2.0.0
 * Fecha: 2026-07-07
 * Objetivo: diseño uniforme PC/móvil y botones con texto correcto.
 * ===========================================================
 */

:root{
  --mt-green:#80C342;
  --mt-green-hover:#72B636;
  --mt-green-dark:#5F9E25;
  --mt-teal:#005C67;
  --mt-teal-2:#087985;
  --mt-cyan:#00A1B0;
  --mt-ink:#0F172A;
  --mt-text:#172033;
  --mt-muted:#64748B;
  --mt-soft:#F8FAFC;
  --mt-bg:#F6F8FB;
  --mt-card:#FFFFFF;
  --mt-line:#E2E8F0;
  --mt-danger:#DC2626;
  --mt-danger-soft:#FEF2F2;
  --mt-success:#16A34A;
  --mt-success-soft:#ECFDF5;
  --mt-radius:16px;
  --mt-radius-lg:22px;
  --mt-shadow-sm:0 8px 22px rgba(15,23,42,.06);
  --mt-shadow:0 18px 45px rgba(15,23,42,.10);
  --mt-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,Arial,sans-serif;
}

body.manitas-auth,
body.manitas-app,
body.manitas-public,
.manitas-auth,
.manitas-app,
.mh-public,
.pp-wrap{font-family:var(--mt-font);}

body.manitas-auth,
html.manitas-auth{
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(128,195,66,.18) 0%, rgba(128,195,66,0) 34%),
    radial-gradient(circle at 92% 20%, rgba(0,92,103,.12) 0%, rgba(0,92,103,0) 32%),
    var(--mt-bg);
  color:var(--mt-text);
}

body.manitas-auth #page,
body.manitas-auth .site,
body.manitas-auth #content,
body.manitas-auth .site-content,
body.manitas-auth main,
body.manitas-auth .entry-content,
body.manitas-auth .page-content,
body.manitas-auth .elementor,
body.manitas-auth .elementor-section,
body.manitas-auth .elementor-container,
body.manitas-auth .elementor-widget-wrap{
  background:transparent;
  background-image:none;
}

body.manitas-auth .ma-wrap{
  width:100%;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 14px;
  box-sizing:border-box;
}

body.manitas-auth .ma-card{
  width:100%;
  max-width:460px;
  background:var(--mt-card);
  color:var(--mt-text);
  border:1px solid var(--mt-line);
  border-radius:var(--mt-radius-lg);
  box-shadow:var(--mt-shadow);
  padding:28px;
  box-sizing:border-box;
}

body.manitas-auth .ma-card *,
.mh-public *,
.pp-wrap *{box-sizing:border-box;}

body.manitas-auth .ma-logo{text-align:center;}
body.manitas-auth .ma-logo img,
body.manitas-auth .ma-logo-img,
body.manitas-auth .ma-logo-fallback{
  display:block;
  width:164px;
  max-width:72%;
  height:auto;
  margin:0 auto 18px;
  border-radius:18px;
  border:1px solid rgba(128,195,66,.55);
  background:#FFFFFF;
  padding:10px;
  box-shadow:0 10px 28px rgba(15,23,42,.16);
  filter:none;
}
body.manitas-auth .ma-logo-fallback{display:inline-block;width:auto;max-width:none;color:var(--mt-ink);font-weight:900;}

body.manitas-auth .ma-title,
body.manitas-auth h1,
body.manitas-auth h2,
body.manitas-auth h3{color:var(--mt-teal);letter-spacing:-.03em;font-weight:950;}
body.manitas-auth .ma-sub,
body.manitas-auth .ma-subtitle,
body.manitas-auth small,
body.manitas-auth .ma-help{color:var(--mt-muted);}
body.manitas-auth .ma-label,
body.manitas-auth label{color:var(--mt-text);font-weight:800;}

body.manitas-auth .ma-input,
body.manitas-auth input[type="text"],
body.manitas-auth input[type="email"],
body.manitas-auth input[type="password"],
body.manitas-auth input[type="tel"],
body.manitas-auth input[type="number"],
body.manitas-auth select,
body.manitas-auth textarea{
  width:100%;
  min-height:46px;
  background:#FFFFFF;
  color:var(--mt-text);
  border:1px solid var(--mt-line);
  border-radius:14px;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
  outline:none;
  font-size:15px;
}
body.manitas-auth .ma-input::placeholder,
body.manitas-auth input::placeholder{color:#64748b;opacity:1;}
body.manitas-auth .ma-input:focus,
body.manitas-auth input:focus,
body.manitas-auth select:focus,
body.manitas-auth textarea:focus{border-color:var(--mt-green);box-shadow:0 0 0 4px rgba(128,195,66,.18);}

body.manitas-auth .ma-pass-wrap,
body.manitas-auth .ma-account-type label,
body.manitas-auth label[style*="background:#ffffff"],
body.manitas-auth label[style*="background: #ffffff"]{background:#FFFFFF;color:var(--mt-text);border:1px solid var(--mt-line);box-shadow:var(--mt-shadow-sm);}
body.manitas-auth .ma-account-type label:hover,
body.manitas-auth label[style*="cursor:pointer"]:hover{border-color:rgba(128,195,66,.65);background:#EEF9E8;}

body.manitas-auth .ma-btn,
body.manitas-auth .ma-pass-toggle,
body.manitas-auth .ma-pass-action,
body.manitas-auth .ma-inmoplus-btn,
body.manitas-auth button,
body.manitas-auth input[type="submit"]{
  border-radius:14px;
  border:1px solid transparent;
  background:linear-gradient(135deg,var(--mt-green),var(--mt-teal-2));
  color:#FFFFFF;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,92,103,.18);
}
body.manitas-auth .ma-btn *,
body.manitas-auth .ma-pass-toggle *,
body.manitas-auth .ma-pass-action *,
body.manitas-auth .ma-inmoplus-btn *,
body.manitas-auth button *,
body.manitas-auth input[type="submit"] *{color:#FFFFFF;fill:#FFFFFF;stroke:#FFFFFF;}
body.manitas-auth .ma-btn:hover,
body.manitas-auth .ma-pass-toggle:hover,
body.manitas-auth .ma-pass-action:hover,
body.manitas-auth .ma-inmoplus-btn:hover,
body.manitas-auth button:hover,
body.manitas-auth input[type="submit"]:hover{transform:translateY(-1px);filter:brightness(.98);}

body.manitas-auth .ma-links a:not(.ma-btn):not(.ma-inmoplus-btn),
body.manitas-auth a:not(.ma-btn):not(.ma-inmoplus-btn):not(.ma-pass-action){color:var(--mt-teal);font-weight:800;text-decoration:none;}
body.manitas-auth .ma-links a:not(.ma-btn):not(.ma-inmoplus-btn):hover,
body.manitas-auth a:not(.ma-btn):not(.ma-inmoplus-btn):not(.ma-pass-action):hover{color:var(--mt-green);}

body.manitas-auth .ma-msg,
body.manitas-auth [role="alert"]{border-radius:14px;border:1px solid var(--mt-line);background:#FFFFFF;color:var(--mt-text);}
body.manitas-auth .ma-msg.is-ok,
body.manitas-auth .ma-msg-ok,
body.manitas-auth .notice-success{background:var(--mt-success-soft);border-color:#BBF7D0;color:#166534;}
body.manitas-auth .ma-msg.is-error,
body.manitas-auth .ma-msg-error,
body.manitas-auth .notice-error,
body.manitas-auth .error{background:var(--mt-danger-soft);border-color:#FECACA;color:#991B1B;}
body.manitas-auth .ma-meter{background:#E2E8F0;}

/* HOME / PUBLIC */
.mh-public{--mh-green:var(--mt-green);--mh-teal:var(--mt-teal);--mh-cyan:var(--mt-cyan);--mh-ink:var(--mt-ink);--mh-muted:var(--mt-muted);--mh-soft:var(--mt-soft);--mh-line:var(--mt-line);--mh-card:var(--mt-card);max-width:1180px;margin:18px auto 96px;padding:0 16px;font-family:var(--mt-font);color:var(--mh-ink);}
.mh-shell{background:linear-gradient(180deg,#FFFFFF,#F8FAFC);border:1px solid var(--mh-line);border-radius:30px;box-shadow:0 22px 55px rgba(15,23,42,.08);overflow:hidden;}
.mh-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid var(--mh-line);background:rgba(255,255,255,.92);}
.mh-brand{display:flex;align-items:center;gap:12px;min-width:0;}
.mh-logo{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,var(--mh-green),var(--mh-cyan));display:flex;align-items:center;justify-content:center;color:#FFFFFF;font-weight:950;font-size:22px;overflow:hidden;flex:0 0 auto;}
.mh-logo *{color:#FFFFFF;fill:#FFFFFF;}
.mh-logo img{width:100%;height:100%;object-fit:contain;display:block;}
.mh-brand-title{font-size:19px;font-weight:950;letter-spacing:-.03em;color:var(--mh-ink);}
.mh-brand-sub{font-size:13px;color:var(--mh-muted);font-weight:650;margin-top:2px;}
.mh-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}

.mh-public .mh-btn,
.mh-public a.mh-btn,
.mh-public button.mh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border-radius:16px;text-decoration:none;border:1px solid #CBD5E1;background:#FFFFFF;color:var(--mh-ink);font-weight:900;font-size:14px;transition:.15s ease;white-space:nowrap;cursor:pointer;}
.mh-public .mh-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(15,23,42,.10);}
.mh-public .mh-btn.primary,
.mh-public a.mh-btn.primary,
.mh-public button.mh-btn.primary,
.mh-public .mh-hero-actions .mh-btn.primary,
.mh-public .mh-bottom .mh-btn.primary,
.mh-public .mh-actions .mh-btn.primary{border:0;background:linear-gradient(135deg,var(--mh-green),var(--mh-cyan));color:#FFFFFF;}
.mh-public .mh-btn.primary *,
.mh-public .mh-btn.primary span,
.mh-public .mh-btn.primary strong,
.mh-public .mh-btn.primary small,
.mh-public .mh-btn.primary i,
.mh-public .mh-btn.primary svg,
.mh-public .mh-btn.primary svg *,
.mh-public .mh-bottom .mh-btn.primary *,
.mh-public .mh-hero-actions .mh-btn.primary *,
.mh-public .mh-actions .mh-btn.primary *{color:#FFFFFF;fill:#FFFFFF;stroke:#FFFFFF;}

.mh-hero{display:grid;grid-template-columns:1.12fr .88fr;gap:18px;padding:26px 18px 18px;background:radial-gradient(circle at top left,rgba(128,195,66,.22),transparent 38%),radial-gradient(circle at bottom right,rgba(0,161,176,.16),transparent 42%),#FFFFFF;}
.mh-kicker{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border-radius:999px;background:#ECFDF5;border:1px solid #BBF7D0;color:#166534;font-weight:950;font-size:13px;}
.mh-title{margin:14px 0 0;font-size:clamp(34px,5vw,58px);line-height:.96;font-weight:1000;letter-spacing:-.06em;color:var(--mh-ink);}
.mh-title span{color:var(--mh-teal);}
.mh-sub{margin:16px 0 0;max-width:670px;color:#475569;font-size:17px;line-height:1.55;font-weight:650;}
.mh-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px;}
.mh-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px;}
.mh-metric,.mh-side,.mh-section,.mh-tile{background:#FFFFFF;border:1px solid var(--mh-line);box-shadow:0 16px 34px rgba(15,23,42,.06);}
.mh-metric{border-radius:20px;padding:15px;}
.mh-metric-num{font-size:20px;font-weight:1000;color:var(--mh-teal);}
.mh-metric-text{margin-top:4px;color:var(--mh-muted);font-size:13px;line-height:1.35;font-weight:650;}
.mh-side{border-radius:26px;padding:18px;}
.mh-side-title{font-size:18px;font-weight:950;margin-bottom:12px;}
.mh-side-list,.mh-box ul{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.mh-side-list li,.mh-box li{display:flex;gap:10px;color:#475569;font-size:14px;line-height:1.45;font-weight:650;}
.mh-dot{width:10px;height:10px;border-radius:999px;background:linear-gradient(135deg,var(--mh-green),var(--mh-cyan));margin-top:5px;flex:0 0 auto;}
.mh-tiles{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 18px 18px;}
.mh-tile{display:block;text-decoration:none;color:var(--mh-ink);border-radius:26px;overflow:hidden;transition:.15s ease;}
.mh-tile:hover{transform:translateY(-2px);box-shadow:0 22px 46px rgba(15,23,42,.12);}
.mh-tile-img{height:190px;background:#E2E8F0;overflow:hidden;}
.mh-tile-img img{width:100%;height:100%;object-fit:cover;display:block;}
.mh-tile-body{padding:17px;}
.mh-tile-title{font-size:18px;font-weight:950;}
.mh-tile-sub{margin-top:6px;color:var(--mh-muted);font-size:14px;line-height:1.45;font-weight:650;}
.mh-tile-go{margin-top:12px;display:inline-flex;align-items:center;gap:8px;color:var(--mh-teal);font-weight:950;}
.mh-section{margin:0 18px 18px;padding:18px;border-radius:26px;}
.mh-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.mh-section-title{font-size:21px;font-weight:950;letter-spacing:-.03em;}
.mh-section-sub{color:var(--mh-muted);font-size:14px;font-weight:650;}
.mh-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.mh-step,.mh-box,.mh-faq-item,.mh-chip{background:var(--mh-soft);border:1px solid var(--mh-line);}
.mh-step{border-radius:22px;padding:16px;}
.mh-step-num{font-size:12px;font-weight:950;color:var(--mh-teal);text-transform:uppercase;letter-spacing:.05em;}
.mh-step-title{margin-top:7px;font-size:16px;font-weight:950;color:var(--mh-ink);}
.mh-step-text{margin-top:6px;font-size:14px;line-height:1.45;color:var(--mh-muted);font-weight:650;}
.mh-cats{display:flex;gap:10px;overflow:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;}
.mh-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:999px;text-decoration:none;color:var(--mh-ink);font-size:14px;font-weight:900;}
.mh-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.mh-box{border-radius:22px;padding:16px;}
.mh-box-title{font-size:17px;font-weight:950;margin-bottom:10px;}
.mh-check{width:21px;height:21px;border-radius:8px;background:#DCFCE7;border:1px solid #BBF7D0;color:#166534;display:inline-flex;align-items:center;justify-content:center;font-weight:950;flex:0 0 auto;}
.mh-faq{display:grid;gap:10px;}
.mh-faq-item{border-radius:20px;padding:14px;}
.mh-faq-item summary{cursor:pointer;font-weight:950;list-style:none;color:var(--mh-ink);}
.mh-faq-item summary::-webkit-details-marker{display:none;}
.mh-faq-item p{margin:10px 0 0;color:var(--mh-muted);font-size:14px;line-height:1.5;font-weight:650;}
.mh-footer{padding:6px 18px 22px;text-align:center;color:var(--mh-muted);font-size:13px;font-weight:650;}
.mh-footer a{color:var(--mh-teal);font-weight:950;text-decoration:none;}
.mh-sp{opacity:.5;margin:0 8px;}
.mh-bottom{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:12px 14px;background:linear-gradient(to top,rgba(248,250,252,.98),rgba(248,250,252,.86),rgba(248,250,252,0));backdrop-filter:blur(8px);}
.mh-bottom-inner{max-width:860px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:10px;}

/* PREVISION / PLANES */
.pp-wrap{max-width:980px;margin:16px auto;padding:0 16px;color:#172033;font-family:var(--mt-font);}
.pp-shell{border-radius:22px;border:1px solid #e2e8f0;background:#ffffff;box-shadow:0 18px 45px rgba(15,23,42,.10);overflow:hidden;}
.pp-head{padding:16px;border-bottom:1px solid rgba(148,163,184,.18);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.pp-title{margin:0;font-size:18px;font-weight:950;}
.pp-sub{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.35;}
.pp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border-radius:12px;text-decoration:none;border:1px solid rgba(148,163,184,.20);background:#ffffff;color:#172033;font-weight:900;font-size:13px;}
.pp-btn.primary{border:0;background:linear-gradient(135deg,#80C342,#00A1B0);color:#FFFFFF;}
.pp-btn.primary *, .pp-btn.primary span, .pp-btn.primary strong, .pp-btn.primary small, .pp-btn.primary i, .pp-btn.primary svg, .pp-btn.primary svg *{color:#FFFFFF;fill:#FFFFFF;stroke:#FFFFFF;}
.pp-body{padding:16px;}
.pp-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;}
.pp-card{padding:14px;border-radius:18px;border:1px solid rgba(148,163,184,.16);background:#ffffff;}
.pp-price{display:flex;align-items:baseline;gap:10px;margin-top:10px;}
.pp-price b{font-size:26px;font-weight:950;}
.pp-price span{font-size:12px;opacity:.85;}
.pp-kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}
.pp-k{padding:10px;border-radius:16px;border:1px solid rgba(148,163,184,.14);background:#ffffff;}
.pp-k b{display:block;font-size:12px;margin-bottom:6px;}
.pp-bar{height:10px;border-radius:999px;background:rgba(148,163,184,.18);overflow:hidden;}
.pp-fill{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#80C342,#00A1B0);}
.pp-mini{font-size:12px;opacity:.82;margin-top:6px;}
.pp-list{margin:10px 0 0;padding:0;list-style:none;}
.pp-list li{padding:8px 0;border-bottom:1px dashed #e2e8f0;font-size:13px;color:#475569;}
.pp-list li:last-child{border-bottom:0;}
.pp-note{margin-top:12px;padding:12px 14px;border-radius:16px;border:1px solid #e2e8f0;background:#f8fafc;font-size:13px;line-height:1.55;color:#475569;}
.pp-warn{margin-top:12px;padding:12px 14px;border-radius:16px;border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.10);color:#FFEDD5;font-size:13px;line-height:1.45;}
.pp-ok{margin-top:12px;padding:12px 14px;border-radius:16px;border:1px solid rgba(34,197,94,.35);background:rgba(34,197,94,.10);color:#166534;font-size:13px;line-height:1.45;}

/* FIX FINAL BOTONES */
a.mh-btn.primary, button.mh-btn.primary, .mh-btn.primary, a.pp-btn.primary, button.pp-btn.primary, .pp-btn.primary{color:#FFFFFF;}
a.mh-btn.primary:visited, a.mh-btn.primary:hover, a.mh-btn.primary:focus, a.mh-btn.primary:active, a.pp-btn.primary:visited, a.pp-btn.primary:hover, a.pp-btn.primary:focus, a.pp-btn.primary:active{color:#FFFFFF;}

@media (max-width:900px){
  .mh-hero{grid-template-columns:1fr;}
  .mh-metrics,.mh-steps,.mh-two,.pp-grid{grid-template-columns:1fr;}
  .mh-tiles{grid-template-columns:1fr;}
}

@media (max-width:560px){
  body.manitas-auth .ma-card{padding:22px 16px;border-radius:20px;}
  body.manitas-auth .ma-grid{grid-template-columns:1fr;}
  .mh-public{padding:0 12px;margin-top:12px;margin-bottom:112px;}
  .mh-shell{border-radius:24px;}
  .mh-topbar{align-items:stretch;flex-direction:column;}
  .mh-actions{display:grid;grid-template-columns:1fr 1fr;}
  .mh-actions .mh-btn{width:100%;padding:12px 10px;}
  .mh-hero{padding:20px 14px 14px;}
  .mh-title{font-size:clamp(32px,12vw,44px);line-height:1;}
  .mh-sub{font-size:15px;}
  .mh-tiles{padding:0 14px 14px;}
  .mh-section{margin:0 14px 14px;padding:15px;}
  .mh-bottom-inner{grid-template-columns:1fr;}
  .mh-brand-sub{font-size:12px;}
  .mh-tile-img{height:165px;}
  .pp-wrap{padding:0 12px;}
  .pp-head{flex-direction:column;}
  .pp-kpi{grid-template-columns:1fr;}
  .mh-public .mh-btn.primary,
  .mh-public .mh-btn.primary *,
  .mh-public .mh-bottom .mh-btn.primary,
  .mh-public .mh-bottom .mh-btn.primary *,
  .mh-public .mh-actions .mh-btn.primary,
  .mh-public .mh-actions .mh-btn.primary *,
  .mh-public .mh-hero-actions .mh-btn.primary,
  .mh-public .mh-hero-actions .mh-btn.primary *,
  .pp-btn.primary,
  .pp-btn.primary *{color:#FFFFFF;fill:#FFFFFF;stroke:#FFFFFF;}
}

@media (max-width:380px){
  .mh-actions{grid-template-columns:1fr;}
  .mh-title{font-size:32px;}
  .mh-btn,.pp-btn{font-size:13px;}
}

/* ==========================================================
 * MANITAS 8.0 RC6 — AUTORIDAD VISUAL ÚNICA
 * Estructura, navegación y componentes comunes. Los archivos
 * de cada módulo se limitan a su distribución funcional.
 * ========================================================== */
:root{
  --mta-primary:#80c342;
  --mta-primary-hover:#6eae34;
  --mta-primary-soft:#f0f8eb;
  --mta-secondary:#005c67;
  --mta-secondary-hover:#004b54;
  --mta-accent:#00a1b0;
  --mta-bg:#f4f7f8;
  --mta-surface:#ffffff;
  --mta-surface-soft:#f8fafb;
  --mta-text:#172033;
  --mta-muted:#64748b;
  --mta-border:#dfe7ea;
  --mta-success:#18794e;
  --mta-warning:#a15c00;
  --mta-danger:#b42318;
  --mta-info:#086788;
  --mta-radius-xs:8px;
  --mta-radius-sm:12px;
  --mta-radius:18px;
  --mta-radius-lg:26px;
  --mta-shadow-xs:0 1px 2px rgba(15,32,39,.05);
  --mta-shadow-sm:0 8px 24px rgba(15,43,50,.07);
  --mta-shadow:0 18px 44px rgba(15,43,50,.10);
  --mta-content:1200px;
  --mta-topbar:72px;
  --mta-bottom:72px;
  --mta-font:Inter,"Plus Jakarta Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mt-green:var(--mta-primary);
  --mt-green-hover:var(--mta-primary-hover);
  --mt-teal:var(--mta-secondary);
  --mt-cyan:var(--mta-accent);
  --mt-text:var(--mta-text);
  --mt-muted:var(--mta-muted);
  --mt-bg:var(--mta-bg);
  --mt-card:var(--mta-surface);
  --mt-line:var(--mta-border);
  --mx-primary:var(--mta-primary);
  --mx-secondary:var(--mta-secondary);
  --mx-bg:var(--mta-bg);
  --mx-surface:var(--mta-surface);
  --mx-text:var(--mta-text);
  --mx-muted:var(--mta-muted);
  --mx-line:var(--mta-border);
}

html{scroll-padding-top:calc(var(--mta-topbar) + 18px);max-width:100%;overflow-x:hidden}
body.manitas-app,body.manitas-auth{font-family:var(--mta-font);color:var(--mta-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.manitas-app{margin:0;padding-top:var(--mta-topbar);min-height:100vh;background:var(--mta-bg);overflow-x:hidden}
body.manitas-app *,body.manitas-auth *,body.manitas-app *::before,body.manitas-auth *::before,body.manitas-app *::after,body.manitas-auth *::after{box-sizing:border-box}
body.manitas-app.mx-menu-open{overflow:hidden;touch-action:none}
body.manitas-app :where(h1,h2,h3,h4,h5,h6){margin-top:0;color:var(--mta-text);font-family:var(--mta-font);font-weight:850;letter-spacing:-.025em;line-height:1.12}
body.manitas-app :where(p,li,small){line-height:1.55}
body.manitas-app a{color:var(--mta-secondary)}
body.manitas-app img{max-width:100%;height:auto}
body.manitas-app #masthead,body.manitas-app header.site-header,body.manitas-app .site-header:not(.mx-appbar),body.manitas-app #colophon,body.manitas-app footer.site-footer{display:none}
body.manitas-app :where(.site,.site-content,#content,.content-area,.site-main,.entry-content,.page-content){width:100%;max-width:none;margin:0;padding-inline:0;background:transparent}
body.manitas-app .entry-title{display:none}

/* Contenedores y ritmo */
.mta-container,.mta-wrap,.mp-wrap,.mj-wrap,.mc-wrap,.mr-wrap,.mv-wrap,.pp-wrap,.md3-dashboard,.mtd-wrap{
  width:min(calc(100% - 40px),var(--mta-content));
  margin-inline:auto;
}
body.manitas-app :where(.mta-container,.mta-wrap,.mp-wrap,.mj-wrap,.mc-wrap,.mr-wrap,.mv-wrap,.pp-wrap,.md3-dashboard,.mtd-wrap){padding-block:24px 40px}

/* Superficies */
body.manitas-app :where(.mta-card,.mta-panel,.mta-shell,.mp-card,.mj-card,.mc-card,.mr-card,.mv-card,.md3-panel,.mta-admin-card){
  background:var(--mta-surface);
  border:1px solid var(--mta-border);
  border-radius:var(--mta-radius);
  box-shadow:var(--mta-shadow-xs);
}
body.manitas-app :where(.mta-card,.mta-panel,.mp-card,.mj-card,.mc-card,.mr-card,.mv-card,.md3-panel,.mta-admin-card){padding:20px}
body.manitas-app :where(.mta-card,.mp-card,.mj-card,.mc-card,.mr-card,.mv-card,.md3-stat,.md3-quick){transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
@media (hover:hover){body.manitas-app :where(a.mta-card,a.mp-card,a.mj-card,a.mc-card,a.mr-card,a.mv-card,.md3-quick):hover{transform:translateY(-2px);border-color:#c7d7dc;box-shadow:var(--mta-shadow-sm)}}

/* Botones: jerarquía consistente */
.mta-btn,
body.manitas-app :where(.mp-btn,.mj-btn,.mc-btn,.mr-btn,.mv-btn,.mh-btn,.mx-btn,.pp-btn),
body.manitas-app :where(button,input[type="submit"],input[type="button"]){
  appearance:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;
  border:1px solid var(--mta-border);border-radius:var(--mta-radius-sm);background:#fff;color:var(--mta-secondary);
  font-family:var(--mta-font);font-size:14px;font-weight:800;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;
  box-shadow:var(--mta-shadow-xs);transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease
}
body.manitas-app :where(.mta-btn,.mp-btn,.mj-btn,.mc-btn,.mr-btn,.mv-btn,.mh-btn,.mx-btn,.pp-btn,button,input[type="submit"],input[type="button"]):hover{border-color:#bcd0d5;box-shadow:0 7px 18px rgba(15,43,50,.09);transform:translateY(-1px)}
.mta-btn.primary,.mta-btn--primary,body.manitas-app :where(.mta-btn.primary,.mta-btn--primary,.btn-primary,.is-primary,button.primary,input.primary[type="submit"]){background:var(--mta-secondary);border-color:var(--mta-secondary);color:#fff}
.mta-btn.primary:hover,.mta-btn--primary:hover{background:var(--mta-secondary-hover);border-color:var(--mta-secondary-hover)}
.mta-btn.secondary,.mta-btn--secondary{background:var(--mta-primary-soft);border-color:#cee4bf;color:#416f1d}
.mta-btn.ghost,.mta-btn--ghost{background:#fff;border-color:var(--mta-border);color:var(--mta-secondary)}
.mta-btn.danger,.mta-btn--danger{background:#fff5f4;border-color:#f5c6c2;color:var(--mta-danger)}
body.manitas-app :where(button,input[type="submit"],input[type="button"]):disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}

/* Formularios */
body.manitas-app :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),select,textarea),
body.manitas-auth :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),select,textarea),.mta-input{
  width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--mta-border);border-radius:var(--mta-radius-sm);
  background:#fff;color:var(--mta-text);font-family:var(--mta-font);font-size:15px;line-height:1.35;outline:0;box-shadow:var(--mta-shadow-xs);
  transition:border-color .16s ease,box-shadow .16s ease
}
body.manitas-app textarea,body.manitas-auth textarea{min-height:116px;resize:vertical}
body.manitas-app :where(input,select,textarea):focus,body.manitas-auth :where(input,select,textarea):focus{border-color:var(--mta-secondary);box-shadow:0 0 0 3px rgba(0,92,103,.13)}
body.manitas-app :where(input,textarea)::placeholder,body.manitas-auth :where(input,textarea)::placeholder{color:#64748b;opacity:1}
body.manitas-app label,body.manitas-auth label{color:#334155;font-weight:750}
body.manitas-app :where(input[type="checkbox"],input[type="radio"]),body.manitas-auth :where(input[type="checkbox"],input[type="radio"]){accent-color:var(--mta-secondary);width:18px;height:18px}

/* Estados y mensajes */
.mta-badge,.mta-admin-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--mta-border);border-radius:999px;background:var(--mta-surface-soft);color:#334155;font-size:12px;font-weight:800;line-height:1.2}
.mta-badge--ok,.mta-badge--success,.mta-admin-badge.success{background:#edf9f2;border-color:#bce3cc;color:#17633f}
.mta-badge--warn,.mta-badge--pend,.mta-admin-badge.warning{background:#fff8ea;border-color:#efd59e;color:#895000}
.mta-badge--bad,.mta-admin-badge.danger{background:#fff3f2;border-color:#f1c0bc;color:#9b2118}
.mta-empty,.mta-admin-empty{padding:28px;text-align:center;border:1px dashed #bdcdd2;border-radius:var(--mta-radius);background:#fff;color:var(--mta-muted)}
body.manitas-app :where(.notice,.mta-notice,.mta-admin-notice,.ma-msg){padding:13px 15px;border:1px solid var(--mta-border);border-radius:var(--mta-radius-sm);background:#fff;color:var(--mta-text)}

/* Tablas */
body.manitas-app .mta-admin-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--mta-border);border-radius:var(--mta-radius);background:#fff;-webkit-overflow-scrolling:touch}
body.manitas-app table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;color:var(--mta-text)}
body.manitas-app th{background:#f1f5f6;color:#465b64;font-size:12px;text-transform:uppercase;letter-spacing:.055em;font-weight:850;white-space:nowrap}
body.manitas-app th,body.manitas-app td{padding:12px 14px;border-bottom:1px solid var(--mta-border);text-align:left;vertical-align:middle}
body.manitas-app tr:last-child td{border-bottom:0}
body.manitas-app tbody tr:hover{background:#fafcfc}

/* Navegación global */
body.manitas-app>.mx-appbar{position:fixed;inset:0 0 auto;width:100%;height:var(--mta-topbar);z-index:2147483000;margin:0;padding:0;background:rgba(255,255,255,.96);border-bottom:1px solid var(--mta-border);box-shadow:0 5px 22px rgba(15,43,50,.07);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.manitas-app>.mx-appbar .mx-appbar__inner{width:100%;height:100%;max-width:1440px;margin:auto;padding:9px 18px;display:flex;align-items:center;gap:12px}
.mx-brand{display:flex;align-items:center;min-width:0}.mx-brand-img{display:block;width:auto;height:48px;max-width:190px;object-fit:contain}.mx-brand-fallback{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--mta-primary);color:#fff;font-weight:900}
.mx-user-pill{display:flex;align-items:center;gap:9px;min-width:0;margin-left:auto;padding:8px 12px;border:1px solid var(--mta-border);border-radius:999px;background:#fff;color:var(--mta-text);font-size:13px;font-weight:750}.mx-dot{width:9px;height:9px;border-radius:50%;background:var(--mta-primary);box-shadow:0 0 0 4px rgba(128,195,66,.16)}.mx-user-name{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mx-top-actions{display:flex;align-items:center;gap:8px}
.mx-btn-top{appearance:none;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;border:1px solid var(--mta-border);border-radius:12px;background:#fff;color:var(--mta-secondary);text-decoration:none;font-size:13px;font-weight:800;box-shadow:none;cursor:pointer}.mx-btn-top:hover{background:var(--mta-primary-soft);border-color:#cce1bf}.mx-btn-top--logout{color:var(--mta-danger)}.mx-ico{display:grid;place-items:center;width:24px;height:24px}.ma-bell{position:relative}.ma-bell #ma-unread-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:var(--mta-danger);color:#fff;font-size:12px;font-weight:900;line-height:16px;text-align:center}
.mx-overlay{position:fixed;inset:0;z-index:2147483005;background:rgba(5,35,39,.42);backdrop-filter:blur(2px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}body.mx-menu-open .mx-overlay{opacity:1;visibility:visible;pointer-events:auto}
body.manitas-app>#mx-menu{position:fixed;z-index:2147483010;margin:0;padding:0 0 18px;background:linear-gradient(180deg,var(--mta-secondary),#00454d);color:#fff;overflow:auto;overscroll-behavior:contain;box-shadow:20px 0 50px rgba(0,43,49,.22)}
.mx-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 13px;border-bottom:1px solid rgba(255,255,255,.12)}.mx-drawer-brand{display:flex;align-items:center;gap:10px}.mx-drawer-brand img{display:block;width:auto;height:44px;max-width:150px;object-fit:contain}.mx-drawer-brand div{display:none}.mx-menu-close{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.10);color:#fff;cursor:pointer}.mx-menu-muted{padding:16px 18px 7px;color:rgba(255,255,255,.63);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.11em}
.mx-menu>a,.mx-menu .mx-menu-logout{display:flex;align-items:center;gap:11px;min-height:50px;margin:3px 10px;padding:9px 11px;border:1px solid transparent;border-radius:13px;color:rgba(255,255,255,.9);text-decoration:none;font-size:14px;font-weight:750;line-height:1.25;transition:background .16s ease,border-color .16s ease,transform .16s ease}.mx-menu>a:hover,.mx-menu>a.is-active{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.1);color:#fff}.mx-menu>a.is-active{box-shadow:inset 3px 0 0 var(--mta-primary)}.mx-menu-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:rgba(255,255,255,.10);color:#fff}.mx-menu>a.is-active .mx-menu-icon{background:var(--mta-primary)}.mx-sep{height:1px;margin:12px 18px;background:rgba(255,255,255,.12)}.mx-menu .mx-menu-logout{background:rgba(255,255,255,.06)}
.mx-svg-icon{display:block;width:24px;height:24px;min-width:24px;max-width:24px;overflow:visible;visibility:visible;opacity:1;fill:none;stroke:currentColor;color:inherit;flex:0 0 24px}.mx-svg-icon *{fill:none;stroke:currentColor;stroke-width:2;vector-effect:non-scaling-stroke}
body.manitas-app>.mx-footerbar{position:fixed;inset:auto 0 0;z-index:2147482990;display:none;width:100%;height:calc(var(--mta-bottom) + env(safe-area-inset-bottom));margin:0;background:rgba(255,255,255,.97);border-top:1px solid var(--mta-border);box-shadow:0 -8px 26px rgba(15,43,50,.09);backdrop-filter:blur(16px)}
.mx-footerbar__inner{height:100%;max-width:620px;margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:5px 8px calc(5px + env(safe-area-inset-bottom))}.mx-footer-link{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:3px 2px;border-radius:12px;color:var(--mta-muted);text-decoration:none;font-size:12px;font-weight:800}.mx-footer-link .mx-icon{display:grid;place-items:center;width:36px;height:34px;border-radius:11px}.mx-footer-link.is-active{color:var(--mta-secondary)}.mx-footer-link.is-active .mx-icon{background:var(--mta-primary-soft);color:#4d8426}.mx-footer-link.is-active::after{content:"";position:absolute;bottom:1px;width:22px;height:3px;border-radius:999px;background:var(--mta-primary)}

/* Acceso: más sobrio y comercial */
body.manitas-auth .ma-card{max-width:480px;border-color:var(--mta-border);border-radius:var(--mta-radius-lg);box-shadow:0 24px 64px rgba(15,43,50,.13)}
body.manitas-auth .ma-logo img,body.manitas-auth .ma-logo-img{width:156px;border:0;border-radius:0;padding:0;box-shadow:none}
body.manitas-auth :where(.ma-title,h1,h2,h3){color:var(--mta-text);font-weight:850}
body.manitas-auth :where(.ma-btn,.ma-inmoplus-btn,button,input[type="submit"]){background:var(--mta-secondary);border-color:var(--mta-secondary);border-radius:var(--mta-radius-sm);color:#fff;box-shadow:0 9px 22px rgba(0,92,103,.18)}
body.manitas-auth :where(.ma-btn,.ma-inmoplus-btn,button,input[type="submit"]):hover{background:var(--mta-secondary-hover)}
body.manitas-auth .js-manitas-register{text-align:left}
body.manitas-auth .ma-field{margin-bottom:14px}
body.manitas-auth .ma-label{display:block;margin-bottom:7px;font-size:14px;font-weight:800}
body.manitas-auth .ma-help{display:block;margin-top:7px;color:var(--mta-muted);font-size:13px;line-height:1.4}
body.manitas-auth .ma-grid,body.manitas-auth .ma-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.manitas-auth .ma-account-type{display:grid;grid-template-columns:1fr;gap:10px}
body.manitas-auth :where(.ma-choice,.ma-account-option){display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--mta-border);border-radius:var(--mta-radius-sm);background:#fff;color:var(--mta-text);cursor:pointer;box-shadow:none;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
body.manitas-auth .ma-account-option{align-items:flex-start;padding:14px}
body.manitas-auth :where(.ma-choice,.ma-account-option):hover{border-color:#b8d39f;background:#fbfdf9}
body.manitas-auth :where(.ma-choice,.ma-account-option):has(input:checked){border-color:var(--mta-primary);background:var(--mta-primary-soft);box-shadow:0 0 0 3px rgba(128,195,66,.14)}
body.manitas-auth .ma-choice span,body.manitas-auth .ma-account-title{display:block;color:var(--mta-text);font-size:15px;font-weight:850}
body.manitas-auth .ma-account-desc{display:block;margin-top:3px;color:var(--mta-muted);font-size:13px;font-weight:600;line-height:1.4}
body.manitas-auth .ma-pass-wrap{display:grid;grid-template-columns:minmax(0,1fr) 46px 46px;align-items:center;gap:8px;background:transparent;border:0;box-shadow:none}
body.manitas-auth :where(.ma-icon-btn,.ma-pass-toggle,.ma-pass-action){width:46px;height:46px;min-height:46px;padding:0;background:var(--mta-primary-soft);border:1px solid #cce1bf;color:#416f1d;box-shadow:none}
body.manitas-auth .ma-primary-btn{width:100%;margin-top:12px;padding:14px 16px;font-size:16px}
body.manitas-auth .ma-secondary-btn{width:100%}
body.manitas-auth .ma-meter{height:7px;margin-top:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}
body.manitas-auth #ma-meter-bar{height:100%;border-radius:999px;transition:width .2s ease,background .2s ease}
body.manitas-auth #ma-meter-text{display:block;margin-top:6px;color:var(--mta-muted);font-size:12px}
body.manitas-auth :where(.ma-check,.ma-checkline){display:flex;align-items:flex-start;gap:9px;margin:12px 0;color:#334155;font-size:14px;line-height:1.45}
body.manitas-auth .ma-links{display:grid;gap:8px;margin-top:15px;text-align:center}
body.manitas-auth .ma-inmoplus-btn{width:100%;margin-top:13px;background:var(--mta-primary);border-color:var(--mta-primary)}
body.manitas-auth .ma-footer{margin-top:18px;color:var(--mta-muted);font-size:13px;text-align:center;line-height:1.5}
body.manitas-auth .ma-msg{margin:12px 0;padding:12px 13px;border-radius:var(--mta-radius-sm);font-size:14px;line-height:1.4}
body.manitas-auth .ma-msg.is-visible{display:block}
body.manitas-auth :where(.ma-msg.is-ok,.ma-msg-ok){background:#edf9f2;border-color:#bce3cc;color:#17633f}
body.manitas-auth :where(.ma-msg.is-error,.ma-msg-error){background:#fff3f2;border-color:#f1c0bc;color:#9b2118}

/* Foco y movimiento */
body.manitas-app :focus-visible,body.manitas-auth :focus-visible{outline:3px solid rgba(0,161,176,.32);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto;animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms}}

@media (max-width:1023px){
  body.manitas-app{padding-bottom:calc(var(--mta-bottom) + env(safe-area-inset-bottom))}
  body.manitas-app>.mx-footerbar{display:block}
  .mx-user-pill{display:none}.mx-btn-top--logout .mx-btn-label{display:none}
  body.manitas-app>#mx-menu{inset:0 auto 0 0;width:min(88vw,350px);height:100dvh;max-height:100dvh;border-radius:0 24px 24px 0;transform:translate3d(-104%,0,0);visibility:visible;opacity:1;pointer-events:none;transition:transform .24s cubic-bezier(.2,.8,.2,1)}
  body.manitas-app.mx-menu-open>#mx-menu,body.manitas-app>#mx-menu.is-open{transform:translate3d(0,0,0);pointer-events:auto}
}
@media (max-width:760px){
  .mta-container,.mta-wrap,.mp-wrap,.mj-wrap,.mc-wrap,.mr-wrap,.mv-wrap,.pp-wrap,.md3-dashboard,.mtd-wrap{width:min(calc(100% - 24px),var(--mta-content))}
  body.manitas-app :where(.mta-container,.mta-wrap,.mp-wrap,.mj-wrap,.mc-wrap,.mr-wrap,.mv-wrap,.pp-wrap,.md3-dashboard,.mtd-wrap){padding-block:16px 28px}
  body.manitas-app :where(.mta-card,.mta-panel,.mp-card,.mj-card,.mc-card,.mr-card,.mv-card,.md3-panel,.mta-admin-card){padding:16px;border-radius:15px}
  body.manitas-app table{min-width:640px}
}
@media (max-width:560px){
  :root{--mta-topbar:64px;--mta-bottom:68px}
  body.manitas-app>.mx-appbar .mx-appbar__inner{padding:6px 9px;gap:6px}
  .mx-brand-img{height:40px;max-width:128px}.mx-btn-top{min-height:42px;padding:7px 9px}.mx-btn-top--menu .mx-btn-label,.mx-btn-top--logout{display:none}.mx-top-actions{margin-left:auto;gap:5px}
  body.manitas-app>#mx-menu{width:min(90vw,330px)}
  body.manitas-auth .ma-card{padding:22px 16px;border-radius:20px}
  body.manitas-app :where(.mta-btn,.mp-btn,.mj-btn,.mc-btn,.mr-btn,.mv-btn,.mh-btn,.mx-btn,.pp-btn,button,input[type="submit"],input[type="button"]){min-height:46px}
}
@media (min-width:1024px){
  body.manitas-app{padding-bottom:0}
  body.manitas-app>#mx-menu{inset:calc(var(--mta-topbar) + 10px) 22px auto auto;width:min(360px,calc(100vw - 44px));height:auto;max-height:calc(100dvh - var(--mta-topbar) - 30px);border:1px solid rgba(255,255,255,.14);border-radius:20px;transform:translate3d(0,-8px,0) scale(.98);transform-origin:top right;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
  body.manitas-app.mx-menu-open>#mx-menu,body.manitas-app>#mx-menu.is-open{transform:none;opacity:1;visibility:visible;pointer-events:auto}
  .mx-overlay{background:rgba(5,35,39,.16);backdrop-filter:none}
}
@media print{body.manitas-app{padding:0;background:#fff}body.manitas-app>.mx-appbar,body.manitas-app>#mx-menu,body.manitas-app>.mx-overlay,body.manitas-app>.mx-footerbar{display:none}}

/* ==========================================================
 * MANITAS 8.0 RC8 — BACK OFFICE MODERNO INMOPLUS
 * Capa final de presentación. No altera datos, estados ni flujos.
 * ========================================================== */
:root{
  --mta-sidebar:244px;
  --mta-app-bg:#f6f8f9;
  --mta-app-card:#ffffff;
  --mta-app-ink:#0f172a;
  --mta-app-muted:#64748b;
  --mta-app-line:#e2e8f0;
  --mta-app-teal:#005c67;
  --mta-app-teal-soft:#e8f2f3;
  --mta-app-green:#80c342;
  --mta-app-green-dark:#5f9e24;
  --mta-app-shadow:0 18px 50px rgba(15,23,42,.08);
  --mta-topbar:68px;
}
body.manitas-app{background:var(--mta-app-bg);color:var(--mta-app-ink)}
.mta-skip-link{position:fixed;top:8px;left:50%;z-index:2147483647;transform:translate(-50%,-150%);padding:10px 14px;border-radius:8px;background:var(--mta-app-teal);color:#fff;font-weight:800;text-decoration:none;transition:transform .15s ease}
.mta-skip-link:focus{transform:translate(-50%,0)}
.mta-main-anchor{display:block;width:1px;height:1px;overflow:hidden;outline:0}

/* Cabecera compacta */
body.manitas-app>.mx-appbar{height:var(--mta-topbar);background:rgba(255,255,255,.97);border-color:var(--mta-app-line);box-shadow:0 4px 18px rgba(15,23,42,.05)}
body.manitas-app>.mx-appbar .mx-appbar__inner{max-width:none;padding:8px 18px}
.mx-brand-copy{display:grid;min-width:0}.mx-brand-copy strong{color:var(--mta-app-teal);font-size:15px;font-weight:900;letter-spacing:.02em}.mx-brand-copy span{color:var(--mta-app-muted);font-size:12px;font-weight:650}
.mx-user-pill{border-color:var(--mta-app-line);border-radius:10px;box-shadow:none}.mx-dot{background:var(--mta-app-green)}
.mx-btn-top{border-color:var(--mta-app-line);border-radius:10px;color:var(--mta-app-teal)}.mx-btn-top:hover{background:var(--mta-app-teal-soft);border-color:#bfd6d9}
.ma-bell{position:relative}.ma-bell #ma-unread-badge{display:none;position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;align-items:center;justify-content:center;border:2px solid #fff;border-radius:999px;background:var(--mta-app-green);color:#17310c;font-size:12px;font-weight:900;line-height:16px}

/* Menú: sobrio, sin bloques tipo videojuego */
body.manitas-app>#mx-menu{background:var(--mta-app-teal);box-shadow:none}
.mx-drawer-head{padding:17px 15px}.mx-drawer-brand div{display:grid;min-width:0}.mx-drawer-brand div strong{color:#fff;font-size:16px;font-weight:900}.mx-drawer-brand div span{color:rgba(255,255,255,.68);font-size:12px}.mx-drawer-brand img{height:38px;max-width:118px}
.mx-menu-muted{padding:16px 17px 8px;color:rgba(255,255,255,.58);font-size:12px;letter-spacing:.09em}
.mx-menu>a,.mx-menu .mx-menu-logout{min-height:44px;margin:2px 9px;padding:7px 10px;border-radius:8px;font-size:13px;font-weight:720}
.mx-menu>a:hover{background:rgba(255,255,255,.08)}.mx-menu>a.is-active{background:#fff;border-color:#fff;color:var(--mta-app-teal);box-shadow:none}
.mx-menu-icon{width:30px;height:30px;flex-basis:30px;border-radius:7px;background:transparent}.mx-menu>a.is-active .mx-menu-icon{background:var(--mta-app-teal-soft);color:var(--mta-app-teal)}
.mx-menu .mx-menu-logout{background:transparent;color:rgba(255,255,255,.78)}

/* Barra inferior móvil */
.mx-footerbar__inner{max-width:640px;grid-template-columns:repeat(var(--mx-footer-count,4),minmax(0,1fr))}
.mx-footer-link{border-radius:8px;font-size:12px;font-weight:750}.mx-footer-link .mx-icon{width:34px;height:32px;border-radius:8px}.mx-footer-link.is-active{color:var(--mta-app-teal)}.mx-footer-link.is-active .mx-icon{background:var(--mta-app-teal-soft);color:var(--mta-app-teal)}.mx-footer-link.is-active::after{height:2px;background:var(--mta-app-green)}

/* Inicio operativo */
.md3-dashboard{width:min(calc(100% - 40px),1180px);margin:0 auto;padding:28px 0 44px;font-family:var(--mta-font);color:var(--mta-app-ink);outline:0}
.md3-dashboard *{box-sizing:border-box}.md3-eyebrow{display:block;margin-bottom:6px;color:var(--mta-app-teal);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.md3-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;min-height:0;padding:0 0 6px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--mta-app-ink);overflow:visible}
.md3-hero::before,.md3-hero::after{display:none}.md3-hero__copy{max-width:760px}.md3-hero .md3-eyebrow{color:var(--mta-app-teal)}.md3-hero h1{margin:0;color:var(--mta-app-ink);font-size:clamp(27px,3.5vw,38px);font-weight:850;line-height:1.08;letter-spacing:-.035em}.md3-hero p{max-width:720px;margin:8px 0 0;color:var(--mta-app-muted);font-size:14px;font-weight:550;line-height:1.5}
.md3-hero__brand{min-width:180px;padding:10px 12px;border:1px solid var(--mta-app-line);border-radius:10px;background:var(--mta-app-card);display:grid;box-shadow:none}.md3-hero__brand strong{color:var(--mta-app-teal);font-size:15px}.md3-hero__brand small{margin-top:2px;color:var(--mta-app-muted);font-size:12px}.md3-hero__pulse{width:7px;height:7px;margin-bottom:7px;border-radius:50%;background:var(--mta-app-green);box-shadow:0 0 0 4px rgba(128,195,66,.15)}

.md3-next{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:18px;padding:18px;border:0;border-radius:14px;background:var(--mta-app-teal);color:#fff;box-shadow:0 14px 32px rgba(0,92,103,.16)}
.md3-next__mark{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;background:rgba(255,255,255,.12);color:#fff}.md3-next__mark svg{width:21px;height:21px}.md3-next .md3-eyebrow{margin-bottom:3px;color:rgba(255,255,255,.72)}.md3-next h2{margin:0;color:#fff;font-size:18px}.md3-next p{margin:4px 0 0;color:rgba(255,255,255,.78);font-size:12px}.md3-next__button,.md3-next--empty>a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:9px;background:var(--mta-app-green);color:#17310c;text-decoration:none;font-size:12px;font-weight:850;white-space:nowrap}
.md3-next--success,.md3-next--warning,.md3-next--danger,.md3-next--info{border:0;background:var(--mta-app-teal)}.md3-next--success .md3-next__mark,.md3-next--warning .md3-next__mark,.md3-next--danger .md3-next__mark{background:rgba(255,255,255,.12)}.md3-next--success .md3-next__button,.md3-next--warning .md3-next__button,.md3-next--danger .md3-next__button{background:var(--mta-app-green);color:#17310c}.md3-next--empty{grid-template-columns:1fr auto}

.md3-pending{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.md3-pending a{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--mta-app-line);border-radius:10px;background:var(--mta-app-card);color:var(--mta-app-ink);text-decoration:none;box-shadow:none}.md3-pending span{display:grid;place-items:center;min-width:32px;height:32px;border-radius:8px;background:var(--mta-app-teal-soft);color:var(--mta-app-teal);font-weight:900}.md3-pending small{color:var(--mta-app-muted);font-size:12px;font-weight:750;line-height:1.3}

.md3-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.md3-stat{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:10px;min-height:108px;padding:14px;border:1px solid var(--mta-app-line);border-radius:11px;background:var(--mta-app-card);box-shadow:none}.md3-stat__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:var(--mta-app-teal-soft);color:var(--mta-app-teal)}.md3-stat__icon svg{width:20px;height:20px}.md3-stat__body{display:grid;min-width:0}.md3-stat__label{color:var(--mta-app-muted);font-size:12px;font-weight:750}.md3-stat__value{margin-top:3px;color:var(--mta-app-ink);font-size:19px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}.md3-stat__note{grid-column:1/-1;margin-top:5px;color:var(--mta-app-muted);font-size:12px}

.md3-panel{margin-top:12px;padding:18px;border:1px solid var(--mta-app-line);border-radius:12px;background:var(--mta-app-card);box-shadow:none}.md3-panel__head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px}.md3-panel h2{margin:0;color:var(--mta-app-ink);font-size:18px}.md3-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.md3-quick{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:68px;padding:10px;border:1px solid var(--mta-app-line);border-radius:9px;background:var(--mta-app-card);color:var(--mta-app-ink);text-decoration:none;box-shadow:none;transition:border-color .15s ease,background .15s ease}.md3-quick:hover{transform:none;border-color:#bdd5d8;background:#fbfdfd;color:var(--mta-app-ink)}.md3-quick__icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--mta-app-teal-soft);color:var(--mta-app-teal)}.md3-quick__icon svg{width:18px;height:18px}.md3-quick__copy{display:grid;min-width:0}.md3-quick__copy strong{font-size:12px}.md3-quick__copy small{margin-top:2px;color:var(--mta-app-muted);font-size:12px;line-height:1.3}.md3-quick__arrow{color:var(--mta-app-green-dark);font-size:18px}
.md3-feed .md3-panel__head>a{color:var(--mta-app-teal);font-size:12px;font-weight:850;text-decoration:none}.md3-feed__list{display:grid}.md3-feed__item{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 4px;border:0;border-bottom:1px solid var(--mta-app-line);border-radius:0;background:transparent;color:var(--mta-app-ink);text-decoration:none}.md3-feed__item:last-child{border-bottom:0}.md3-feed__item.is-unread{background:transparent}.md3-feed__dot{width:7px;height:7px;border-radius:50%;background:#cbd5e1}.md3-feed__item.is-unread .md3-feed__dot{background:var(--mta-app-green);box-shadow:0 0 0 3px rgba(128,195,66,.14)}.md3-feed__item span:nth-child(2){display:grid;min-width:0}.md3-feed__item strong{font-size:12px}.md3-feed__item small{margin-top:2px;color:var(--mta-app-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.md3-feed__item>b{color:var(--mta-app-teal);font-size:12px}.md3-feed-empty{padding:18px 0;color:var(--mta-app-muted);font-size:12px}

@media (min-width:1024px){
  body.manitas-app{padding-top:var(--mta-topbar);padding-left:var(--mta-sidebar)}
  body.manitas-app>.mx-appbar{left:var(--mta-sidebar);width:calc(100% - var(--mta-sidebar))}
  body.manitas-app>#mx-menu{inset:0 auto 0 0;width:var(--mta-sidebar);height:100dvh;max-height:100dvh;padding-bottom:16px;border:0;border-radius:0;transform:none;opacity:1;visibility:visible;pointer-events:auto;transition:none}
  body.manitas-app>#mx-menu .mx-drawer-head{min-height:var(--mta-topbar)}
  body.manitas-app>#mx-menu .mx-menu-close{display:none}
  body.manitas-app>.mx-overlay{display:none}
  .mx-btn-top--menu{display:none}
  .mx-appbar .mx-brand-img,.mx-appbar .mx-brand-fallback{display:none}
  .mx-appbar .mx-brand-copy strong{font-size:14px}.mx-appbar .mx-brand-copy span{font-size:12px}
}

@media (max-width:1023px){
  body.manitas-app{padding-left:0;padding-bottom:calc(var(--mta-bottom) + env(safe-area-inset-bottom))}
  .mx-brand-copy{display:none}
  body.manitas-app>#mx-menu{background:var(--mta-app-teal);border-radius:0 16px 16px 0}
  .md3-dashboard{width:min(calc(100% - 24px),760px);padding:18px 0 30px}
  .md3-stats,.md3-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:640px){
  :root{--mta-topbar:62px;--mta-bottom:68px}
  body.manitas-app>.mx-appbar .mx-appbar__inner{padding:6px 10px}
  .mx-brand-img{height:38px;max-width:120px}
  .md3-hero{align-items:flex-start}.md3-hero__brand{display:none}.md3-hero h1{font-size:26px}.md3-hero p{font-size:12px}
  .md3-next{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:14px;border-radius:12px}.md3-next__mark{width:36px;height:36px}.md3-next__button{grid-column:1/-1;width:100%}.md3-next--empty{grid-template-columns:1fr}.md3-next--empty>a{width:100%}
  .md3-pending{grid-template-columns:1fr 1fr;gap:8px}.md3-pending a{padding:9px}
  .md3-stats{gap:8px}.md3-stat{grid-template-columns:32px minmax(0,1fr);min-height:100px;padding:11px}.md3-stat__icon{width:32px;height:32px}.md3-stat__value{font-size:16px}
  .md3-panel{padding:14px;border-radius:11px}.md3-panel h2{font-size:16px}.md3-quick-grid{grid-template-columns:1fr}.md3-quick{min-height:62px}
  .md3-feed__item{grid-template-columns:7px minmax(0,1fr)}.md3-feed__item>b{grid-column:2}.md3-feed__item small{white-space:normal}
}

@media print{
  body.manitas-app{padding-left:0}.md3-dashboard{width:100%;padding:0}.md3-next,.md3-stat,.md3-panel{box-shadow:none}
}

/* ==========================================================
 * MANITAS 8.0 RC9 — AISLAMIENTO DE PANTALLAS PÚBLICAS
 * Portada, autenticación y salida quedan fuera del shell app.
 * ========================================================== */
body.manitas-auth,
body.manitas-exit{
  margin:0;
  padding:0;
  min-height:100dvh;
  overflow-x:hidden;
}
body.manitas-auth>.mx-appbar,
body.manitas-auth>#mx-menu,
body.manitas-auth>.mx-overlay,
body.manitas-auth>.mx-footerbar,
body.manitas-exit>.mx-appbar,
body.manitas-exit>#mx-menu,
body.manitas-exit>.mx-overlay,
body.manitas-exit>.mx-footerbar,
body.manitas-auth #masthead,
body.manitas-auth header.site-header,
body.manitas-auth #colophon,
body.manitas-auth footer.site-footer,
body.manitas-exit #masthead,
body.manitas-exit header.site-header,
body.manitas-exit #colophon,
body.manitas-exit footer.site-footer{
  display:none;
}
body.manitas-auth :where(#page,.site,#content,.site-content,.content-area,.site-main,main,.entry-content,.page-content),
body.manitas-exit :where(#page,.site,#content,.site-content,.content-area,.site-main,main,.entry-content,.page-content){
  width:100%;
  max-width:none;
  min-height:100%;
  margin:0;
  padding:0;
  background:transparent;
}
body.manitas-auth .entry-title,
body.manitas-exit .entry-title{display:none}

/* Acceso, registro y recuperación: tarjeta limpia e independiente. */
body.manitas-auth .ma-wrap{max-width:none;margin:0}
body.manitas-auth .ma-card{
  position:relative;
  z-index:1;
  width:min(100%,480px);
  margin:0 auto;
  padding:28px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 22px 60px rgba(15,23,42,.12);
}
body.manitas-auth .ma-logo img,
body.manitas-auth .ma-logo-img{
  width:156px;
  max-width:64%;
  margin:0 auto 18px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.manitas-auth .ma-title{margin-bottom:7px;color:#0f172a;font-size:clamp(25px,5vw,32px);line-height:1.12;text-align:center}
body.manitas-auth .ma-sub,
body.manitas-auth .ma-subtitle{text-align:center}

/* Salida: pantalla propia; no depende de estilos del back office. */
body.manitas-exit{
  background:
    radial-gradient(circle at 12% 10%,rgba(128,195,66,.18),transparent 34%),
    radial-gradient(circle at 90% 18%,rgba(0,92,103,.15),transparent 32%),
    #f6f8f9;
  color:#0f172a;
  font-family:var(--mta-font);
}
body.manitas-exit .mx-logout-hero{
  width:100%;
  min-height:100dvh;
  margin:0;
  padding:24px;
  display:grid;
  place-items:center;
  background-image:linear-gradient(rgba(246,248,249,.76),rgba(246,248,249,.9)),var(--mx-bg,none);
  background-position:center;
  background-size:cover;
}
body.manitas-exit .mx-layer{width:min(100%,560px)}
body.manitas-exit .mx-card{
  width:100%;
  padding:34px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:rgba(255,255,255,.97);
  color:#0f172a;
  box-shadow:0 24px 68px rgba(15,23,42,.14);
  text-align:left;
}
body.manitas-exit .mx-kicker{margin-bottom:10px;color:#005c67;font-size:12px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
body.manitas-exit .mx-title{margin:0;color:#0f172a;font-size:clamp(29px,6vw,42px);font-weight:850;line-height:1.08;letter-spacing:-.035em}
body.manitas-exit .mx-sub{margin:12px 0 0;color:#64748b;font-size:15px;line-height:1.6}
body.manitas-exit .mx-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
body.manitas-exit .mx-btn{
  min-height:46px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dbe4e7;
  border-radius:10px;
  background:#fff;
  color:#005c67;
  font-size:14px;
  font-weight:850;
  text-decoration:none;
  box-shadow:none;
}
body.manitas-exit .mx-btn.primary{border-color:#005c67;background:#005c67;color:#fff}
body.manitas-exit .mx-btn:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(15,23,42,.09)}
body.manitas-exit .mx-mini{margin:20px 0 0;color:#64748b;font-size:12px;line-height:1.5}

@media (max-width:560px){
  body.manitas-auth .ma-wrap{padding:14px}
  body.manitas-auth .ma-card{padding:22px 17px;border-radius:17px}
  body.manitas-exit .mx-logout-hero{padding:14px}
  body.manitas-exit .mx-card{padding:24px 19px;border-radius:17px}
  body.manitas-exit .mx-actions{display:grid}
  body.manitas-exit .mx-btn{width:100%}
}

/* ==========================================================
 * MANITAS 8.0 RC10 — AUTENTICACIÓN ÚNICA + reCAPTCHA
 * Una sola composición para acceder, registrarse y recuperar.
 * ========================================================== */
body.manitas-auth{
  --ma-auth-teal:#005c67;
  --ma-auth-teal-hover:#087985;
  --ma-auth-green:#80c342;
  --ma-auth-green-dark:#5f9e25;
  --ma-auth-ink:#0f172a;
  --ma-auth-text:#334155;
  --ma-auth-muted:#64748b;
  --ma-auth-line:#dce5e9;
  --ma-auth-soft:#f4f8f8;
  background:
    radial-gradient(circle at 12% 8%,rgba(128,195,66,.18),transparent 30%),
    radial-gradient(circle at 88% 14%,rgba(0,92,103,.14),transparent 30%),
    linear-gradient(180deg,#f8fbfa 0%,#eef5f6 100%);
  color:var(--ma-auth-ink);
}
body.manitas-auth .ma-wrap{
  width:100%;
  min-height:100dvh;
  margin:0;
  padding:32px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.manitas-auth .ma-card{
  position:relative;
  width:min(100%,540px);
  max-width:540px;
  margin:auto;
  padding:34px;
  overflow:visible;
  border:1px solid rgba(220,229,233,.92);
  border-radius:22px;
  background:rgba(255,255,255,.97);
  color:var(--ma-auth-ink);
  box-shadow:0 24px 70px rgba(15,43,50,.13);
}
body.manitas-auth .ma-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  border-radius:22px 22px 0 0;
  background:linear-gradient(90deg,var(--ma-auth-green),var(--ma-auth-teal));
}
body.manitas-auth .ma-card *,body.manitas-auth .ma-card *::before,body.manitas-auth .ma-card *::after{box-sizing:border-box}
body.manitas-auth .ma-logo{display:flex;justify-content:center;margin:0 0 17px;text-align:center}
body.manitas-auth .ma-logo img,body.manitas-auth .ma-logo-img{
  display:block;
  width:172px;
  max-width:62%;
  height:auto;
  margin:0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.manitas-auth .ma-logo-fallback{margin:0 auto;color:var(--ma-auth-teal);font-size:24px;font-weight:900}
body.manitas-auth .ma-auth-head{margin:0 0 22px;text-align:center}
body.manitas-auth .ma-eyebrow{display:block;margin-bottom:6px;color:var(--ma-auth-green-dark);font-size:12px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
body.manitas-auth .ma-title,body.manitas-auth .ma-auth-head h1{
  margin:0;
  color:var(--ma-auth-ink);
  font-size:clamp(26px,5vw,34px);
  font-weight:850;
  line-height:1.12;
  letter-spacing:-.035em;
  text-align:center;
}
body.manitas-auth .ma-subtitle{max-width:430px;margin:9px auto 0;color:var(--ma-auth-muted);font-size:14px;line-height:1.55;text-align:center}
body.manitas-auth .ma-card .mta-context-guide{display:none}

body.manitas-auth form{width:100%;margin:0;text-align:left}
body.manitas-auth .ma-field{display:block;margin:0 0 15px}
body.manitas-auth .ma-label,body.manitas-auth label.ma-label{display:block;margin:0 0 7px;color:var(--ma-auth-text);font-size:13px;font-weight:800;line-height:1.35}
body.manitas-auth .ma-help{display:block;margin-top:7px;color:var(--ma-auth-muted);font-size:12px;line-height:1.45}
body.manitas-auth .ma-input,body.manitas-auth input.ma-input{
  display:block;
  width:100%;
  min-width:0;
  min-height:48px;
  margin:0;
  padding:11px 13px;
  border:1px solid #cbd8dc;
  border-radius:11px;
  background:#fff;
  color:var(--ma-auth-ink);
  font-size:15px;
  font-weight:550;
  line-height:1.35;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
}
body.manitas-auth .ma-input:focus{border-color:var(--ma-auth-teal);box-shadow:0 0 0 3px rgba(0,92,103,.13);outline:0}
body.manitas-auth .ma-input::placeholder{color:#64748b;opacity:1}
body.manitas-auth .ma-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

body.manitas-auth .ma-password-control{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center}
body.manitas-auth .ma-pass-wrap{display:grid;grid-template-columns:minmax(0,1fr) 48px 48px;gap:8px;align-items:center;background:transparent;border:0;box-shadow:none}
body.manitas-auth .ma-pass-toggle,body.manitas-auth .ma-icon-btn{
  width:48px;
  min-width:48px;
  height:48px;
  min-height:48px;
  margin:0;
  padding:0;
  border:1px solid #c8dde0;
  border-radius:11px;
  background:#e8f2f3;
  color:var(--ma-auth-teal);
  font-size:17px;
  box-shadow:none;
}
body.manitas-auth .ma-pass-toggle:hover,body.manitas-auth .ma-icon-btn:hover{background:#dcebed;border-color:#a9cdd1;transform:none}

body.manitas-auth .ma-btn,body.manitas-auth button.ma-btn,body.manitas-auth .ma-inmoplus-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  margin:0;
  padding:11px 16px;
  border:1px solid transparent;
  border-radius:11px;
  font-size:14px;
  font-weight:850;
  line-height:1.25;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body.manitas-auth .ma-primary-btn,body.manitas-auth button.ma-primary-btn{
  margin-top:12px;
  border-color:var(--ma-auth-teal);
  background:linear-gradient(135deg,var(--ma-auth-teal),var(--ma-auth-teal-hover));
  color:#fff;
  box-shadow:0 10px 24px rgba(0,92,103,.2);
}
body.manitas-auth .ma-primary-btn:hover{background:linear-gradient(135deg,#004b55,var(--ma-auth-teal));box-shadow:0 12px 28px rgba(0,92,103,.24);transform:translateY(-1px)}
body.manitas-auth .ma-secondary-btn{border-color:#bfd9c7;background:#eff8eb;color:#315f19;box-shadow:none}
body.manitas-auth .ma-inmoplus-btn{
  margin-top:14px;
  border-color:#cbd8dc;
  background:#fff;
  color:var(--ma-auth-teal);
  box-shadow:none;
}
body.manitas-auth .ma-inmoplus-btn:hover{border-color:#a9cdd1;background:var(--ma-auth-soft);color:var(--ma-auth-teal);transform:translateY(-1px)}
body.manitas-auth .ma-btn:disabled{opacity:.58;cursor:not-allowed;transform:none;box-shadow:none}

body.manitas-auth .ma-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.manitas-auth .ma-choice,body.manitas-auth .ma-account-option{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  margin:0;
  padding:12px;
  border:1px solid #d8e2e5;
  border-radius:11px;
  background:#fff;
  color:var(--ma-auth-ink);
  box-shadow:none;
  cursor:pointer;
}
body.manitas-auth .ma-account-type{display:grid;grid-template-columns:1fr;gap:9px}
body.manitas-auth .ma-account-option{align-items:flex-start}
body.manitas-auth .ma-choice:hover,body.manitas-auth .ma-account-option:hover{border-color:#abcfd2;background:#fbfdfd}
body.manitas-auth .ma-choice:has(input:checked),body.manitas-auth .ma-account-option:has(input:checked){border-color:var(--ma-auth-green);background:#f2f9ec;box-shadow:0 0 0 2px rgba(128,195,66,.13)}
body.manitas-auth .ma-account-title{display:block;color:var(--ma-auth-ink);font-size:14px;font-weight:850}
body.manitas-auth .ma-account-desc{display:block;margin-top:3px;color:var(--ma-auth-muted);font-size:12px;font-weight:600;line-height:1.4}
body.manitas-auth input[type="checkbox"],body.manitas-auth input[type="radio"]{width:18px;height:18px;flex:0 0 18px;accent-color:var(--ma-auth-teal)}
body.manitas-auth .ma-check,body.manitas-auth .ma-checkline{display:flex;align-items:flex-start;gap:9px;margin:12px 0 15px;color:var(--ma-auth-text);font-size:13px;line-height:1.45}

body.manitas-auth .ma-divider{display:flex;align-items:center;gap:11px;margin:15px 0;color:#64748b;font-size:12px;text-align:center}
body.manitas-auth .ma-divider span{height:1px;flex:1;background:var(--ma-auth-line)}
body.manitas-auth .mta-pk-login-wrap{display:grid;gap:7px;text-align:center}
body.manitas-auth #mta-pk-login{width:100%;min-height:48px;border:1px solid #cbd8dc;border-radius:11px;background:#fff;color:var(--ma-auth-teal);font-weight:800}
body.manitas-auth .mta-pk-login-help{color:var(--ma-auth-muted);font-size:12px}
body.manitas-auth .mta-pk-login-wrap:has(#mta-pk-login[hidden]){display:none}

body.manitas-auth .ma-captcha{margin:16px 0 2px;padding:13px;border:1px solid var(--ma-auth-line);border-radius:12px;background:var(--ma-auth-soft);overflow:hidden}
body.manitas-auth .ma-captcha .g-recaptcha{min-height:78px}
body.manitas-auth .ma-captcha-note{display:block;margin-top:7px;color:var(--ma-auth-muted);font-size:12px;line-height:1.35}
body.manitas-auth .ma-msg{display:block;margin:12px 0;padding:12px 13px;border:1px solid var(--ma-auth-line);border-radius:11px;background:#fff;color:var(--ma-auth-text);font-size:13px;line-height:1.45}
body.manitas-auth .ma-msg:empty{display:none}
body.manitas-auth .ma-msg.is-ok,body.manitas-auth .ma-msg.ok,body.manitas-auth .ma-msg-ok{background:#edf9f2;border-color:#bce3cc;color:#17633f}
body.manitas-auth .ma-msg.is-error,body.manitas-auth .ma-msg.err,body.manitas-auth .ma-msg-error{background:#fff3f2;border-color:#f1c0bc;color:#9b2118}
body.manitas-auth .ma-meter{height:6px;margin-top:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}
body.manitas-auth #ma-meter-text{display:block;margin-top:6px;color:var(--ma-auth-muted);font-size:12px}
body.manitas-auth .ma-links{display:flex;justify-content:center;gap:8px 16px;flex-wrap:wrap;margin-top:16px;text-align:center}
body.manitas-auth .ma-links a,body.manitas-auth .ma-footer a{color:var(--ma-auth-teal);font-size:13px;font-weight:750;text-decoration:none}
body.manitas-auth .ma-links a:hover,body.manitas-auth .ma-footer a:hover{color:var(--ma-auth-green-dark)}
body.manitas-auth .ma-footer{margin-top:18px;color:var(--ma-auth-muted);font-size:12px;line-height:1.5;text-align:center}
body.manitas-auth .mta-help-fab{right:20px;bottom:20px;padding:10px 13px;border-radius:10px;background:var(--ma-auth-teal);color:#fff;box-shadow:0 10px 26px rgba(0,92,103,.22);font-size:13px}

@media (max-width:600px){
  body.manitas-auth .ma-wrap{padding:14px 10px;align-items:flex-start}
  body.manitas-auth .ma-card{width:100%;padding:24px 17px;border-radius:17px;box-shadow:0 12px 36px rgba(15,43,50,.1)}
  body.manitas-auth .ma-card::before{border-radius:17px 17px 0 0}
  body.manitas-auth .ma-logo img,body.manitas-auth .ma-logo-img{width:150px}
  body.manitas-auth .ma-title,body.manitas-auth .ma-auth-head h1{font-size:26px}
  body.manitas-auth .ma-grid{grid-template-columns:1fr;gap:0}
  body.manitas-auth .ma-choice-grid{grid-template-columns:1fr 1fr}
  body.manitas-auth .mta-help-fab{right:10px;bottom:10px}
}
@media (max-width:380px){
  body.manitas-auth .ma-captcha .g-recaptcha{transform:scale(.88);transform-origin:left top;margin-bottom:-9px}
  body.manitas-auth .ma-choice-grid{grid-template-columns:1fr}
}

/* ==========================================================
 * MANITAS 8.0 RC11 — UN SOLO MENÚ EN ADMINISTRACIÓN
 * El lateral interno administra módulos; la barra global conserva sesión.
 * ========================================================== */
body.manitas-app.manitas-admin-panel{padding-left:0;padding-bottom:0}
body.manitas-app.manitas-admin-panel>.mx-appbar{left:0;width:100%}
body.manitas-app.manitas-admin-panel>#mx-menu,
body.manitas-app.manitas-admin-panel>.mx-overlay,
body.manitas-app.manitas-admin-panel>.mx-footerbar{display:none}
body.manitas-app.manitas-admin-panel .mta-admin-app{width:min(calc(100% - 32px),1480px);margin:18px auto 28px}
body.manitas-app.manitas-admin-panel .mta-admin-top{top:0}

/* El panel entra en modo móvil en el mismo punto que el shell general. */
@media (min-width:1024px) and (max-width:1050px){
  body.manitas-app.manitas-admin-panel .mta-admin-app{grid-template-columns:270px minmax(0,1fr)}
  body.manitas-app.manitas-admin-panel .mta-admin-sidebar{position:relative;inset:auto;width:auto;height:auto;z-index:auto;transform:none;transition:none}
  body.manitas-app.manitas-admin-panel .mta-admin-menu{display:none}
}

@media (max-width:640px){
  body.manitas-app.manitas-admin-panel .mta-admin-app{width:100%;margin:0;border-radius:0}
  body.manitas-app.manitas-admin-panel .mta-admin-top{top:0}
}

@media (max-width:1023px){
  body.manitas-app.manitas-admin-panel .mta-admin-sidebar{inset:var(--mta-topbar) auto 0 0;height:calc(100dvh - var(--mta-topbar))}
  body.manitas-app.manitas-admin-panel .mta-admin-menu{display:grid;place-items:center}
}

/* ==========================================================
 * MANITAS 8.0 RC20 — RESPONSIVE GLOBAL / MOBILE GEOMETRY
 * Corrige contenedores de escritorio, desbordes y componentes
 * que perdían contenido en teléfonos.
 * ========================================================== */
@media (max-width:767px){
  body.manitas-app{overflow-x:hidden}
  body.manitas-app *,body.manitas-app *::before,body.manitas-app *::after{box-sizing:border-box}
  body.manitas-app img,body.manitas-app video,body.manitas-app iframe,body.manitas-app canvas,body.manitas-app svg{max-width:100%;height:auto}
  body.manitas-app p,body.manitas-app li,body.manitas-app dd,body.manitas-app td,body.manitas-app th,body.manitas-app a,body.manitas-app span,body.manitas-app strong{overflow-wrap:anywhere;word-break:normal}

  /* El shell móvil ya aporta el margen exterior: evitar cajas dentro de cajas. */
  body.manitas-app :is(.mh-public,.ms-wrap,.mta-profile-shell,.mta-inv,.mkyc-shell,.mta-jobs-wrap,.mta-wrap,.mtp-wrap,.mp-wrap,.mta-viewer-shell){
    width:100%;max-width:none;margin-left:0;margin-right:0;
  }
  body.manitas-app :is(.mh-public,.ms-wrap,.mta-inv,.mkyc-shell){padding-left:12px;padding-right:12px}
  body.manitas-app .mta-profile-shell{padding-left:0;padding-right:0}

  /* Tipografía móvil: impedir títulos heredados de 40–56 px. */
  body.manitas-app :is(h1,.mta-title,.mta-profile-shell h1,.mta-profile-shell h2,.mta-inv h1,.ms-wrap h1,.mkyc-shell h1){
    font-size:clamp(26px,8vw,36px);line-height:1.08;letter-spacing:-.025em;max-width:100%;
  }
  body.manitas-app :is(h2,.mta-profile-shell h3,.mta-inv h2,.ms-wrap h2){font-size:clamp(20px,6vw,27px);line-height:1.16}
  body.manitas-app :is(p,.mta-profile-shell,.mta-profile-shell label,.mta-profile-shell input,.mta-profile-shell select,.mta-profile-shell textarea){font-size:min(16px,4.4vw);line-height:1.5}

  /* Formularios siempre utilizables. */
  body.manitas-app :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,button){max-width:100%}
  body.manitas-app :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%}
  body.manitas-app textarea{min-height:120px}

  /* Cabeceras/acciones que en escritorio comparten fila. */
  body.manitas-app :is(.mta-page-head,.mta-head,.ms-head,.mkyc-hero,.mta-inv .head,.mta-inv .section-head,.mta-profile-head){
    flex-wrap:wrap;min-width:0;
  }
  body.manitas-app :is(.mta-actions,.ms-actions,.mta-profile-actions,.mta-inv .actions){flex-wrap:wrap;max-width:100%}

  /* Guía rápida: nunca comprimir el texto para dejar un botón enorme al lado. */
  body.manitas-app :is(.mta-help-card,.mta-guide,.mta-quick-guide,.mta-context-help,.mx-guide,.ms-guide){min-width:0;max-width:100%}

  /* Tablas y contenido ancho deben desplazarse, no desaparecer. */
  body.manitas-app :is(.table-responsive,.mta-table-wrap,.mta-table-scroll,.mp-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.manitas-app table{max-width:100%}

  /* Perfil: neutraliza geometría heredada que producía la captura rota. */
  body.manitas-app .mta-profile-shell :is(.mta-profile-card,.mta-profile-main,.mta-profile-content,.mta-profile-form){width:100%;max-width:none;min-width:0}
  body.manitas-app .mta-profile-shell :is(.mta-profile-grid,.mta-grid){grid-template-columns:1fr}

  /* Inversión: una sola columna en móvil y clases encapsuladas. */
  body.manitas-app .mta-inv{margin-top:10px;margin-bottom:100px;padding:0 10px}
  body.manitas-app .mta-inv :is(.head,.hero,.hero-grid,.grid,.benefits,.plans,.steps,.section-head){grid-template-columns:1fr}
  body.manitas-app .mta-inv :is(.head,.section-head){display:flex;align-items:stretch;flex-direction:column;gap:12px}
  body.manitas-app .mta-inv :is(.wrap,.hero,.section,.card,.panel){width:100%;max-width:none;min-width:0}
  body.manitas-app .mta-inv .btn{width:100%;white-space:normal}

  /* Evitar que la navegación inferior tape el último contenido. */
  body.manitas-app main,body.manitas-app .mx-content,body.manitas-app .mta-main{padding-bottom:max(96px,calc(env(safe-area-inset-bottom) + 82px))}
  body.manitas-app .mta-help-fab{bottom:max(92px,calc(env(safe-area-inset-bottom) + 82px))}
}

@media (max-width:420px){
  body.manitas-app :is(.mh-public,.ms-wrap,.mta-inv,.mkyc-shell){padding-left:8px;padding-right:8px}
  body.manitas-app :is(.mta-card,.ms-card,.mkyc-card,.mta-profile-card,.mta-inv .card){padding-left:14px;padding-right:14px}
  body.manitas-app :is(.mta-grid,.mta-stats,.mta-metrics,.mta-cards,.mta-actions-grid,.mta-filters,.mkyc-guide){grid-template-columns:1fr}
  body.manitas-app :is(.mta-actions,.ms-actions,.mta-profile-actions){display:grid;grid-template-columns:1fr;width:100%}
  body.manitas-app :is(.mta-actions,.ms-actions,.mta-profile-actions) :is(a,button){width:100%;white-space:normal}
}


/* ==========================================================
 * MANITAS 8.0 RC21 — ADMIN FRONTEND FULL-WIDTH / MOBILE FINAL
 * Elimina el gutter derecho provocado por wrappers del tema y
 * normaliza la geometría del administrador sin afectar el sitio.
 * ========================================================== */
@media (max-width:1023px){
  body.manitas-app.manitas-admin-panel{
    width:100%;
    max-width:none;
    margin:0;
    padding-left:0;
    padding-right:0;
    overflow-x:hidden;
  }

  /* Wrappers habituales de temas WordPress: el panel no hereda su max-width. */
  body.manitas-app.manitas-admin-panel :is(
    #page,.site,#content,.site-content,#primary,.content-area,#main,.site-main,
    article.page,.entry-content,.page-content,.container,.site-container,
    .ast-container,.wp-site-blocks,.is-layout-constrained,.is-layout-flow
  ){
    width:100%;
    max-width:none;
    min-width:0;
    margin-left:0;
    margin-right:0;
  }

  body.manitas-app.manitas-admin-panel :is(
    #content,.site-content,#primary,.content-area,#main,.site-main,
    article.page,.entry-content,.page-content,.container,.site-container,
    .ast-container
  ){
    padding-left:0;
    padding-right:0;
  }

  body.manitas-app.manitas-admin-panel .mta-admin-app,
  body.manitas-app.manitas-admin-panel .mta-admin-main,
  body.manitas-app.manitas-admin-panel .mta-admin-top,
  body.manitas-app.manitas-admin-panel .mta-admin-content{
    width:100%;
    max-width:none;
    min-width:0;
    margin-left:0;
    margin-right:0;
  }

  body.manitas-app.manitas-admin-panel .mta-admin-app{
    border-left:0;
    border-right:0;
  }

  body.manitas-app.manitas-admin-panel .mta-admin-content > *{
    width:100%;
    max-width:none;
    min-width:0;
  }

  body.manitas-app.manitas-admin-panel .mta-admin-toolbar,
  body.manitas-app.manitas-admin-panel .mta-admin-card,
  body.manitas-app.manitas-admin-panel .mta-admin-table-wrap,
  body.manitas-app.manitas-admin-panel .mta-admin-hero,
  body.manitas-app.manitas-admin-panel .mta-launch-hero,
  body.manitas-app.manitas-admin-panel .mta-admin-empty{
    max-width:100%;
    min-width:0;
  }
}

@media (max-width:640px){
  body.manitas-app.manitas-admin-panel .mta-admin-top{
    padding:12px 14px;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-content{
    padding:14px 12px max(90px,calc(env(safe-area-inset-bottom) + 78px));
  }
  body.manitas-app.manitas-admin-panel .mta-admin-top h1{
    font-size:clamp(25px,7vw,34px);
    line-height:1.08;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-toolbar{
    gap:10px;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-toolbar h2{
    font-size:clamp(22px,6.2vw,30px);
    line-height:1.12;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-toolbar p{
    font-size:15px;
    line-height:1.55;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-kpis,
  body.manitas-app.manitas-admin-panel .mta-people-kpis{
    gap:10px;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-kpis > *,
  body.manitas-app.manitas-admin-panel .mta-people-kpis > *{
    padding:14px;
    min-height:0;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-card{
    padding:14px;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-verify-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-verify-tabs a{
    width:100%;
    text-align:center;
    white-space:normal;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-people-filters,
  body.manitas-app.manitas-admin-panel .mta-admin-notification-filters{
    width:100%;
    max-width:none;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:380px){
  body.manitas-app.manitas-admin-panel .mta-admin-content{padding-left:9px;padding-right:9px}
  body.manitas-app.manitas-admin-panel .mta-admin-verify-tabs{grid-template-columns:1fr}
}

/* ==========================================================
 * MANITAS 8.0 RC22 — ADMIN HOST-WRAPPER HARDENING
 * Amplía la neutralización a wrappers comunes de themes/builders.
 * Solo actúa dentro del administrador frontend de Manitas.
 * ========================================================== */
@media (max-width:1023px){
  body.manitas-app.manitas-admin-panel :is(
    .site-content-contain,.main-content,.page-wrapper,.content-wrapper,
    .entry,.entry-wrapper,.entry-inner,.wp-block-group,.wp-block-group__inner-container,
    .elementor,.elementor-section,.elementor-section-wrap,.elementor-container,
    .e-con,.e-con-inner,.et-l,.et_builder_inner_content,.fusion-row,.fusion-builder-row
  ){
    width:100%;
    max-width:none;
    min-width:0;
    margin-left:0;
    margin-right:0;
    box-sizing:border-box;
  }
  body.manitas-app.manitas-admin-panel :is(
    .site-content-contain,.main-content,.page-wrapper,.content-wrapper,
    .entry,.entry-wrapper,.entry-inner,.wp-block-group,.wp-block-group__inner-container,
    .elementor,.elementor-section,.elementor-section-wrap,.elementor-container,
    .e-con,.e-con-inner
  ){
    padding-left:0;
    padding-right:0;
  }
  body.manitas-app.manitas-admin-panel .mta-admin-main{overflow-x:clip}
}


/* ==========================================================
 * AUTHORITATIVE UNIFIED LAYER — do not duplicate-enqueue
 * ========================================================== */
/*
 * MANITAS 8.0 — UNIFIED UI 2026
 * RC14 visual consolidation. Presentation only: no business logic.
 * This stylesheet is the final visual authority for Manitas screens.
 */
:root{
  --manitas-primary:#80c342;
  --manitas-primary-hover:#70b637;
  --manitas-primary-dark:#5f9e25;
  --manitas-secondary:#005c67;
  --manitas-secondary-2:#087985;
  --manitas-accent:#00a1b0;
  --manitas-bg:#f5f7f9;
  --manitas-surface:#ffffff;
  --manitas-surface-soft:#f8fafc;
  --manitas-text:#172033;
  --manitas-heading:#0f172a;
  --manitas-muted:#64748b;
  --manitas-border:#dfe7ea;
  --manitas-border-strong:#cbd8dc;
  --manitas-success:#168a4b;
  --manitas-success-soft:#edf9f2;
  --manitas-warning:#b7791f;
  --manitas-warning-soft:#fff8e6;
  --manitas-danger:#c9362b;
  --manitas-danger-soft:#fff3f2;
  --manitas-info:#176b87;
  --manitas-info-soft:#eef8fb;
  --manitas-r-sm:10px;
  --manitas-r:12px;
  --manitas-r-card:16px;
  --manitas-r-lg:22px;
  --manitas-shadow-sm:0 5px 16px rgba(15,43,50,.055);
  --manitas-shadow:0 12px 32px rgba(15,43,50,.085);
  --manitas-shadow-lg:0 20px 54px rgba(15,43,50,.11);
  --manitas-space-1:4px;
  --manitas-space-2:8px;
  --manitas-space-3:12px;
  --manitas-space-4:16px;
  --manitas-space-5:24px;
  --manitas-space-6:32px;
  --manitas-space-7:40px;
  --manitas-control-h:48px;
  --manitas-content:1180px;
  --manitas-content-wide:1480px;
  --manitas-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,Arial,sans-serif;

  /* Aliases for legacy modules: one palette, one vocabulary. */
  --mt-green:var(--manitas-primary); --mt-green-hover:var(--manitas-primary-hover); --mt-green-dark:var(--manitas-primary-dark);
  --mt-teal:var(--manitas-secondary); --mt-teal-2:var(--manitas-secondary-2); --mt-cyan:var(--manitas-accent);
  --mt-ink:var(--manitas-heading); --mt-text:var(--manitas-text); --mt-muted:var(--manitas-muted); --mt-bg:var(--manitas-bg);
  --mt-card:var(--manitas-surface); --mt-line:var(--manitas-border); --mt-radius:var(--manitas-r-card); --mt-radius-lg:var(--manitas-r-lg);
  --mta-green:var(--manitas-primary); --mta-primary:var(--manitas-primary); --mta-teal:var(--manitas-secondary); --mta-ink:var(--manitas-heading);
  --mta-text:var(--manitas-text); --mta-muted:var(--manitas-muted); --mta-line:var(--manitas-border); --mta-bg:var(--manitas-bg);
  --mh-green:var(--manitas-primary); --mh-teal:var(--manitas-secondary); --mh-cyan:var(--manitas-accent); --mh-ink:var(--manitas-heading);
  --mh-muted:var(--manitas-muted); --mh-line:var(--manitas-border); --mh-card:var(--manitas-surface); --mh-soft:var(--manitas-surface-soft);
  --mx-primary:var(--manitas-primary); --mx-teal:var(--manitas-secondary);
}

/* ---------- Foundation ---------- */
body.manitas-app,
body.manitas-auth,
body.manitas-public{
  font-family:var(--manitas-font)!important;
  color:var(--manitas-text)!important;
  background:var(--manitas-bg)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.manitas-app *,body.manitas-auth *,body.manitas-public *{box-sizing:border-box}
body.manitas-app img,body.manitas-auth img,body.manitas-public img{max-width:100%;height:auto}
body.manitas-app :focus-visible,body.manitas-auth :focus-visible,body.manitas-public :focus-visible{
  outline:3px solid rgba(128,195,66,.32)!important;outline-offset:2px!important;
}
body.manitas-app h1,body.manitas-app h2,body.manitas-app h3,body.manitas-app h4,
body.manitas-auth h1,body.manitas-auth h2,body.manitas-auth h3,
body.manitas-public h1,body.manitas-public h2,body.manitas-public h3{
  color:var(--manitas-heading)!important;font-family:var(--manitas-font)!important;letter-spacing:-.025em!important;
}
body.manitas-app p,body.manitas-auth p,body.manitas-public p{line-height:1.55}
body.manitas-app a,body.manitas-auth a,body.manitas-public a{transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}

/* ---------- Page canvas / consistent margins ---------- */
body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-wrap,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap),
body.manitas-public :is(.mh-public,.mta-wrap,.mp-wrap,.ms-wrap){
  width:min(calc(100% - 32px),var(--manitas-content))!important;
  max-width:var(--manitas-content)!important;
  margin:24px auto 104px!important;
  padding:0!important;
}
body.manitas-app.manitas-admin-panel .mta-admin-app{width:min(calc(100% - 32px),var(--manitas-content-wide))!important}

/* ---------- Shared shells ---------- */
body.manitas-app :is(.mta-shell,.mj-shell,.mp-shell,.mch-shell,.mkyc-shell,.mta-pk-shell,.mta-contract-shell,.mta-profile-shell,.mta-support-shell,.mta-viewer-shell,.pp-shell),
body.manitas-public .mh-shell{
  background:var(--manitas-surface)!important;
  border:1px solid var(--manitas-border)!important;
  border-radius:var(--manitas-r-lg)!important;
  box-shadow:var(--manitas-shadow)!important;
}

/* ---------- Page headings ---------- */
body.manitas-app :is(.mta-title,.mj-title,.mp-title,.mch-title,.mca-title,.ms-title,.mtc-title,.mco-title,.mcall-title,.pp-title,.mta-contract-title,.mta-support-title,.mta-proposals-title,.mta-hero-title),
body.manitas-public :is(.mh-title,.mta-title,.mp-title){
  margin:0!important;color:var(--manitas-heading)!important;font-weight:850!important;line-height:1.12!important;letter-spacing:-.035em!important;
}
body.manitas-app :is(.mta-title,.mj-title,.mp-title,.mch-title,.mca-title,.ms-title,.mtc-title,.mco-title,.mcall-title,.pp-title){font-size:clamp(25px,3vw,34px)!important}
body.manitas-app :is(.mca-subtitle,.mp-subtitle,.mta-section-sub,.mj-section-sub,.mch-card-sub,.mta-pageinfo,.mta-empty-sub),
body.manitas-public :is(.mh-sub,.mh-section-sub){color:var(--manitas-muted)!important;line-height:1.55!important}

/* ---------- Sections & cards ---------- */
body.manitas-app :is(
 .mta-card,.mj-card,.mj-action-card,.mj-hero-card,.mj-trust-card,.mp-card,.mp-preview-card,.mch-card,.mch-panel,
 .mca-card,.mca-service-card,.ms-card,.ms-kpi-card,.mtp-booking-card,.mtp-service-card,.mtp-trust-card,.mtc-card,.mtd-card,
 .miw-card,.mcall-card,.mco-card,.pp-card,.mta-contract-card,.mta-admin-card,.mta-ag-card,.mta-profile-form-card,.mta-help-center-card,
 .md3-panel,.mta-section,.mtp-section,.mtd-panel,.mta-agenda-panel
),
body.manitas-public :is(.mh-section,.mh-side,.mh-tile,.mh-metric){
  background:var(--manitas-surface)!important;
  border:1px solid var(--manitas-border)!important;
  border-radius:var(--manitas-r-card)!important;
  box-shadow:var(--manitas-shadow-sm)!important;
  color:var(--manitas-text)!important;
}
body.manitas-app :is(.mta-card,.mj-card,.mp-card,.mch-card,.mch-panel,.mca-card,.ms-card,.mtc-card,.mtd-card,.miw-card,.mcall-card,.mco-card,.pp-card,.mta-contract-card,.mta-admin-card,.mta-ag-card,.mta-profile-form-card){padding:20px!important}
body.manitas-app :is(.mta-section,.mtp-section,.mta-agenda-panel){padding:20px!important}
body.manitas-app :is(.mta-section-title,.mj-section-title,.mch-section-title,.mp-plan-title,.mp-cta-title,.mch-cta-title,.mj-action-title,.mj-primary-action-title,.mj-trust-title,.mta-ag-title){
  color:var(--manitas-heading)!important;font-weight:800!important;letter-spacing:-.02em!important;
}

/* ---------- Forms: one control language ---------- */
body.manitas-app :is(input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="url"],input[type="date"],input[type="time"],input[type="search"],select),
body.manitas-public :is(input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="url"],input[type="date"],input[type="time"],input[type="search"],select),
body.manitas-auth :is(input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],select){
  width:100%!important;min-height:var(--manitas-control-h)!important;height:var(--manitas-control-h)!important;
  padding:0 14px!important;border:1px solid var(--manitas-border-strong)!important;border-radius:var(--manitas-r)!important;
  background:var(--manitas-surface)!important;color:var(--manitas-text)!important;font:600 15px/1.3 var(--manitas-font)!important;
  box-shadow:0 1px 1px rgba(15,23,42,.025)!important;outline:0!important;
}
body.manitas-app textarea,body.manitas-public textarea,body.manitas-auth textarea{
  width:100%!important;min-height:120px!important;padding:13px 14px!important;border:1px solid var(--manitas-border-strong)!important;
  border-radius:var(--manitas-r)!important;background:var(--manitas-surface)!important;color:var(--manitas-text)!important;
  font:600 15px/1.5 var(--manitas-font)!important;box-shadow:0 1px 1px rgba(15,23,42,.025)!important;resize:vertical;
}
body.manitas-app :is(input,select,textarea):focus,body.manitas-public :is(input,select,textarea):focus,body.manitas-auth :is(input,select,textarea):focus{
  border-color:var(--manitas-primary)!important;box-shadow:0 0 0 4px rgba(128,195,66,.15)!important;outline:0!important;
}
body.manitas-app :is(input,textarea)::placeholder,body.manitas-public :is(input,textarea)::placeholder,body.manitas-auth :is(input,textarea)::placeholder{color:#64748b!important;opacity:1!important}
body.manitas-app label,body.manitas-public label,body.manitas-auth label{color:var(--manitas-text)}
body.manitas-app :is(.mta-field,.mp-field,.ma-field),body.manitas-public :is(.mta-field,.mp-field),body.manitas-auth .ma-field{gap:7px!important}
body.manitas-app :is(.mta-field>span,.mp-field>span,.mta-form label,.mta-pay-form label,.mta-op-form label,.mta-admin-form label),
body.manitas-public :is(.mta-field>span,.mp-field>span),body.manitas-auth .ma-field>label{
  color:var(--manitas-text)!important;font-size:14px!important;font-weight:750!important;line-height:1.35!important;
}
body.manitas-app :is(.mta-field small,.mp-field small,.mta-form small,.mta-pay-form small),body.manitas-auth .ma-help{
  color:var(--manitas-muted)!important;font-size:13px!important;line-height:1.4!important;
}
body.manitas-app :is(input[type="checkbox"],input[type="radio"]),body.manitas-auth :is(input[type="checkbox"],input[type="radio"]),body.manitas-public :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--manitas-secondary)!important}

/* ---------- Buttons: one family ---------- */
body.manitas-app :is(
 button,.mta-btn,.mta-btn-primary,.mta-btn-secondary,.mta-view-btn,.mta-like-btn,.mta-react-btn,.mta-starbtn,.mta-icon-btn,
 .mj-btn,.mp-btn,.mp-copy-btn,.mch-btn,.mca-btn,.mca-filter-btn,.mca-btn-office,.ms-btn,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn,.md3-next__button
),
body.manitas-public :is(button,.mh-btn,.mta-btn,.mp-btn,.ms-btn),
body.manitas-auth :is(button,.ma-btn,.ma-pass-action,.ma-inmoplus-btn,input[type="submit"]){
  min-height:44px!important;padding:10px 16px!important;border-radius:var(--manitas-r)!important;
  font-family:var(--manitas-font)!important;font-size:14px!important;font-weight:800!important;line-height:1.2!important;
  text-decoration:none!important;cursor:pointer!important;box-shadow:none!important;
}
body.manitas-app :is(.mta-btn--primary,.mta-btn-primary,.mp-btn-primary,.mca-btn-office,.md3-next__button),
body.manitas-public :is(.mh-btn.primary,.mta-btn--primary,.mta-btn-primary,.mp-btn-primary),
body.manitas-auth :is(.ma-btn,.ma-inmoplus-btn,input[type="submit"]){
  border:1px solid var(--manitas-secondary)!important;background:var(--manitas-secondary)!important;color:#fff!important;
}
body.manitas-app :is(.mta-btn--primary,.mta-btn-primary,.mp-btn-primary,.mca-btn-office,.md3-next__button):hover,
body.manitas-public :is(.mh-btn.primary,.mta-btn--primary,.mta-btn-primary,.mp-btn-primary):hover,
body.manitas-auth :is(.ma-btn,.ma-inmoplus-btn,input[type="submit"]):hover{
  background:var(--manitas-secondary-2)!important;border-color:var(--manitas-secondary-2)!important;transform:translateY(-1px)!important;box-shadow:0 8px 20px rgba(0,92,103,.16)!important;
}
body.manitas-app :is(.mta-btn--ghost,.mta-btn-secondary,.mp-btn-secondary,.mca-btn,.mca-filter-btn,.ms-btn,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn),
body.manitas-public :is(.mh-btn:not(.primary),.mta-btn-secondary,.mp-btn-secondary),body.manitas-auth .ma-pass-action{
  border:1px solid var(--manitas-border-strong)!important;background:#fff!important;color:var(--manitas-secondary)!important;
}
body.manitas-app :is(.mta-btn--ghost,.mta-btn-secondary,.mp-btn-secondary,.mca-btn,.mca-filter-btn,.ms-btn,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn):hover,
body.manitas-public :is(.mh-btn:not(.primary),.mta-btn-secondary,.mp-btn-secondary):hover,body.manitas-auth .ma-pass-action:hover{
  background:#f3f8f8!important;border-color:#9fc4c8!important;transform:translateY(-1px)!important;
}
body.manitas-app :is(.mta-btn--danger,.mx-btn-top--logout){background:var(--manitas-danger)!important;border-color:var(--manitas-danger)!important;color:#fff!important}
body.manitas-app button:disabled,body.manitas-app .mta-btn:disabled,body.manitas-public button:disabled,body.manitas-auth button:disabled{opacity:.5!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important}

/* ---------- Badges / statuses ---------- */
body.manitas-app :is(.mta-badge,.mta-admin-badge,.mta-ag-badge,.mp-badge,.mca-badge,.mtp-badge,.mtc-badge,.miw-badge){
  display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:26px!important;padding:4px 9px!important;
  border-radius:999px!important;border:1px solid var(--manitas-border)!important;background:var(--manitas-surface-soft)!important;
  color:var(--manitas-muted)!important;font-size:12px!important;font-weight:800!important;line-height:1!important;
}
body.manitas-app :is(.mta-badge--ok,.mca-badge--verified){background:var(--manitas-success-soft)!important;border-color:#bce3cc!important;color:#17633f!important}
body.manitas-app .mta-badge--neutral{background:#f4f6f8!important;color:#52606d!important}

/* ---------- Alerts ---------- */
body.manitas-app :is(.mta-alert,.mch-alert,.mkyc-alert,.mta-contract-alert,.mta-agenda-alert,.mta-op-alert,.mta-notifications-alert){
  padding:13px 15px!important;border:1px solid var(--manitas-border)!important;border-radius:var(--manitas-r)!important;
  background:var(--manitas-info-soft)!important;color:var(--manitas-text)!important;box-shadow:none!important;
}
body.manitas-app :is(.notice-success,.is-success,.success){border-color:#bce3cc!important;background:var(--manitas-success-soft)!important}
body.manitas-app :is(.notice-error,.is-error,.error){border-color:#efc3bf!important;background:var(--manitas-danger-soft)!important}

/* ---------- Empty states ---------- */
body.manitas-app :is(.mta-empty,.mj-empty,.mp-empty,.mch-empty,.mca-empty,.mtd-empty,.mtm-empty,.mta-contract-empty,.mta-agenda-empty,.mta-admin-empty,.mta-notifications-empty,.mta-proposals-empty,.mtp-empty,.md3-feed-empty){
  padding:32px 20px!important;border:1px dashed var(--manitas-border-strong)!important;border-radius:var(--manitas-r-card)!important;
  background:var(--manitas-surface-soft)!important;color:var(--manitas-muted)!important;text-align:center!important;
}

/* ---------- Tables ---------- */
body.manitas-app :is(.mta-table-wrap,.mp-table-wrap,.mta-admin-table-wrap){overflow:auto!important;border:1px solid var(--manitas-border)!important;border-radius:var(--manitas-r-card)!important;background:#fff!important}
body.manitas-app table{width:100%;border-collapse:collapse!important;background:#fff!important;color:var(--manitas-text)!important}
body.manitas-app th{padding:12px 14px!important;background:#f6f9fa!important;color:#45565f!important;font-size:12px!important;font-weight:850!important;text-align:left!important;border-bottom:1px solid var(--manitas-border)!important}
body.manitas-app td{padding:13px 14px!important;border-bottom:1px solid #edf1f3!important;font-size:14px!important;vertical-align:middle!important}
body.manitas-app tr:last-child td{border-bottom:0!important}

/* ---------- Grids / rhythm ---------- */
body.manitas-app :is(.mta-grid,.mj-grid,.mp-grid,.mch-grid,.mco-grid,.mtd-grid,.mta-ag-grid,.mta-rep-grid,.mtp-trust-grid,.mta-help-center-grid,.mta-quick-grid,.md3-quick-grid),
body.manitas-public :is(.mh-tiles,.mh-metrics){gap:16px!important}
body.manitas-app :is(.mp-grid-2,.mta-form-grid,.mta-admin-grid,.mta-admin-cards,.mj-actions-grid,.mj-info-grid,.mj-security-grid){gap:16px!important}
body.manitas-app :is(.mta-section,.mtp-section)+:is(.mta-section,.mtp-section){margin-top:16px!important}

/* ---------- Navigation consistency ---------- */
body.manitas-app>.mx-appbar{
  background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--manitas-border)!important;box-shadow:0 4px 18px rgba(15,43,50,.055)!important;backdrop-filter:blur(14px);
}
body.manitas-app #mx-menu{background:#fff!important;border-right:1px solid var(--manitas-border)!important;box-shadow:8px 0 28px rgba(15,43,50,.065)!important}
body.manitas-app .mx-footerbar{background:rgba(255,255,255,.97)!important;border-top:1px solid var(--manitas-border)!important;box-shadow:0 -5px 18px rgba(15,43,50,.055)!important;backdrop-filter:blur(14px)}
body.manitas-app :is(#mx-menu,.mx-footerbar) a{color:#53636c!important;border-radius:var(--manitas-r)!important;font-weight:700!important}
body.manitas-app :is(#mx-menu,.mx-footerbar) a:is(.is-active,[aria-current="page"]){background:#edf7e8!important;color:var(--manitas-secondary)!important}

/* ---------- Auth ---------- */
body.manitas-auth{background:linear-gradient(155deg,#f7fafb 0%,#eef6f4 55%,#f5f8f2 100%)!important}
body.manitas-auth .ma-card{max-width:470px!important;padding:28px!important;border:1px solid var(--manitas-border)!important;border-radius:var(--manitas-r-lg)!important;background:#fff!important;box-shadow:var(--manitas-shadow-lg)!important}
body.manitas-auth .ma-title{font-size:28px!important;color:var(--manitas-heading)!important;font-weight:850!important}
body.manitas-auth .ma-sub,body.manitas-auth .ma-subtitle{color:var(--manitas-muted)!important}
body.manitas-auth .ma-logo img,body.manitas-auth .ma-logo-img{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;object-fit:contain!important}

/* ---------- Public home ---------- */
body.manitas-public .mh-shell{overflow:hidden!important}
body.manitas-public .mh-topbar{padding:16px 20px!important;border-bottom:1px solid var(--manitas-border)!important;background:#fff!important}
body.manitas-public .mh-hero{padding:32px 24px 24px!important;background:linear-gradient(145deg,#fff 0%,#f5faf5 52%,#f0f8f8 100%)!important}
body.manitas-public .mh-title{font-size:clamp(36px,5vw,58px)!important;line-height:1.02!important}
body.manitas-public .mh-tile{overflow:hidden!important}

/* ---------- Marketplace / profiles ---------- */
body.manitas-app :is(.mca-service-card,.mtp-service-card,.mtm-card){overflow:hidden!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important}
body.manitas-app :is(.mca-service-card,.mtp-service-card,.mtm-card):hover{transform:translateY(-2px)!important;border-color:#c6d7da!important;box-shadow:var(--manitas-shadow)!important}
body.manitas-app :is(.mca-service-card__price,.mp-card-title){color:var(--manitas-secondary)!important;font-weight:850!important}

/* ---------- Chat ---------- */
body.manitas-app .mch-shell{overflow:hidden!important}
body.manitas-app .mch-panel-head,body.manitas-app .mta-job-chat__header{background:#fff!important;border-bottom:1px solid var(--manitas-border)!important}
body.manitas-app .mta-job-chat__input{min-height:44px!important;height:auto!important;border-radius:var(--manitas-r)!important}
body.manitas-app .mch-emoji-panel{border:1px solid var(--manitas-border)!important;border-radius:var(--manitas-r-card)!important;background:#fff!important;box-shadow:var(--manitas-shadow)!important}

/* ---------- Publishing wizard ---------- */
body.manitas-app .mp-wizard-shell{background:#fff!important;border:1px solid var(--manitas-border)!important;border-radius:var(--manitas-r-lg)!important;box-shadow:var(--manitas-shadow)!important;overflow:hidden!important}
body.manitas-app .mp-step-title>span{background:var(--manitas-secondary)!important;color:#fff!important;box-shadow:none!important}
body.manitas-app .mp-price-options label,body.manitas-app .mp-days label,body.manitas-app .mp-toggles label{border-color:var(--manitas-border)!important;border-radius:var(--manitas-r)!important;background:#fff!important}
body.manitas-app .mp-price-options label:has(input:checked),body.manitas-app .mp-days label:has(input:checked){border-color:var(--manitas-primary)!important;background:#f2f9ec!important}
body.manitas-app .mp-dropzone{border:1.5px dashed #aebfc5!important;border-radius:var(--manitas-r-card)!important;background:#f9fbfb!important}
body.manitas-app .mp-wizard-actions{border-top:1px solid var(--manitas-border)!important;background:#fff!important;padding:16px 20px!important}

/* ---------- Responsive ---------- */
@media (max-width:1023px){
  body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-wrap,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap),
  body.manitas-public :is(.mh-public,.mta-wrap,.mp-wrap,.ms-wrap){width:min(calc(100% - 24px),var(--manitas-content))!important;margin:16px auto 92px!important}
  body.manitas-app :is(.mta-card,.mj-card,.mp-card,.mch-card,.mch-panel,.mca-card,.ms-card,.mtc-card,.mtd-card,.miw-card,.mcall-card,.mco-card,.pp-card,.mta-contract-card,.mta-admin-card,.mta-ag-card,.mta-profile-form-card){padding:18px!important}
}
@media (max-width:767px){
  body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-wrap,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap),
  body.manitas-public :is(.mh-public,.mta-wrap,.mp-wrap,.ms-wrap){width:100%!important;margin:0 auto 82px!important;padding:12px!important}
  body.manitas-app :is(.mta-shell,.mj-shell,.mp-shell,.mch-shell,.mkyc-shell,.mta-pk-shell,.mta-contract-shell,.mta-profile-shell,.mta-support-shell,.mta-viewer-shell,.pp-shell),
  body.manitas-public .mh-shell{border-radius:16px!important}
  body.manitas-app :is(.mta-card,.mj-card,.mp-card,.mch-card,.mch-panel,.mca-card,.ms-card,.mtc-card,.mtd-card,.miw-card,.mcall-card,.mco-card,.pp-card,.mta-contract-card,.mta-admin-card,.mta-ag-card,.mta-profile-form-card){padding:16px!important;border-radius:14px!important}
  body.manitas-app :is(.mp-grid-2,.mta-form-grid,.mta-admin-grid,.mta-admin-cards,.mj-actions-grid,.mj-info-grid,.mj-security-grid){grid-template-columns:1fr!important}
  body.manitas-app :is(button,.mta-btn,.mta-btn-primary,.mta-btn-secondary,.mj-btn,.mp-btn,.mch-btn,.mca-btn,.ms-btn,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn){min-height:46px!important}
  body.manitas-public .mh-hero{grid-template-columns:1fr!important;padding:24px 18px 18px!important}
  body.manitas-public .mh-tiles{grid-template-columns:1fr!important}
  body.manitas-public .mh-metrics{grid-template-columns:1fr 1fr!important}
}
@media (max-width:479px){
  body.manitas-public .mh-metrics{grid-template-columns:1fr!important}
  body.manitas-auth .ma-card{padding:22px 16px!important;border-radius:16px!important}
}

/* Reduced motion without sacrificing feedback. */
@media (prefers-reduced-motion:reduce){
  body.manitas-app *,body.manitas-auth *,body.manitas-public *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ==========================================================
 * RC15 — CONTENT VISIBILITY & RESPONSIVE HARDENING
 * Keeps every Manitas view readable in light UI, desktop and mobile.
 * ========================================================== */
body.manitas-app,body.manitas-auth,body.manitas-public{overflow-x:clip!important}
body.manitas-app :is(main,section,article,div,form,fieldset,nav,aside),
body.manitas-auth :is(main,section,article,div,form,fieldset),
body.manitas-public :is(main,section,article,div,form,fieldset,nav,aside){min-width:0}
body.manitas-app :is(p,li,td,th,label,span,strong,small,a),
body.manitas-auth :is(p,li,label,span,strong,small,a),
body.manitas-public :is(p,li,td,th,label,span,strong,small,a){overflow-wrap:anywhere;word-break:normal}
body.manitas-app pre,body.manitas-app code,body.manitas-public pre,body.manitas-public code{max-width:100%;overflow:auto}
body.manitas-app iframe,body.manitas-public iframe,body.manitas-auth iframe{max-width:100%}

/* Remaining legacy dark surfaces are converted to the shared light surface. */
body.manitas-app :is(.mta-msg,.mta-item,.miw-search,.miw-row,.ck-card,.pc-shell,.mtc-item,.mcall-msg,.mj-item,.ms-box,.ms-thumbs,.ms-metric,.ms-review,.mta-c-item,.mc-box){
  background:var(--manitas-surface-soft)!important;
  color:var(--manitas-text)!important;
  border-color:var(--manitas-border)!important;
}
body.manitas-app :is(.mta-pay .mta-shell,.mta-payinv .shell,.mta-contract-card,.mp-shell,.pp-shell){
  background:var(--manitas-surface)!important;
  color:var(--manitas-text)!important;
  border-color:var(--manitas-border)!important;
}
body.manitas-app :is(.mta-pay .box,.mta-payinv .box){background:var(--manitas-surface-soft)!important;color:var(--manitas-text)!important;border-color:var(--manitas-border)!important}
body.manitas-app .miw-row:hover{background:#f0f6f4!important}

/* Service detail: gallery, metrics and reviews must remain readable after light consolidation. */
body.manitas-app .ms-wrap,body.manitas-app .ms-wrap *{color:inherit}
body.manitas-app .ms-wrap :is(h1,h2,h3,h4,strong,.ms-title,.ms-price){color:var(--manitas-heading)!important}
body.manitas-app .ms-wrap :is(.ms-muted,.ms-meta,.ms-review small){color:var(--manitas-muted)!important}
body.manitas-app .ms-thumbs img{display:block;max-width:100%;height:auto}

/* Public technician CV. */
body.manitas-app .mtc-card{background:#fff!important;color:var(--manitas-text)!important;border-color:var(--manitas-border)!important;box-shadow:var(--manitas-shadow)!important}
body.manitas-app .mtc-item{background:var(--manitas-surface-soft)!important}
body.manitas-app .mtc-sub,body.manitas-app .mtc-muted{color:var(--manitas-muted)!important;opacity:1!important}
body.manitas-app .mtc-row>*{min-width:0}

/* Fixed/bottom navigation safe area: content and CTA must never sit underneath it. */
body.manitas-app{padding-bottom:max(82px,calc(70px + env(safe-area-inset-bottom)))!important}
body.manitas-app .mx-footerbar{padding-bottom:env(safe-area-inset-bottom)!important}
body.manitas-app :is(.mp-wizard-actions,.mta-sticky-actions,.mj-sticky-actions){bottom:max(76px,calc(66px + env(safe-area-inset-bottom)))!important}

/* Horizontal collections scroll rather than clip content. */
body.manitas-app :is(.mta-tabs,.mta-filters,.mta-chips,.mta-job-chat__quick,.mta-admin-filters,.mta-toolbar){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
body.manitas-app :is(.mta-tabs,.mta-job-chat__quick)::-webkit-scrollbar{height:4px}

/* Buttons and action rows can wrap instead of escaping cards. */
body.manitas-app :is(.mta-actions,.mj-actions,.mp-actions,.mch-actions,.mca-actions,.ms-actions,.mtc-actions,.mco-actions,.mcall-actions,.mta-admin-actions){flex-wrap:wrap!important;max-width:100%!important}
body.manitas-app :is(.mta-actions,.mj-actions,.mp-actions,.mch-actions,.mca-actions,.ms-actions,.mtc-actions,.mco-actions,.mcall-actions,.mta-admin-actions)>*{min-width:0}

/* Modal/viewer protection. */
body.manitas-app :is(.mta-modal,.mca-modal,.ms-modal,.mta-viewer,.mta-dialog){max-width:100vw!important;max-height:100dvh!important}
body.manitas-app :is(.mta-modal__body,.mca-modal__body,.ms-modal__body,.mta-viewer__body,.mta-dialog__body){max-height:calc(100dvh - 110px);overflow:auto}

@media(max-width:767px){
  body.manitas-app{padding-bottom:max(82px,calc(70px + env(safe-area-inset-bottom)))!important}
  body.manitas-app :is(.mta-table-wrap,.mp-table-wrap,.mta-admin-table-wrap){max-width:100vw!important;overflow-x:auto!important}
  body.manitas-app table{min-width:620px}
  body.manitas-app :is(.mta-btn,.mj-btn,.mp-btn,.mch-btn,.mca-btn,.ms-btn,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn){max-width:100%;white-space:normal!important;text-align:center}
  body.manitas-app .mta-job-chat__messages{height:min(55dvh,560px)!important;min-height:300px!important}
  body.manitas-app .mta-job-chat__composer{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
}
@media(max-width:380px){
  body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-wrap,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap){padding:8px!important}
  body.manitas-app :is(.mta-card,.mj-card,.mp-card,.mch-card,.mch-panel,.mca-card,.ms-card,.mtc-card,.mtd-card,.miw-card,.mcall-card,.mco-card,.pp-card){padding:14px!important}
}


/* RC18: el publicador debe permitir crecimiento vertical real. */
body.manitas-app .mp-wizard-shell{overflow:visible!important}
body.manitas-app #mpPublishForm,body.manitas-app .mp-step{overflow:visible!important}
body.manitas-app .mp-wizard-actions{position:static!important;bottom:auto!important}

/* ==========================================================
 * MANITAS 8.0 RC34 — VISUAL CERTIFICATION LAYER
 * 2026-08-23
 * Objetivo: una sola experiencia visual en todas las pantallas.
 * Esta capa NO modifica lógica, estados, consultas ni flujos de negocio.
 * ========================================================== */
:root{
  --manitas-font:Inter,"Plus Jakarta Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,Arial,sans-serif;
  --manitas-page:1180px;
  --manitas-page-wide:1440px;
  --manitas-gutter:clamp(12px,2.2vw,24px);
  --manitas-copy:15px;
  --manitas-copy-small:13px;
  --manitas-copy-micro:12px;
  --manitas-control:48px;
  --manitas-touch:44px;
}

/* 1. Tipografía y contraste: todos los módulos heredan la misma fuente. */
body.manitas-app,
body.manitas-auth,
body.manitas-public,
body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-profile,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap,.mta-box,.hpa-wrap,.hpt-wrap,.mta-support-wrap,.mta-rep-wrap,.mta-notifications-page,.mta-agenda-page,.mta-contract-shell,.mta59-wrap,.mtm,.ipf-wrap,.mta-inv,.mta-payinv,.ck-wrap,.pc-wrap,.mc-wrap,.mpromo-wrap){
  font-family:var(--manitas-font)!important;
  color:var(--manitas-text)!important;
}
body.manitas-app{font-size:var(--manitas-copy)}
body.manitas-app small,
body.manitas-auth small,
body.manitas-public small{font-size:var(--manitas-copy-small);line-height:1.45}
body.manitas-app :is(.md3-eyebrow,.md3-stat__label,.md3-stat__note,.md3-pending small,.md3-quick__copy small,.md3-feed__item small,.mx-footer-link,.mta-btn-label,.mta-action-hint,.mta-admin-k,.mp-step-dot em,.ms-k,.mtp-eyebrow,.mtp-facts span,.mta-viewer-top span){font-size:var(--manitas-copy-micro)!important;line-height:1.35!important}
body.manitas-app :is(p,li,dd,dt,label,input,textarea,select,button,td,th){font-family:var(--manitas-font)}
body.manitas-app :is(p,li,dd,dt){color:inherit}
body.manitas-app :is(.muted,.mta-muted,.mj-muted,.mp-muted,.mch-muted,.mca-muted,.ms-muted,.mtp-muted,.mtc-muted,.mco-muted,.pp-muted){color:var(--manitas-muted)!important;opacity:1!important}

/* 2. Canvas: un ancho normal, uno administrativo y gutters fluidos. */
body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-profile,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap,.hpa-wrap,.hpt-wrap,.mta-support-wrap,.mta-rep-wrap,.mta-notifications-page,.mta-agenda-page,.mta-contract-shell,.mtm,.ipf-wrap,.ck-wrap,.pc-wrap,.mc-wrap,.mpromo-wrap),
body.manitas-public :is(.mh-public,.mta-wrap,.mp-wrap,.ms-wrap,.mtm){
  width:min(calc(100% - (var(--manitas-gutter) * 2)),var(--manitas-page))!important;
  max-width:var(--manitas-page)!important;
  min-width:0!important;
  margin:24px auto 104px!important;
  padding:0!important;
}
body.manitas-app.manitas-admin-panel :is(.mta-admin-app,.mta59-wrap){
  width:min(calc(100% - (var(--manitas-gutter) * 2)),var(--manitas-page-wide))!important;
  max-width:var(--manitas-page-wide)!important;
  margin-inline:auto!important;
}
body.manitas-app :is(.mta-box){max-width:var(--manitas-page)!important;margin-inline:auto!important}
body.manitas-app :is(main,#main,.site-main,.entry-content,.page-content){min-width:0}

/* 3. Superficies y tarjetas: mismo lenguaje visual. */
body.manitas-app :is(.mta-card,.mj-card,.mp-card,.mch-card,.mch-panel,.mca-card,.ms-card,.ms-box,.mtp-section,.mtp-booking-card,.mtc-card,.mtd-card,.miw-card,.mcall-card,.mco-card,.pp-card,.mta-contract-card,.mta-admin-card,.mta-ag-card,.mta-profile-form-card,.mta59-card,.mtm-card,.ipf-card,.ck-card,.pc-card,.mc-card),
body.manitas-auth .ma-card{
  background:var(--manitas-surface)!important;
  color:var(--manitas-text)!important;
  border:1px solid var(--manitas-border)!important;
  border-radius:var(--manitas-r-card)!important;
  box-shadow:var(--manitas-shadow-sm)!important;
}
body.manitas-app :is(.mta-shell,.mj-shell,.mp-shell,.mch-shell,.mkyc-shell,.mta-pk-shell,.mta-contract-shell,.mta-profile-shell,.mta-support-shell,.mta-viewer-shell,.pp-shell){
  background:var(--manitas-surface)!important;
  color:var(--manitas-text)!important;
  border-color:var(--manitas-border)!important;
  box-shadow:var(--manitas-shadow)!important;
}

/* 4. Encabezados: jerarquía constante y legible. */
body.manitas-app h1{font-size:clamp(28px,3.4vw,40px)!important;line-height:1.08!important;margin-top:0}
body.manitas-app h2{font-size:clamp(22px,2.5vw,30px)!important;line-height:1.15!important}
body.manitas-app h3{font-size:clamp(18px,2vw,22px)!important;line-height:1.2!important}
body.manitas-app :is(h1,h2,h3,h4,.mta-title,.mj-title,.mp-title,.mch-title,.mca-title,.ms-title,.mtp-name-block h1,.mtc-title,.mco-title,.mcall-title,.pp-title){color:var(--manitas-heading)!important;font-family:var(--manitas-font)!important}

/* 5. Formularios: mismo tamaño, contraste y comportamiento en iPhone/Android. */
body.manitas-app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea),
body.manitas-auth :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){
  width:100%;max-width:100%;min-height:var(--manitas-control);
  background:#fff!important;color:var(--manitas-text)!important;
  border:1px solid var(--manitas-border-strong)!important;
  border-radius:var(--manitas-r)!important;
  font-family:var(--manitas-font)!important;font-size:15px!important;line-height:1.4;
  box-sizing:border-box;
}
body.manitas-app textarea,body.manitas-auth textarea{min-height:110px;height:auto;padding:12px 14px}
body.manitas-app :is(input,select,textarea):focus,
body.manitas-auth :is(input,select,textarea):focus{border-color:var(--manitas-primary)!important;box-shadow:0 0 0 4px rgba(128,195,66,.16)!important;outline:0!important}
body.manitas-app :is(input,textarea)::placeholder,
body.manitas-auth :is(input,textarea)::placeholder{color:#7b8a9d!important;opacity:1}
body.manitas-app label,body.manitas-auth label{color:var(--manitas-text);font-weight:750}

/* 6. Botones y acciones táctiles. */
body.manitas-app :is(button,.button,.mta-btn,.mj-btn,.mp-btn,.mch-btn,.mca-btn,.ms-btn,.mtp-primary,.mtp-secondary,.mtp-whatsapp,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn),
body.manitas-auth :is(button,.ma-btn,.ma-pass-action,.ma-inmoplus-btn,input[type="submit"]){
  min-height:var(--manitas-touch);
  border-radius:var(--manitas-r)!important;
  font-family:var(--manitas-font)!important;
  font-size:14px;font-weight:850;line-height:1.2;
}
body.manitas-app :is(.mta-actions,.mj-actions,.mp-actions,.mch-actions,.mca-actions,.ms-actions,.mtc-actions,.mco-actions,.mcall-actions,.mta-admin-actions){gap:10px}

/* 7. Tablas: escritorio limpio, móvil siempre desplazable y sin cortar contenido. */
body.manitas-app :is(.mta-table-wrap,.mp-table-wrap,.mta-admin-table-wrap,.table-responsive){width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--manitas-r-card)}
body.manitas-app table{width:100%;max-width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
body.manitas-app th{font-size:12px!important;line-height:1.35;color:var(--manitas-muted)!important;font-weight:850;text-transform:none;letter-spacing:.02em}
body.manitas-app td{color:var(--manitas-text);line-height:1.45}

/* 8. Reparación explícita de Previsión: ningún texto claro sobre superficie clara. */
body.manitas-app .pp-wrap{color:var(--manitas-text)!important}
body.manitas-app .pp-shell{background:#fff!important;color:var(--manitas-text)!important;border-color:var(--manitas-border)!important;box-shadow:var(--manitas-shadow)!important}
body.manitas-app .pp-title{color:var(--manitas-heading)!important}
body.manitas-app .pp-list li{color:#475569!important;border-color:var(--manitas-border)!important;font-size:13px!important;line-height:1.5!important}
body.manitas-app .pp-note{background:var(--manitas-surface-soft)!important;color:#475569!important;border-color:var(--manitas-border)!important;font-size:13px!important;line-height:1.55!important}

/* 9. Chat/Jobs/Pagos: neutraliza tamaños heredados sin alterar su lógica. */
body.manitas-app :is(.mch-wrap,.miw-wrap,.mta-wrap,.mj-wrap,.mp-wrap,.mco-wrap,.mc-wrap){color:var(--manitas-text)!important}
body.manitas-app :is(.mch-empty span,.mch-meta,.mch-time,.mta-action-hint,.mta-jobs-table td::before,.mj-meta,.mp-help,.mco-help){font-size:12px!important;line-height:1.4!important}
body.manitas-app :is(.mch-message,.mta-job-chat__message,.mta-jobs-table td,.mj-card,.mp-card){font-size:14px;line-height:1.5}
body.manitas-app .mta-job-chat__messages{max-width:100%;overflow-x:hidden}
body.manitas-app .mta-job-chat__composer{min-width:0}
body.manitas-app .mta-job-chat__composer>*{min-width:0}

/* 10. Login/registro: misma familia y anchura, sin estilos del theme anfitrión. */
body.manitas-auth .ma-card{width:min(100%,480px)!important;max-width:480px!important}
body.manitas-auth :is(.ma-wrap,.ma-card,.ma-card *){font-family:var(--manitas-font)!important}
body.manitas-auth .ma-card :is(h1,h2,h3){color:var(--manitas-heading)!important}

/* 11. Navegación: texto mínimo legible y áreas táctiles consistentes. */
body.manitas-app .mx-footer-link{font-size:12px!important;line-height:1.15!important;min-height:48px}
body.manitas-app :is(.mx-footer-link,.mx-drawer a,.mx-appbar a){font-family:var(--manitas-font)!important}
body.manitas-app .mx-footerbar__inner{width:min(100%,680px)!important}

/* 12. Responsive certificado: 1024 / 768 / 480 como barreras maestras.
 * Los breakpoints internos pueden especializar componentes, pero no romper canvas. */
@media (max-width:1023px){
  body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-profile,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap,.hpa-wrap,.hpt-wrap,.mta-support-wrap,.mta-rep-wrap,.mta-notifications-page,.mta-agenda-page,.mta-contract-shell,.mtm,.ipf-wrap,.ck-wrap,.pc-wrap,.mc-wrap,.mpromo-wrap),
  body.manitas-public :is(.mh-public,.mta-wrap,.mp-wrap,.ms-wrap,.mtm){
    width:calc(100% - 24px)!important;max-width:none!important;margin:16px auto 92px!important;
  }
  body.manitas-app :is(.mtp-layout,.mta-layout,.mch-layout,.mj-layout,.mp-layout){min-width:0;max-width:100%}
}
@media (max-width:767px){
  html,body{max-width:100%;overflow-x:hidden}
  body.manitas-app,body.manitas-auth,body.manitas-public{font-size:15px!important}
  body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-profile,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap,.hpa-wrap,.hpt-wrap,.mta-support-wrap,.mta-rep-wrap,.mta-notifications-page,.mta-agenda-page,.mta-contract-shell,.mtm,.ipf-wrap,.ck-wrap,.pc-wrap,.mc-wrap,.mpromo-wrap),
  body.manitas-public :is(.mh-public,.mta-wrap,.mp-wrap,.ms-wrap,.mtm){
    width:100%!important;max-width:100%!important;margin:0 auto 88px!important;padding:12px!important;
  }
  body.manitas-app :is(.mta-shell,.mj-shell,.mp-shell,.mch-shell,.mkyc-shell,.mta-pk-shell,.mta-contract-shell,.mta-profile-shell,.mta-support-shell,.mta-viewer-shell,.pp-shell){width:100%!important;max-width:100%!important;border-radius:16px!important}
  body.manitas-app :is(.mta-card,.mj-card,.mp-card,.mch-card,.mch-panel,.mca-card,.ms-card,.ms-box,.mtp-section,.mtp-booking-card,.mtc-card,.mtd-card,.miw-card,.mcall-card,.mco-card,.pp-card,.mta-contract-card,.mta-admin-card,.mta-ag-card,.mta-profile-form-card,.mta59-card,.mtm-card,.ipf-card,.ck-card,.pc-card,.mc-card){padding:16px!important;border-radius:14px!important}
  body.manitas-app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea),
  body.manitas-auth :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){font-size:16px!important;min-height:48px}
  body.manitas-app :is(button,.button,.mta-btn,.mj-btn,.mp-btn,.mch-btn,.mca-btn,.ms-btn,.mtp-primary,.mtp-secondary,.mtp-whatsapp,.mtd-btn,.miw-btn,.mcall-btn,.mco-btn,.pp-btn){min-height:46px}
  body.manitas-app :is(.mtp-layout,.mta-layout,.mch-layout,.mj-layout,.mp-layout,.mkyc-grid,.mkyc-files,.mp-grid-2,.mta-form-grid,.mta-admin-grid,.mta-admin-cards,.mj-actions-grid,.mj-info-grid,.mj-security-grid){grid-template-columns:1fr!important}
  body.manitas-app :is(.mta-actions,.mj-actions,.mp-actions,.mch-actions,.mca-actions,.ms-actions,.mtc-actions,.mco-actions,.mcall-actions,.mta-admin-actions)>*{max-width:100%}
  body.manitas-app table{min-width:600px}
  body.manitas-app .mta-jobs-table{min-width:0}
  body.manitas-app .mta-job-chat__messages{height:min(55dvh,560px)!important;min-height:280px!important}
}
@media (max-width:479px){
  body.manitas-app :is(.mta-wrap,.mj-wrap,.mp-wrap,.mch-wrap,.mca-wrap,.ms-wrap,.mtp-profile,.mtc-wrap,.mtd-wrap,.miw-wrap,.mcall-wrap,.mco-wrap,.pp-wrap,.hpa-wrap,.hpt-wrap,.mta-support-wrap,.mta-rep-wrap,.mta-notifications-page,.mta-agenda-page,.mta-contract-shell,.mtm,.ipf-wrap,.ck-wrap,.pc-wrap,.mc-wrap,.mpromo-wrap){padding:9px!important}
  body.manitas-auth .ma-wrap{padding:12px 10px!important}
  body.manitas-auth .ma-card{padding:20px 15px!important;border-radius:16px!important}
  body.manitas-app h1{font-size:clamp(26px,8vw,32px)!important}
  body.manitas-app h2{font-size:clamp(21px,6.5vw,27px)!important}
  body.manitas-app .mx-footer-link{font-size:12px!important;padding-inline:4px!important}
}

/* 13. Accesibilidad visual y movimiento. */
body.manitas-app :is(a,button,input,select,textarea):focus-visible,
body.manitas-auth :is(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(128,195,66,.36)!important;outline-offset:2px!important}
body.manitas-app a:not(.button):not([class*="btn"]){text-underline-offset:2px}
@media (prefers-contrast:more){
  body.manitas-app,body.manitas-auth{--manitas-muted:#526174;--manitas-border:#c8d2dc;--manitas-border-strong:#9fb0be}
}

/* RC34 table containment: only true table containers scroll horizontally. */
@media (max-width:767px){
  body.manitas-app table{min-width:0!important}
  body.manitas-app :is(.mta-table-wrap,.mp-table-wrap,.mta-admin-table-wrap,.mta59-audit,.table-responsive) table{min-width:600px!important}
  body.manitas-app :is(.mta-table-wrap,.mp-table-wrap,.mta-admin-table-wrap,.mta59-audit,.table-responsive){overflow-x:auto!important;max-width:100%!important;-webkit-overflow-scrolling:touch}
  body.manitas-app .mta-jobs-table{min-width:0!important}
}


/* ==========================================================
 * MANITAS RC37 — Role-driven visual governance
 * Unifica cliente/técnico/admin y normaliza Office, Perfil,
 * Publicar, Mis Servicios, Mis Pagos, Billetera y Mis Trabajos.
 * ========================================================== */
body.manitas-app{
  --mta-role-accent:#005C67;
  --mta-role-soft:#edf8f9;
  --mta-role-soft-2:#f5fbfb;
  --mta-role-border:#d7ebee;
  --mta-role-ink:#0f3640;
}
body.manitas-app.manitas-role-cliente{
  --mta-role-accent:#80C342;
  --mta-role-soft:#eef8e7;
  --mta-role-soft-2:#f8fdf4;
  --mta-role-border:#d9ebc9;
  --mta-role-ink:#476f22;
}
body.manitas-app.manitas-role-tecnico{
  --mta-role-accent:#005C67;
  --mta-role-soft:#edf8f9;
  --mta-role-soft-2:#f5fbfb;
  --mta-role-border:#d7ebee;
  --mta-role-ink:#0f3640;
}
body.manitas-app.manitas-role-admin{
  --mta-role-accent:#1E3A5F;
  --mta-role-soft:#eef3f8;
  --mta-role-soft-2:#f7faff;
  --mta-role-border:#d5e0eb;
  --mta-role-ink:#17314f;
}
body.manitas-app .mx-dot{background:var(--mta-role-accent)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--mta-role-accent) 18%, white)!important}
body.manitas-app .mx-user-pill{display:flex!important;align-items:center!important;gap:10px!important;min-height:46px!important;padding:8px 12px!important}
body.manitas-app .mx-user-meta{display:grid!important;min-width:0!important;line-height:1.05!important}
body.manitas-app .mx-user-name{max-width:170px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.manitas-app .mx-user-role{margin-top:3px!important;color:var(--mta-role-accent)!important;font-size:12px!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important}
body.manitas-app .mx-btn-top:hover{background:var(--mta-role-soft)!important;border-color:var(--mta-role-border)!important;color:var(--mta-role-accent)!important}
body.manitas-app .mx-menu>a.is-active{box-shadow:inset 3px 0 0 var(--mta-role-accent)!important}
body.manitas-app .mx-menu>a.is-active .mx-menu-icon{background:color-mix(in srgb,var(--mta-role-accent) 16%, white)!important;color:var(--mta-role-accent)!important}
body.manitas-app .mx-footer-link.is-active{color:var(--mta-role-accent)!important}
body.manitas-app .mx-footer-link.is-active .mx-icon{background:var(--mta-role-soft)!important;color:var(--mta-role-accent)!important}
body.manitas-app .mx-footer-link.is-active::after{background:var(--mta-role-accent)!important}
body.manitas-app .mta-master-guide__q,
body.manitas-app .mta-master-guide__top{background:var(--mta-role-accent)!important}
body.manitas-app .mta-master-guide__launcher:hover{border-color:var(--mta-role-accent)!important}
body.manitas-app .mta-master-guide__hero>span{background:var(--mta-role-soft)!important;color:var(--mta-role-ink)!important}
body.manitas-app .mta-master-guide__section h3{color:var(--mta-role-accent)!important}

body.manitas-app.manitas-page-office .md3-shell,
body.manitas-app.manitas-page-publish .mp-wizard-shell,
body.manitas-app.manitas-page-myservices .mca-card,
body.manitas-app.manitas-page-mypayments .mta-pay .mta-shell,
body.manitas-app.manitas-page-wallet .ipf-panel,
body.manitas-app.manitas-page-jobs .mj-card,
body.manitas-app.manitas-page-profile .mta-profile-form-card,
body.manitas-app.manitas-page-profile .mta-profile-hero{
  border-radius:24px!important;
  border:1px solid var(--mta-role-border)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
}

body.manitas-app.manitas-page-office .md3-hero,
body.manitas-app.manitas-page-publish .mp-wizard-head,
body.manitas-app.manitas-page-myservices .mca-head,
body.manitas-app.manitas-page-mypayments .mta-pay .mta-head,
body.manitas-app.manitas-page-wallet .ipf-hero,
body.manitas-app.manitas-page-jobs .mj-head,
body.manitas-app.manitas-page-profile .mta-profile-hero{
  background:linear-gradient(135deg,var(--mta-role-soft-2) 0%,var(--mta-role-soft) 100%)!important;
  border:1px solid var(--mta-role-border)!important;
  border-radius:24px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.06)!important;
  color:#172033!important;
}
body.manitas-app.manitas-page-office .md3-hero,
body.manitas-app.manitas-page-publish .mp-wizard-head,
body.manitas-app.manitas-page-wallet .ipf-hero,
body.manitas-app.manitas-page-jobs .mj-head,
body.manitas-app.manitas-page-profile .mta-profile-hero{padding:24px!important}
body.manitas-app.manitas-page-myservices .mca-head{padding:22px 24px!important}
body.manitas-app.manitas-page-mypayments .mta-pay .mta-head{padding:18px 18px!important}

body.manitas-app.manitas-page-office .md3-hero .md3-eyebrow,
body.manitas-app.manitas-page-publish .mp-kicker,
body.manitas-app.manitas-page-wallet .ipf-eyebrow,
body.manitas-app.manitas-page-profile .mta-profile-role,
body.manitas-app.manitas-page-jobs .mj-chip.active,
body.manitas-app.manitas-page-myservices .mca-title-icon,
body.manitas-app.manitas-page-myservices .mca-count,
body.manitas-app.manitas-page-myservices .mca-service-card__quality,
body.manitas-app.manitas-page-myservices .mca-badge--verified{
  background:var(--mta-role-soft)!important;
  color:var(--mta-role-ink)!important;
  border-color:var(--mta-role-border)!important;
}
body.manitas-app.manitas-page-office .md3-hero h1,
body.manitas-app.manitas-page-publish .mp-wizard-head h1,
body.manitas-app.manitas-page-wallet .ipf-hero h1,
body.manitas-app.manitas-page-jobs .mj-title,
body.manitas-app.manitas-page-myservices .mca-title,
body.manitas-app.manitas-page-profile .mta-profile-identity h1,
body.manitas-app.manitas-page-mypayments .mta-pay .mta-title{color:#172033!important}
body.manitas-app.manitas-page-office .md3-hero p,
body.manitas-app.manitas-page-publish .mp-wizard-head p,
body.manitas-app.manitas-page-wallet .ipf-hero p,
body.manitas-app.manitas-page-jobs .mj-sub,
body.manitas-app.manitas-page-myservices .mca-subtitle,
body.manitas-app.manitas-page-profile .mta-profile-identity p,
body.manitas-app.manitas-page-profile .mta-profile-score span,
body.manitas-app.manitas-page-mypayments .mta-pay .mta-sub{color:#5b6778!important;opacity:1!important}

body.manitas-app.manitas-page-office .md3-hero__brand,
body.manitas-app.manitas-page-wallet .ipf-btn-light,
body.manitas-app.manitas-page-jobs .mj-chip,
body.manitas-app.manitas-page-jobs .mj-pill,
body.manitas-app.manitas-page-myservices .mca-filters,
body.manitas-app.manitas-page-mypayments .mta-pay .box,
body.manitas-app.manitas-page-wallet .ipf-cards article,
body.manitas-app.manitas-page-profile .mta-profile-score{
  background:#fff!important;
  border:1px solid #e4ebf2!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
body.manitas-app.manitas-page-wallet .ipf-btn-light,
body.manitas-app.manitas-page-office .md3-hero__brand strong,
body.manitas-app.manitas-page-wallet .ipf-cards strong,
body.manitas-app.manitas-page-mypayments .mta-pay .mta-btn,
body.manitas-app.manitas-page-jobs .mj-chip.active,
body.manitas-app.manitas-page-jobs .mj-v,
body.manitas-app.manitas-page-myservices .mca-filter-btn,
body.manitas-app.manitas-page-myservices .mca-title-icon,
body.manitas-app.manitas-page-profile .mta-profile-role{color:var(--mta-role-accent)!important}
body.manitas-app.manitas-page-myservices .mca-filter-btn,
body.manitas-app.manitas-page-wallet .ipf-btn-light,
body.manitas-app.manitas-page-mypayments .mta-pay .mta-btn:hover,
body.manitas-app.manitas-page-jobs .mj-chip.active{border-color:var(--mta-role-border)!important}

body.manitas-app.manitas-page-publish .mp-quality-ring{background:conic-gradient(var(--mta-role-accent) 0deg,#e8edf3 0)!important}
body.manitas-app.manitas-page-publish .mp-step-dot.is-active,
body.manitas-app.manitas-page-publish .mp-step-dot.is-done{color:var(--mta-role-accent)!important}
body.manitas-app.manitas-page-publish .mp-step-dot.is-active span,
body.manitas-app.manitas-page-publish .mp-step-dot.is-done span,
body.manitas-app.manitas-page-publish .mp-step-title>span,
body.manitas-app.manitas-page-publish .mp-days input:checked+span,
body.manitas-app.manitas-page-publish .mp-btn-primary{background:var(--mta-role-accent)!important;color:#fff!important;border-color:var(--mta-role-accent)!important}
body.manitas-app.manitas-page-publish .mp-field input:focus,
body.manitas-app.manitas-page-publish .mp-field textarea:focus,
body.manitas-app.manitas-page-publish .mp-field select:focus{border-color:var(--mta-role-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--mta-role-accent) 15%, white)!important}
body.manitas-app.manitas-page-publish .mp-price-options input:checked+span,
body.manitas-app.manitas-page-publish .mp-stepper,
body.manitas-app.manitas-page-publish .mp-step{border-color:#e4ebf2!important;box-shadow:0 10px 26px rgba(15,23,42,.05)!important}

body.manitas-app.manitas-page-myservices .mca-btn.primary,
body.manitas-app.manitas-page-jobs .mj-btn.primary,
body.manitas-app.manitas-page-profile button[type="submit"]{
  background:var(--mta-role-accent)!important;
  border-color:var(--mta-role-accent)!important;
  color:#fff!important;
  box-shadow:0 10px 24px color-mix(in srgb,var(--mta-role-accent) 20%, transparent)!important;
}
body.manitas-app.manitas-page-myservices .mca-btn.primary:hover,
body.manitas-app.manitas-page-jobs .mj-btn.primary:hover{filter:brightness(.96)!important}
body.manitas-app.manitas-page-jobs .mj-item{background:#fff!important;border:1px solid #e4ebf2!important;box-shadow:0 8px 18px rgba(15,23,42,.04)!important}
body.manitas-app.manitas-page-jobs .mj-item.hl{border-color:var(--mta-role-border)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--mta-role-accent) 16%, white) inset!important}
body.manitas-app.manitas-page-jobs .mj-pill.ok{background:#ecfdf3!important}
body.manitas-app.manitas-page-jobs .mj-pill.mid{background:#eff6ff!important}
body.manitas-app.manitas-page-jobs .mj-pill.warn{background:#fff7e7!important}
body.manitas-app.manitas-page-jobs .mj-pill.bad{background:#fff1f2!important}

body.manitas-app.manitas-page-profile .mta-profile-role,
body.manitas-app.manitas-page-profile .mta-profile-score strong,
body.manitas-app.manitas-page-profile .mta-profile-identity h1{color:#172033!important}
body.manitas-app.manitas-page-profile .mta-profile-role{display:inline-flex!important;align-items:center!important;padding:8px 12px!important;border-radius:999px!important;font-weight:900!important}
body.manitas-app.manitas-page-profile .mta-profile-avatar{box-shadow:0 0 0 4px rgba(255,255,255,.8),0 0 0 8px color-mix(in srgb,var(--mta-role-accent) 16%, white)!important}
body.manitas-app.manitas-page-profile .mta-profile-form-card input,
body.manitas-app.manitas-page-profile .mta-profile-form-card textarea,
body.manitas-app.manitas-page-profile .mta-profile-form-card select{background:#fff!important;border:1px solid #d9e3ee!important;color:#172033!important}
body.manitas-app.manitas-page-profile .mta-profile-form-card input:focus,
body.manitas-app.manitas-page-profile .mta-profile-form-card textarea:focus,
body.manitas-app.manitas-page-profile .mta-profile-form-card select:focus{border-color:var(--mta-role-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--mta-role-accent) 14%, white)!important;outline:none!important}

body.manitas-app.manitas-page-wallet .ipf-wrap,
body.manitas-app.manitas-page-jobs .mj-wrap,
body.manitas-app.manitas-page-mypayments .mta-pay,
body.manitas-app.manitas-page-myservices .mca-wrap,
body.manitas-app.manitas-page-publish .mp-wizard-shell,
body.manitas-app.manitas-page-profile .mta-profile-shell{padding-top:18px!important}

@media(max-width:1023px){
  body.manitas-app .mx-user-pill{display:none!important}
}
@media(max-width:760px){
  body.manitas-app.manitas-page-office .md3-hero,
  body.manitas-app.manitas-page-publish .mp-wizard-head,
  body.manitas-app.manitas-page-myservices .mca-head,
  body.manitas-app.manitas-page-mypayments .mta-pay .mta-head,
  body.manitas-app.manitas-page-wallet .ipf-hero,
  body.manitas-app.manitas-page-jobs .mj-head,
  body.manitas-app.manitas-page-profile .mta-profile-hero{padding:18px!important;border-radius:18px!important}
}

/* ==========================================================
 * MANITAS RC38 — Cabeceras operativas bajo una misma gramática visual
 * Los módulos conservan su contenido, pero no inventan una paleta propia.
 * ========================================================== */
body.manitas-app :is(
  .mkyc-hero,
  .mta-notifications-hero,
  .mtd-hero,
  .mtm-hero,
  .mta-contract-hero,
  .mta59-hero,
  .mta-agenda-page>header
){
  background:linear-gradient(135deg,var(--mta-role-soft-2),var(--mta-role-soft))!important;
  color:#172033!important;
  border:1px solid var(--mta-role-border)!important;
  border-radius:24px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.06)!important;
}
body.manitas-app :is(
  .mkyc-hero,
  .mta-notifications-hero,
  .mtd-hero,
  .mtm-hero,
  .mta-contract-hero,
  .mta59-hero,
  .mta-agenda-page>header
) :is(h1,h2,strong){color:#172033!important}
body.manitas-app :is(
  .mkyc-hero,
  .mta-notifications-hero,
  .mtd-hero,
  .mtm-hero,
  .mta-contract-hero,
  .mta59-hero,
  .mta-agenda-page>header
) p{color:#5b6778!important;opacity:1!important}
body.manitas-app :is(
  .mkyc-eyebrow,
  .mta-notifications-hero>div>span,
  .mtd-hero>div>span,
  .mtm-eyebrow,
  .mta-contract-kicker,
  .mta59-hero span,
  .mta-agenda-page>header>span
){color:var(--mta-role-accent)!important;opacity:1!important}
body.manitas-app :is(
  .mkyc-submit,
  .mta-notifications-hero button,
  .mta-notifications-settings button,
  .mtd-btn:not(.secondary):not(.danger),
  .mta-agenda-page button
){background:var(--mta-role-accent)!important;color:#fff!important;border-color:var(--mta-role-accent)!important}
body.manitas-app :is(
  .mkyc-card,
  .mta-notifications-list,
  .mta-notifications-settings,
  .mtd-guide,.mtd-panel,.mtd-form,.mtd-card,
  .mta-contract-card,
  .mta-agenda-panel
){border-color:#e2e8f0!important;box-shadow:0 10px 28px rgba(15,23,42,.05)!important}

/* Estado/rol: la identidad se reconoce sin cambiar la marca completa. */
body.manitas-app.manitas-role-cliente .mx-brand-copy::after,
body.manitas-app.manitas-role-tecnico .mx-brand-copy::after,
body.manitas-app.manitas-role-admin .mx-brand-copy::after{
  display:inline-flex;align-items:center;width:max-content;margin-top:3px;padding:3px 7px;border-radius:999px;
  background:var(--mta-role-soft);color:var(--mta-role-ink);font-size:12px;font-weight:900;line-height:1.15;
}
body.manitas-app.manitas-role-cliente .mx-brand-copy::after{content:"Área Cliente"}
body.manitas-app.manitas-role-tecnico .mx-brand-copy::after{content:"Área Técnico"}
body.manitas-app.manitas-role-admin .mx-brand-copy::after{content:"Administración"}
@media(max-width:1023px){body.manitas-app .mx-brand-copy::after{display:none!important}}
body.manitas-app.manitas-role-cliente{background:#f8fbf5!important}
body.manitas-app.manitas-role-tecnico{background:#f5fafb!important}
body.manitas-app.manitas-role-admin{background:#f7f9fc!important}
