:root{--sat-yellow:#ffc928;--sat-yellow-dark:#e8ae00;--sat-ink:#111823;--sat-sidebar:#10161e;--sat-text:#17202d;--sat-muted:#687386;--sat-line:#e4e9f0;--sat-bg:#f4f7fb;--sat-white:#fff;--sat-green:#1f9d61;--sat-red:#d9363e;--sat-shadow:0 18px 50px rgba(17,24,39,.10);--sat-soft:0 8px 24px rgba(17,24,39,.07)}
*{box-sizing:border-box}.sat-bs-app,.sat-bs-app *{box-sizing:border-box}.sat-bs-app button,.sat-bs-app input,.sat-bs-app select,.sat-bs-app textarea{font:inherit}
/* Breakout real del contenedor de Astra/WordPress */
.sat-bs-app{position:relative!important;left:50%!important;width:100vw!important;max-width:100vw!important;margin:24px 0 30px -50vw!important;display:grid;grid-template-columns:210px minmax(0,1fr);background:var(--sat-bg);color:var(--sat-text);border-top:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef;box-shadow:var(--sat-shadow);overflow:visible;min-height:900px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.sat-bs-side{background:linear-gradient(180deg,var(--sat-sidebar),#0b1118);color:#fff;padding:26px 12px;display:flex;flex-direction:column;gap:10px;min-width:0}.sat-bs-brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:850;padding:0 10px 25px;white-space:nowrap}.sat-bs-brand-mark{width:42px;height:42px;border-radius:13px;background:var(--sat-yellow);color:#111;display:grid;place-items:center;font-size:12px;font-weight:900;box-shadow:0 7px 20px rgba(255,201,40,.28)}.sat-bs-tab{appearance:none;border:0;background:transparent;color:#eef2f7;width:100%;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:8px;padding:13px 10px;border-radius:11px;text-align:left;font-weight:730;font-size:13px;line-height:1.25;cursor:pointer;min-width:0}.sat-bs-tab span:last-of-type{white-space:normal;overflow-wrap:normal;word-break:normal}.sat-bs-tab:hover{background:rgba(255,255,255,.07)}.sat-bs-tab.active{background:var(--sat-yellow);color:#141414;box-shadow:0 9px 24px rgba(255,201,40,.22)}.sat-bs-tab-icon{width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.08);display:grid;place-items:center}.sat-bs-tab.active .sat-bs-tab-icon{background:rgba(0,0,0,.10)}.sat-bs-tab small{grid-column:2;text-transform:uppercase;font-size:8px;letter-spacing:.7px;opacity:.72;margin-top:-2px}
.sat-bs-main{min-width:0;background:var(--sat-bg);overflow:visible}.sat-bs-panel{display:none}.sat-bs-panel.active{display:block}.sat-bs-head{background:#fff;border-bottom:1px solid var(--sat-line);padding:22px 30px}.sat-bs-head-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.sat-bs-head h2{margin:2px 0 5px;font-size:26px;line-height:1.1;letter-spacing:-.45px}.sat-bs-head p{margin:0;color:var(--sat-muted);font-size:13px}.sat-bs-eyebrow{display:block;color:#b07e00;font-size:10px;font-weight:900;letter-spacing:1.2px}.sat-bs-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sat-bs-btn{border:1px solid transparent;border-radius:10px;padding:11px 16px;text-transform:uppercase;font-size:12px;font-weight:850;letter-spacing:.45px;cursor:pointer;transition:.18s ease;white-space:nowrap}.sat-bs-btn:hover{transform:translateY(-1px)}.sat-bs-primary{background:var(--sat-yellow);color:#171717;box-shadow:0 8px 20px rgba(255,201,40,.28)}.sat-bs-primary:hover{background:#ffd44e}.sat-bs-secondary{background:#fff;border-color:#d8dee7;color:#17202d}.sat-bs-wide{width:100%}
/* Editor fijo + vista previa ocupa TODO el espacio restante */
.sat-bs-workspace{display:grid;grid-template-columns:minmax(360px,430px) minmax(0,1fr);gap:22px;padding:22px 26px 30px;width:100%;max-width:none;margin:0;align-items:start}.sat-bs-editor,.sat-bs-canvas{min-width:0}.sat-bs-editor{background:#fff;border:1px solid var(--sat-line);border-radius:15px;padding:14px;box-shadow:var(--sat-soft)}.sat-bs-editor-title,.sat-bs-canvas-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 2px 14px}.sat-bs-editor-title strong,.sat-bs-canvas-bar strong{display:block;font-size:15px}.sat-bs-editor-title small,.sat-bs-canvas-bar small{display:block;color:var(--sat-muted);font-size:11px;margin-top:3px}.sat-bs-live,.sat-bs-canvas-status{display:inline-flex;align-items:center;gap:6px;background:#e9f8f0;color:#177649;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800;white-space:nowrap}.sat-bs-live i{width:7px;height:7px;border-radius:50%;background:#20ad69}.sat-bs-canvas-tools{display:flex;align-items:center;gap:8px}.sat-bs-fit{border:1px solid #d6dde7;background:#fff;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:800;cursor:pointer;color:#263244}
.sat-bs-accordion{border:1px solid var(--sat-line);border-radius:12px;overflow:hidden;background:#fff;margin-bottom:12px}.sat-bs-accordion summary{list-style:none;display:flex;align-items:center;gap:9px;padding:13px 12px;font-size:14px;font-weight:830;cursor:pointer;border-bottom:1px solid var(--sat-line);white-space:normal}.sat-bs-accordion summary::-webkit-details-marker{display:none}.sat-bs-step{width:24px;height:24px;display:grid;place-items:center;background:#fff2b8;color:#7e5c00;border-radius:7px;font-size:11px;flex:0 0 auto}.sat-bs-accordion>input,.sat-bs-accordion>textarea,.sat-bs-accordion>select,.sat-bs-four,.sat-bs-two,#bs_items,.sat-bs-accordion>.sat-bs-btn{margin-left:12px;margin-right:12px;width:calc(100% - 24px)}.sat-bs-form input,.sat-bs-form select,.sat-bs-form textarea{width:100%;border:1px solid #d7dee8;background:#fff;border-radius:10px;padding:11px 12px;color:#1a2432;outline:none;min-width:0}.sat-bs-form input:focus,.sat-bs-form select:focus,.sat-bs-form textarea:focus{border-color:#eabf2a;box-shadow:0 0 0 3px rgba(255,201,40,.14)}.sat-bs-accordion>input{margin-top:8px}.sat-bs-accordion>input:last-of-type{margin-bottom:11px}.sat-bs-form textarea{min-height:90px;resize:vertical;margin-top:9px;margin-bottom:11px}.sat-bs-item{display:grid;grid-template-columns:minmax(0,1fr) 72px 102px 38px;gap:7px;margin:9px 0;align-items:center}.sat-bs-item input{padding:10px 9px}.sat-bs-del{height:42px;border:0;border-radius:9px;background:#ffe4e5;color:#bc1e27;font-weight:900;font-size:18px;cursor:pointer}.sat-bs-four{display:grid;grid-template-columns:70px 1fr 1fr 1fr;gap:7px;margin-top:10px}.sat-bs-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sat-bs-profile-form{max-width:900px;margin:24px;background:#fff;padding:22px;border-radius:16px;border:1px solid var(--sat-line);box-shadow:var(--sat-soft)}
/* Canvas flexible, sin cortes ni scroll horizontal */
.sat-bs-canvas{background:#eef2f7;border:1px solid #dce3ec;border-radius:15px;padding:14px;overflow:visible;width:100%}.sat-bs-paper-shell{width:100%;min-width:0;padding:0;overflow:visible;display:flex;justify-content:center;align-items:flex-start}.sat-bs-paper{width:794px;min-width:794px;min-height:1123px;background:#fff;box-shadow:0 18px 42px rgba(18,29,43,.18);transform-origin:top center;color:#111;display:flex;flex-direction:column}.bs-doc-head{background:linear-gradient(135deg,#131a24,#252d38);color:#fff;padding:34px 42px;display:flex;justify-content:space-between;gap:28px;align-items:flex-start;min-height:150px}.bs-company-line{display:flex;align-items:flex-start;gap:16px;min-width:0;max-width:58%}.bs-logo{width:62px;height:62px;border-radius:14px;background:var(--sat-yellow);color:#111;display:grid;place-items:center;overflow:hidden;font-size:19px;font-weight:900;flex:0 0 62px}.bs-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.bs-company-line h3{margin:2px 0 7px;font-size:21px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}.bs-company-line p,.bs-doc-title p{margin:3px 0;font-size:11px;line-height:1.45;opacity:.9;white-space:normal;overflow-wrap:anywhere}.bs-doc-title{text-align:right;min-width:210px;max-width:38%}.bs-doc-title h2{margin:0 0 15px;color:var(--sat-yellow);font-size:29px;line-height:1.05;letter-spacing:.4px;white-space:nowrap}.bs-doc-body{padding:32px 42px 40px;flex:1}.bs-info{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:22px}.bs-box{border:1px solid #e1e6ed;border-radius:10px;padding:14px;min-width:0;background:#fbfcfe}.bs-box strong{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#657184;margin-bottom:8px}.bs-box div{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.bs-table{width:100%;border-collapse:collapse;table-layout:fixed;margin-top:6px}.bs-table th{background:#161d27;color:#fff;padding:11px 10px;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.45px}.bs-table td{border-bottom:1px solid #e7eaf0;padding:11px 10px;font-size:12px;vertical-align:top;overflow-wrap:anywhere}.bs-table th:first-child,.bs-table td:first-child{width:46%}.bs-table th:nth-child(2),.bs-table td:nth-child(2){width:14%;text-align:center}.bs-table th:nth-child(3),.bs-table td:nth-child(3),.bs-table th:nth-child(4),.bs-table td:nth-child(4){width:20%;text-align:right}.bs-totals{margin:24px 0 0 auto;max-width:315px}.bs-totals>div{display:flex;justify-content:space-between;gap:22px;padding:8px 0;border-bottom:1px solid #eceff3;font-size:12.5px}.bs-totals .grand{margin-top:8px;border:0;background:#fff0ab;border-radius:9px;padding:13px 14px;font-size:17px}.bs-notes{margin-top:24px;padding:14px 15px;border-left:4px solid var(--sat-yellow);background:#fafafa;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.bs-footer{padding:16px 42px;border-top:1px solid #eceff3;color:#7b8491;font-size:10.5px;text-align:center}
.sat-bs-locked{padding:30px}.sat-bs-lock-card{max-width:760px;margin:auto;padding:38px;border-radius:18px;background:#fff;box-shadow:var(--sat-shadow);text-align:center}.sat-bs-badge{display:inline-block;background:#fff4bf;padding:7px 11px;border-radius:999px;font-weight:750;font-size:12px}.sat-bs-lock-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}
@media(min-width:1600px){.sat-bs-app{grid-template-columns:220px minmax(0,1fr)}.sat-bs-workspace{grid-template-columns:440px minmax(0,1fr);gap:28px;padding:26px 32px 34px}.sat-bs-canvas{padding:18px}}
@media(max-width:1200px){.sat-bs-app{grid-template-columns:190px minmax(0,1fr)}.sat-bs-workspace{grid-template-columns:360px minmax(0,1fr);gap:14px;padding:14px}.sat-bs-side{padding-left:10px;padding-right:10px}.sat-bs-tab{padding-left:8px;padding-right:8px}.sat-bs-canvas-status{display:none}}
@media(max-width:940px){.sat-bs-app{grid-template-columns:1fr;margin-top:14px!important}.sat-bs-side{min-height:auto;display:flex;align-items:center;gap:8px;overflow-x:auto;padding:11px}.sat-bs-brand{padding:0 12px 0 3px}.sat-bs-tab{width:auto;min-width:max-content;margin:0;grid-template-columns:28px auto;padding:10px 12px}.sat-bs-tab small{display:none}.sat-bs-workspace{grid-template-columns:1fr}.sat-bs-editor{order:1}.sat-bs-canvas{order:2}}
@media(max-width:680px){.sat-bs-app{border-left:0;border-right:0}.sat-bs-head{padding:18px 14px}.sat-bs-head-row{align-items:flex-start;flex-direction:column}.sat-bs-top-actions{width:100%}.sat-bs-top-actions .sat-bs-btn{flex:1}.sat-bs-workspace{padding:9px;gap:9px}.sat-bs-editor,.sat-bs-canvas{border-radius:12px}.sat-bs-item{grid-template-columns:minmax(0,1fr) 62px 82px 36px}.sat-bs-four{grid-template-columns:1fr 1fr}.sat-bs-two,.bs-info{grid-template-columns:1fr}.sat-bs-head h2{font-size:23px}}
@media print{body *{visibility:hidden!important}.sat-bs-paper,.sat-bs-paper *{visibility:visible!important}.sat-bs-paper{position:absolute!important;left:0!important;top:0!important;width:794px!important;min-width:794px!important;min-height:1123px!important;transform:none!important;box-shadow:none!important}.sat-bs-paper-shell{height:auto!important;overflow:visible!important;padding:0!important}.bs-doc-head,.bs-table th,.bs-totals .grand{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* v0.6.0: perfil real, logo, estados de guardado y formas de pago */
.sat-bs-save-state{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border-radius:999px;background:#f0f3f7;color:#697487;font-size:11px;font-weight:800;white-space:nowrap}.sat-bs-save-state.ok{background:#e8f8ef;color:#187448}.sat-bs-save-state.pending{background:#fff5cf;color:#886500}.sat-bs-save-state.loading{background:#eaf2ff;color:#285fa8}.sat-bs-save-state.error{background:#ffe7e9;color:#b32631}.sat-bs-profile-logo-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:center;padding:4px 0 18px}.sat-bs-logo-preview{width:110px;height:110px;border-radius:18px;border:1px dashed #cbd4df;background:#f8fafc;display:grid;place-items:center;overflow:hidden;color:#7a8594;font-size:13px;font-weight:900}.sat-bs-logo-preview img{width:100%;height:100%;object-fit:contain;background:#fff}.sat-bs-field-label{display:block;font-weight:850;margin-bottom:7px}.sat-bs-profile-logo-row small{display:block;color:var(--sat-muted);font-size:11px;margin-top:7px}.sat-bs-profile-form>.sat-bs-two{margin-bottom:10px}.sat-bs-profile-form textarea{min-height:72px;margin:0}.sat-bs-profile-actions{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}.sat-bs-inline-msg{font-size:12px;font-weight:800}.sat-bs-inline-msg.ok{color:#187448}.sat-bs-inline-msg.loading{color:#285fa8}.sat-bs-inline-msg.error{color:#b32631}.bs-payment{margin-top:22px;padding:14px 15px;border:1px solid #ead88b;border-radius:10px;background:#fffaf0;font-size:12px;line-height:1.55}.bs-payment strong{display:block;margin-bottom:5px;color:#66500a}.sat-bs-btn:disabled{opacity:.62;cursor:wait;transform:none!important}
@media(max-width:680px){.sat-bs-profile-logo-row{grid-template-columns:1fr}.sat-bs-logo-preview{width:96px;height:96px}}
/* v0.7.0: historial y administración de presupuestos */
.sat-bs-history-wrap{margin:24px;background:#fff;border:1px solid var(--sat-line);border-radius:16px;box-shadow:var(--sat-soft);padding:18px;min-width:0}.sat-bs-history-tools{display:grid;grid-template-columns:minmax(220px,1fr) 190px auto;gap:10px;align-items:center;margin-bottom:16px}.sat-bs-history-tools input,.sat-bs-history-tools select{width:100%;border:1px solid #d7dee8;border-radius:10px;padding:11px 12px;background:#fff;color:var(--sat-text);outline:none}.sat-bs-history-tools input:focus,.sat-bs-history-tools select:focus{border-color:#eabf2a;box-shadow:0 0 0 3px rgba(255,201,40,.14)}.sat-bs-history-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--sat-line);border-radius:12px}.sat-bs-history-table{width:100%;border-collapse:collapse;min-width:900px}.sat-bs-history-table th{padding:12px 13px;background:#f6f8fb;color:#657184;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.55px;border-bottom:1px solid var(--sat-line)}.sat-bs-history-table td{padding:13px;border-bottom:1px solid #edf0f4;font-size:12px;vertical-align:middle}.sat-bs-history-table tr:last-child td{border-bottom:0}.sat-bs-history-table tr:hover td{background:#fbfcfe}.sat-bs-history-msg{padding:24px;text-align:center;color:var(--sat-muted);font-size:13px;border:1px dashed #d7dee8;border-radius:12px;background:#fafbfd}.sat-bs-history-msg.loading{color:#285fa8}.sat-bs-history-msg.error{color:#b32631;background:#fff6f7;border-color:#f0c7cb}.bs-history-actions{display:flex;gap:6px;flex-wrap:wrap}.bs-mini{border:1px solid #d8dee7;background:#fff;color:#263244;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.bs-mini:hover{border-color:#c6a219;background:#fffaf0}.bs-mini.danger{color:#b32631;border-color:#f0c8cb}.bs-mini.danger:hover{background:#fff1f2;border-color:#dc8e94}.bs-history-status{border:1px solid #d7dee8;border-radius:999px;padding:7px 26px 7px 10px;font-size:10px;font-weight:850;background:#f3f5f8;color:#5e6878}.bs-history-status.status-pendiente{background:#fff5cf;color:#806100;border-color:#f0dda0}.bs-history-status.status-aceptado{background:#e8f8ef;color:#187448;border-color:#bde4cd}.bs-history-status.status-rechazado{background:#ffe7e9;color:#b32631;border-color:#f1c0c5}
@media(max-width:760px){.sat-bs-history-wrap{margin:10px;padding:10px}.sat-bs-history-tools{grid-template-columns:1fr}.sat-bs-history-tools .sat-bs-btn{width:100%}}
/* v0.8.0: Perfil de Empresa PRO */
.sat-bs-profile-form{max-width:1120px;padding:0;background:transparent;border:0;box-shadow:none}.sat-profile-section{background:#fff;border:1px solid var(--sat-line);border-radius:16px;padding:22px;margin-bottom:16px;box-shadow:var(--sat-soft)}.sat-profile-section-head{display:flex;gap:12px;align-items:flex-start;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #edf0f4}.sat-profile-section-head>span{width:38px;height:38px;border-radius:11px;background:#fff4bf;display:grid;place-items:center;font-size:18px;flex:0 0 38px}.sat-profile-section-head h3{margin:0 0 3px;font-size:17px}.sat-profile-section-head p{margin:0;color:var(--sat-muted);font-size:12px}.sat-profile-section label{display:block;font-size:11px;font-weight:800;color:#485467;margin:0 0 6px}.sat-profile-section input,.sat-profile-section select,.sat-profile-section textarea{width:100%;border:1px solid #d7dee8;border-radius:10px;padding:11px 12px;background:#fff;color:var(--sat-text);outline:none}.sat-profile-section input:focus,.sat-profile-section select:focus,.sat-profile-section textarea:focus{border-color:#eabf2a;box-shadow:0 0 0 3px rgba(255,201,40,.14)}.sat-bs-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sat-numbering-card{padding:16px;border:1px solid #ead88b;background:#fffaf0;border-radius:13px;margin-bottom:14px}.sat-numbering-title{font-size:13px;font-weight:900;margin-bottom:12px}.sat-number-example{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px;font-size:12px}.sat-number-example strong{font-size:15px;color:#6d5200}.sat-number-example small{display:block;width:100%;color:var(--sat-muted);margin-top:3px}.sat-payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}.sat-payment-option{display:flex!important;align-items:center;gap:9px;padding:11px 12px;border:1px solid #dce2ea;border-radius:10px;background:#fafbfd;cursor:pointer;margin:0!important}.sat-payment-option:hover{border-color:#e6c74f;background:#fffaf0}.sat-payment-option input{width:16px!important;height:16px;margin:0;accent-color:#eabf2a}.sat-payment-option span{font-size:12px;font-weight:750}.sat-sign-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sat-upload-card{border:1px dashed #cbd4df;border-radius:13px;padding:14px;background:#fafbfd}.sat-sign-preview{height:120px;border-radius:10px;background:#fff;border:1px solid #e4e9ef;display:grid;place-items:center;overflow:hidden;margin-bottom:10px;color:#7c8796;font-weight:800}.sat-sign-preview img{width:100%;height:100%;object-fit:contain}.sat-bs-profile-actions{position:sticky;bottom:12px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);padding:14px 16px;border:1px solid var(--sat-line);border-radius:14px;box-shadow:0 10px 30px rgba(18,29,43,.12);z-index:3}.bs-signatures{display:flex;justify-content:flex-end;gap:28px;align-items:flex-end;margin-top:28px;padding-top:16px;border-top:1px solid #eceff3}.bs-signatures>div{text-align:center;min-width:120px}.bs-signatures img{display:block;max-width:130px;max-height:72px;object-fit:contain;margin:0 auto 5px}.bs-signatures span{font-size:10px;color:#6f7988;text-transform:uppercase;letter-spacing:.6px}
@media(max-width:760px){.sat-bs-three,.sat-payment-grid,.sat-sign-grid{grid-template-columns:1fr}.sat-profile-section{padding:16px}.sat-bs-profile-form{margin:10px}.sat-bs-profile-actions{bottom:6px}}

/* v0.9.0 - Motor de plantillas */
.sat-template-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sat-template-card{appearance:none;border:1px solid #dbe2ea;background:#fff;border-radius:11px;padding:8px;text-align:left;cursor:pointer;min-width:0;transition:.18s ease}.sat-template-card:hover{transform:translateY(-1px);border-color:#d6b63a;box-shadow:0 7px 18px rgba(18,29,43,.08)}.sat-template-card.active{border-color:#e2b500;box-shadow:0 0 0 3px rgba(255,201,40,.18)}.sat-template-card strong,.sat-template-card small{display:block;white-space:normal;overflow-wrap:anywhere}.sat-template-card strong{font-size:11px;margin-top:7px;color:#243043}.sat-template-card small{font-size:9px;color:#7d8795;margin-top:2px}.sat-template-thumb{height:58px;border-radius:7px;display:block;position:relative;overflow:hidden;background:#f4f6f9;border:1px solid rgba(0,0,0,.06)}.sat-template-thumb:before{content:"";position:absolute;left:7px;right:7px;top:7px;height:12px;background:#1c2430;border-radius:3px}.sat-template-thumb i,.sat-template-thumb b,.sat-template-thumb em{position:absolute;display:block;left:8px;right:8px;height:4px;background:#d9dee6;border-radius:2px}.sat-template-thumb i{top:25px}.sat-template-thumb b{top:34px}.sat-template-thumb em{top:43px;right:28px}.sat-template-thumb.template-executive{background:#171717}.sat-template-thumb.template-executive:before{background:#c7a34a}.sat-template-thumb.template-executive i,.sat-template-thumb.template-executive b,.sat-template-thumb.template-executive em{background:#555}.sat-template-thumb.template-tech{background:#eef7ff}.sat-template-thumb.template-tech:before{background:#0967c2}.sat-template-thumb.template-minimal:before{background:#fff;border-bottom:2px solid #111}.sat-template-thumb.template-gold{background:#fffaf0}.sat-template-thumb.template-gold:before{background:#9b7419}.sat-template-thumb.template-construction{background:#fff8cf}.sat-template-thumb.template-construction:before{background:#171717;border-left:18px solid #ffc400}.sat-template-thumb.template-creative{background:#fff3f5}.sat-template-thumb.template-creative:before{background:linear-gradient(90deg,#8e44ad,#ff6b6b)}.sat-template-thumb.template-medical{background:#f3fbfb}.sat-template-thumb.template-medical:before{background:#2aa6a4}.sat-template-thumb.template-commercial{background:#fff7ed}.sat-template-thumb.template-commercial:before{background:#e76800}.sat-template-thumb.template-luxury{background:#121212}.sat-template-thumb.template-luxury:before{background:linear-gradient(90deg,#d5b35a,#8d6c21)}.sat-profile-template-default{margin-top:14px}.sat-profile-template-default small{display:block;color:var(--sat-muted);font-size:11px;margin-top:6px}

/* Templates */
.sat-bs-paper{--tpl:#ffc928;--tpl-dark:#151c25;--tpl-soft:#fff4bf;--tpl-line:#e7eaf0;--tpl-text:#111}.sat-bs-paper .bs-doc-head{background:linear-gradient(135deg,var(--tpl-dark),#2b3440)}.sat-bs-paper .bs-doc-title h2{color:var(--tpl)}.sat-bs-paper .bs-logo{background:var(--tpl)}.sat-bs-paper .bs-table th{background:var(--tpl-dark)}.sat-bs-paper .bs-totals .grand{background:var(--tpl-soft)}.sat-bs-paper .bs-notes{border-left-color:var(--tpl)}
.sat-bs-paper.template-executive{--tpl:#c7a34a;--tpl-dark:#111;--tpl-soft:#f2ead5}.sat-bs-paper.template-executive .bs-doc-body{background:#fbfaf7}.sat-bs-paper.template-executive .bs-box{border-radius:0;background:#fff}.sat-bs-paper.template-executive .bs-table th{letter-spacing:1px}.sat-bs-paper.template-executive .bs-footer{background:#111;color:#c7a34a}
.sat-bs-paper.template-tech{--tpl:#1f8cff;--tpl-dark:#0b3966;--tpl-soft:#dcedff}.sat-bs-paper.template-tech .bs-doc-head{background:linear-gradient(125deg,#072d50,#0a65b4)}.sat-bs-paper.template-tech .bs-box{border-color:#cde6fb;background:#f7fbff}.sat-bs-paper.template-tech .bs-table th{background:#0a65b4}.sat-bs-paper.template-tech .bs-footer{color:#0a65b4}
.sat-bs-paper.template-minimal{--tpl:#111;--tpl-dark:#fff;--tpl-soft:#f2f2f2}.sat-bs-paper.template-minimal .bs-doc-head{background:#fff;color:#111;border-bottom:3px solid #111}.sat-bs-paper.template-minimal .bs-doc-title h2{color:#111;font-weight:500;letter-spacing:4px}.sat-bs-paper.template-minimal .bs-logo{border:1px solid #ddd}.sat-bs-paper.template-minimal .bs-table th{background:#fff;color:#111;border-top:1px solid #111;border-bottom:1px solid #111}.sat-bs-paper.template-minimal .bs-box{border:0;border-bottom:1px solid #ddd;border-radius:0;background:#fff}.sat-bs-paper.template-minimal .bs-footer{border-top:1px solid #111}
.sat-bs-paper.template-gold{--tpl:#b58a25;--tpl-dark:#4a3913;--tpl-soft:#f7edcf}.sat-bs-paper.template-gold .bs-doc-head{background:linear-gradient(135deg,#4d3a12,#89691f)}.sat-bs-paper.template-gold .bs-table th{background:#8e6c1c}.sat-bs-paper.template-gold .bs-box{border-color:#e6d7ad;background:#fffdf7}
.sat-bs-paper.template-construction{--tpl:#ffc400;--tpl-dark:#1a1a1a;--tpl-soft:#fff0a6}.sat-bs-paper.template-construction .bs-doc-head{background:repeating-linear-gradient(135deg,#151515 0,#151515 18px,#232323 18px,#232323 36px);border-bottom:10px solid #ffc400}.sat-bs-paper.template-construction .bs-doc-title h2{font-weight:950}.sat-bs-paper.template-construction .bs-table th{background:#171717;border-bottom:4px solid #ffc400}.sat-bs-paper.template-construction .bs-box{border-radius:3px}
.sat-bs-paper.template-creative{--tpl:#ff667a;--tpl-dark:#6f2d91;--tpl-soft:#ffe4e8}.sat-bs-paper.template-creative .bs-doc-head{background:linear-gradient(135deg,#732d91,#fa667e)}.sat-bs-paper.template-creative .bs-logo{border-radius:50%}.sat-bs-paper.template-creative .bs-box{border-radius:18px;background:#fff8fa}.sat-bs-paper.template-creative .bs-table th{background:#7a3295}.sat-bs-paper.template-creative .bs-totals .grand{border-radius:18px}
.sat-bs-paper.template-medical{--tpl:#39b9b5;--tpl-dark:#176b70;--tpl-soft:#dff5f4}.sat-bs-paper.template-medical .bs-doc-head{background:linear-gradient(135deg,#176b70,#35aaa8)}.sat-bs-paper.template-medical .bs-box{background:#f5fbfb;border-color:#cdeceb}.sat-bs-paper.template-medical .bs-table th{background:#258f8d}
.sat-bs-paper.template-commercial{--tpl:#ff8a1f;--tpl-dark:#4c2a0d;--tpl-soft:#ffe5c8}.sat-bs-paper.template-commercial .bs-doc-head{background:linear-gradient(135deg,#4b2508,#d65d00)}.sat-bs-paper.template-commercial .bs-table th{background:#e16b0a}.sat-bs-paper.template-commercial .bs-totals .grand{border-left:6px solid #ff8a1f}.sat-bs-paper.template-commercial .bs-box{background:#fffaf5}
.sat-bs-paper.template-luxury{--tpl:#d5b35a;--tpl-dark:#0a0a0a;--tpl-soft:#eee2c0;background:#101010;color:#eee}.sat-bs-paper.template-luxury .bs-doc-head{background:#080808;border-bottom:1px solid #d5b35a}.sat-bs-paper.template-luxury .bs-doc-body{background:#101010}.sat-bs-paper.template-luxury .bs-box{background:#171717;border-color:#363124;color:#eee}.sat-bs-paper.template-luxury .bs-box strong{color:#d5b35a}.sat-bs-paper.template-luxury .bs-table th{background:#d5b35a;color:#111}.sat-bs-paper.template-luxury .bs-table td{border-color:#302d26}.sat-bs-paper.template-luxury .bs-totals>div{border-color:#302d26}.sat-bs-paper.template-luxury .bs-totals .grand{background:#d5b35a;color:#111}.sat-bs-paper.template-luxury .bs-payment,.sat-bs-paper.template-luxury .bs-notes{background:#171717;border-color:#5a4c28;color:#eee}.sat-bs-paper.template-luxury .bs-signatures{border-color:#302d26}.sat-bs-paper.template-luxury .bs-footer{background:#080808;border-color:#302d26;color:#d5b35a}
@media(max-width:560px){.sat-template-picker{grid-template-columns:1fr}}


/* v1.0.0 - Galería visual premium y 20 diseños */
.sat-template-gallery-head{padding:12px 12px 4px}.sat-template-search{display:flex;align-items:center;gap:8px;border:1px solid #d8e0e9;background:#f8fafc;border-radius:11px;padding:0 11px}.sat-template-search span{font-size:18px;color:#6e7887}.sat-template-search input{border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:11px 0!important;width:100%!important;font-size:12px!important}.sat-template-filters{display:flex;gap:6px;overflow-x:auto;padding:9px 0 5px;scrollbar-width:none}.sat-template-filters::-webkit-scrollbar{display:none}.sat-template-filters button{border:1px solid #dce3eb;background:#fff;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:850;color:#526072;white-space:nowrap;cursor:pointer}.sat-template-filters button.active{background:#111923;color:#fff;border-color:#111923}.sat-template-picker{padding:8px 12px 14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;max-height:470px;overflow:auto;scrollbar-width:thin}.sat-template-card{position:relative;padding:7px;border-radius:13px;overflow:hidden}.sat-template-card-copy{display:block;padding:0 2px 2px}.sat-template-card strong{font-size:11px;margin-top:7px;padding-right:34px}.sat-template-card small{font-size:9px;line-height:1.25;min-height:22px}.sat-template-badge{position:absolute;right:8px;bottom:31px;background:rgba(17,25,35,.88);color:#fff;border-radius:999px;padding:3px 6px;font-size:7px;font-weight:900;letter-spacing:.2px}.sat-template-card.active .sat-template-badge{background:#d6a900;color:#111}.sat-template-thumb{height:92px;border-radius:9px;background:#f3f5f8;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.sat-template-thumb:before{left:7px;right:7px;top:7px;height:19px}.sat-template-thumb:after{content:"";position:absolute;left:8px;top:33px;width:42%;height:17px;border:1px solid rgba(0,0,0,.12);border-radius:3px}.sat-template-thumb i,.sat-template-thumb b,.sat-template-thumb em,.sat-template-thumb u{height:4px;left:8px;right:8px}.sat-template-thumb i{top:57px}.sat-template-thumb b{top:66px}.sat-template-thumb em{top:75px;right:36px}.sat-template-thumb u{top:84px;left:auto;width:34px;background:#c8d0da;text-decoration:none}.sat-template-empty{display:none;grid-column:1/-1;padding:20px;text-align:center;color:#748092;font-size:11px;border:1px dashed #d4dce5;border-radius:12px;background:#fafbfd}
/* Miniaturas adicionales */
.sat-template-thumb.template-corporate{background:#edf4ff}.sat-template-thumb.template-corporate:before{background:linear-gradient(90deg,#123a67 0 68%,#3c86c8 68%)}
.sat-template-thumb.template-navy{background:#f5f1e8}.sat-template-thumb.template-navy:before{background:#10243e;border-bottom:3px solid #b89a59}
.sat-template-thumb.template-emerald{background:#effaf5}.sat-template-thumb.template-emerald:before{background:linear-gradient(90deg,#0b6b50,#48b28e)}
.sat-template-thumb.template-rose{background:#fff4f7}.sat-template-thumb.template-rose:before{background:linear-gradient(90deg,#7f2b4b,#e497ae)}
.sat-template-thumb.template-slate{background:#f3f5f7}.sat-template-thumb.template-slate:before{background:#3e4b59}
.sat-template-thumb.template-orange{background:#fff6ed}.sat-template-thumb.template-orange:before{background:linear-gradient(90deg,#ff6b00,#ffad45)}
.sat-template-thumb.template-legal{background:#f8f5ed}.sat-template-thumb.template-legal:before{background:#1d2835;border-left:20px solid #b69a62}
.sat-template-thumb.template-architect{background:repeating-linear-gradient(0deg,#f7fafc 0,#f7fafc 11px,#e5ebf0 12px)}.sat-template-thumb.template-architect:before{background:#263849}
.sat-template-thumb.template-artisan{background:#f5eadb}.sat-template-thumb.template-artisan:before{background:#76513a}.sat-template-thumb.template-artisan:after{border-radius:12px}
.sat-template-thumb.template-neon{background:#101829}.sat-template-thumb.template-neon:before{background:linear-gradient(90deg,#00d4ff,#9b4dff)}.sat-template-thumb.template-neon i,.sat-template-thumb.template-neon b,.sat-template-thumb.template-neon em{background:#394862}
/* Diseños de documento adicionales */
.sat-bs-paper.template-corporate{--tpl:#3b82c4;--tpl-dark:#153b63;--tpl-soft:#e8f2fb}.sat-bs-paper.template-corporate .bs-doc-head{background:linear-gradient(110deg,#153b63 0 72%,#3b82c4 72%)}.sat-bs-paper.template-corporate .bs-box{border-left:4px solid #3b82c4;background:#f7fbff}.sat-bs-paper.template-corporate .bs-table th{background:#153b63}.sat-bs-paper.template-corporate .bs-footer{background:#e8f2fb;color:#153b63}
.sat-bs-paper.template-navy{--tpl:#b99a58;--tpl-dark:#10243e;--tpl-soft:#eee5d1}.sat-bs-paper.template-navy .bs-doc-head{background:#10243e;border-bottom:7px solid #b99a58}.sat-bs-paper.template-navy .bs-doc-title h2{letter-spacing:3px}.sat-bs-paper.template-navy .bs-box{border-radius:0;border-color:#d8c9a8}.sat-bs-paper.template-navy .bs-table th{background:#10243e}.sat-bs-paper.template-navy .bs-footer{background:#10243e;color:#d8bd7d}
.sat-bs-paper.template-emerald{--tpl:#2eaa7a;--tpl-dark:#0b5e47;--tpl-soft:#dff4eb}.sat-bs-paper.template-emerald .bs-doc-head{background:linear-gradient(135deg,#075440,#2fad7d)}.sat-bs-paper.template-emerald .bs-logo{border-radius:18px 4px 18px 4px}.sat-bs-paper.template-emerald .bs-box{background:#f4fbf8;border-color:#ccebdd}.sat-bs-paper.template-emerald .bs-table th{background:#0c7255}.sat-bs-paper.template-emerald .bs-totals .grand{border-radius:0 18px 0 18px}
.sat-bs-paper.template-rose{--tpl:#d9839f;--tpl-dark:#702d49;--tpl-soft:#f9e3ea}.sat-bs-paper.template-rose .bs-doc-head{background:linear-gradient(135deg,#6d2945,#c56f8d)}.sat-bs-paper.template-rose .bs-logo{border-radius:50%}.sat-bs-paper.template-rose .bs-box{background:#fff8fa;border-color:#f0d2dc;border-radius:16px}.sat-bs-paper.template-rose .bs-table th{background:#8a3c59}.sat-bs-paper.template-rose .bs-footer{color:#8a3c59}
.sat-bs-paper.template-slate{--tpl:#6d7b89;--tpl-dark:#354250;--tpl-soft:#e9edf1}.sat-bs-paper.template-slate .bs-doc-head{background:#354250}.sat-bs-paper.template-slate .bs-doc-title{border-left:1px solid rgba(255,255,255,.3);padding-left:24px}.sat-bs-paper.template-slate .bs-box{border:0;background:#eef1f4;border-radius:2px}.sat-bs-paper.template-slate .bs-table th{background:#556270}.sat-bs-paper.template-slate .bs-footer{background:#354250;color:#fff}
.sat-bs-paper.template-orange{--tpl:#ff7a18;--tpl-dark:#5a2807;--tpl-soft:#ffe3cd}.sat-bs-paper.template-orange .bs-doc-head{background:linear-gradient(120deg,#ff6a00 0 38%,#5a2807 38%)}.sat-bs-paper.template-orange .bs-logo{background:#fff;color:#ff6a00}.sat-bs-paper.template-orange .bs-table th{background:#ff6a00}.sat-bs-paper.template-orange .bs-totals .grand{background:#ff6a00;color:#fff}.sat-bs-paper.template-orange .bs-footer{color:#d65b00}
.sat-bs-paper.template-legal{--tpl:#b69a62;--tpl-dark:#1c2734;--tpl-soft:#eee7d8}.sat-bs-paper.template-legal .bs-doc-head{background:#1c2734;border-left:20px solid #b69a62}.sat-bs-paper.template-legal .bs-doc-title h2{font-family:Georgia,serif;font-weight:500}.sat-bs-paper.template-legal .bs-box{border-radius:0;background:#fbfaf6;border-color:#d9ccb0}.sat-bs-paper.template-legal .bs-table th{background:#1c2734;font-family:Georgia,serif}.sat-bs-paper.template-legal .bs-footer{border-top:2px solid #b69a62;color:#1c2734}
.sat-bs-paper.template-architect{--tpl:#2f638a;--tpl-dark:#263849;--tpl-soft:#e8f0f5;background-image:linear-gradient(#edf2f5 1px,transparent 1px),linear-gradient(90deg,#edf2f5 1px,transparent 1px);background-size:22px 22px}.sat-bs-paper.template-architect .bs-doc-head{background:rgba(38,56,73,.97)}.sat-bs-paper.template-architect .bs-box{background:rgba(255,255,255,.92);border-radius:0}.sat-bs-paper.template-architect .bs-table{background:#fff}.sat-bs-paper.template-architect .bs-table th{background:#263849}.sat-bs-paper.template-architect .bs-totals{background:#fff}
.sat-bs-paper.template-artisan{--tpl:#b0784f;--tpl-dark:#644733;--tpl-soft:#efe0cf;background:#fbf5ec}.sat-bs-paper.template-artisan .bs-doc-head{background:#76513a}.sat-bs-paper.template-artisan .bs-logo{border-radius:50%;background:#e8c49c}.sat-bs-paper.template-artisan .bs-box{background:#fffaf3;border-color:#dfc5a9;border-radius:14px}.sat-bs-paper.template-artisan .bs-table th{background:#8b5d3d}.sat-bs-paper.template-artisan .bs-footer{background:#efe0cf;color:#644733}
.sat-bs-paper.template-neon{--tpl:#00d4ff;--tpl-dark:#101829;--tpl-soft:#d9f9ff;background:#f7faff}.sat-bs-paper.template-neon .bs-doc-head{background:linear-gradient(115deg,#101829,#232852);border-bottom:5px solid transparent;border-image:linear-gradient(90deg,#00d4ff,#a64dff) 1}.sat-bs-paper.template-neon .bs-doc-title h2{color:#00d4ff;text-shadow:0 0 12px rgba(0,212,255,.35)}.sat-bs-paper.template-neon .bs-logo{background:linear-gradient(135deg,#00d4ff,#a64dff);color:#fff}.sat-bs-paper.template-neon .bs-box{border-color:#cbd8ef;background:#f5f8ff}.sat-bs-paper.template-neon .bs-table th{background:linear-gradient(90deg,#15233d,#41306f)}.sat-bs-paper.template-neon .bs-totals .grand{background:linear-gradient(90deg,#d9f9ff,#eadfff)}
@media(max-width:560px){.sat-template-picker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:400px}.sat-template-thumb{height:82px}.sat-template-card strong{font-size:10px}.sat-template-card small{display:none}.sat-template-badge{bottom:9px;font-size:6px}}

/* =========================================================
   SAT BUSINESS SUITE — GALERÍA DE PLANTILLAS LIMPIA 1.0.2
   ========================================================= */

#bs_template_library {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#bs_template_library .sat-template-library-top {
    margin: 0 0 10px;
}

#bs_template_library .sat-template-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

#bs_template_library .sat-template-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 2;
    display: flex;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

#bs_template_library #bs_template_search {
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 8px 12px 8px 38px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #172033 !important;
    box-shadow: none !important;
    font-size: 11px !important;
}

#bs_template_library #bs_template_search:focus {
    border-color: #94a3b8 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08) !important;
}

#bs_template_filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 1px 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 0 !important;
    background: transparent !important;
    scrollbar-width: thin;
}

#bs_template_filters .sat-template-category-tab {
    appearance: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #dce3eb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #536174 !important;
    box-shadow: none !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transform: none !important;
}

#bs_template_filters .sat-template-category-tab:hover {
    border-color: #aab5c3 !important;
    background: #f8fafc !important;
    color: #111827 !important;
}

#bs_template_filters .sat-template-category-tab.active {
    border-color: #111923 !important;
    background: #111923 !important;
    color: #fff !important;
}

#bs_template_library .sat-template-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}

#bs_template_library .sat-template-section-head strong {
    display: block;
    margin: 0 0 2px;
    color: #172033;
    font-size: 12px;
    line-height: 1.25;
}

#bs_template_library .sat-template-section-head small {
    display: block;
    color: #748092;
    font-size: 9px;
    line-height: 1.35;
}

#bs_template_library .sat-template-counter {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

#bs_template_picker.sat-template-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-height: 500px !important;
    margin: 0 !important;
    padding: 2px 4px 8px 2px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#bs_template_picker .sat-template-card {
    appearance: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dde5ee !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #172033 !important;
    text-align: left !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .05) !important;
    cursor: pointer !important;
    transform: none !important;
}

#bs_template_picker .sat-template-card:hover {
    border-color: #aab5c3 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .09) !important;
    transform: translateY(-1px) !important;
}

#bs_template_picker .sat-template-card.active {
    border-color: #e2b500 !important;
    box-shadow: 0 0 0 2px rgba(255, 201, 40, .18) !important;
}

#bs_template_picker .sat-template-card[hidden] {
    display: none !important;
}

#bs_template_picker .sat-template-thumb {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.38 / 1 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf4 !important;
    border-radius: 0 !important;
}

#bs_template_picker .sat-template-thumb-paper {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 67%;
    height: 84%;
    overflow: hidden;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
    transform: translate(-50%, -50%);
}

#bs_template_picker .sat-template-thumb-header {
    position: absolute;
    inset: 0 0 auto;
    height: 18%;
    background: var(--tpl-primary, #1d4ed8);
}

#bs_template_picker .sat-template-thumb-brand {
    position: absolute;
    left: 8%;
    top: 7%;
    width: 28%;
    height: 4%;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
}

#bs_template_picker .sat-template-thumb-title {
    position: absolute;
    left: 8%;
    top: 25%;
    width: 40%;
    height: 5%;
    border-radius: 999px;
    background: var(--tpl-primary, #1d4ed8);
}

#bs_template_picker .sat-template-thumb-meta {
    position: absolute;
    right: 8%;
    top: 25%;
    width: 28%;
    height: 3%;
    border-radius: 999px;
    background: #cbd5e1;
}

#bs_template_picker .sat-template-thumb-table {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 38%;
    display: grid;
    gap: 5px;
}

#bs_template_picker .sat-template-thumb-table i {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tpl-primary, #1d4ed8) 0 13%, #d7dee8 13% 70%, #aeb8c6 70%);
}

#bs_template_picker .sat-template-thumb-total {
    position: absolute;
    right: 8%;
    bottom: 18%;
    width: 35%;
    height: 8%;
    border-radius: 3px;
    background: var(--tpl-primary, #1d4ed8);
}

#bs_template_picker .sat-template-thumb-footer {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 7%;
    height: 3px;
    border-radius: 999px;
    background: #dbe2ea;
}

#bs_template_picker .sat-template-card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-height: 82px !important;
    padding: 8px !important;
}

#bs_template_picker .sat-template-card-title-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 5px !important;
}

#bs_template_picker .sat-template-card-title-row strong {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #172033 !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#bs_template_picker .sat-template-selected-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #e2b500;
    color: #111;
    font-size: 9px;
    font-weight: 900;
    opacity: 0;
}

#bs_template_picker .sat-template-card.active .sat-template-selected-icon {
    opacity: 1;
}

#bs_template_picker .sat-template-card-body > small {
    display: block !important;
    min-height: 24px !important;
    margin: 0 !important;
    color: #748092 !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#bs_template_picker .sat-template-card-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    margin-top: auto !important;
}

#bs_template_picker .sat-template-category-name {
    overflow: hidden;
    color: #748092;
    font-size: 7px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bs_template_picker .sat-template-badge {
    position: static !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    border-radius: 999px !important;
    background: #111923 !important;
    color: #fff !important;
    font-size: 6px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#bs_template_empty {
    grid-column: 1 / -1;
    padding: 18px 12px;
    border: 1px dashed #d4dce5;
    border-radius: 11px;
    background: #fafbfd;
    color: #748092;
    text-align: center;
    font-size: 10px;
}

#bs_template_empty[hidden] {
    display: none !important;
}

/* Paletas */
.template-classic { --tpl-primary:#1d4ed8; background:linear-gradient(135deg,#e7efff,#c8d8ff)!important; }
.template-executive { --tpl-primary:#151515; background:linear-gradient(135deg,#202020,#666)!important; }
.template-tech { --tpl-primary:#0284c7; background:linear-gradient(135deg,#071a2d,#0f70a9)!important; }
.template-minimal { --tpl-primary:#64748b; background:linear-gradient(135deg,#f8fafc,#e5e7eb)!important; }
.template-gold { --tpl-primary:#b4872f; background:linear-gradient(135deg,#171717,#80642c)!important; }
.template-construction { --tpl-primary:#eab308; background:linear-gradient(135deg,#252525,#6b5b20)!important; }
.template-creative { --tpl-primary:#7c3aed; background:linear-gradient(135deg,#f0ddff,#d8b4fe)!important; }
.template-medical { --tpl-primary:#0f9f8f; background:linear-gradient(135deg,#e3fbf8,#a7f3d0)!important; }
.template-commercial { --tpl-primary:#dc2626; background:linear-gradient(135deg,#ffe5e5,#fecaca)!important; }
.template-luxury { --tpl-primary:#c09a4a; background:linear-gradient(135deg,#101010,#4f4330)!important; }
.template-corporate { --tpl-primary:#1e3a8a; background:linear-gradient(135deg,#dbeafe,#93c5fd)!important; }
.template-navy { --tpl-primary:#172554; background:linear-gradient(135deg,#dbe4ff,#8094c8)!important; }
.template-emerald { --tpl-primary:#047857; background:linear-gradient(135deg,#d1fae5,#6ee7b7)!important; }
.template-rose { --tpl-primary:#be185d; background:linear-gradient(135deg,#fce7f3,#f9a8d4)!important; }
.template-slate { --tpl-primary:#475569; background:linear-gradient(135deg,#f1f5f9,#cbd5e1)!important; }
.template-orange { --tpl-primary:#ea580c; background:linear-gradient(135deg,#ffedd5,#fdba74)!important; }
.template-legal { --tpl-primary:#6b4f2a; background:linear-gradient(135deg,#f5efe6,#d6c0a2)!important; }
.template-architect { --tpl-primary:#334155; background:linear-gradient(135deg,#e2e8f0,#94a3b8)!important; }
.template-artisan { --tpl-primary:#9a5b32; background:linear-gradient(135deg,#f4e6d4,#d7b38a)!important; }
.template-neon { --tpl-primary:#00d4ff; background:linear-gradient(135deg,#070b1d,#1d0b3d)!important; }

@media (max-width: 480px) {
    #bs_template_picker.sat-template-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   ETAPA 2 — TRES PLANTILLAS CON IDENTIDAD REAL (v1.1.0)
   Profesional Ejecutivo · Tecnología Azul · Construcción Industrial
   ========================================================= */

/* Base común para las tres plantillas destacadas */
.sat-bs-paper.template-classic,
.sat-bs-paper.template-tech,
.sat-bs-paper.template-construction{
    position:relative;
    overflow:hidden;
}

.sat-bs-paper.template-classic .bs-doc-head,
.sat-bs-paper.template-tech .bs-doc-head,
.sat-bs-paper.template-construction .bs-doc-head{
    position:relative;
    isolation:isolate;
}

.sat-bs-paper.template-classic .bs-doc-head > *,
.sat-bs-paper.template-tech .bs-doc-head > *,
.sat-bs-paper.template-construction .bs-doc-head > *{
    position:relative;
    z-index:2;
}

/* ---------------------------------------------------------
   1. PROFESIONAL EJECUTIVO
   --------------------------------------------------------- */
.sat-bs-paper.template-classic{
    --exec-blue:#163f70;
    --exec-blue-2:#2f6faf;
    --exec-ink:#172536;
    --exec-soft:#edf4fa;
    font-family:Inter,"Segoe UI",Arial,sans-serif;
    background:#fff;
}

.sat-bs-paper.template-classic .bs-doc-head{
    min-height:170px;
    padding:34px 44px 36px;
    background:
        linear-gradient(116deg,var(--exec-blue) 0 70%,var(--exec-blue-2) 70% 100%);
    border-bottom:6px solid #9ec4e5;
}

.sat-bs-paper.template-classic .bs-doc-head::before{
    content:"";
    position:absolute;
    right:85px;
    top:-95px;
    width:260px;
    height:260px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:50%;
    box-shadow:0 0 0 34px rgba(255,255,255,.045),0 0 0 68px rgba(255,255,255,.035);
    z-index:0;
}

.sat-bs-paper.template-classic .bs-logo{
    border-radius:8px;
    background:#fff;
    color:var(--exec-blue);
    box-shadow:0 7px 18px rgba(0,0,0,.16);
}

.sat-bs-paper.template-classic .bs-company-line h3{
    font-size:23px;
    font-weight:800;
    letter-spacing:-.3px;
}

.sat-bs-paper.template-classic .bs-doc-title{
    padding-left:25px;
    border-left:1px solid rgba(255,255,255,.35);
}

.sat-bs-paper.template-classic .bs-doc-title h2{
    color:#fff;
    font-size:28px;
    font-weight:800;
    letter-spacing:1.8px;
}

.sat-bs-paper.template-classic .bs-doc-body{
    padding:34px 44px 42px;
}

.sat-bs-paper.template-classic .bs-info{
    gap:16px;
}

.sat-bs-paper.template-classic .bs-box{
    border:0;
    border-radius:7px;
    background:var(--exec-soft);
    box-shadow:inset 4px 0 0 var(--exec-blue-2);
    padding:16px 16px 16px 19px;
}

.sat-bs-paper.template-classic .bs-box strong{
    color:var(--exec-blue);
    font-size:9px;
    letter-spacing:1.1px;
}

.sat-bs-paper.template-classic .bs-table{
    border:1px solid #d9e4ed;
}

.sat-bs-paper.template-classic .bs-table th{
    background:var(--exec-blue);
    padding:12px 11px;
    font-size:9px;
    letter-spacing:.8px;
}

.sat-bs-paper.template-classic .bs-table td{
    border-bottom:1px solid #dfe8ef;
}

.sat-bs-paper.template-classic .bs-table tbody tr:nth-child(even){
    background:#f7fafc;
}

.sat-bs-paper.template-classic .bs-totals .grand{
    background:var(--exec-blue);
    color:#fff;
    border-radius:6px;
    box-shadow:0 8px 18px rgba(22,63,112,.14);
}

.sat-bs-paper.template-classic .bs-notes{
    border-left-color:var(--exec-blue-2);
    background:#f4f8fb;
}

.sat-bs-paper.template-classic .bs-footer{
    border-top:0;
    background:var(--exec-blue);
    color:#dbeafb;
    letter-spacing:.45px;
}

/* ---------------------------------------------------------
   2. TECNOLOGÍA AZUL
   --------------------------------------------------------- */
.sat-bs-paper.template-tech{
    --tech-cyan:#00c8ff;
    --tech-blue:#0875c9;
    --tech-navy:#061d33;
    --tech-soft:#eef9ff;
    font-family:"Segoe UI",Inter,Arial,sans-serif;
    background:
        linear-gradient(rgba(4,116,187,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(4,116,187,.035) 1px,transparent 1px),
        #fff;
    background-size:28px 28px;
}

.sat-bs-paper.template-tech .bs-doc-head{
    min-height:176px;
    padding:34px 43px 38px;
    background:
        radial-gradient(circle at 82% 20%,rgba(0,200,255,.30),transparent 27%),
        linear-gradient(125deg,#041729 0%,#073b67 52%,#0875c9 100%);
    border-bottom:5px solid var(--tech-cyan);
}

.sat-bs-paper.template-tech .bs-doc-head::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:.42;
    background:
        linear-gradient(90deg,transparent 0 72%,rgba(255,255,255,.13) 72% 72.3%,transparent 72.3%),
        linear-gradient(0deg,transparent 0 28%,rgba(0,200,255,.18) 28% 28.5%,transparent 28.5%),
        radial-gradient(circle at 74% 28%,var(--tech-cyan) 0 3px,transparent 4px),
        radial-gradient(circle at 86% 58%,var(--tech-cyan) 0 3px,transparent 4px);
    z-index:0;
}

.sat-bs-paper.template-tech .bs-doc-head::after{
    content:"";
    position:absolute;
    right:41px;
    bottom:22px;
    width:185px;
    height:62px;
    border-right:1px solid rgba(0,200,255,.55);
    border-bottom:1px solid rgba(0,200,255,.55);
    transform:skewX(-26deg);
    z-index:0;
}

.sat-bs-paper.template-tech .bs-logo{
    border-radius:5px;
    background:linear-gradient(135deg,var(--tech-cyan),#1269e5);
    color:#031827;
    box-shadow:0 0 0 3px rgba(0,200,255,.18),0 0 22px rgba(0,200,255,.26);
}

.sat-bs-paper.template-tech .bs-company-line h3{
    font-size:22px;
    font-weight:700;
    letter-spacing:.2px;
}

.sat-bs-paper.template-tech .bs-doc-title h2{
    color:var(--tech-cyan);
    font-size:27px;
    letter-spacing:2.2px;
    text-shadow:0 0 15px rgba(0,200,255,.25);
}

.sat-bs-paper.template-tech .bs-box{
    border:1px solid #bfe5f7;
    border-radius:5px;
    background:rgba(245,252,255,.94);
    box-shadow:inset 0 0 0 1px #fff;
}

.sat-bs-paper.template-tech .bs-box strong{
    color:#0875c9;
}

.sat-bs-paper.template-tech .bs-table{
    box-shadow:0 8px 18px rgba(6,29,51,.08);
}

.sat-bs-paper.template-tech .bs-table th{
    background:linear-gradient(90deg,#061d33,#0875c9);
    border-bottom:3px solid var(--tech-cyan);
    letter-spacing:.9px;
}

.sat-bs-paper.template-tech .bs-table td{
    background:rgba(255,255,255,.92);
}

.sat-bs-paper.template-tech .bs-totals .grand{
    background:linear-gradient(90deg,#062844,#0875c9);
    color:#fff;
    border:1px solid #13c5f4;
    border-radius:4px;
}

.sat-bs-paper.template-tech .bs-notes{
    border-left-color:var(--tech-cyan);
    background:var(--tech-soft);
}

.sat-bs-paper.template-tech .bs-footer{
    border-top:0;
    background:#061d33;
    color:#80dcf7;
    letter-spacing:.8px;
}

/* ---------------------------------------------------------
   3. CONSTRUCCIÓN INDUSTRIAL
   --------------------------------------------------------- */
.sat-bs-paper.template-construction{
    --build-yellow:#ffc400;
    --build-dark:#181818;
    --build-gray:#5f6266;
    --build-soft:#f3f1eb;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    background:
        linear-gradient(rgba(30,30,30,.032) 1px,transparent 1px),
        linear-gradient(90deg,rgba(30,30,30,.032) 1px,transparent 1px),
        #fff;
    background-size:24px 24px;
}

.sat-bs-paper.template-construction .bs-doc-head{
    min-height:178px;
    padding:33px 43px 38px;
    background:
        linear-gradient(105deg,rgba(255,196,0,.98) 0 27%,transparent 27%),
        repeating-linear-gradient(135deg,#141414 0,#141414 17px,#202020 17px,#202020 34px);
    border-bottom:0;
}

.sat-bs-paper.template-construction .bs-doc-head::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:10px;
    background:repeating-linear-gradient(135deg,var(--build-yellow) 0,var(--build-yellow) 13px,#171717 13px,#171717 26px);
    z-index:1;
}

.sat-bs-paper.template-construction .bs-doc-head::after{
    content:"";
    position:absolute;
    right:35px;
    top:20px;
    width:190px;
    height:105px;
    opacity:.12;
    background:
        linear-gradient(63deg,transparent 47%,#fff 48% 51%,transparent 52%),
        linear-gradient(-63deg,transparent 47%,#fff 48% 51%,transparent 52%),
        linear-gradient(#fff,#fff);
    background-size:55px 55px,55px 55px,2px 100%;
    background-position:0 0,0 0,50% 0;
    background-repeat:repeat,no-repeat,no-repeat;
    z-index:0;
}

.sat-bs-paper.template-construction .bs-company-line{
    max-width:55%;
}

.sat-bs-paper.template-construction .bs-logo{
    border-radius:2px;
    background:#111;
    color:var(--build-yellow);
    border:3px solid #111;
    box-shadow:6px 6px 0 rgba(0,0,0,.14);
}

.sat-bs-paper.template-construction .bs-company-line h3{
    font-size:23px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.7px;
    color:#111;
}

.sat-bs-paper.template-construction .bs-company-line p{
    color:#272727;
    opacity:.9;
    font-weight:600;
}

.sat-bs-paper.template-construction .bs-doc-title{
    max-width:42%;
    padding:12px 15px;
    background:rgba(0,0,0,.28);
    border:1px solid rgba(255,255,255,.14);
}

.sat-bs-paper.template-construction .bs-doc-title h2{
    color:var(--build-yellow);
    font-size:27px;
    font-weight:950;
    letter-spacing:1.7px;
}

.sat-bs-paper.template-construction .bs-box{
    border:1px solid #bababa;
    border-radius:0;
    background:rgba(255,255,255,.95);
    box-shadow:inset 5px 0 0 var(--build-yellow);
}

.sat-bs-paper.template-construction .bs-box strong{
    color:#272727;
    font-weight:900;
}

.sat-bs-paper.template-construction .bs-table{
    border:1px solid #8d8d8d;
}

.sat-bs-paper.template-construction .bs-table th{
    background:#181818;
    color:#fff;
    border-bottom:5px solid var(--build-yellow);
    font-weight:900;
    letter-spacing:.8px;
}

.sat-bs-paper.template-construction .bs-table tbody tr:nth-child(even){
    background:#f3f1eb;
}

.sat-bs-paper.template-construction .bs-totals{
    border-top:4px solid #181818;
    padding-top:4px;
}

.sat-bs-paper.template-construction .bs-totals .grand{
    border-radius:0;
    background:var(--build-yellow);
    color:#111;
    border-left:9px solid #181818;
    font-weight:900;
}

.sat-bs-paper.template-construction .bs-notes{
    border-left:7px solid var(--build-yellow);
    border-top:1px solid #c4c4c4;
    border-bottom:1px solid #c4c4c4;
    background:#f3f1eb;
}

.sat-bs-paper.template-construction .bs-footer{
    border-top:0;
    background:#181818;
    color:#f4d952;
    text-transform:uppercase;
    letter-spacing:1px;
}

@media print{
    .sat-bs-paper.template-classic,
    .sat-bs-paper.template-tech,
    .sat-bs-paper.template-construction{
        -webkit-print-color-adjust:exact!important;
        print-color-adjust:exact!important;
    }
}

/* =========================================================
   SAT BUSINESS SUITE 2.0 — 20 FORMATOS DE PRESUPUESTO
   Estructuras, tipografías y recursos gráficos diferenciados
   ========================================================= */

.sat-bs-paper{--accent:#1d4ed8;--ink:#172033;--soft:#f4f7fb;--line:#dce3ec;isolation:isolate}
.sat-bs-paper .bs-template-art{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.sat-bs-paper .bs-template-art i,.sat-bs-paper .bs-template-art b,.sat-bs-paper .bs-template-art em{position:absolute;display:block}
.sat-bs-paper .bs-doc-head,.sat-bs-paper .bs-doc-body,.sat-bs-paper .bs-footer{position:relative;z-index:1}

/* FAMILIA A — EDITORIAL / PREMIUM: cabecera lateral y composición asimétrica */
.sat-bs-paper.template-executive,
.sat-bs-paper.template-gold,
.sat-bs-paper.template-luxury,
.sat-bs-paper.template-legal{font-family:Georgia,"Times New Roman",serif;background:#fff;color:#202020}
.sat-bs-paper.template-executive .bs-doc-head,
.sat-bs-paper.template-gold .bs-doc-head,
.sat-bs-paper.template-luxury .bs-doc-head,
.sat-bs-paper.template-legal .bs-doc-head{display:grid;grid-template-columns:1.15fr .85fr;min-height:205px;padding:0;background:#f7f4ed;color:#171717;border:0}
.sat-bs-paper.template-executive .bs-company-line,
.sat-bs-paper.template-gold .bs-company-line,
.sat-bs-paper.template-luxury .bs-company-line,
.sat-bs-paper.template-legal .bs-company-line{padding:48px 42px;align-items:flex-start}
.sat-bs-paper.template-executive .bs-doc-title,
.sat-bs-paper.template-gold .bs-doc-title,
.sat-bs-paper.template-luxury .bs-doc-title,
.sat-bs-paper.template-legal .bs-doc-title{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;padding:42px;text-align:right;background:var(--premium-dark,#151515);color:#fff}
.sat-bs-paper.template-executive .bs-doc-title h2,
.sat-bs-paper.template-gold .bs-doc-title h2,
.sat-bs-paper.template-luxury .bs-doc-title h2,
.sat-bs-paper.template-legal .bs-doc-title h2{font-family:"Segoe UI",Arial,sans-serif;font-size:30px;letter-spacing:3px;color:var(--premium-accent,#c9a85d)}
.sat-bs-paper.template-executive .bs-doc-body,
.sat-bs-paper.template-gold .bs-doc-body,
.sat-bs-paper.template-luxury .bs-doc-body,
.sat-bs-paper.template-legal .bs-doc-body{padding:38px 44px 48px}
.sat-bs-paper.template-executive .bs-info,
.sat-bs-paper.template-gold .bs-info,
.sat-bs-paper.template-luxury .bs-info,
.sat-bs-paper.template-legal .bs-info{display:grid;grid-template-columns:1.35fr .65fr;gap:0;border-top:1px solid var(--premium-accent,#c9a85d);border-bottom:1px solid #ddd}
.sat-bs-paper.template-executive .bs-box,
.sat-bs-paper.template-gold .bs-box,
.sat-bs-paper.template-luxury .bs-box,
.sat-bs-paper.template-legal .bs-box{border:0;border-radius:0;background:transparent;padding:18px 16px}
.sat-bs-paper.template-executive .bs-box+ .bs-box,
.sat-bs-paper.template-gold .bs-box+ .bs-box,
.sat-bs-paper.template-luxury .bs-box+ .bs-box,
.sat-bs-paper.template-legal .bs-box+ .bs-box{border-left:1px solid #ddd}
.sat-bs-paper.template-executive .bs-table,
.sat-bs-paper.template-gold .bs-table,
.sat-bs-paper.template-luxury .bs-table,
.sat-bs-paper.template-legal .bs-table{border:0;margin-top:28px}
.sat-bs-paper.template-executive .bs-table th,
.sat-bs-paper.template-gold .bs-table th,
.sat-bs-paper.template-luxury .bs-table th,
.sat-bs-paper.template-legal .bs-table th{background:transparent;color:#222;border-top:2px solid var(--premium-dark,#151515);border-bottom:1px solid #999;font-family:"Segoe UI",Arial,sans-serif;letter-spacing:1px}
.sat-bs-paper.template-executive .bs-table td,
.sat-bs-paper.template-gold .bs-table td,
.sat-bs-paper.template-luxury .bs-table td,
.sat-bs-paper.template-legal .bs-table td{border-bottom:1px solid #ddd}
.sat-bs-paper.template-executive .bs-totals,
.sat-bs-paper.template-gold .bs-totals,
.sat-bs-paper.template-luxury .bs-totals,
.sat-bs-paper.template-legal .bs-totals{margin-left:auto;width:46%;border-top:2px solid var(--premium-dark,#151515)}
.sat-bs-paper.template-executive .bs-totals .grand,
.sat-bs-paper.template-gold .bs-totals .grand,
.sat-bs-paper.template-luxury .bs-totals .grand,
.sat-bs-paper.template-legal .bs-totals .grand{background:var(--premium-dark,#151515);color:#fff;border-radius:0;border-left:7px solid var(--premium-accent,#c9a85d)}
.sat-bs-paper.template-executive .bs-footer,
.sat-bs-paper.template-gold .bs-footer,
.sat-bs-paper.template-luxury .bs-footer,
.sat-bs-paper.template-legal .bs-footer{background:var(--premium-dark,#151515);color:#ddd;border:0}
.sat-bs-paper.template-executive{--premium-dark:#111;--premium-accent:#d1d5db}
.sat-bs-paper.template-gold{--premium-dark:#33270d;--premium-accent:#d7af45;background:#fffcf4}
.sat-bs-paper.template-luxury{--premium-dark:#080808;--premium-accent:#c79b45;background:#fbfaf7}
.sat-bs-paper.template-legal{--premium-dark:#18212b;--premium-accent:#b89b68;background:#faf8f2}
.sat-bs-paper.template-legal .bs-template-art i{right:-70px;top:305px;width:250px;height:250px;border:1px solid rgba(184,155,104,.18);border-radius:50%;box-shadow:0 0 0 28px rgba(184,155,104,.04),0 0 0 56px rgba(184,155,104,.03)}

/* FAMILIA B — CORPORATIVA: barra superior, datos en fichas y total horizontal */
.sat-bs-paper.template-corporate,
.sat-bs-paper.template-navy,
.sat-bs-paper.template-emerald{font-family:Inter,"Segoe UI",Arial,sans-serif;background:#fff;color:#1e293b}
.sat-bs-paper.template-corporate{--corp:#174f86;--corp2:#4a91cc;--corpsoft:#edf5fc}
.sat-bs-paper.template-navy{--corp:#10243e;--corp2:#b49658;--corpsoft:#f5f1e8}
.sat-bs-paper.template-emerald{--corp:#0b6b50;--corp2:#48b28e;--corpsoft:#ecf9f4}
.sat-bs-paper.template-corporate .bs-doc-head,
.sat-bs-paper.template-navy .bs-doc-head,
.sat-bs-paper.template-emerald .bs-doc-head{min-height:185px;padding:38px 44px;background:#fff;color:#1e293b;border-top:14px solid var(--corp);border-bottom:1px solid #d7e1ea}
.sat-bs-paper.template-corporate .bs-doc-head::after,
.sat-bs-paper.template-navy .bs-doc-head::after,
.sat-bs-paper.template-emerald .bs-doc-head::after{content:"";position:absolute;right:0;top:0;width:32%;height:100%;background:linear-gradient(135deg,transparent 18%,var(--corpsoft) 18%)}
.sat-bs-paper.template-corporate .bs-logo,
.sat-bs-paper.template-navy .bs-logo,
.sat-bs-paper.template-emerald .bs-logo{background:var(--corp);color:#fff;border-radius:4px}
.sat-bs-paper.template-corporate .bs-doc-title h2,
.sat-bs-paper.template-navy .bs-doc-title h2,
.sat-bs-paper.template-emerald .bs-doc-title h2{color:var(--corp);font-size:29px;letter-spacing:1px}
.sat-bs-paper.template-corporate .bs-doc-body,
.sat-bs-paper.template-navy .bs-doc-body,
.sat-bs-paper.template-emerald .bs-doc-body{padding:32px 44px 46px}
.sat-bs-paper.template-corporate .bs-info,
.sat-bs-paper.template-navy .bs-info,
.sat-bs-paper.template-emerald .bs-info{gap:14px}
.sat-bs-paper.template-corporate .bs-box,
.sat-bs-paper.template-navy .bs-box,
.sat-bs-paper.template-emerald .bs-box{border:0;border-radius:10px;background:var(--corpsoft);padding:16px 18px}
.sat-bs-paper.template-corporate .bs-box strong,
.sat-bs-paper.template-navy .bs-box strong,
.sat-bs-paper.template-emerald .bs-box strong{color:var(--corp)}
.sat-bs-paper.template-corporate .bs-table th,
.sat-bs-paper.template-navy .bs-table th,
.sat-bs-paper.template-emerald .bs-table th{background:var(--corp);border-bottom:4px solid var(--corp2)}
.sat-bs-paper.template-corporate .bs-table tbody tr:nth-child(even),
.sat-bs-paper.template-navy .bs-table tbody tr:nth-child(even),
.sat-bs-paper.template-emerald .bs-table tbody tr:nth-child(even){background:var(--corpsoft)}
.sat-bs-paper.template-corporate .bs-totals,
.sat-bs-paper.template-navy .bs-totals,
.sat-bs-paper.template-emerald .bs-totals{display:grid;grid-template-columns:repeat(4,1fr);width:100%;margin-top:24px;border:1px solid #dbe3ea;border-radius:8px;overflow:hidden}
.sat-bs-paper.template-corporate .bs-totals>div,
.sat-bs-paper.template-navy .bs-totals>div,
.sat-bs-paper.template-emerald .bs-totals>div{display:block;padding:12px;border-right:1px solid #dbe3ea;text-align:center}
.sat-bs-paper.template-corporate .bs-totals .grand,
.sat-bs-paper.template-navy .bs-totals .grand,
.sat-bs-paper.template-emerald .bs-totals .grand{background:var(--corp);color:#fff;border:0;border-radius:0}
.sat-bs-paper.template-corporate .bs-footer,
.sat-bs-paper.template-navy .bs-footer,
.sat-bs-paper.template-emerald .bs-footer{background:var(--corp);color:#fff;border:0}

/* FAMILIA C — MINIMAL / SALUD: diseño de aire, jerarquía tipográfica */
.sat-bs-paper.template-minimal,
.sat-bs-paper.template-medical,
.sat-bs-paper.template-slate{font-family:"Helvetica Neue",Arial,sans-serif;background:#fff;color:#27313d}
.sat-bs-paper.template-minimal{--clean:#111827;--clean2:#94a3b8;--cleansoft:#f8fafc}
.sat-bs-paper.template-medical{--clean:#178f8b;--clean2:#73c8c5;--cleansoft:#effafa}
.sat-bs-paper.template-slate{--clean:#465568;--clean2:#94a3b8;--cleansoft:#f2f5f7}
.sat-bs-paper.template-minimal .bs-doc-head,
.sat-bs-paper.template-medical .bs-doc-head,
.sat-bs-paper.template-slate .bs-doc-head{min-height:170px;padding:48px 52px 28px;background:#fff;color:#27313d;border:0}
.sat-bs-paper.template-minimal .bs-doc-head::after,
.sat-bs-paper.template-medical .bs-doc-head::after,
.sat-bs-paper.template-slate .bs-doc-head::after{content:"";position:absolute;left:52px;right:52px;bottom:0;height:3px;background:var(--clean)}
.sat-bs-paper.template-minimal .bs-logo,
.sat-bs-paper.template-medical .bs-logo,
.sat-bs-paper.template-slate .bs-logo{background:transparent;color:var(--clean);border:2px solid var(--clean);border-radius:50%;box-shadow:none}
.sat-bs-paper.template-minimal .bs-doc-title h2,
.sat-bs-paper.template-medical .bs-doc-title h2,
.sat-bs-paper.template-slate .bs-doc-title h2{color:var(--clean);font-size:26px;font-weight:500;letter-spacing:4px}
.sat-bs-paper.template-minimal .bs-doc-body,
.sat-bs-paper.template-medical .bs-doc-body,
.sat-bs-paper.template-slate .bs-doc-body{padding:32px 52px 48px}
.sat-bs-paper.template-minimal .bs-info,
.sat-bs-paper.template-medical .bs-info,
.sat-bs-paper.template-slate .bs-info{display:grid;grid-template-columns:1.5fr .5fr;gap:26px}
.sat-bs-paper.template-minimal .bs-box,
.sat-bs-paper.template-medical .bs-box,
.sat-bs-paper.template-slate .bs-box{border:0;border-radius:0;background:transparent;padding:0 0 18px;border-bottom:1px solid #d7dee7}
.sat-bs-paper.template-minimal .bs-box strong,
.sat-bs-paper.template-medical .bs-box strong,
.sat-bs-paper.template-slate .bs-box strong{color:var(--clean);letter-spacing:1.5px}
.sat-bs-paper.template-minimal .bs-table,
.sat-bs-paper.template-medical .bs-table,
.sat-bs-paper.template-slate .bs-table{border:0;margin-top:28px}
.sat-bs-paper.template-minimal .bs-table th,
.sat-bs-paper.template-medical .bs-table th,
.sat-bs-paper.template-slate .bs-table th{background:transparent;color:var(--clean);border-top:1px solid var(--clean);border-bottom:1px solid var(--clean);letter-spacing:1px}
.sat-bs-paper.template-minimal .bs-table td,
.sat-bs-paper.template-medical .bs-table td,
.sat-bs-paper.template-slate .bs-table td{border-bottom:1px solid #e2e8f0}
.sat-bs-paper.template-minimal .bs-totals,
.sat-bs-paper.template-medical .bs-totals,
.sat-bs-paper.template-slate .bs-totals{width:43%;margin-left:auto}
.sat-bs-paper.template-minimal .bs-totals .grand,
.sat-bs-paper.template-medical .bs-totals .grand,
.sat-bs-paper.template-slate .bs-totals .grand{background:var(--clean);color:#fff;border-radius:0}
.sat-bs-paper.template-medical .bs-template-art i{right:-45px;top:250px;width:150px;height:40px;background:rgba(23,143,139,.05)}
.sat-bs-paper.template-medical .bs-template-art b{right:10px;top:195px;width:40px;height:150px;background:rgba(23,143,139,.05)}
.sat-bs-paper.template-minimal .bs-footer,
.sat-bs-paper.template-medical .bs-footer,
.sat-bs-paper.template-slate .bs-footer{background:#fff;color:#7c8796;border-top:1px solid #dfe5eb}

/* FAMILIA D — COMERCIAL / VENTAS: total protagonista y bloques vivos */
.sat-bs-paper.template-commercial,
.sat-bs-paper.template-orange,
.sat-bs-paper.template-rose{font-family:Inter,"Segoe UI",Arial,sans-serif;background:#fff;color:#253044}
.sat-bs-paper.template-commercial{--sale:#d84b19;--sale2:#ff9a45;--salesoft:#fff4eb}
.sat-bs-paper.template-orange{--sale:#f06500;--sale2:#ffb347;--salesoft:#fff5e9}
.sat-bs-paper.template-rose{--sale:#9e3158;--sale2:#e99bb4;--salesoft:#fff1f6}
.sat-bs-paper.template-commercial .bs-doc-head,
.sat-bs-paper.template-orange .bs-doc-head,
.sat-bs-paper.template-rose .bs-doc-head{min-height:190px;padding:36px 43px;background:linear-gradient(115deg,var(--sale) 0 62%,var(--sale2) 62% 100%);color:#fff;border:0}
.sat-bs-paper.template-commercial .bs-doc-head::after,
.sat-bs-paper.template-orange .bs-doc-head::after,
.sat-bs-paper.template-rose .bs-doc-head::after{content:"OFERTA";position:absolute;right:32px;bottom:14px;color:rgba(255,255,255,.2);font-size:52px;font-weight:950;letter-spacing:2px}
.sat-bs-paper.template-commercial .bs-logo,
.sat-bs-paper.template-orange .bs-logo,
.sat-bs-paper.template-rose .bs-logo{background:#fff;color:var(--sale);border-radius:12px}
.sat-bs-paper.template-commercial .bs-doc-title,
.sat-bs-paper.template-orange .bs-doc-title,
.sat-bs-paper.template-rose .bs-doc-title{padding:14px 18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);border-radius:12px;backdrop-filter:blur(3px)}
.sat-bs-paper.template-commercial .bs-doc-title h2,
.sat-bs-paper.template-orange .bs-doc-title h2,
.sat-bs-paper.template-rose .bs-doc-title h2{color:#fff;font-size:26px;letter-spacing:1px}
.sat-bs-paper.template-commercial .bs-doc-body,
.sat-bs-paper.template-orange .bs-doc-body,
.sat-bs-paper.template-rose .bs-doc-body{padding:32px 42px 46px}
.sat-bs-paper.template-commercial .bs-box,
.sat-bs-paper.template-orange .bs-box,
.sat-bs-paper.template-rose .bs-box{border:0;background:var(--salesoft);border-radius:12px;padding:16px}
.sat-bs-paper.template-commercial .bs-box strong,
.sat-bs-paper.template-orange .bs-box strong,
.sat-bs-paper.template-rose .bs-box strong{color:var(--sale)}
.sat-bs-paper.template-commercial .bs-table th,
.sat-bs-paper.template-orange .bs-table th,
.sat-bs-paper.template-rose .bs-table th{background:var(--sale);border:0}
.sat-bs-paper.template-commercial .bs-table tbody tr:nth-child(even),
.sat-bs-paper.template-orange .bs-table tbody tr:nth-child(even),
.sat-bs-paper.template-rose .bs-table tbody tr:nth-child(even){background:var(--salesoft)}
.sat-bs-paper.template-commercial .bs-totals,
.sat-bs-paper.template-orange .bs-totals,
.sat-bs-paper.template-rose .bs-totals{width:52%;margin-left:auto;background:var(--salesoft);padding:12px;border-radius:12px}
.sat-bs-paper.template-commercial .bs-totals .grand,
.sat-bs-paper.template-orange .bs-totals .grand,
.sat-bs-paper.template-rose .bs-totals .grand{margin-top:8px;padding:18px;background:var(--sale);color:#fff;border-radius:10px;font-size:18px}
.sat-bs-paper.template-commercial .bs-payment,
.sat-bs-paper.template-orange .bs-payment,
.sat-bs-paper.template-rose .bs-payment{border:2px dashed var(--sale);background:#fff;border-radius:10px}
.sat-bs-paper.template-commercial .bs-footer,
.sat-bs-paper.template-orange .bs-footer,
.sat-bs-paper.template-rose .bs-footer{background:var(--sale);color:#fff;border:0}

/* FAMILIA E — CREATIVA / ARTESANAL: formas orgánicas y lectura editorial */
.sat-bs-paper.template-creative,
.sat-bs-paper.template-artisan{background:#fff;color:#332b3b}
.sat-bs-paper.template-creative{--art:#7c3ea7;--art2:#ef6f78;--artsoft:#fff0f5;font-family:"Trebuchet MS","Segoe UI",sans-serif}
.sat-bs-paper.template-artisan{--art:#79533c;--art2:#c59262;--artsoft:#f6eadb;font-family:Georgia,"Times New Roman",serif;background:#fffaf3}
.sat-bs-paper.template-creative .bs-doc-head,
.sat-bs-paper.template-artisan .bs-doc-head{min-height:210px;padding:42px 44px;background:var(--artsoft);color:#332b3b;border:0}
.sat-bs-paper.template-creative .bs-doc-head{clip-path:ellipse(92% 86% at 50% 0%)}
.sat-bs-paper.template-artisan .bs-doc-head{border-bottom:8px double var(--art2)}
.sat-bs-paper.template-creative .bs-template-art i{left:-75px;top:-80px;width:230px;height:230px;border-radius:44% 56% 62% 38%;background:linear-gradient(135deg,var(--art),var(--art2));opacity:.18;transform:rotate(24deg)}
.sat-bs-paper.template-creative .bs-template-art b{right:-55px;top:110px;width:170px;height:170px;border-radius:50%;border:28px solid rgba(124,62,167,.07)}
.sat-bs-paper.template-artisan .bs-template-art i{inset:0;background-image:radial-gradient(rgba(121,83,60,.06) .8px,transparent .8px);background-size:7px 7px}
.sat-bs-paper.template-creative .bs-logo,
.sat-bs-paper.template-artisan .bs-logo{background:var(--art);color:#fff;border-radius:50%}
.sat-bs-paper.template-creative .bs-doc-title h2,
.sat-bs-paper.template-artisan .bs-doc-title h2{color:var(--art);font-size:29px}
.sat-bs-paper.template-creative .bs-doc-body,
.sat-bs-paper.template-artisan .bs-doc-body{padding:30px 44px 48px}
.sat-bs-paper.template-creative .bs-info,
.sat-bs-paper.template-artisan .bs-info{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.sat-bs-paper.template-creative .bs-box,
.sat-bs-paper.template-artisan .bs-box{border:0;border-radius:18px;background:var(--artsoft);padding:17px}
.sat-bs-paper.template-creative .bs-table,
.sat-bs-paper.template-artisan .bs-table{border:0;border-radius:14px;overflow:hidden;box-shadow:0 10px 26px rgba(70,45,80,.09)}
.sat-bs-paper.template-creative .bs-table th,
.sat-bs-paper.template-artisan .bs-table th{background:var(--art);border-bottom:4px solid var(--art2)}
.sat-bs-paper.template-creative .bs-totals .grand,
.sat-bs-paper.template-artisan .bs-totals .grand{background:linear-gradient(90deg,var(--art),var(--art2));color:#fff;border-radius:14px}
.sat-bs-paper.template-creative .bs-footer,
.sat-bs-paper.template-artisan .bs-footer{background:var(--art);color:#fff;border:0}

/* FAMILIA F — TÉCNICA: planos, cuadriculado y estructura rígida */
.sat-bs-paper.template-architect{--draft:#263849;--draft2:#8298aa;--draftsoft:#f1f5f8;font-family:"Arial Narrow","Roboto Condensed",Arial,sans-serif;background-color:#fff;background-image:linear-gradient(rgba(38,56,73,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(38,56,73,.045) 1px,transparent 1px);background-size:22px 22px}
.sat-bs-paper.template-architect .bs-doc-head{min-height:185px;padding:36px 42px;background:rgba(255,255,255,.94);color:#263849;border-left:18px solid var(--draft);border-bottom:1px solid var(--draft)}
.sat-bs-paper.template-architect .bs-doc-head::after{content:"PLANO / PROYECTO";position:absolute;right:42px;top:25px;color:rgba(38,56,73,.12);font-size:35px;font-weight:900;letter-spacing:2px}
.sat-bs-paper.template-architect .bs-logo{border:2px solid var(--draft);background:#fff;color:var(--draft);border-radius:0}
.sat-bs-paper.template-architect .bs-doc-title{border:1px solid var(--draft);padding:12px 15px;background:#fff}
.sat-bs-paper.template-architect .bs-doc-title h2{color:var(--draft);letter-spacing:2px}
.sat-bs-paper.template-architect .bs-doc-body{padding:30px 42px 46px}
.sat-bs-paper.template-architect .bs-info{gap:0;border:1px solid var(--draft)}
.sat-bs-paper.template-architect .bs-box{border:0;border-radius:0;background:rgba(255,255,255,.92)}
.sat-bs-paper.template-architect .bs-box+ .bs-box{border-left:1px solid var(--draft)}
.sat-bs-paper.template-architect .bs-table{border:1px solid var(--draft)}
.sat-bs-paper.template-architect .bs-table th{background:var(--draft);border:0}
.sat-bs-paper.template-architect .bs-table td{border-bottom:1px solid #aebbc5}
.sat-bs-paper.template-architect .bs-totals .grand{background:var(--draft);color:#fff;border-radius:0}
.sat-bs-paper.template-architect .bs-footer{background:#fff;color:var(--draft);border-top:3px double var(--draft)}

/* NEÓN DIGITAL — tarjeta oscura completa, distinto a Tecnología Azul */
.sat-bs-paper.template-neon{--neon1:#00d7ff;--neon2:#a749ff;font-family:"Segoe UI",Arial,sans-serif;background:#080d1c;color:#dcecff}
.sat-bs-paper.template-neon .bs-doc-head{min-height:190px;padding:38px 43px;background:radial-gradient(circle at 76% 25%,rgba(167,73,255,.28),transparent 25%),linear-gradient(125deg,#050916,#101f3c);color:#fff;border-bottom:2px solid var(--neon1)}
.sat-bs-paper.template-neon .bs-logo{background:#0b1428;color:var(--neon1);border:1px solid var(--neon1);box-shadow:0 0 18px rgba(0,215,255,.35)}
.sat-bs-paper.template-neon .bs-doc-title h2{color:var(--neon1);text-shadow:0 0 15px rgba(0,215,255,.45);letter-spacing:3px}
.sat-bs-paper.template-neon .bs-doc-body{padding:32px 43px 46px;background:linear-gradient(rgba(0,215,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(0,215,255,.025) 1px,transparent 1px);background-size:25px 25px}
.sat-bs-paper.template-neon .bs-box{background:#10182a;border:1px solid #24395b;color:#dcecff;border-radius:5px}
.sat-bs-paper.template-neon .bs-box strong{color:var(--neon1)}
.sat-bs-paper.template-neon .bs-table{border:1px solid #263a59}
.sat-bs-paper.template-neon .bs-table th{background:linear-gradient(90deg,#101d37,#472078);border-bottom:2px solid var(--neon1)}
.sat-bs-paper.template-neon .bs-table td{background:#0d1526;color:#dcecff;border-bottom:1px solid #22324c}
.sat-bs-paper.template-neon .bs-totals{color:#dcecff}
.sat-bs-paper.template-neon .bs-totals .grand{background:linear-gradient(90deg,#0b86a0,#7025a3);color:#fff;border:1px solid var(--neon1);border-radius:5px}
.sat-bs-paper.template-neon .bs-payment,.sat-bs-paper.template-neon .bs-notes{background:#10182a;color:#dcecff;border-color:var(--neon1)}
.sat-bs-paper.template-neon .bs-footer{background:#050916;color:var(--neon1);border-top:1px solid #24395b}

/* Correcciones de impresión y conservación de color */
@media print{
  .sat-bs-paper{overflow:hidden!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .sat-bs-paper .bs-doc-head,.sat-bs-paper .bs-table th,.sat-bs-paper .bs-totals .grand,.sat-bs-paper .bs-footer{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* =========================================================
   V2.0.1 — íconos SVG por categoría + corrección de textos
   ========================================================= */
.sat-bs-paper .bs-doc-head{align-items:stretch;gap:20px}
.sat-bs-paper .bs-doc-head > *,
.sat-bs-paper .bs-company-line,
.sat-bs-paper .bs-doc-title{min-width:0}
.sat-bs-paper .bs-company-line h3,
.sat-bs-paper .bs-company-line p,
.sat-bs-paper .bs-doc-title h2,
.sat-bs-paper .bs-doc-title p{max-width:100%;overflow-wrap:anywhere;word-break:normal}
.sat-bs-paper .bs-doc-title h2{line-height:1.04}

.sat-bs-paper.template-executive .bs-doc-head,
.sat-bs-paper.template-gold .bs-doc-head,
.sat-bs-paper.template-luxury .bs-doc-head,
.sat-bs-paper.template-legal .bs-doc-head{grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr)}

.sat-bs-paper.template-commercial .bs-doc-head,
.sat-bs-paper.template-orange .bs-doc-head,
.sat-bs-paper.template-rose .bs-doc-head,
.sat-bs-paper.template-tech .bs-doc-head,
.sat-bs-paper.template-neon .bs-doc-head,
.sat-bs-paper.template-corporate .bs-doc-head,
.sat-bs-paper.template-navy .bs-doc-head,
.sat-bs-paper.template-emerald .bs-doc-head{grid-template-columns:minmax(0,1fr) minmax(250px,.85fr)}

.sat-bs-paper.template-commercial .bs-doc-title h2,
.sat-bs-paper.template-orange .bs-doc-title h2,
.sat-bs-paper.template-rose .bs-doc-title h2,
.sat-bs-paper.template-tech .bs-doc-title h2,
.sat-bs-paper.template-neon .bs-doc-title h2,
.sat-bs-paper.template-executive .bs-doc-title h2,
.sat-bs-paper.template-gold .bs-doc-title h2,
.sat-bs-paper.template-luxury .bs-doc-title h2,
.sat-bs-paper.template-legal .bs-doc-title h2{font-size:28px;letter-spacing:1.6px}

.sat-bs-paper .bs-template-art em{position:absolute;display:block;pointer-events:none;background-position:center;background-repeat:no-repeat;background-size:contain;opacity:.12}

/* Corporativas */
.sat-bs-paper.template-classic .bs-template-art em,
.sat-bs-paper.template-corporate .bs-template-art em,
.sat-bs-paper.template-navy .bs-template-art em,
.sat-bs-paper.template-emerald .bs-template-art em,
.sat-bs-paper.template-executive .bs-template-art em,
.sat-bs-paper.template-gold .bs-template-art em,
.sat-bs-paper.template-luxury .bs-template-art em{right:28px;bottom:34px;width:120px;height:120px;opacity:.10;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 104V48l18-10v66M52 104V26l24-12v90M84 104V58l20-10v56M16 104h96'/%3E%3Cpath d='M60 32h8M60 46h8M60 60h8M34 56h6M34 70h6M34 84h6M92 66h6M92 80h6'/%3E%3C/g%3E%3C/svg%3E") }

/* Tecnología */
.sat-bs-paper.template-tech .bs-template-art em,
.sat-bs-paper.template-neon .bs-template-art em{right:26px;bottom:26px;width:132px;height:132px;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='36' y='36' width='56' height='56' rx='6'/%3E%3Cpath d='M50 50h28v28H50zM24 50h12M24 64h12M24 78h12M92 50h12M92 64h12M92 78h12M50 24v12M64 24v12M78 24v12M50 92v12M64 92v12M78 92v12'/%3E%3C/g%3E%3C/svg%3E") }

/* Construcción y técnica */
.sat-bs-paper.template-construction .bs-template-art em,
.sat-bs-paper.template-architect .bs-template-art em{right:20px;bottom:20px;width:145px;height:110px;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 96h124M28 96V58l26-16v54M64 96V28l30-14v82M106 96V54l26-14v56'/%3E%3Cpath d='M73 36h12M73 50h12M73 64h12M37 68h7M37 80h7M117 64h7M117 76h7'/%3E%3C/g%3E%3C/svg%3E") }

/* Jurídico */
.sat-bs-paper.template-legal .bs-template-art em{left:34px;bottom:34px;width:122px;height:122px;opacity:.10;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M64 20v86M36 34h56M48 34 28 60h40L48 34Zm32 0L60 60h40L80 34ZM28 60a20 20 0 0 0 40 0M60 60a20 20 0 0 0 40 0M42 108h44'/%3E%3C/g%3E%3C/svg%3E") }

/* Salud */
.sat-bs-paper.template-medical .bs-template-art em{right:26px;bottom:28px;width:126px;height:126px;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M54 22h20v20h20v20H74v20H54V62H34V42h20V22Z'/%3E%3Cpath d='M20 96h24l8-14 12 18 12-26 10 22h22'/%3E%3C/g%3E%3C/svg%3E") }

/* Comercio */
.sat-bs-paper.template-commercial .bs-template-art em,
.sat-bs-paper.template-orange .bs-template-art em,
.sat-bs-paper.template-rose .bs-template-art em{right:22px;bottom:26px;width:132px;height:132px;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M38 36h54l-4 18H42l-4-18ZM44 54h42l-5 28H49l-5-28ZM52 94a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm28 0a6 6 0 1 0 0 12 6 6 0 0 0 0-12ZM42 36l-4-10H24'/%3E%3C/g%3E%3C/svg%3E") }

/* Creativas y artesanales */
.sat-bs-paper.template-creative .bs-template-art em,
.sat-bs-paper.template-artisan .bs-template-art em{right:26px;bottom:26px;width:132px;height:132px;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M64 22c-24 0-42 17-42 38 0 18 12 30 28 30h6c4 0 7 3 7 7s3 9 10 9c19 0 33-18 33-39 0-25-18-45-42-45Z'/%3E%3Ccircle cx='45' cy='46' r='5'/%3E%3Ccircle cx='63' cy='40' r='5'/%3E%3Ccircle cx='81' cy='48' r='5'/%3E%3Ccircle cx='43' cy='66' r='5'/%3E%3Cpath d='M92 90l14 14'/%3E%3C/g%3E%3C/svg%3E") }

/* Minimalistas */
.sat-bs-paper.template-minimal .bs-template-art em,
.sat-bs-paper.template-slate .bs-template-art em{right:30px;bottom:36px;width:118px;height:118px;opacity:.08;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M28 40h72M28 56h56M28 72h72M28 88h44'/%3E%3C/g%3E%3C/svg%3E") }

@media print{
  .sat-bs-paper .bs-template-art em{opacity:.08!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* =========================================================
   V2.0.2 — corrección de encabezados y SVG visibles
   ========================================================= */
/* 1) Evita que la palabra PRESUPUESTO se corte */
.sat-bs-paper.template-corporate .bs-doc-head,
.sat-bs-paper.template-navy .bs-doc-head,
.sat-bs-paper.template-emerald .bs-doc-head{grid-template-columns:minmax(0,1fr) 230px!important;position:relative;overflow:hidden}
.sat-bs-paper.template-corporate .bs-doc-head::after,
.sat-bs-paper.template-navy .bs-doc-head::after,
.sat-bs-paper.template-emerald .bs-doc-head::after{width:24%!important;z-index:0;opacity:.85}
.sat-bs-paper.template-corporate .bs-company-line,
.sat-bs-paper.template-navy .bs-company-line,
.sat-bs-paper.template-emerald .bs-company-line,
.sat-bs-paper.template-corporate .bs-doc-title,
.sat-bs-paper.template-navy .bs-doc-title,
.sat-bs-paper.template-emerald .bs-doc-title{position:relative;z-index:2}
.sat-bs-paper.template-corporate .bs-doc-title,
.sat-bs-paper.template-navy .bs-doc-title,
.sat-bs-paper.template-emerald .bs-doc-title{justify-self:end;width:230px;max-width:230px;padding-left:14px;text-align:right}
.sat-bs-paper.template-corporate .bs-doc-title h2,
.sat-bs-paper.template-navy .bs-doc-title h2,
.sat-bs-paper.template-emerald .bs-doc-title h2{font-size:24px!important;letter-spacing:.5px!important;line-height:1.05!important;white-space:nowrap}
.sat-bs-paper.template-corporate .bs-doc-title p,
.sat-bs-paper.template-navy .bs-doc-title p,
.sat-bs-paper.template-emerald .bs-doc-title p{font-size:12px!important;line-height:1.35!important}

/* 2) Hace más legibles los totales de esa familia */
.sat-bs-paper.template-corporate .bs-totals,
.sat-bs-paper.template-navy .bs-totals,
.sat-bs-paper.template-emerald .bs-totals{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.sat-bs-paper.template-corporate .bs-totals > div,
.sat-bs-paper.template-navy .bs-totals > div,
.sat-bs-paper.template-emerald .bs-totals > div{padding:10px 8px!important}
.sat-bs-paper.template-corporate .bs-totals span,
.sat-bs-paper.template-navy .bs-totals span,
.sat-bs-paper.template-emerald .bs-totals span{font-size:11px!important;line-height:1.2!important}
.sat-bs-paper.template-corporate .bs-totals strong,
.sat-bs-paper.template-navy .bs-totals strong,
.sat-bs-paper.template-emerald .bs-totals strong{font-size:11px!important;line-height:1.25!important}
.sat-bs-paper.template-corporate .bs-totals .grand strong,
.sat-bs-paper.template-navy .bs-totals .grand strong,
.sat-bs-paper.template-emerald .bs-totals .grand strong{font-size:14px!important}

/* 3) Vuelve realmente visibles los SVG decorativos */
.sat-bs-paper .bs-template-art em{display:block!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}

/* Corporativo azul */
.sat-bs-paper.template-corporate .bs-template-art em{right:42px;bottom:110px;width:170px;height:170px;opacity:.20!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23174f86' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 132V70l18-10v72M62 132V40l22-12v104M94 132V82l20-10v60M24 132h112'/%3E%3Cpath d='M70 50h8M70 64h8M70 78h8M42 82h6M42 96h6M104 92h6M104 106h6'/%3E%3C/g%3E%3C/svg%3E")}

/* Navy */
.sat-bs-paper.template-navy .bs-template-art em{right:42px;bottom:110px;width:170px;height:170px;opacity:.18!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23b49658' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 132V70l18-10v72M62 132V40l22-12v104M94 132V82l20-10v60M24 132h112'/%3E%3Cpath d='M70 50h8M70 64h8M70 78h8M42 82h6M42 96h6M104 92h6M104 106h6'/%3E%3C/g%3E%3C/svg%3E")}

/* Emerald */
.sat-bs-paper.template-emerald .bs-template-art em{right:42px;bottom:110px;width:170px;height:170px;opacity:.20!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%230b6b50' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 132V70l18-10v72M62 132V40l22-12v104M94 132V82l20-10v60M24 132h112'/%3E%3Cpath d='M70 50h8M70 64h8M70 78h8M42 82h6M42 96h6M104 92h6M104 106h6'/%3E%3C/g%3E%3C/svg%3E")}

/* Salud */
.sat-bs-paper.template-medical .bs-template-art em{right:38px;bottom:108px;width:155px;height:155px;opacity:.18!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23178f8b' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M68 28h24v24h24v24H92v24H68V76H44V52h24V28Z'/%3E%3Cpath d='M24 118h28l10-16 14 20 14-30 12 26h26'/%3E%3C/g%3E%3C/svg%3E")}

/* Legal */
.sat-bs-paper.template-legal .bs-template-art em{left:42px;bottom:112px;width:150px;height:150px;opacity:.16!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23b89b68' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M80 24v106M46 40h68M58 40 34 72h48L58 40Zm44 0L78 72h48L102 40ZM34 72a24 24 0 0 0 48 0M78 72a24 24 0 0 0 48 0M54 132h52'/%3E%3C/g%3E%3C/svg%3E")}

/* Tecnología / Neón */
.sat-bs-paper.template-tech .bs-template-art em,
.sat-bs-paper.template-neon .bs-template-art em{right:36px;bottom:108px;width:165px;height:165px;opacity:.20!important}

/* Construcción / Arquitectura */
.sat-bs-paper.template-construction .bs-template-art em,
.sat-bs-paper.template-architect .bs-template-art em{right:34px;bottom:108px;width:178px;height:130px;opacity:.18!important}

/* Comerciales */
.sat-bs-paper.template-commercial .bs-template-art em,
.sat-bs-paper.template-orange .bs-template-art em,
.sat-bs-paper.template-rose .bs-template-art em{right:34px;bottom:108px;width:165px;height:165px;opacity:.17!important}

/* Creativas / artesanales */
.sat-bs-paper.template-creative .bs-template-art em,
.sat-bs-paper.template-artisan .bs-template-art em{right:38px;bottom:108px;width:165px;height:165px;opacity:.16!important}

/* Minimalistas */
.sat-bs-paper.template-minimal .bs-template-art em,
.sat-bs-paper.template-slate .bs-template-art em{right:38px;bottom:112px;width:150px;height:150px;opacity:.14!important}

@media print{
  .sat-bs-paper.template-corporate .bs-doc-title h2,
  .sat-bs-paper.template-navy .bs-doc-title h2,
  .sat-bs-paper.template-emerald .bs-doc-title h2{font-size:23px!important}
}


/* V2.1.0 — variantes, imágenes y control */
.sat-design-group{margin:12px 0}.sat-design-group>label,.sat-design-upload>label{display:block;margin-bottom:8px;font-size:12px;font-weight:800;color:#0f172a}.sat-variant-picker,.sat-art-picker{display:flex;flex-wrap:wrap;gap:7px}.sat-variant-picker button,.sat-art-picker button{border:1px solid #dbe3ee;border-radius:999px;background:#fff;padding:8px 11px;font-size:10px;font-weight:800;cursor:pointer}.sat-variant-picker button.active,.sat-art-picker button.active{background:#111827;color:#fff;border-color:#111827}.sat-design-upload{margin-top:14px;padding-top:12px;border-top:1px solid #e2e8f0}.sat-design-upload input{width:100%}.sat-design-upload-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.sat-design-upload-row span{font-size:10px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sat-bs-paper .bs-category-art{position:absolute;right:34px;bottom:92px;width:180px;height:180px;z-index:0;background-position:center;background-repeat:no-repeat;background-size:contain;opacity:.18;pointer-events:none}.sat-bs-paper.art-none .bs-category-art{display:none}.sat-bs-paper.art-business .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23174f86' stroke-width='5'%3E%3Cpath d='M28 132V70l24-14v76M64 132V38l28-16v110M104 132V82l28-14v64M18 132h124'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper.art-tech .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%230284c7' stroke-width='5'%3E%3Crect x='48' y='48' width='64' height='64' rx='8'/%3E%3Cpath d='M62 62h36v36H62zM30 62h18M30 80h18M30 98h18M112 62h18M112 80h18M112 98h18M62 30v18M80 30v18M98 30v18M62 112v18M80 112v18M98 112v18'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper.art-construction .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23b7791f' stroke-width='5'%3E%3Cpath d='M24 132h112M34 132V76l30-18v74M76 132V42l30-16v106M118 132V88l18-10v54'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper.art-health .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23178f8b' stroke-width='6'%3E%3Cpath d='M68 26h24v28h28v24H92v28H68V78H40V54h28V26Z'/%3E%3Cpath d='M22 126h28l10-16 15 22 14-34 12 28h30'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper.art-legal .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23806a42' stroke-width='5'%3E%3Cpath d='M80 24v108M44 42h72M58 42 34 74h48L58 42Zm44 0L78 74h48L102 42ZM34 74a24 24 0 0 0 48 0M78 74a24 24 0 0 0 48 0M52 134h56'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper.art-commerce .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23d84b19' stroke-width='5'%3E%3Cpath d='M46 48h70l-6 24H52l-6-24ZM54 72h54l-6 38H60l-6-38ZM64 124a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm38 0a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM50 48l-6-14H26'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper.art-creative .bs-category-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%237c3ea7' stroke-width='5'%3E%3Cpath d='M80 24c-30 0-52 22-52 48 0 22 15 38 35 38h8c5 0 9 4 9 9s4 11 12 11c23 0 40-22 40-48 0-32-22-58-52-58Z'/%3E%3Ccircle cx='58' cy='54' r='6'/%3E%3Ccircle cx='82' cy='48' r='6'/%3E%3Ccircle cx='104' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E")}.sat-bs-paper .bs-user-image{position:absolute;right:28px;bottom:84px;width:210px;height:150px;z-index:0;opacity:.20;overflow:hidden;border-radius:14px;pointer-events:none}.sat-bs-paper .bs-user-image img{width:100%;height:100%;object-fit:cover;filter:saturate(.75)}
.sat-bs-paper.variant-banner .bs-doc-head{min-height:235px!important}.sat-bs-paper.variant-banner .bs-category-art,.sat-bs-paper.variant-banner .bs-user-image{right:42px;top:36px;bottom:auto;width:190px;height:130px;opacity:.25}.sat-bs-paper.variant-banner .bs-doc-title{max-width:280px}.sat-bs-paper.variant-side .bs-doc-head{display:grid!important;grid-template-columns:250px 1fr!important;min-height:205px!important}.sat-bs-paper.variant-side .bs-company-line{padding-right:24px;border-right:1px solid rgba(100,116,139,.25)}.sat-bs-paper.variant-side .bs-doc-title{align-self:center;justify-self:stretch;text-align:left!important;padding-left:28px!important}.sat-bs-paper.variant-side .bs-info{grid-template-columns:.7fr 1.3fr!important}.sat-bs-paper.variant-side .bs-category-art,.sat-bs-paper.variant-side .bs-user-image{left:28px;right:auto;bottom:86px;width:155px;height:155px}.sat-bs-paper.variant-standard{}


/* V2.1.1 — corrección visual de opciones formato/imagen */
.sat-design-options .sat-variant-picker button,
.sat-design-options .sat-art-picker button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  min-width:86px!important;
  padding:8px 12px!important;
  color:#0f172a!important;
  background:#fff!important;
  border:1px solid #dbe3ee!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
  opacity:1!important;
  -webkit-text-fill-color:#0f172a!important;
}
.sat-design-options .sat-variant-picker button.active,
.sat-design-options .sat-art-picker button.active{
  color:#fff!important;
  background:#111827!important;
  border-color:#111827!important;
  -webkit-text-fill-color:#fff!important;
}
.sat-design-options .sat-art-picker button[data-art="construction"]{min-width:118px!important}
.sat-design-options .sat-art-picker button[data-art="business"],
.sat-design-options .sat-art-picker button[data-art="creative"]{min-width:98px!important}


/* V2.1.2 — sin imagen integrada por defecto */
.sat-bs-paper.art-none .bs-template-art,
.sat-bs-paper.art-none .bs-category-art{display:none!important}


/* V2.1.3 — elimina el espacio superior de la página del generador */
body.sat-bs-page .entry-header,
body.sat-bs-page .page-header,
body.sat-bs-page .ast-article-single > .entry-header{display:none!important}
body.sat-bs-page .site-content,
body.sat-bs-page #content{padding-top:0!important;margin-top:0!important}
body.sat-bs-page .site-main,
body.sat-bs-page .content-area,
body.sat-bs-page .ast-container{margin-top:0!important;padding-top:0!important}
body.sat-bs-page .ast-container{max-width:100%!important;padding-left:0!important;padding-right:0!important}
body.sat-bs-page article,
body.sat-bs-page .entry-content{margin-top:0!important;padding-top:0!important}
body.sat-bs-page .sat-bs-app{margin-top:0!important}


/* V2.1.4 — control de transparencia de imagen */
.sat-design-opacity label{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sat-design-opacity label strong{color:#285fa8;font-size:12px;font-weight:900}
#bs_design_opacity{width:100%;appearance:none;height:6px;border-radius:999px;background:#dbe4ee;outline:none;margin:4px 0 2px}
#bs_design_opacity::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border-radius:50%;background:#111827;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer}
#bs_design_opacity::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#111827;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer}
.sat-design-opacity small{display:block;color:#6b7685;font-size:11px;margin-top:3px}


/* V2.1.5 — opción para quitar fondo claro */
.sat-bg-remove-option{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:10px 0 2px!important;padding:10px 11px!important;border:1px solid #dbe3ee!important;border-radius:10px!important;background:#f8fafc!important;cursor:pointer}
.sat-bg-remove-option input{width:17px!important;height:17px!important;flex:0 0 17px!important;margin:1px 0 0!important;accent-color:#111827}
.sat-bg-remove-option span{display:block;min-width:0}
.sat-bg-remove-option strong{display:block;color:#0f172a;font-size:11px;font-weight:850;line-height:1.25}
.sat-bg-remove-option small{display:block;margin-top:3px;color:#64748b;font-size:9px;line-height:1.35}


/* =========================================================
   V2.2.0 — Generador de logos
   ========================================================= */
.sat-logo-builder{display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:22px;align-items:start}
.sat-logo-controls,.sat-logo-preview-wrap{background:#fff;border:1px solid #dde5ef;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.sat-logo-controls{padding:18px}
.sat-logo-grid-2,.sat-logo-grid-3,.sat-logo-grid-4{display:grid;gap:12px;margin-bottom:12px}
.sat-logo-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sat-logo-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sat-logo-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.sat-logo-controls label{display:block;font-size:12px;font-weight:800;color:#263445;margin-bottom:6px}
.sat-logo-controls input[type="text"],.sat-logo-controls input[type="color"],.sat-logo-controls select,.sat-logo-controls input[type="range"],.sat-logo-controls input:not([type]){width:100%}
.sat-logo-controls input[type="color"]{height:44px;padding:4px;border-radius:12px;border:1px solid #dbe3ee;background:#fff}
.sat-logo-check{display:flex!important;align-items:center;gap:8px;margin-top:28px}
.sat-logo-check input{width:auto!important}
.sat-logo-help{padding:10px 12px;border-radius:12px;background:#f8fafc;color:#5b6676;font-size:12px;line-height:1.45}
.sat-logo-preview-wrap{padding:14px}
.sat-logo-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;color:#243245}
.sat-logo-preview-toolbar strong{font-size:14px}
.sat-logo-preview-toolbar span{font-size:12px;color:#64748b}
.sat-logo-preview-stage{padding:20px;border-radius:16px;background:linear-gradient(180deg,#f8fafc,#eef3f9)}
.sat-logo-preview-box{min-height:280px;border:1px dashed #c7d3e0;border-radius:16px;padding:20px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:auto}
.sat-logo-preview-box.is-transparent{background-image:linear-gradient(45deg,#eef2f7 25%,transparent 25%),linear-gradient(-45deg,#eef2f7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef2f7 75%),linear-gradient(-45deg,transparent 75%,#eef2f7 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;background-color:#fff}
#lg_preview svg{width:100%;height:auto;max-width:980px;display:block}
#lg_msg{margin-top:10px}
@media (max-width: 1100px){.sat-logo-builder{grid-template-columns:1fr}.sat-logo-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.sat-logo-grid-3{grid-template-columns:1fr}.sat-logo-grid-2{grid-template-columns:1fr}}


/* V2.2.1 — corrección de datos de empresa en cabecera */
.sat-bs-paper .bs-company-line{max-width:none!important;width:100%!important;display:flex;align-items:flex-start;gap:16px}
.sat-bs-paper .bs-company-line > div:last-child{flex:1 1 auto;min-width:0;max-width:100%}
.sat-bs-paper .bs-company-line h3,
.sat-bs-paper .bs-company-line p{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}

/* Más aire para el bloque de datos de empresa en formatos premium */
.sat-bs-paper.template-executive .bs-doc-head,
.sat-bs-paper.template-gold .bs-doc-head,
.sat-bs-paper.template-luxury .bs-doc-head,
.sat-bs-paper.template-legal .bs-doc-head{grid-template-columns:minmax(0,1.28fr) minmax(230px,.72fr)!important}
.sat-bs-paper.template-executive .bs-company-line,
.sat-bs-paper.template-gold .bs-company-line,
.sat-bs-paper.template-luxury .bs-company-line,
.sat-bs-paper.template-legal .bs-company-line{padding:42px 34px!important}
.sat-bs-paper.template-executive .bs-company-line h3,
.sat-bs-paper.template-gold .bs-company-line h3,
.sat-bs-paper.template-luxury .bs-company-line h3,
.sat-bs-paper.template-legal .bs-company-line h3{font-size:20px!important;line-height:1.12!important;margin-bottom:7px!important}
.sat-bs-paper.template-executive .bs-company-line p,
.sat-bs-paper.template-gold .bs-company-line p,
.sat-bs-paper.template-luxury .bs-company-line p,
.sat-bs-paper.template-legal .bs-company-line p{font-size:12px!important;line-height:1.42!important}

/* Ajuste también para corporativas claras */
.sat-bs-paper.template-corporate .bs-company-line,
.sat-bs-paper.template-navy .bs-company-line,
.sat-bs-paper.template-emerald .bs-company-line{padding-right:18px!important}
.sat-bs-paper.template-corporate .bs-company-line h3,
.sat-bs-paper.template-navy .bs-company-line h3,
.sat-bs-paper.template-emerald .bs-company-line h3{font-size:19px!important;line-height:1.12!important}
.sat-bs-paper.template-corporate .bs-company-line p,
.sat-bs-paper.template-navy .bs-company-line p,
.sat-bs-paper.template-emerald .bs-company-line p{font-size:11.5px!important;line-height:1.4!important}

/* Si el usuario elige variante lateral, igualmente evitamos que se apelmace */
.sat-bs-paper.variant-side .bs-company-line{padding-right:18px!important}
.sat-bs-paper.variant-side .bs-company-line > div:last-child{min-width:0}


/* V2.2.2 — cabeceras premium totalmente legibles y centradas */
.sat-bs-paper.template-executive .bs-doc-head,
.sat-bs-paper.template-gold .bs-doc-head,
.sat-bs-paper.template-luxury .bs-doc-head,
.sat-bs-paper.template-legal .bs-doc-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:0!important;
  align-items:stretch!important;
}
.sat-bs-paper.template-executive .bs-company-line,
.sat-bs-paper.template-gold .bs-company-line,
.sat-bs-paper.template-luxury .bs-company-line,
.sat-bs-paper.template-legal .bs-company-line{
  padding:40px 34px!important;
  max-width:none!important;
  width:100%!important;
  min-width:0!important;
  gap:14px!important;
}
.sat-bs-paper.template-executive .bs-company-line > div:last-child,
.sat-bs-paper.template-gold .bs-company-line > div:last-child,
.sat-bs-paper.template-luxury .bs-company-line > div:last-child,
.sat-bs-paper.template-legal .bs-company-line > div:last-child{
  flex:1 1 auto!important;
  min-width:0!important;
}
.sat-bs-paper.template-executive .bs-company-line h3,
.sat-bs-paper.template-gold .bs-company-line h3,
.sat-bs-paper.template-luxury .bs-company-line h3,
.sat-bs-paper.template-legal .bs-company-line h3{
  font-size:18px!important;
  line-height:1.12!important;
  margin:0 0 7px!important;
}
.sat-bs-paper.template-executive .bs-company-line p,
.sat-bs-paper.template-gold .bs-company-line p,
.sat-bs-paper.template-luxury .bs-company-line p,
.sat-bs-paper.template-legal .bs-company-line p{
  font-size:11px!important;
  line-height:1.42!important;
  margin:3px 0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.sat-bs-paper.template-executive .bs-doc-title,
.sat-bs-paper.template-gold .bs-doc-title,
.sat-bs-paper.template-luxury .bs-doc-title,
.sat-bs-paper.template-legal .bs-doc-title{
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  padding:30px 18px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.sat-bs-paper.template-executive .bs-doc-title h2,
.sat-bs-paper.template-gold .bs-doc-title h2,
.sat-bs-paper.template-luxury .bs-doc-title h2,
.sat-bs-paper.template-legal .bs-doc-title h2{
  font-size:22px!important;
  line-height:1.08!important;
  letter-spacing:1px!important;
  white-space:nowrap!important;
  margin:0 0 12px!important;
}
.sat-bs-paper.template-executive .bs-doc-title p,
.sat-bs-paper.template-gold .bs-doc-title p,
.sat-bs-paper.template-luxury .bs-doc-title p,
.sat-bs-paper.template-legal .bs-doc-title p{
  font-size:12px!important;
  line-height:1.35!important;
  margin:3px 0!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
  opacity:1!important;
}

/* Si por diseño lateral se activa en estas premium, igualmente mantener legibilidad */
.sat-bs-paper.template-executive.variant-side .bs-doc-head,
.sat-bs-paper.template-gold.variant-side .bs-doc-head,
.sat-bs-paper.template-luxury.variant-side .bs-doc-head,
.sat-bs-paper.template-legal.variant-side .bs-doc-head{
  grid-template-columns:minmax(0,1fr) 300px!important;
}
.sat-bs-paper.template-executive.variant-side .bs-doc-title,
.sat-bs-paper.template-gold.variant-side .bs-doc-title,
.sat-bs-paper.template-luxury.variant-side .bs-doc-title,
.sat-bs-paper.template-legal.variant-side .bs-doc-title{
  text-align:center!important;
  padding-left:18px!important;
}
