*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182644;background:#f6f8ff}body{margin:0;min-height:100vh;background:radial-gradient(circle at 15% 10%,#eeeaff 0,transparent 24%),radial-gradient(circle at 90% 75%,#e4faf4 0,transparent 25%),#f6f8ff}a{color:inherit;text-decoration:none}button,input{font:inherit}.topbar{position:sticky;top:0;z-index:10;background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid #e7eaf3}.topbar-inner{max-width:1180px;margin:auto;min-height:70px;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-weight:950;letter-spacing:-.04em;display:flex;align-items:center;gap:9px}.brand>span:last-child>span,.auth-brand span{color:#6748f5}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#6b4cf6;color:#fff;box-shadow:0 8px 20px #6748f530}.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.top-actions a,.top-actions button{border:1px solid #e0e5f2;background:#fff;color:#3c4970;border-radius:10px;padding:8px 11px;font-weight:800;cursor:pointer}.top-actions form{margin:0}.container{max-width:1180px;margin:auto;padding:42px 22px 58px}.narrow{max-width:760px}.hero{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:30px}.hero h1{font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.055em;margin:10px 0}.hero p{font-size:17px;color:#69758d;max-width:680px}.eyebrow{font-size:12px;font-weight:950;letter-spacing:.12em;color:#6b4cf6}.level-card{min-width:150px;padding:20px;border:1px solid #ded8ff;background:#fff;border-radius:22px;text-align:center;box-shadow:0 16px 38px #2f3c6c13}.level-card small,.level-card span{display:block;color:#7b879b}.level-card strong{display:block;font-size:48px;line-height:1;color:#6748f5;margin:5px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0 30px}.metrics>div{background:#fff;border:1px solid #e4e8f2;border-radius:17px;padding:17px}.metrics small{display:block;color:#7d8799;font-weight:800}.metrics strong{display:block;font-size:28px;margin-top:5px}.section-title{font-size:24px}.subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.subject-card{background:#fff;border:1px solid #e2e6f0;border-radius:22px;padding:22px;box-shadow:0 12px 36px #2332520c}.subject-card h3{font-size:21px;margin:8px 0}.subject-card p{color:#6c7890;min-height:24px}.subject-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-weight:950;background:#eeeaff;color:#6b4cf6}.subject-card.lenguaje .subject-icon{background:#fff4df;color:#c77c11}.subject-card.ciencias .subject-icon{background:#e8faf4;color:#16876e}.subject-card.historia .subject-icon{background:#fff0f4;color:#bc5674}.subject-card.mixed{grid-column:1/-1}.subject-card form{display:flex;gap:9px;margin-top:16px}.primary,.soft{border:0;border-radius:12px;padding:11px 16px;font-weight:900;cursor:pointer}.primary{background:#684bf2;color:#fff;box-shadow:0 9px 20px #6748f52a}.soft{background:#f0edff;color:#5f47d4;border:1px solid #ddd6ff}.button-link{display:inline-flex;align-items:center;justify-content:center}.home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.panel,.question-panel{background:#fff;border:1px solid #e2e6f0;border-radius:22px;padding:24px;box-shadow:0 12px 36px #2332520b}.badges{display:flex;gap:8px;flex-wrap:wrap}.badges span{padding:8px 11px;background:#fff7df;border:1px solid #f5df9e;border-radius:99px;font-size:13px;font-weight:800}.recent,.subject-result{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #edf0f6}.recent:first-of-type,.subject-result:first-of-type{border-top:0}.play-wrap{max-width:860px}.question-meta{display:flex;gap:10px;align-items:center;color:#6f7b91;font-size:13px}.pill{border-radius:99px;background:#eeeaff;color:#654bd8;padding:6px 9px;font-weight:900}.progress{height:10px;background:#edf0f8;border-radius:99px;margin:18px 0;overflow:hidden}.progress span{display:block;height:100%;background:#6b4cf6;border-radius:99px}.progress-native{display:block;width:100%;height:10px;border:0;border-radius:99px;overflow:hidden;margin:18px 0;background:#edf0f8}.progress-native::-webkit-progress-bar{background:#edf0f8}.progress-native::-webkit-progress-value{background:#6b4cf6;border-radius:99px}.progress-native::-moz-progress-bar{background:#6b4cf6;border-radius:99px}.passage{background:#f3f6fb;border-left:4px solid #7658f7;border-radius:12px;padding:15px 17px;margin:22px 0;line-height:1.6;color:#3b4961}.question-title{font-size:clamp(25px,4vw,35px);line-height:1.2;letter-spacing:-.03em;margin:24px 0}.answers{display:grid;gap:10px}.answer-option{display:flex;align-items:center;gap:12px;padding:13px;border:2px solid #e5e8f1;border-radius:14px;cursor:pointer;background:#fff}.answer-option:has(input:checked){border-color:#7658f7;background:#f3f0ff}.answer-option input{accent-color:#6748f5}.choice-letter{width:32px;height:32px;border-radius:9px;background:#f0f2f7;display:grid;place-items:center;font-weight:900}.next{justify-self:end;margin-top:8px}.secure-note{color:#77849a;font-size:13px;margin-top:18px}.feedback h1{font-size:34px}.feedback.good{border-color:#bcebd5}.feedback.bad{border-color:#f2c4cf}.explanation{background:#f2f6fd;color:#4b5a75;border-radius:12px;padding:14px;margin:14px 0 20px;line-height:1.55}.result-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(135deg,#f0edff,#eaf9f4);border:1px solid #dcd7ff;border-radius:25px;padding:30px;margin-bottom:18px}.result-hero h1{font-size:39px;margin:8px 0}.score-circle{width:130px;height:130px;border-radius:50%;background:#fff;display:grid;place-items:center;align-content:center;border:8px solid #7559f5}.score-circle strong{font-size:34px}.score-circle span{font-size:12px;color:#68758b}.results-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:14px}.review{padding:15px 0;border-top:1px solid #edf0f6}.review:first-of-type{border-top:0}.review small{color:#7658f7;font-weight:900}.review strong{display:block;margin:5px 0}.review p{margin:5px 0;color:#4b5870}.review.error{border-left:3px solid #dd6e8b;padding-left:14px}.review.ok{border-left:3px solid #28a880;padding-left:14px}.result-actions{margin-top:18px}.messages{max-width:1180px;margin:12px auto 0;padding:0 22px}.message{padding:11px 14px;border-radius:11px;background:#eef3ff}.message.error{background:#fff0f3;color:#97334f}.message.success{background:#e9f9f0;color:#267452}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:25px}.auth-card{width:min(460px,100%);background:#fff;border:1px solid #e0e5f3;border-radius:27px;padding:34px 38px;box-shadow:0 25px 75px #283d751c}.auth-brand{display:flex;gap:10px;align-items:center;font-size:19px;font-weight:950;margin-bottom:34px}.auth-icon{width:52px;height:52px;border-radius:15px;background:#eeeaff;color:#6648e7;display:grid;place-items:center}.auth-card h1{font-size:34px;margin:10px 0}.auth-card>p,.auth-help{color:#6b7891}.auth-help{display:block;text-align:center;margin-top:20px}.auth-form{display:flex;flex-direction:column;gap:8px}.auth-form label{font-size:14px;font-weight:900;margin-top:7px}.auth-form input{width:100%;min-height:48px;border:2px solid #e0e5f0;border-radius:12px;padding:10px 13px;outline:none}.auth-form input:focus{border-color:#7658f7;box-shadow:0 0 0 3px #7658f720}.auth-form .primary{margin-top:14px}.errorlist,.field-error{color:#9b3450;font-size:13px}.form-panel h1{font-size:34px}.credential{max-width:1180px;margin:0 auto 16px;background:#fff8dc;border:1px solid #f3d878;border-radius:16px;padding:16px 20px}.credential b{user-select:all}.admin-layout{display:grid;grid-template-columns:280px 1fr;gap:16px}.student-sidebar,.admin-content{min-width:0}.student-sidebar{background:#fff;border:1px solid #e2e6f0;border-radius:20px;padding:18px;height:max-content}.student-select{display:flex;gap:10px;align-items:center;padding:10px;border-radius:12px;margin:4px 0}.student-select.active{background:#f0edff}.avatar{width:34px;height:34px;border-radius:50%;background:#6b4cf6;color:white;display:grid;place-items:center;font-weight:900}.student-select span:last-child{display:grid}.student-select small{color:#78849a}.student-heading{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e2e6f0;border-radius:20px;padding:18px;margin-bottom:12px}.student-heading h2{margin:5px 0}.mini-form p{display:grid;gap:4px}.mini-form input{width:100%;padding:9px;border:1px solid #dce1ec;border-radius:9px}.footer{max-width:1180px;margin:auto;padding:24px 22px 35px;border-top:1px solid #e3e7f0;color:#7a869a;font-size:12px;display:flex;justify-content:space-between;gap:15px}@media(max-width:800px){.metrics{grid-template-columns:repeat(2,1fr)}.subject-grid,.home-bottom,.results-grid,.admin-layout{grid-template-columns:1fr}.subject-card.mixed{grid-column:auto}.hero,.result-hero,.student-heading{align-items:flex-start;flex-direction:column}.topbar-inner{align-items:flex-start}.top-actions{justify-content:flex-end}.level-card{width:100%}}@media(max-width:520px){.container{padding:28px 14px 45px}.topbar-inner{padding:9px 12px}.brand>span:last-child{display:none}.top-actions a,.top-actions button{font-size:12px;padding:7px}.subject-card,.panel,.question-panel{padding:18px}.metrics{gap:8px}.metrics>div{padding:13px}.auth-card{padding:28px 22px}.footer{flex-direction:column}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* BEGIN PROFESOR-VIRTUAL CSS */
.tutor-card{
  margin-top:22px;
  padding:20px;
  border:1px solid #d9d3ff;
  border-radius:18px;
  background:linear-gradient(135deg,#faf9ff,#f0f8ff);
}
.tutor-heading{display:flex;gap:14px;align-items:flex-start}
.tutor-heading h2{margin:4px 0 3px;font-size:21px}
.tutor-heading p{margin:0;color:#66748b}
.tutor-avatar{
  flex:0 0 44px;width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;background:#6748f5;color:#fff;
  font-weight:950;box-shadow:0 8px 20px #6748f52a
}
.tutor-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 12px}
.tutor-actions button:disabled{opacity:.55;cursor:wait}
.tutor-response{
  min-height:58px;padding:13px 15px;border-radius:13px;
  background:#fff;border:1px solid #e4e7f2;color:#394862;line-height:1.55
}
.tutor-response p{margin:0}
.tutor-error{color:#963c55}
@media(max-width:620px){
  .tutor-actions{display:grid;grid-template-columns:1fr}
  .tutor-actions button{width:100%}
}
/* END PROFESOR-VIRTUAL CSS */
