:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#18243a;background:#f6f8fc}*{box-sizing:border-box}body{margin:0}header{height:78px;display:flex;align-items:center;justify-content:space-between;max-width:1080px;margin:auto;padding:0 24px}.brand{font-size:24px;font-weight:850;text-decoration:none;color:#17263e}.brand span{color:#5965df}nav{display:flex;gap:24px}nav a{color:#53617a;text-decoration:none;font-size:14px}main{max-width:980px;margin:auto;padding:10px 22px 60px}.hero{text-align:center;padding:56px 10px 42px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:#5965df}.hero h1{font-size:clamp(34px,6vw,60px);letter-spacing:-2.5px;line-height:1.08;max-width:760px;margin:18px auto}.hero em{font-style:normal;color:#5965df}.hero>p:last-child{color:#68758d;max-width:550px;margin:0 auto;line-height:1.7}.panel{background:white;border:1px solid #e4e9f2;border-radius:20px;box-shadow:0 20px 60px #2230520b;padding:30px}.drop{border:2px dashed #a9b5df;border-radius:14px;background:#f8f9ff;padding:44px 15px;display:flex;align-items:center;flex-direction:column;gap:12px;cursor:pointer;text-align:center}.drop.hover{background:#edf0ff}.drop strong{font-size:19px}.drop span,.drop small{color:#71809b}.drop input{position:absolute;opacity:0;width:1px;height:1px}.settings{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.settings label{display:flex;flex-direction:column;gap:10px;font-size:13px;font-weight:700}.settings select,.settings input[type=number]{height:42px;border:1px solid #d9e0eb;border-radius:9px;padding:0 12px;background:white;font-size:15px}.settings input[type=range]{accent-color:#5965df}.actions{display:flex;gap:10px;flex-wrap:wrap}button{border:0;border-radius:9px;background:#5965df;color:white;padding:13px 19px;font-weight:700;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#eef0f7;color:#35415b}#status{font-size:13px;color:#62718a;margin-top:22px}progress{width:100%;height:9px;accent-color:#5965df}ul{padding:0;list-style:none}li{border-bottom:1px solid #eef1f6;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;overflow-wrap:anywhere}.small{padding:8px 12px;flex-shrink:0}.error{color:#b13c49}.info{max-width:730px;margin:55px auto;color:#63708a;line-height:1.8}.info h2{color:#1c2940}footer{text-align:center;border-top:1px solid #e5e9f1;padding:30px;color:#8994a7;font-size:13px}@media(max-width:650px){.settings{grid-template-columns:1fr}.hero{padding-top:25px}.panel{padding:16px}.drop{padding:32px 12px}nav{gap:12px}}

.extra-settings{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:24px;align-items:center}.extra-settings label{font-size:13px;font-weight:650;color:#35415b}.extra-settings input[type=text]{padding:10px;border:1px solid #d9e0eb;border-radius:9px;margin-left:8px}footer a{color:#5965df}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6977f5;outline-offset:3px}

.advanced{margin-top:-12px}.advanced .toggle{justify-content:center;flex-direction:row;align-items:center}.result-preview{width:58px;height:58px;object-fit:contain;border-radius:8px;background:#f3f5fa;flex-shrink:0}#results li span{flex:1;min-width:0}@media(max-width:650px){#results li{flex-wrap:wrap}.result-preview{width:44px;height:44px}}

.selected-panel{margin:16px 0 24px;padding:15px 18px;border:1px solid #dce4f2;border-radius:12px;background:#f8faff}.selected-panel h2{font-size:16px;margin:0 0 10px;color:#24334f}.selected-panel ul{list-style:none;padding:0;margin:0;max-height:230px;overflow-y:auto}.selected-panel li{padding:7px 0;border-bottom:1px solid #e4eaf3;font-size:13px;overflow-wrap:anywhere}.selected-panel li:last-child{border-bottom:0}

/* v0.8: controles de archivos cargados */
.file-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}.file-toolbar label{display:flex;flex-direction:column;gap:6px}.file-toolbar select{padding:8px}.file-row{display:flex;justify-content:space-between;align-items:center;gap:12px;overflow-wrap:anywhere}.file-row span{min-width:0;flex:1}.file-row button{flex-shrink:0}@media(max-width:600px){.file-toolbar{align-items:stretch}.file-row{align-items:flex-start}}

/* v1.3.2: navegación consistente, visible y adaptable en todas las páginas */
header{height:auto;min-height:78px;max-width:1180px;gap:18px;flex-wrap:wrap;padding-top:15px;padding-bottom:15px}
.site-nav{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end;flex:1 1 650px}
.site-nav a{display:inline-flex;padding:9px 11px;border-radius:9px;color:#35415b;text-decoration:none;font-size:13px;font-weight:650;line-height:1.3}
.site-nav a:hover,.site-nav a:focus-visible{background:#e9edff;color:#3345b8}
.site-nav a[aria-current="page"]{background:#e8ebff;color:#3443af}
.site-footer{line-height:1.7}
.site-footer p{margin:0 0 10px}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center}
.footer-links a{color:#5965df;text-decoration:none}
.footer-links a:hover{text-decoration:underline}
@media(max-width:760px){header{align-items:flex-start;flex-direction:column;gap:12px}.site-nav{flex:0 1 auto;justify-content:flex-start;width:100%}.site-nav a{padding:8px 10px;background:#edf0f8}.hero{padding-top:30px}}

#mergeList li{padding:.35rem 0}#mergeList button{margin-left:.45rem;padding:.25rem .65rem;min-width:2.2rem}#mergeList button:disabled{opacity:.4;cursor:not-allowed}

/* v1.6: orden manual de archivos al renombrar */
.rename-hint{color:#64748b;font-size:14px;line-height:1.6}
#preview .rename-row{display:flex;gap:12px;align-items:center;justify-content:space-between;cursor:grab;flex-wrap:wrap}
#preview .rename-row:active{cursor:grabbing}
.rename-label{flex:1;min-width:180px;overflow-wrap:anywhere}
.rename-controls{display:flex;gap:6px;flex-shrink:0}
.rename-controls button{padding:8px 10px}
@media(max-width:600px){.rename-controls{width:100%}.rename-controls button{flex:1}}

/* v1.8: panel visual accesible para ordenar páginas sin miniaturas */
.page-toolbar{display:flex;gap:10px;margin:12px 0}
.page-order-list{list-style:none;padding:0;margin:10px 0 18px;max-height:370px;overflow-y:auto;border:1px solid #dce4f2;border-radius:12px;background:#f9faff}
.page-order-row{display:flex;justify-content:flex-start;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #e5eaf3}
.page-order-row:last-child{border-bottom:0}
.page-order-label{flex:1;font-size:14px;overflow-wrap:anywhere}
.page-order-row button{min-width:40px}

/* v1.9 preliminar: formularios de herramientas PDF */
.panel + .panel{margin-top:20px}
.panel>label{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:14px 0;font-size:14px;font-weight:650}
.panel>label>input,.panel>label>select{max-width:100%;width:min(420px,100%);padding:11px;border:1px solid #d9e0eb;border-radius:9px;font:inherit}
.panel>p[role=status]{overflow-wrap:anywhere;color:#52617c}
