500;600;700&display=swap');
:root{--blue:#0071ce;--navy:#082f56;--yellow:#ffc220;--ink:#183954;--muted:#657b8e;--line:#dfe7ed;--bg:#f5f8fb}*{box-sizing:border-box}body{margin:0;font:14px 'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}a{color:inherit}aside{position:fixed;inset:0 auto 0 0;width:240px;background:var(--navy);color:white;display:flex;flex-direction:column;padding:27px 20px;z-index:2}.brand{display:block;background:#247fdf;border-radius:8px;overflow:hidden;margin-bottom:44px}.brand img{display:block;width:100%}.side-label{font-size:10px;letter-spacing:1.8px;color:#a5bfd3;margin:0 12px 17px}nav button{display:flex;align-items:center;gap:13px;background:none;color:#c1d3e1;width:100%;border:0;padding:14px;border-radius:7px;text-align:left;margin:5px 0;font-weight:500}nav button span{font-size:22px;line-height:20px}nav button.selected{background:#174b76;color:white}.side-bottom{margin-top:auto;border-top:1px solid #ffffff25;padding:25px 9px 0}.spark{display:block;font-size:42px;color:var(--yellow);margin-bottom:10px}.side-bottom strong{font-size:16px}.side-bottom p{font-size:12px;line-height:1.7;color:#b3c8da}.side-bottom small{font-size:9px;letter-spacing:1px;color:#7fa4c0}.shell{margin-left:240px}header{height:80px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;font-weight:500}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:10px}.header-badge{font-size:11px;background:#fff7d9;color:#826306;padding:7px 11px;border-radius:5px}main{max-width:1540px;margin:auto;padding:27px 40px 45px}.notice{display:flex;align-items:flex-start;gap:15px;background:#eaf3fb;border:1px solid #d6e8f7;border-radius:7px;padding:12px 16px;color:#416584;font-size:11px;line-height:1.6}.notice b{white-space:nowrap;color:var(--blue)}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--blue);font-weight:700;margin-bottom:10px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 26px}h1{font-size:35px;font-weight:600;letter-spacing:-1.3px;margin:0 0 8px}p.subtitle{color:var(--muted);line-height:1.6;margin:0}.button{min-height:42px;border:1px solid var(--blue);border-radius:6px;background:var(--blue);color:white;padding:11px 18px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px;white-space:nowrap}.button:hover{filter:brightness(.96)}.button.secondary{background:white;border-color:var(--line);color:var(--ink)}.button.yellow{background:var(--yellow);border-color:var(--yellow);color:var(--navy)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.stat{border:1px solid var(--line);border-radius:9px;background:white;padding:18px 20px;display:flex;align-items:center;gap:16px}.stat-icon{width:42px;height:42px;display:grid;place-items:center;color:var(--blue);font-size:21px;background:#eaf4fd;border-radius:9px}.stat strong{display:block;font-size:28px;font-weight:600;line-height:1.15}.stat small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0}.filters{display:flex;gap:8px;flex-wrap:wrap}.filters button{border:1px solid var(--line);border-radius:6px;background:white;color:var(--muted);padding:10px 15px;min-height:40px}.filters button.on{background:var(--navy);border-color:var(--navy);color:white}.search{display:flex;gap:8px}input,select,textarea{min-height:42px;border:1px solid #d6e1e9;border-radius:6px;padding:10px 12px;background:white;color:var(--ink);max-width:100%}input[type=search]{width:240px}input:focus,select:focus,textarea:focus{outline:2px solid #87bff1;outline-offset:1px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.campaign-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}.card-top{height:96px;padding:20px 22px;background:#edf5fc;position:relative;display:flex;align-items:center;justify-content:space-between}.card-top .number{font-size:11px;color:#3e7095;letter-spacing:1px}.card-top .art{font-size:48px;color:#0071ce24;line-height:1}.card-top.acuenta{background:#f3f0fb}.card-top.central{background:#edf7f0}.card-body{padding:23px;display:flex;flex-direction:column;flex:1}.card-body h2{font-size:21px;letter-spacing:-.5px;margin:14px 0 12px;color:var(--navy);overflow-wrap:anywhere}.pill{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-size:10px;font-weight:600;border-radius:20px;padding:5px 9px;background:#eef1f4;color:#64798b}.pill.active,.pill.delivered{background:#e4f4e9;color:#267847}.pill.route{background:#e8f2ff;color:#1767ad}.pill.partial{background:#fff1d4;color:#8d5c0b}.chains{display:flex;gap:6px;flex-wrap:wrap;min-height:25px}.chain{display:inline-block;font-size:10px;padding:5px 8px;background:#eef5fc;color:#1f629b;border-radius:4px;font-weight:600}.chain.acuenta{color:#6b4096;background:#f2ebf9}.chain.central{color:#37754b;background:#eaf5ed}.date-range{font-size:11px;color:var(--muted);margin:17px 0 22px;min-height:15px}.progress-info{display:flex;justify-content:space-between;font-size:11px;margin-top:auto}.progress-info b{color:var(--blue)}.progress{height:6px;background:#edf1f5;border-radius:4px;overflow:hidden;margin-top:10px}.progress div{height:100%;background:var(--blue);border-radius:4px}.card-footer{padding:17px 23px;border-top:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.text-button{border:0;background:none;color:var(--blue);font-weight:600;padding:5px 0;min-height:30px}.card-footer button{font-size:12px}.empty{border:1px dashed #b8cbdc;background:white;padding:45px 22px;text-align:center;border-radius:10px;color:var(--muted);grid-column:1/-1}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:30px 0 10px}.section-heading h2{font-size:19px;font-weight:600}.section-heading small{color:var(--muted)}.back{color:var(--blue);background:none;border:0;padding:8px 0;display:block;margin-top:20px}.action-group{display:flex;gap:8px;flex-wrap:wrap}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:white}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{text-align:left;font-size:10px;letter-spacing:.5px;color:var(--muted);padding:17px 18px;background:#f9fbfd;font-weight:600}td{padding:19px 18px;border-top:1px solid #edf1f5}td strong{font-size:14px}td small{display:block;color:var(--muted);margin-top:5px}.detail-banner{background:var(--navy);color:white;border-radius:10px;padding:23px 26px;display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.detail-banner h3{font-weight:500;font-size:18px;margin:0 0 10px}.detail-banner p{color:#b4d1e8;font-size:12px;margin:0}.detail-banner .progress{width:200px;background:#ffffff20}.detail-banner .progress div{background:var(--yellow)}.detail-banner strong{color:var(--yellow);font-size:22px}.view-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.view-tools input{flex:1;min-width:160px}footer{padding:20px 40px;border-top:1px solid var(--line);color:#7b8e9d;font-size:10px;display:flex;justify-content:space-between;gap:12px}dialog{padding:0;border:0;border-radius:12px;width:min(580px,94vw);max-height:92vh;color:var(--ink);box-shadow:0 20px 100px #00294e44}dialog.wide{width:min(830px,96vw)}dialog::backdrop{background:#062c4f90;backdrop-filter:blur(3px)}.modal-top{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.modal-top small{font-size:10px;letter-spacing:1px;color:var(--blue)}.modal-top h2{font-size:24px;margin:6px 0;letter-spacing:-.5px}.modal-top p{font-size:12px;margin:7px 0;color:var(--muted)}.close{border:1px solid var(--line);background:white;color:var(--muted);width:34px;height:34px;flex-shrink:0;border-radius:50%;font-size:22px}.modal-body{padding:24px 27px}.modal-actions{padding:18px 27px;background:#f8fafc;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}label{display:block;font-size:12px;font-weight:500;margin-bottom:17px}label>input,label>select,label>textarea{display:block;width:100%;margin-top:7px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-size:12px;font-weight:500;margin:8px 0 12px;padding:0}legend small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:6px}.checks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checks label{display:flex;align-items:center;gap:9px;border:1px solid var(--line);padding:10px;border-radius:7px;margin:0;min-height:45px}.checks input{width:17px;height:17px;min-height:17px;margin:0;accent-color:var(--blue)}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hint{color:var(--muted);font-size:11px;line-height:1.6}.error{color:#b92d36;font-size:12px;line-height:1.6}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 17px}.section-title h3{font-size:16px;margin:0}.material-head,.material-row{display:grid;grid-template-columns:minmax(80px,1fr) 85px 85px 30px;gap:10px;margin:10px 0}.material-head{font-size:10px;color:var(--muted)}.material-row input{width:100%;min-width:0}.remove{border:0;background:none;color:#a25050;font-size:20px}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.photo{position:relative;border:1px solid var(--line);border-radius:8px;padding:6px}.photo img{width:100%;height:120px;object-fit:cover;display:block;border-radius:4px;cursor:zoom-in}.photo button{font-size:10px;color:#a25050;background:white;border:0;margin-top:6px}.file-button{margin:0;font-size:11px;cursor:pointer}.file-button input{display:none}#lightbox{width:min(1000px,95vw);padding:15px;background:white}#lightbox img{display:block;max-width:100%;max-height:80vh;margin:auto}#lightbox .close{display:block;margin:0 0 10px auto}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%);background:var(--navy);color:white;padding:14px 22px;border-radius:8px;z-index:20;font-size:12px;box-shadow:0 6px 30px #0002;display:none}[hidden]{display:none!important}:focus-visible{outline:2px solid #459ce4;outline-offset:3px}@media(min-width:1600px){.cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:1200px){aside{width:210px}.shell{margin-left:210px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding:25px}.stats{gap:10px}.stat{padding:15px 12px;gap:9px}.stat-icon{width:32px;height:32px}.stat strong{font-size:25px}}@media(max-width:850px){aside{position:static;width:auto;padding:10px 20px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.brand{width:150px;margin:0}.side-label,.side-bottom{display:none}nav{display:flex}nav button{padding:10px;font-size:12px;margin:0}nav button span{display:none}.shell{margin-left:0}header{height:55px;padding:0 22px;font-size:12px}main{padding:22px}.stats{grid-template-columns:repeat(2,1fr)}.toolbar{align-items:stretch;flex-direction:column}.search input{flex:1;width:auto}.search select{max-width:50%}#toast{left:50%}footer{padding:20px 22px}.page-heading{margin-top:25px}h1{font-size:30px}}@media(max-width:540px){main{padding:18px 16px}.cards{grid-template-columns:1fr}.notice{gap:8px;font-size:10px;flex-direction:column}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:13px}h1{font-size:29px}.page-heading>.button{width:100%}.stat{padding:15px}.stat small{font-size:10px}.stat-icon{display:none}.stats{gap:10px;margin-bottom:22px}.filters{gap:5px}.filters button{font-size:11px;padding:8px 12px}.subtitle{font-size:12px}.brand{width:125px}aside{padding:10px 12px}nav button{font-size:11px;padding:9px}header{padding:0 16px;font-size:11px}.header-badge{font-size:9px}.two{grid-template-columns:1fr;gap:0}.checks{grid-template-columns:1fr}.modal-top,.modal-body{padding:20px}.modal-actions{padding:15px 20px}.material-head,.material-row{grid-template-columns:minmax(70px,1fr) 59px 65px 22px;gap:5px}.material-row input{padding:9px 6px}.detail-banner{padding:21px;flex-wrap:wrap}.detail-banner .progress{width:100%}.detail-banner>div{width:100%}footer{flex-direction:column}.photos{grid-template-columns:1fr 1fr}.view-tools select{width:100%}.action-group{width:100%}.action-group .button{flex:1;padding:10px;font-size:11px}}

.notice .text-button{font-size:11px;margin-left:auto;white-space:nowrap}.shell{min-height:100vh}.busy{pointer-events:none;opacity:.7}.read-only #createCampaign,.read-only #editCampaign,.read-only #toggleCampaign,.read-only #addLocal,.read-only #addMaterial,.read-only #newDriver,.read-only .file-button{display:none!important}.notice{align-items:center}main{min-height:650px}.photos a{display:block}.photo-missing{height:120px;background:#eef3f7;display:grid;place-items:center;font-size:11px;color:#657b8e}@media(max-width:540px){.notice{align-items:flex-start}.notice .text-button{margin-left:0}}

.card-top .art{color:#ffc220;width:44px;height:44px;display:block}.art svg,.spark svg{display:block;width:100%;height:100%}.spark{width:38px;height:38px}

/* 1.0.2 — Textos negros sobre superficies claras. */
:root{--ink:#111111;--muted:#333333}
body{color:#111111;color-scheme:light}
aside{background:#eaf3fb;color:#111111;border-right:1px solid #cbdbe8}
.side-label,.side-bottom p,.side-bottom small{color:#333333}
.side-bottom{border-top-color:#cbdbe8}
nav button,nav button.selected{color:#111111}
nav button.selected{background:#ffdf73}
.button,.button.yellow{background:#ffc220;border-color:#d6a000;color:#111111}
.button.secondary{background:#ffffff;border-color:#bdcbd7;color:#111111}
.filters button.on{background:#dcecf9;border-color:#8bb8da;color:#111111}
.detail-banner{background:#e3f0fa;color:#111111;border:1px solid #bed8ec}
.detail-banner p,.detail-banner strong{color:#111111}
.detail-banner .progress{background:#c4d8e8}
.detail-banner .progress div{background:#0071ce}
#toast{background:#ffffff;color:#111111;border:1px solid #a9bdcc}
h1,h2,h3,h4,h5,h6,button,input,select,textarea,label,legend{color:#111111!important}
input,select,textarea{-webkit-text-fill-color:#111111;opacity:1}
input::placeholder,textarea::placeholder{color:#4a4a4a;opacity:1}
input:disabled,select:disabled,textarea:disabled{-webkit-text-fill-color:#333333;opacity:1;background:#f3f6f8}

.routes-section{border-top:1px solid #dfe7ed;border-bottom:1px solid #dfe7ed;padding-bottom:22px;margin-bottom:26px}.route-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.route-card{background:#fff;border:1px solid #cbdbe8;border-radius:8px;padding:18px}.route-card h3{margin:0 0 12px}.route-card p{font-size:12px;color:#111}.route-locals{max-height:360px;overflow:auto;margin-top:15px;border:1px solid #cbdbe8;border-radius:6px}.route-local{display:flex;gap:12px;align-items:flex-start;margin:0;padding:13px;border-bottom:1px solid #e5edf3;background:white}.route-local input{width:18px;min-height:18px;margin:2px 0;flex-shrink:0;accent-color:#0071ce}.route-local small{display:block;color:#333;margin-top:6px;font-size:11px}.route-local:has(input:checked){background:#eaf3fb}.route-local:has(input:disabled){opacity:.8}#routeSearch{width:100%}.read-only #addRoute{display:none!important}

.row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.row-actions .text-button{font-size:12px}.read-only [data-edit-local],.read-only #editDeliveryLocal{display:none!important}input[readonly]{background:#edf2f6}

/* 1.2.1 — Información al inicio del área visible, también dentro de Elementor. */
dialog{position:fixed;top:12px;bottom:auto;margin:0 auto;max-height:min(92vh,calc(var(--pwe-viewport-height,100vh) - 24px));overflow-y:auto;overscroll-behavior:contain}
dialog .modal-top{position:sticky;top:0;z-index:2;background:#fff}
dialog .modal-actions{position:sticky;bottom:0;z-index:2}
dialog h2:focus,dialog h3:focus{outline:none}
#lightbox{max-height:min(92vh,calc(var(--pwe-viewport-height,100vh) - 24px))}
#lightbox img{max-height:calc(var(--pwe-viewport-height,100vh) - 120px)}
