:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#23334a;background:#f5f8fb;font-synthesis:none;-webkit-tap-highlight-color:transparent;--navy:#203450;--muted:#728197;--blue:#3466d9;--mint:#e4f6ef;--green:#16745b;--border:#e4eaf1;--shadow:0 12px 35px rgba(27,53,85,.055)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;scroll-behavior:smooth}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b9d5ff;outline-offset:2px}a{color:#2864c8}svg{width:20px;height:20px;flex-shrink:0}p{line-height:1.55}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.03em}h1{font-size:clamp(1.6rem,5vw,2.05rem)}h2{font-size:1.3rem}h3{font-size:1.05rem}small{font-size:.78rem}.muted{color:var(--muted)}.tiny{font-size:.77rem}.eyebrow{text-transform:uppercase;font-size:.69rem;letter-spacing:.13em;color:var(--green);font-weight:800}.bold{font-weight:750}.section{margin:26px 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.section-heading h2{margin:0}.container{max-width:1120px;margin:0 auto;padding:24px 24px 100px}.topbar{max-width:1120px;margin:0 auto;padding:22px 24px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.identity{display:flex;align-items:center;gap:12px;min-width:0}.identity-title{font-size:1.05rem;font-weight:850;color:var(--navy);line-height:1.2}.identity-sub{font-size:.79rem;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#406fd8,#6e9def);box-shadow:0 6px 15px rgba(52,102,217,.19);color:white;flex-shrink:0}.brand-mark svg{width:29px;height:29px}.head-actions{display:flex;gap:8px;align-items:center}.icon-button{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid var(--border);background:#fff;border-radius:13px;color:#516178}.icon-button:hover,.secondary:hover{background:#f4f8ff}.desktop-nav{display:flex;gap:7px;max-width:1120px;margin:20px auto 0;padding:0 24px;border-bottom:1px solid var(--border)}.nav-item{border:0;background:transparent;color:#79869b;display:flex;align-items:center;gap:8px;padding:14px 17px;border-bottom:3px solid transparent;font-weight:700;font-size:.9rem;white-space:nowrap}.nav-item.active{color:#3466d9;border-color:#3466d9}.bottom-nav{display:none}.btn{border:0;border-radius:13px;min-height:44px;padding:11px 17px;font-size:.89rem;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;transition:transform .12s,background .12s}.btn:active{transform:scale(.985)}.btn svg{width:18px;height:18px}.primary{background:#3768dc;color:white;box-shadow:0 5px 14px rgba(55,104,220,.18)}.primary:hover{background:#2756bd}.secondary{background:white;color:#36516e;border:1px solid #dfe7f0}.soft{background:#eef4ff;color:#315bbb}.danger{background:#fff0f0;color:#bc3434;border:1px solid #f3d5d5}.text-btn{border:0;background:transparent;color:#3266cd;font-weight:750;padding:8px}.btn-mini{border-radius:10px;padding:8px 10px;min-height:35px;font-size:.78rem}.full{width:100%}.button-row{display:flex;flex-wrap:wrap;gap:9px}.card{background:#fff;border:1px solid #e8edf3;border-radius:21px;box-shadow:var(--shadow);padding:23px}.hero{border-radius:26px;padding:30px 33px;background:linear-gradient(115deg,#e7f8ef,#eaf4fc 76%);display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px;overflow:hidden;border:1px solid #e0ede9}.hero h1{max-width:570px;color:#223850;margin-bottom:9px;line-height:1.15}.hero p{color:#61758a;max-width:650px;font-size:.92rem;margin-bottom:20px}.hero-deco{width:116px;height:116px;border-radius:40px;background:rgba(255,255,255,.58);display:grid;place-items:center;transform:rotate(-12deg)}.hero-deco svg{width:70px;height:70px;transform:rotate(12deg);color:#3d7e86}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}.stat{display:flex;gap:14px;align-items:center}.stat-icon{width:47px;height:47px;border-radius:14px;display:grid;place-items:center;background:#eff5ff;color:#3869d9}.stat:nth-child(2) .stat-icon{background:#fff4e8;color:#c67e28}.stat:nth-child(3) .stat-icon{background:#eaf8f1;color:#268365}.stat-value{font-size:1.65rem;color:var(--navy);font-weight:850;line-height:1.05}.stat-label{color:#7c8a9d;font-size:.77rem;margin-top:5px}.two-col{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.stack{display:flex;flex-direction:column;gap:11px}.list-row{padding:14px 0;border-bottom:1px solid #edf1f5;display:flex;gap:13px;align-items:flex-start}.list-row:first-child{padding-top:0}.list-row:last-child{border-bottom:0;padding-bottom:0}.date-bubble{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:48px;width:48px;height:51px;border-radius:13px;background:#eef4ff;color:#3566cf}.date-bubble b{font-size:1.12rem;line-height:1.1}.date-bubble span{font-size:.64rem;text-transform:uppercase;font-weight:800}.row-main{flex:1;min-width:0}.row-main h3{margin:2px 0 4px;font-size:.91rem;line-height:1.3}.row-main p{font-size:.78rem;color:#738399;margin:0}.row-actions{display:flex;align-items:center;gap:6px}.tag{display:inline-flex;align-items:center;border-radius:100px;padding:5px 10px;font-size:.7rem;font-weight:760;white-space:nowrap}.tag.pending{background:#fff3df;color:#a16c13}.tag.done{background:#e4f5eb;color:#19775a}.tag.rescheduled{background:#eaf0ff;color:#365bb6}.tag.blocked{background:#fff0f0;color:#bd5050}.tag.ok{background:#e6f5ef;color:#20785b}.empty{padding:32px 16px;text-align:center;color:#7b8b9f;background:#fbfcfe;border:1px dashed #d9e2ec;border-radius:15px}.empty svg{width:34px;height:34px;color:#a6bad5;margin-bottom:9px}.empty h3{margin:0 0 5px;color:#465d73}.empty p{font-size:.85rem;max-width:310px;margin:0 auto 12px}.subtle-note{border-radius:14px;background:#f3f7fc;padding:13px 15px;color:#61778e;font-size:.79rem;line-height:1.45}.warning-note{background:#fff8e8;color:#846423;border:1px solid #f4e6bf}.member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.member-card{display:flex;flex-direction:column;gap:16px}.member-head{display:flex;align-items:center;gap:13px}.avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#e7eeff;color:#365dc1;font-weight:850;font-size:1.13rem;flex-shrink:0}.member-card:nth-child(3n + 2) .avatar{background:#e5f7ee;color:#288263}.member-card:nth-child(3n) .avatar{background:#f3eaff;color:#7753ad}.member-head h3{margin:0 0 3px;font-size:1.01rem}.member-head p{margin:0;font-size:.8rem;color:#8390a1}.member-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px}.page-heading h1{margin-bottom:5px}.page-heading p{margin-bottom:0;color:#75869a;font-size:.86rem}.controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.controls select{max-width:240px}.form-label{display:block;font-size:.78rem;font-weight:770;color:#4b5e72;margin-bottom:7px}.field{margin-bottom:16px}.input{width:100%;border:1px solid #dbe4ef;border-radius:11px;background:#fff;padding:11px 12px;min-height:45px;color:#23334a;outline:0}.input:focus{border-color:#5b89e8;box-shadow:0 0 0 3px #dfebff}textarea.input{min-height:90px;resize:vertical}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-help{margin-top:6px;font-size:.73rem;color:#8794a6;line-height:1.5}.checkline{display:flex;align-items:flex-start;gap:11px;font-size:.83rem;line-height:1.4;cursor:pointer}.checkline input{width:19px;height:19px;accent-color:#3768dc;margin:1px 0 0;flex-shrink:0}.divider{border:0;border-top:1px solid var(--border);margin:18px 0}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,.7fr);gap:18px}.calendar-month{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.calendar-month h2{text-transform:capitalize;font-size:1.17rem;margin:0}.weekgrid,.daysgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;color:#8191a4;font-size:.73rem;font-weight:760;padding-bottom:11px}.day{min-height:67px;border:1px solid transparent;border-radius:12px;background:transparent;color:#35445a;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding-top:10px;font-weight:720}.day:hover{background:#f2f6fc}.day.out{opacity:.28}.day.today{border-color:#b1c8ed}.day.selected{background:#3468dc;color:white}.dots{display:flex;justify-content:center;gap:3px}.dot{width:5px;height:5px;border-radius:50%;background:#eb9a42}.dot.exam{background:#3fba94}.day.selected .dot{background:#fff}.timeline{display:flex;flex-direction:column;gap:12px}.timeline-entry{border-left:3px solid #bdd1f7;padding:13px 15px;background:#fff;border-radius:0 14px 14px 0;box-shadow:0 3px 13px rgba(35,64,104,.045)}.timeline-entry.exam{border-left-color:#79cab2}.timeline-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:7px}.timeline-entry h3{margin:0 0 5px}.timeline-entry p{margin:0 0 7px;font-size:.8rem;color:#6d7e91}.timeline-entry .button-row{margin-top:12px}.doc-card{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid var(--border);border-radius:14px;background:#fff}.doc-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;color:#3f69d7;background:#ebf2ff;flex-shrink:0}.doc-title{font-weight:760;font-size:.85rem;margin:0 0 4px;overflow-wrap:anywhere}.doc-info{font-size:.72rem;color:#7d8b9e}.document-list{display:flex;flex-direction:column;gap:9px}.auth-bg{min-height:100dvh;background:radial-gradient(circle at 75% 7%,#dff2ec 0,transparent 38%),radial-gradient(circle at 10% 85%,#e5edff 0,transparent 40%),#f8fafd;display:flex;justify-content:center;align-items:center;padding:30px 18px}.auth-card{width:100%;max-width:470px;padding:33px;border-radius:27px;background:white;border:1px solid #e6ecf3;box-shadow:0 24px 70px rgba(30,58,98,.10)}.auth-mark{width:64px;height:64px;margin:0 auto 20px;border-radius:22px}.auth-card h1{text-align:center;margin-bottom:8px}.auth-card .intro{text-align:center;color:#78879a;font-size:.85rem;margin-bottom:24px}.auth-note{font-size:.77rem;text-align:center;color:#8c9aab;margin:20px 0 0}.auth-card .btn{min-height:48px}.auth-card input{font-size:16px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f1f5fa;padding:5px;border-radius:13px;margin-bottom:21px}.auth-tabs button{border:none;background:none;border-radius:9px;padding:11px;font-weight:730;color:#8492a3}.auth-tabs button.active{background:white;color:#365fd0;box-shadow:0 3px 10px rgba(46,75,115,.08)}.modal-overlay{position:fixed;z-index:100;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(19,34,56,.54);backdrop-filter:blur(3px);padding:16px}.modal{width:100%;max-width:570px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:22px;padding:23px;box-shadow:0 24px 70px rgba(8,24,49,.25)}.modal.large{max-width:760px}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.modal-header h2{margin:0;font-size:1.2rem}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:21px}.toast{position:fixed;z-index:200;bottom:24px;left:50%;transform:translate(-50%,20px);border-radius:13px;background:#263f60;color:white;padding:13px 19px;font-size:.83rem;box-shadow:0 9px 30px rgba(0,0,0,.2);max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.privacy-list{font-size:.84rem;color:#53677c;line-height:1.55}.privacy-list p{margin-bottom:10px}.detail-block{background:#f6f8fc;border-radius:14px;padding:14px;margin:10px 0}.detail-block strong{display:block;color:#314860;font-size:.78rem;margin-bottom:5px}.detail-block p{font-size:.86rem;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.file-preview{display:block;width:100%;max-height:58dvh;object-fit:contain;border-radius:10px;background:#f4f6f9}.pdf-preview{width:100%;height:60dvh;border:1px solid var(--border);border-radius:9px}.footer-note{margin-top:38px;color:#98a5b3;font-size:.73rem;text-align:center}.spinner{display:inline-block;width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:800px){.two-col,.calendar-layout{grid-template-columns:1fr}.stat-grid{gap:9px}.stat{padding:17px;flex-direction:column;align-items:flex-start;gap:10px}.stat-value{font-size:1.4rem}.stat-label{font-size:.72rem}.member-grid{grid-template-columns:1fr}.hero{padding:23px}.hero-deco{width:75px;height:75px;border-radius:23px}.hero-deco svg{width:45px;height:45px}}
@media(max-width:610px){.container{padding:20px 16px calc(102px + env(safe-area-inset-bottom))}.topbar{padding:18px 16px 0}.desktop-nav{display:none}.bottom-nav{display:flex;z-index:40;position:fixed;bottom:0;left:0;right:0;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #e5eaf1;justify-content:space-around;box-shadow:0 -6px 25px rgba(49,70,100,.06)}.bottom-nav .nav-item{display:flex;flex-direction:column;gap:4px;padding:6px 3px;min-width:0;flex:1;font-size:.62rem;font-weight:730;border:none;border-radius:10px}.bottom-nav .nav-item svg{width:22px;height:22px}.bottom-nav .nav-item.active{background:#edf4ff}.hero{grid-template-columns:1fr;padding:23px}.hero-deco{display:none}.hero .button-row .btn{flex:1}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}.stat{padding:13px 10px;border-radius:15px;gap:8px}.stat-icon{width:37px;height:37px;border-radius:11px}.stat-icon svg{width:19px;height:19px}.stat-value{font-size:1.3rem}.stat-label{font-size:.67rem}.card{padding:17px;border-radius:17px}.section{margin:22px 0}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .btn{width:100%}.grid-2{grid-template-columns:1fr;gap:0}.modal{padding:18px;border-radius:18px}.modal-overlay{padding:8px}.modal{max-height:calc(100dvh - 16px)}.auth-card{padding:25px 20px}.day{min-height:53px;padding-top:8px;border-radius:8px;font-size:.81rem;gap:5px}.weekgrid,.daysgrid{gap:1px}.calendar-month h2{font-size:1.05rem}.row-actions{flex-direction:column}.doc-card{flex-wrap:wrap}.doc-card .row-actions{width:100%;flex-direction:row}.doc-card .row-actions .btn{flex:1}.head-actions .icon-button{width:40px;height:40px}.identity-title{font-size:.93rem}.identity-sub{max-width:180px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Resultados y avisos v2 */
.lab-chart{display:block;width:100%;height:auto;min-height:155px;max-height:290px;margin:12px 0 18px}.table-overflow{max-width:100%;overflow-x:auto}.lab-table{border-collapse:collapse;width:100%;font-size:.78rem;text-align:left;margin-top:15px}.lab-table th,.lab-table td{padding:10px 9px;border-bottom:1px solid #e6ecf2;white-space:nowrap}.lab-table th{color:#60748c;background:#f7faff}.result-edit-row{border:1px solid #dce6f0;border-radius:15px;padding:14px;margin:12px 0}.result-edit-row .field{min-width:0}.result-edit-row .grid-2{gap:10px}.lab-chart text{font-family:Arial,sans-serif}.modal details textarea{margin-top:10px}
@media(max-width:610px){.bottom-nav .nav-item{font-size:.56rem;min-width:0}.bottom-nav .nav-item svg{width:19px;height:19px}.result-edit-row{padding:10px}.result-edit-row .grid-2{grid-template-columns:1fr 1fr;gap:8px}.result-edit-row .input{font-size:14px;padding:9px 7px}.lab-table{font-size:.72rem}}

/* Banner accesible para instalar la PWA desde celular */
.msf-install-guide{position:fixed;left:10px;right:10px;bottom:11px;z-index:9999;max-width:600px;margin:auto;border:1px solid #b0c9e7;background:#fff;color:#183c6a;border-radius:16px;padding:13px;box-shadow:0 5px 30px #17274b44;font-family:system-ui,sans-serif;font-size:13px;line-height:1.5;display:grid;gap:6px}.msf-install-guide strong{font-size:15px}.msf-install-guide button{min-height:40px;border:none;border-radius:10px;padding:8px 12px;background:#1c59bc;color:#fff;font-weight:650;cursor:pointer}.msf-install-guide button:last-child{background:#e8eef7;color:#284364}.msf-install-actions{display:flex;gap:7px;flex-wrap:wrap}.msf-install-actions [hidden]{display:none}@media(min-width:650px){.msf-install-guide{left:20px;right:20px}}

.msf-edu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}.msf-edu h3{font-size:1.03rem;margin:0}.msf-edu p{font-size:.88rem}.msf-edu .btn{white-space:normal}.msf-local-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#e8f6ef;border:1px solid #cae7d8;border-radius:16px;padding:14px 16px;flex-wrap:wrap}.msf-local-banner p{margin:5px 0 0}.msf-storage-lines{font-size:.9rem;overflow-wrap:anywhere}
