
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#172c42;background:#f7f9fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#075ac5;text-decoration:none}a:hover{text-decoration:underline}header{background:#fff;border-bottom:1px solid #e0e7f0;position:sticky;top:0;z-index:5}.nav{max-width:1140px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 22px;flex-wrap:wrap}.logo{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:850;color:#193653;letter-spacing:-.04em}.logo b{display:grid;place-items:center;width:38px;height:38px;background:#0d61ca;color:white;border-radius:11px;font-size:19px}.links{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;font-weight:650}.links a{color:#334b62}.links a[aria-current=page]{color:#075ac5}main{max-width:1140px;margin:auto;padding:30px 22px 70px}.hero{background:linear-gradient(115deg,#0b3669,#0969bd);color:#fff;border-radius:24px;padding:42px;margin:0 0 25px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:750;color:#b9e0ff}h1{font-size:clamp(30px,4vw,46px);line-height:1.14;letter-spacing:-.045em;margin:10px 0 15px}h2{letter-spacing:-.025em;font-size:25px}h3{font-size:18px}.hero p{font-size:17px;max-width:720px;line-height:1.7;color:#e8f3ff}.hero .pill{display:inline-block;border:1px solid #78b9ed;border-radius:30px;padding:8px 12px;color:#eff8ff;font-size:13px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:25px;margin:18px 0;box-shadow:0 8px 30px #1d38560a}.card h2{font-size:21px;margin:0 0 16px}.controls,.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750}.field input{min-width:0;padding:12px;border:1px solid #bfccdc;border-radius:10px;font:inherit;font-weight:500;color:#172c42;background:white}.field input:focus,td input:focus{outline:2px solid #99cdfd}.hint{font-size:12px;color:#65798d;font-weight:450}.flex{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}button{border:0;background:#075fcb;color:#fff;padding:12px 16px;border-radius:9px;cursor:pointer;font-weight:700}button:hover{filter:brightness(.94)}button.secondary{background:#e8f1ff;color:#164d93}button.remove{background:#fff1f2;color:#b42343;padding:9px 12px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:13px 9px;border-bottom:1px solid #e5edf4;font-size:13px}th{color:#577089;font-size:12px}td input{font:inherit;padding:10px;border:1px solid #ced8e4;border-radius:9px;max-width:175px;width:100%;color:#172c42}td.name input{min-width:135px}.number{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}.metric{background:#f3f7fd;border-radius:14px;padding:18px}.metric .label{font-size:12px;color:#60748a}.metric .value{font-size:25px;font-weight:850;letter-spacing:-.035em;margin-top:6px}.formula{font-size:13px;color:#56718a;line-height:1.6}.actions{display:flex;gap:9px;flex-wrap:wrap}.empty{text-align:center;padding:20px;color:#60748a}.notice{color:#875100;background:#fff5d9;border-radius:9px;padding:12px;margin-top:12px}.footer-note,.muted{font-size:13px;color:#65798d;line-height:1.7}.article{max-width:850px;margin:auto}.article p,.article li{line-height:1.8;color:#40536a;font-size:16px}.article h2{margin-top:32px}.article h3{margin-top:25px}.article ul,.article ol{padding-left:25px}.article .card{padding:32px}.related{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.related a{display:block;background:white;border:1px solid #e2e8f0;border-radius:14px;padding:21px;color:#172c42}.related small{color:#0a65ba;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.related strong{display:block;font-size:17px;margin:9px 0}.related span{color:#617489;font-size:13px;line-height:1.5}footer{background:#122c47;color:#dbe8f5;padding:32px 22px}footer .foot{max-width:1140px;margin:auto;display:flex;justify-content:space-between;gap:25px;flex-wrap:wrap}footer a{color:#dbe8f5}footer .f-links{display:flex;gap:15px;flex-wrap:wrap;max-width:650px;font-size:13px}footer p{font-size:13px;color:#b6c9dc}.subtitle{color:#61748a}.table-example{overflow-x:auto}.table-example table{min-width:480px}.callout{border-left:4px solid #0b65bf;background:#eff6ff;padding:16px 20px;border-radius:5px;color:#2a4c6c;line-height:1.7}code{background:#edf3f9;padding:3px 5px;border-radius:4px}a:focus-visible,button:focus-visible{outline:3px solid #ffab3d;outline-offset:2px}@media(max-width:720px){.hero{padding:28px 23px}.controls,.summary,.related{grid-template-columns:1fr}.card{padding:19px}.links{gap:12px}.nav{padding:14px}h2{font-size:22px}}@media print{header,footer,.actions,button,.related{display:none!important}.hero{background:white;color:black;padding:0}.hero p{color:#444}.card{box-shadow:none}body{background:white}}

/* Resultados claramente visibles en escritorio y movil */
.results-head{background:linear-gradient(110deg,#063b82,#0871cd);color:#fff;border-radius:16px;padding:22px 24px;margin:20px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.results-head span{display:block;font-size:12px;font-weight:800;letter-spacing:.075em;opacity:.88}
.results-head strong{display:block;font-size:clamp(30px,5vw,43px);line-height:1.2;margin:8px 0;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.results-head small{display:block;opacity:.85;font-size:13px}
.results-head a{color:#fff;text-decoration:underline;font-weight:700}
.employee-results{display:grid;gap:10px;margin:14px 0}
.employee-result{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce7f3;border-radius:12px;padding:14px 16px;background:#f8fbff}
.employee-result b,.employee-result small{display:block;overflow-wrap:anywhere}
.employee-result small{font-size:12px;color:#5c6c80;margin-top:4px}
.employee-result strong{color:#075fcb;font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:520px){.results-head{padding:20px}.employee-result{align-items:flex-start}.employee-result strong{font-size:17px}.employee-result small{max-width:175px}}

/* Porcentaje individual por trabajador */
.tablewrap .individual-discount{width:112px;min-width:85px;text-align:center;font-variant-numeric:tabular-nums}
.tablewrap th{white-space:nowrap}
.tablewrap{overflow-x:auto}
@media(max-width:720px){.tablewrap .individual-discount{width:100px}}

/* Porcentaje individual siempre visible, incluso sin scroll horizontal */
.employee-subtitle{margin:18px 0 4px;font-size:19px;color:#10345b}
.employee-result{align-items:center;gap:18px}
.employee-result>div:first-child{flex:1;min-width:0}
.employee-percent-label{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px;font-weight:700;font-size:13px;color:#17375a}
.employee-percent-label input{display:block;width:110px;max-width:100%;padding:10px 12px;border:2px solid #196ac5;border-radius:10px;background:#fff;font-size:16px;color:#0b2545}
.employee-percent-label input:focus{outline:3px solid #b8d9ff;outline-offset:1px}
@media(max-width:620px){.employee-result{align-items:flex-start;flex-direction:column}.employee-result strong{font-size:23px}}
