:root{--bg:#f4f6f8;--surface:#fff;--text:#15212b;--muted:#607080;--line:#d9e0e6;--primary:#0b6b57;--primary-dark:#075044;--accent:#e9f6f2;--danger:#a92b2b;--shadow:0 12px 34px rgba(21,33,43,.08);--radius:16px}*{box-sizing:border-box}[hidden]{display:none!important}html{color-scheme:light}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}button,input,select{font:inherit}.shell{width:min(1440px,calc(100% - 32px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.header-row,.footer-row{display:flex;align-items:center;justify-content:space-between;min-height:70px;gap:24px}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--primary);color:white;font-weight:900}.brand strong,.brand small{display:block}.version-badge{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:999px;background:#e9f6f2;color:#075044;font-style:normal;font-size:10px;line-height:1.4;vertical-align:2px}.brand small{font-size:12px;color:var(--muted)}nav{display:flex;gap:22px}nav a,.site-footer a{color:var(--muted);text-decoration:none}nav a:hover,.site-footer a:hover{color:var(--primary)}.hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:32px;align-items:end;padding:46px 0 26px}.hero h1{font-size:clamp(28px,4vw,48px);line-height:1.08;letter-spacing:-.035em;margin:5px 0 14px;max-width:900px}.hero p{color:var(--muted);max-width:820px;margin:0;font-size:17px}.eyebrow{font-size:12px!important;color:var(--primary)!important;text-transform:uppercase;letter-spacing:.15em;font-weight:800}.hero-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.hero-badges span{padding:8px 11px;border:1px solid #b8d8cf;background:var(--accent);border-radius:999px;color:var(--primary-dark);font-size:12px;font-weight:700}.ad-slot{display:grid;place-items:center;min-height:100px;border:1px dashed #c9d1d8;background:#fafbfc;color:#8b98a5;margin:0 0 24px;border-radius:12px}.ad-slot span{font-size:11px;text-transform:uppercase;letter-spacing:.12em}.ad-slot-bottom{margin:28px 0}.workspace{display:grid;grid-template-columns:390px minmax(0,1fr);gap:22px;align-items:start}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.controls{padding:18px;position:sticky;top:88px;max-height:calc(100vh - 104px);overflow:auto}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-title h2,.export-card h2{font-size:17px;margin:0}.button{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer;transition:.18s transform,.18s background,.18s opacity}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{opacity:.46;cursor:not-allowed}.button-primary{width:100%;background:var(--primary);color:#fff}.button-primary:hover{background:var(--primary-dark)}.button-ghost{padding:7px 10px;background:#eef2f4;color:var(--muted);font-size:12px}.button-download{background:#173b6c;color:#fff;min-width:230px}.drop-zone{display:grid;place-items:center;text-align:center;gap:5px;margin:16px 0;padding:22px 14px;border:2px dashed #afbdc8;border-radius:13px;background:#f9fbfc;cursor:pointer;outline:none}.drop-zone:hover,.drop-zone:focus,.drop-zone.is-dragging{border-color:var(--primary);background:var(--accent)}.drop-zone small{color:var(--muted)}.upload-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--primary);font-size:22px;font-weight:900}.text-button{border:0;background:transparent;color:var(--primary);font-weight:800;cursor:pointer;padding:5px}details{border-top:1px solid var(--line);padding:12px 0}summary{font-weight:800;cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}summary:after{content:"+";float:right;color:var(--muted)}details[open] summary:after{content:"−"}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.field{display:grid;gap:5px;min-width:0}.field-wide{grid-column:1/-1}.field span{font-size:12px;font-weight:700;color:#465666}.field input,.field select{width:100%;height:38px;border:1px solid #cbd4dc;border-radius:8px;background:#fff;padding:7px 9px;color:var(--text)}.field input[type=range]{padding:0;border:0}.field input:focus,.field select:focus{outline:2px solid rgba(11,107,87,.2);border-color:var(--primary)}.action-stack{padding-top:12px}.microcopy{font-size:11px;color:var(--muted);margin:8px 2px 0}.preview-column{display:grid;gap:18px}.preview-card,.layers-card,.status-card{padding:18px}.preview-label,.hint{font-size:11px;color:var(--muted)}.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.preview-grid figure{margin:0;min-width:0}.preview-grid figcaption{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:6px}.canvas-wrap{position:relative;display:grid;place-items:center;min-height:380px;max-height:620px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#f2f4f6}.canvas-wrap.checker{background-color:#fff;background-image:linear-gradient(45deg,#f2f2f2 25%,transparent 25%),linear-gradient(-45deg,#f2f2f2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f2f2f2 75%),linear-gradient(-45deg,transparent 75%,#f2f2f2 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.canvas-wrap canvas{display:block;max-width:100%;height:auto;background:#fff}.canvas-wrap p{color:#8c99a5}.progress{height:7px;background:#e9eef1;border-radius:99px;overflow:hidden}.progress span{display:block;width:0;height:100%;background:var(--primary);transition:width .2s}.status-card p{margin:10px 0 0}.status-card #statusText[data-kind=error]{color:var(--danger)}.status-card #statusText[data-kind=ok]{color:var(--primary-dark)}.stats{color:var(--muted);font-size:13px}.table-scroll{overflow:auto;margin-top:12px}table{border-collapse:collapse;width:100%;min-width:540px}th,td{padding:9px;border-bottom:1px solid #e7ebee;text-align:left;font-size:12px}th{color:var(--muted);font-weight:800;background:#f8fafb}td input{height:34px;border:1px solid #cbd4dc;border-radius:7px;padding:5px 7px}.layer-name{width:100%}.layer-aci{width:78px}.layer-color{width:54px;padding:2px}.layer-source{display:inline-block;width:16px;height:16px;border-radius:50%;vertical-align:middle;margin-right:7px;border:1px solid rgba(0,0,0,.2)}.empty-cell{text-align:center;color:var(--muted);padding:22px}.export-card{display:grid;grid-template-columns:minmax(0,1fr) 240px auto;gap:18px;align-items:end;padding:20px}.export-card p{margin:5px 0 0;color:var(--muted);font-size:13px}.content-section{padding:34px 0 10px}.content-section h2{font-size:24px}.content-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.content-grid article{background:white;border:1px solid var(--line);border-radius:12px;padding:17px}.content-grid p{color:var(--muted);margin:6px 0 0}.site-footer{margin-top:24px;border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:12px}@media(max-width:1100px){.workspace{grid-template-columns:330px minmax(0,1fr)}.preview-grid{grid-template-columns:1fr}.export-card{grid-template-columns:1fr 1fr}.button-download{grid-column:1/-1}.canvas-wrap{min-height:300px}}@media(max-width:820px){.shell{width:min(100% - 20px,1440px)}.hero{grid-template-columns:1fr;padding-top:28px}.hero-badges{justify-content:flex-start}.workspace{grid-template-columns:1fr}.controls{position:static;max-height:none}.preview-grid{grid-template-columns:1fr}.export-card{grid-template-columns:1fr}.button-download{grid-column:auto;width:100%}.content-grid{grid-template-columns:1fr}.header-row{min-height:62px}.brand small{display:none}.header-row nav{gap:12px}.canvas-wrap{min-height:260px}.footer-row{flex-direction:column;justify-content:center;padding:15px 0}.fields-grid{grid-template-columns:1fr 1fr}}@media(max-width:480px){.fields-grid{grid-template-columns:1fr}.field-wide{grid-column:auto}.hero h1{font-size:31px}.preview-card,.layers-card,.status-card{padding:13px}.controls{padding:14px}}

/* 1.0.4 — muestreo de color con goteros */
.sample-panel{border:1px solid #d5e4df;border-radius:11px;background:#f8fbfa;padding:11px;display:grid;gap:10px}.sample-panel-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.sample-panel-head strong,.sample-panel-head small{display:block}.sample-panel-head small{font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}.sample-count-field{display:grid;gap:4px;min-width:120px}.sample-count-field span{font-size:11px;font-weight:700;color:#465666}.sample-count-field select{height:34px;border:1px solid #cbd4dc;border-radius:8px;background:#fff;padding:5px 8px}.sampler-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sampler-card{border:1px solid #dbe3e8;border-radius:9px;background:#fff;padding:9px;transition:.15s border-color,.15s box-shadow}.sampler-card.is-active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(11,107,87,.12)}.sampler-title{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:7px;margin-bottom:7px}.sample-swatch{width:20px;height:20px;border:1px solid #aab7c1;border-radius:5px;background-image:linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0}.sample-counter{font-size:11px;color:var(--muted);font-weight:800}.sampler-button{width:100%;padding:8px 9px;background:#eef4f2;color:var(--primary-dark);font-size:12px}.sampler-button.is-active{background:var(--primary);color:#fff}.sample-separation{margin-top:1px}.sample-separation small{font-size:10px;color:var(--muted);font-weight:400}.sample-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.sampler-help{font-size:10px;color:var(--muted);text-align:right}.canvas-wrap canvas.eyedropper-active{cursor:crosshair;box-shadow:inset 0 0 0 3px rgba(11,107,87,.18)}
@media(max-width:480px){.sample-panel-head{align-items:stretch;flex-direction:column}.sample-count-field{min-width:0}.sampler-grid{grid-template-columns:1fr}.sample-actions{align-items:flex-start;flex-direction:column}.sampler-help{text-align:left}}

/* 2.2.0 — paleta seleccionable tipo Aspire: controles visibles y selección inequívoca */
.palette-panel{border:1px solid #b8d8cf;border-radius:11px;background:#f6fbf9;padding:11px;display:grid;gap:10px}.palette-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.palette-panel-head strong,.palette-panel-head small{display:block}.palette-panel-head small{font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}.palette-white-toggle,.check-field{display:flex;align-items:center;gap:7px;font-size:11px;color:#465666;font-weight:700}.palette-white-toggle input,.check-field input{width:auto;height:auto}.palette-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.palette-chip{min-width:0}.palette-choice{display:grid;grid-template-columns:18px 42px 1fr auto;align-items:center;gap:7px;min-height:48px;padding:5px 7px;border:1px solid #dbe3e8;border-radius:9px;background:#fff;cursor:pointer;transition:.12s border-color,.12s box-shadow,.12s transform}.palette-choice:hover{transform:translateY(-1px);border-color:#aebdc8}.palette-choice:has(input:checked){border-color:#0b6b57;box-shadow:0 0 0 2px rgba(11,107,87,.14)}.palette-choice input{width:16px;height:16px;margin:0;accent-color:var(--primary)}.palette-swatch{width:42px;height:34px;border-radius:6px;border:1px solid rgba(0,0,0,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}.palette-name{font-size:11px;font-weight:900;color:#293944;white-space:nowrap}.palette-share{font-size:9px;font-weight:800;color:#778692;white-space:nowrap}.palette-actions{display:flex;gap:6px;flex-wrap:wrap}.palette-actions .button{flex:1 1 auto}.palette-options{margin-top:0}.palette-options .check-field{min-height:38px;padding:7px 8px;border:1px solid #dbe3e8;border-radius:8px;background:#fff}.palette-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dce7e3;padding-top:9px}.palette-footer span{font-size:10px;color:var(--muted)}.preview-tabs{display:flex;gap:5px;align-items:center;margin-bottom:6px!important}.preview-tab{border:1px solid #cbd4dc;background:#fff;color:#5c6975;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800;cursor:pointer}.preview-tab.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.canvas-wrap canvas.palette-picker-active{cursor:crosshair;box-shadow:inset 0 0 0 3px rgba(180,35,24,.16)}.button-ghost.is-active{background:var(--primary);color:#fff}.palette-region-badge{display:inline-block;margin-left:4px;padding:1px 4px;border-radius:5px;background:#fff3cd;color:#775b00;font-size:9px;font-weight:900}
@media(max-width:480px){.palette-panel-head,.palette-footer{flex-direction:column;align-items:stretch}.palette-colors{grid-template-columns:1fr}}

/* 2.2.0 — carga nativa, preview vectorial, zoom/pan sincronizado e historial */
.native-file-input{display:block;width:100%;max-width:320px;margin:8px auto 2px;padding:6px;border:1px solid #cbd4dc;border-radius:9px;background:#fff;color:var(--text);cursor:pointer}.native-file-input::file-selector-button{margin-right:10px;border:0;border-radius:7px;padding:7px 10px;background:var(--primary);color:#fff;font-weight:800;cursor:pointer}.upload-target{display:grid;place-items:center;gap:7px;width:100%}.drop-zone{position:relative}.drop-zone .text-button{position:relative}.vector-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.button-secondary{background:#eef5f3;color:var(--primary-dark);border:1px solid #bdd8d1}.auto-preview-toggle{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:11px;color:var(--muted)}.auto-preview-toggle input{accent-color:var(--primary)}
.view-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 4px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#f8fafb}.view-button{height:30px;min-width:34px;border:1px solid #c9d3db;border-radius:7px;background:#fff;color:#34434f;font-weight:800;cursor:pointer}.view-button:hover{border-color:var(--primary);color:var(--primary)}.zoom-value{min-width:50px;text-align:center;font-size:11px;color:#40515e}.toolbar-separator{width:1px;height:22px;background:#d9e1e6;margin:0 3px}.toolbar-field,.toolbar-check{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700;color:#5a6975}.toolbar-field select{height:29px;border:1px solid #c9d3db;border-radius:7px;background:#fff;padding:3px 6px}.toolbar-check input{accent-color:var(--primary)}.view-help{margin-left:auto;font-size:9px;color:#7d8a95}.synchronized-view{overflow:hidden!important;touch-action:none;user-select:none}.synchronized-view canvas{position:absolute;left:0;top:0;max-width:none!important;height:auto!important;transform-origin:0 0;will-change:transform}.synchronized-view.is-panning{cursor:grabbing}.preview-state{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#e8f1f7;color:#536a79;font-size:9px;font-weight:800}.preview-state.is-ready{background:#e7f5ef;color:#086b55}.preview-state.is-dirty{background:#fff4d7;color:#7d5a00}.history-panel{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.history-head{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px}.history-head span{color:var(--muted);font-size:9px}.history-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.history-item{display:flex;align-items:center;gap:5px;border:1px solid #d8e1e6;border-radius:8px;background:#fff;padding:4px 6px;font-size:10px}.history-item button{border:0;background:transparent;color:#687782;cursor:pointer;font-weight:900;padding:1px 3px}.history-item button:hover{color:var(--danger)}.history-swatch{width:10px;height:10px;border-radius:50%;border:1px solid rgba(0,0,0,.2)}.history-empty{font-size:10px;color:var(--muted)}
@media(max-width:700px){.vector-actions{grid-template-columns:1fr}.view-help{width:100%;margin-left:0}.toolbar-separator{display:none}}

/* 2.2.6 — color de visualización de vectores aplicados independiente del color DXF */

/* 2.2.6 — selector de archivo nativo visible, sin overlay transparente; Firefox-safe */

/* v2.3.1 - selector de motor de vectorización / IA local */
.ai-panel{border:1px solid #cbd9e4;border-radius:11px;background:#f7fafc;padding:11px;display:grid;gap:10px}.ai-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ai-panel-head strong,.ai-panel-head small{display:block}.ai-panel-head small{font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}.ai-status{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}.ai-status.is-checking{background:#eef2f5;color:#657481}.ai-status.is-ready{background:#e5f5ef;color:#086b55}.ai-status.is-missing{background:#fff3cd;color:#795c00}.ai-status.is-error{background:#fde9e9;color:#8b2525}.ai-help{font-size:11px;color:#4f606c;background:#fff;border:1px solid #dbe3e8;border-radius:8px;padding:8px 9px}.ai-prompts{display:flex;flex-wrap:wrap;gap:6px;min-height:0}.ai-prompt{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800;border:1px solid #cbd7de;background:#fff}.ai-prompt.is-positive{color:#0a6b56;border-color:#9bcbbb}.ai-prompt.is-negative{color:#a02b2b;border-color:#ddb0b0}.ai-actions{display:flex;gap:7px;flex-wrap:wrap}.ai-actions .button{flex:1 1 auto}.source-ai-prompt{position:absolute;pointer-events:none;width:14px;height:14px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 2px currentColor;transform:translate(-50%,-50%);z-index:4}.source-ai-prompt.is-positive{color:#0b6b57;background:#0b6b57}.source-ai-prompt.is-negative{color:#b52a2a;background:#b52a2a}
@media(max-width:480px){.ai-panel-head{flex-direction:column;align-items:stretch}.ai-status{align-self:flex-start}.ai-actions{display:grid;grid-template-columns:1fr}}

.ai-mask-choice{cursor:pointer;user-select:none}.ai-mask-choice input{margin:0 3px 0 0}.ai-mask-choice.is-off{opacity:.55}.ai-prompt{cursor:pointer}.ai-prompt:hover{filter:brightness(.96)}
