:root{--accent:#1557cc;--bg:#f3f6fb;--ink:#172941;--soft:#e9f0ff;--surface:#ffffff;--muted:#5f6b79;--line:#dce2e8;--on:#ffffff;--success:#246346;--successbg:#e9f5ee;--danger:#b32332}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 "Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{min-height:46px;border:0;border-radius:12px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,4.4vw,62px);line-height:1.08;letter-spacing:-2px}h2{font-size:26px;letter-spacing:-.6px}h3{font-size:18px}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;text-transform:uppercase}.logo{font-size:29px;font-weight:800;letter-spacing:-1.5px;display:flex;align-items:center;gap:10px}.logo i{font-style:normal;font-size:18px;background:var(--accent);color:var(--on);width:36px;height:36px;border-radius:11px;display:grid;place-items:center}.logo span{color:var(--accent)}.primary{background:var(--accent);color:var(--on)}.secondary{background:var(--soft);color:var(--ink)}.textbtn{background:transparent;color:var(--muted)}.full{width:100%}[hidden]{display:none!important}.login{min-height:100svh;display:grid;grid-template-columns:1.15fr 1fr;padding:24px;gap:24px}.story{position:relative;overflow:hidden;border-radius:28px;padding:48px;background:var(--soft);display:flex;flex-direction:column;justify-content:space-between;min-height:650px}.story h1{white-space:pre-line;max-width:580px}.story p{max-width:380px}.story-copy{position:relative;z-index:1;margin:54px 0}.art{height:170px;position:relative;width:100%;margin:25px 0}.art div{position:absolute;width:160px;height:160px;border:22px solid var(--accent);border-radius:50%;opacity:.3;left:28%;top:0}.art div:nth-child(2){left:48%;top:25px;width:115px;height:115px;opacity:.6}.art div:nth-child(3){left:65%;top:60px;width:65px;height:65px;border-width:12px;opacity:1}.story-foot{display:flex;justify-content:space-between;font-size:12px;gap:15px}.login-side{display:flex;align-items:center;justify-content:center;padding:32px}.login-card{width:100%;max-width:390px}.login-card h2{font-size:34px;margin-bottom:8px}.pill{display:inline-flex;gap:7px;align-items:center;padding:6px 11px;border-radius:99px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:600;margin-bottom:22px}.dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}label{display:block;font-size:14px;font-weight:600;margin:18px 0 7px}input,select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);padding:11px 13px;min-width:0}.password{display:flex;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:11px}.password input{border:0;background:transparent}.password button{font-size:12px;background:transparent;color:var(--ink);padding:8px}.login-note{font-size:12px;margin-top:24px;display:flex;gap:9px}.demo{font-size:12px;padding:14px;border:1px dashed var(--line);border-radius:12px;margin:24px 0}.error{color:var(--danger);font-size:13px;margin:10px 0}.app{min-height:100svh;display:grid;grid-template-columns:250px 1fr}.sidebar{padding:32px 22px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:35px}.nav{display:grid;gap:8px}.nav button{justify-content:flex-start;background:transparent;color:var(--muted);text-align:left}.nav button.active{background:var(--soft);color:var(--ink)}.side-foot{margin-top:auto;font-size:12px}.main{min-width:0;padding:30px clamp(20px,4vw,60px)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:38px}.profile{display:flex;align-items:center;gap:12px}.avatar{width:42px;height:42px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-weight:700}.profile small{display:block}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.heading h1{font-size:clamp(29px,3vw,42px);letter-spacing:-1.2px;margin-bottom:10px}.heading p{margin:0}.cards{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;margin-bottom:26px}.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px}.balance{background:var(--accent);color:var(--on);border-color:transparent;position:relative;overflow:hidden}.balance .muted{color:inherit;opacity:.8}.big{font-size:52px;font-weight:700;letter-spacing:-2px;line-height:1.1;margin:20px 0 10px}.big small{font-size:15px;letter-spacing:0;font-weight:400;color:inherit}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.badge{border-radius:99px;padding:5px 10px;font-size:12px;background:var(--soft);color:var(--ink);display:inline-block}.progress{height:6px;background:var(--line);border-radius:99px;margin:18px 0 8px}.progress span{display:block;width:40%;height:100%;background:var(--accent);border-radius:99px}.grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-title h2{font-size:20px;margin:0}.request,.receipt{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;border-top:1px solid var(--line)}.request p,.receipt p{margin:0}.request small,.receipt small{display:block}.status{font-size:12px;color:var(--success);background:var(--successbg);padding:6px 10px;border-radius:99px;white-space:nowrap}.pending{color:var(--ink);background:var(--soft)}.tip{background:var(--soft);border:0}.tip h3{margin-top:18px;font-size:24px;line-height:1.2}.tip p{font-size:14px}.mini-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:20px;text-align:center;font-size:12px}.mini-cal span{padding:6px 0;border-radius:7px}.mini-cal .chosen{background:var(--accent);color:var(--on)}.toolbar{display:flex;gap:14px;align-items:end;margin-bottom:22px}.toolbar label{margin:0 0 6px}.toolbar>div{flex:1;max-width:240px}.receipt-main{display:flex;align-items:center;gap:15px}.docicon{width:46px;height:52px;display:grid;place-items:center;background:var(--soft);border-radius:12px;color:var(--accent)}.receipt-actions{display:flex;gap:8px;align-items:center}.receipt .amount{font-weight:700;margin-right:15px;white-space:nowrap}.footnote{font-size:12px;margin-top:26px}.notice{border-left:3px solid var(--accent);padding:12px 16px;font-size:13px;margin-top:22px;background:var(--soft)}dialog{width:min(550px,calc(100% - 32px));border:1px solid var(--line);border-radius:22px;padding:28px;background:var(--surface);color:var(--ink);max-height:90svh;overflow:auto}dialog::backdrop{background:#09152999;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head h2{margin:0}.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.detail-line{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);gap:18px}.total{font-size:21px;font-weight:700}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:15px 22px;border-radius:14px;box-shadow:0 8px 30px #0003;z-index:10;width:max-content;max-width:calc(100% - 32px);font-size:14px}.editorial h1,.editorial .story h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1.5px}.editorial .story{border-radius:3px;background:#dfE6d7}.editorial .card,.editorial button,.editorial input,.editorial .password{border-radius:6px}.editorial .app{display:block}.editorial .sidebar{flex-direction:row;align-items:center;padding:18px 5%;gap:40px;border-bottom:1px solid var(--line)}.editorial .nav{display:flex;margin-left:auto}.editorial .side-foot{display:none}.editorial .main{max-width:1350px;margin:auto}.editorial .balance{background:#dfe6d7;color:#293a30}.editorial .art div{border-radius:5px;transform:rotate(25deg)}.dark{color-scheme:dark}.dark .story{background:radial-gradient(ellipse at 50% 80%,#225346,#14232f 70%)}.dark .art div{box-shadow:0 0 50px #94edc933}.dark .balance{background:linear-gradient(120deg,#94edc9,#65c5c6)}.dark .card{box-shadow:0 12px 40px #0002}.dark .story h1{font-weight:500}.mobile .login{grid-template-columns:1fr 1fr;max-width:1250px;margin:auto}.mobile .story{background:linear-gradient(145deg,#eee8ff,#f9e7ed)}.mobile .art div{border-radius:40px;transform:rotate(-16deg)}.mobile .app{display:block;max-width:1200px;margin:auto;padding-bottom:100px}.mobile .sidebar{border:0;background:transparent;padding:24px 40px;flex-direction:row;align-items:center;gap:15px}.mobile .nav{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:flex;background:var(--surface);padding:8px;border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 35px #37245c25;z-index:5;max-width:calc(100% - 24px);width:450px}.mobile .nav button{flex:1;justify-content:center;font-size:13px}.mobile .side-foot{margin:0 0 0 auto}.mobile .main{padding-top:0}.mobile .cards{grid-template-columns:1.3fr 1fr 1fr}.mobile .card{border-radius:28px}.mobile .balance{background:linear-gradient(135deg,#6745cb,#976ade)}.mobile .big{font-size:56px}
@media(min-width:1600px){.main{max-width:1500px;width:100%;margin:auto}.login{max-width:1600px;margin:auto}}
@media(max-width:1000px){.login{grid-template-columns:1fr 1fr;padding:16px;gap:8px}.story{padding:30px;min-height:600px}.login-side{padding:24px}.app{grid-template-columns:210px 1fr}.sidebar{padding:25px 16px}.cards,.mobile .cards{grid-template-columns:1fr 1fr}.balance{grid-column:1/-1}.grid{grid-template-columns:1fr}.editorial .sidebar{gap:16px}.heading{align-items:flex-start}.receipt-actions .amount{display:none}}
@media(max-width:700px){.login,.mobile .login{grid-template-columns:1fr;padding:0;gap:0}.story{min-height:auto;border-radius:0;padding:24px}.story-copy{margin:30px 0 10px}.story h1{font-size:38px;letter-spacing:-1px}.story p{font-size:14px;margin-bottom:0}.art,.story-foot{display:none}.login-side{padding:30px 24px 40px}.login-card{max-width:460px}.login-card h2{font-size:28px}.app{display:block;padding-bottom:95px}.sidebar,.editorial .sidebar,.mobile .sidebar{padding:20px;flex-direction:row;background:var(--surface);border-bottom:1px solid var(--line)}.sidebar>.eyebrow,.side-foot,.mobile .side-foot{display:none}.nav,.editorial .nav,.mobile .nav{position:fixed;bottom:0;left:0;transform:none;width:100%;max-width:100%;display:flex;gap:5px;background:var(--surface);padding:10px 10px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:5;border-radius:0;margin:0}.nav button,.mobile .nav button{flex:1;justify-content:center;font-size:12px;padding:10px 6px}.main,.mobile .main{padding:22px 18px}.topbar{margin-bottom:26px;font-size:12px}.profile{gap:7px}.profile strong{font-size:13px}.avatar{width:34px;height:34px}.heading{display:block}.heading .primary{margin-top:18px;width:100%}.cards,.mobile .cards{gap:12px}.card{padding:20px;border-radius:18px}.big,.mobile .big{font-size:42px}.card h3{font-size:15px}.card small{font-size:11px}.request{align-items:flex-start;font-size:14px}.receipt{align-items:flex-start;flex-direction:column;gap:14px}.receipt-actions{width:100%;justify-content:flex-end}.receipt-actions button{flex:1}.receipt-actions .amount{display:block;font-size:14px;margin-right:auto}.date-grid{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1}.editorial .story{border-radius:0}.topbar>.eyebrow{letter-spacing:1px}.toolbar{gap:10px}.toolbar>div{max-width:none}.footnote{line-height:1.6}}
@media(prefers-reduced-motion:no-preference){button{transition:filter .2s,transform .2s}button:hover{filter:brightness(.96);transform:translateY(-1px)}.card{animation:appear .35s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

.link-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border-radius:12px;padding:12px 18px;font-weight:600}.nav a{text-decoration:none;color:var(--muted);display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:12px;min-height:46px}.nav a.active{background:var(--soft);color:var(--ink)}.heading a{flex-shrink:0}.flash{padding:14px 18px;border-radius:12px;background:var(--soft);margin-bottom:22px}.topbar form{margin:0}.receipt-actions form{display:contents}.detail-panel{max-width:650px;margin:auto}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:700px){.nav a{flex:1;justify-content:center;font-size:12px;padding:10px 6px}.heading .link-button{margin-top:18px;width:100%}.receipt-actions .link-button{flex:1}.profile .textbtn{padding:10px}.date-grid{grid-template-columns:1fr}}
.mock-style-1{margin-top:20px}
.mock-style-2{margin-bottom:12px}
.mock-style-3{font-size:30px;letter-spacing:-1px}
.mock-style-4{font-size:14px;margin-bottom:12px}
.mock-style-5{margin-top:22px}
.mock-style-6{margin-top:12px}
.mock-style-7{font-size:42px}
.mock-style-8{font-size:30px}
.progress .progress-0{width:0%}
.progress .progress-1{width:1%}
.progress .progress-2{width:2%}
.progress .progress-3{width:3%}
.progress .progress-4{width:4%}
.progress .progress-5{width:5%}
.progress .progress-6{width:6%}
.progress .progress-7{width:7%}
.progress .progress-8{width:8%}
.progress .progress-9{width:9%}
.progress .progress-10{width:10%}
.progress .progress-11{width:11%}
.progress .progress-12{width:12%}
.progress .progress-13{width:13%}
.progress .progress-14{width:14%}
.progress .progress-15{width:15%}
.progress .progress-16{width:16%}
.progress .progress-17{width:17%}
.progress .progress-18{width:18%}
.progress .progress-19{width:19%}
.progress .progress-20{width:20%}
.progress .progress-21{width:21%}
.progress .progress-22{width:22%}
.progress .progress-23{width:23%}
.progress .progress-24{width:24%}
.progress .progress-25{width:25%}
.progress .progress-26{width:26%}
.progress .progress-27{width:27%}
.progress .progress-28{width:28%}
.progress .progress-29{width:29%}
.progress .progress-30{width:30%}
.progress .progress-31{width:31%}
.progress .progress-32{width:32%}
.progress .progress-33{width:33%}
.progress .progress-34{width:34%}
.progress .progress-35{width:35%}
.progress .progress-36{width:36%}
.progress .progress-37{width:37%}
.progress .progress-38{width:38%}
.progress .progress-39{width:39%}
.progress .progress-40{width:40%}
.progress .progress-41{width:41%}
.progress .progress-42{width:42%}
.progress .progress-43{width:43%}
.progress .progress-44{width:44%}
.progress .progress-45{width:45%}
.progress .progress-46{width:46%}
.progress .progress-47{width:47%}
.progress .progress-48{width:48%}
.progress .progress-49{width:49%}
.progress .progress-50{width:50%}
.progress .progress-51{width:51%}
.progress .progress-52{width:52%}
.progress .progress-53{width:53%}
.progress .progress-54{width:54%}
.progress .progress-55{width:55%}
.progress .progress-56{width:56%}
.progress .progress-57{width:57%}
.progress .progress-58{width:58%}
.progress .progress-59{width:59%}
.progress .progress-60{width:60%}
.progress .progress-61{width:61%}
.progress .progress-62{width:62%}
.progress .progress-63{width:63%}
.progress .progress-64{width:64%}
.progress .progress-65{width:65%}
.progress .progress-66{width:66%}
.progress .progress-67{width:67%}
.progress .progress-68{width:68%}
.progress .progress-69{width:69%}
.progress .progress-70{width:70%}
.progress .progress-71{width:71%}
.progress .progress-72{width:72%}
.progress .progress-73{width:73%}
.progress .progress-74{width:74%}
.progress .progress-75{width:75%}
.progress .progress-76{width:76%}
.progress .progress-77{width:77%}
.progress .progress-78{width:78%}
.progress .progress-79{width:79%}
.progress .progress-80{width:80%}
.progress .progress-81{width:81%}
.progress .progress-82{width:82%}
.progress .progress-83{width:83%}
.progress .progress-84{width:84%}
.progress .progress-85{width:85%}
.progress .progress-86{width:86%}
.progress .progress-87{width:87%}
.progress .progress-88{width:88%}
.progress .progress-89{width:89%}
.progress .progress-90{width:90%}
.progress .progress-91{width:91%}
.progress .progress-92{width:92%}
.progress .progress-93{width:93%}
.progress .progress-94{width:94%}
.progress .progress-95{width:95%}
.progress .progress-96{width:96%}
.progress .progress-97{width:97%}
.progress .progress-98{width:98%}
.progress .progress-99{width:99%}
.progress .progress-100{width:100%}
/* Logo corporativo: ocupa el espacio de los círculos, también visible en móvil. */
.company-logo{height:200px;width:100%;margin:25px 0;display:flex;align-items:center;justify-content:center}.company-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.company-logo-fallback{display:flex;align-items:center;gap:16px;color:var(--ink);font-size:22px;font-weight:600}.company-logo-mark{display:grid;place-items:center;width:72px;height:72px;border-radius:18px;background:var(--accent);color:var(--on);font-size:38px}.company-logo [hidden]{display:none!important}.demo-data-note{font-size:12px;color:var(--muted);margin-top:18px}@media(max-width:700px){.company-logo{height:110px;margin:22px 0 8px}.company-logo-mark{width:56px;height:56px;font-size:28px}.company-logo-fallback{font-size:18px}}

/* Logo local Silva Lum: archivo original completo, sin recorte ni deformación. */
.company-logo{height:220px;margin:25px 0;display:flex;align-items:center;justify-content:center}.company-logo img{display:block;max-width:100%;max-height:220px;width:auto;height:auto;object-fit:contain}@media(max-width:700px){.company-logo{height:140px;margin:22px 0 8px}.company-logo img{max-height:140px}}

.access-key-help{font-size:12px;line-height:1.5;color:var(--muted);margin:7px 0 0}

.vacations-table-wrap{width:100%;overflow-x:auto}.vacations-table{border-collapse:collapse;width:100%;font-size:14px}.vacations-table th{text-align:left;color:var(--muted);font-size:12px;font-weight:600;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.vacations-table td{padding:17px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.more-vacations{margin-top:18px;border-top:1px solid var(--line);padding-top:12px;font-size:13px}.more-vacations summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.more-vacations p{margin-top:12px}.balance-empty{font-size:13px;margin-top:14px}button:disabled{cursor:not-allowed;opacity:.55}button:disabled:hover{transform:none}.vacations-table .status{white-space:nowrap}

#vacations .grid > .card{min-width:0}

.request-trigger{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 18px;border-radius:12px;font-weight:700;text-decoration:none;box-sizing:border-box}

.receipts-table td{vertical-align:middle}.receipts-table td:nth-last-child(-n+3) .link-button,.receipts-table td:nth-last-child(-n+3) button{margin:3px 0;display:inline-block}.receipts-table button:disabled{opacity:.45;cursor:not-allowed}.receipts-table td:nth-child(3){min-width:180px}

#loanRequestDialog{width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}#loanRequestForm input[readonly]{background:var(--soft)}#loanReason{display:block;width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--line,#d8dfeb);border-radius:11px;font:inherit;color:var(--ink);resize:vertical}.loans-table td:nth-child(4){min-width:180px;white-space:normal}
@media(max-width:600px){#loanRequestForm .date-grid{grid-template-columns:1fr}.nav{overflow-x:auto}.nav a{flex:0 0 auto}}
