:root {
    --navy-950: #263a59;
    --navy-900: #334765;
    --navy-800: #415777;
    --green: #6bc399;
    --green-soft: #edf8f3;
    --violet: #8b7db3;
    --violet-soft: #f3f0f8;
    --surface: #ffffff;
    --background: #f5f7fa;
    --text: #172338;
    --muted: #687386;
    --border: #dce2e9;
    --danger: #a92f26;
    --shadow: 0 24px 70px rgb(38 58 89 / 14%);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Roboto", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 44fr) minmax(520px, 56fr);
}

.login-introduction {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-start;
    padding: clamp(36px, 5vw, 76px);
    background:
        linear-gradient(150deg, rgb(29 47 72 / 84%) 0%, rgb(45 66 96 / 65%) 52%, rgb(98 84 137 / 50%) 100%),
        linear-gradient(90deg, transparent 76%, rgb(255 255 255 / 7%) 100%),
        url("../images/alumnos-bg.jpg") center center / cover no-repeat;
    color: #fff;
}

.login-introduction::after {
    content: none;
}

.introduction-copy {
    max-width: 435px;
    margin: auto 0;
    padding: 58px 0;
}

.eyebrow,
.card-kicker {
    margin: 0 0 14px;
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-introduction .eyebrow {
    color: rgb(255 255 255 / 76%);
}

.introduction-copy h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.introduction-copy h1,
.login-card h2,
.dashboard-heading h1,
.dashboard-card > h1,
.dashboard-card h2,
.information-heading h1,
.information-section h2,
.eyebrow,
.card-kicker,
.primary-button,
.logout-button,
.field label,
.topbar-actions > a,
.information-access strong {
    font-family: "Nunito", sans-serif;
}

.login-page,
.login-page input,
.login-page label,
.login-page .alert,
.login-card header > p:last-child {
    font-family: "Nunito", sans-serif;
}

.login-page .eyebrow,
.login-page h1,
.login-page h2,
.login-page .primary-button {
    font-family: "Montserrat", sans-serif;
}

.introduction-copy > p:last-child {
    max-width: 40ch;
    margin: 20px 0 0;
    color: rgb(255 255 255 / 78%);
    font-size: 0.98rem;
    line-height: 1.65;
}

.login-panel {
    display: grid;
    align-items: start;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: clamp(58px, 9.5vh, 104px) clamp(40px, 7vw, 112px) 30px;
    background: var(--surface);
    justify-items: center;
}

.login-card {
    width: min(100%, 505px);
}

.login-logo {
    display: block;
    width: 110px;
    height: auto;
    margin: 0 0 26px;
    mix-blend-mode: multiply;
}

.login-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.95rem, 2.7vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.login-card header > p:last-child {
    max-width: 49ch;
    margin: 11px 0 0;
    color: var(--muted);
    line-height: 1.62;
}

.login-card form {
    margin-top: 26px;
}

.field + .field {
    margin-top: 18px;
}

.field label {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.91rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
    padding: 0 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover {
    border-color: #b6c0cc;
}

.field input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgb(139 125 179 / 14%);
}

.login-page .field input {
    min-height: 53px;
    border-radius: 11px;
    background: #fdfdfd;
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7b8492;
    cursor: pointer;
    padding: 8px;
    place-items: center;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f2f3f6;
    color: var(--navy-800);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 1px;
}

.password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.primary-button,
.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 750;
}

.primary-button {
    width: 100%;
    min-height: 56px;
    gap: 12px;
    margin-top: 28px;
    background: linear-gradient(110deg, var(--navy-800), #665b8f);
    color: #fff;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.primary-button:hover {
    box-shadow: 0 12px 24px rgb(65 87 119 / 20%);
    transform: translateY(-1px);
}

.login-page .primary-button {
    min-height: 53px;
    margin-top: 22px;
    border-radius: 11px;
    background: linear-gradient(110deg, #405575 0%, #685f8d 100%);
    box-shadow: 0 4px 12px rgb(65 87 119 / 9%);
    font-weight: 700;
}

.login-page .primary-button:hover {
    background: linear-gradient(110deg, #3a4f6f 0%, #615783 100%);
    box-shadow: 0 7px 16px rgb(65 87 119 / 14%);
}

.login-help {
    margin: 16px 0 0;
    color: #858d99;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.login-help strong {
    color: #667184;
    font-weight: 700;
}

.login-footer {
    width: min(100%, 505px);
    margin-top: 44px;
    color: #9aa1ab;
    font-family: "Nunito", sans-serif;
    font-size: 0.72rem;
    text-align: left;
}

.forgot-password {
    display: block;
    width: fit-content;
    margin: 10px 0 -4px auto;
    color: #665b8f;
    font-family: "Nunito", sans-serif;
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.forgot-password:focus-visible,
.back-link:focus-visible,
.public-auth-logo:focus-visible {
    outline: 3px solid rgb(139 125 179 / 25%);
    outline-offset: 3px;
}

.primary-button:focus-visible,
.logout-button:focus-visible {
    outline: 3px solid rgb(139 125 179 / 28%);
    outline-offset: 3px;
}

.alert {
    margin-top: 26px;
    border: 1px solid #ecc5c1;
    border-radius: 9px;
    background: #fff5f4;
    color: var(--danger);
    padding: 14px 16px;
    font-size: 0.88rem;
}

.topbar {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 94%);
    padding: 14px clamp(22px, 5vw, 72px);
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-950);
    text-decoration: none;
}

.topbar-brand img {
    width: 76px;
    height: auto;
    border-radius: 7px;
}

.topbar-brand span {
    display: grid;
}

.topbar-brand small {
    color: var(--muted);
    font-family: "Nunito", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.logout-button {
    min-height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy-900);
    padding: 0 18px;
}

.logout-button:hover {
    border-color: var(--violet);
    color: #665b8f;
}

.dashboard-shell {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) 0;
}

.dashboard-heading {
    max-width: 760px;
}

.dashboard-heading h1,
.dashboard-card > h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.dashboard-heading > p:last-child,
.dashboard-card > p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.dashboard-card {
    display: grid;
    margin-top: 42px;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 52px);
}

.dashboard-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.3;
}

.student-summary {
    display: grid;
    margin: 0;
    gap: 20px;
}

.student-summary > div {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.student-summary > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.student-summary dt {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.student-summary dd {
    margin: 0;
    color: var(--text);
    font-weight: 650;
    line-height: 1.55;
}

.status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-badge--preregistered {
    background: var(--violet-soft);
    color: #675b8e;
}

.status-badge--active {
    background: var(--green-soft);
    color: #347a5b;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-actions > a {
    color: var(--navy-800);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.topbar-actions > a:hover {
    color: #665b8f;
}

.profile-progress {
    display: grid;
    max-width: 280px;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.profile-progress strong {
    color: var(--navy-900);
    font-size: 1.08rem;
}

.progress-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e7eaf0;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--violet));
}

.information-access {
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--navy-900);
    padding: 22px 26px;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.information-access:hover {
    border-color: #b9b0cf;
    box-shadow: 0 12px 32px rgb(38 58 89 / 9%);
    transform: translateY(-1px);
}

.information-access > span:first-child {
    display: grid;
    gap: 5px;
}

.information-access small {
    color: var(--muted);
    line-height: 1.5;
}

.information-access > span:last-child {
    color: var(--violet);
    font-size: 1.45rem;
}

.grades-shell {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(50px, 7vw, 82px) 0 96px;
}

.grades-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.grades-heading .grades-student-name {
    margin: 10px 0 0;
    color: var(--navy-800);
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.25;
}

.grades-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.grades-card,
.grades-empty {
    margin-top: 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
}

.grades-card {
    overflow: hidden;
}

.grades-evaluation-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 20px;
    border: 1px solid #e4dfef;
    border-radius: 10px;
    background: #faf9fd;
    color: var(--muted);
    padding: 12px 15px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.grades-evaluation-notice > span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
    font-family: "Nunito", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    place-items: center;
}

.grades-evaluation-notice p {
    margin: 0;
}

.grades-table-scroll {
    overflow-x: auto;
    outline: none;
}

.grades-table-scroll:focus-visible {
    box-shadow: inset 0 0 0 3px rgb(139 125 179 / 22%);
}

.grades-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    color: var(--text);
    font-size: 0.88rem;
}

.grades-table th,
.grades-table td {
    border-bottom: 1px solid #e8ebf0;
    padding: 17px 18px;
    text-align: left;
    vertical-align: middle;
}

.grades-table thead th {
    background: #f7f8fa;
    color: var(--muted);
    font-family: "Nunito", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.grades-table tbody th {
    min-width: 280px;
    color: var(--navy-900);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    line-height: 1.45;
}

.grades-table tbody tr:last-child th,
.grades-table tbody tr:last-child td {
    border-bottom: 0;
}

.grades-table tbody tr:hover {
    background: #fbfcfd;
}

.grades-table time {
    white-space: nowrap;
}

.grade-value {
    display: inline-flex;
    min-width: 52px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
}

.grade-value--passing {
    border-color: #cce8db;
    background: var(--green-soft);
    color: #347a5b;
}

.grade-value--not-passing {
    border-color: #ecd8d5;
    background: #fff6f5;
    color: #9b453e;
}

.teacher-evaluation-link,
.evaluation-complete {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.teacher-evaluation-link {
    border: 1px solid #cfc7e2;
    background: #fff;
    color: #675b8e;
    padding: 0 13px;
    text-decoration: none;
}

.teacher-evaluation-link:hover {
    border-color: var(--violet);
    background: var(--violet-soft);
}

.teacher-evaluation-link:focus-visible {
    outline: 3px solid rgb(139 125 179 / 24%);
    outline-offset: 2px;
}

.evaluation-complete {
    gap: 6px;
    color: #347a5b;
}

.evaluation-complete > span {
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-soft);
    place-items: center;
}

.kardex-average {
    display: flex;
    width: min(100%, 330px);
    margin: 22px 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgb(38 58 89 / 5%);
    padding: 18px 20px;
}

.kardex-average span {
    color: var(--muted);
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kardex-average strong {
    color: var(--navy-900);
    font-family: "Nunito", sans-serif;
    font-size: 1.55rem;
}

.grades-scroll-hint {
    display: none;
    margin: 0;
    border-top: 1px solid var(--border);
    background: #fbfcfd;
    color: var(--muted);
    padding: 12px 18px;
    font-size: 0.75rem;
}

.grades-empty {
    padding: clamp(34px, 6vw, 58px);
    text-align: center;
}

.grades-empty > span {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--green-soft), var(--violet-soft));
    color: var(--navy-800);
    font-weight: 800;
    place-items: center;
}

.grades-empty h2 {
    font-size: 1.25rem;
}

.grades-empty p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.evaluation-shell {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(42px, 6vw, 70px) 0 96px;
}

.evaluation-heading h1,
.evaluation-unavailable h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.evaluation-heading dl {
    display: grid;
    margin: 26px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.evaluation-heading dl > div {
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    padding: 15px 17px;
}

.evaluation-heading dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.evaluation-heading dd {
    margin: 0;
    color: var(--navy-900);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    line-height: 1.45;
}

.evaluation-form {
    margin-top: 28px;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.evaluation-question {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 7px 22px rgb(38 58 89 / 4%);
    padding: 20px;
}

.evaluation-question--error {
    border-color: #e1aaa5;
}

.evaluation-question legend {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
    padding: 0;
}

.evaluation-question legend > span,
.evaluation-comment > label > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    border-radius: 7px;
    background: linear-gradient(145deg, var(--green-soft), var(--violet-soft));
    color: var(--navy-800);
    font-size: 0.68rem;
    place-items: center;
}

.evaluation-options {
    display: grid;
    margin-top: 16px;
    gap: 8px;
}

.evaluation-options label {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 9px 12px;
}

.evaluation-options label:hover {
    border-color: #c7bfdc;
    background: #fbfafd;
}

.evaluation-options input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 0 10px 0 0;
    accent-color: #74679b;
}

.evaluation-options span {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.4;
}

.evaluation-comment {
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    padding: 22px;
}

.evaluation-comment > label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

.evaluation-comment > label small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.evaluation-comment textarea {
    width: 100%;
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    padding: 13px 14px;
    resize: vertical;
}

.evaluation-comment textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgb(139 125 179 / 14%);
}

.evaluation-actions {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.evaluation-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.evaluation-unavailable {
    max-width: 720px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 46px);
}

.evaluation-unavailable > p:last-of-type {
    margin: 13px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.information-shell {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(50px, 7vw, 88px) 0 100px;
}

.information-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.information-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.information-heading > div:first-child > p:last-child {
    margin: 15px 0 0;
    color: var(--muted);
}

.completion-summary {
    width: min(100%, 270px);
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px 20px;
}

.completion-summary strong {
    display: block;
    color: var(--navy-900);
    font-size: 1.55rem;
}

.completion-summary > span {
    display: block;
    margin: 2px 0 12px;
    color: var(--muted);
    font-size: 0.77rem;
}

.success-alert {
    margin-top: 28px;
    border: 1px solid #b8dfcb;
    border-radius: 10px;
    background: var(--green-soft);
    color: #347a5b;
    padding: 14px 17px;
    font-size: 0.9rem;
    font-weight: 650;
}

.information-form {
    display: grid;
    margin-top: 34px;
    gap: 24px;
}

.information-section {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
    padding: clamp(24px, 4vw, 40px);
}

.information-section > header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.information-section > header > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--green-soft), var(--violet-soft));
    color: var(--navy-800);
    font-size: 0.78rem;
    font-weight: 800;
    place-items: center;
}

.information-section h2 {
    margin: 1px 0 0;
    color: var(--navy-950);
    font-size: 1.35rem;
}

.information-section header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.readonly-grid,
.editable-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.readonly-grid {
    margin: 0 0 28px;
}

.readonly-grid > div {
    min-width: 0;
    border-radius: 10px;
    background: #f5f7fa;
    padding: 14px 16px;
}

.readonly-grid .wide,
.editable-grid .wide {
    grid-column: 1 / -1;
}

.readonly-grid--single {
    grid-template-columns: 1fr;
}

.readonly-grid dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.readonly-grid dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 650;
}

.readonly-grid dd span {
    color: #929ba8;
    font-weight: 500;
}

.information-section .field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.information-section .field label small {
    color: var(--muted);
    font-weight: 500;
}

.field-control {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
    padding: 0 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

select.field-control {
    padding-right: 40px;
}

.field-control--textarea {
    min-height: 128px;
    padding-top: 13px;
    resize: vertical;
}

.field-control:hover {
    border-color: #b6c0cc;
}

.field-control:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgb(139 125 179 / 14%);
}

.field-control--error {
    border-color: var(--danger);
    background: #fffafa;
}

.field-error {
    margin: 7px 0 0;
    color: var(--danger);
    font-size: 0.78rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.primary-button--fit {
    width: auto;
    min-width: 220px;
    margin-top: 0;
    padding: 0 24px;
}

.dashboard-card--message {
    display: block;
    max-width: 760px;
    margin: 0;
}

.public-auth-page {
    background: #f6f7fa;
    font-family: "Nunito", sans-serif;
}

.public-auth-page h1,
.public-auth-page .eyebrow,
.public-auth-page .primary-button {
    font-family: "Montserrat", sans-serif;
}

.public-auth-shell {
    width: min(100% - 40px, 520px);
    margin: 0 auto;
    padding: clamp(46px, 8vw, 82px) 0 64px;
}

.public-auth-logo {
    display: block;
    width: fit-content;
    margin-bottom: 38px;
}

.public-auth-logo img {
    display: block;
    width: 108px;
    height: auto;
    mix-blend-mode: multiply;
}

.public-auth-content {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgb(38 58 89 / 8%);
    padding: clamp(26px, 5vw, 42px);
}

.public-auth-content h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.85rem, 5vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.public-auth-content > p:not(.eyebrow) {
    margin: 13px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.public-auth-content form {
    margin-top: 28px;
}

.public-auth-content .primary-button {
    border-radius: 11px;
    background: linear-gradient(110deg, #405575 0%, #685f8d 100%);
}

.public-auth-content .alert,
.public-auth-content .success-alert {
    margin-top: 24px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: #665b8f;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.settings-shell {
    width: min(760px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(52px, 8vw, 88px) 0 96px;
}

.settings-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.settings-heading > p:last-child {
    max-width: 600px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.settings-shell > .alert,
.settings-shell > .success-alert {
    margin-top: 26px;
}

.settings-form {
    margin-top: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
    padding: clamp(24px, 5vw, 40px);
}

.settings-form .primary-button {
    margin-top: 26px;
}

.recovery-page .public-auth-shell {
    display: grid;
    width: min(100% - 44px, 600px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0 max(58px, 9vh);
    place-items: center;
}

.recovery-page .public-auth-content {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgb(38 58 89 / 6%);
    padding: 34px 38px 32px;
    text-align: left;
}

.recovery-page .public-auth-logo {
    width: fit-content;
    margin: 0 auto 22px;
}

.recovery-page .public-auth-logo img {
    width: 148px;
}

.recovery-page .public-auth-content > .eyebrow {
    margin-bottom: 10px;
    text-align: center;
}

.recovery-page .public-auth-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.15rem);
    line-height: 1.2;
    text-align: center;
}

.recovery-page .public-auth-content > p:not(.eyebrow) {
    max-width: 47ch;
    margin: 11px auto 0;
    font-size: 0.92rem;
    line-height: 1.58;
    text-align: center;
}

.recovery-page .public-auth-content form {
    margin-top: 24px;
}

.recovery-page .field input {
    min-height: 53px;
    border-radius: 11px;
    background: #fdfdfd;
}

.recovery-page .public-auth-content .primary-button {
    min-height: 53px;
    margin-top: 20px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgb(65 87 119 / 9%);
}

.recovery-page .public-auth-content .primary-button:hover {
    box-shadow: 0 7px 16px rgb(65 87 119 / 14%);
}

.recovery-page .back-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.recovery-page .public-auth-content .alert,
.recovery-page .public-auth-content .success-alert {
    margin-top: 20px;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.information-page {
    font-family: "Nunito", sans-serif;
}

.information-page .information-heading h1,
.information-page .information-section h2,
.information-page .eyebrow,
.information-page .primary-button,
.information-page .topbar-actions > a {
    font-family: "Montserrat", sans-serif;
}

.information-page .information-shell {
    width: min(1240px, calc(100% - 40px));
    padding: clamp(34px, 5vw, 58px) 0 72px;
}

.information-page .information-heading {
    align-items: center;
    gap: 36px;
}

.information-page .information-heading h1 {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.information-page .information-heading > div:first-child > p:last-child {
    margin-top: 10px;
    font-size: 0.9rem;
}

.information-page .completion-summary {
    width: 230px;
    border-radius: 10px;
    padding: 11px 14px;
}

.information-page .completion-summary strong {
    font-size: 1.3rem;
}

.information-page .completion-summary > span {
    margin: 0 0 8px;
    font-size: 0.7rem;
}

.information-page .information-form {
    margin-top: 24px;
    gap: 16px;
}

.information-page .information-section {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgb(38 58 89 / 4%);
    padding: 21px 22px;
}

.information-page .information-section > header {
    gap: 11px;
    margin-bottom: 16px;
}

.information-page .information-section > header > span {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    font-size: 0.68rem;
}

.information-page .information-section h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.information-page .information-section header p {
    margin-top: 3px;
    font-size: 0.76rem;
}

.information-page .form-grid-row {
    display: grid;
    align-items: start;
    column-gap: 16px;
    row-gap: 6px;
    margin-bottom: 14px;
}

.information-page .form-grid-row:last-child {
    margin-bottom: 0;
}

.information-page .form-grid-row--one {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "label1"
        "control1";
}

.information-page .form-grid-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "label1 label2"
        "control1 control2";
}

.information-page .form-grid-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "label1 label2 label3"
        "control1 control2 control3";
}

.information-page .form-grid-label--1 {
    grid-area: label1;
}

.information-page .form-grid-label--2 {
    grid-area: label2;
}

.information-page .form-grid-label--3 {
    grid-area: label3;
}

.information-page .form-grid-control--1 {
    grid-area: control1;
}

.information-page .form-grid-control--2 {
    grid-area: control2;
}

.information-page .form-grid-control--3 {
    grid-area: control3;
}

.information-page .readonly-value {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    border-radius: 7px;
    background: var(--background);
    padding: 8px 12px;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
}

.information-page .readonly-value span {
    color: #929ba8;
    font-weight: 500;
}

.information-page .form-grid-control {
    min-width: 0;
}

.information-page .form-grid-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.information-page .form-grid-label label {
    display: block;
    margin: 0;
}

.information-page .form-grid-label--readonly {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.information-page .field-status {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-top: 0.3em;
    border-radius: 50%;
}

.information-page .field-status--complete {
    background: #67b58f;
}

.information-page .field-status--pending {
    background: #d39a52;
}

.information-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.information-page .field-control {
    height: 44px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.information-page select.field-control {
    padding-right: 36px;
}

.information-page .field-control--textarea {
    height: auto;
    min-height: 82px;
    padding-top: 10px;
}

.information-page .field-error {
    margin-top: 4px;
    font-size: 0.72rem;
}

.information-page .previous-degree {
    display: inline-grid;
    gap: 3px;
    margin-top: 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: linear-gradient(145deg, var(--background), var(--violet-soft));
    padding: 9px 13px;
}

.information-page .education-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.information-page .education-heading .previous-degree {
    justify-self: end;
    margin-top: 0;
}

.information-page .previous-degree small {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.information-page .previous-degree strong {
    color: var(--navy-950);
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.information-page .form-actions {
    align-items: center;
    border: 0;
    background: transparent;
    padding: 2px 0 0;
}

.information-page .primary-button--fit {
    min-width: 190px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 0.82rem;
}

@media (max-width: 700px) {
    .evaluation-grid,
    .evaluation-heading dl {
        grid-template-columns: 1fr;
    }

    .evaluation-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .evaluation-actions .primary-button {
        width: 100%;
    }

    .grades-evaluation-notice {
        align-items: flex-start;
        margin: 14px;
        padding: 12px 13px;
    }

    .grades-scroll-hint {
        display: block;
    }

    .information-page .education-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .information-page .education-heading .previous-degree {
        grid-column: 2;
        justify-self: start;
        margin-top: 10px;
    }

    .information-page .form-grid-row--two,
    .information-page .form-grid-row--three {
        grid-template-columns: 1fr;
    }

    .information-page .form-grid-row--two {
        grid-template-areas:
            "label1"
            "control1"
            "label2"
            "control2";
    }

    .information-page .form-grid-row--three {
        grid-template-areas:
            "label1"
            "control1"
            "label2"
            "control2"
            "label3"
            "control3";
    }

    .information-page .form-grid-row {
        row-gap: 6px;
    }

    .information-page .form-grid-row--two .form-grid-control--1,
    .information-page .form-grid-row--three .form-grid-control--1,
    .information-page .form-grid-row--three .form-grid-control--2 {
        margin-bottom: 8px;
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-introduction {
        min-height: 340px;
        padding: 30px clamp(22px, 7vw, 64px);
    }

    .introduction-copy {
        padding: 52px 0 24px;
    }

    .introduction-copy h1 {
        max-width: 15ch;
        font-size: clamp(1.85rem, 5vw, 2.5rem);
    }

    .login-panel {
        padding: 64px clamp(32px, 9vw, 88px) 76px;
    }

    .dashboard-card {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .information-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 26px;
    }

    .completion-summary {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .login-shell {
        display: block;
    }

    .login-introduction {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 48px 24px 56px;
    }

    .login-logo {
        width: 100px;
        margin-bottom: 24px;
    }

    .login-footer {
        margin-top: 38px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .login-introduction {
        min-height: 310px;
    }

    .introduction-copy h1 {
        font-size: 2.35rem;
    }

    .introduction-copy > p:last-child {
        font-size: 0.93rem;
    }

    .login-panel {
        padding-top: 40px;
    }

    .login-card h2 {
        font-size: 2.1rem;
    }

    .topbar {
        min-height: 72px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .topbar-brand small {
        display: none;
    }

    .logout-button {
        padding: 0 13px;
        font-size: 0.8rem;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px 14px;
        justify-content: flex-end;
    }

    .topbar-actions > a {
        font-size: 0.76rem;
    }

    .dashboard-shell {
        width: min(100% - 36px, 1120px);
        padding: 48px 0;
    }

    .grades-shell {
        width: min(100% - 28px, 1240px);
        padding: 42px 0 68px;
    }

    .evaluation-shell {
        width: min(100% - 28px, 1180px);
        padding: 36px 0 68px;
    }

    .evaluation-question,
    .evaluation-comment {
        border-radius: 11px;
        padding: 18px 16px;
    }

    .grades-card,
    .grades-empty {
        margin-top: 26px;
        border-radius: 14px;
    }

    .grades-empty {
        padding: 34px 22px;
    }

    .dashboard-card {
        margin-top: 32px;
        border-radius: 14px;
        padding: 26px 22px;
    }

    .information-shell {
        width: min(100% - 32px, 1120px);
        padding: 44px 0 70px;
    }

    .information-section {
        border-radius: 14px;
        padding: 24px 20px;
    }

    .readonly-grid,
    .editable-grid {
        grid-template-columns: 1fr;
    }

    .readonly-grid .wide,
    .editable-grid .wide {
        grid-column: auto;
    }

    .form-actions,
    .primary-button--fit {
        width: 100%;
    }

    .public-auth-shell {
        width: min(100% - 32px, 520px);
        padding: 38px 0 50px;
    }

    .public-auth-logo {
        margin-bottom: 28px;
    }

    .public-auth-content {
        border-radius: 14px;
        padding: 26px 22px;
    }

    .settings-shell {
        width: min(100% - 32px, 760px);
        padding: 44px 0 68px;
    }

    .settings-form {
        border-radius: 14px;
        padding: 26px 22px;
    }

    .recovery-page .public-auth-shell {
        width: min(100% - 40px, 600px);
        padding: 28px 0 38px;
    }

    .recovery-page .public-auth-content {
        border-radius: 13px;
        padding: 28px 22px 26px;
    }

    .recovery-page .public-auth-logo {
        margin-bottom: 18px;
    }

    .recovery-page .public-auth-logo img {
        width: 126px;
    }

    .recovery-page .public-auth-content h1 {
        font-size: 1.75rem;
    }

    .information-page .information-shell {
        width: min(100% - 28px, 1240px);
        padding: 30px 0 58px;
    }

    .information-page .information-heading {
        gap: 18px;
    }

    .information-page .completion-summary {
        width: 100%;
    }

    .information-page .information-form {
        margin-top: 18px;
        gap: 13px;
    }

    .information-page .information-section {
        border-radius: 10px;
        padding: 18px 16px;
    }

    .information-page .field-control {
        height: 44px;
        min-height: 44px;
    }

    .information-page .field-control--textarea {
        height: auto;
    }

    .information-page .form-actions {
        padding-top: 2px;
    }
}

/* Portal de Alumnos: navegación, inicio y perfil */
.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 78px;
    box-shadow: 0 8px 30px rgb(38 58 89 / 4%);
}

.topbar-brand img {
    width: 88px;
    border-radius: 0;
}

.topbar-actions {
    gap: 6px;
}

.topbar-actions > a,
.logout-button {
    min-height: 40px;
    border-radius: 9px;
    padding: 0 14px;
}

.topbar-actions > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.topbar-actions > a[aria-current="page"] {
    background: var(--violet-soft);
    color: #665b8f;
}

.topbar-profile-link {
    gap: 8px;
}

.student-avatar {
    display: inline-grid;
    overflow: hidden;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--green), var(--violet));
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-avatar--navigation {
    width: 30px;
    height: 30px;
    font-size: 0.66rem;
}

.dashboard-shell {
    width: min(1180px, calc(100% - 44px));
    padding: clamp(38px, 6vw, 68px) 0 86px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(120deg, #fff 45%, #f7f4fb 100%);
    box-shadow: 0 18px 46px rgb(38 58 89 / 7%);
    padding: clamp(25px, 4vw, 38px);
}

.student-avatar--dashboard {
    width: clamp(76px, 9vw, 100px);
    height: clamp(76px, 9vw, 100px);
    font-size: 1.65rem;
    box-shadow: 0 10px 28px rgb(91 78 133 / 18%);
}

.dashboard-hero h1 {
    margin: 2px 0 5px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.dashboard-program {
    margin: 0;
    color: var(--navy-800);
    font-family: "Nunito", sans-serif;
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    font-weight: 700;
    line-height: 1.5;
}

.dashboard-generation {
    display: inline-flex;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: #347a5b;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 800;
}

.student-registration-number,
.student-generation {
    display: inline-flex;
    margin: 10px 0 0;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: #fff;
    color: var(--navy-800);
    padding: 4px 10px;
    font-family: "Nunito", sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
}

.grades-heading .student-registration-number {
    margin-left: 0;
}

.grades-heading .student-generation {
    margin-left: 6px;
}

.dashboard-metrics {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    display: flex;
    min-height: 150px;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgb(38 58 89 / 5%);
    padding: 22px;
}

.metric-card--attention {
    border-color: #d8cfea;
    background: #fcfaff;
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--violet-soft);
    color: var(--violet);
    font-weight: 800;
    place-items: center;
}

.metric-icon--green,
.metric-card--complete .metric-icon {
    background: var(--green-soft);
    color: #347a5b;
}

.metric-card p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.metric-card small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.4;
}

.dashboard-secondary-grid {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-average-card,
.dashboard-progress-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 24px;
}

.dashboard-average-card h2,
.dashboard-progress-card h2 {
    margin: 4px 0 8px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 1.3rem;
}

.dashboard-average-card > strong {
    display: block;
    margin-top: 4px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 2.8rem;
    line-height: 1;
}

.dashboard-average-card > p,
.dashboard-progress-card > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.dashboard-average-card a,
.dashboard-progress-card a {
    display: inline-flex;
    margin-top: 18px;
    gap: 8px;
    color: #675b8e;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-progress-card .profile-progress {
    display: block;
    max-width: none;
    margin-top: 18px;
}

.dashboard-evaluation-callout {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #d8cfea;
    border-radius: 14px;
    background: #f9f7fd;
    color: var(--navy-900);
    padding: 18px 22px;
    text-decoration: none;
}

.dashboard-evaluation-callout > span:first-child {
    display: grid;
    gap: 4px;
}

.dashboard-evaluation-callout small {
    color: var(--muted);
    line-height: 1.5;
}

.profile-shell {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(42px, 6vw, 70px) 0 88px;
}

.profile-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
}

.profile-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
}

.profile-shell > .alert,
.profile-shell > .success-alert {
    margin-top: 22px;
}

.profile-layout {
    display: grid;
    margin-top: 28px;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
    align-items: start;
}

.profile-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
    padding: clamp(24px, 4vw, 34px);
}

.profile-photo-card {
    text-align: center;
}

.student-avatar--profile {
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
    font-size: 2rem;
}

.profile-identity h2,
.profile-section-heading h2 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 1.35rem;
}

.profile-identity p,
.profile-section-heading > p:last-child,
.profile-photo-help {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

.profile-photo-card form {
    display: grid;
    margin-top: 22px;
    gap: 0;
    justify-items: center;
}

.profile-file-input {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-file-input:focus-visible + .file-picker {
    outline: 3px solid rgb(139 125 179 / 25%);
    outline-offset: 3px;
}

.file-picker {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #cfc7e2;
    border-radius: 9px;
    background: #fff;
    color: #675b8e;
    padding: 0 16px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-photo-help {
    margin: 8px 0 18px;
}

.profile-file-name {
    width: 100%;
    margin-top: 12px;
    overflow-wrap: anywhere;
    color: var(--navy-800);
    font-size: 0.78rem;
    line-height: 1.45;
}

.profile-remove-photo {
    border: 0;
    background: transparent;
    color: var(--danger);
    padding: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-password-card .settings-form {
    margin-top: 22px;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 820px) {
    .topbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 11px 18px 9px;
    }

    .topbar-brand img {
        width: 76px;
    }

    .topbar-actions {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    .topbar-actions > a,
    .logout-button {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .topbar-actions form {
        flex: 0 0 auto;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-metrics .metric-card:last-child {
        grid-column: 1 / -1;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dashboard-shell,
    .profile-shell {
        width: min(100% - 28px, 1180px);
        padding: 30px 0 60px;
    }

    .dashboard-hero {
        align-items: flex-start;
        border-radius: 16px;
        padding: 22px 18px;
    }

    .student-avatar--dashboard {
        width: 64px;
        height: 64px;
        font-size: 1.2rem;
    }

    .dashboard-metrics,
    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics .metric-card:last-child {
        grid-column: auto;
    }

    .metric-card {
        min-height: 0;
    }

    .dashboard-evaluation-callout {
        align-items: flex-start;
        padding: 16px 18px;
    }

    .profile-card {
        border-radius: 14px;
        padding: 23px 18px;
    }

    .file-picker,
    .profile-photo-card .primary-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
/* Portal de Profesores */
.professor-login-page .login-introduction{background-image:linear-gradient(135deg,rgba(35,54,88,.78),rgba(91,74,135,.55)),url("../images/profesores-bg.jpg")}.professor-profile-grid{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:24px}.professor-identity-card{align-self:start;text-align:center}.professor-identity-card .student-avatar{margin:0 auto 18px}.professor-identity-card h2{margin:0;color:var(--navy-950);font:800 1.25rem Nunito,sans-serif}.professor-identity-card p{overflow-wrap:anywhere;color:var(--muted)}.professor-details-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0}.professor-details-form .field:first-of-type,.professor-details-form .primary-button{grid-column:1/-1}.professor-details-form input[readonly]{background:#f1f3f6;color:#687187}@media(max-width:760px){.professor-profile-grid,.professor-details-form{grid-template-columns:1fr}.professor-details-form .field:first-of-type,.professor-details-form .primary-button{grid-column:auto}}
.teacher-dashboard-links{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}.teacher-module-shell{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:44px 0 80px}.teacher-table-card,.teacher-grade-section,.teacher-closed-notice{border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 14px 35px rgb(38 58 89/7%)}.teacher-table-card{margin-top:28px;overflow:hidden}.teacher-table-scroll{overflow-x:auto}.teacher-table-card table{width:100%;min-width:720px;border-collapse:collapse}.teacher-table-card th,.teacher-table-card td{border-bottom:1px solid var(--border);padding:14px 18px;text-align:left}.teacher-table-card th{background:#f7f8fb;color:var(--muted);font:800 .72rem Nunito,sans-serif;text-transform:uppercase}.teacher-table-card td strong,.teacher-table-card td small{display:block}.teacher-table-card td small{margin-top:4px;color:var(--muted)}.teacher-action{display:inline-flex;border:1px solid #cfc7e2;border-radius:9px;background:#fff;color:var(--violet);padding:8px 12px;font-weight:800;text-decoration:none;cursor:pointer}.teacher-report-dialog{width:min(900px,calc(100% - 30px));max-height:calc(100vh - 30px);margin:auto;border:0;border-radius:18px;padding:0}.teacher-report-dialog::backdrop{background:rgb(20 29 50/60%)}.teacher-report-dialog>article{overflow:auto;max-height:calc(100vh - 30px);background:#fff}.teacher-report-dialog header{display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding:22px 26px}.teacher-report-dialog h2{margin:4px 0}.teacher-report-dialog header button{border:0;background:none;font-size:1.7rem;cursor:pointer}.teacher-report-body{display:grid;gap:25px;padding:24px 26px}.teacher-report-body h3{margin:0 0 12px}.teacher-report-body section>p{display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding:9px 0}.teacher-report-body dl{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.teacher-report-body dl div{border:1px solid var(--border);border-radius:9px;padding:10px}.teacher-report-body dt{color:var(--muted);font-size:.72rem}.teacher-report-body dd{margin:5px 0 0;font-weight:800}.teacher-report-body img,.teacher-existing-signature{max-width:420px;max-height:180px;object-fit:contain}.teacher-grade-section{margin-top:22px;padding:24px}.teacher-grade-section h2{margin:0 0 18px;color:var(--navy-950)}.teacher-student-list{display:grid}.teacher-student-list form{display:grid;grid-template-columns:1fr 110px 90px;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding:10px 0}.teacher-student-list span small{display:block;color:var(--muted)}.teacher-student-list input,.teacher-rubric select{border:1px solid var(--border);border-radius:8px;background:#fff;padding:9px}.teacher-student-list button,.signature-actions>button:first-child{border:1px solid var(--border);border-radius:8px;background:#fff;padding:9px;cursor:pointer}.teacher-rubric{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.teacher-rubric label{display:grid;gap:6px;color:var(--muted);font-size:.78rem}.rubric-total{display:flex;align-items:center;justify-content:space-between;border-radius:9px;background:var(--violet-soft);padding:12px;font-weight:800}.teacher-rubric .field-error,.teacher-rubric .primary-button{grid-column:1/-1}.teacher-closed-notice{margin-top:22px;background:#edf8f1;color:#287149;padding:14px 18px;font-weight:700}.signature-canvas{display:block;width:100%;max-width:700px;aspect-ratio:700/240;border:1px dashed #aab3c2;border-radius:10px;background:#fff;touch-action:none}.signature-actions{display:flex;gap:12px;margin-top:14px}.signature-actions .primary-button{margin:0}.teacher-grade-section :disabled{cursor:not-allowed;opacity:.65}@media(max-width:760px){.teacher-dashboard-links{grid-template-columns:1fr}.teacher-module-shell{width:min(100% - 24px,1120px);padding-top:28px}.teacher-rubric{grid-template-columns:repeat(2,1fr)}.teacher-student-list form{grid-template-columns:1fr 90px}.teacher-student-list button{grid-column:1/-1}.teacher-report-body dl{grid-template-columns:repeat(2,1fr)}}
.teacher-report-body section>p.teacher-report-student--withdrawn{margin:0 -10px;border-radius:8px;background:#fff0f1;color:#9b3346;padding:9px 10px}.teacher-report-student--withdrawn strong{color:#a12f44}
.teacher-dashboard-page{background:linear-gradient(180deg,#f7f8fb 0,#fff 440px)}.teacher-dashboard-shell{width:min(1160px,calc(100% - 40px));padding-top:34px}.teacher-welcome{position:relative;display:flex;min-height:150px;align-items:center;justify-content:space-between;overflow:hidden;border:1px solid #e2e0ea;border-radius:22px;background:#fff;padding:28px 34px;box-shadow:0 18px 44px rgb(38 58 89/6%)}.teacher-welcome::before{position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,var(--violet),#6bc399);content:""}.teacher-welcome-copy{position:relative;z-index:1}.teacher-welcome-copy .eyebrow{margin-bottom:6px}.teacher-welcome-copy h1{margin:0;color:var(--navy-950);font:800 clamp(2rem,4vw,3rem)/1.08 Nunito,sans-serif;letter-spacing:-.04em}.teacher-welcome-copy>p:last-child{margin:8px 0 0;color:var(--muted);font-weight:500}.teacher-welcome-mark{position:relative;width:132px;height:92px;flex:0 0 132px;opacity:.82}.teacher-welcome-mark span{position:absolute;top:0;width:76px;height:92px;border-radius:55% 55% 14% 14%}.teacher-welcome-mark span:first-child{left:9px;transform:skewY(18deg);background:rgb(107 195 153/65%)}.teacher-welcome-mark span:last-child{right:9px;transform:skewY(-18deg);background:rgb(113 89 156/62%);mix-blend-mode:multiply}.teacher-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.teacher-metric{position:relative;display:grid;min-height:155px;grid-template-columns:48px 1fr;align-items:start;gap:16px;overflow:hidden;border:1px solid #e2e5eb;border-radius:18px;background:#fff;padding:22px;box-shadow:0 10px 28px rgb(38 58 89/4%);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}.teacher-metric:hover{transform:translateY(-3px);border-color:#d6d0e4;box-shadow:0 16px 34px rgb(38 58 89/8%)}.teacher-metric::after{position:absolute;right:-28px;bottom:-34px;width:90px;height:90px;border-radius:50%;background:rgb(113 89 156/5%);content:""}.teacher-metric-icon,.teacher-shortcut-icon{display:grid;border-radius:13px;background:var(--violet-soft);color:var(--violet);place-items:center}.teacher-metric-icon{width:48px;height:48px}.teacher-metric-icon svg,.teacher-shortcut-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.teacher-metric p{margin:1px 0 9px;color:var(--muted);font-size:.76rem;font-weight:800}.teacher-metric strong{display:block;color:var(--navy-950);font:800 2.35rem/1 Nunito,sans-serif}.teacher-metric small{display:block;margin-top:9px;color:var(--muted)}.teacher-metric--attention{border-color:#d7cbea;background:linear-gradient(145deg,#fff 20%,#faf7ff)}.teacher-metric--attention .teacher-metric-icon{background:#ece5f7}.teacher-metric-status{position:absolute;top:14px;right:14px;border-radius:999px;background:#f1eafb;color:#654b91;padding:4px 8px;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.teacher-metric--complete .teacher-metric-icon{background:var(--green-soft);color:#347a5b}.teacher-metric--complete::after{background:rgb(107 195 153/8%)}.teacher-shortcuts{margin-top:34px}.teacher-shortcuts>header{margin-bottom:15px}.teacher-shortcuts h2{margin:3px 0 0;color:var(--navy-950);font:800 1.45rem Nunito,sans-serif}.teacher-shortcut-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:16px}.teacher-shortcut{display:grid;min-height:124px;grid-template-columns:54px 1fr 36px;align-items:center;gap:17px;border:1px solid #e1e4eb;border-radius:19px;background:#fff;color:inherit;padding:22px;text-decoration:none;box-shadow:0 10px 28px rgb(38 58 89/4%);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}.teacher-shortcut:hover{transform:translateY(-3px);border-color:#cfc6df;box-shadow:0 17px 36px rgb(38 58 89/8%)}.teacher-shortcut--primary{border-color:#d8cee9;background:linear-gradient(135deg,#fff 35%,#f7f2fc)}.teacher-shortcut-icon{width:54px;height:54px}.teacher-shortcut--primary .teacher-shortcut-icon{background:var(--violet);color:#fff}.teacher-shortcut-copy strong,.teacher-shortcut-copy small{display:block}.teacher-shortcut-copy strong{color:var(--navy-950);font:800 1rem/1.35 Nunito,sans-serif}.teacher-shortcut-copy small{margin-top:6px;color:var(--muted);line-height:1.45}.teacher-shortcut-arrow{display:grid;width:34px;height:34px;border-radius:50%;background:#f2eff7;color:var(--violet);font-size:1.1rem;place-items:center;transition:transform .22s ease}.teacher-shortcut:hover .teacher-shortcut-arrow{transform:translateX(3px)}@media(max-width:820px){.teacher-metric-grid{grid-template-columns:1fr 1fr}.teacher-metric:last-child{grid-column:1/-1}.teacher-shortcut-grid{grid-template-columns:1fr}}@media(max-width:580px){.teacher-dashboard-shell{width:min(100% - 24px,1160px);padding-top:22px}.teacher-welcome{min-height:0;padding:24px 22px}.teacher-welcome-mark{width:78px;height:62px;flex-basis:78px}.teacher-welcome-mark span{width:48px;height:62px}.teacher-metric-grid{grid-template-columns:1fr}.teacher-metric:last-child{grid-column:auto}.teacher-metric{min-height:0}.teacher-shortcut{min-height:0;grid-template-columns:46px 1fr 30px;padding:18px 16px}.teacher-shortcut-icon{width:46px;height:46px}.teacher-shortcuts{margin-top:28px}}@media(max-width:390px){.teacher-welcome-mark{display:none}.teacher-shortcut{grid-template-columns:42px 1fr}.teacher-shortcut-arrow{display:none}}
.teacher-closed-notice{display:flex;align-items:center;justify-content:space-between;gap:16px}.teacher-closed-notice .teacher-action{flex:0 0 auto}@media(max-width:620px){.teacher-closed-notice{align-items:flex-start;flex-direction:column}}
.teacher-student-list form{grid-template-columns:minmax(210px,1fr) minmax(145px,170px) 110px 82px}.teacher-grade-guidance{margin:-6px 0 16px;border-left:3px solid var(--violet);background:var(--violet-soft);color:#52607b;padding:10px 12px;font-size:.86rem}.teacher-grade-head{display:grid;grid-template-columns:minmax(210px,1fr) minmax(145px,170px) 110px 82px;gap:12px;border-bottom:1px solid var(--border);padding:0 0 9px;color:var(--muted);font:800 .7rem Nunito,sans-serif;text-transform:uppercase}.teacher-grade-head span:nth-child(n+2){text-align:center}.teacher-no-grade-control{display:grid;justify-items:center;gap:3px}.teacher-no-grade-control label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.78rem;font-weight:700;white-space:nowrap}.teacher-no-grade-control input{width:auto}.teacher-no-grade-control small{color:#8a5b27;font-size:.68rem;font-weight:700;text-align:center}.teacher-grade-saved{justify-self:center;border-radius:999px;background:#edf8f1;color:#287149;padding:6px 9px;font-size:.72rem;font-weight:800}.no-grade-reason-dialog{width:min(440px,calc(100% - 28px));margin:auto;border:0;border-radius:18px;padding:0}.no-grade-reason-dialog::backdrop{background:rgb(20 29 50/62%);backdrop-filter:blur(3px)}.no-grade-reason-dialog form{display:grid;gap:14px;border-radius:18px;background:#fff;padding:28px}.no-grade-reason-dialog h2,.no-grade-reason-dialog p{margin:0}.no-grade-reason-dialog>form>label{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:12px;font-weight:700}.no-grade-reason-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.no-grade-reason-dialog footer button:first-child{border:1px solid var(--border);border-radius:9px;background:#fff;padding:10px 15px;font-weight:700;cursor:pointer}.no-grade-reason-dialog footer .primary-button{margin:0}@media(max-width:760px){.teacher-student-list form{grid-template-columns:1fr 90px}.teacher-student-list form>span:first-of-type{grid-column:1/-1}.teacher-grade-head{display:none}.teacher-no-grade-control{grid-column:auto;justify-items:start}.teacher-student-list button{grid-column:1/-1}.no-grade-reason-dialog footer{align-items:stretch;flex-direction:column-reverse}.no-grade-reason-dialog footer button{width:100%}}
.signature-rubric-warning{border-radius:9px;background:#fff4e8;color:#8a5b27;padding:12px 14px;font-weight:700}.signature-canvas[aria-disabled="true"]{background:#f2f3f6;opacity:.65}.signature-confirmation-dialog{width:min(620px,calc(100% - 30px));margin:auto;border:0;border-radius:18px;padding:0}.signature-confirmation-dialog::backdrop{background:rgb(20 29 50/62%);backdrop-filter:blur(3px)}.signature-confirmation-dialog article{border-radius:18px;background:#fff;padding:clamp(24px,5vw,34px);box-shadow:0 24px 70px rgb(18 27 49/30%)}.signature-confirmation-dialog h2{margin:0 0 18px;color:var(--navy-950);font:800 1.35rem/1.3 Nunito,sans-serif}.signature-confirmation-dialog p,.signature-confirmation-dialog li{color:#52607b;line-height:1.55}.signature-confirmation-dialog ul{padding-left:22px}.signature-confirmation-dialog strong{display:block;margin-top:18px;color:#9b3346}.signature-confirmation-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.signature-confirmation-dialog footer button:first-child{border:1px solid var(--border);border-radius:9px;background:#fff;color:#52607b;padding:10px 15px;font-weight:700;cursor:pointer}.signature-confirmation-dialog footer .primary-button{margin:0}@media(max-width:560px){.signature-confirmation-dialog footer{align-items:stretch;flex-direction:column-reverse}.signature-confirmation-dialog footer button{width:100%}}

/* Encabezado de la clase: título compacto y periodo secundario. */
.settings-heading.teacher-class-heading h1 {
    max-width: 100%;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.settings-heading.teacher-class-heading .teacher-class-program {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.5;
}
.settings-heading.teacher-class-heading .teacher-class-period {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.6;
}
