:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#152d45;background:#f3f6f9;font-size:16px;--ink:#102c4a;--muted:#566b7d;--line:#dce5eb;--teal:#067d89}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button,a{ -webkit-tap-highlight-color:transparent}a{color:var(--teal)}button{border:1px solid var(--line);border-radius:9px;padding:11px 16px;background:white;color:var(--ink);font-weight:600;min-height:44px}button:hover{background:#eaf3f5}button.primary,.primary{background:var(--ink);color:white;border-color:var(--ink)}button.danger{color:#a2262b;background:#fff2f1}button:focus-visible,a:focus-visible{outline:3px solid #168cba;outline-offset:3px}input,select,textarea{display:block;width:100%;min-width:0;border:1px solid #aebfc9;border-radius:8px;padding:11px;background:#fff;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:2px solid #087e8b;outline-offset:1px}input[type=checkbox]{width:20px;height:20px;display:inline-block}label{display:block;font-size:14px;font-weight:600;line-height:1.5}label input,label select,label textarea{margin-top:6px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-.035em;margin-bottom:0}h2{font-size:21px;letter-spacing:-.02em}h3{font-size:17px}small{font-size:13px}p{line-height:1.6}.muted,.hint{color:var(--muted);font-size:14px;line-height:1.6}.sidebar{position:fixed;left:0;top:0;bottom:0;width:248px;background:var(--ink);padding:30px 20px;color:white;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:21px;font-weight:750;letter-spacing:-.025em}.brand img{width:44px;height:44px}.brand small{display:block;font-size:12px;font-weight:400;color:#b7c9d7;letter-spacing:0;margin-top:4px}.sidebar nav{display:grid;gap:8px;margin-top:48px}.sidebar nav button{display:flex;align-items:center;gap:14px;text-align:left;background:transparent;border:0;color:#c6d6e2;font-size:20px}.sidebar nav button span{font-size:15px}.sidebar nav button.active{background:#234560;color:white;box-shadow:inset 3px 0 #34cad3}.sidebar-foot{margin-top:auto;font-size:13px;color:#bdcbd6}.sidebar-foot a{color:#c1e6ed}.sidebar-foot small{display:block;margin-top:20px}.badge{display:inline-block;padding:6px 10px;border-radius:6px;background:#e5f4f3;color:#075e68;font-size:12px;font-weight:650}.sidebar-foot .badge{background:#234560;color:#c6f6f8}.workspace{margin-left:248px}.toolbar{height:72px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;background:#fff;font-size:13px;color:var(--muted)}.toolbar button{font-size:14px}main{max-width:1300px;margin:auto;padding:32px 36px}.pagehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:700;color:var(--teal);margin-bottom:7px}.period-picker{width:170px;font-size:12px;color:var(--muted)}.period-picker input{font-size:14px;background:white}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:20px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.calendar-layout>*{min-width:0}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:8px}.calendar-head h2{margin:0;text-transform:capitalize}.calendar-head .arrows{display:flex;gap:6px}.arrows button{padding:4px 12px}.week,.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.week{margin-bottom:8px}.week span{text-align:center;font-size:12px;color:var(--muted);padding:6px 0}.day{min-width:0;min-height:104px;padding:9px 5px;border-radius:9px;display:flex;flex-direction:column;align-items:flex-start;position:relative;font-weight:500;gap:5px}.day .num{font-size:16px;font-weight:650}.day .shift{font-size:12px}.day .price{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:-.02em;max-width:100%;overflow-wrap:anywhere}.day.out{background:#f8fafb;color:#697b8b}.day.today{outline:2px solid var(--teal);outline-offset:-2px}.day.M{background:#fff7df;border-color:#ead19a}.day.T{background:#e9f3ff;border-color:#b8d7f3}.day.N{background:#edeafd;border-color:#ccc3ef}.day.F{background:#edf1f4}.day.P{background:#e4f4ef}.holiday-dot{position:absolute;right:5px;top:9px;width:6px;height:6px;background:#c0393c;border-radius:50%}.manual-dot{width:4px;height:4px;background:#214d70;position:absolute;right:5px;bottom:6px}.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;margin:18px 0;color:var(--muted)}.legend span:before{content:'';width:8px;height:8px;display:inline-block;margin-right:5px;border-radius:2px;background:var(--color)}.empty{text-align:center;padding:16px 8px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);margin:16px 0 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions>*{flex:1}.actions button{font-size:14px}.net-card{background:var(--ink);color:white;border:0}.net-card p{font-size:13px;color:#c0d3df;margin-bottom:12px}.net-card strong{display:block;font-size:30px;letter-spacing:-.04em;overflow-wrap:anywhere}.net-card small{color:#b9d1e0;display:block;margin-top:14px;line-height:1.5}.stat{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:12px;font-size:14px}.stat:last-child{border:0}.stat strong{font-size:21px;white-space:nowrap}.stat small{display:block;color:var(--muted);font-size:12px}.info-title{font-size:12px;letter-spacing:.08em;color:var(--muted);margin-bottom:14px;font-weight:700}.rotation-seq{font-size:16px;letter-spacing:.14em;line-height:1.8;overflow-wrap:anywhere}.linkbtn{padding:0;min-height:36px;border:0;background:none;color:var(--teal);font-size:14px;text-align:left}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.kpis .card{padding:16px;margin:0}.kpis strong{display:block;font-size:24px;margin-top:8px}.kpis small{color:var(--muted)}.row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.row b{text-align:right}.row.total{font-size:19px;font-weight:700}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.formgrid .wide{grid-column:1/-1}label.check{display:flex;align-items:center;gap:8px;font-weight:400}label.check input{margin:0}.concept{padding:16px;border:1px solid var(--line);border-radius:10px;margin:12px 0}.concept .formgrid{grid-template-columns:2fr 1fr 1fr;gap:12px}.concept .check{margin-top:12px}.concept .danger{font-size:13px;margin-top:12px;padding:6px 12px}.form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}details summary{cursor:pointer;font-weight:650;padding:4px 0}details[open] summary{margin-bottom:18px}dialog{border:0;border-radius:16px;width:min(620px,calc(100% - 24px));max-height:90dvh;padding:24px;color:var(--ink);box-shadow:0 24px 90px #102c4a40}dialog::backdrop{background:#0d233866}.modalhead{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:10px}.modalhead h2{margin:8px 0 0}.modalhead button{font-size:22px;padding:4px 12px}.modalhint{font-size:14px;padding:12px;background:#edf6f7;border-radius:8px;line-height:1.5}.notice{padding:14px 18px;background:#fff4df;border:1px solid #e8d099;border-radius:10px;margin:16px 0;font-size:14px;line-height:1.5}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 20px;border-radius:10px;z-index:1000;max-width:90%;font-size:14px}footer{font-size:12px;color:var(--muted);line-height:1.7;padding:12px 0 24px}.history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}.history-row p{margin:4px 0;font-size:13px}.history-row button{font-size:13px}.holiday-list{padding-left:18px;font-size:13px;line-height:1.7}.print-only{display:none}.landing{max-width:1120px;padding:28px;margin:auto}.landing header{display:flex;align-items:center;justify-content:space-between}.landing .brand small{color:var(--muted)}.landing .hero{padding:90px 0;max-width:760px}.landing h1{font-size:clamp(38px,6vw,68px);line-height:1.07;margin-bottom:24px}.landing .hero p{font-size:20px;color:var(--muted);max-width:620px}.landing .primary{display:inline-block;text-decoration:none;padding:16px 24px;border-radius:10px}.landing .features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.legal{max-width:760px;padding:30px;margin:auto}.legal h1{margin:30px 0}.legal h2{margin-top:32px}@media(min-width:1500px){.day{min-height:120px}}@media(max-width:1180px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.right-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.right-col .card{margin-bottom:0}.sidebar{width:214px;padding:24px 16px}.workspace{margin-left:214px}main{padding:26px}.brand{font-size:18px}.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.sidebar{position:relative;width:100%;padding:14px 16px;height:auto}.sidebar .brand{font-size:21px}.brand img{width:38px;height:38px}.brand small{font-size:12px}.sidebar nav{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;box-shadow:0 -1px 12px #102c4a10;margin:0;padding:6px 4px max(8px,env(safe-area-inset-bottom));gap:0;border-top:1px solid var(--line)}.sidebar nav button{flex-direction:column;gap:2px;color:#4b6478;padding:6px 2px;font-size:20px;border-radius:8px;min-width:0}.sidebar nav button span{font-size:12px}.sidebar nav button.active{background:#eaf4f5;color:#075f68;box-shadow:none}.sidebar-foot{display:none}.workspace{margin-left:0}.toolbar{height:54px;padding:0 16px;font-size:12px}.toolbar button{font-size:12px;padding:7px 10px;min-height:36px}main{padding:24px 12px 90px}.pagehead{gap:12px;align-items:flex-start;margin-bottom:22px}h1{font-size:26px}.eyebrow{font-size:11px}.period-picker{width:135px;flex-shrink:0}.period-picker input{font-size:13px;padding:8px 5px}.card{padding:18px;border-radius:12px}.calendar-card{padding:16px 8px}.calendar-head{padding:0 4px;margin-bottom:16px}.calendar-head h2{font-size:18px}.arrows button{padding:4px 10px;min-height:38px}.week,.grid{gap:3px}.day{min-height:88px;padding:7px 3px;gap:7px;border-radius:7px}.day .num{font-size:15px}.day .shift{font-size:12px}.day .price{font-size:12px;line-height:1.1;letter-spacing:-.04em}.legend{padding:0 5px;gap:8px;font-size:12px}.right-col{grid-template-columns:1fr 1fr;gap:12px}.right-col .card{padding:16px}.net-card{grid-column:1/-1}.net-card strong{font-size:32px}.stat{flex-wrap:wrap;gap:6px}.rotation-seq{font-size:14px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid{gap:16px}.concept .formgrid{grid-template-columns:1fr 1fr}.concept label:first-child{grid-column:1/-1}.formgrid .wide-mobile{grid-column:1/-1}.form-actions>*{flex:1}.actions button{padding:11px 8px;font-size:13px}.calendar-layout{gap:16px}.history-row{flex-wrap:wrap}.landing .hero{padding:60px 0}.landing .features{grid-template-columns:1fr}.landing header .brand{font-size:16px}.landing header a:last-child{font-size:14px}dialog{padding:20px 16px}.landing{padding:24px 18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{body{background:white}.sidebar,.toolbar,.pagehead,.form-actions,.actions,footer,.no-print,#toast,dialog{display:none!important}.workspace{margin:0}main{padding:0}.card{box-shadow:none;break-inside:avoid}.print-only{display:block}.kpis{grid-template-columns:repeat(4,1fr)}.net-card{background:white;color:black}.net-card p,.net-card small{color:black}}

/* Turno Cuenta v8 */
.accountant-fab{position:fixed;right:24px;bottom:24px;z-index:45;background:var(--ink);color:#fff;border-color:#2f5879;display:flex;align-items:center;gap:9px;box-shadow:0 8px 24px #102c4a35}.accountant-fab img{width:26px;height:26px}.accountant-panel{position:fixed;right:24px;bottom:84px;width:min(420px,calc(100vw - 28px));max-height:min(680px,calc(100dvh - 110px));z-index:46;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px #102c4a40;overflow:hidden}.accountant-head{background:var(--ink);color:#fff;padding:16px 18px;display:flex;justify-content:space-between;align-items:center}.accountant-head strong,.accountant-head small{display:block}.accountant-head small{color:#c4d7e4;font-size:12px;margin-top:4px}.accountant-head button{background:transparent;color:#fff;border-color:#5b7890;padding:4px 11px;font-size:20px}.accountant-messages{padding:14px;max-height:310px;overflow:auto;background:#f6f9fb}.accountant-message{display:flex;gap:9px;margin:0 0 12px}.accountant-avatar img{width:31px;height:31px}.accountant-bubble{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0;flex:1}.accountant-bubble p{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere}.accountant-tools{display:flex;gap:6px;margin-top:7px}.accountant-tools button{min-height:30px;padding:4px 9px;font-size:12px}.accountant-quick{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;padding:12px 14px 0}.accountant-quick button{font-size:12px;padding:8px 6px;min-height:38px}.accountant-upload{margin:12px 14px 0;padding:10px;background:#edf6f7;border-radius:9px;color:var(--ink);font-size:12px}.accountant-upload input{margin-top:6px;padding:7px;font-size:12px}.accountant-form{display:flex;gap:8px;padding:12px 14px}.accountant-form input{flex:1}.accountant-form button{min-height:44px}.accountant-disclaimer{font-size:11px;color:var(--muted);padding:0 14px 14px;margin:0;line-height:1.45}@media(max-width:760px){.accountant-fab{right:12px;bottom:76px}.accountant-panel{right:12px;bottom:128px;max-height:calc(100dvh - 160px)}.accountant-messages{max-height:260px}}
.landing-logo img{width:min(520px,62vw);height:auto;object-fit:contain}.landing-logo{max-width:60%}.rotation-preview{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 2px}.rot-chip{width:32px;height:32px;border-radius:9px;display:inline-grid;place-items:center;font-weight:800}.rot-chip.M{background:#fff1c9;color:#7f5a00}.rot-chip.T{background:#dcecff;color:#0c5fa5}.rot-chip.N{background:#e7e1ff;color:#4f3da0}.rot-chip.F{background:#e8edf1;color:#506170}.demo-card{border:1px solid #b9e3e5;background:linear-gradient(135deg,#f8ffff,#eef7ff)}.receipt-preview{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#f8fafb}.receipt-preview label{margin-bottom:12px}
@media(max-width:760px){.landing-logo{max-width:58%}.landing-logo img{width:100%}.rotation-preview{gap:5px}.rot-chip{width:29px;height:29px}}

/* 10.1: mobile fields and receipt review */
[hidden]{display:none!important}.receipt-row{padding:16px 0;border-bottom:1px solid var(--line);display:grid;gap:12px}.receipt-row .hint{overflow-wrap:anywhere;margin:0}.row>*{min-width:0;overflow-wrap:anywhere}.card,main,label{min-width:0}input[type=file]{max-width:100%}.toolbar{gap:8px}.pagehead>div{min-width:0}.form-actions button{min-width:0}.legal{margin:auto}.notice a{overflow-wrap:anywhere}@media(max-width:430px){.pagehead{flex-wrap:wrap}.pagehead h1{font-size:25px}.period-picker{width:100%}.calendar-head{flex-wrap:wrap}.formgrid{grid-template-columns:1fr}.right-col{grid-template-columns:1fr}.concept .formgrid{grid-template-columns:1fr}.calendar-head h2{font-size:18px}.row.total{font-size:17px}}
/* Señal visual para los meses con pago habitual de aguinaldo. */
.sac-calendar{background:linear-gradient(180deg,#f4fbfc 0%,#fff 42%)}
.sac-badge{display:inline-block;margin-left:8px;padding:4px 8px;border-radius:999px;background:#d9f0f1;color:#17636a;font-size:.55em;font-weight:700;vertical-align:middle}
.reset-dialog{max-width:760px}.reset-dialog .form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.reset-dialog .danger{background:#b83a43;color:#fff}
.manual-intro{background:linear-gradient(135deg,#f4fbfc,#fff)}.manual-download{display:inline-block;text-decoration:none;border-radius:9px;padding:11px 16px;background:var(--ink);color:#fff;font-weight:700}.manual-block{max-width:900px}.manual-title{display:flex;gap:12px;align-items:flex-start}.manual-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#e2f3f4;color:#087e8b;font-size:24px;flex:0 0 auto}.manual-title h2{margin-bottom:16px}.manual-shot{border:1px solid #b8d7df;border-radius:12px;overflow:hidden;background:#f7fbfc;margin:4px 0 18px;box-shadow:0 8px 20px #102c4a12}.manual-shot-head{background:var(--ink);color:#fff;padding:11px 14px;font-size:13px;font-weight:700;display:flex;justify-content:space-between;gap:12px}.manual-shot-head span{color:#9ce8ec;font-weight:600}.manual-shot-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#fff;color:var(--ink);font-size:18px}.manual-shot-line i{font-style:normal;color:#c0393c;font-size:25px}.manual-shot-body{padding:16px 18px;border-top:1px dashed #b8d7df;color:var(--muted);font-size:14px}.manual-block ol{margin:0;padding-left:24px;color:var(--ink);line-height:1.8}.manual-block li{padding-left:4px}
.manual-detail{max-width:900px}.manual-detail details{border-top:1px solid var(--line);padding:14px 0}.manual-detail details:last-child{border-bottom:1px solid var(--line)}.manual-detail summary{font-size:16px;color:var(--ink)}.manual-detail ol{padding-left:24px;line-height:1.8}.manual-detail p{margin:10px 0}
.comparison-grid>div{display:grid;grid-template-columns:1.4fr repeat(3,minmax(100px,1fr));gap:0;border-top:1px solid var(--line,#d9e2ea)}.comparison-grid b,.comparison-grid span{padding:10px 8px;border-bottom:1px solid var(--line,#d9e2ea)}.comparison-grid b{font-size:.9rem;color:var(--ink,#102c4a)}@media(max-width:600px){.comparison-grid>div{grid-template-columns:1fr 1fr}.comparison-grid b,.comparison-grid span{font-size:.82rem;overflow-wrap:anywhere}}
 .accountant-guide{display:grid;gap:6px;padding:12px 14px;background:#eef5f8;border-bottom:1px solid var(--line)}.accountant-guide strong{font-size:13px;color:var(--ink)}.accountant-guide button{text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--ink);font-size:12px}.accountant-user{justify-content:flex-end}.accountant-user .accountant-bubble{background:#dcecf7;border-color:#b4d2e4;max-width:86%}
.accountant-panel{display:flex;flex-direction:column;max-height:min(720px,calc(100dvh - 96px))}.accountant-guide{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px}.accountant-guide strong{flex:0 0 100%;font-size:12px}.accountant-guide button{flex:1 1 calc(20% - 6px);min-width:72px;text-align:center;white-space:nowrap;padding:7px 6px;border-radius:999px;font-size:11px}.accountant-messages{flex:1;min-height:120px;max-height:none;overflow:auto}.accountant-form{flex:0 0 auto;align-items:stretch;background:#fff;border-top:1px solid var(--line);padding:10px 12px}.accountant-form input{min-width:0}.accountant-followup{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;background:#f6f9fb;color:var(--muted);font-size:11px}.accountant-followup button{border:0;background:transparent;color:var(--ink);font-weight:700;padding:4px}.accountant-disclaimer{padding-bottom:10px}@media(max-width:760px){.accountant-panel{right:8px;left:8px;bottom:88px;width:auto;max-height:calc(100dvh - 104px);border-radius:14px}.accountant-guide button{flex:1 1 calc(33.333% - 6px);min-width:0}.accountant-messages{min-height:100px}.accountant-form{padding:8px}.accountant-form input{font-size:16px}.accountant-form button{min-width:70px}}
@media(max-width:760px){.form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}.form-actions>*{min-width:0;width:100%;max-width:100%;margin:0;white-space:normal;line-height:1.2;min-height:52px;padding:9px 7px;overflow-wrap:anywhere}.form-actions button{display:flex;align-items:center;justify-content:center;text-align:center}.form-actions>*:last-child:nth-child(3){grid-column:1/-1}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.actions>*{min-width:0;width:100%}.actions button{white-space:normal;line-height:1.2}.concept .form-actions{grid-template-columns:1fr}.concept .form-actions>*{grid-column:auto}.toolbar{overflow:visible}body{overflow-x:hidden}main,.workspace,#content{min-width:0;max-width:100%;overflow-x:hidden}}
