:root{
  --red:#c41230;--red-dark:#a30f29;--teal:#00a7a0;--teal-dark:#008a85;--navy:#0c1b33;--navy-2:#152742;--gold:#e7bd13;
  --ink:#12233c;--muted:#65738a;--line:#dde3ea;--paper:#ffffff;--soft:#f4f7f9;--soft-blue:#edf4f7;--shadow:0 18px 45px rgba(13,28,48,.10);
  --radius:16px;--radius-sm:10px;--container:1500px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Segoe UI",Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.container{width:min(calc(100% - 48px),var(--container));margin-inline:auto}.eyebrow{margin:0 0 7px;font-size:12px;font-weight:800;letter-spacing:.18em;color:var(--red)}.eyebrow.light{color:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:8px;border:1px solid transparent;font-weight:800;line-height:1.1;transition:.2s ease;background:#fff}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--red),#d81737);color:#fff;box-shadow:0 8px 20px rgba(196,18,48,.18)}.btn-primary:hover{background:var(--red-dark)}.btn-outline{border-color:#aeb8c6;color:var(--navy);background:#fff}.btn-outline:hover{border-color:var(--red);color:var(--red)}.btn-wide{width:100%}.text-button{border:0;background:transparent;color:var(--red);font-weight:800;padding:8px}.link-danger{color:var(--red)!important}.empty-cell,.student-empty{padding:28px;text-align:center;color:var(--muted)}
/* Brand */
.brand{display:flex;align-items:center;gap:10px;min-width:260px}.brand-mark{width:50px;height:58px;object-fit:contain}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:31px;letter-spacing:.02em;color:#0c1422;border-bottom:3px solid #e32636;padding:0 2px 5px}.brand-copy small{font-size:9px;font-weight:800;letter-spacing:.015em;margin-top:4px;color:#101820}
/* Shared headers */
.site-header,.auth-header,.teacher-header,.student-header{background:#fff;border-bottom:1px solid #eceff3;position:relative;z-index:20}.header-inner{height:82px;display:flex;align-items:center;gap:28px}.top-nav,.teacher-top-nav,.student-nav{display:flex;align-items:center;gap:34px;margin-left:auto}.top-nav a,.teacher-top-nav a,.student-nav a{font-weight:700;color:#24324a;padding:30px 0 25px;border-bottom:3px solid transparent}.top-nav a:hover,.teacher-top-nav a:hover,.student-nav a:hover,.top-nav a.active,.teacher-top-nav a.active{color:var(--red);border-bottom-color:var(--red)}.header-motto{align-self:stretch;display:flex;align-items:center;margin-left:12px;padding:0 34px 0 52px;background:linear-gradient(135deg,transparent 24%,var(--red) 25%,#d41a38 100%);color:#fff;font-weight:800;max-width:260px}.teacher-identity{border-left:1px solid #cfd6df;padding-left:24px;font-size:14px;white-space:nowrap}.teacher-identity span{font-weight:800}.logout-form{margin:0}.student-identity{margin-left:auto;text-align:right;font-weight:700}.student-identity small{display:block;color:var(--muted);font-weight:600}.student-header .brand{min-width:245px}
/* Loading */
.loading-screen{position:fixed;inset:0;background:rgba(255,255,255,.98);z-index:999;display:flex;align-items:center;justify-content:center;transition:opacity .35s ease,visibility .35s}.loading-screen.is-hidden{opacity:0;visibility:hidden}.loading-inner{text-align:center;width:min(560px,85vw)}.loading-inner .brand{justify-content:center;margin:auto auto 28px;transform:scale(1.15)}.loading-inner h1{font-size:46px;margin:0;color:var(--navy)}.loading-inner>p{font-size:28px;margin:0 0 26px}.loading-track{height:9px;border-radius:100px;background:#dce1e6;overflow:hidden}.loading-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--red) 0 75%,var(--teal) 75%);animation:loadbar 1s ease forwards}.loading-inner small{display:block;margin-top:15px;font-size:16px;color:#344158}@keyframes loadbar{to{width:100%}}
/* Public home */
.home-hero{height:430px;position:relative;overflow:hidden;background:var(--navy)}.hero-photo{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(7,18,34,.93) 0%,rgba(7,18,34,.68) 40%,rgba(7,18,34,.10) 73%,rgba(7,18,34,.05)),url('../images/campus-home-field-hd.jpg');background-size:cover;background-position:center 48%}.hero-red-pattern{position:absolute;right:-80px;top:0;width:360px;height:100%;background:linear-gradient(145deg,rgba(196,18,48,.92),rgba(154,8,37,.98));clip-path:polygon(38% 0,100% 0,100% 100%,0 100%,30% 70%,14% 48%)}.hero-red-pattern:after{content:"";position:absolute;inset:0;background:linear-gradient(45deg,transparent 48%,rgba(255,255,255,.07) 49% 51%,transparent 52%);background-size:90px 90px}.hero-content{position:relative;height:100%;display:flex;align-items:center;justify-content:space-between;color:#fff}.hero-copy{max-width:700px}.hero-copy h1{font-size:65px;line-height:.98;margin:0;font-weight:900;letter-spacing:-.04em}.hero-copy h2{font-size:53px;font-weight:300;margin:2px 0 10px}.school-year{display:inline-block;background:var(--red);padding:6px 16px;font-size:24px;font-weight:800;margin:0 0 8px}.author-line{font-size:19px;font-weight:700;margin:0 0 17px}.hero-description{font-size:17px;color:#edf2f8;max-width:610px}.hero-message{position:absolute;right:20px;bottom:30px;text-align:right;max-width:270px;font-size:21px;z-index:3}.hero-message strong,.hero-message span{display:block}.hero-message span{font-size:28px;font-weight:300}.home-main{padding:30px 0 55px}.section-heading{text-align:center;margin-bottom:24px}.section-heading h2{font-size:30px;margin:0 0 2px;color:var(--navy)}.section-heading p{margin:0;color:var(--muted)}.grade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.grade-card{display:grid;grid-template-columns:58% 42%;min-height:165px;border:1px solid #e1e6ec;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(18,35,60,.07);transition:.2s}.grade-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.grade-photo{background-size:cover;background-position:center}.photo-group{background-image:linear-gradient(rgba(12,27,51,.08),rgba(12,27,51,.16)),url('../images/campus-grado1-final.jpg')}.photo-rampa{background-image:linear-gradient(rgba(12,27,51,.04),rgba(12,27,51,.08)),url('../images/campus-grado2-final.jpg')}.photo-patio{background-image:linear-gradient(rgba(12,27,51,.05),rgba(12,27,51,.10)),url('../images/campus-grado3-final.jpg')}.grade-info{padding:24px 20px;display:flex;flex-direction:column;justify-content:center;border-right:5px solid var(--red)}.grade-card.teal .grade-info{border-right-color:var(--teal)}.grade-card.gold .grade-info{border-right-color:var(--gold)}.grade-info span{font-size:42px;font-weight:900;line-height:.9}.grade-info strong{font-size:21px}.grade-info em{font-style:normal;margin-top:17px;background:var(--red);color:#fff;text-align:center;padding:9px;border-radius:7px;font-weight:800}.home-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:24px}.info-box{position:relative;border:1px solid var(--line);border-radius:12px;padding:24px;background:#fff}.info-accent{position:absolute;left:20px;top:20px;width:4px;height:34px}.red-bg{background:var(--red)}.teal-bg{background:var(--teal)}.gold-bg{background:var(--gold)}.info-box h3{margin:0 0 8px 14px}.info-box p{margin:0 0 0 14px;color:var(--muted)}.home-actions{display:flex;justify-content:center;gap:12px;margin-top:32px}.site-footer{background:linear-gradient(110deg,#a70b27,var(--red) 58%,var(--teal) 58.2%,var(--teal-dark));color:#fff}.footer-grid{min-height:80px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:24px}.footer-grid div{display:flex;flex-direction:column}.footer-grid div strong{font-family:Georgia,serif;font-size:20px}.footer-grid div small{font-size:9px}.footer-grid p{margin:0;text-align:center;font-size:13px;letter-spacing:.06em}.footer-grid p:last-child{text-align:right}
/* Auth */
.auth-body{min-height:100vh;background:#f5f7f9;display:flex;flex-direction:column}.auth-header .header-inner{height:94px}.auth-main{flex:1;display:grid;grid-template-columns:55% 45%;min-height:680px}.auth-visual{position:relative;background-size:cover;background-position:center;overflow:hidden}.teacher-login-visual{background-image:url('../images/campus-docente-final.jpg')}.student-login-visual{background-image:url('../images/campus-alumno-hd.jpg')}.auth-visual-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,25,42,.75),rgba(8,25,42,.18) 78%,rgba(8,25,42,.02))}.auth-visual:before{content:"";position:absolute;left:0;top:0;width:145px;height:100%;background:linear-gradient(160deg,var(--teal),rgba(0,167,160,.72) 37%,transparent 37%);z-index:2}.auth-visual-copy{position:absolute;left:6.5%;top:18%;z-index:3;color:#fff;max-width:590px}.auth-visual-copy h1{font-size:54px;line-height:1.05;margin:0 0 17px;font-weight:900;letter-spacing:-.03em}.auth-visual-copy p{font-size:18px;max-width:520px}.short-red-line{display:block;width:100px;height:6px;background:var(--red);margin:20px 0 24px}.auth-panel-wrap{display:flex;align-items:center;justify-content:center;padding:36px;background:linear-gradient(135deg,#f4f6f8,#fff)}.auth-panel{width:min(650px,100%);background:#fff;border:1px solid #e0e4e9;border-radius:16px;box-shadow:var(--shadow);padding:40px 50px}.auth-panel-brand{display:flex;justify-content:center;margin-bottom:18px}.auth-panel-brand .brand{justify-content:center;transform:scale(.92)}.auth-panel>h1{text-align:center;font-size:38px;margin:4px 0 0;color:var(--navy)}.auth-subtitle{text-align:center;font-size:20px;margin:0;color:#30405a}.named-divider{display:flex;align-items:center;gap:14px;margin:18px 0 24px}.named-divider span{height:1px;background:#d9dee5;flex:1}.named-divider em{font-style:normal;color:var(--muted)}.stack-form{display:flex;flex-direction:column;gap:16px}.stack-form label,.resource-form label,.filter-form label{font-weight:800;color:var(--navy);font-size:14px;display:flex;flex-direction:column;gap:7px}.stack-form input,.resource-form input,.resource-form select,.resource-form textarea,.filter-form input,.filter-form select{width:100%;border:1px solid #cbd3dd;border-radius:7px;padding:12px 13px;background:#fff;color:var(--ink);outline:none}.stack-form input:focus,.resource-form input:focus,.resource-form select:focus,.resource-form textarea:focus,.filter-form input:focus,.filter-form select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,167,160,.11)}.resource-form textarea{resize:vertical}.resource-form small,.stack-form small{font-weight:500;color:var(--muted)}.auth-security-note{margin-top:22px;padding-top:20px;border-top:1px solid #dce1e7;text-align:center;color:var(--muted)}.auth-security-note strong{color:var(--navy)}.auth-security-note p{margin:5px 0 0}.auth-switch{display:block;text-align:center;margin-top:16px;color:var(--red);font-weight:800}.student-help{text-align:center;color:var(--muted);font-size:14px}.auth-footer{min-height:58px;background:linear-gradient(110deg,var(--red),#ad0d2b 80%,var(--teal) 80.2%);color:#fff;display:flex;justify-content:center;align-items:center;gap:70px;font-size:13px;letter-spacing:.09em}
/* Teacher */
.teacher-body{background:#f5f7f9;min-height:100vh}.teacher-header{position:sticky;top:0}.teacher-header .header-inner{height:70px}.teacher-header .brand{min-width:230px;transform:scale(.85);transform-origin:left center}.teacher-top-nav{gap:28px;margin-left:20px}.teacher-top-nav a{padding:24px 0 20px}.teacher-hero-strip{position:relative;background:linear-gradient(90deg,rgba(7,24,42,.92),rgba(7,24,42,.73)),url('../images/campus-docente-final.jpg');background-size:cover;background-position:center 49%;color:#fff}.teacher-hero-strip:before{content:"";position:absolute;left:0;top:0;width:110px;height:100%;background:linear-gradient(145deg,var(--teal) 0 35%,transparent 36%)}.teacher-hero-strip .container{padding:35px 48px}.teacher-hero-strip h1{font-size:39px;margin:0;letter-spacing:-.02em}.teacher-hero-strip p{margin:4px 0 0;color:#eff5f7;font-size:17px}.teacher-main{padding:20px 0 40px}.teacher-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px}.teacher-sidebar{display:flex;flex-direction:column;gap:20px}.side-menu,.side-quick{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.side-menu a{display:block;padding:15px 18px;border-bottom:1px solid #edf0f3;font-weight:700}.side-menu a:last-child{border-bottom:0}.side-menu a:hover{background:#f8fafb;color:var(--red)}.side-menu a.active{background:linear-gradient(100deg,var(--red),#a70d2a);color:#fff}.side-quick{padding:19px;background:linear-gradient(135deg,#f4f9fb,#eef6f7)}.side-quick a{display:block;padding:8px 0;border-bottom:1px solid #dbe4e7;font-weight:700}.side-quick a:last-child{border-bottom:0}.teacher-content{min-width:0;display:flex;flex-direction:column;gap:15px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card{background:#fff;border:1px solid #e1e6ed;border-radius:9px;padding:17px 22px;position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--red)}.stat-card.teal-stat:before{background:var(--teal)}.stat-card.navy-stat:before{background:var(--navy)}.stat-card span{display:block;font-weight:700;color:#33445e}.stat-card strong{display:block;font-size:38px;color:var(--red);line-height:1.1;margin-top:6px}.stat-card.teal-stat strong{color:var(--teal-dark)}.stat-card.navy-stat strong{color:var(--navy)}.panel-card{background:#fff;border:1px solid #dde3e9;border-radius:10px;box-shadow:0 3px 12px rgba(16,35,59,.04);padding:18px}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.85fr);gap:15px}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #dfe5eb;padding-bottom:10px;margin-bottom:14px}.panel-title h2,.panel-title h3{margin:0}.panel-title a{color:var(--red);font-weight:800;font-size:14px}.form-grid{display:grid;gap:15px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:repeat(3,1fr)}.resource-form{display:flex;flex-direction:column;gap:14px}.group-select{border:1px solid #d8dfe7;border-radius:8px;padding:12px 14px}.group-select legend{font-size:13px;font-weight:800;color:var(--navy);padding:0 5px}.check-row{display:flex;gap:16px;flex-wrap:wrap}.check-row label,.inline-check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;font-weight:700!important}.check-row input,.inline-check input{width:auto!important}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.preview-card .preview-photo{height:165px;background:url('../images/campus-preview-final.jpg') center 43%/cover;border-radius:7px;margin:10px 0}.preview-card h3{font-size:23px;margin:8px 0 2px}.preview-card p{color:var(--muted);margin:0 0 14px}.preview-button{display:block;background:var(--red);color:#fff;text-align:center;padding:10px;border-radius:6px;font-weight:800}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;font-size:13px;min-width:780px}.table-wrap th{background:#f0f4f7;color:#253650;text-align:left;padding:10px;font-weight:800;border-bottom:1px solid #d9e0e7}.table-wrap td{padding:10px;border-bottom:1px solid #e5e9ee;vertical-align:middle}.table-wrap tbody tr:hover{background:#fbfcfd}.cell-sub{display:block;color:var(--muted);font-size:11px;margin-top:3px}.status-pill{display:inline-flex;padding:4px 10px;border-radius:100px;font-size:11px;font-weight:800}.status-pill.published{background:#d8f4e6;color:#10663f}.status-pill.draft{background:#fde5e8;color:#9d1832}.row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row-actions a,.row-actions button{border:0;background:transparent;padding:0;font-weight:800;color:#273852;font-size:12px}.page-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px}.page-actions h2{margin:0;font-size:27px}.page-actions p:last-child{margin:3px 0 0;color:var(--muted)}.filter-card{padding:12px 16px}.filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filter-form label{min-width:170px;flex:1}.filter-form .btn{min-height:42px}.form-card{padding:25px}.current-file{display:block;padding:9px 10px;background:#f2f5f7;border-radius:6px;color:var(--navy);font-weight:600}.notice-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.notice-admin-card{display:flex;flex-direction:column;gap:10px}.notice-admin-card h3{margin:0;font-size:21px}.notice-admin-card p{margin:0;color:#3c4a60}.notice-top{display:flex;justify-content:space-between}.notice-groups{font-size:12px;color:var(--muted);padding-top:10px;border-top:1px solid #e4e8ec}.empty-state{text-align:center;padding:50px}.teacher-footer{background:linear-gradient(110deg,var(--red),#ad0d2b 77%,var(--teal) 77.2%);color:#fff}.teacher-footer .container{min-height:48px;display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.07em}
/* Student */
.student-body{background:#f7f8fa}.student-header{position:sticky;top:0;z-index:40}.student-header .header-inner{height:74px}.student-header .brand{transform:scale(.82);transform-origin:left center}.student-nav{margin-left:30px}.student-nav a{padding:27px 0 22px}.student-main{min-height:calc(100vh - 135px)}.student-hero{background:linear-gradient(90deg,rgba(8,25,44,.94),rgba(8,25,44,.68) 50%,rgba(8,25,44,.18)),url('../images/campus-alumno-hd.jpg');background-size:cover;background-position:center 55%;color:#fff;padding:56px 0}.student-hero.compact{padding:38px 0}.student-hero h1{font-size:48px;margin:0 0 2px}.student-hero p{font-size:18px;margin:0}.student-hero span{display:block;margin-top:14px;color:#eaf0f4}.student-content{padding:28px 0 48px}.student-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:15px}.student-heading h2{margin:0;font-size:29px}.student-heading p{margin:2px 0 0;color:var(--muted)}.student-heading>a:not(.btn){color:var(--red);font-weight:800}.student-resource-list{display:flex;flex-direction:column;gap:11px}.student-resource-card{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:16px;align-items:center;background:#fff;border:1px solid #dfe5ea;border-radius:10px;padding:16px;box-shadow:0 3px 12px rgba(12,27,51,.04)}.resource-number{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:7px;background:var(--red);color:#fff;font-size:21px;font-weight:900}.student-resource-card:nth-child(3n+2) .resource-number{background:var(--teal-dark)}.student-resource-card:nth-child(3n) .resource-number{background:#d2a800}.resource-copy h3{font-size:20px;margin:0}.resource-copy p{margin:3px 0;color:#536178}.resource-copy small{color:var(--muted)}.resource-type{font-size:10px!important;letter-spacing:.16em;font-weight:900;color:var(--red)!important}.resource-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.instruction-only{font-size:12px;font-weight:800;color:var(--muted)}.student-notice-section{margin-top:34px}.notice-list{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.notice-list.large{grid-template-columns:repeat(2,1fr)}.notice-list article{display:flex;gap:13px;background:#fff;border:1px solid #e1e6eb;border-radius:10px;padding:18px}.notice-list article>span{width:4px;flex:0 0 4px;background:var(--teal)}.notice-list article:nth-child(2n)>span{background:var(--red)}.notice-list h3{margin:0 0 5px}.notice-list p{margin:0 0 8px;color:#536178}.notice-list small{color:var(--muted)}.resource-filter{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.resource-filter a{background:#fff;border:1px solid #cfd7df;border-radius:7px;padding:9px 16px;font-weight:800}.resource-filter a.active{background:var(--red);border-color:var(--red);color:#fff}.student-footer{background:linear-gradient(110deg,var(--red),#ab0c2a 78%,var(--teal) 78.2%);color:#fff}.student-footer .container{min-height:55px;display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.07em}
/* Account & error */
.account-body,.error-body{min-height:100vh;background:linear-gradient(135deg,#f3f6f8,#fff)}.account-main,.error-main{min-height:calc(100vh - 94px);display:flex;align-items:center;justify-content:center;padding:40px}.account-card,.error-card{width:min(620px,100%);background:#fff;border:1px solid #dde3e9;border-radius:14px;box-shadow:var(--shadow);padding:38px}.account-card h1,.error-card h1{font-size:36px;margin:0 0 10px}.account-intro,.error-message{color:var(--muted);font-size:17px}.error-code{font-size:64px;font-weight:900;color:var(--red);margin:0;line-height:1}.error-reference{background:#f3f6f8;border-left:4px solid var(--teal);padding:12px 15px;margin:20px 0;display:flex;flex-direction:column}.error-reference span{font-size:11px;letter-spacing:.12em;color:var(--muted)}.error-reference strong{font-size:17px}.install-card{width:min(700px,100%)}
/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(8,19,34,.56);z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;visibility:hidden;transition:.2s}.modal-backdrop.is-open{opacity:1;visibility:visible}.modal-card{width:min(540px,100%);background:#fff;border-radius:14px;box-shadow:0 28px 80px rgba(6,18,33,.35);padding:30px;transform:translateY(8px);transition:.2s}.is-open .modal-card{transform:none}.modal-rule{width:70px;height:5px;background:var(--red);margin-bottom:18px}.modal-success .modal-rule{background:var(--teal)}.modal-card h2{margin:0 0 8px;font-size:28px}.modal-message{font-size:16px;color:#48566a;white-space:pre-line}.modal-details{background:#f5f7f9;padding:10px 12px;border-radius:7px;margin:12px 0}.modal-details p{margin:3px 0;font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
/* Responsive */
@media(max-width:1200px){.header-motto{display:none}.teacher-identity{display:none}.grade-grid{grid-template-columns:1fr}.home-info-grid{grid-template-columns:1fr}.teacher-layout{grid-template-columns:210px minmax(0,1fr)}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-columns{grid-template-columns:1fr}.auth-main{grid-template-columns:48% 52%}.auth-panel{padding:32px}.notice-list{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.container{width:min(calc(100% - 28px),var(--container))}.site-header .header-inner,.teacher-header .header-inner,.student-header .header-inner{height:auto;min-height:72px;flex-wrap:wrap;padding:9px 0}.top-nav,.teacher-top-nav,.student-nav{order:3;width:100%;margin:0;overflow:auto;gap:22px}.top-nav a,.teacher-top-nav a,.student-nav a{padding:8px 0}.brand{min-width:210px}.brand-copy strong{font-size:25px}.brand-mark{width:42px;height:48px}.home-hero{height:510px}.hero-red-pattern{width:220px}.hero-copy h1{font-size:50px}.hero-copy h2{font-size:42px}.hero-message{display:none}.auth-main{grid-template-columns:1fr}.auth-visual{min-height:330px}.auth-visual-copy{top:15%}.auth-visual-copy h1{font-size:42px}.auth-panel-wrap{padding:22px}.teacher-hero-strip .container{padding:26px 20px}.teacher-layout{grid-template-columns:1fr}.teacher-sidebar{display:none}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.notice-admin-grid{grid-template-columns:1fr}.student-resource-card{grid-template-columns:60px 1fr}.resource-actions{grid-column:2;justify-content:flex-start}.notice-list,.notice-list.large{grid-template-columns:1fr}.student-identity{display:none}}
@media(max-width:600px){.container{width:min(calc(100% - 20px),var(--container))}.site-header .brand{transform:scale(.9);transform-origin:left}.top-nav{font-size:13px}.home-hero{height:470px}.hero-content{align-items:flex-end;padding-bottom:42px}.hero-copy h1{font-size:40px}.hero-copy h2{font-size:34px}.school-year{font-size:18px}.hero-description{font-size:14px}.hero-red-pattern{right:-130px}.grade-card{grid-template-columns:46% 54%;min-height:145px}.grade-info span{font-size:34px}.home-info-grid{display:none}.footer-grid{grid-template-columns:1fr;text-align:center;padding:18px 0}.footer-grid p,.footer-grid p:last-child{text-align:center}.auth-header .header-inner{height:78px}.auth-header .brand{transform:scale(.82);transform-origin:left}.auth-main{min-height:auto}.auth-visual{min-height:250px}.auth-visual:before{width:85px}.auth-visual-copy h1{font-size:34px}.auth-visual-copy p{font-size:14px}.auth-panel{padding:25px 20px}.auth-panel>h1{font-size:31px}.auth-footer{gap:15px;flex-direction:column;padding:14px;text-align:center}.stat-grid{grid-template-columns:1fr 1fr}.stat-card{padding:14px}.stat-card strong{font-size:30px}.page-actions{align-items:flex-start;flex-direction:column}.student-hero h1{font-size:37px}.student-heading{align-items:flex-start;flex-direction:column}.student-resource-card{grid-template-columns:50px 1fr;padding:12px}.resource-number{width:44px;height:44px}.resource-actions .btn{width:100%}.student-footer .container{gap:8px;flex-direction:column;padding:12px}.modal-card{padding:24px}.account-main,.error-main{padding:20px}.account-card,.error-card{padding:26px 20px}}
.actions-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.page-actions.compact{padding:12px 16px}.helper-text{margin:12px 0 0;color:#3e556f;font-size:13px}.success-text{color:#10663f}.error-text{color:#9d1832}.presence-group{display:flex;gap:8px;flex-wrap:wrap}.presence-group label{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700}.conduct-input,.grade-input,.grade-comment-input{width:100%;min-width:90px}.download-chip{display:inline-flex;padding:4px 10px;border-radius:100px;font-size:11px;font-weight:800}.download-chip.downloaded{background:#d8f4e6;color:#10663f}.download-chip.pending{background:#fff1d9;color:#9e5d00}.muted{color:var(--muted)}textarea[readonly]{background:#f5f7f9}.filter-form label small{display:block}
/* Lista interna y exportador seguro */
.form-grid.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.export-warning{border-left:5px solid var(--red);background:#fff}.export-warning strong{font-size:17px}.export-warning p{margin:5px 0 0;color:var(--muted)}.export-date-grid{margin-top:4px}.safe-segment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.safe-segment-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff;box-shadow:0 4px 16px rgba(12,27,51,.04)}.safe-segment-card h3{margin:0 0 4px;font-size:19px}.safe-segment-card p{margin:0 0 10px;color:var(--muted)}.export-textarea{width:100%;min-height:125px;resize:vertical;font-family:Consolas,"Courier New",monospace;font-size:12px;white-space:pre;overflow:auto}.monthly-summary-input{min-width:95px;width:100%}.presence-group input{accent-color:var(--red)}.presence-group label{padding:6px 7px;border:1px solid #d6dde5;border-radius:6px;background:#fff}.presence-group label:has(input:checked){border-color:var(--red);box-shadow:0 0 0 1px var(--red)}
@media(max-width:1000px){.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.safe-segment-grid{grid-template-columns:1fr}}
@media(max-width:650px){.form-grid.four{grid-template-columns:1fr}.safe-segment-card{padding:14px}.presence-group{min-width:180px}.teacher-content .table-wrap table{min-width:760px}.teacher-content .table-wrap th:nth-child(2),.teacher-content .table-wrap td:nth-child(2){position:sticky;left:0;background:#fff;z-index:2;box-shadow:2px 0 0 #e6ebef}}


/* =========================================================
   PARCHE VISUAL SEGURO V2 · 2026-09-06
   - Sin fotografías grupales de alumnos
   - Cache busting aplicado desde layouts
   - Protección contra texto cortado/desbordado
   ========================================================= */
.header-inner>*{min-width:0}
.brand{flex:0 0 auto}
.top-nav,.teacher-top-nav,.student-nav{min-width:0}
.header-motto{flex:0 0 260px;min-width:220px;white-space:normal;line-height:1.2}
.hero-copy,.hero-message,.section-heading,.grade-info,.page-actions>*,.panel-title>*{min-width:0}
.hero-copy h1,.hero-copy h2,.section-heading h2,.grade-info span,.grade-info strong,.grade-info em,.teacher-hero-strip h1,.teacher-hero-strip p,.auth-visual-copy h1,.auth-visual-copy p,.page-actions h2,.page-actions p{overflow-wrap:break-word;word-break:normal}
.hero-copy h1{font-size:clamp(42px,4.1vw,65px)}
.hero-copy h2{font-size:clamp(34px,3.4vw,53px)}
.section-heading h2{font-size:clamp(24px,2.1vw,30px);line-height:1.15}
.grade-info span{font-size:clamp(34px,2.6vw,42px)}
.grade-info strong{font-size:clamp(18px,1.4vw,21px)}
.grade-info em{white-space:normal;line-height:1.15;padding-inline:10px}
.grade-card{grid-template-columns:minmax(0,58%) minmax(0,42%)}
.grade-photo{min-width:0}
.teacher-top-nav a,.top-nav a,.student-nav a{white-space:nowrap}
.preview-card .preview-photo{background-image:url('../images/campus-preview-final.jpg');background-position:center 50%}
@media(max-width:1320px){.header-motto{display:none}}
@media(max-width:1100px){.teacher-identity{display:none}.teacher-top-nav{gap:20px}.teacher-header .brand{min-width:200px}}
@media(max-width:900px){
  .top-nav,.teacher-top-nav,.student-nav{scrollbar-width:thin;overflow-x:auto;overflow-y:hidden;padding-bottom:2px}
  .home-hero{height:auto;min-height:470px}
  .hero-content{padding-block:54px}
  .grade-card{grid-template-columns:minmax(0,48%) minmax(0,52%)}
}
@media(max-width:600px){
  .home-hero{min-height:450px}
  .hero-content{padding-block:34px 42px}
  .hero-copy{max-width:88%}
  .grade-card{grid-template-columns:minmax(0,44%) minmax(0,56%)}
  .grade-info{padding:18px 14px}
  .grade-info em{margin-top:12px;font-size:14px}
  .school-year{max-width:100%;white-space:normal}
}


/* ===== Yoliztli v3: avisos públicos + imágenes HD ===== */
.home-hero{height:540px;min-height:540px}
.hero-photo{background-position:center 58%}
.hero-copy{max-width:760px}
.hero-copy h1{font-size:72px}
.hero-copy h2{font-size:58px}
.hero-description{font-size:18px;max-width:650px}
.grade-card{min-height:190px}
.grade-photo{background-position:center center}

.public-notice-preview{margin-top:30px;padding:26px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#fbfcfd)}
.public-notice-heading,.public-notices-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.public-notice-heading h2,.public-notices-toolbar h2{margin:0;color:var(--navy);font-size:29px}
.public-notice-heading p,.public-notices-toolbar p{margin:4px 0 0;color:var(--muted)}
.public-notice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.public-notice-card{position:relative;display:flex;gap:14px;background:#fff;border:1px solid #dde4ea;border-radius:11px;padding:18px;min-width:0;box-shadow:0 4px 16px rgba(12,27,51,.04)}
.public-notice-card.empty{display:block;grid-column:1/-1;text-align:center;color:var(--muted)}
.public-notice-card.empty h3{color:var(--navy)}
.public-notice-accent{width:5px;flex:0 0 5px;border-radius:4px;background:var(--red)}
.public-notice-card:nth-child(3n+2) .public-notice-accent{background:var(--teal)}
.public-notice-card:nth-child(3n) .public-notice-accent{background:var(--gold)}
.public-notice-card small{color:var(--muted);font-weight:700}
.public-notice-card h3{margin:5px 0 8px;font-size:20px;color:var(--navy);overflow-wrap:anywhere}
.public-notice-card p{margin:0;color:#435169;line-height:1.55;overflow-wrap:anywhere}
.public-notices-page{min-height:calc(100vh - 162px);background:#f7f9fb}
.public-notices-hero{background:linear-gradient(90deg,rgba(8,25,44,.94),rgba(8,25,44,.52)),url('../images/campus-home-field-hd.jpg') center 60%/cover;color:#fff;padding:58px 0}
.public-notices-hero h1{font-size:50px;margin:0 0 6px}
.public-notices-hero p:last-child{font-size:18px;margin:0;color:#eef3f7}
.public-notices-content{padding:30px 0 50px}
.public-notice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.public-notice-card-full{min-height:160px}
.group-select-help{margin:0 0 10px;color:var(--muted);font-size:12px}

.student-login-visual{background-position:center 52%}
.student-hero{background-position:center 52%}

@media(max-width:1200px){
  .home-hero{height:500px;min-height:500px}
  .hero-copy h1{font-size:62px}
  .hero-copy h2{font-size:50px}
  .public-notice-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .home-hero{height:auto;min-height:520px}
  .hero-copy h1{font-size:52px}
  .hero-copy h2{font-size:44px}
  .public-notice-heading,.public-notices-toolbar{align-items:flex-start;flex-direction:column}
  .public-notice-grid,.public-notice-list{grid-template-columns:1fr}
}
@media(max-width:600px){
  .home-hero{min-height:500px}
  .hero-copy h1{font-size:42px}
  .hero-copy h2{font-size:35px}
  .public-notice-preview{padding:18px}
  .public-notices-hero{padding:40px 0}
  .public-notices-hero h1{font-size:38px}
}

/* === Mejora 2026-09 · Vista como alumno + navegación semanal === */
.student-preview-bar{background:#071d34;color:#fff;border-bottom:3px solid var(--red);padding:10px 0}
.student-preview-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.student-preview-inner>div:first-child{display:flex;align-items:baseline;gap:12px;min-width:0}
.student-preview-inner strong{font-size:14px;white-space:nowrap}
.student-preview-inner span{font-size:13px;color:#dce7f0;overflow-wrap:anywhere}
.student-preview-actions{display:flex;align-items:center;gap:14px;white-space:nowrap}
.student-preview-actions a{color:#fff;text-decoration:underline;text-underline-offset:3px;font-weight:800;font-size:13px}
.student-preview-mode .student-header{top:0}

.week-navigator-card{padding:16px 18px}
.week-navigator{display:grid;grid-template-columns:auto minmax(240px,1fr) auto;align-items:center;gap:18px}
.week-current{text-align:center;display:flex;flex-direction:column;gap:3px}
.week-current span{font-size:11px;letter-spacing:.14em;font-weight:900;color:var(--red)}
.week-current strong{font-size:20px;color:var(--navy)}
.week-current small{font-size:12px;color:#a11b2c;font-weight:700}
.attendance-legend-card{padding:12px 18px}
.attendance-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.attendance-legend strong{color:var(--navy)}
.attendance-legend b{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border:1px solid #d6dee7;border-radius:7px;background:#fff;color:var(--navy);margin-right:5px}
.btn-compact{padding:8px 12px;min-height:auto;font-size:12px}

@media(max-width:900px){
  .student-preview-inner{align-items:flex-start;flex-direction:column;gap:8px}
  .student-preview-inner>div:first-child{align-items:flex-start;flex-direction:column;gap:2px}
  .student-preview-actions{white-space:normal;flex-wrap:wrap}
  .week-navigator{grid-template-columns:1fr 1fr}
  .week-current{grid-column:1/-1;grid-row:1;text-align:left}
  .week-navigator>a{width:100%;text-align:center}
}
@media(max-width:600px){
  .week-navigator{grid-template-columns:1fr}
  .week-current{grid-column:auto}
  .attendance-legend{gap:10px}
}

/* === Mejora 2026-09 v5 · disponibilidad clara de recursos === */
.status-pill.available{background:#d8f4e6;color:#10663f}
.status-pill.scheduled{background:#e8f1ff;color:#24559a}
.status-pill.expired{background:#f0f1f3;color:#5d6674}
.status-pill.draft{background:#fde5e8;color:#9d1832}
.availability-detail{max-width:260px;line-height:1.35}
.resource-status-guide{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:13px 16px;color:#445269;font-size:12px}
.resource-status-guide>strong{color:var(--navy);font-size:13px;margin-right:4px}
.resource-status-guide>span{display:inline-flex;align-items:center;gap:6px}
.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 9px}
.available-dot{background:#1a9b64}.scheduled-dot{background:#4c7fc8}.expired-dot{background:#7f8791}.draft-dot{background:#c51638}
.resource-availability-box{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid #dbe3ea;border-radius:10px;background:linear-gradient(135deg,#f8fbfc,#fff)}
.resource-availability-box>div{min-width:0}
.resource-availability-box strong{display:inline-block;margin-left:8px;color:var(--navy);font-size:14px}
.resource-availability-box p{margin:6px 0 0;color:#536178;font-size:13px;line-height:1.45}
.quick-publish-note{margin:0;padding:10px 12px;border-radius:8px;background:#f3f8f8;color:#415267;font-size:12px;border-left:4px solid var(--teal)}
.preview-button{text-decoration:none}
@media(max-width:760px){
  .resource-availability-box{align-items:flex-start;flex-direction:column}
  .resource-status-guide{align-items:flex-start;flex-direction:column;gap:8px}
}

/* ===== Yoliztli v6 · Descargas, entregas y proyector ===== */
.submission-settings{margin:22px 0;padding:20px;border:1px solid #dbe5ee;border-radius:16px;background:#f8fbfd}.submission-settings-head{display:flex;gap:24px;align-items:center;justify-content:space-between}.submission-settings-head p{margin:.25rem 0 0;color:#5f7185}.toggle-check{display:flex;align-items:center;gap:10px;font-weight:800;white-space:nowrap}.toggle-check input,.submission-late-check input{width:20px;height:20px}.submission-settings-fields{margin-top:16px}.submission-settings.is-disabled .submission-settings-fields{opacity:.42;pointer-events:none}.submission-late-check{align-self:end;min-height:50px;display:flex;align-items:center;gap:10px;font-weight:700}
.assignment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.assignment-card{background:#fff;border:1px solid #dde6ef;border-radius:18px;padding:20px;box-shadow:0 12px 30px rgba(8,31,55,.06);display:flex;flex-direction:column;gap:12px}.assignment-card h3{margin:0;color:#0b2748}.assignment-card p{margin:0;color:#617388}.assignment-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.85rem;color:#64758a}.assignment-progress{display:flex;align-items:baseline;gap:8px;margin-top:auto}.assignment-progress strong{font-size:2rem;color:#cf1733}.assignment-progress span{color:#65768a}.card-actions{display:flex;flex-wrap:wrap;gap:10px}.grade-inline-form{display:grid;grid-template-columns:82px minmax(130px,1fr) auto;gap:8px;align-items:center}.grade-inline-form input{min-width:0}.student-comment{display:block;margin-top:6px;color:#607187}.muted-note{color:#7a8897;font-size:.85rem}
.assignment-detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.8fr);gap:24px;align-items:start}.assignment-instructions,.submission-panel{padding:26px}.assignment-detail-meta{display:flex;flex-wrap:wrap;gap:10px 20px;color:#617388;margin-bottom:18px}.submission-panel{position:sticky;top:90px}.big-score{font-size:3rem;font-weight:900;color:#0a2d52;margin:14px 0}.big-score small{font-size:1rem;color:#718197}.submitted-file,.feedback-box,.info-box,.warning-box{display:grid;gap:6px;padding:14px;border-radius:12px;margin:14px 0}.submitted-file,.info-box{background:#eef7f7}.feedback-box{background:#f1f6fb}.warning-box{background:#fff3e8;border:1px solid #f1c79e}.submission-form{margin-top:16px}.btn-wide{width:100%}.student-delivery-state{margin-top:10px}
.download-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.download-summary article{background:#fff;border:1px solid #dde6ef;border-radius:14px;padding:18px}.download-summary span{display:block;color:#68798c;font-size:.85rem}.download-summary strong{display:block;font-size:2rem;color:#0b2e54;margin-top:4px}
.projector-body{margin:0;background:#f5f8fb;color:#08284a;font-family:inherit}.projector-shell{min-height:100vh;display:flex;flex-direction:column}.projector-toolbar{display:flex;align-items:center;gap:20px;padding:14px 24px;background:#fff;border-bottom:3px solid #d81c2f;box-shadow:0 4px 18px rgba(10,39,70,.08)}.projector-brand{display:flex;align-items:center;gap:18px;margin-right:auto}.projector-brand .brand{transform:scale(.92);transform-origin:left center}.projector-brand>div{display:grid}.projector-brand span{color:#68798b;font-size:.86rem}.projector-group-form{display:flex;align-items:end;gap:8px}.projector-group-form label{font-weight:800}.projector-group-form select{min-width:140px}.projector-actions{display:flex;gap:8px;flex-wrap:wrap}.projector-stage{flex:1;display:grid;place-items:center;position:relative;padding:40px}.projector-counter{position:absolute;top:24px;right:30px;font-weight:900;color:#8593a2}.projector-slides{width:min(1180px,92vw)}.projector-card{display:none;text-align:center;background:#fff;border-radius:28px;padding:54px 40px;box-shadow:0 22px 60px rgba(11,42,75,.12);border:1px solid #e1e8ef}.projector-card.is-active{display:block}.projector-list-number{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#d81c2f;color:#fff;font-size:1.6rem;font-weight:900}.projector-card h1{font-size:clamp(2.4rem,5vw,5.8rem);line-height:1.02;margin:24px auto 20px;max-width:1000px}.projector-username{font-size:clamp(3.2rem,8vw,8.5rem);font-weight:1000;letter-spacing:.02em;color:#008e90;line-height:1}.projector-card p{font-size:1.5rem;color:#68798b}.projector-nav{display:flex;justify-content:center;gap:14px;margin-top:26px}.projector-list-view{padding:28px;min-height:calc(100vh - 90px)}.projector-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.projector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.projector-grid article{display:grid;grid-template-columns:52px 1fr auto;gap:14px;align-items:center;background:#fff;border:1px solid #dde6ef;border-radius:14px;padding:14px 18px}.projector-grid article>span{font-weight:900;color:#d81c2f}.projector-grid strong{font-size:1.1rem}.projector-grid code{font-size:1.35rem;font-weight:900;color:#008e90;background:#edf8f8;padding:6px 10px;border-radius:8px}.projector-body:fullscreen .projector-toolbar{padding-top:20px}.projector-body:fullscreen .projector-card{box-shadow:none}
@media(max-width:1000px){.assignment-grid{grid-template-columns:1fr 1fr}.assignment-detail-layout{grid-template-columns:1fr}.submission-panel{position:static}.download-summary{grid-template-columns:1fr 1fr}.projector-toolbar{align-items:flex-start;flex-wrap:wrap}.projector-brand{width:100%}.projector-grid{grid-template-columns:1fr}}
@media(max-width:680px){.assignment-grid{grid-template-columns:1fr}.submission-settings-head{align-items:flex-start;flex-direction:column}.grade-inline-form{grid-template-columns:1fr}.download-summary{grid-template-columns:1fr}.projector-stage{padding:24px 12px}.projector-card{padding:36px 16px}.projector-card h1{font-size:2rem}.projector-username{font-size:3rem}.projector-actions,.projector-group-form{width:100%}.projector-toolbar{padding:12px}.projector-grid article{grid-template-columns:36px 1fr}.projector-grid code{grid-column:2}}
