.admin-login{min-height:100vh;display:grid;place-items:center;padding:30px}.admin-login .login-card{width:min(430px,100%);flex:auto}.admin-logo{width:250px;height:auto;margin-bottom:18px}.admin-login h2{margin-bottom:4px}.admin-login>form>p{color:var(--muted);margin-top:0}.admin-login label{display:block;font-size:.8rem;font-weight:900;margin:16px 0 5px}.admin-login input{width:100%;padding:13px;border:1.5px solid var(--line);border-radius:11px;outline:none}.admin-login input:focus{border-color:var(--blue)}.admin-login .primary-btn{width:100%;margin-top:16px}.back-link{display:block;text-align:center;margin-top:20px;color:var(--muted);text-decoration:none;font-size:.8rem}.admin-header{height:82px;padding:10px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line)}.admin-header img{width:245px;height:60px}.admin-header div{display:flex;gap:18px;align-items:center;font-size:.8rem;font-weight:800}.admin-header a{color:var(--red);text-decoration:none}.dashboard{max-width:1180px;margin:auto;padding:45px 24px}.dashboard-title{display:flex;align-items:flex-end;justify-content:space-between}.dashboard-title h1{font-size:2.5rem;margin:10px 0 4px;letter-spacing:-.04em}.dashboard-title p{margin:0;color:var(--muted)}.dashboard-title .primary-btn{text-decoration:none}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:32px 0}.stats article{background:white;border:1px solid var(--line);padding:22px;border-radius:18px;position:relative}.stats article>span,.stats article>b{display:block}.stats article>span{font-size:.75rem;color:var(--muted);font-weight:800}.stats article>b{font-size:2rem;color:var(--navy);margin-top:5px}.stats article i{position:absolute;right:18px;top:18px;width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-style:normal}.blue{background:#eaf4ff;color:var(--blue)}.orange{background:#fff3df;color:var(--orange)}.green{background:#e8f8f0;color:var(--green)}.purple{background:#f3eefe;color:#8558ce}.table-card{background:white;border-radius:20px;border:1px solid var(--line);overflow:hidden}.table-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line)}.table-heading h2{font-size:1.15rem;margin:0;color:var(--navy)}.table-heading p{margin:2px 0 0;font-size:.72rem;color:var(--muted)}.table-heading input{width:260px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;outline:none}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:15px 24px;border-bottom:1px solid #edf0f5}th{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:#fafbfc}td{font-size:.82rem}td b,td small,td strong{display:block}td small{font-size:.68rem;color:var(--muted);margin-top:2px}.grade-tag{background:#edf6ff;color:var(--blue-dark);padding:5px 9px;border-radius:7px;font-weight:900}.level{padding:5px 9px;border-radius:99px;font-weight:900;font-size:.68rem;background:#eef1f5;color:var(--muted)}.level.superior,.level.alto{background:#e7f8ef;color:#149254}.level.básico{background:#fff4dd;color:#b87300}.level.en-proceso{background:#ffebeb;color:#ce4747}.empty{text-align:center;padding:60px;color:var(--muted)}@media(max-width:800px){.stats{grid-template-columns:1fr 1fr}.dashboard-title{align-items:flex-start;gap:20px}.dashboard-title h1{font-size:2rem}.admin-header div span{display:none}}@media(max-width:520px){.stats{grid-template-columns:1fr}.dashboard-title{flex-direction:column}.table-heading{align-items:flex-start;gap:14px;flex-direction:column}.table-heading input{width:100%}}
.ranking-card{background:linear-gradient(145deg,#fff 55%,#f3f8ff);border:1px solid var(--line);border-radius:22px;padding:26px 28px 0;margin:0 0 28px;overflow:hidden}.ranking-heading{display:flex;justify-content:space-between;align-items:flex-start}.ranking-heading h2{margin:7px 0 2px;color:var(--navy);font-size:1.35rem}.ranking-heading p{margin:0;color:var(--muted);font-size:.76rem}.trophy{width:44px;height:44px;border-radius:13px;background:#fff3d9;color:var(--orange);display:grid;place-items:center;font-size:1.25rem}.podium{display:grid;grid-template-columns:repeat(var(--leaders),minmax(88px,1fr));align-items:end;gap:7px;margin-top:28px;min-width:710px}.podium-place{text-align:center;min-width:0}.student-avatar{width:48px;height:48px;margin:0 auto 7px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#7cb7ff,var(--blue));color:white;border:3px solid white;box-shadow:0 5px 15px rgba(31,80,145,.18);font-size:.78rem;font-weight:900}.podium-place>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--navy);font-size:.7rem}.podium-place>small{display:block;color:var(--muted);font-weight:800;font-size:.62rem;margin:2px 0 8px}.step{height:calc(155px - (var(--step) * 13px));min-height:58px;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#e9f3ff,#d8eaff);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:12px;color:var(--blue-dark)}.step b{font-size:.9rem}.step span{font-size:1.8rem;font-weight:900;opacity:.22}.rank-1 .student-avatar{width:60px;height:60px;background:linear-gradient(135deg,#ffc84c,#f29b0b);box-shadow:0 7px 20px rgba(242,155,11,.3)}.rank-1 .step{background:linear-gradient(180deg,#fff0bd,#ffdc6b);color:#a96700}.rank-2 .student-avatar{background:linear-gradient(135deg,#bdc9d9,#7e91a8)}.rank-3 .student-avatar{background:linear-gradient(135deg,#e5a46e,#b66b3d)}.ranking-empty{text-align:center;padding:36px;color:var(--muted)}.ranking-empty span{font-size:2rem;color:var(--orange)}.ranking-empty p{margin:5px}.ranking-card:has(.podium){overflow-x:auto}@media(max-width:800px){.ranking-card{padding-inline:18px}.podium{margin-bottom:0}}
.rankings-by-grade{display:grid;grid-template-columns:1fr;gap:22px;margin-bottom:28px}.rankings-by-grade .ranking-card{margin-bottom:0}
#registry-dialog{width:min(1500px,calc(100vw - 32px));max-width:none}.registry-detail{width:100%;max-height:92vh}
.admin-header nav{display:flex;gap:18px;align-items:center}.admin-header nav a{color:var(--muted);font-size:.8rem;font-weight:900}.admin-header nav a.active{color:var(--red)}.table-tools{display:flex;gap:10px;align-items:center}.table-tools select{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:white;outline:none}.registry-card{margin-top:30px}.registry-card table{min-width:980px}.registry-card .secondary-btn{white-space:nowrap;padding:8px 12px}.registry-detail{width:min(1120px,94vw);max-height:90vh;overflow:auto;padding:0;background:#f5f7fb;border-radius:22px}.registry-detail .modal-head{position:sticky;top:0;z-index:3;padding:25px 30px 20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}.registry-detail .modal-head h2{margin:7px 0 3px;color:var(--navy);font-size:1.55rem}.registry-detail .modal-head p{margin:0;color:var(--muted);font-size:.78rem}.registry-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:22px 30px 0}.registry-summary>div{padding:15px 17px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px rgba(33,52,82,.04)}.registry-summary span,.registry-summary strong{display:block}.registry-summary span{font-size:.62rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900}.registry-summary strong{margin-top:5px;color:var(--navy);font-size:.86rem}.registry-section-nav{display:flex;gap:8px;overflow:auto;padding:18px 30px 5px;scrollbar-width:thin}.registry-section-nav a{flex:none;padding:7px 11px;border-radius:99px;background:white;border:1px solid var(--line);color:var(--blue-dark);font-size:.68rem;font-weight:900;text-decoration:none}.registry-section-nav a:hover{background:#eaf4ff;border-color:#b8d7fa}.registry-sections{padding:14px 30px 4px}.registry-section{margin-bottom:17px;padding:20px;background:white;border:1px solid var(--line);border-radius:17px;box-shadow:0 5px 18px rgba(33,52,82,.035);scroll-margin-top:120px}.registry-section h3{display:flex;align-items:center;gap:10px;margin:0 0 16px;color:var(--navy);font-size:1rem}.registry-section h3 span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eaf4ff;color:var(--blue-dark);font-size:.65rem;font-weight:900}.registry-section dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.registry-field{padding:11px 13px;background:#f8fafc;border:1px solid #edf0f5;border-radius:10px;min-width:0}.registry-field dt{font-size:.61rem;text-transform:uppercase;letter-spacing:.055em;color:var(--muted);font-weight:900}.registry-field dd{margin:4px 0 0;color:var(--navy);font-size:.8rem;line-height:1.35;overflow-wrap:anywhere}.registry-field.empty-field{background:#fbfbfc}.registry-field.empty-field dd{color:#a7afbc;font-style:italic}.registry-detail>.modal-actions{position:sticky;bottom:0;margin:0;padding:15px 30px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px)}@media(max-width:900px){.admin-header{height:auto;flex-wrap:wrap}.admin-header nav{order:3;width:100%;justify-content:center}.table-tools{width:100%;flex-wrap:wrap}.table-tools input,.table-tools select{flex:1;min-width:180px}.registry-summary{grid-template-columns:1fr 1fr}.registry-section dl{grid-template-columns:1fr 1fr}}@media(max-width:560px){.registry-detail .modal-head,.registry-summary,.registry-section-nav,.registry-sections,.registry-detail>.modal-actions{padding-left:17px;padding-right:17px}.registry-summary,.registry-section dl{grid-template-columns:1fr}.registry-detail .modal-head h2{font-size:1.2rem}}
