:root{--green:#075b37;--green2:#0b7247;--gold:#c99a2e;--ink:#17382c;--muted:#708078;--line:#dce8e1;--soft:#f4f8f6;--warn:#fff5d9;--blue:#1d62c8;--red:#b42318;--white:#fff;--shadow:0 20px 60px rgba(13,66,44,.12)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#eef5f1}.shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,30%) minmax(620px,70%)}.brand-panel{position:relative;min-height:100vh;background:url('./assets/campus_cbta97.jpg') center/cover no-repeat;overflow:hidden}.brand-overlay{position:absolute;inset:0;background:linear-gradient(150deg,rgba(3,54,34,.96) 0%,rgba(3,76,46,.84) 54%,rgba(4,64,39,.68) 100%)}.brand-content{position:relative;z-index:1;height:100%;padding:42px 38px;color:white;display:flex;flex-direction:column}.brand-head{display:flex;align-items:center;gap:16px}.brand-head .crest{width:70px;height:70px;object-fit:cover;border-radius:18px;background:white;padding:3px;box-shadow:0 8px 24px rgba(0,0,0,.18)}.brand-head div{display:flex;flex-direction:column}.brand-head b{font-size:25px}.brand-head span{opacity:.82}.brand-copy{margin:auto 0;max-width:560px}.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:12px;color:#e3be5a}.brand-copy h1{font-size:clamp(38px,3.8vw,64px);line-height:.98;margin:14px 0 20px;letter-spacing:-.04em}.brand-copy p{font-size:18px;line-height:1.5;max-width:520px;color:#e8f1ed}.brand-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.brand-badges span{padding:10px 14px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.09);font-size:13px}.mascot{position:absolute;right:-70px;bottom:-95px;width:min(330px,33vw);filter:drop-shadow(0 20px 30px rgba(0,0,0,.28));border-radius:36px}.portal-panel{position:relative;background:white;min-height:100vh;padding:42px clamp(28px,4.5vw,70px);display:flex;align-items:center;justify-content:center;overflow:auto}.screen{display:none;width:min(720px,100%);margin:auto}.screen.active{display:block}.screen-copy h2{font-size:42px;margin:8px 0 8px;letter-spacing:-.03em}.screen-copy p{color:var(--muted);line-height:1.55;margin:0 0 26px}.step-label{font-size:12px;font-weight:900;color:var(--green);text-transform:uppercase;letter-spacing:.13em}.tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);border-radius:14px;padding:4px;margin:26px 0}.tab{border:0;background:transparent;padding:12px 10px;border-radius:11px;font-weight:800;color:#718178;cursor:pointer}.tab.active{background:white;color:var(--green);box-shadow:0 4px 12px rgba(0,0,0,.06)}.tab-pane{display:none}.tab-pane.active{display:grid}.form{display:grid;gap:18px}.form label{display:grid;gap:8px;font-size:14px;font-weight:800}.form input,.form select,.form textarea{width:100%;border:1px solid #cfddd5;border-radius:13px;padding:14px 15px;font:inherit;color:var(--ink);outline:none;background:#fff;transition:.2s}.form textarea{resize:vertical}.form input:focus,.form select:focus,.form textarea:focus{border-color:#3b9b70;box-shadow:0 0 0 4px rgba(20,130,82,.08)}.form input[readonly]{background:#f2f6f4;color:#55665e}.field-help{font-size:11px;font-weight:500;color:var(--muted)}.btn{border:0;border-radius:13px;padding:15px 18px;font-weight:900;font-size:15px;cursor:pointer;transition:.15s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.primary{background:linear-gradient(135deg,var(--green),#07945b);color:white;box-shadow:0 10px 24px rgba(7,91,55,.18)}.btn.ghost{background:white;border:1px solid #d5e2db;color:var(--green)}.link-btn,.mini-link{border:0;background:none;color:var(--green);font-weight:800;padding:5px;cursor:pointer}.security-note,.helper,.save-note{font-size:13px;line-height:1.45;color:#66786f;background:var(--soft);border-radius:12px;padding:13px 14px}.progress,.wizard{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.progress span,.wizard span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e8efeb;color:#8b9992;font-weight:900}.progress span.done,.wizard span.active,.wizard span.done{background:var(--green);color:white}.progress i,.wizard i{height:3px;flex:1;background:#e2ebe6;margin:0 7px;border-radius:3px}.progress i.done,.wizard i.done{background:var(--green)}.student-card{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:17px;margin:18px 0 24px;background:#fbfdfc}.student-icon{width:52px;height:52px;border-radius:14px;background:#e3f2ea;display:grid;place-items:center;font-size:24px}.student-card div:last-child{display:grid;gap:3px}.student-card span,.student-card small{color:var(--muted)}.password-rules{margin:0;padding:13px 18px 13px 32px;border-radius:12px;background:var(--soft);color:#61756b;font-size:13px;line-height:1.6}.success-icon{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:#e0f4e9;color:var(--green);font-size:44px;font-weight:900;margin:0 auto 20px}.centered{text-align:center}.next-card{padding:18px;border:1px solid #e3d4a7;background:#fffaf0;border-radius:15px;display:grid;gap:5px;margin:24px 0}.next-card b{color:#876315}.next-card small{color:#826f4b}.dashboard-screen{width:min(860px,100%)}.dash-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.dash-head span{color:var(--muted);font-size:13px}.dash-head h2{margin:4px 0 0;font-size:34px}.dash-actions{display:flex;align-items:center;gap:8px}.avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e6f3ec;color:var(--green);font-weight:900}.status-card{border-radius:20px;padding:22px;background:linear-gradient(135deg,#f7fbf9,#eef8f3);border:1px solid #d5e8dd;display:flex;gap:20px;align-items:center;justify-content:space-between}.status-card h3{margin:8px 0 4px}.status-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}.pill{display:inline-block;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900}.pill.warning{background:#fff0bf;color:#84600f}.pill.info{background:#e6f1ff;color:#174c91}.pill.success{background:#def3e7;color:#16643e}.pill.danger{background:#fde8e7;color:#9b1c1c}.dash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.dash-grid article{border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;gap:8px}.dash-grid .metric{font-size:27px;font-weight:900;color:var(--green)}.dash-grid small{color:var(--muted);line-height:1.4}.timeline{border:1px solid var(--line);border-radius:18px;padding:20px}.timeline h3{margin:0 0 15px}.timeline-row{display:flex;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #eef2ef}.timeline-row:first-of-type{border-top:0}.timeline-row>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#edf2ef;color:#8c9993;font-weight:900}.timeline-row.done>span{background:#dff2e8;color:var(--green)}.timeline-row.current>span{background:#fff0bf;color:#85620e}.timeline-row div{display:grid;gap:2px}.timeline-row small{color:var(--muted)}.review-note{margin:18px 0;padding:16px 18px;border:1px solid #efd0a3;border-radius:15px;background:#fff9ee;color:#744d12}.review-note p{margin:7px 0 0;color:#775f38}.application-screen{width:min(940px,100%)}.app-head{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}.app-head h2{margin:3px 0;font-size:34px}.back-icon{width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:white;color:var(--green);font-size:22px;cursor:pointer}.save-state{font-size:12px;color:var(--muted);background:var(--soft);border-radius:999px;padding:8px 12px}.wizard{margin:24px 0}.readonly-banner{padding:13px 15px;border-radius:12px;background:#eaf6f0;color:#286847;font-size:13px;margin-bottom:18px}.two-col{grid-template-columns:1fr 1fr}.span-2{grid-column:1/-1}.wizard-step{display:none}.wizard-step.active{display:block}.section-intro{display:grid;gap:5px;margin-bottom:18px}.section-intro b{font-size:20px}.section-intro span{color:var(--muted);font-size:14px;line-height:1.45}.info-card{display:grid;gap:5px;padding:14px 16px;border:1px solid #dce8e1;border-radius:14px;background:#f8fbf9;margin:18px 0}.info-card b{color:var(--green)}.info-card span{font-size:13px;line-height:1.45;color:#64766d}.info-card.required{border-color:#e9c770;background:#fff8e5}.info-card.required b{color:#8b650a}.info-card.ok{border-color:#b8dfc9;background:#eef9f3}.activity-box{border:1px solid var(--line);border-radius:16px;padding:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.activity-box legend{font-weight:900;padding:0 8px;color:var(--green)}.activity-box label{display:flex;align-items:center;gap:8px;font-size:14px}.activity-box input{width:auto}.wizard-actions{display:grid;grid-template-columns:auto auto 1fr;gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid #edf2ef}.wizard-actions .primary{justify-self:end;min-width:180px}.review-summary{display:grid;gap:14px}.review-section{border:1px solid var(--line);border-radius:16px;overflow:hidden}.review-section h4{margin:0;padding:12px 15px;background:#f4f8f6;color:var(--green)}.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}.review-item{padding:11px 15px;border-top:1px solid #edf2ef}.review-item:nth-child(odd){border-right:1px solid #edf2ef}.review-item span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}.review-item b{font-size:13px;word-break:break-word}.confirmation{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px!important;margin:20px 0;padding:14px;border-radius:14px;background:#eef8f3}.confirmation input{width:auto!important;margin-top:3px}.submit-warning{font-size:13px;color:#7a5b13;background:#fff7df;border-radius:12px;padding:13px 14px;line-height:1.45}.hidden{display:none!important}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#17382c;color:white;padding:11px 16px;border-radius:999px;font-size:12px;opacity:0;pointer-events:none;z-index:30;box-shadow:0 10px 20px rgba(0,0,0,.12);transition:.2s}.toast.show{opacity:.96}.toast.error{background:#8c1d18}.mobile-brand{display:none}@media(max-width:1100px){.shell{grid-template-columns:minmax(300px,32%) minmax(620px,68%)}.brand-copy h1{font-size:42px}.mascot{right:-90px}}@media(max-width:900px){.shell{grid-template-columns:1fr}.brand-panel{display:none}.portal-panel{padding:28px 20px;align-items:flex-start}.mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:32px}.mobile-brand img{width:48px;height:48px;border-radius:12px;object-fit:cover}.mobile-brand div{display:grid}.mobile-brand span{font-size:12px;color:var(--muted)}.screen-copy h2{font-size:34px}.dash-grid{grid-template-columns:1fr}.status-card{flex-direction:column;align-items:stretch}.two-col{grid-template-columns:1fr}.span-2{grid-column:auto}.activity-box{grid-template-columns:1fr 1fr}.review-grid{grid-template-columns:1fr}.review-item:nth-child(odd){border-right:0}.wizard-actions{grid-template-columns:1fr 1fr}.wizard-actions .primary{grid-column:1/-1;justify-self:stretch}.toast{width:calc(100% - 30px);text-align:center}}@media(max-width:520px){.portal-panel{padding:20px 14px}.screen-copy h2{font-size:31px}.progress span,.wizard span{width:29px;height:29px;font-size:12px}.progress i,.wizard i{margin:0 4px}.student-card{align-items:flex-start}.tabs{margin-top:20px}.app-head{grid-template-columns:auto 1fr}.save-state{grid-column:1/-1;justify-self:start}.app-head h2{font-size:27px}.activity-box{grid-template-columns:1fr}.wizard-actions{grid-template-columns:1fr}.wizard-actions .primary{grid-column:auto}.wizard-actions button{width:100%}}

.app-tools{display:flex;align-items:center;gap:8px;justify-content:flex-end}.logout-inline{border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:white}.info-card.danger{border-color:#efb4af;background:#fff1f0}.info-card.danger b{color:var(--red)}.info-card.danger span{color:#7b3b36}.review-section.guardian-required{border-color:#e9c770}.review-section.guardian-required h4{background:#fff8e5;color:#8b650a}.review-section.guardian-ok{border-color:#b8dfc9}.review-section.guardian-ok h4{background:#eef9f3}.btn.primary.blocked{filter:grayscale(.2);box-shadow:none}.fss-note{font-size:12px;color:var(--muted)}
@media(max-width:520px){.app-tools{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}.logout-inline{padding:7px 10px}}

.home-back{position:absolute;top:20px;right:28px;z-index:20;display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--green);background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:13px;font-weight:850;box-shadow:0 6px 18px rgba(13,66,44,.08);transition:.15s}.home-back:hover{background:var(--soft);transform:translateY(-1px)}
@media(max-width:900px){.home-back{top:18px;right:18px}}
@media(max-width:520px){.home-back{position:static;margin:0 0 18px auto;width:max-content;display:flex}}

/* V1.4.2 · navegación directa durante correcciones */
.wizard span.clickable{cursor:pointer;transition:transform .15s,box-shadow .15s}.wizard span.clickable:hover,.wizard span.clickable:focus{transform:translateY(-1px);box-shadow:0 0 0 4px rgba(7,91,55,.10);outline:none}.correction-wizard-notice{margin:0 0 20px;padding:15px 17px;border:1px solid #efd0a3;border-radius:14px;background:#fff9ee;color:#744d12}.correction-wizard-notice b{display:block;color:#8b650a;margin-bottom:5px}.correction-wizard-notice p{margin:0 0 7px;line-height:1.5}.correction-wizard-notice small{display:block;color:#7b6a48;line-height:1.4}

/* V1.5.0 · operación del expediente activo y FSS08 mensual */
.service-actions{margin:18px 0;border:1px solid #d5e8dd;border-radius:18px;padding:18px 20px;background:linear-gradient(135deg,#f7fbf9,#eef8f3);display:flex;align-items:center;justify-content:space-between;gap:18px}.service-actions h3{margin:4px 0 4px}.service-actions p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}.reports-screen{width:min(940px,100%)}.reports-head{margin-bottom:22px}.reports-subtitle{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.45}.reports-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0}.reports-summary article{border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;gap:8px}.reports-summary .metric{font-size:27px;font-weight:900;color:var(--green)}.reports-summary small{color:var(--muted);line-height:1.4}.report-form-card{border:1px solid var(--line);border-radius:18px;padding:20px;margin:18px 0 24px;background:#fbfdfc}.report-card-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.report-card-head h3{margin:4px 0 0;font-size:24px}.report-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.reports-list-section{border-top:1px solid #edf2ef;padding-top:22px}.student-reports-list{display:grid;gap:12px}.student-report-card{border:1px solid var(--line);border-radius:16px;padding:16px 18px;background:#fff;display:grid;gap:12px}.student-report-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.student-report-top h4{margin:0 0 4px;font-size:18px}.student-report-meta{color:var(--muted);font-size:13px}.student-report-body{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.student-report-body>div{background:var(--soft);border-radius:12px;padding:12px 14px}.student-report-body b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}.student-report-body p{margin:0;line-height:1.45;font-size:14px;white-space:pre-wrap}.report-evidence-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf2ef;padding-top:12px}.report-evidence-row small{color:var(--muted)}.report-evidence-actions{display:flex;gap:8px;flex-wrap:wrap}.btn.sm{padding:9px 12px;font-size:12px;border-radius:10px}.empty-report{padding:28px;border:1px dashed #ceddd5;border-radius:14px;text-align:center;color:var(--muted);background:#fbfdfc}.evidence-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:850;background:#eef3f0;color:#60736a}.evidence-chip.approved{background:#def3e7;color:#16643e}.evidence-chip.rejected{background:#fde8e7;color:#9b1c1c}.evidence-chip.pending{background:#fff0bf;color:#84600f}
@media(max-width:900px){.service-actions{flex-direction:column;align-items:stretch}.reports-summary{grid-template-columns:1fr}.report-two-col{grid-template-columns:1fr}.student-report-body{grid-template-columns:1fr}}
@media(max-width:520px){.report-card-head,.student-report-top,.report-evidence-row{flex-direction:column;align-items:stretch}.report-evidence-actions .btn{width:100%}}
/* Student portal tab visibility guard */
.form.tab-pane{display:none}
.form.tab-pane.active{display:grid}


/* V1.5.3 · confirmación antes de subir evidencia fotográfica */
.evidence-confirm-dialog{border:0;border-radius:20px;padding:0;width:min(920px,calc(100% - 28px));max-width:920px;box-shadow:0 28px 80px rgba(7,48,34,.28)}
.evidence-confirm-dialog::backdrop{background:rgba(7,40,30,.58);backdrop-filter:blur(3px)}
.evidence-confirm-card{padding:20px;background:#fff}
.evidence-confirm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.evidence-confirm-head h3{margin:4px 0 5px;font-size:24px}
.evidence-confirm-head p{margin:0;color:var(--muted);font-size:13px}
.evidence-confirm-close{width:34px;height:34px;border:0;border-radius:50%;background:#eef4f0;color:var(--green);font-size:22px;cursor:pointer}
.evidence-confirm-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);gap:16px;align-items:start}
.evidence-confirm-image-wrap{min-height:360px;max-height:68vh;border:1px solid var(--line);border-radius:15px;background:#eef3f0;display:grid;place-items:center;overflow:hidden}
.evidence-confirm-image-wrap img{display:block;max-width:100%;max-height:68vh;width:auto;height:auto;object-fit:contain;image-orientation:from-image}
.evidence-confirm-details{border:1px solid var(--line);border-radius:15px;background:#fbfdfc;padding:14px;display:grid;gap:0}
.evidence-confirm-details>div{padding:10px 0;border-bottom:1px dashed var(--line)}
.evidence-confirm-details span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:4px;font-weight:800}
.evidence-confirm-details b{display:block;font-size:13px;overflow-wrap:anywhere}
.evidence-confirm-details small{display:block;margin-top:12px;padding:11px;border-radius:10px;background:#fff7df;color:#765817;line-height:1.45}
.evidence-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px;padding-top:14px;border-top:1px solid #edf2ef}
@media(max-width:720px){
  .evidence-confirm-layout{grid-template-columns:1fr}
  .evidence-confirm-image-wrap{min-height:240px}
  .evidence-confirm-actions{flex-direction:column-reverse}
  .evidence-confirm-actions .btn{width:100%}
}


.report-photo-preview{margin-top:10px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px;display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;align-items:center}
.report-photo-preview img{width:84px;height:84px;object-fit:cover;border-radius:10px;background:#eef3f0;image-orientation:from-image}
.report-photo-preview>div{min-width:0;display:grid;gap:5px}
.report-photo-preview b{font-size:12px;overflow-wrap:anywhere}
.report-photo-preview small{color:var(--muted);font-size:11px}
.report-photo-preview .mini-link{justify-self:start;padding:6px 9px}
@media(max-width:520px){.report-photo-preview{grid-template-columns:70px minmax(0,1fr)}.report-photo-preview img{width:70px;height:70px}}


/* V1.5.4 · modo de corrección FSS08 más claro */
.report-correction-notice{margin:-4px 0 18px;padding:14px 15px;border:1px solid #efd0a3;border-radius:13px;background:#fff9ee;color:#744d12;display:grid;gap:5px}
.report-correction-notice b{color:#8b650a;font-size:14px}
.report-correction-notice span,.report-correction-notice small{line-height:1.45}
.report-correction-notice span{font-size:13px}
.report-correction-notice small{font-size:12px;color:#7b6a48}


/* V1.5.5 · evidencia vigente e historial de reemplazos */
.evidence-summary{display:grid;gap:7px}
.evidence-summary-counts{display:block;color:var(--muted);font-size:11px}
.evidence-current-file{display:block;color:var(--dark);font-size:11px;overflow-wrap:anywhere}
.evidence-chip.neutral{background:#eef3f0;color:#60736a}
.evidence-history{margin-top:2px;border-top:1px dashed #dbe6e0;padding-top:7px}
.evidence-history summary{cursor:pointer;color:#6c5a32;font-size:11px;font-weight:800;list-style-position:inside}
.evidence-history-list{display:grid;gap:6px;margin-top:7px}
.evidence-history-item{border-radius:9px;background:#fff6f5;padding:8px 9px;border:1px solid #f2d3cf}
.evidence-history-item span{display:block;color:#9b1c1c;font-size:11px;font-weight:800;margin-bottom:3px}
.evidence-history-item small{display:block;color:#7a5b57;font-size:11px;line-height:1.4}
