:root{--azul:#0873ce;--azul2:#0758a0;--verde:#159b0b;--fondo:#f4f8fc;--texto:#18324a;--muted:#6d8092;--card:#fff}
*{box-sizing:border-box}body{margin:0;padding-top:64px;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 15% 0,#dcedff 0,transparent 28%),var(--fondo);color:var(--texto);min-height:100vh}
.login-page{padding-top:0;overflow:hidden}
header{height:64px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid #dce7f0;display:flex;align-items:center;justify-content:space-between;padding:0 1cm;position:fixed;top:0;left:0;right:0;z-index:50}.brand{display:flex;align-items:center;gap:10px;font-weight:800}.brand img{width:40px;height:40px;object-fit:contain}.brand small{display:block;color:var(--muted);font-weight:500;margin-top:1px}.status{font-size:12px;color:#527086;background:#eef7ff;padding:7px 11px;border-radius:99px}.status b{color:var(--verde)}
.auth-lock{padding-top:0;overflow:hidden}
.auth-lock>header,.auth-lock>main,.auth-lock>footer,.auth-lock>.developer-credit{display:none}
.login-screen{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px;background:#edf5fb;overflow:auto}
.login-shell{width:min(100%,780px);display:grid;grid-template-columns:.95fr 1fr;border:1px solid #d5e4ef;border-radius:16px;background:#fff;box-shadow:0 14px 38px rgba(24,50,74,.12);overflow:hidden}
.login-welcome{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:32px;background:#f8fbfe;color:var(--texto);border-right:1px solid #e0e9f1;overflow:hidden}
.login-welcome:before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:linear-gradient(180deg,#0873ce,#159b0b)}
.login-welcome:after{content:"";position:absolute;inset:auto 42px 42px 42px;height:1px;background:#dce8f2}
.login-welcome img{position:relative;width:118px;height:118px;object-fit:contain;margin-bottom:20px;filter:drop-shadow(0 10px 14px rgba(9,74,124,.12))}
.login-welcome span{position:relative;display:block;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:var(--azul2);margin-bottom:8px}
.login-welcome h2{position:relative;font-size:28px;line-height:1.08;margin:0 0 10px;letter-spacing:0;max-width:330px;color:var(--texto)}
.login-welcome p{position:relative;margin:0;color:var(--muted);font-size:13px;font-weight:750}
.login-panel{background:#fff;padding:36px 40px;display:flex;flex-direction:column;justify-content:center}
.login-brand{display:none}
.login-brand img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(9,74,124,.12))}
.login-brand span{display:block;font-size:18px;font-weight:900;color:var(--texto)}
.login-brand small{display:block;color:var(--muted);font-size:12.5px;margin-top:3px}
.login-heading{margin-bottom:18px;text-align:left}
.login-heading h1{font-size:28px;line-height:1.05;margin:10px 0 7px;letter-spacing:0}
.login-heading p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.45}
.login-submit{margin-top:12px;box-shadow:0 12px 24px rgba(8,115,206,.18)}
.login-page .field{margin:12px 0}
.login-page .field input{height:48px;background:#fbfdff;border-radius:12px}
.login-page .modal-btn{height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.login-page .modal-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.header-actions{display:flex;align-items:center;gap:9px}
.logout-btn{height:32px;border:1px solid #dce7f0;background:#fff;color:#527086;border-radius:11px;padding:0 12px;font-size:12px;font-weight:800;cursor:pointer}
.logout-btn:hover{border-color:#b9d9f5;color:var(--azul)}
.login-top-btn{height:36px;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:12px;padding:0 13px;background:linear-gradient(135deg,var(--azul),var(--azul2));color:#fff;text-decoration:none;font-size:12px;font-weight:850;box-shadow:0 8px 18px rgba(8,115,206,.18)}
.login-top-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.login-top-btn:hover{filter:brightness(.97)}
.install-top-btn{height:36px;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:12px;padding:0 13px;background:linear-gradient(135deg,#23a25a,#137c41);color:#fff;text-decoration:none;font-size:12px;font-weight:850;box-shadow:0 8px 18px rgba(19,124,65,.16)}
.install-top-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.install-top-btn:hover{filter:brightness(.97)}
main{width:calc(100% - 2cm);max-width:none;margin:auto;padding:18px 0 18px}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;margin-bottom:20px}.eyebrow{display:inline-flex;background:#e5f3ff;color:var(--azul2);padding:6px 10px;border-radius:99px;font-size:12px;font-weight:700}.hero h1{font-size:clamp(28px,4vw,44px);line-height:1.03;margin:12px 0 8px;letter-spacing:-1px}.hero h1 span{color:var(--azul)}.hero p{font-size:15px;line-height:1.55;color:var(--muted);max-width:680px;margin:0}.crest-wrap{display:flex;justify-content:center}.crest{width:min(205px,28vw);filter:drop-shadow(0 16px 18px rgba(9,74,124,.14));transition:.3s}.crest:hover{transform:translateY(-4px) rotate(-1deg)}
.section-title{text-align:center;margin:0 0 14px}.section-title h2{font-size:22px;margin:0 0 4px}.section-title p{color:var(--muted);margin:0;font-size:14px}.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;max-width:980px;margin:auto}.card{background:var(--card);border:1px solid #e0e9f1;border-radius:18px;padding:18px 20px;text-decoration:none;color:inherit;box-shadow:0 12px 35px rgba(24,50,74,.07);transition:.25s;position:relative;overflow:hidden}.card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(24,50,74,.12);border-color:#b9d9f5}.icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;margin-bottom:12px;background:#e9f5ff;color:var(--azul)}.card:nth-child(2) .icon{background:#eaf8e8;color:var(--verde)}.icon svg{width:24px;height:24px}.card h3{font-size:19px;margin:0 0 6px}.card p{color:var(--muted);line-height:1.45;margin:0 0 12px;font-size:14px}.go{font-weight:750;color:var(--azul);display:flex;align-items:center;gap:7px}.card:nth-child(2) .go{color:var(--verde)}
.actions.single-action{grid-template-columns:minmax(0,420px);justify-content:center}
footer{text-align:center;color:#8091a0;font-size:12px;padding:16px 20px 18px}.developer-credit{position:fixed;right:18px;bottom:16px;z-index:40;display:flex;align-items:center;gap:10px;padding:9px 11px 9px 13px;border:1px solid rgba(25,224,230,.62);border-radius:14px;background:linear-gradient(135deg,#051c49,#082d70);box-shadow:0 14px 30px rgba(5,28,73,.26),inset 0 1px 0 rgba(255,255,255,.12);color:#eaf7ff;font-size:12px;font-weight:750}.developer-credit strong{color:#33f0f4}.developer-credit img{width:70px;height:46px;object-fit:contain;display:block}
@media(max-width:760px){body{padding-top:64px}.auth-lock{padding-top:0}header{height:64px}.brand img{width:38px;height:38px}.status{display:none}.hero{grid-template-columns:1fr;text-align:center;gap:12px;margin-bottom:16px}.hero p{margin-left:auto;margin-right:auto}.crest-wrap{grid-row:1}.crest{width:145px}.actions{grid-template-columns:1fr}.hero h1{letter-spacing:-1px}.card{padding:16px 18px}.developer-credit{right:10px;bottom:10px;gap:7px;padding:7px 8px 7px 10px;font-size:11px}.developer-credit img{width:56px;height:38px}}

/* Responsive reforzado: móvil, tablet, notebook y pantallas grandes */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{overflow-x:hidden}
img,svg{max-width:100%}
main{width:calc(100% - 2cm)}
@media (min-width:1440px){.hero{grid-template-columns:1.3fr .7fr;gap:36px}.actions{max-width:1040px}.crest{width:min(230px,18vw)}}
@media (max-width:1024px){main{padding:20px 0}.hero{gap:18px}.hero h1{font-size:clamp(28px,4.8vw,40px)}.crest{width:min(175px,24vw)}}
@media (max-width:760px){main{width:100%;padding:12px 12px 20px}.hero h1{font-size:clamp(25px,8vw,34px);line-height:1.06}.hero p{font-size:14px;line-height:1.45}.section-title h2{font-size:20px}.section-title{margin-bottom:10px}.card{border-radius:16px}.brand{min-width:0}.brand>div{min-width:0}.brand strong,.brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:420px){header{padding:0 1cm}.brand{gap:8px}.brand img{width:36px;height:36px}.brand strong{font-size:14px}.brand small{font-size:11px}.crest{width:min(125px,45vw)}.eyebrow{font-size:11px}.hero h1{font-size:25px}.card{padding:15px}.icon{width:42px;height:42px;margin-bottom:10px}.card h3{font-size:18px}}
@media (max-width:340px){.hero h1{font-size:23px}.card{padding:14px}}
@media (orientation:landscape) and (max-height:600px) and (min-width:700px){main{padding-top:14px}.hero{margin-bottom:14px}.crest{width:130px}.hero h1{font-size:30px}.hero p{font-size:13px}.card{padding:14px 16px}.icon{width:40px;height:40px;margin-bottom:8px}}
@media (max-width:1180px){.developer-credit{position:static;width:max-content;max-width:calc(100% - 24px);margin:4px 12px 14px auto;padding:7px 9px 7px 11px;gap:8px;border-radius:12px;font-size:11px;box-shadow:0 8px 18px rgba(5,28,73,.18)}.developer-credit img{width:54px;height:36px}}
@media (max-width:760px){header{padding:0 12px}.logout-btn{height:31px;padding:0 10px}.hero{display:block;text-align:left;margin-bottom:12px}.hero .eyebrow{margin-bottom:8px}.hero h1{margin:8px 0 6px}.hero p{display:none}.crest-wrap{display:none}.actions{gap:10px}.card{padding:14px 15px}.card p{font-size:13px;margin-bottom:10px}.section-title{text-align:left}.developer-credit{background:rgba(5,28,73,.76);backdrop-filter:blur(10px);border-color:rgba(51,240,244,.36);box-shadow:none;opacity:.94}.developer-credit span{max-width:142px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.developer-credit img{width:42px;height:28px}}
@media (max-width:420px){header{padding:0 10px}.brand img{width:34px;height:34px}.brand>div{font-size:13px}.brand small{font-size:10.5px}main{padding:10px 10px 18px}.hero h1{font-size:23px}.section-title h2{font-size:18px}.developer-credit{margin:2px 10px 12px auto;padding:6px 7px 6px 9px;font-size:10.5px}.developer-credit img{width:34px;height:24px}}
@media (max-width:520px){.install-top-btn,.login-top-btn{width:36px;padding:0;justify-content:center}.install-top-btn span,.login-top-btn span{display:none}}

@media (max-width:820px){
 .login-screen{padding:16px;align-items:center}
 .login-shell{grid-template-columns:1fr;width:min(100%,390px);min-height:0;border-radius:16px}
 .login-welcome{display:none}
 .login-panel{padding:24px 22px}
 .login-brand{display:flex;justify-content:center;text-align:center;gap:10px;margin-bottom:16px}
 .login-brand img{width:52px;height:52px}
 .login-heading{text-align:center;margin-bottom:16px}
 .login-heading .eyebrow{display:none}
 .login-heading h1{font-size:24px;margin:0}
 .login-heading p{display:none}
}
@media (max-width:480px){
 .login-page{background:#f4f8fc}
 .login-screen{padding:12px;align-items:center}
 .login-shell{width:100%;border-radius:15px;box-shadow:0 10px 26px rgba(4,38,68,.12)}
 .login-panel{padding:20px 16px}
 .login-brand{margin-bottom:12px}
 .login-brand img{width:46px;height:46px}
 .login-brand span{font-size:15px}
 .login-brand small{font-size:11px}
 .login-heading{margin-bottom:12px}
 .login-heading h1{font-size:22px}
 .login-page .field{margin:10px 0}
 .login-page .field input{height:46px;font-size:15px}
 .login-page .modal-btn{height:46px;margin-top:9px}
}

.modal-overlay{position:fixed;inset:0;background:rgba(8,31,51,.56);backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;padding:18px;z-index:1000}.modal-overlay.show{display:flex}.modal-box{width:min(100%,440px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border:1px solid #dce8f2;border-radius:24px;box-shadow:0 28px 80px rgba(4,38,68,.24);padding:28px;animation:modalIn .22s ease}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.modal-brand{display:flex;align-items:center;gap:12px}.modal-brand img{width:54px;height:54px;object-fit:contain}.modal-head h2{margin:0 0 4px;font-size:22px}.modal-head p{margin:0;color:var(--muted);font-size:14px}.close-modal{border:0;background:#f1f5f8;width:38px;height:38px;border-radius:12px;font-size:22px;cursor:pointer;color:#567}.field{margin:15px 0}.field label{display:block;font-size:13px;font-weight:750;margin:0 0 7px}.field input{width:100%;height:48px;border:1px solid #ccdbe7;border-radius:13px;padding:0 14px;font-size:16px;outline:0;transition:.2s}.field input:focus{border-color:var(--azul);box-shadow:0 0 0 4px rgba(8,115,206,.1)}.modal-btn{width:100%;height:49px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--azul),var(--azul2));color:#fff;font-weight:800;font-size:15px;cursor:pointer;margin-top:7px}.modal-btn.green{background:linear-gradient(135deg,#20ad14,#117b0a)}.msg{display:none;margin-top:12px;padding:10px 12px;border-radius:11px;font-size:13px}.msg.error{display:block;background:#fff0f0;color:#a72a2a}.msg.ok{display:block;background:#edf9eb;color:#25731f}.rut-help{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.4}.search-icon{width:62px;height:62px;margin:2px auto 15px;border-radius:18px;background:#eaf8e8;color:var(--verde);display:grid;place-items:center}.search-icon svg{width:30px}.search-title{text-align:center;margin-bottom:22px}.search-title h2{margin:0 0 6px}.search-title p{margin:0;color:var(--muted);font-size:14px}@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:480px){.modal-overlay{padding:12px;align-items:flex-end}.modal-box{border-radius:22px 22px 16px 16px;padding:21px 18px;max-height:92dvh}.modal-brand img{width:46px;height:46px}.modal-head h2{font-size:19px}}
.app-modal-overlay{position:fixed;inset:0;background:rgba(8,31,51,.56);backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;padding:18px;z-index:2000}.app-modal-overlay.show{display:flex}.app-modal{width:min(100%,460px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border:1px solid #dce8f2;border-radius:24px;box-shadow:0 28px 80px rgba(4,38,68,.24);padding:24px;animation:modalIn .22s ease;color:var(--texto)}.app-modal-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}.app-modal-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;flex:0 0 auto;background:#e9f5ff;color:var(--azul)}.app-modal.error .app-modal-icon{background:#fff0f0;color:#a72a2a}.app-modal.success .app-modal-icon{background:#edf9eb;color:#25731f}.app-modal.warning .app-modal-icon{background:#fff9e8;color:#8a6812}.app-modal-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.app-modal h2{font-size:20px;margin:0 0 5px}.app-modal-body{color:var(--muted);font-size:14px;line-height:1.55}.app-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}.app-modal-actions button{border:0;border-radius:13px;padding:11px 15px;font-weight:800;cursor:pointer;font-size:13px}.app-modal-primary{background:linear-gradient(135deg,var(--azul),var(--azul2));color:#fff}.app-modal-light{background:#fff;color:var(--texto);border:1px solid #e0e9f1!important}.app-modal-danger{background:#fff0f0;color:#a72a2a}
.password-field{position:relative}.password-field input{padding-right:50px}.toggle-password{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:11px;background:#f1f5f8;color:#567;display:grid;place-items:center;cursor:pointer}.toggle-password:hover{background:#e5f3ff;color:var(--azul)}.toggle-password svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.modal-btn:disabled{opacity:.65;cursor:wait}
.search-progress{display:none;margin-top:14px;border:1px solid #d8eaf8;background:#f5fbff;border-radius:14px;padding:12px}
.search-progress.show{display:block}
.search-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:var(--texto);font-size:13px;font-weight:800}
.search-progress-head span{min-width:0}
.search-progress-head strong{color:var(--azul2);font-size:14px}
.search-progress-bar{height:9px;background:#dbeaf6;border-radius:99px;overflow:hidden}
.search-progress-bar>div{height:100%;width:1%;background:linear-gradient(135deg,var(--azul),var(--azul2));border-radius:inherit;transition:width .18s ease}
.modal-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.modal-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.assignment-box{width:min(100%,620px)}
.assignment-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.assignment-section label{display:block;font-size:13px;font-weight:850;margin:0 0 8px;color:var(--texto)}
.choice-list{min-height:170px;max-height:260px;overflow:auto;border:1px solid #dce8f2;border-radius:14px;background:#fbfdff;padding:8px;display:flex;flex-direction:column;gap:7px}
.choice-option{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:12px;background:#fff;color:var(--texto);font-size:13px;font-weight:750;cursor:pointer}
.choice-option:hover{border-color:#b9d9f5;background:#f4faff}
.choice-option input{width:17px;height:17px;accent-color:var(--azul);flex:0 0 auto}
.choice-option span{min-width:0;overflow-wrap:anywhere}
.choice-empty{display:flex;align-items:center;justify-content:center;min-height:120px;padding:16px;text-align:center;color:var(--muted);font-size:13px;font-weight:750}
@media(max-width:620px){.assignment-panel{grid-template-columns:1fr}.choice-list{min-height:140px;max-height:200px}}
