:root {
    --student-ink: #07190f;
    --student-green: #02654c;
    --student-green-start: #3a7c3a;
    --student-lime: #d7df27;
    --student-body: #324a6d;
    --student-soft: #f7f7f4;
    --student-border: #dfe5df;
    --student-white: #fff;
    --student-danger: #9f1f1f;
    --student-width: 1180px;
    --student-touch: 44px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--student-soft);
    color: var(--student-ink);
    font-family: Alexandria, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--student-ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}

.student-wrap {
    width: min(var(--student-width), calc(100% - 36px));
    margin-inline: auto;
}

.student-skip-link {
    position: absolute;
    left: 16px;
    top: -70px;
    z-index: 100;
    padding: 10px 14px;
    background: #fff;
    color: var(--student-green);
}

.student-skip-link:focus {
    top: 14px;
}

.student-header {
    background: linear-gradient(
        70deg,
        var(--student-green-start) 23%,
        var(--student-lime) 100%
    );
}

.student-header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.student-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--student-ink);
    text-decoration: none;
}

.student-brand img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.student-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.student-brand-copy strong {
    font-size: 1.55rem;
    line-height: 1.1;
}

.student-brand-copy span {
    font-size: .82rem;
}

.student-site-link {
    min-height: var(--student-touch);
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1px solid rgba(7, 25, 15, .35);
    border-radius: 100px;
    color: var(--student-ink);
    font-size: .85rem;
    text-decoration: none;
}

.student-main {
    min-height: calc(100vh - 180px);
}

.student-auth {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 64px 18px;
}

.student-card {
    width: min(100%, 470px);
    padding: 42px;
    background: var(--student-white);
    border: 1px solid var(--student-border);
    box-shadow: 0 16px 42px rgba(26, 73, 54, .07);
}

.student-eyebrow {
    margin: 0 0 12px;
    color: var(--student-green);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.student-card h1,
.student-dashboard h1 {
    margin: 0;
    color: var(--student-green);
    line-height: 1.15;
}

.student-card h1 {
    font-size: 2rem;
}

.student-dashboard h1 {
    max-width: 850px;
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.student-intro {
    max-width: 720px;
    color: var(--student-body);
    line-height: 1.7;
}

.student-alert {
    margin: 22px 0;
    padding: 13px 15px;
    border: 1px solid var(--student-danger);
    color: var(--student-danger);
    line-height: 1.5;
}

.student-form {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.student-form label {
    display: grid;
    gap: 8px;
    color: #48545f;
    font-size: .875rem;
}

.student-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #7c8b81;
    border-radius: 2px;
    background: #fff;
    color: #222;
}

.student-form button {
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid var(--student-green);
    border-radius: 100px;
    background: var(--student-green);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}

.student-form button:hover {
    background: transparent;
    color: var(--student-green);
}

.student-dashboard {
    padding-block: 72px 88px;
}

.student-dashboard > .student-intro {
    margin-top: 20px;
    font-size: 1.05rem;
}

.student-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 48px 0 36px;
    border: 1px solid var(--student-border);
    background: var(--student-border);
}

.student-module {
    min-height: 250px;
    padding: 34px 30px;
    background: #fff;
}

.student-module span {
    display: block;
    margin-bottom: 42px;
    color: var(--student-green);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.student-module h2 {
    margin: 0 0 14px;
    color: var(--student-green);
    font-size: 1.55rem;
}

.student-module p {
    margin: 0;
    color: #5a6575;
    line-height: 1.7;
}

.student-logout {
    min-height: var(--student-touch);
    padding: 10px 20px;
    border: 1px solid var(--student-green);
    border-radius: 100px;
    background: transparent;
    color: var(--student-green);
    cursor: pointer;
}

.student-logout:hover {
    background: var(--student-green);
    color: #fff;
}

.student-footer {
    padding: 24px 0;
    background: #0c4939;
    color: rgba(255, 255, 255, .75);
    font-size: .75rem;
}

@media (max-width: 720px) {
    .student-header-inner {
        min-height: 88px;
    }

    .student-brand img {
        width: 48px;
        height: 48px;
    }

    .student-brand-copy strong {
        font-size: 1.3rem;
    }

    .student-site-link {
        padding-inline: 13px;
    }

    .student-dashboard {
        padding-block: 52px 64px;
    }

    .student-modules {
        grid-template-columns: 1fr;
    }

    .student-module {
        min-height: auto;
    }

    .student-module span {
        margin-bottom: 24px;
    }

    .student-card {
        padding: 30px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}

/* Refinamiento Mi CUJR v1 */
.student-dashboard h1 {
    max-width: 760px;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
}

.student-dashboard > .student-intro {
    margin-bottom: 0;
}

.student-modules {
    margin-top: 40px;
}

.student-module {
    min-height: 220px;
}

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

.student-auth {
    padding-block: 48px;
}

.student-login-card {
    margin-block: 12px;
}

@media (max-width: 720px) {
    .student-dashboard h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .student-dashboard form {
        justify-content: flex-start;
    }

    .student-module {
        min-height: auto;
    }
}

/* Avisos Mi CUJR */
.student-notices {
    grid-column: 1 / -1;
    min-height: auto;
}

.student-notices + .student-module,
.student-notices + .student-module + .student-module {
    grid-column: span 1;
}

.student-notices ~ .student-module {
    min-height: 190px;
}

.student-notice {
    max-width: 760px;
}

.student-notice + .student-notice {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--student-border);
}

.student-notice strong {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--student-green);
    font-size: .72rem;
    text-transform: uppercase;
}

.student-notice h3 {
    margin: 0 0 10px;
    color: var(--student-ink);
    font-size: 1.15rem;
}

.student-notices > span {
    margin-bottom: 24px;
}

@media (min-width: 721px) {
    .student-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .student-notices {
        grid-column: auto;
    }

    .student-notice {
        max-width: none;
    }
}
