@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root{--ink:#111b3f;--muted:#6c7695;--bg:#f4f6fb;--panel:#fff;--violet:#6d5dfc;--cyan:#17c7c9;--lime:#d9ff6f;--danger:#e45757;--line:#e6e9f2;--shadow:0 20px 55px rgba(30,43,84,.09)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#111b3f;color:#fff;padding:28px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.brand-mark{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--violet),var(--cyan));font-weight:800}.brand strong,.brand small{display:block}.brand small{opacity:.62;font-size:12px}.sidebar nav{display:grid;gap:7px;margin-top:44px}.sidebar nav a{color:#cad0e5;text-decoration:none;padding:12px 14px;border-radius:12px}.sidebar nav a:hover{background:#202c58;color:#fff}.side-user{margin-top:auto;border-top:1px solid #2a355f;padding-top:18px}.side-user span,.side-user small{display:block}.side-user small{color:#aeb7d6}.side-user a{display:inline-block;color:#d9ff6f;margin-top:10px;font-size:13px}.main{margin-left:250px;padding:26px 34px 60px}.auth-main{min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.topbar h1{margin:2px 0 0;font:800 26px Manrope}.eyebrow,.kicker{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--violet)}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--lime);font-weight:800}.menu-btn{display:none}.hero-card,.student-hero{background:linear-gradient(135deg,#111b3f,#27356e);color:#fff;border-radius:26px;padding:34px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}.hero-card h2,.student-hero h2{font:800 34px Manrope;margin:8px 0}.hero-card p,.student-hero p{color:#c7cde2}.hero-card.compact{padding:28px}.btn{border:0;border-radius:12px;padding:12px 18px;font-weight:700;cursor:pointer;text-decoration:none;text-align:center;display:inline-block}.btn.primary{background:var(--violet);color:#fff}.btn.secondary{background:#e9ebff;color:#3d34a5}.btn.light{background:#fff;color:var(--ink)}.btn.danger{background:var(--danger);color:#fff}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0}.stats-grid article,.panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 8px 30px rgba(30,43,84,.04)}.stats-grid small,.stats-grid span{display:block;color:var(--muted)}.stats-grid strong{font:800 34px Manrope;display:block;margin:6px 0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.grid-2.uneven{grid-template-columns:1.25fr .75fr}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.panel-head h3{margin:3px 0;font:800 20px Manrope}.panel-head a{color:var(--violet);font-weight:700;text-decoration:none}.list{display:grid}.list-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}.list-item:last-child{border:0}.list-item>div:nth-child(2),.list-item>div:first-child{flex:1}.list-item small,td small{display:block;color:var(--muted);margin-top:3px}.avatar.sm{width:38px;height:38px}.badge,.chip{font-size:11px;font-weight:800;border-radius:99px;padding:6px 9px;display:inline-block;background:#edf0f7;color:#59617a}.badge.active{background:#e7fff6;color:#008b61}.badge.pending,.badge.changes{background:#fff5d9;color:#a56b00}.badge.approved,.badge.completed{background:#e9ffe2;color:#347d1e}.badge.rejected{background:#ffe7e7;color:#aa3131}.badge.published{background:#eceaff;color:#5348c6}.live-dot{color:#0fbf85;font-size:12px;font-weight:800}.empty{text-align:center;color:var(--muted);padding:30px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:11px;text-transform:uppercase;color:var(--muted)}.progress{height:7px;background:#eceef4;border-radius:99px;overflow:hidden;min-width:120px}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--violet),var(--cyan))}.filters,.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.filters{grid-template-columns:2fr 1fr auto}.form-grid .wide{grid-column:1/-1}label{display:grid;gap:7px;font-size:13px;font-weight:700}input,select,textarea{width:100%;border:1px solid #dfe3ee;background:#fbfcff;border-radius:11px;padding:11px 12px;font:inherit;color:var(--ink)}textarea{resize:vertical}.check{display:flex;grid-auto-flow:column;justify-content:start}.check input{width:auto}.cards-list{display:grid;gap:12px}.activity-card{border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;justify-content:space-between;gap:20px}.activity-card h4,.review-card h4{font:800 17px Manrope;margin:8px 0}.activity-card p,.review-card p{color:var(--muted);margin:5px 0 10px}.activity-card>div:last-child{display:grid;justify-items:end;align-content:space-between}.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.review-card{border:1px solid var(--line);border-radius:17px;padding:18px}.review-title,.meta{display:flex;justify-content:space-between;gap:10px}.review-title small{display:block;color:var(--muted)}.meta{font-size:12px;color:var(--muted);margin:12px 0}.evidence{display:inline-block;color:var(--violet);font-weight:700;margin-bottom:12px}.review-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid var(--line);padding-top:14px}.review-form .wide{grid-column:1/-1}.sticky{position:sticky;top:20px;align-self:start}.student-hero{background:linear-gradient(135deg,#5d4df4,#17b9c8)}.ring{width:145px;height:145px;border-radius:50%;background:conic-gradient(var(--lime) calc(var(--p)*1%),rgba(255,255,255,.17) 0);display:grid;place-items:center}.ring:before{content:'';position:absolute}.ring>div{width:112px;height:112px;border-radius:50%;background:#5b54d7;display:grid;place-content:center;text-align:center}.ring strong{font:800 28px Manrope}.ring small{opacity:.8}.live-session{background:#101b3d;color:#fff;border-radius:22px;padding:25px;display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:18px 0}.timer{font:800 45px Manrope;color:var(--lime);margin-top:16px}.finish-form{display:grid;gap:12px}.finish-form textarea,.finish-form input{background:#202c55;border-color:#39466f;color:#fff}.action-panel{display:flex;justify-content:space-between;gap:30px;align-items:center}.action-panel>div{max-width:43%}.start-form{flex:1}.auth-wrap{min-height:calc(100vh - 100px);display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:60px;padding:7vw}.auth-copy h2{font:800 clamp(38px,5vw,72px) Manrope;line-height:1.02;margin:18px 0}.auth-copy p{font-size:18px;color:var(--muted);max-width:600px}.feature-row{display:flex;gap:20px;color:#4b5575;font-weight:700}.auth-card,.setup-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f0f2f8;border-radius:12px;padding:4px;margin-bottom:20px}.tabs button{border:0;background:transparent;padding:10px;border-radius:9px;font-weight:700}.tabs button.active{background:#fff;box-shadow:0 5px 16px rgba(20,30,70,.08)}.tab-panel{display:none;gap:14px}.tab-panel.active{display:grid}.setup{display:grid;place-items:center;min-height:100vh;padding:20px}.setup-card{max-width:760px;width:100%}.setup-card h1{font:800 34px Manrope}.alert{padding:13px 16px;border-radius:12px;margin:12px 0}.alert.success{background:#e8fff5;color:#087454}.alert.error{background:#ffe9e9;color:#9d2b2b}hr{border:0;border-top:1px solid var(--line)}footer{text-align:center;color:var(--muted);font-size:12px;margin-top:35px}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.nav-open .sidebar{transform:none}.main{margin-left:0;padding:18px}.menu-btn{display:block;border:0;background:none;font-size:22px}.stats-grid{grid-template-columns:1fr 1fr}.grid-2,.grid-2.uneven,.auth-wrap,.live-session{grid-template-columns:1fr}.review-grid{grid-template-columns:1fr}.action-panel{display:block}.action-panel>div{max-width:none;margin-bottom:20px}.sticky{position:static}.auth-wrap{padding:24px}.auth-copy h2{font-size:42px}.feature-row{flex-wrap:wrap}.student-hero{align-items:flex-start}.ring{width:110px;height:110px}.ring>div{width:84px;height:84px}.hero-card{align-items:flex-start;gap:20px}.hero-card h2,.student-hero h2{font-size:27px}}@media(max-width:560px){.stats-grid{grid-template-columns:1fr 1fr}.stats-grid article{padding:16px}.stats-grid strong{font-size:27px}.filters,.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.activity-card{display:block}.activity-card>div:last-child{display:flex;justify-content:space-between;margin-top:14px}.student-hero,.hero-card{display:block}.ring{margin-top:20px}.review-form{grid-template-columns:1fr}.review-form .wide{grid-column:auto}.topbar .eyebrow{display:none}}
/* Sistema SSO v2 */
.brand-logo{width:64px;height:40px;object-fit:contain;background:#fff;border-radius:10px;padding:3px}.notification-button{position:relative;text-decoration:none;font-size:20px}.notification-button b,.count{background:#ff5c5c;color:#fff;border-radius:999px;padding:2px 6px;font-size:10px}.mobile-nav{display:none}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.quick-actions a{background:#fff;border:1px solid #e6eaf2;border-radius:18px;padding:18px;text-decoration:none;color:#111b3f;font-weight:700;box-shadow:0 8px 24px #17234f0b}.notice-card{display:flex;gap:14px;padding:16px;border:1px solid #e7eaf0;border-radius:18px;background:#fff}.notice-card.unread{border-color:#6c5ce7;background:#f8f7ff}.notice-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#edf0ff}.student-tools{display:flex;gap:8px;flex-wrap:wrap}.import-box{padding:18px;border:1px dashed #aab3c5;border-radius:18px;background:#fafbfe}.progress-lg{height:12px;background:#e9edf5;border-radius:999px;overflow:hidden}.progress-lg i{display:block;height:100%;background:linear-gradient(90deg,#6558ff,#19b8a7)}
@media(max-width:760px){body{padding-bottom:78px}.sidebar{width:min(88vw,330px)}.main{padding:0 14px 90px}.topbar{padding:16px 2px;position:sticky;top:0;background:rgba(245,247,251,.92);backdrop-filter:blur(14px);z-index:20}.topbar h1{font-size:23px}.student-hero{padding:24px 20px;border-radius:24px;align-items:center}.student-hero h2{font-size:27px}.ring{width:110px;height:110px}.stats-grid,.student-stats{grid-template-columns:repeat(3,1fr);gap:8px}.stats-grid article{padding:14px 10px}.stats-grid strong{font-size:22px}.grid-2{grid-template-columns:1fr}.quick-actions{grid-template-columns:repeat(2,1fr)}.table-wrap table{min-width:720px}.panel{border-radius:22px;padding:18px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid #e7eaf2;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));justify-content:space-around}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:#24304f;text-decoration:none;font-size:19px;min-width:58px}.mobile-nav small{font-size:10px}.activity-card{align-items:flex-start}.live-session{grid-template-columns:1fr}.finish-form{width:100%}}

/* Correcciones visuales v3.1 */
html{overflow-x:hidden}body{overflow-x:hidden}.app-shell{width:100%;overflow-x:clip}
.sidebar{overflow:hidden}.brand{width:100%;min-width:0;align-items:center}.brand-logo-wrap{width:92px;height:54px;flex:0 0 92px;background:#fff;border-radius:14px;display:flex;align-items:center;justify-content:center;padding:7px;overflow:hidden}.brand-logo{display:block!important;width:100%!important;height:100%!important;max-width:78px!important;max-height:40px!important;object-fit:contain!important;background:transparent!important;border-radius:0!important;padding:0!important}.brand-copy{min-width:0}.brand-copy strong{font-size:15px;line-height:1.15}.brand-copy small{margin-top:3px}
.topbar{gap:16px;min-height:58px}.topbar-title{min-width:0;flex:1}.topbar-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}.notification-button{width:42px;height:42px;border-radius:13px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 7px 20px rgba(17,27,63,.05);position:relative}.notification-button b{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;display:grid;place-items:center;padding:0}.mobile-nav{list-style:none}.mobile-nav a{border-radius:14px;padding:6px 10px}.mobile-nav a:hover{background:#f1f3f9}.panel+.panel{margin-top:18px}footer{padding-bottom:10px}
@media(max-width:900px){.sidebar{box-shadow:25px 0 70px rgba(9,18,49,.22)}body.nav-open:after{content:'';position:fixed;inset:0;background:rgba(8,17,42,.38);z-index:19;backdrop-filter:blur(2px)}.sidebar{z-index:30}.topbar{z-index:18}.menu-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:#fff;flex:0 0 auto}.main{width:100%;max-width:100%}}
@media(max-width:760px){.main{padding:0 14px 96px}.topbar{margin:0 -14px 18px;padding:12px 14px;border-bottom:1px solid rgba(230,233,242,.9)}.topbar-title .eyebrow{display:none}.topbar-title h1{font-size:21px;margin:0}.topbar-actions{gap:8px}.notification-button,.avatar,.menu-btn{width:40px;height:40px}.sidebar{padding:22px 18px}.brand-logo-wrap{width:86px;height:50px;flex-basis:86px}.brand-logo{max-width:72px!important;max-height:36px!important}.mobile-nav{margin:0}.mobile-nav a{flex:1;min-width:0}.panel{width:100%;overflow:hidden}.panel-head{align-items:flex-start;gap:12px}.panel-head .btn{flex:0 0 auto}.notice-card{align-items:flex-start}.notice-card>div:last-child{min-width:0;overflow-wrap:anywhere}}
@media(max-width:420px){.topbar-actions .avatar{display:none}.panel-head{display:block}.panel-head .btn{margin-top:12px;width:100%}.mobile-nav small{font-size:9px}.sidebar{width:88vw}.brand{gap:10px}}
