
*{box-sizing:border-box}body{margin:0;background:#f3f5f2;color:#293c34;font:15px/1.5 system-ui,sans-serif}header,main{max-width:1200px;margin:auto;padding:20px 24px}header{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #d6ded7;align-items:center}header a{color:#395b49;text-decoration:none;font-weight:600}header span{font-size:12px;color:#718177}h1{font-size:clamp(24px,3vw,32px);letter-spacing:-.6px;margin:0 0 5px}p{margin:0 0 16px;color:#617168}.edition{font-size:13px}.actions,.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions{margin:18px 0}.actions a,button{min-height:44px;border:1px solid #c6d3c9;border-radius:5px;background:white;padding:10px 14px;color:#355b46;font:600 13px system-ui;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button:hover,.actions a:hover{background:#eaf0e8}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #6a9672;outline-offset:3px}.actions a:first-child{background:#345b48;color:white;border-color:#345b48}.toolbar{padding:12px 15px;background:#fff;border:1px solid #d6dfd6;border-bottom:0;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.controls{gap:6px}.controls button{padding:8px 12px;min-width:44px}.zoom{min-width:52px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.toggle{display:flex;align-items:center;gap:7px;min-height:44px;font-size:13px;cursor:pointer}.toggle input{width:17px;height:17px;accent-color:#647f52}.viewport{height:70dvh;min-height:340px;overflow:auto;border:1px solid #c5d2c7;background:#dce2dc;overscroll-behavior:contain;padding:16px;border-radius:0 0 8px 8px;scrollbar-gutter:stable}.paper{position:relative;width:100%;min-width:0;background:white;box-shadow:0 3px 12px #18331c18;margin:0 auto}.paper>canvas{width:100%;height:auto;display:block}.highlight{position:absolute;pointer-events:none;background:rgba(255,240,0,.33);border:2px solid rgba(225,180,0,.85);border-radius:4px;box-shadow:0 0 0 3px #ffff0030;mix-blend-mode:multiply}.note{font-size:12px;margin-top:14px;max-width:850px}.status{font-size:13px;font-weight:600;color:#4c624f}.legend{display:inline-block;width:16px;height:12px;background:#ffef005c;border:1px solid #d3b800;margin-right:6px}.empty{padding:25px;background:white;border:1px solid #d6dfd6}footer{font-size:12px;margin-top:22px;color:#76867a}@media(max-width:650px){header,main{padding:16px}header span{display:none}.toolbar{padding:9px 10px;gap:8px}.viewport{height:65dvh;padding:8px}.actions{gap:8px}.actions a{flex:1;font-size:12px;padding:9px}.controls button{font-size:12px}.toggle{font-size:12px}.note{font-size:12px}}

.page-select{min-height:44px;border:1px solid #c6d3c9;padding:9px;border-radius:4px;font:inherit;background:white;color:#355b46}.loading{padding:20px}.highlight[hidden]{display:none}.paper canvas{width:100%;height:100%}

.model-picker{display:flex;align-items:center;gap:12px;margin:18px 0;font-weight:700}.model-picker select{font:inherit;max-width:100%;padding:10px;border:1px solid #64748b;border-radius:6px;background:white}.model-picker[hidden]{display:none}@media(max-width:650px){.model-picker{display:grid}.model-picker select{width:100%}}

.preview-banner{background:#8b601a;color:white;text-align:center;padding:7px 12px;font-size:11px;font-weight:750;letter-spacing:.08em}.field-help{position:absolute;z-index:3;min-width:0;min-height:0;border:0;border-radius:0;padding:0;background:transparent;cursor:help;display:block}.field-help:hover,.field-help:focus-visible{background:#fff8b81f;outline:1px dashed #8d7416;outline-offset:-2px}.field-tip{position:fixed;z-index:50;max-width:260px;padding:11px 14px;border:1px solid #c8d1c8;border-radius:9px;background:#fffef4;color:#2b3c30;box-shadow:0 4px 15px #1a2b2025;font:500 13px/1.5 system-ui;pointer-events:none}.field-tip[hidden]{display:none}.field-tip:after{content:'';position:absolute;bottom:-6px;left:calc(var(--arrow-x,50%) - 5px);width:10px;height:10px;background:#fffef4;border-right:1px solid #c8d1c8;border-bottom:1px solid #c8d1c8;transform:rotate(45deg)}.field-tip.below:after{bottom:auto;top:-6px;transform:rotate(225deg)}

/* Solo el perímetro tiene trazo de rotulador; interior amarillo uniforme. */
.highlight{background:rgba(255,240,0,.30);border:0;box-shadow:none;border-radius:4px;overflow:visible}.marker-outline{position:absolute;left:-5px;top:-5px;width:calc(100% + 10px);height:calc(100% + 10px);overflow:visible;pointer-events:none}.marker-edge{fill:none;stroke:#d4b700;stroke-width:5.5;opacity:.83;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.marker-edge-retrace{fill:none;stroke:#d4b700;stroke-width:2.2;opacity:.28;stroke-linecap:butt;vector-effect:non-scaling-stroke}

/* Página PDF directa: un único desplazamiento, el de la página web. */
header,main{max-width:1100px}header{padding:10px 18px;border:0}header a{font-size:12px}main{padding:8px 18px 20px}h1{font-size:24px;margin-bottom:2px}.edition{font-size:12px;margin-bottom:5px}.actions{margin:6px 0 10px;gap:16px}.actions a,.actions a:first-child{padding:3px 0;min-height:34px;border:0;border-radius:0;background:none;color:#355b46;font-size:12px;text-decoration:underline}.model-picker{margin:6px 0 9px;font-size:13px;gap:10px}.model-picker select{padding:7px 10px;font-size:14px;min-height:40px}.compact-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px}.status{font-size:11px;font-weight:500;color:#758074}.viewport{height:auto;min-height:0;overflow:visible;border:0;background:transparent;padding:0;border-radius:0;scrollbar-gutter:auto;overscroll-behavior:auto}.paper{box-shadow:none;margin:0;width:100%;max-width:100%}body{background:#fff}.preview-banner{padding:5px 12px;font-size:10px}.field-tip{max-width:min(260px,calc(100vw - 20px))}@media(max-width:650px){header{padding:8px 10px}main{padding:5px 8px 16px}h1{font-size:20px;line-height:1.25}.edition{font-size:11px}.model-picker{display:flex;align-items:center;font-size:12px;margin-top:3px}.model-picker select{width:auto;flex:1;min-width:0}.actions{margin:3px 0 6px;gap:18px}.actions a{flex:0 0 auto;padding:3px 0;font-size:12px}.compact-tools{margin-bottom:5px}.status{font-size:10px}.viewport{height:auto;min-height:0;padding:0}}

.field-tip .price-includes{display:block;margin-top:6px;padding-top:6px;border-top:1px solid #e2e3d5;color:#6c7568;font-size:11px;font-weight:400;line-height:1.45}

/* The same corporate logo used in the public site's header. */
.preview-head .viewer-brand{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:4px 0}
.preview-head .viewer-brand img{display:block;width:240px;max-width:100%;height:auto}
@media(max-width:650px){.preview-head .viewer-brand img{width:180px}}

/* Cabecera mínima: la hoja gana altura sin barras superpuestas. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}.preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 18px;line-height:18px}.preview-head a{font-size:10px;letter-spacing:.03em}.preview-head .preview-label{display:inline;font-size:10px;font-weight:500;color:#917341}main{padding-top:0}.pagebar{display:flex;gap:14px;align-items:center;min-height:44px;margin:0}.pagebar h1{font-size:18px;line-height:1.25;margin:0;flex:1;min-width:0}.pagebar .model-picker{display:flex;margin:0;gap:0}.pagebar .model-picker select{font-size:13px;min-height:38px;padding:5px 9px;max-width:230px}.pagebar .actions{margin:0;gap:13px;flex-wrap:nowrap}.pagebar .actions a{font-size:12px;white-space:nowrap;min-height:38px;display:inline-flex;align-items:center}.compact-tools{margin:0;min-height:0}.status[data-state='ready']{display:none}.status[data-state='error']{display:block;padding:8px 0;color:#943e21}@media(max-width:650px){.preview-head{padding:3px 10px;line-height:16px}.preview-head a{font-size:9px}.preview-head .preview-label{display:inline;font-size:9px}.pagebar{display:grid;grid-template-columns:minmax(90px,1fr) auto;gap:2px 12px;padding:3px 0 1px;min-height:0}.pagebar h1{grid-column:1/-1;font-size:16px;line-height:22px}.pagebar .model-picker select{font-size:13px;min-height:38px;max-width:100%;width:100%}.pagebar .actions{gap:13px}.pagebar .actions a{font-size:11px;min-height:38px}.pagebar #page-label{grid-column:1/-1}}

/* Always-visible exit, including a viewer opened in a fresh mobile tab. */
.preview-head{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid #e3e8e3}.preview-head .viewer-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;padding:6px 12px;font-size:13px;font-weight:650;letter-spacing:0;background:#eff4ef;color:#2f503c;border:1px solid #cbd7cc;border-radius:6px;white-space:nowrap;text-decoration:none}.preview-head .viewer-back:hover{background:#e3ece3}@media(max-width:650px){.preview-head .viewer-brand img{width:155px}.preview-head .viewer-back{font-size:12px;padding:5px 10px}.preview-head{gap:8px}}
