:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#102c40;background:#edf3f6;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#09283b;color:white;padding:15px 5%;display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:3}.brand{color:white;text-decoration:none;font-weight:900;letter-spacing:1px;margin-right:auto}.brand span{font-weight:400;letter-spacing:0}header button{background:#284558;color:white}main{max-width:1080px;margin:auto;padding:22px 18px 70px}.hero{background:linear-gradient(120deg,#0a2c43,#17617b);color:white;padding:28px;border-radius:18px;margin-bottom:18px}.eyebrow{font-size:12px;letter-spacing:2px;color:#bdd7e0}h1{font-size:30px;margin:8px 0}h2{font-size:23px;margin:0 0 12px}h3{font-size:18px}p{line-height:1.6}.card{background:white;border:1px solid #d6e2e9;border-radius:14px;padding:22px;margin:14px 0;box-shadow:0 5px 16px #0a2c4308}.actions{display:flex;flex-wrap:wrap;gap:10px}button,.button{border:0;border-radius:9px;background:#e2edf3;color:#123a51;padding:12px 17px;min-height:46px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}button:disabled{opacity:.55;cursor:default}button.primary{background:#62a917;color:white}.red{background:#b72f36;color:white}.danger{color:#a2212a}label{display:block;margin:14px 0;font-weight:600}input,select,textarea{display:block;width:100%;border:1px solid #bbcdd9;border-radius:8px;font:inherit;padding:12px;margin-top:7px;background:white;color:#102c40}textarea{min-height:100px;resize:vertical}input[type=checkbox]{display:inline-block;width:22px;height:22px;vertical-align:middle;margin:0 8px 0 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.muted,.hint{font-size:13px;color:#587386}.hint{padding:12px;border-left:3px solid #7aaac0;background:#e4eef4}.notice{padding:15px;background:#e0f2dc;border:1px solid #accfa0;border-radius:10px;white-space:pre-line;margin:12px 0}.error{background:#fff0e3;border-color:#efc290;color:#79380b}.badge{display:inline-block;padding:5px 10px;border-radius:99px;background:#e5edf3;font-size:13px}.badge.pending{background:#fff0be;color:#75500c}.badge.synced{background:#dff1df;color:#225929}.job{display:flex;align-items:center;gap:14px;justify-content:space-between}.job h3{margin:0 0 5px}.job p{margin:0;font-size:13px}.item{border-top:1px solid #dae4eb;padding:10px 0 15px}.item small{font-weight:400;color:#57788e}.photos{display:flex;flex-wrap:wrap;gap:12px}.photos img{width:125px;height:90px;object-fit:cover;border-radius:7px}.photos figure{margin:0}.photos button{padding:4px 10px;font-size:13px;min-height:32px}.signature{max-width:480px;width:100%;height:160px;touch-action:none;background:white;border:2px dashed #9bb5c4;border-radius:8px}.signature-preview{max-width:350px;width:100%;height:120px;object-fit:contain;border:1px solid #dde6ed}.sticky{position:sticky;bottom:0;background:#edf3f6ed;padding:12px 0;border-top:1px solid #cfdae2;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.review{white-space:pre-wrap;overflow-wrap:anywhere}.save-state{margin-left:auto;font-size:13px}a{color:#126783}[hidden]{display:none!important}@media(max-width:650px){.grid{grid-template-columns:1fr}h1{font-size:25px}.hero,.card{padding:17px}.job{align-items:flex-start;flex-direction:column}header{padding:12px}.brand span{display:none}main{padding:14px 12px 50px}button{padding:12px}.sticky button{flex:1}.save-state{width:100%}}

.sync-progress{border-left:5px solid #17617b;padding:16px 20px}.sync-progress[data-state="sending"]{position:sticky;top:76px;z-index:2}.sync-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.sync-heading h2{font-size:18px;margin:0}.sync-heading strong{font-size:22px;white-space:nowrap}progress{display:block;width:100%;height:18px;margin:12px 0;accent-color:#62a917;border:0;border-radius:20px;overflow:hidden}progress::-webkit-progress-bar{background:#e4edf2}progress::-webkit-progress-value{background:#62a917}progress::-moz-progress-bar{background:#62a917}.sync-progress p{margin:6px 0}.sync-progress small{color:#587386}.sync-progress[data-state="pending"]{border-color:#c68818}.sync-progress[data-state="done"]{border-color:#62a917}summary{cursor:pointer;font-weight:700}details li{margin:12px 0;line-height:1.6}

.sync-progress[data-state="partial"],.sync-progress[data-state="offline"]{border-color:#c68818}.sync-progress[data-state="error"]{border-color:#ad3b32}

.field-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.field-heading h1{margin:0;overflow-wrap:anywhere;min-width:0}.field-specialist{display:inline-block;background:#ffffff20;border:1px solid #ffffff55;color:#fff;padding:6px 10px;border-radius:99px;font-size:13px;white-space:nowrap}.hero .field-tagline{margin:10px 0 0;font-size:18px;color:#d7e8ee}

.mode-control{display:flex;gap:8px;align-items:center;margin:0;font-size:12px;font-weight:600}.mode-control select{width:auto;margin:0;padding:9px;font-size:14px;min-height:44px;background:#284558;color:white;border-color:#557384}header{flex-wrap:wrap}#modeHint{line-height:1.5}

/* Inicio de Terreno v2: logo, botones grandes y menú «Mi cuenta» */
header.fh-head{background:#fff;color:#09283b;border-bottom:1px solid #d6e2e9;padding:10px 16px;gap:10px;flex-wrap:nowrap;box-shadow:0 2px 10px #0a2c430d}
.fh-logo{display:flex;align-items:center;margin-right:auto;min-width:0}.fh-logo img{display:block;height:38px;width:auto;max-width:46vw}
body.tech-readable header.fh-head .fh-chip,.fh-chip{min-height:44px;padding:6px 14px;border-radius:99px;background:#fff4df;color:#6b2d0a;border:1px solid #e3b878;font-size:16px;font-weight:700;white-space:nowrap}
.fh-chip[data-mode="online"]{background:#e3f3df;color:#225929;border-color:#a9d39c}
body.tech-readable header.fh-head .fh-avatar,.fh-avatar{display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 12px 4px 4px;border-radius:99px;background:#09283b;color:#fff;border:0;font-size:17px;font-weight:700}
.fh-face{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#62a917 center/cover no-repeat;color:#fff;font-weight:800;font-size:18px;flex:0 0 auto}
.fh-face.has-pic{background-color:#d6e2e9}.fh-face-big{width:72px;height:72px;font-size:28px}
.fh-hero{padding:18px 22px!important;margin-bottom:14px}.fh-hero h1{font-size:26px!important}
#home>.fh-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 8px}
body.tech-readable .fh-tile,.fh-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:132px;padding:18px 20px;border-radius:16px;border:0;text-align:left;text-decoration:none;color:#fff;background:#17617b;box-shadow:0 6px 18px #0a2c4318;font:inherit}
.fh-tile b{font-size:25px;line-height:1.15}.fh-tile small{font-size:16px;font-weight:500;opacity:.9}.fh-tile .fh-ic{font-size:30px;line-height:1}
body.tech-readable .fh-tile.fh-route,.fh-route{background:#306c18}body.tech-readable .fh-tile.fh-today,.fh-today{background:#17617b}body.tech-readable .fh-tile.fh-sync,.fh-sync{background:#09283b}body.tech-readable .fh-tile.fh-eq,.fh-eq{background:#7a4a0c}body.tech-readable .fh-tile.fh-plan,.fh-plan{background:#4b3b8f}body.tech-readable .fh-tile.fh-corr,.fh-corr{background:#b72f36}
.fh-tile:disabled{opacity:.55}.fh-tile:focus-visible,.fh-item:focus-visible,.fh-avatar:focus-visible{outline:4px solid #f2b705;outline-offset:3px}
.fh-state{margin-top:18px}.fh-state #offlineReadiness h2{font-size:21px}.fh-install{margin-top:10px}
dialog.fh-sheet{width:min(560px,100vw);max-width:100vw;max-height:100dvh;margin:auto auto 0;padding:0 0 env(safe-area-inset-bottom);border:0;border-radius:20px 20px 0 0;background:#fff;color:#102c40;overflow:auto}
@media(min-width:700px){dialog.fh-sheet{margin:auto;border-radius:20px}}
dialog.fh-sheet::backdrop{background:#09283b99}
.fh-sheet-top{display:flex;align-items:center;gap:14px;padding:18px 18px 8px;position:sticky;top:0;background:#fff;z-index:1}.fh-sheet-top h2{margin:0;font-size:24px}.fh-sheet-top p{margin:2px 0 0}
body.tech-readable .fh-x,.fh-x{margin-left:auto;min-height:52px;min-width:52px;border-radius:50%;padding:0;font-size:22px;background:#e2edf3}
.fh-msg{margin:6px 18px;padding:12px 14px;border-radius:10px;background:#e0f2dc;border:1px solid #accfa0}.fh-msg.error{background:#fff0e3;border-color:#efc290;color:#79380b}
.fh-menu{display:grid;gap:10px;padding:10px 18px 22px}
body.tech-readable .fh-item,.fh-item{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;margin:0;padding:12px 16px;border:1px solid #d6e2e9;border-radius:14px;background:#f7fafb;color:#102c40;text-decoration:none;text-align:left;font:inherit;font-weight:700;font-size:20px;cursor:pointer}
.fh-item small{display:block;font-weight:500;font-size:15px;color:#4b6577}.fh-item .fh-ic{font-size:28px;width:36px;text-align:center;flex:0 0 auto}
.fh-mode{flex-wrap:wrap}.fh-mode>span:not(.fh-ic){flex:1 1 200px}body.tech-readable .fh-mode select,.fh-mode select{flex:1 1 100%;width:100%;margin:4px 0 0 50px;max-width:calc(100% - 50px)}
.fh-out{border-color:#e7b8ba;background:#fff5f5;color:#8e2228}
.fh-name{padding:6px 18px 22px}.fh-name h3{margin:6px 0}
@media(max-width:520px){.fh-avatar-label{display:none}body.tech-readable header.fh-head .fh-avatar,.fh-avatar{padding:4px}.fh-tile{min-height:112px}.fh-tile b{font-size:22px}#home>.fh-tiles{gap:10px}}
@media(max-width:360px){#home>.fh-tiles{grid-template-columns:1fr}}

.fh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
main>.fh-tiles{margin-top:6px}

/* Tarjetas del inicio · línea gráfica ZUREX: blanco, línea fina, azul ZUREX como único color de acción */
body.tech-home{background:#F6F7F9;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body.tech-home #home>.fh-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 14px}
body.tech-home .fh-tiles>.fh-tile{position:relative;display:flex;flex-direction:row;align-items:center;gap:16px;min-height:104px;padding:16px 18px;
 background:#fff;color:#16202B;border:1px solid #E4E7EB;border-radius:14px;box-shadow:0 1px 2px rgba(16,32,43,.04);text-align:left;text-decoration:none;
 transition:border-color .15s,box-shadow .15s,transform .15s}
body.tech-home .fh-tiles>.fh-tile:hover{border-color:#C9D2DE;box-shadow:0 4px 14px rgba(11,45,91,.08)}
body.tech-home .fh-tiles>.fh-tile:active{transform:scale(.99)}
body.tech-home .fh-tiles>.fh-tile:focus-visible{outline:3px solid #0B2D5B;outline-offset:2px}
body.tech-home .fh-tile .fh-ic{flex:0 0 auto;display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#EDF1F7;color:#0B2D5B}
body.tech-home .fh-svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
body.tech-home .fh-txt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
body.tech-home .fh-tile b{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:600;letter-spacing:-.01em;line-height:1.2;color:#16202B}
body.tech-home .fh-tile small{font-size:15px!important;font-weight:400;color:#677381;opacity:1;line-height:1.35}
body.tech-home .fh-num{display:inline-grid;place-items:center;flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:#0B2D5B;color:#fff;font-size:14px;font-weight:600}
body.tech-home .fh-chev{flex:0 0 auto;width:22px;height:22px;fill:none;stroke:#98A2AE;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Principal: Mi trabajo de hoy en azul ZUREX */
body.tech-home .fh-tiles>.fh-tile.fh-today{background:#0B2D5B;border-color:#0B2D5B;color:#fff}
body.tech-home .fh-today .fh-ic{background:rgba(255,255,255,.12);color:#fff}
body.tech-home .fh-today b,body.tech-home .fh-today small{color:#fff}body.tech-home .fh-today small{opacity:.82}
body.tech-home .fh-today .fh-num{background:#fff;color:#0B2D5B}body.tech-home .fh-today .fh-chev{stroke:rgba(255,255,255,.7)}
/* Correctivo: acento rojo suave (solo el ícono) */
body.tech-home .fh-corr .fh-ic{background:#FDEDEB;color:#B42318}
body.tech-home .fh-tiles>.fh-tile:disabled{opacity:.5;cursor:default;box-shadow:none}
body.tech-home .fh-tiles>.fh-tile:disabled .fh-chev{display:none}
@media(max-width:640px){body.tech-home #home>.fh-tiles{grid-template-columns:1fr;gap:10px}body.tech-home .fh-tiles>.fh-tile{min-height:92px;padding:14px 16px}body.tech-home .fh-tile b{font-size:19px}body.tech-home .fh-tile .fh-ic{width:48px;height:48px}}
@media(max-width:640px){body.tech-home .fh-tiles>.fh-tile{min-height:90px}}
/* Avatar en azul ZUREX (el verde queda solo para el logotipo y los estados «listo») */
body.tech-home .fh-face{background-color:#EDF1F7;color:#0B2D5B}
body.tech-readable header.fh-head .fh-avatar,body.tech-home .fh-avatar{background:#fff;color:#0B2D5B;border:1px solid #D4D9DF}
body.tech-home #home>.fh-tiles>.fh-tile{min-height:104px;font-size:inherit;font-weight:inherit}
@media(max-width:640px){body.tech-home #home>.fh-tiles>.fh-tile{min-height:92px}}

body.tech-home .fh-cotejar .fh-ic{background:#FFF4E5;color:#B54708}
/* Borradores locales (16-11-2026): descartar = guardar en la tablet pero no mostrar; se recuperan en «Borradores descartados». */
.job-discard{background:#fff;color:#B42318;border-color:#F0B8B1}.job-trash{margin:12px 0 0;padding:10px 14px;border:1px dashed #b9c7d3;border-radius:14px;background:#f7fafc}.job-trash>summary{font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center}.job-trash-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.job-trash-row>b{flex:1 1 220px;min-width:0}.job-trash-row>p{flex:1 1 100%;margin:0;color:#5f7484;font-size:15px;order:3}.job-trash-row>button{min-height:44px}
@media(max-width:560px){body.gend-home #jobs article.job{flex-wrap:wrap}body.gend-home #jobs article.job>div{flex:1 1 100%}}
