:root{--armador-orange:#f97316;--armador-gold:#ffb020;--armador-dark:#0b0b0c;--armador-text:#0f172a;--armador-muted:#64748b;--armador-line:#e5e7eb;--armador-bg:#f1f5f9;--armador-card:#fff;--armador-green:#22c55e;--armador-red:#ef4444}
.armador-wrap{margin:0 0 0 -20px}.armador-app{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 32px);background:linear-gradient(135deg,#f7ede7 0%,#eef4fb 55%,#f8fafc 100%);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--armador-text)}.armador-sidebar{background:#08090b;color:#fff;padding:20px 16px;position:sticky;top:0;height:100vh;box-sizing:border-box;display:flex;flex-direction:column;gap:10px}.armador-brand{display:flex;align-items:center;gap:12px;margin-bottom:16px}.armador-logo{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--armador-orange),var(--armador-gold));display:grid;place-items:center;font-weight:900}.armador-brand strong{display:block;font-size:16px}.armador-brand span{display:block;color:#cbd5e1;font-size:12px}.armador-nav{width:100%;border:1px solid #20242a;background:#15171b;color:#fff;border-radius:12px;padding:12px 14px;text-align:left;font-weight:800;cursor:pointer}.armador-nav:hover,.armador-nav.is-active{background:#fff;color:#09090b;border-color:#fff}.armador-sidebar-card{margin-top:auto;border:1px solid #27272a;background:#171717;border-radius:16px;padding:16px;display:grid;gap:4px}.armador-sidebar-card span{display:inline-block;width:max-content;background:#fff7ed;color:#c2410c;border-radius:20px;padding:3px 8px;font-size:11px;font-weight:900}.armador-sidebar-card small{color:#cbd5e1}.armador-main{padding:24px;min-width:0}.armador-hero{background:#fff;border-radius:24px;padding:24px;display:flex;justify-content:space-between;gap:24px;align-items:center;box-shadow:0 20px 60px rgba(15,23,42,.06);margin-bottom:22px}.armador-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--armador-orange);font-weight:900}.armador-hero h1{margin:6px 0;font-size:28px;line-height:1.12}.armador-hero p{margin:0;color:var(--armador-muted)}.armador-actions,.armador-row,.armador-card-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.armador-btn{border:0;border-radius:12px;background:var(--armador-orange);color:#111827;padding:11px 16px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:8px;text-decoration:none}.armador-btn.ghost{background:#fff;border:1px solid var(--armador-line);color:#0f172a}.armador-btn.green{background:var(--armador-green);color:#fff}.armador-btn.red{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.armador-btn.small{padding:8px 12px;border-radius:10px;font-size:12px}.file-label{position:relative;overflow:hidden}.armador-tab{display:none}.armador-tab.is-active{display:block}.armador-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px}.armador-grid.three{grid-template-columns:340px 1fr 360px}.armador-card{background:#fff;border-radius:22px;padding:20px;box-shadow:0 18px 50px rgba(15,23,42,.06);border:1px solid rgba(226,232,240,.8)}.armador-card h2,.armador-card h3{margin:0 0 8px}.armador-card p{color:var(--armador-muted);margin:0 0 14px}.armador-field{display:grid;gap:6px;margin-bottom:12px}.armador-field span{font-size:12px;font-weight:900}.armador-field input,.armador-field select,.armador-field textarea,.armador-search{border:1px solid #dbe3ef;border-radius:12px;padding:11px 12px;width:100%;box-sizing:border-box;background:#fff;color:#0f172a}.armador-field textarea{min-height:72px}.armador-search{margin-bottom:12px}.armador-list{display:grid;gap:10px;max-height:640px;overflow:auto;padding-right:4px}.armador-item{border:1px solid var(--armador-line);border-radius:16px;padding:13px;background:#fff;cursor:pointer}.armador-item:hover,.armador-item.is-active{border-color:var(--armador-orange);box-shadow:0 0 0 2px rgba(249,115,22,.12)}.armador-item strong{display:block}.armador-item small{display:block;color:var(--armador-muted);line-height:1.4}.armador-badge{display:inline-block;border-radius:999px;background:#f1f5f9;color:#334155;padding:3px 8px;font-size:11px;font-weight:900;margin-top:8px}.armador-table{width:100%;border-collapse:separate;border-spacing:0 8px}.armador-table th{text-align:left;font-size:12px;color:#475569}.armador-table td{background:#fff;border-top:1px solid var(--armador-line);border-bottom:1px solid var(--armador-line);padding:12px}.armador-table td:first-child{border-left:1px solid var(--armador-line);border-radius:12px 0 0 12px}.armador-table td:last-child{border-right:1px solid var(--armador-line);border-radius:0 12px 12px 0}.armador-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.armador-kpi{background:#fff;border-radius:18px;padding:18px;border:1px solid var(--armador-line)}.armador-kpi span{display:block;color:var(--armador-muted);font-size:12px;font-weight:800}.armador-kpi strong{font-size:28px}.armador-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:12px;font-size:13px;margin:12px 0}.armador-success{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;border-radius:14px;padding:12px;font-size:13px;margin:12px 0}.armador-empty{border:1px dashed #cbd5e1;border-radius:18px;padding:28px;text-align:center;color:#64748b}.armador-lines{display:grid;gap:10px}.armador-line{display:grid;grid-template-columns:2fr .8fr .9fr auto;gap:8px;align-items:end;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.armador-line input,.armador-line select{border:1px solid #dbe3ef;border-radius:10px;padding:10px}.armador-total{margin-top:14px;margin-left:auto;max-width:380px;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden}.armador-total div{display:flex;justify-content:space-between;padding:11px 14px;border-bottom:1px solid #e5e7eb}.armador-total div:last-child{border-bottom:0;background:#111827;color:#fff;font-size:18px;font-weight:900}.armador-toast{position:fixed;right:24px;bottom:24px;background:#111827;color:#fff;border-radius:14px;padding:14px 18px;z-index:99999;box-shadow:0 20px 60px rgba(0,0,0,.25);font-weight:800}.armador-login-box{max-width:520px;margin:80px auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:28px;text-align:center;box-shadow:0 20px 60px rgba(15,23,42,.08)}.armador-login-btn{background:#f97316;color:#111827;padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:900;display:inline-block}.armador-muted{color:#64748b}.armador-danger-text{color:#be123c}.armador-user-pass{background:#111827;color:#fff;padding:12px;border-radius:12px;margin-top:10px;font-family:monospace}.armador-product-preview{display:grid;grid-template-columns:80px 1fr;gap:12px;align-items:center}.armador-product-preview img{width:80px;height:80px;object-fit:cover;border-radius:12px;background:#f1f5f9}.armador-method-items{display:grid;gap:8px;margin-top:12px}.armador-method-row{display:grid;grid-template-columns:1.2fr 1.8fr auto;gap:8px}.armador-method-row input,.armador-method-row select{border:1px solid #dbe3ef;border-radius:10px;padding:10px}.armador-help-code{background:#0f172a;color:#fff;border-radius:12px;padding:12px;font-family:monospace;white-space:pre-wrap}.armador-subtabs{display:flex;gap:8px;margin-bottom:12px}.armador-subtab{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}.armador-subtab.is-active{background:#111827;color:#fff}@media(max-width:1100px){.armador-app{grid-template-columns:1fr}.armador-sidebar{position:relative;height:auto}.armador-grid,.armador-grid.three{grid-template-columns:1fr}.armador-hero{display:block}.armador-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.armador-main{padding:12px}.armador-line{grid-template-columns:1fr}.armador-kpis{grid-template-columns:1fr}}
.armador-login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#fff7ed 0%,#eef4fb 55%,#f8fafc 100%);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a;box-sizing:border-box}.armador-login-card{width:min(460px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:28px;padding:34px;box-shadow:0 28px 80px rgba(15,23,42,.12)}.armador-login-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.armador-login-brand strong{display:block;font-size:18px}.armador-login-brand span{display:block;color:#64748b;font-size:12px}.armador-login-card h1{margin:0 0 8px;font-size:30px;line-height:1.1}.armador-login-card p{margin:0 0 18px;color:#64748b}.armador-login-form{display:grid;gap:14px}.armador-login-form label{display:grid;gap:6px;text-align:left;font-weight:800;font-size:13px}.armador-login-form input[type=text],.armador-login-form input[type=password],.armador-login-form input:not([type]){border:1px solid #dbe3ef;border-radius:14px;padding:13px 14px;font-size:16px}.armador-login-remember{display:flex!important;grid-template-columns:none!important;gap:8px!important;align-items:center;font-weight:700!important;color:#475569}.armador-login-submit{border:0;border-radius:14px;background:#f97316;color:#111827;padding:14px 18px;font-weight:900;font-size:16px;cursor:pointer}.armador-login-error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c;border-radius:14px;padding:12px;margin:14px 0;font-weight:800}.armador-login-card small{display:block;color:#64748b;margin-top:14px}.armador-logout{text-decoration:none;display:block}.armador-permission-denied{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:24px;box-shadow:0 18px 50px rgba(15,23,42,.06)}

/* V6.0.3: aislamiento visual contra Astra/tema/WordPress y panel de permisos */
body.armador-crm-fullscreen,
body.armador-crm-fullscreen *{box-sizing:border-box!important}
body.armador-crm-fullscreen{margin:0!important;padding:0!important;background:#eef4fb!important;overflow-x:hidden!important}
body.armador-crm-fullscreen .armador-wrap{width:100vw!important;max-width:none!important;margin:0!important;padding:0!important}
#armador-app{width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;background:#eef4fb!important;color:#0f172a!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;line-height:1.35!important}
#armador-app *{box-sizing:border-box!important}
#armador-app .armador-sidebar{width:260px!important;min-width:260px!important;max-width:260px!important}
#armador-app .armador-main{width:100%!important;max-width:none!important;min-width:0!important;overflow-x:hidden!important}
#armador-app .armador-hero,#armador-app .armador-card{width:100%!important;max-width:none!important}
#armador-app input,#armador-app select,#armador-app textarea,#armador-app button{font-family:inherit!important;font-size:14px!important;line-height:1.35!important;max-width:100%!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
#armador-app button,#armador-app .armador-btn{min-height:auto!important;border-radius:12px!important;text-decoration:none!important}
#armador-app input[type="checkbox"]{width:16px!important;min-width:16px!important;height:16px!important;margin:0!important;padding:0!important;appearance:auto!important;-webkit-appearance:auto!important}
#armador-app select{appearance:auto!important;-webkit-appearance:auto!important;background-color:#fff!important;color:#0f172a!important}
#armador-app textarea{resize:vertical!important}
#armador-app h1,#armador-app h2,#armador-app h3,#armador-app p{font-family:inherit!important;color:inherit}
#armador-app .armador-list{scrollbar-width:thin}
#armador-app .users-layout{grid-template-columns:320px minmax(0,1fr)!important;align-items:start!important}
#armador-app .armador-user-list{display:grid!important;gap:14px!important}
#armador-app .armador-user-card{border:1px solid #e5e7eb!important;border-radius:18px!important;padding:16px!important;background:#fff!important;display:grid!important;gap:12px!important}
#armador-app .armador-user-head{display:flex!important;justify-content:space-between!important;gap:14px!important;align-items:flex-start!important;border-bottom:1px solid #eef2f7!important;padding-bottom:12px!important}
#armador-app .armador-user-head strong{display:block!important;font-size:16px!important;color:#0f172a!important}
#armador-app .armador-user-head small{display:block!important;color:#64748b!important;margin-top:3px!important}
#armador-app .armador-user-summary{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important;color:#475569!important;font-size:13px!important}
#armador-app .armador-user-summary span{display:inline-flex!important;border-radius:999px!important;background:#f1f5f9!important;color:#334155!important;padding:4px 8px!important;font-size:11px!important;font-weight:800!important}
#armador-app .armador-permission-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:8px!important}
#armador-app .armador-perm-check{display:flex!important;align-items:center!important;gap:8px!important;border:1px solid #e5e7eb!important;background:#f8fafc!important;border-radius:12px!important;padding:10px 12px!important;color:#334155!important;font-weight:800!important;cursor:pointer!important;min-height:42px!important}
#armador-app .armador-perm-check.is-on{background:#fff7ed!important;border-color:#fdba74!important;color:#9a3412!important}
#armador-app .armador-perm-check span{display:inline!important;font-size:13px!important}
@media(max-width:1100px){#armador-app .users-layout{grid-template-columns:1fr!important}#armador-app .armador-sidebar{width:100%!important;min-width:0!important;max-width:none!important}}
/* V6.0.4: ID automático de cliente */
#armador-app input[readonly]{background:#f8fafc;color:#475569;cursor:not-allowed;border-style:dashed}
#armador-app .armador-field small{display:block;margin-top:6px;color:#64748b;font-size:12px;line-height:1.25}


/* V6.0.6: responsive reforzado para evitar paneles angostos en laptops, tablets y ventanas medianas */
#armador-app .armador-field,
#armador-app .armador-row > *,
#armador-app .armador-card,
#armador-app .armador-list,
#armador-app .armador-tab{min-width:0!important}
#armador-app .armador-grid.three{grid-template-columns:minmax(300px,360px) minmax(520px,1fr) minmax(300px,360px)!important;align-items:start!important}
#armador-app .armador-card{overflow:hidden!important}
#armador-app .armador-list{max-width:100%!important}
#armador-app .armador-actions{justify-content:flex-end!important}
#armador-app .armador-sidebar{z-index:5!important}
@media(max-width:1540px){
  #armador-app .armador-grid.three{grid-template-columns:minmax(280px,360px) minmax(0,1fr)!important}
  #armador-app .armador-grid.three > .armador-card:nth-child(3){grid-column:1 / -1!important}
  #armador-app .armador-grid.three > .armador-card:nth-child(3) textarea{min-height:120px!important}
}
@media(max-width:1280px){
  #armador-app.armador-app{grid-template-columns:230px minmax(0,1fr)!important}
  #armador-app .armador-sidebar{width:230px!important;min-width:230px!important;max-width:230px!important;padding:16px 12px!important}
  #armador-app .armador-nav{padding:11px 12px!important;font-size:13px!important}
  #armador-app .armador-main{padding:18px!important}
  #armador-app .armador-hero{align-items:flex-start!important;padding:20px!important}
  #armador-app .armador-hero h1{font-size:24px!important;max-width:720px!important}
  #armador-app .armador-grid{grid-template-columns:minmax(260px,320px) minmax(0,1fr)!important}
  #armador-app .armador-grid.three{grid-template-columns:1fr!important}
  #armador-app .armador-grid.three > .armador-card{grid-column:auto!important}
}
@media(max-width:1100px){
  #armador-app.armador-app{grid-template-columns:1fr!important}
  #armador-app .armador-sidebar{position:relative!important;top:auto!important;height:auto!important;width:100%!important;min-width:0!important;max-width:none!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  #armador-app .armador-brand{margin-bottom:4px!important}
  #armador-app .armador-sidebar-card{margin-top:8px!important}
  #armador-app .armador-main{padding:16px!important}
  #armador-app .armador-hero{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  #armador-app .armador-actions{justify-content:flex-start!important}
  #armador-app .armador-grid,
  #armador-app .armador-grid.three,
  #armador-app .users-layout{grid-template-columns:1fr!important}
  #armador-app .armador-list{max-height:380px!important}
}
@media(max-width:760px){
  body.armador-crm-fullscreen{overflow-x:hidden!important}
  #armador-app .armador-main{padding:10px!important}
  #armador-app .armador-sidebar{padding:12px!important}
  #armador-app .armador-brand{gap:10px!important}
  #armador-app .armador-logo{width:40px!important;height:40px!important;border-radius:14px!important}
  #armador-app .armador-hero,
  #armador-app .armador-card{border-radius:18px!important;padding:16px!important}
  #armador-app .armador-hero h1{font-size:22px!important;line-height:1.15!important}
  #armador-app .armador-card h2{font-size:24px!important;line-height:1.15!important}
  #armador-app .armador-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important}
  #armador-app .armador-card-actions,
  #armador-app .armador-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  #armador-app .armador-btn,
  #armador-app button,
  #armador-app .armador-card-actions a{width:100%!important;justify-content:center!important;text-align:center!important}
  #armador-app .armador-table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}
  #armador-app .armador-total{max-width:none!important;width:100%!important;margin-left:0!important}
  #armador-app .armador-method-row,
  #armador-app .armador-line{grid-template-columns:1fr!important}
  #armador-app .armador-permission-grid{grid-template-columns:1fr!important}
  #armador-app .armador-user-head{display:grid!important;grid-template-columns:1fr!important}
}
@media(max-width:480px){
  #armador-app .armador-main{padding:8px!important}
  #armador-app .armador-hero,
  #armador-app .armador-card{padding:14px!important;border-radius:16px!important}
  #armador-app .armador-hero h1{font-size:20px!important}
  #armador-app .armador-card h2{font-size:22px!important}
  #armador-app input,
  #armador-app select,
  #armador-app textarea{font-size:16px!important}
}


/* V6.0.7: cerrar sesión abajo, rojo; datalist de cliente y permisos dashboard opcionales */
#armador-app .armador-sidebar-card{margin-top:auto!important}
#armador-app .armador-logout{margin-top:10px!important;background:#1a1012!important;border-color:#3f1d22!important;color:#ef4444!important;font-weight:900!important;text-align:center!important;justify-content:center!important}
#armador-app .armador-logout:hover{background:#fff1f2!important;border-color:#fecdd3!important;color:#be123c!important}
#armador-app #quoteClientSearch{font-weight:700!important}
#armador-app .armador-table{min-width:700px!important}
#armador-app .armador-card{min-width:0!important}
@media(max-width:1100px){#armador-app .armador-sidebar-card{margin-top:8px!important}#armador-app .armador-logout{margin-top:0!important}}

/* V6.0.9: cliente rápido desde cotización y precios por tipo */
#armador-app .armador-quick-client{margin:10px 0 14px;padding:12px;border:1px solid #fed7aa;border-radius:16px;background:#fff7ed}
#armador-app .quote-client-actions{margin:6px 0 8px!important}
#armador-app #quotePriceTier{font-weight:800!important}
#armador-app .armador-field small{display:block;margin-top:5px;color:#64748b;font-weight:600}
@media(max-width:760px){#armador-app .armador-quick-client{padding:10px;border-radius:14px}}

/* V6.0.11: estatus y Mercado Pago */
#armador-app .armador-logo{overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important}
#armador-app .armador-logo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
#armador-app .armador-logo-preview{margin-top:12px;border:1px solid #e2e8f0;border-radius:16px;padding:12px;background:#f8fafc;display:flex;align-items:center;justify-content:center;min-height:90px}
#armador-app .armador-logo-preview img{max-width:180px;max-height:90px;object-fit:contain;display:block}
#armador-app .armador-logo-preview.wide img{max-width:360px;max-height:120px}
#armador-app #saveSettingsPdf{min-width:220px}
.armador-status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#f1f5f9;color:#334155;white-space:nowrap}
.armador-status.cotizado{background:#eff6ff;color:#1d4ed8}.armador-status.esperando_pago{background:#fff7ed;color:#c2410c}.armador-status.procesando{background:#fefce8;color:#a16207}.armador-status.venta{background:#dcfce7;color:#15803d}.armador-status.cancelada{background:#fee2e2;color:#b91c1c}
.quote-status{min-width:145px;border:1px solid #d8e1ef;border-radius:12px;padding:8px 10px;background:#fff;font-weight:800;color:#0f172a}
.armador-table td .armador-btn{margin:2px}
@media(max-width:900px){.armador-table-wrap,.armador-table{display:block;overflow-x:auto}.armador-table{min-width:760px}.quote-status{min-width:130px}}


/* V6.2.0: navegación secundaria de sincronización dentro de Materiales y precios. */
.armador-subnav-group {
  margin: -4px 0 8px 18px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.armador-sidebar .armador-nav.armador-subnav {
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}
.armador-sidebar .armador-nav.armador-subnav.is-active {
  opacity: 1;
}
