/* CIT · Mosaico vivo. Ciruela #3A1E35, Amapola #E5483A (solo acento), Rubor #F7DCD3, Salvia #8FAE9A, Bruma #FBF4F1, Malva #76586D. */
@font-face{font-family:Nunito;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/nunito-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:Nunito;font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/nunito-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:Nunito;font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/nunito-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:Nunito;font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/nunito-latin-800-normal.woff2') format('woff2')}
@font-face{font-family:Nunito;font-style:normal;font-weight:900;font-display:swap;src:url('/assets/fonts/nunito-latin-900-normal.woff2') format('woff2')}
:root{--red:#c23a2e;--brand-red:#E5483A;--ink:#3A1E35;--muted:#76586D;--paper:#FBF4F1;--line:#ecdcd6;--soft:#F7DCD3;--salvia:#8FAE9A;--green:#5f8a6f}
body{font-family:Nunito,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body{background:var(--paper);color:var(--ink)}
h1,h2,h3{font-family:Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1{font-weight:900;letter-spacing:-1.2px}
button,.button{border-radius:7px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--brand-red)}
.sidebar{background:var(--ink);border:0;color:#fff;padding-top:30px}
.brand{padding:4px 9px 29px}
.brand img{width:178px;max-width:100%;height:auto}
.brand span{color:#cdb6c2;letter-spacing:4px;font-size:10px;margin-top:11px}
.navtitle{color:#cdb6c2;font-size:9px;letter-spacing:1.5px}
.nav a{color:#f1e4ea;border-radius:6px;font-weight:550}
.nav a:hover{background:#ffffff0e;color:white}
.nav a.active{background:var(--red);color:white;box-shadow:0 4px 14px #0002}
.side-note{background:#ffffff05;border-color:#ffffff23;border-left:3px solid var(--brand-red)}
.side-note .muted,.identity .muted{color:#cdb6c2}
.identity{border-color:#ffffff23}
.avatar{background:#ffffff12;color:white}
.topbar{background:#fff}
.topbar>p{color:var(--ink);letter-spacing:.6px;font-weight:750}
.hero{background:var(--ink);border-radius:12px;grid-template-columns:1.12fr 1fr;min-height:370px}
.herocopy{padding:42px 40px}
.herocopy h1{font-size:clamp(32px,3.3vw,49px);max-width:570px;line-height:1.07;margin:20px 0}
.herocopy .eyebrow{color:#F7DCD3;font-size:10px;letter-spacing:1.8px}
.herocopy p{color:#ecdcd6}
.heroimage{clip-path:polygon(14% 0,100% 0,100% 100%,0 100%)}
.heroimage:after{background:linear-gradient(90deg,#3A1E35aa,transparent 40%)}
.herolabel{right:24px;bottom:24px;font-size:9px}
.statusline{color:#76586D}
.statusline>span{color:var(--red)}
.stat{border-radius:9px}
.stat small{color:var(--red)}
.progress i{background:var(--brand-red)}
.coursecard{border-radius:10px;overflow:hidden;box-shadow:0 4px 18px #3A1E3506}
.coursecard:hover{box-shadow:0 9px 26px #3A1E3512}
.coursecard .eyebrow{letter-spacing:1px}
.cardbody{border-top:3px solid var(--brand-red)}
.tabs button.active{background:var(--ink);color:white}
.pill.red,.callout.red{background:#F7DCD3;color:#3A1E35}
.lessonnav a.selected,.lessonnav a:hover{background:#F7DCD3;color:#3A1E35}
.login-art{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(90deg,#3A1E35f7,#3A1E35cb),url('/assets/cit-mosaico.svg') right -60px bottom -60px/420px no-repeat;padding:54px 60px}
.login-art:after{content:"";position:absolute;width:145px;height:130%;background:var(--brand-red);right:-55px;top:14%;transform:rotate(35deg);z-index:-1;opacity:.9}
.login-art img{width:255px;max-width:75%;filter:none}
.login-art h1{font-size:clamp(37px,4.2vw,65px);line-height:1.08;font-weight:800;max-width:630px}
.login-art h1 em{color:#F7DCD3}
.login-art .eyebrow{color:#F7DCD3}
.login-art p{color:#ecdcd6;max-width:460px;font-size:16px}
.login-art>.small.muted{color:#cdb6c2}
.login-art .tagline{font-weight:700;letter-spacing:2px}
.login-form h2{font-weight:750}
.login-form input{background:#fffdfc}
.admin-sidebar{background:var(--ink)}
.admin-logo img{width:185px;max-width:100%;filter:none}
.admin-logo span{letter-spacing:1.9px}
.admin-sidebar nav a.active{background:var(--red)}
.admin-welcome{background:var(--ink);color:#fff}.admin-welcome h2{color:#fff}.admin-welcome p{color:#ecdcd6}
.admin-welcome .eyebrow{color:#F7DCD3}
.ops-stats article{border-top-color:var(--brand-red)}
.ops-edit-tabs button.active{background:var(--ink)}
.ops-unit-list button.active,.ops-checklist label:has(input:checked),.ops-memberlist label:has(input:checked){background:#F7DCD3;color:#3A1E35;border-color:#e9b9ad}
.pdf-header{border-bottom:3px solid var(--brand-red)}
.pdf-header img{width:145px}
.pdf-toolbar{background:var(--ink)}
@media(max-width:1100px){.herocopy{padding:32px}.herocopy h1{font-size:38px}.login-art{padding:42px}.login-art h1{font-size:48px}}
@media(max-width:760px){.sidebar{padding:20px}.brand{padding-bottom:16px}.brand img{width:160px}.nav a{color:#f1e4ea}.hero{grid-template-columns:1fr;min-height:360px}.heroimage{clip-path:none;border:0;opacity:.2}.herocopy{padding:30px}.herocopy h1{font-size:37px}.herolabel{display:none}.login-art{min-height:390px;padding:30px}.login-art img{width:205px}.login-art h1{font-size:39px;margin-top:38px}.login-art .eyebrow{color:#F7DCD3}
.login-art p{font-size:14px}.admin-logo img{width:160px}.admin-logo span{font-size:8px}.pdf-header img{width:125px}}

.pilot-review{border:1px solid #ecdcd6;border-top:4px solid var(--brand-red);margin-bottom:28px}.pilot-review>summary{cursor:pointer}.pilot-review>summary h2{margin:12px 0}.pilot-review>summary p{margin-bottom:0}.pilot-review[open]>summary{margin-bottom:24px}.pilot-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 25px}.pilot-actions .button{font-size:12px}.pilot-review video{display:block;max-width:100%;width:100%;border-radius:8px;background:#3A1E35}

.chapter-video{margin:24px 0}.chapter-video video{display:block;width:100%;aspect-ratio:16/9;border-radius:8px;background:#3A1E35}.course-intro{margin:20px 0}.message a,.sources a{color:var(--brand-red,#c23a2e);text-decoration:underline;text-underline-offset:3px}.sources{line-height:1.9;overflow-wrap:anywhere}

/* Nested source viewer keeps the tutor conversation mounted underneath. */
#tutor-source{width:min(1100px,94vw);max-width:94vw;height:92dvh;max-height:92dvh;padding:0;border:0;border-radius:14px;box-shadow:0 25px 90px #0006;color:var(--ink);background:#FBF4F1;overflow:hidden}
#tutor-source[open]{display:flex;flex-direction:column}#tutor-source::backdrop{background:#3A1E35cc}
#tutor-source .source-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 24px;background:white;border-bottom:1px solid #ecdcd6;flex-shrink:0}
#tutor-source h2{margin:3px 0;font-size:20px}#tutor-source .source-head button{flex-shrink:0}
#tutor-source .source-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 24px;background:white;flex-shrink:0}#tutor-source [hidden]{display:none!important}
#tutor-source .source-tools label{display:flex;align-items:center;gap:7px;margin:0}#tutor-source input{width:70px;margin:0;padding:7px}#tutor-source .source-tools button,#tutor-source .source-tools a{padding:9px 13px;font-size:13px}
#tutor-source .source-status{margin:0;padding:7px 24px;font-size:13px;flex-shrink:0}#tutor-source .source-body{overflow:auto;flex:1;min-height:0;padding:16px 24px 30px;overscroll-behavior:contain}
#tutor-source .source-image{display:block;width:auto;max-width:100%;height:auto;margin:auto;box-shadow:0 6px 24px #0002;background:white}#tutor-source .source-text{max-width:850px;margin:auto;padding:28px;background:white;white-space:pre-wrap;line-height:1.8}
@media(max-width:600px){#tutor-source{width:98vw;max-width:98vw;height:96dvh;max-height:96dvh}#tutor-source .source-head{padding:12px;align-items:flex-start}#tutor-source h2{font-size:16px}#tutor-source .source-head button{font-size:12px;padding:10px}#tutor-source .source-tools{padding:10px;gap:7px}#tutor-source .source-body{padding:10px}#tutor-source .source-status{padding:6px 12px}}
#tutor-source{inset:0;margin:auto}
.course-materials{margin:0 0 28px}.course-materials .pilot-actions{margin:14px 0}.course-materials p:last-child{margin-bottom:0}

/* CIT: el acento amapola se reserva a detalles; navegación activa en salvia/rubor. */
.nav a.active{background:#F7DCD3;color:#3A1E35}.admin-sidebar nav a.active{background:#F7DCD3;color:#3A1E35}
.login-art:after{display:none}
button:not(.secondary):not(.iconbutton):not(.ghost),.button:not(.secondary){background:#3A1E35;border-color:#3A1E35;color:#fff}
.tabs button:not(.active){background:#fff!important;color:var(--muted)!important;border:1px solid var(--line)!important}.tabs button.active{background:#3A1E35;color:#fff;border-color:#3A1E35}
button.ghost{background:transparent;color:#3A1E35}.topactions button.ghost{font-weight:700}
.cardbody{border-top:3px solid #8FAE9A}
.eyebrow{letter-spacing:.14em;font-weight:800}
.ops-chart i{background:#8FAE9A}.ops-stats article{border-top-color:#8FAE9A}
.ops-proposal{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:#fff;display:grid;gap:6px}.ops-proposal button{justify-self:start;margin-top:6px}
