:root{--ink:#17201f;--muted:#687270;--line:#d8deda;--surface:#fff;--canvas:#eef1ef;--accent:#173c3b;--accent-soft:#dce8e4;--warning:#9a5b17;--warning-soft:#fff3d9;--shadow:0 18px 50px rgba(21,31,29,.13);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}
.print-preflight{margin:28px 0 18px;padding:20px;border:1px solid #cbd8d0;border-radius:14px;background:#f7faf7}.print-preflight h2{font-family:Georgia,serif;font-size:23px;font-weight:500;line-height:1.15;margin:0 0 10px}.print-preflight>p{font-size:13px;line-height:1.5;color:#52615a}.print-preflight .field{margin:16px 0 12px}.print-preflight input[type=file]{height:auto;min-height:44px;padding:10px;background:#fff;max-width:100%;font-size:0;color:transparent}.print-preflight input[type=file]::file-selector-button{border:1px solid var(--accent);border-radius:7px;background:#fff;color:var(--accent);font-size:13px;padding:7px 10px;margin-right:0;cursor:pointer}.print-issues{list-style:none;padding:0;margin:10px 0;display:grid;gap:7px;max-height:220px;overflow:auto}.print-issues li{border:1px solid #e1cdb2;background:#fffaf3;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.print-preflight .print-boundary{border-top:1px solid #dce5de;padding-top:12px;margin-bottom:0;color:#6b5c44}
.update-box{border:1px solid var(--line);border-radius:12px;padding:14px;margin:18px 0;background:#f8faf8;font-size:13px}.update-box summary{font-weight:700;cursor:pointer}.update-box p{line-height:1.5;color:var(--muted)}.update-box input{max-width:100%;margin:10px 0}.update-box pre{white-space:pre-wrap;font:inherit;line-height:1.8;max-height:230px;overflow:auto}.update-box button{margin-top:8px}.exact-panel{padding:20px}.exact-panel p{font-size:13px;line-height:1.5;color:var(--muted)}.exact-panel iframe{width:100%;height:78vh;min-height:480px;border:1px solid var(--line);border-radius:8px;background:white}.preview-panel:has(.exact-panel:not([hidden])) .paper-stage{display:none}.field small{font-weight:400;color:var(--muted);line-height:1.4}summary:focus-visible,input:focus-visible{outline:3px solid #3a7eb5;outline-offset:3px}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--canvas)}button,input{font:inherit}.app-header{height:72px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:var(--accent);color:#fff;font-family:Georgia,serif;font-size:20px}.brand span:last-child{display:grid;line-height:1.1}.brand strong{font-size:15px}.brand small{font-size:12px;color:var(--muted);margin-top:3px}.privacy-note{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px}.privacy-note span{font-size:10px;color:#357b67}.steps{height:72px;padding:0 28px;display:flex;gap:6px;align-items:center;background:#fff;border-bottom:1px solid var(--line);overflow:auto}.step{position:relative;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:10px;white-space:nowrap;cursor:pointer;font-weight:600;font-size:14px}.step span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #c7cfca;border-radius:50%;font-size:12px}.step:hover{background:#f5f7f6}.step.active{color:var(--accent);background:var(--accent-soft)}.step.active span{background:var(--accent);border-color:var(--accent);color:#fff}.step b{font-size:11px;background:var(--warning-soft);color:var(--warning);padding:2px 6px;border-radius:10px}.workspace{min-height:calc(100vh - 144px);display:grid;grid-template-columns:minmax(330px,390px) 1fr}.control-panel{background:#fff;border-right:1px solid var(--line);padding:34px 30px;overflow:auto}.panel-screen{display:none;max-width:340px;margin:auto}.panel-screen.active{display:block}.eyebrow{margin:0 0 10px;text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:11px;color:var(--accent)}h1{font-family:Georgia,"Times New Roman",serif;font-size:32px;line-height:1.05;letter-spacing:-.03em;margin:0 0 12px;font-weight:500}.lead{font-size:15px;line-height:1.55;color:var(--muted);margin:0 0 24px}.drop-zone{border:1.5px dashed #aab6b0;border-radius:14px;padding:26px 16px;display:grid;text-align:center;gap:5px;cursor:pointer;background:#fbfcfb}.drop-zone:focus,.drop-zone:hover{outline:none;border-color:var(--accent);background:#f4f8f6}.drop-icon{margin:auto;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:20px}.drop-zone strong{margin-top:6px}.drop-zone small,.file-card small,.layout-option small,.switch-row small,.export-card small{color:var(--muted);font-size:12px}.wide{width:100%}.primary,.secondary{border-radius:10px;min-height:46px;padding:11px 16px;font-weight:700;cursor:pointer;border:1px solid var(--accent)}.primary{background:var(--accent);color:#fff}.primary:hover{filter:brightness(1.12)}.secondary{background:#fff;color:var(--accent)}.secondary:hover{background:var(--accent-soft)}#downloadCsv{margin-top:10px}.file-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;padding:12px;margin:18px 0}.file-card>span:nth-child(2){display:grid;gap:3px;flex:1}.file-type{background:#eef2ef;padding:7px 6px;border-radius:6px;font-size:10px;font-weight:800}.check{color:#32705e}.summary-row{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.summary-row div{padding:12px 10px;display:grid;text-align:center;border-right:1px solid var(--line)}.summary-row div:last-child{border:0}.summary-row strong{font-size:20px}.summary-row span{font-size:11px;color:var(--muted)}.issue-list{display:grid;gap:8px;margin-bottom:18px}.issue{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;text-align:left;cursor:pointer}.issue:hover,.issue.active{border-color:#d39b55;background:#fffaf2}.issue span:nth-child(2){display:grid;gap:2px}.issue small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.issue em{font-style:normal;font-size:11px;font-weight:700;color:var(--warning)}.warning{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--warning-soft);color:var(--warning);font-weight:800;font-size:12px}.field{display:grid;gap:8px;font-size:13px;font-weight:700;margin-bottom:18px}.field input{height:44px;border:1px solid #bdc8c2;border-radius:9px;padding:0 12px;font-size:14px}.field input:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}.swatches{display:flex;gap:10px}.swatch{width:32px;height:32px;border-radius:50%;border:4px solid #fff;background:var(--swatch);box-shadow:0 0 0 1px #c7cfca;cursor:pointer}.swatch.active{box-shadow:0 0 0 2px var(--ink)}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #e6eae7;cursor:pointer}.switch-row span{display:grid;gap:3px}.switch-row input{position:absolute;opacity:0}.switch-row i{position:relative;width:42px;height:24px;border-radius:20px;background:#c2cac5;flex:0 0 auto}.switch-row i:after{content:"";position:absolute;width:18px;height:18px;top:3px;left:3px;background:#fff;border-radius:50%;transition:.2s}.switch-row input:checked+i{background:var(--accent)}.switch-row input:checked+i:after{transform:translateX(18px)}.layout-picker{display:grid;gap:10px}.layout-option{min-height:77px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fff;display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;text-align:left;cursor:pointer}.layout-option:hover,.layout-option.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.layout-option>span:nth-child(2){display:grid;gap:4px}.layout-option b{font-size:11px;color:var(--muted)}.layout-thumb{height:48px;border:1px solid #b7c1bb;border-radius:4px;padding:5px;display:grid;gap:3px;background:#fff}.visual-thumb{grid-template-columns:1fr 1fr}.compact-thumb{grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,1fr)}.layout-thumb i{background:#cbd6d0;border-radius:1px}.compact-thumb i{background:linear-gradient(90deg,#b9c7c0 25%,#e5e9e7 25%)}.page-nav{display:flex;align-items:center;justify-content:space-between;margin:18px 0}.page-nav button{border:1px solid var(--line);background:#fff;width:38px;height:38px;border-radius:8px;cursor:pointer}.page-nav span{font-size:13px;color:var(--muted)}.notice{display:flex;gap:10px;padding:12px;border-radius:10px;background:var(--warning-soft);margin-bottom:18px}.notice>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:var(--warning);font-weight:800}.notice p{margin:0;display:grid;gap:3px}.notice small{color:#7e5d35}.export-card{border:1px solid var(--line);border-radius:12px;padding:15px;display:flex;gap:12px;align-items:center}.export-card>div:nth-child(2){display:grid;gap:4px;min-width:0}.export-card strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdf-icon{width:48px;height:58px;display:grid;place-items:end center;background:#f2e5df;color:#8f3f32;border-radius:5px;padding-bottom:8px;font-weight:800;font-size:11px}.export-summary{margin:20px 0}.export-summary div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e5e9e6}.export-summary dt{color:var(--muted)}.export-summary dd{margin:0;font-weight:700}.simulation-note{text-align:center;font-size:12px;color:var(--muted);margin:8px 0 16px}.preview-panel{min-width:0;display:grid;grid-template-rows:48px 1fr}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #d7dcda;color:#58635f;font-size:12px}.paper-stage{padding:34px;overflow:auto;display:grid;place-items:start center}.catalog-page{--catalog-accent:#173c3b;width:min(760px,100%);aspect-ratio:210/297;background:#fbfaf7;box-shadow:var(--shadow);padding:5.2% 5.8% 4%;display:grid;grid-template-rows:auto auto 1fr auto;gap:3.4%;font-family:Arial,sans-serif;color:#1c2422}.catalog-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:2.4%;border-bottom:1px solid #cfd5d0}.catalog-brand{display:flex;align-items:center;gap:10px}.catalog-logo{width:34px;height:34px;display:grid;place-items:center;background:var(--catalog-accent);color:#fff;font-family:Georgia,serif;font-size:13px}.catalog-brand>span:last-child{display:grid;gap:2px}.catalog-brand strong{font-family:Georgia,serif;font-size:16px}.catalog-brand small,.catalog-header>p{font-size:8px;color:#66716c;margin:0;letter-spacing:.05em}.catalog-intro{max-width:82%}.catalog-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:7px!important;color:var(--catalog-accent)!important;font-weight:bold}.catalog-intro h2{font:normal clamp(24px,3.7vw,42px)/.98 Georgia,serif;letter-spacing:-.04em;margin:1.7% 0 2.2%}.catalog-intro>p{margin:0;color:#6b746f;font-size:10px;line-height:1.45;max-width:65%}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:3.2% 3%}.product-card{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:7px}.product-photo{min-height:0;background:var(--photo);position:relative;overflow:hidden}.product-photo:after{content:attr(data-label);position:absolute;left:7px;bottom:6px;padding:3px 5px;background:rgba(255,255,255,.82);font-size:6px;text-transform:uppercase;letter-spacing:.08em;color:#52605a}.product-photo:before{content:"";position:absolute;width:55%;height:75%;left:23%;top:15%;border-radius:var(--shape-radius,4px);background:rgba(255,255,255,.48);box-shadow:0 7px 16px rgba(35,48,43,.13);transform:rotate(var(--tilt,0deg))}.product-photo.missing{background:#eceeeb;border:1px dashed #aeb6b1;display:grid;place-items:center}.product-photo.missing:before{display:none}.product-photo.missing:after{content:"Sin fotografía";position:static;background:transparent;font-size:8px;color:#7a827d}.product-info{display:grid;grid-template-columns:1fr auto;gap:5px 8px;align-items:start}.product-info h3{font-family:Georgia,serif;font-size:12px;line-height:1.16;margin:0;font-weight:500}.product-info .price{font-size:10px;font-weight:bold;white-space:nowrap}.product-info .code{font-size:7px;color:var(--catalog-accent);font-weight:bold;letter-spacing:.08em}.product-info .description{grid-column:1/-1;font-size:7px;line-height:1.35;color:#69716d;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.catalog-footer{padding-top:2%;border-top:1px solid #cfd5d0;display:flex;justify-content:space-between;font-size:7px;color:#68716c}.catalog-page.compact{gap:2.5%}.catalog-page.compact .catalog-intro{display:none}.catalog-page.compact .product-grid{grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,1fr);gap:2% 3%}.catalog-page.compact .product-card{grid-template-columns:35% 1fr;grid-template-rows:1fr;gap:8px;border-bottom:1px solid #d9ddda;padding-bottom:5px}.catalog-page.compact .product-photo{min-height:60px}.catalog-page.compact .product-info{align-content:start}.catalog-page.compact .product-info h3{font-size:10px}.catalog-page.compact .product-info .description{font-size:6.5px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;background:#17201f;color:#fff;padding:11px 16px;border-radius:9px;font-size:13px;box-shadow:var(--shadow);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:860px){.app-header{height:62px;padding:0 16px}.privacy-note{display:none}.steps{height:62px;padding:0 12px}.step{padding:9px}.step{font-size:0}.step span{font-size:12px}.step.active{font-size:13px}.workspace{grid-template-columns:1fr}.control-panel{border-right:0;border-bottom:1px solid var(--line);padding:28px 20px}.panel-screen{max-width:520px}.preview-panel{min-height:620px}.paper-stage{padding:24px 14px}.catalog-page{width:min(700px,100%)}}
@media(max-width:520px){.brand small{display:none}.steps{justify-content:space-between;gap:2px}.step{padding:8px}.step.active{font-size:0}.issue-count{display:none}.control-panel{padding:24px 18px}.lead{font-size:14px}.preview-panel{min-height:470px}.preview-toolbar{padding:0 15px}.paper-stage{padding:16px 10px}.catalog-page{min-width:0}.catalog-intro h2{font-size:20px}.catalog-intro>p{font-size:6px}.catalog-brand strong{font-size:10px}.catalog-brand small,.catalog-header>p{font-size:5px}.catalog-logo{width:24px;height:24px;font-size:9px}.product-info h3{font-size:7px}.product-info .price{font-size:6px}.product-info .description,.product-info .code{font-size:5px}.product-photo:after{font-size:4px}.catalog-footer{font-size:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.drop-zone{position:relative}.drop-zone input[type=file]{display:block!important;width:100%;font-size:14px;margin-top:8px}.drop-zone:focus-within,button:focus-visible,a:focus-visible,.issue:focus-visible{outline:3px solid #3a7eb5;outline-offset:3px}.switch-row input:focus-visible+i{outline:3px solid #3a7eb5;outline-offset:3px}.issue small{white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important}.issue{grid-template-columns:30px minmax(0,1fr) auto}.control-panel .lead{font-size:16px}.export-success a{display:block;margin-top:10px;text-decoration:underline;color:inherit}.blocking-message{white-space:pre-wrap;overflow-wrap:anywhere}.preview-toolbar{height:auto;min-height:48px;gap:10px}.source-note{overflow-wrap:anywhere}@media(max-width:520px){.steps{height:auto;flex-wrap:wrap;justify-content:flex-start}.step,.step.active{font-size:12px!important}.step{padding:5px}.issue{grid-template-columns:24px minmax(0,1fr)}.issue-action,.issue em{grid-column:2;max-width:none}}

[hidden]{display:none!important}.drop-zone input{display:none}.photo-zone{margin-top:12px}.source-separator{display:flex;align-items:center;gap:10px;margin:18px 0 12px;color:var(--muted);font-size:12px}.source-separator:before,.source-separator:after{content:"";height:1px;background:var(--line);flex:1}.text-button{border:0;background:transparent;color:var(--accent);padding:12px;font-weight:700;cursor:pointer}.source-note,.saved-note{font-size:12px;line-height:1.45;color:var(--muted);margin:10px 0 16px}.primary:disabled,.secondary:disabled,.page-nav button:disabled{cursor:not-allowed;opacity:.45;filter:none}.review-filter{display:flex;gap:5px;margin:0 0 12px;padding:4px;background:#f1f4f2;border-radius:9px}.review-filter button{border:0;background:transparent;padding:7px 9px;border-radius:6px;color:var(--muted);font-size:11px;font-weight:700;cursor:pointer}.review-filter button.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(22,30,28,.09)}.issue.blocking{border-color:#bd6b5b;background:#fff8f6}.issue-action{border:0;background:var(--accent);color:#fff;border-radius:7px;padding:7px 8px;font-size:10px;font-weight:700;cursor:pointer;max-width:92px}.empty-state{display:grid;place-items:center;text-align:center;gap:5px;padding:26px;border:1px solid var(--line);border-radius:11px;margin-bottom:16px}.empty-state span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}.empty-state small{color:var(--muted)}.preview-empty{margin:auto;display:grid;place-items:center;text-align:center;gap:8px;color:var(--muted)}.preview-empty>span{display:grid;place-items:center;width:70px;height:86px;border:1px solid #bfc8c3;border-radius:7px;background:#fff;color:var(--accent);font-weight:800;box-shadow:var(--shadow)}.preview-empty strong{color:var(--ink);margin-top:8px}.blocking-message{padding:12px;border-radius:9px;background:#fff0ed;color:#8c3d31;font-size:13px;line-height:1.4;margin:-6px 0 12px}.export-success{display:flex;align-items:center;gap:10px;padding:12px;border-radius:10px;background:#e6f2ed;color:#285f4f;margin:10px 0}.export-success>span{font-size:18px}.export-success>div{display:grid;gap:2px}.export-success small{color:#4c6f64}.product-photo.has-image:before{display:none}.product-photo img{width:100%;height:100%;display:block;object-fit:cover}.product-photo.has-image:after{max-width:calc(100% - 14px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-page.compact .product-photo img{min-height:100%;object-fit:cover}
