:root {
    --geo-blue: #164587;
    --geo-blue-deep: #0e3266;
    --geo-blue-soft: #eaf1fb;
    --geo-yellow: #eedbb7;
    --geo-yellow-soft: #f8eedb;
    --geo-ink: #182230;
    --geo-muted: #667085;
    --geo-line: #dfe5ec;
    --geo-surface: #ffffff;
    --geo-surface-soft: #f6f8fb;
    --geo-danger: #c33e4d;
    --geo-radius-sm: 10px;
    --geo-radius-md: 16px;
    --geo-radius-lg: 24px;
    --geo-shadow-sm: 0 8px 24px rgba(19, 39, 68, 0.08);
    --geo-shadow-md: 0 18px 50px rgba(19, 39, 68, 0.12);
    --geo-body-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --geo-display-font: "Anton", "Arial Narrow", sans-serif;
}

.app-navbar-brand-slot {
    display: none;
}

@media (min-width: 992px) {
    .app-navbar-brand-slot {
        align-items: center;
        display: inline-flex;
        left: 0.5rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .app-navbar-brand {
        align-items: center;
        background: #fff !important;
        border: 1px solid #d5dfec;
        border-radius: 50% !important;
        box-shadow: 0 3px 10px rgba(20, 50, 89, 0.08);
        display: inline-flex !important;
        height: 40px;
        justify-content: center;
        min-height: 40px !important;
        padding: 0.25rem !important;
        transition:
            border-color 150ms ease,
            box-shadow 150ms ease,
            transform 150ms ease;
        width: 40px;
    }

    .app-navbar-brand:hover,
    .app-navbar-brand:focus-visible {
        background: #fff !important;
        border-color: #aec2dd;
        box-shadow: 0 5px 14px rgba(20, 50, 89, 0.14);
        outline: none;
        transform: translateY(-1px);
    }

    .app-navbar-brand img {
        display: block;
        height: 31px;
        object-fit: contain;
        width: 28px;
    }
}

/* Publication workflow and detail */

body.page-aula-profesor .aula-admin-publication-feedback {
    align-items: center;
    background: #edf9f2;
    border: 1px solid #b9e5cc;
    border-radius: 11px;
    color: #19643c;
    display: flex;
    font-size: 0.76rem;
    font-weight: 750;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.75rem;
}

body.page-aula-profesor .aula-admin-publication-feedback[hidden] {
    display: none;
}

body.page-aula-profesor .aula-admin-publication-feedback.is-error {
    background: #fff3f4;
    border-color: #efc2c8;
    color: #a52f3d;
}

body.page-aula-profesor .aula-admin-publication-feedback__icon {
    align-items: center;
    background: #218452;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 22px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

body.page-aula-profesor .aula-admin-publication-feedback.is-error
    .aula-admin-publication-feedback__icon {
    background: var(--geo-danger);
}

body.page-aula-profesor .aula-admin-message-list .list-group-item {
    align-items: center;
    display: flex;
}

body.page-aula-profesor .aula-admin-message-list .list-group-item > a {
    flex: 1 1 auto;
    min-width: 0;
}

body.page-aula-profesor .aula-admin-message-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
    padding-right: 0.75rem;
}

body.page-aula-profesor .aula-admin-message-delete {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #b64b58;
    display: inline-flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 34px;
}

body.page-aula-profesor .aula-admin-message-delete svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 16px;
}

body.page-aula-profesor .aula-admin-message-delete:hover {
    background: #fff3f4;
    border-color: #efc2c8;
    color: var(--geo-danger);
}

body.page-aula-profesor .aula-admin-message-delete:disabled {
    opacity: 0.45;
}

body.page-publication-detail {
    background:
        radial-gradient(circle at 88% 8%, rgba(22, 69, 135, 0.1), transparent 28rem),
        var(--geo-yellow-soft);
    color: var(--geo-ink);
}

body.page-publication-detail > main {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
}

.publication-detail-shell {
    box-sizing: border-box;
    font-family: var(--geo-body-font);
    margin: 0 auto;
    max-width: 1240px;
    padding: clamp(0.8rem, 2vw, 1.5rem);
    width: 100%;
}

.publication-detail-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(31, 42, 55, 0.06);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.62rem 0.72rem;
}

.publication-detail-brand,
.publication-detail-brand:visited {
    align-items: center;
    color: var(--geo-ink);
    display: inline-flex;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
}

.publication-detail-brand > img {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 50%;
    height: 40px;
    object-fit: contain;
    padding: 2px;
    width: 40px;
}

.publication-detail-brand > span {
    display: grid;
    line-height: 1.15;
    min-width: 0;
}

.publication-detail-brand strong {
    font-size: 0.75rem;
    font-weight: 850;
}

.publication-detail-brand small {
    color: var(--geo-muted);
    font-size: 0.58rem;
    margin-top: 0.15rem;
}

.publication-detail-back,
.publication-detail-back:visited,
.publication-detail-back:hover,
.publication-detail-back:focus-visible,
.publication-detail-back:active {
    align-items: center;
    border-radius: 10px;
    box-sizing: border-box;
    display: inline-flex;
    font-family: var(--geo-body-font);
    font-size: 0.68rem;
    font-weight: 800;
    gap: 0.3rem;
    line-height: 1;
    min-height: 36px;
    padding: 0.48rem 0.7rem;
    text-decoration: none;
}

.publication-detail-back,
.publication-detail-back:visited {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    color: var(--geo-blue);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.publication-detail-back svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 15px;
}

.publication-detail-back:hover,
.publication-detail-back:focus-visible {
    background: var(--geo-blue);
    border-color: var(--geo-blue);
    color: #fff;
    font-family: var(--geo-body-font);
    font-size: 0.68rem;
    min-height: 36px;
    padding: 0.48rem 0.7rem;
}

.publication-detail-back:focus-visible {
    outline: 3px solid rgba(22, 69, 135, 0.2);
    outline-offset: 2px;
}

.publication-detail-editorial {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(31, 42, 55, 0.1);
    overflow: hidden;
}

.publication-detail-hero {
    background:
        radial-gradient(circle at 93% 6%, rgba(22, 69, 135, 0.09), transparent 22rem),
        linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    min-height: 0;
    padding: clamp(1.6rem, 4.5vw, 3.8rem) clamp(1.35rem, 5.2vw, 4.8rem)
        clamp(1.4rem, 3vw, 2.5rem);
}

.publication-detail-hero__topline {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    margin-bottom: clamp(1rem, 2vw, 1.6rem);
}

.publication-detail-eyebrow,
.publication-detail-kicker {
    color: var(--geo-blue);
    display: block;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.publication-detail-eyebrow {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #c8d8eb;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.62rem;
}

.publication-detail-eyebrow__icon {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 14px;
}

body.page-publication-detail .publication-detail-hero h1 {
    color: var(--geo-ink);
    font-family: var(--geo-display-font);
    font-size: clamp(3rem, 7.2vw, 6.6rem);
    letter-spacing: -0.015em;
    line-height: 0.94;
    margin: 0;
    max-width: 16ch;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.publication-detail-byline {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.publication-detail-byline > img {
    background: var(--geo-yellow-soft);
    border: 1px solid #d7dee8;
    border-radius: 50%;
    height: 36px;
    object-fit: contain;
    padding: 2px;
    width: 36px;
}

.publication-detail-byline > span {
    display: grid;
    line-height: 1.25;
}

.publication-detail-byline strong {
    color: var(--geo-ink);
    font-size: 0.72rem;
    font-weight: 850;
}

.publication-detail-byline time {
    color: var(--geo-muted);
    font-size: 0.62rem;
    margin-top: 0.1rem;
}

.publication-detail-rule {
    background: linear-gradient(90deg, var(--geo-blue) 0 14%, var(--geo-line) 14% 100%);
    height: 1px;
    margin: 0 clamp(1.35rem, 5.2vw, 4.8rem);
}

.publication-detail-layout {
    display: grid;
    gap: clamp(1.3rem, 3vw, 3rem);
    grid-template-columns: minmax(135px, 0.22fr) minmax(0, 1fr);
    padding: clamp(1.4rem, 3.5vw, 3.2rem) clamp(1.35rem, 5.2vw, 4.8rem)
        clamp(2rem, 5vw, 4.8rem);
}

.publication-detail-rail {
    align-self: start;
    border-right: 1px solid var(--geo-line);
    display: grid;
    gap: 1.1rem;
    padding-right: clamp(1rem, 2.2vw, 2rem);
}

.publication-detail-rail > div {
    display: grid;
    gap: 0.2rem;
}

.publication-detail-rail span {
    color: var(--geo-muted);
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.publication-detail-rail strong,
.publication-detail-rail time {
    color: var(--geo-ink);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: capitalize;
}

.publication-detail-admin {
    background: #fff;
    border: 1px solid rgba(22, 69, 135, 0.09);
    border-radius: var(--geo-radius-md);
    box-shadow: var(--geo-shadow-sm);
}

.publication-detail-card {
    align-self: start;
    min-height: 0;
    padding: 0;
}

.publication-detail-content {
    color: #2e3a4a;
    font-family: var(--geo-body-font);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.82;
    margin: 0;
    max-width: 68ch;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.publication-detail-admin {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.15rem;
}

.publication-detail-admin .publication-detail-kicker {
    margin-bottom: 0.2rem;
}

.publication-detail-admin h2,
.publication-detail-danger h2 {
    color: var(--geo-ink);
    font-family: var(--geo-body-font);
    font-size: 0.94rem;
    font-weight: 850;
    margin: 0 0 0.35rem;
}

.publication-detail-admin p,
.publication-detail-danger p {
    color: var(--geo-muted);
    font-family: var(--geo-body-font);
    font-size: 0.75rem;
    line-height: 1.45;
    margin: 0;
}

.publication-detail-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
}

.publication-detail-button,
.publication-detail-delete {
    align-items: center;
    border-radius: 9px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    gap: 0.4rem;
    font-family: var(--geo-body-font);
    justify-content: center;
    min-height: 39px;
    padding: 0.5rem 0.76rem;
}

.publication-detail-button[hidden] {
    display: none;
}

.publication-detail-button--primary {
    background: var(--geo-blue);
    border: 1px solid var(--geo-blue);
    color: #fff;
}

.publication-detail-button--success {
    background: #218452;
    border: 1px solid #218452;
    color: #fff;
}

.publication-detail-button--quiet {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    color: var(--geo-ink);
}

.publication-detail-button:hover {
    filter: brightness(0.95);
}

.publication-detail-admin.is-editing {
    bottom: 1rem;
    box-shadow: 0 18px 55px rgba(24, 38, 59, 0.24);
    left: 50%;
    margin: 0;
    max-width: calc(100vw - 2rem);
    position: fixed;
    transform: translateX(-50%);
    width: min(1045px, calc(100vw - 2rem));
    z-index: 1080;
}

body.page-publication-detail.is-publication-editing {
    padding-bottom: 7.5rem;
}

body.page-publication-detail.is-publication-editing .messages-floating {
    bottom: 7rem;
}

body.page-publication-detail .publication-detail-hero h1.is-editing,
.publication-detail-content.is-editing {
    background: #fff;
    border: 2px solid #83a8d7;
    border-radius: 10px;
    color: var(--geo-ink);
    outline: 3px solid rgba(72, 129, 196, 0.2);
    padding: 0.5rem 0.65rem;
}

.publication-detail-content.is-editing {
    min-height: 180px;
    max-width: none;
}

.publication-detail-feedback {
    align-items: center;
    background: #edf9f2;
    border: 1px solid #b9e5cc;
    border-radius: 11px;
    color: #19643c;
    display: flex;
    font-size: 0.76rem;
    font-weight: 750;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.publication-detail-feedback[hidden] {
    display: none;
}

.publication-detail-feedback.is-error {
    background: #fff3f4;
    border-color: #efc2c8;
    color: #a52f3d;
}

.publication-detail-danger {
    margin-top: 0;
}

.publication-detail-danger > div {
    min-width: 0;
}

.publication-detail-danger h2 {
    color: #7a2631;
}

.publication-detail-danger p {
    color: #8c5660;
}

.publication-detail-delete {
    background: #fff;
    border: 1px solid #dc6674;
    color: var(--geo-danger);
    flex: 0 0 auto;
}

.publication-detail-delete svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 16px;
}

.publication-detail-delete:hover {
    background: var(--geo-danger);
    color: #fff;
}

body.page-publication-detail footer {
    align-items: center;
    background: #273241;
    display: flex;
    flex: 1 0 220px;
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    justify-content: center;
    margin: 0;
    min-height: 220px;
    padding: 3rem 1.5rem;
}

body.page-publication-detail footer .imgLogo {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    height: 64px;
    padding: 3px;
    width: 64px;
}

body.page-publication-detail footer > p {
    color: #aeb8c6;
    font-family: var(--geo-body-font);
    font-size: 0.76rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

@media (max-width: 760px) {
    .publication-detail-layout {
        grid-template-columns: 1fr;
    }

    .publication-detail-rail {
        border-bottom: 1px solid var(--geo-line);
        border-right: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.4rem;
        padding: 0 0 1rem;
    }

    .publication-detail-rail > div {
        min-width: 92px;
    }

    .publication-detail-admin,
    .publication-detail-danger {
        align-items: stretch;
        flex-direction: column;
    }

    .publication-detail-actions {
        flex-wrap: wrap;
    }

    .publication-detail-admin.is-editing {
        align-items: center;
        flex-direction: row;
    }

    .publication-detail-admin.is-editing > div:first-child {
        display: none;
    }

    .publication-detail-admin.is-editing .publication-detail-actions {
        flex: 1 1 auto;
    }

    .publication-detail-delete {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .publication-detail-shell {
        padding: 0.65rem;
    }

    .publication-detail-nav {
        border-radius: 14px;
    }

    .publication-detail-brand small {
        display: none;
    }

    .publication-detail-editorial {
        border-radius: 18px;
    }

    .publication-detail-hero {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .publication-detail-hero__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    body.page-publication-detail .publication-detail-hero h1 {
        font-size: clamp(2.75rem, 15vw, 4.4rem);
    }

    .publication-detail-rule {
        margin-inline: 1.15rem;
    }

    .publication-detail-layout {
        padding: 1.3rem 1.15rem 2rem;
    }

    .publication-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .publication-detail-admin.is-editing {
        bottom: 0.65rem;
        padding: 0.65rem;
    }

    .publication-detail-admin.is-editing .publication-detail-actions {
        flex-direction: row;
    }

    .publication-detail-admin.is-editing .publication-detail-button {
        flex: 1 1 0;
    }

    .publication-detail-button {
        width: 100%;
    }

}

html.is-admin-programmatic-scroll {
    scroll-behavior: auto !important;
}

/* Global form selects */

.geo-select {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--geo-surface-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23164587' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
    background-position: right 0.72rem center;
    background-repeat: no-repeat;
    background-size: 14px;
    border: 1px solid #d2d9e3;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(19, 39, 68, 0.04);
    color: var(--geo-ink);
    cursor: pointer;
    display: block;
    font-family: var(--geo-body-font);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.25;
    min-height: 40px;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
    width: 100%;
}

.geo-select:hover {
    background-color: #fff;
    border-color: #aebdd0;
}

.geo-select:focus,
.geo-select:focus-visible {
    background-color: #fff;
    border-color: var(--geo-blue);
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.13);
    outline: 0;
}

.geo-select:disabled {
    background-color: #eef1f5;
    color: #98a2b3;
    cursor: not-allowed;
    opacity: 1;
}

.geo-select option {
    background: #fff;
    color: var(--geo-ink);
    font-weight: 500;
}

.geo-select--sm {
    border-radius: 8px;
    font-size: 0.75rem;
    min-height: 34px;
    padding: 0.4rem 2rem 0.4rem 0.65rem;
}

/* Landing */

body.page-landing {
    background: #263241;
    color: var(--geo-ink);
}

body.page-landing main {
    background: var(--geo-yellow);
    overflow: clip;
}

body.page-landing main,
body.page-landing main p,
body.page-landing main li,
body.page-landing main label,
body.page-landing main input,
body.page-landing main textarea,
body.page-landing main button,
.landing-rendered,
.landing-rendered p,
.landing-rendered li,
.landing-rendered label,
.landing-rendered input,
.landing-rendered textarea,
.landing-rendered button {
    font-family: var(--geo-body-font);
}

body.page-landing main h1,
body.page-landing main h2,
body.page-landing main h3,
body.page-landing main h4,
.landing-rendered h1,
.landing-rendered h2,
.landing-rendered h3,
.landing-rendered h4 {
    font-family: var(--geo-display-font);
    font-weight: 400;
    letter-spacing: -0.025em;
}

body.page-landing section,
.landing-rendered section {
    isolation: isolate;
    min-height: auto;
    overflow: hidden;
    padding: 0;
    position: relative;
}

body.page-landing section > .articulo,
body.page-landing section > .editor-section__inner,
.landing-rendered section > .articulo,
.landing-rendered section > .editor-section__inner {
    box-sizing: border-box;
    margin-left: clamp(250px, 22vw, 350px);
    margin-right: clamp(2rem, 7vw, 7rem);
    max-width: 1120px;
    padding: clamp(5rem, 8vw, 8rem) 0;
    text-align: left;
    width: auto;
}

body.page-landing section > .articulo::before,
.landing-rendered section > .articulo::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 3px;
    margin-bottom: 1.4rem;
    opacity: 0.22;
    width: 42px;
}

body.page-landing section h1,
.landing-rendered section h1 {
    font-size: clamp(3.75rem, 8vw, 7.5rem);
    line-height: 0.95;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    max-width: 10ch;
}

body.page-landing #inicio h1,
.landing-rendered #inicio h1 {
    font-size: clamp(5rem, 12vw, 11rem);
    line-height: 0.82;
    max-width: none;
}

body.page-landing #inicio h3,
.landing-rendered #inicio h3 {
    font-family: var(--geo-body-font);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.25;
    max-width: 25ch;
}

body.page-landing section p,
.landing-rendered section p {
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.72;
    max-width: 74ch;
    text-align: left;
}

body.page-landing section strong,
.landing-rendered section strong {
    font-family: inherit;
    font-weight: 750;
}

body.page-landing #oposiciones,
body.page-landing #inicio,
body.page-landing #login,
body.page-landing #planes,
.landing-rendered #oposiciones,
.landing-rendered #inicio,
.landing-rendered #login,
.landing-rendered #planes {
    background: linear-gradient(145deg, var(--geo-blue) 0%, var(--geo-blue-deep) 100%);
    color: #f8fbff;
}

body.page-landing #about,
body.page-landing #curso,
body.page-landing #contacto,
.landing-rendered #about,
.landing-rendered #curso,
.landing-rendered #contacto {
    background: linear-gradient(145deg, #f5e7ca 0%, var(--geo-yellow) 100%);
    color: var(--geo-ink);
}

body.page-landing section::after,
.landing-rendered section::after {
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    height: 22rem;
    opacity: 0.06;
    pointer-events: none;
    position: absolute;
    right: -11rem;
    top: -11rem;
    width: 22rem;
    z-index: -1;
}

body.page-landing .menu,
.landing-rendered .menu {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 24px;
    box-shadow: var(--geo-shadow-md);
    gap: 5px;
    left: 20px;
    padding: 14px;
    top: 20px;
    width: 196px;
}

body.page-landing .cabecera,
.landing-rendered .cabecera {
    padding: 0.35rem 0 0.8rem;
}

body.page-landing .imgLogo,
.landing-rendered .imgLogo {
    background: var(--geo-surface);
    border: 1px solid rgba(22, 69, 135, 0.16);
    box-shadow: 0 6px 16px rgba(19, 39, 68, 0.1);
    padding: 4px;
}

body.page-landing .cabecera .imgLogo,
.landing-rendered .cabecera .imgLogo {
    width: 72px;
}

body.page-landing .menu a,
.landing-rendered .menu a {
    border-radius: 12px;
    color: var(--geo-ink);
    font-family: var(--geo-body-font);
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
}

body.page-landing .menu-elemento,
.landing-rendered .menu-elemento {
    background: transparent;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    padding: 5px 10px;
}

body.page-landing .menu-elemento:hover,
body.page-landing .menu a.active .menu-elemento,
.landing-rendered .menu-elemento:hover,
.landing-rendered .menu a.active .menu-elemento {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

body.page-landing .menu-elemento p,
.landing-rendered .menu-elemento p {
    align-items: center;
    display: flex;
    font-family: inherit;
    font-size: inherit;
    gap: 10px;
    margin: 0;
}

body.page-landing .menu-elemento img,
.landing-rendered .menu-elemento img {
    height: 30px;
    margin: 0;
    object-fit: contain;
    width: 30px;
}

body.page-landing .sesionIcon,
.landing-rendered .sesionIcon {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 69, 135, 0.12);
    box-shadow: var(--geo-shadow-sm);
    padding: 8px;
    right: 24px;
    top: 24px;
    width: 46px;
}

body.page-landing .video-container-landing-div,
.landing-rendered .video-container-landing-div {
    gap: 1rem;
    margin: 2.5rem 0;
}

body.page-landing .video-container-landing,
.landing-rendered .video-container-landing {
    aspect-ratio: 16 / 9;
    background: #0c1420;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--geo-radius-md);
    box-shadow: var(--geo-shadow-sm);
    max-width: none;
    overflow: hidden;
    position: relative;
    width: calc(50% - 0.5rem);
}

body.page-landing .video-container-landing > iframe,
.landing-rendered .video-container-landing > iframe {
    height: 100%;
    width: 100%;
}

body.page-landing .video-container-landing h3,
.landing-rendered .video-container-landing h3 {
    background: rgba(12, 20, 32, 0.84);
    color: #fff;
    font-family: var(--geo-body-font);
    font-size: 0.82rem;
    font-weight: 700;
    left: 10px;
    letter-spacing: 0;
    margin: 0;
    padding: 5px 9px;
    position: absolute;
    top: 10px;
    z-index: 2;
}

body.page-landing table,
.landing-rendered table {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-collapse: separate;
    border-radius: var(--geo-radius-md);
    border-spacing: 0;
    left: auto;
    margin: 2.5rem 0;
    overflow: hidden;
    width: 100%;
}

body.page-landing tr,
.landing-rendered tr {
    background: transparent;
}

body.page-landing td,
.landing-rendered td {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--geo-body-font);
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 1rem;
}

body.page-landing .planes-pricing,
.landing-rendered .planes-pricing {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--geo-radius-lg);
    box-shadow: var(--geo-shadow-md);
    color: var(--geo-ink);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

body.page-landing .planes-pricing .titulo-plan,
.landing-rendered .planes-pricing .titulo-plan {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

body.page-landing .planes-pricing h3,
.landing-rendered .planes-pricing h3 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0;
}

body.page-landing .precio,
.landing-rendered .precio {
    background: var(--geo-blue);
    border-radius: 999px;
    font-family: var(--geo-body-font);
    font-size: 0.88rem;
    font-weight: 750;
    margin: 0;
    padding: 0.55rem 0.85rem;
}

body.page-landing .planes-pricing p,
body.page-landing .planes-pricing li,
.landing-rendered .planes-pricing p,
.landing-rendered .planes-pricing li {
    font-size: 1rem;
    line-height: 1.65;
}

body.page-landing #tarjeta__aula--alertas,
.landing-rendered #tarjeta__aula--alertas {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--geo-radius-lg);
    box-shadow: var(--geo-shadow-md);
    height: min(540px, 64vh);
    margin-top: 2rem;
    padding: 0 1rem 1rem;
}

body.page-landing #filtros__alertas,
.landing-rendered #filtros__alertas {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--geo-line);
    margin: 0 -1rem 1rem;
    padding: 1.25rem;
    width: auto;
}

body.page-landing #filtros__alertas h2,
.landing-rendered #filtros__alertas h2 {
    color: var(--geo-ink);
    font-size: 1.8rem;
    margin: 0;
}

body.page-landing #tarjeta__aula--alertas li,
.landing-rendered #tarjeta__aula--alertas li {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-md);
    box-shadow: none;
    color: var(--geo-ink);
    margin-bottom: 0.75rem;
    padding: 1rem;
}

body.page-landing .publicacion__global,
.landing-rendered .publicacion__global {
    margin: 0.75rem 0 0;
}

body.page-landing .ver-mas,
.landing-rendered .ver-mas {
    border-color: var(--geo-line);
    color: var(--geo-blue);
    font-family: var(--geo-body-font);
    font-size: 0.86rem;
    font-weight: 750;
}

body.page-landing #curso .container,
.landing-rendered #curso .container {
    max-width: 100%;
}

body.page-landing #curso .row,
.landing-rendered #curso .row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

body.page-landing #curso .col.iconosCurso,
.landing-rendered #curso .col.iconosCurso {
    align-items: center;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(22, 69, 135, 0.1);
    border-radius: var(--geo-radius-md);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem;
    width: auto;
}

body.page-landing #curso img.iconosCurso,
.landing-rendered #curso img.iconosCurso {
    height: 72px;
    margin: 0 0 0.75rem;
    object-fit: contain;
    width: 72px;
}

body.page-landing .iconos-text,
.landing-rendered .iconos-text {
    font-family: var(--geo-body-font);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.35;
}

body.page-landing #contact_form,
.landing-rendered #contact_form {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: var(--geo-radius-lg);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

body.page-landing #contact_form input:not([type="submit"]),
body.page-landing #contact_form textarea,
.landing-rendered #contact_form input:not([type="submit"]),
.landing-rendered #contact_form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-sm);
    color: var(--geo-ink);
    font-family: var(--geo-body-font);
    padding: 0.8rem 0.9rem;
}

body.page-landing .enviar,
.landing-rendered .enviar {
    background: var(--geo-blue);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: var(--geo-body-font);
    font-weight: 750;
    padding: 0.8rem 1.4rem;
}

body.page-landing footer {
    background: #263241;
    height: auto;
    min-height: 260px;
}

/* Admin and student panels */

body.page-aula {
    background: var(--geo-surface-soft);
    color: var(--geo-ink);
}

body.page-aula main {
    background:
        radial-gradient(circle at top right, rgba(22, 69, 135, 0.08), transparent 30rem),
        var(--geo-surface-soft);
    color: var(--geo-ink);
    display: block;
    font-family: var(--geo-body-font);
    padding: clamp(0.8rem, 2vw, 1.6rem) clamp(0.8rem, 2vw, 1.6rem) 4rem;
}

body.page-aula main *,
body.page-aula main a:hover {
    font-family: var(--geo-body-font);
}

body.page-aula main h1,
body.page-aula main h2,
body.page-aula main h3,
body.page-aula main h4,
body.page-aula main h5 {
    color: var(--geo-ink);
    font-family: var(--geo-display-font);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.aula-shell {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.aula-shell--admin.container {
    max-width: 1440px;
    padding: 0;
}

.aula-hero {
    align-items: center;
    background: linear-gradient(135deg, var(--geo-blue) 0%, var(--geo-blue-deep) 100%);
    border-radius: var(--geo-radius-lg);
    box-shadow: var(--geo-shadow-md);
    color: #fff;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    overflow: visible;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
}

.aula-hero,
.student-profile-hero,
.delivery-review-hero {
    min-height: 12.5rem;
}

.aula-hero::after {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
    height: 14rem;
    pointer-events: none;
    position: absolute;
    right: 18%;
    top: -8rem;
    width: 14rem;
}

.aula-hero__copy {
    position: relative;
    z-index: 1;
}

.aula-eyebrow {
    color: #cbdcf5;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

body.page-aula .aula-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.95;
    margin: 0;
}

.aula-hero__copy p {
    color: #dce7f7;
    font-size: 0.96rem;
    margin: 0.8rem 0 0;
}

body.page-aula .saludo-header {
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    position: relative;
    right: auto;
    text-align: right;
    top: auto;
    z-index: 4;
}

body.page-aula .saludo-texto {
    align-items: center;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--geo-body-font);
    font-size: 0.9rem;
    font-weight: 750;
    gap: 0.55rem;
    line-height: 1;
    margin: 0;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

body.page-aula .saludo-texto:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

body.page-aula .saludo-icono {
    filter: brightness(0) invert(1);
    height: 18px;
    width: 18px;
}

body.page-aula .saludo-texto__chevron {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 160ms ease;
    width: 14px;
}

body.page-aula .saludo-texto.active .saludo-texto__chevron {
    transform: rotate(180deg);
}

body.page-aula .saludo-dropdown {
    background: #fff;
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-sm);
    box-shadow: var(--geo-shadow-md);
    display: none;
    margin-top: 0.45rem;
    min-width: 190px;
    overflow: hidden;
    padding: 0.35rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.1rem);
}

body.page-aula .saludo-texto.active ~ .saludo-dropdown {
    display: block;
}

body.page-aula .saludo-dropdown a {
    align-items: center;
    border-radius: 9px;
    color: var(--geo-danger);
    display: flex;
    font-family: var(--geo-body-font);
    font-size: 0.88rem;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
}

body.page-aula .saludo-dropdown a svg {
    fill: none;
    flex: 0 0 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

body.page-aula .saludo-dropdown a:hover,
body.page-aula .saludo-dropdown a:focus-visible {
    background: #fff1f2;
    color: var(--geo-danger);
    font-family: var(--geo-body-font);
}

body.page-aula .btn-estudiar {
    background: #fff;
    border-color: #fff;
    color: var(--geo-blue);
    font-size: 0.84rem;
    padding: 0.55rem 0.85rem;
}

body.page-aula .card,
body.page-aula .tarjeta__aula {
    background: var(--geo-surface);
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-lg);
    box-shadow: var(--geo-shadow-sm);
    color: var(--geo-ink);
    margin-bottom: 1.5rem;
    overflow: auto;
    padding: 0;
}

body.page-aula .card {
    height: 560px;
}

body.page-aula .tarjeta__aula {
    height: 560px;
    padding: 0 1.25rem 1.25rem;
}

body.page-aula .aula-card--feature,
body.page-aula .aula-card--compact,
body.page-aula .card-clase-semanal,
body.page-aula-alumno .container.mb-4 .card {
    height: auto;
    max-height: none;
    overflow: visible;
}

body.page-aula .aula-card--feature {
    background: linear-gradient(135deg, #fff 0%, var(--geo-blue-soft) 100%);
    border-color: #bed0ea;
}

body.page-aula .card-header,
body.page-aula .filtros {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--geo-line);
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 74px;
    padding: 1.15rem 1.25rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 5;
}

body.page-aula .tarjeta__aula .filtros {
    margin: 0 -1.25rem 1rem;
    width: calc(100% + 2.5rem);
}

body.page-aula .card-header h2,
body.page-aula .filtros h2 {
    font-size: 1.85rem;
    margin: 0;
}

body.page-aula .card-body {
    padding: 1.25rem;
}

body.page-aula .card-title {
    font-family: var(--geo-body-font);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.page-aula .text-muted {
    color: var(--geo-muted) !important;
    font-size: 0.9rem;
}

body.page-aula .btn {
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.2;
    padding: 0.68rem 0.95rem;
}

body.page-aula .btn-primary {
    background: var(--geo-blue);
    border-color: var(--geo-blue);
}

body.page-aula .btn-primary:hover {
    background: var(--geo-blue-deep);
    border-color: var(--geo-blue-deep);
}

body.page-aula .btn-danger {
    background: var(--geo-danger);
    border-color: var(--geo-danger);
}

body.page-aula .form-control,
body.page-aula .form-select,
body.page-aula .geo-select {
    background-color: #fff;
    border: 1px solid #cfd7e2;
    border-radius: 10px;
    color: var(--geo-ink);
    font-family: var(--geo-body-font);
    font-size: 0.9rem;
    min-height: 42px;
}

body.page-aula .form-control:focus,
body.page-aula .form-select:focus,
body.page-aula .geo-select:focus {
    border-color: var(--geo-blue);
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.13);
}

body.page-aula .form-label,
body.page-aula label {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 650;
}

body.page-aula .form-check-input:checked {
    background-color: var(--geo-blue);
    border-color: var(--geo-blue);
}

body.page-aula .list-group {
    gap: 0.45rem;
}

body.page-aula .list-group-item {
    border: 1px solid var(--geo-line);
    border-radius: 11px !important;
    color: var(--geo-ink);
    font-size: 0.88rem;
    padding: 0.8rem 0.9rem;
}

body.page-aula .badge {
    border-radius: 999px;
    font-family: var(--geo-body-font);
    font-size: 0.68rem;
    font-weight: 750;
    padding: 0.4rem 0.58rem;
}

body.page-aula .btn__add {
    background: rgba(255, 255, 255, 0.94);
    padding: 0.25rem 0 0.85rem;
    top: 74px;
    z-index: 4;
}

body.page-aula .btn__add button {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #c9d8ed;
    border-radius: 10px;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    margin: 0 0.2rem;
    width: 40px;
}

body.page-aula .btn__add button:hover {
    background: #dbe8f8;
}

body.page-aula .btn__add button > img {
    height: 20px;
    width: 20px;
}

.aula-filterbar {
    background: var(--geo-surface);
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-md);
    box-shadow: var(--geo-shadow-sm);
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
}

.aula-filterbar .filtrar {
    color: var(--geo-muted);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

body.page-aula .pastillas__tema {
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

body.page-aula .pastilla__tema--filter {
    border: 1px solid rgba(24, 34, 48, 0.1);
    border-radius: 999px;
    height: 34px;
    margin: 0;
    overflow: hidden;
    width: auto;
}

body.page-aula .label__checkbox--tematica {
    font-size: 0.78rem;
    height: 34px;
    min-width: 92px;
    padding: 0 0.8rem;
}

body.page-aula .label__checkbox--tematica.inactive {
    background: #e4e7ec;
    color: var(--geo-muted);
    opacity: 0.72;
}

body.page-aula .apartado {
    border: 1px solid rgba(24, 34, 48, 0.11);
    border-radius: var(--geo-radius-md);
    box-shadow: none;
    margin: 0 0 0.7rem;
    padding: 0;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

body.page-aula .apartado:hover {
    box-shadow: var(--geo-shadow-sm);
    transform: translateY(-1px);
}

body.page-aula .apartado > a,
body.page-aula a > .apartado {
    padding: 1rem;
}

body.page-aula .apartado p {
    font-size: 0.92rem;
    font-weight: 750;
    margin: 0;
    padding: 1rem;
}

body.page-aula .notificacion {
    border: 1px solid rgba(24, 34, 48, 0.08);
    font-size: 0.7rem;
    min-height: 42px;
    padding: 0.35rem 0.55rem;
}

body.page-aula #tarjeta__aula--alertas li,
body.page-aula .tarjeta__aula--alertas li {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-md);
    box-shadow: none;
    margin-bottom: 0.7rem;
    padding: 1rem;
}

body.page-aula .publicacion__titulo {
    font-family: var(--geo-body-font);
    font-size: 0.94rem;
    font-weight: 800;
}

body.page-aula .publicacion__contenido {
    font-family: var(--geo-body-font);
    font-size: 0.87rem;
    line-height: 1.55;
}

body.page-aula .ver-mas {
    border-color: var(--geo-line);
    color: var(--geo-blue);
    font-size: 0.78rem;
    font-weight: 750;
}

body.page-aula .filtros-profesor {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    padding: 0.75rem;
    text-align: left;
}

body.page-aula .alert {
    border: 1px solid transparent;
    border-radius: var(--geo-radius-sm);
    font-family: var(--geo-body-font);
    font-size: 0.88rem;
}

body.page-aula footer {
    display: none;
}

/* Teacher workspace */

body.page-aula-profesor {
    background: var(--geo-yellow);
}

body.page-aula-profesor main {
    background:
        radial-gradient(circle at top right, rgba(22, 69, 135, 0.1), transparent 34rem),
        linear-gradient(145deg, #f5e7ca 0%, var(--geo-yellow) 100%);
}

body.page-aula-profesor .aula-shell--admin > .row {
    --bs-gutter-x: 1.25rem;
}

body.page-aula-profesor .aula-admin-nav-anchor {
    display: block;
    height: 0;
    pointer-events: none;
}

body.page-aula-profesor .aula-admin-nav {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(45, 38, 24, 0.08);
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin: 0 0 1.25rem;
    overflow-x: auto;
    padding: 0.4rem;
    position: sticky;
    top: 0.75rem;
    z-index: 30;
}

body.page-aula-profesor .aula-admin-nav a {
    border-radius: 10px;
    color: var(--geo-muted);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 750;
    padding: 0.55rem 0.78rem;
    text-decoration: none;
}

body.page-aula-profesor .aula-admin-nav a:hover,
body.page-aula-profesor .aula-admin-nav a:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-nav a.is-active,
body.page-aula-profesor .aula-admin-nav a[aria-selected="true"] {
    background: var(--geo-blue-soft);
    box-shadow: inset 0 0 0 1px #cad9ec;
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-view[hidden] {
    display: none !important;
}

body.page-aula-profesor .aula-admin-view.is-active {
    animation: aula-admin-view-in 160ms ease-out;
}

body.page-aula-profesor .aula-admin-management-grid > .aula-admin-view:not([hidden]),
body.page-aula-profesor .aula-admin-settings.aula-admin-view:not([hidden]) {
    margin-top: 0;
}

@keyframes aula-admin-view-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-aula-profesor #operativa,
body.page-aula-profesor #alumnos,
body.page-aula-profesor #contenidos,
body.page-aula-profesor #comunicaciones,
body.page-aula-profesor #ajustes {
    scroll-margin-top: 5.25rem;
}

body.page-aula-profesor .card {
    border-color: rgba(22, 69, 135, 0.11);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(45, 38, 24, 0.08);
}

body.page-aula-profesor .card-header {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 64px;
    padding: 0.9rem 1.15rem;
}

body.page-aula-profesor .card-header h2 {
    font-size: 1.65rem;
}

body.page-aula-profesor .card-body {
    padding: 1rem 1.15rem 1.15rem;
}

body.page-aula-profesor .aula-card--feature {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(22, 69, 135, 0.22);
}

body.page-aula-profesor .aula-card--compact {
    background: rgba(255, 255, 255, 0.92);
}

body.page-aula-profesor .aula-admin-setting-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-start;
    padding: 0 1.15rem 1rem;
}

body.page-aula-profesor .aula-admin-setting-card__links a {
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 999px;
    color: var(--geo-blue);
    font-size: 0.75rem;
    font-weight: 750;
    padding: 0.38rem 0.65rem;
    text-decoration: none;
}

body.page-aula-profesor .aula-admin-setting-card__links a:hover {
    background: #dbe8f8;
    color: var(--geo-blue-deep);
}

body.page-aula-profesor .aula-admin-setting-action {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 10px;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.52rem 0.75rem;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

body.page-aula-profesor .aula-admin-setting-action:hover {
    background: #dbe8f8;
    border-color: #afc5e2;
    color: var(--geo-blue-deep);
    transform: translateY(-1px);
}

body.page-aula-profesor .aula-admin-section-kicker {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
}

body.page-aula-profesor .card-clase-semanal .aula-admin-section-kicker {
    color: var(--geo-blue);
    text-align: left;
}

body.page-aula-profesor .aula-admin-class-tabs {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0.8rem;
}

body.page-aula-profesor .aula-admin-class-tab {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--geo-line);
    border-radius: 12px;
    color: var(--geo-ink);
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-height: 62px;
    padding: 0.72rem 0.85rem;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

body.page-aula-profesor .aula-admin-class-tab span {
    font-size: 0.85rem;
    font-weight: 800;
}

body.page-aula-profesor .aula-admin-class-tab small {
    color: var(--geo-muted);
    font-size: 0.68rem;
}

body.page-aula-profesor .aula-admin-class-tab:hover {
    border-color: #aebfd5;
}

body.page-aula-profesor .aula-admin-class-tab.is-active {
    background: var(--geo-blue-soft);
    border-color: var(--geo-blue);
    box-shadow: inset 0 0 0 1px var(--geo-blue);
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-class-tab.is-active small {
    color: #496b98;
}

body.page-aula-profesor .aula-admin-class-editor {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 13px;
    padding: 1rem;
}

body.page-aula-profesor .aula-admin-class-panel[hidden] {
    display: none;
}

body.page-aula-profesor .aula-admin-class-fields {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
}

body.page-aula-profesor .aula-admin-class-link {
    font-size: 0.76rem;
    margin-top: 0.75rem;
    text-align: left;
}

body.page-aula-profesor .aula-admin-class-link a {
    color: var(--geo-blue);
    font-weight: 700;
    text-decoration: none;
}

body.page-aula-profesor .aula-admin-class-link a::after {
    content: " ↗";
}

body.page-aula-profesor .aula-admin-class-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 0.85rem;
}

body.page-aula-profesor .aula-admin-class-actions p {
    color: var(--geo-muted);
    font-size: 0.7rem;
    margin: 0;
}

body.page-aula-profesor .aula-admin-class-actions > div {
    display: flex;
    gap: 0.5rem;
}

body.page-aula-profesor .aula-admin-class-actions .btn {
    font-size: 0.73rem;
    min-height: 36px;
    padding: 0.48rem 0.75rem;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-unified-card {
    height: auto;
    max-height: none;
    overflow: visible;
}

body.page-aula-profesor .aula-admin-unified-header {
    gap: 1rem;
    justify-content: space-between;
}

body.page-aula-profesor .aula-admin-unified-header .aula-admin-workspace-tabs {
    flex: 0 1 auto;
    margin: 0;
}

body.page-aula-profesor .aula-admin-workspace-tabs {
    background: #f1f4f8;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.35rem;
}

body.page-aula-profesor .aula-admin-workspace-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: var(--geo-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.5rem 0.78rem;
}

body.page-aula-profesor .aula-admin-workspace-tab:hover {
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-workspace-tab.is-active {
    background: #fff;
    box-shadow: 0 3px 10px rgba(22, 69, 135, 0.1);
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-workspace-tab > span {
    align-items: center;
    background: var(--geo-blue-soft);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.62rem;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 0.35rem;
}

body.page-aula-profesor .aula-admin-workspace-panel[hidden] {
    display: none;
}

body.page-aula-profesor .aula-admin-panel-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

body.page-aula-profesor .aula-admin-panel-toolbar--end {
    justify-content: flex-end;
}

body.page-aula-profesor .aula-admin-panel-toolbar .aula-admin-note,
body.page-aula-profesor .aula-admin-panel-toolbar .btn__add {
    margin: 0;
    padding-bottom: 0;
}

body.page-aula-profesor .aula-admin-compact-list,
body.page-aula-profesor .aula-admin-message-list {
    max-height: min(560px, 62vh);
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-color: #c7d2df transparent;
    scrollbar-width: thin;
}

body.page-aula-profesor .aula-admin-message-list .list-group-item {
    padding: 0;
}

body.page-aula-profesor .aula-admin-message-list .list-group-item > a {
    align-items: center;
    color: var(--geo-ink);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.78rem 0.9rem;
    text-decoration: none;
}

body.page-aula-profesor .aula-admin-message-main {
    min-width: 0;
}

body.page-aula-profesor .aula-admin-message-heading {
    align-items: baseline;
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.22rem;
}

body.page-aula-profesor .aula-admin-message-heading strong {
    font-size: 0.82rem;
}

body.page-aula-profesor .aula-admin-message-heading time {
    color: var(--geo-muted);
    flex: 0 0 auto;
    font-size: 0.64rem;
}

body.page-aula-profesor .aula-admin-message-main p {
    color: var(--geo-muted);
    display: -webkit-box;
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.page-aula-profesor .aula-admin-message-more {
    color: var(--geo-blue);
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-message-more::after {
    content: " →";
}

body.page-aula-profesor .aula-admin-empty-state {
    color: var(--geo-muted);
    font-size: 0.75rem;
    list-style: none;
    padding: 1rem 0.2rem;
}

body.page-aula-profesor .aula-admin-publication-field {
    margin-bottom: 0.9rem;
}

body.page-aula-profesor .aula-admin-publication-field > label,
body.page-aula-profesor .aula-admin-publication-destination > legend {
    color: var(--geo-ink);
    font-size: 0.73rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

body.page-aula-profesor .aula-admin-publication-destination {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}

body.page-aula-profesor .aula-admin-publication-destination > legend {
    float: none;
    width: auto;
}

body.page-aula-profesor .aula-admin-publication-checkbox {
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

body.page-aula-profesor .aula-admin-publication-targets {
    background: #f1f4f8;
    border: 1px solid #dfe5ed;
    border-radius: 11px;
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.3rem;
}

body.page-aula-profesor .aula-admin-publication-target {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--geo-muted);
    font-size: 0.73rem;
    font-weight: 800;
    min-height: 36px;
    padding: 0.46rem 0.72rem;
}

body.page-aula-profesor .aula-admin-publication-target:hover {
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-publication-target.is-active {
    background: #fff;
    box-shadow: 0 3px 10px rgba(22, 69, 135, 0.1);
    color: var(--geo-blue);
}

body.page-aula-profesor .form-control,
body.page-aula-profesor .form-select,
body.page-aula-profesor .geo-select,
body.page-aula-profesor textarea {
    background-color: var(--geo-surface-soft);
    border-color: #d2d9e3;
    border-radius: 9px;
    box-shadow: none;
    min-height: 38px;
    padding: 0.52rem 0.7rem;
}

body.page-aula-profesor .form-control::placeholder,
body.page-aula-profesor textarea::placeholder {
    color: #98a2b3;
}

body.page-aula-profesor .form-select,
body.page-aula-profesor .geo-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E");
    background-position: right 0.55rem center;
    background-repeat: no-repeat;
    padding-right: 1.85rem;
}

body.page-aula-profesor .form-control:hover,
body.page-aula-profesor .form-select:hover,
body.page-aula-profesor .geo-select:hover {
    border-color: #b8c5d6;
}

body.page-aula-profesor .btn-success {
    background: var(--geo-blue);
    border-color: var(--geo-blue);
}

body.page-aula-profesor .btn-success:hover,
body.page-aula-profesor .btn-success:focus-visible {
    background: var(--geo-blue-deep);
    border-color: var(--geo-blue-deep);
}

body.page-aula-profesor .aula-admin-pending-column {
    order: 1;
}

body.page-aula-profesor .aula-admin-operativa-row {
    align-content: flex-start;
    align-items: stretch;
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

body.page-aula-profesor .aula-admin-operativa-row > [class*="col-"] {
    display: flex;
}

body.page-aula-profesor .aula-admin-operativa-row .card {
    height: 100%;
    width: 100%;
}

body.page-aula-profesor .aula-admin-viewport-scroll {
    height: calc(100dvh - 6rem);
    max-height: none;
    min-height: 560px;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-color: #c7d2df transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

body.page-aula-profesor .aula-admin-operativa-row.aula-admin-viewport-scroll {
    padding-bottom: 0.2rem;
}

body.page-aula-profesor .aula-admin-pending--daily {
    max-height: 520px;
    overflow: hidden;
}

body.page-aula-profesor .aula-admin-pending--daily .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-color: #c7d2df transparent;
    scrollbar-width: thin;
}

body.page-aula-profesor .aula-admin-pending__header {
    align-items: flex-start;
}

body.page-aula-profesor .aula-admin-pending__title {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin-top: 0.08rem;
}

body.page-aula-profesor .aula-admin-pending__title h2 {
    margin: 0;
}

body.page-aula-profesor .aula-admin-pending__title > span {
    align-items: center;
    background: #fff0e6;
    border: 1px solid #f2c7a8;
    border-radius: 999px;
    color: #a84b17;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 850;
    justify-content: center;
    min-height: 25px;
    min-width: 25px;
    padding: 0.22rem 0.42rem;
}

body.page-aula-profesor .aula-admin-pending__header p {
    color: var(--geo-muted);
    font-size: 0.68rem;
    line-height: 1.4;
    margin: 0.28rem 0 0;
}

body.page-aula-profesor .aula-admin-pending-list {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-aula-profesor .aula-admin-pending-item {
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--admin-item-color) 12%, white),
            #fff 28%
        );
    border: 1px solid color-mix(in srgb, var(--admin-item-color) 32%, #dce3ec);
    border-left: 4px solid color-mix(in srgb, var(--admin-item-color) 78%, var(--geo-blue));
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.page-aula-profesor .aula-admin-pending-item:hover {
    border-color: color-mix(in srgb, var(--admin-item-color) 52%, #c7d2df);
    box-shadow: 0 8px 22px rgba(22, 69, 135, 0.09);
    transform: translateY(-1px);
}

body.page-aula-profesor .aula-admin-pending-item > a {
    color: var(--geo-ink);
    display: block;
    padding: 0.75rem 0.8rem 0.68rem;
    text-decoration: none;
}

body.page-aula-profesor .aula-admin-pending-item__main {
    align-items: center;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

body.page-aula-profesor .aula-admin-pending-item__icon {
    align-items: center;
    background: color-mix(in srgb, var(--admin-item-color) 18%, white);
    border-radius: 9px;
    color: color-mix(in srgb, var(--admin-item-color) 72%, var(--geo-blue));
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

body.page-aula-profesor .aula-admin-pending-item__icon svg,
body.page-aula-profesor .aula-admin-pending-item__meta svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

body.page-aula-profesor .aula-admin-pending-item__icon svg {
    height: 19px;
    width: 19px;
}

body.page-aula-profesor .aula-admin-pending-item__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.page-aula-profesor .aula-admin-pending-item__student {
    color: var(--geo-ink);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}

body.page-aula-profesor .aula-admin-pending-item__copy strong {
    color: var(--geo-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-pending-item__status {
    background: #fff5e9;
    border: 1px solid #f0d3b5;
    border-radius: 999px;
    color: #9b541f;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.3rem 0.46rem;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-pending-item__arrow {
    color: var(--geo-blue);
    font-size: 0.9rem;
    font-weight: 850;
}

body.page-aula-profesor .aula-admin-pending-item__meta {
    align-items: center;
    border-top: 1px solid rgba(128, 145, 168, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem 0.75rem;
    margin-top: 0.62rem;
    padding-top: 0.55rem;
}

body.page-aula-profesor .aula-admin-pending-item__meta > span {
    align-items: center;
    color: #687487;
    display: inline-flex;
    font-size: 0.61rem;
    font-weight: 700;
    gap: 0.28rem;
    min-width: 0;
}

body.page-aula-profesor .aula-admin-pending-item__meta > span.is-muted {
    color: #929bab;
}

body.page-aula-profesor .aula-admin-pending-item__meta svg {
    flex: 0 0 auto;
    height: 13px;
    width: 13px;
}

body.page-aula-profesor .aula-admin-pending-item__file {
    flex: 1 1 150px;
    overflow: hidden;
}

body.page-aula-profesor .aula-admin-pending-item__file {
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-pending--daily h3 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

body.page-aula-profesor .aula-admin-empty-copy {
    color: var(--geo-muted);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

body.page-aula-profesor .aula-admin-pending-empty {
    align-items: center;
    color: var(--geo-muted);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 1.5rem;
    text-align: center;
}

body.page-aula-profesor .aula-admin-pending-empty__illustration {
    margin-bottom: 0.6rem;
    width: clamp(116px, 32%, 158px);
}

body.page-aula-profesor .aula-admin-pending-empty__illustration svg {
    display: block;
    height: auto;
    overflow: visible;
    width: 100%;
}

body.page-aula-profesor .aula-admin-pending-empty__shadow {
    fill: #e9eef5;
}

body.page-aula-profesor .aula-admin-pending-empty__page {
    fill: #fff;
    stroke: #b9cae1;
    stroke-linejoin: round;
    stroke-width: 2;
}

body.page-aula-profesor .aula-admin-pending-empty__page--back {
    fill: #eaf1fb;
    stroke: #cad7e8;
}

body.page-aula-profesor .aula-admin-pending-empty__clip {
    fill: #d9e7f8;
    stroke: var(--geo-blue);
    stroke-linejoin: round;
    stroke-width: 2;
}

body.page-aula-profesor .aula-admin-pending-empty__check-bg {
    fill: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-pending-empty__check,
body.page-aula-profesor .aula-admin-pending-empty__spark {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-aula-profesor .aula-admin-pending-empty__check {
    stroke: #fff;
    stroke-width: 4;
}

body.page-aula-profesor .aula-admin-pending-empty__spark {
    stroke: #e2ad22;
    stroke-width: 3;
}

body.page-aula-profesor .aula-admin-pending-empty__spark--two {
    stroke: #8fa7c6;
    stroke-width: 2.5;
}

body.page-aula-profesor .aula-admin-pending-empty > strong {
    color: var(--geo-ink);
    font-size: 1rem;
    font-weight: 850;
}

body.page-aula-profesor .aula-admin-pending-empty > p {
    font-size: 0.74rem;
    font-weight: 700;
    margin: 0.22rem 0 0;
}

body.page-aula-profesor .aula-admin-pending-empty > span {
    color: #8a96a8;
    font-size: 0.66rem;
    margin-top: 0.12rem;
}

body.page-aula-profesor .aula-admin-pending-empty > span a {
    color: var(--geo-blue);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

body.page-aula-profesor .aula-admin-pending-empty > span a:hover,
body.page-aula-profesor .aula-admin-pending-empty > span a:focus-visible {
    color: var(--geo-blue-deep);
    text-decoration-style: solid;
}

body.page-aula-profesor .aula-admin-dashboard-card {
    min-height: 190px;
}

body.page-aula-profesor .aula-admin-dashboard-card__header {
    gap: 1rem;
    justify-content: space-between;
}

body.page-aula-profesor .aula-admin-dashboard-card .aula-admin-section-kicker {
    color: var(--geo-blue);
    text-align: left;
}

body.page-aula-profesor .aula-admin-dashboard-copy {
    color: var(--geo-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
}

body.page-aula-profesor .aula-admin-stats {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.9rem;
}

body.page-aula-profesor .aula-admin-stats > div {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 12px;
    color: var(--geo-ink);
    display: flex;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.65rem 0.8rem;
}

body.page-aula-profesor .aula-admin-stats strong {
    color: var(--geo-blue);
    font-size: 1.1rem;
    line-height: 1;
}

body.page-aula-profesor .aula-admin-stats span {
    font-size: 0.75rem;
    font-weight: 750;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats > div {
    --admin-stat-accent: #164587;
    --admin-stat-soft: #edf4fc;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, var(--admin-stat-soft) 100%);
    border-color: color-mix(in srgb, var(--admin-stat-accent) 23%, #dfe5ed);
    box-shadow: 0 2px 7px rgba(20, 50, 89, 0.04);
    flex-direction: column;
    gap: 0.18rem;
    justify-content: center;
    text-align: center;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats > div:nth-child(2) {
    --admin-stat-accent: #23885a;
    --admin-stat-soft: #edf8f2;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats > div:nth-child(3) {
    --admin-stat-accent: #7957a7;
    --admin-stat-soft: #f4f0fa;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats > div:nth-child(4) {
    --admin-stat-accent: #b8642b;
    --admin-stat-soft: #fff3e9;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats > div:nth-child(5) {
    --admin-stat-accent: #287c85;
    --admin-stat-soft: #edf8f8;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats > div:nth-child(6) {
    --admin-stat-accent: #4e63a9;
    --admin-stat-soft: #eff1fb;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats strong {
    color: var(--admin-stat-accent);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

body.page-aula-profesor .aula-admin-dashboard-card--stats .aula-admin-stats span {
    color: #445064;
    font-size: 0.68rem;
    line-height: 1;
}

@media (min-width: 992px) {
    body.page-aula-profesor .aula-admin-operativa-row {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto minmax(190px, 1fr);
        margin-inline: 0;
        margin-top: 0;
    }

    body.page-aula-profesor .aula-admin-operativa-row > [class*="col-"] {
        margin-top: 0;
        max-width: none;
        padding-inline: 0;
        width: auto;
    }

    body.page-aula-profesor .aula-admin-operativa-row .card {
        margin-bottom: 0;
    }

    body.page-aula-profesor .aula-admin-operativa-classes {
        grid-column: 1;
        grid-row: 1;
    }

    body.page-aula-profesor .aula-admin-operativa-activity {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    body.page-aula-profesor .aula-admin-operativa-activity .card-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.page-aula-profesor .aula-admin-operativa-activity .aula-admin-dashboard-copy {
        display: none;
    }

    body.page-aula-profesor .aula-admin-operativa-activity .aula-admin-stats {
        flex: 1 1 auto;
        gap: 0.4rem;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        margin-top: 0;
        min-height: 0;
    }

    body.page-aula-profesor .aula-admin-operativa-activity .aula-admin-stats > div {
        height: 100%;
        min-height: 0;
        padding: 0.18rem 0.4rem;
    }

    body.page-aula-profesor .aula-admin-operativa-pending {
        grid-column: 2;
        grid-row: 1 / 3;
        min-height: 0;
    }

    body.page-aula-profesor .aula-admin-pending--daily {
        display: flex;
        flex-direction: column;
        max-height: none;
    }

    body.page-aula-profesor .aula-admin-pending--daily .card-body {
        flex: 1 1 auto;
    }
}

body.page-aula-profesor .aula-admin-flashcard-status {
    align-items: center;
    color: var(--geo-muted);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 750;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

body.page-aula-profesor .aula-admin-flashcard-status::before {
    background: #9ca6b4;
    border-radius: 50%;
    content: "";
    height: 7px;
    width: 7px;
}

body.page-aula-profesor .aula-admin-flashcard-status.is-active {
    color: #237346;
}

body.page-aula-profesor .aula-admin-flashcard-status.is-active::before {
    background: #2c9560;
}

body.page-aula-profesor .aula-admin-flashcards-setting {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
}

body.page-aula-profesor .aula-admin-flashcards-setting .aula-admin-flashcard-status {
    margin-top: 0;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-flashcards-setting form,
body.page-aula-profesor .aula-admin-flashcards-setting .form-check {
    margin: 0;
}

body.page-aula-profesor .aula-admin-flashcards-setting .form-check {
    align-items: center;
    display: flex;
    padding-left: 0;
}

body.page-aula-profesor .aula-admin-flashcards-setting .form-check-input {
    float: none;
    margin: 0;
}

body.page-aula-profesor .aula-admin-dashboard-card .aula-admin-setting-card__links {
    margin-top: 0.9rem;
    padding: 0;
}

body.page-aula-profesor .aula-admin-students-column {
    order: 2;
}

body.page-aula-profesor .aula-admin-content-column {
    order: 3;
}

body.page-aula-profesor .aula-admin-communications-divider {
    order: 4;
}

body.page-aula-profesor .aula-admin-communications-column {
    order: 5;
}

body.page-aula-profesor .aula-admin-management-grid > [class*="col-"] {
    margin-top: 1.25rem;
}

body.page-aula-profesor .aula-admin-card-header-actions {
    flex-direction: row;
    justify-content: space-between;
}

body.page-aula-profesor .aula-admin-card-header-actions h2 {
    text-align: left;
}

body.page-aula-profesor .aula-admin-add-student {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 9px;
    color: var(--geo-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.45rem 0.65rem;
}

body.page-aula-profesor .aula-admin-add-student > span {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

body.page-aula-profesor .aula-admin-add-student:hover {
    background: #dbe8f8;
    border-color: #afc5e2;
}

body.page-aula-profesor .aula-admin-inline-form {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 12px;
    margin-bottom: 0.85rem;
    padding: 0.9rem;
}

body.page-aula-profesor .aula-admin-add-student-submit {
    align-items: center;
    background: var(--geo-blue);
    border: 1px solid var(--geo-blue);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-family: var(--geo-body-font);
    font-size: 0.8rem;
    font-weight: 800;
    gap: 0.5rem;
    justify-content: center;
    min-height: 40px;
    min-width: 148px;
    padding: 0.55rem 0.85rem;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.page-aula-profesor .aula-admin-add-student-submit:hover:not(:disabled) {
    background: #123d75;
    box-shadow: 0 9px 20px rgba(20, 71, 135, 0.2);
    transform: translateY(-1px);
}

body.page-aula-profesor .aula-admin-add-student-submit:disabled {
    cursor: wait;
    opacity: 0.78;
}

body.page-aula-profesor .aula-admin-add-student-submit__spinner {
    display: none;
    height: 16px;
    width: 16px;
}

body.page-aula-profesor .aula-admin-add-student-submit.is-loading
    .aula-admin-add-student-submit__spinner {
    display: inline-flex;
}

body.page-aula-profesor .aula-admin-add-student-submit__spinner svg {
    animation: aula-admin-add-student-spin 720ms linear infinite;
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-dasharray: 42 16;
    stroke-linecap: round;
    stroke-width: 3;
    width: 100%;
}

@keyframes aula-admin-add-student-spin {
    to {
        transform: rotate(360deg);
    }
}

body.page-aula-profesor .aula-admin-list-card {
    height: clamp(500px, calc(100vh - 8rem), 640px);
    max-height: 640px;
    overflow: auto;
}

body.page-aula-profesor .aula-admin-viewport-card {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 6rem);
    max-height: none;
    min-height: 560px;
    overflow: hidden;
}

body.page-aula-profesor .aula-admin-viewport-card > .card-header {
    flex: 0 0 auto;
}

body.page-aula-profesor .aula-admin-viewport-card > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.page-aula-profesor .aula-admin-viewport-card--students > .card-body,
body.page-aula-profesor .aula-admin-viewport-card--contents > .card-body,
body.page-aula-profesor .aula-admin-viewport-card--contents .aula-admin-workspace-panel {
    display: flex;
    flex-direction: column;
}

body.page-aula-profesor .aula-admin-viewport-card--students .lista-alumnos,
body.page-aula-profesor .aula-admin-viewport-card--contents .aula-admin-workspace-panel,
body.page-aula-profesor .aula-admin-viewport-card--contents .aula-admin-compact-list {
    flex: 1 1 auto;
    min-height: 0;
}

body.page-aula-profesor .aula-admin-viewport-card--students .lista-alumnos,
body.page-aula-profesor .aula-admin-viewport-card--contents .aula-admin-compact-list {
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-right: 0.2rem;
    scrollbar-gutter: stable;
    scrollbar-color: #c7d2df transparent;
    scrollbar-width: thin;
}

body.page-aula-profesor.is-admin-scroll-snap-enabled .aula-admin-viewport-scroll,
body.page-aula-profesor.is-admin-scroll-snap-enabled .aula-admin-viewport-card--students .lista-alumnos,
body.page-aula-profesor.is-admin-scroll-snap-enabled .aula-admin-viewport-card--contents .aula-admin-compact-list {
    overscroll-behavior-y: contain;
}

body.page-aula-profesor .aula-admin-list-card,
body.page-aula-profesor .aula-admin-messages-card {
    scrollbar-color: #c7d2df transparent;
    scrollbar-width: thin;
}

body.page-aula-profesor .btn__add {
    background: transparent;
    display: flex;
    justify-content: flex-end;
    padding: 0 0 0.7rem;
    position: static;
}

body.page-aula-profesor .btn__add button {
    border-radius: 9px;
    height: 36px;
    width: 36px;
}

body.page-aula-profesor .btn__add button > img {
    height: 18px;
    width: 18px;
}

body.page-aula-profesor .filtros-profesor {
    align-items: flex-end;
    background: transparent;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: space-between;
    padding: 0;
}

body.page-aula-profesor .aula-admin-filter-options {
    align-items: center;
    display: flex;
    flex: 1 1 520px;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.page-aula-profesor .aula-admin-student-sort {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
    margin-left: auto;
}

body.page-aula-profesor .aula-admin-student-sort > span {
    color: var(--geo-muted);
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-student-sort .geo-select {
    min-width: 175px;
}

body.page-aula-profesor .filtros-profesor .form-check-label {
    align-items: center;
    background: #f4f6f9;
    border: 1px solid #dfe5ed;
    border-radius: 999px;
    color: var(--geo-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.7rem;
    margin: 0 !important;
    padding: 0.38rem 0.62rem;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

body.page-aula-profesor .filtros-profesor .form-check-input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

body.page-aula-profesor .filtros-profesor .form-check-label:has(.form-check-input:checked) {
    background: var(--geo-blue-soft);
    border-color: #bfd0e6;
    color: var(--geo-blue);
}

body.page-aula-profesor .filtros-profesor .form-check-label:has(.form-check-input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.18);
}

body.page-aula-profesor .aula-admin-filter-label {
    color: var(--geo-muted);
    font-size: 0.68rem;
    font-weight: 750;
    margin-right: 0.1rem;
}

body.page-aula-profesor .list-group {
    gap: 0.5rem;
}

body.page-aula-profesor .list-group-item {
    background: #fff;
    border-color: #dfe4eb;
    border-radius: 10px !important;
    box-shadow: none;
    min-height: 48px;
    padding: 0.62rem 0.72rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.page-aula-profesor .list-group-item:hover {
    border-color: #bac9dd;
    box-shadow: 0 6px 16px rgba(22, 69, 135, 0.08);
    transform: translateY(-1px);
}

body.page-aula-profesor .lista-alumnos .list-group-item {
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.page-aula-profesor .lista-alumnos .list-group-item > a {
    display: block !important;
    font-size: 0.8rem;
    font-weight: 750;
    min-width: 105px;
}

body.page-aula-profesor .aula-admin-student-name > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.page-aula-profesor .aula-admin-student-deliveries {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 999px;
    color: var(--geo-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 700;
    gap: 0.28rem;
    line-height: 1;
    padding: 0.36rem 0.5rem;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-student-deliveries svg {
    fill: none;
    height: 13px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 13px;
}

body.page-aula-profesor .aula-admin-student-deliveries strong {
    color: inherit;
    font-family: var(--geo-body-font);
    font-size: inherit;
    font-weight: 850;
}

body.page-aula-profesor .aula-admin-student-visibility {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0.3rem;
}

body.page-aula-profesor .aula-admin-student-visibility .badge {
    margin-right: 0 !important;
}

body.page-aula-profesor .lista-alumnos .list-group-item > div {
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
}

body.page-aula-profesor .grupo-selector {
    flex: 0 0 auto;
    font-size: 0.72rem;
    min-height: 32px;
    min-width: 96px;
    padding-block: 0.35rem;
    width: auto;
}

body.page-aula-profesor .avanzado-selector {
    height: 15px;
    margin-top: 0;
    width: 15px;
}

body.page-aula-profesor .aula-admin-tinted-item {
    background: color-mix(in srgb, var(--admin-item-color) 18%, white) !important;
    border-color: color-mix(in srgb, var(--admin-item-color) 45%, #d8dee8) !important;
    border-left: 4px solid color-mix(in srgb, var(--admin-item-color) 72%, var(--geo-blue)) !important;
}

body.page-aula-profesor .aula-admin-tinted-item > a {
    color: var(--geo-ink) !important;
    font-size: 0.8rem;
    font-weight: 750;
}

body.page-aula-profesor .visibilidad-selector {
    background-color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    min-height: 34px;
    width: 140px !important;
}

body.page-aula-profesor .aula-admin-note {
    color: var(--geo-muted);
    display: block;
    font-size: 0.72rem;
    line-height: 1.45;
    margin-bottom: 0.8rem;
    text-align: left;
}

body.page-aula-profesor .aula-admin-delay-control {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

body.page-aula-profesor .aula-admin-delay-control .geo-select {
    background-color: #fff;
    background-position: right 0.55rem center;
    flex: 0 0 58px;
    min-height: 32px;
    padding: 0.25rem 1.5rem 0.25rem 0.65rem;
    width: 58px;
}

body.page-aula-profesor .aula-admin-sortable-list .list-group-item {
    min-width: 0;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease,
        transform 160ms ease;
}

body.page-aula-profesor .aula-admin-sortable-list.is-saving {
    cursor: progress;
}

body.page-aula-profesor .aula-admin-sortable-list .is-dragging {
    box-shadow: 0 12px 28px rgba(16, 42, 76, 0.16);
    opacity: 0.52;
}

body.page-aula-profesor .aula-admin-sortable-title {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

body.page-aula-profesor .aula-admin-content-title {
    line-height: 1.25;
}

body.page-aula-profesor .aula-admin-content-meta {
    align-items: center;
    color: color-mix(in srgb, var(--admin-item-color) 66%, #536176);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.62rem;
    font-weight: 700;
    gap: 0.16rem 0.42rem;
    line-height: 1.25;
}

body.page-aula-profesor .aula-admin-content-meta > span {
    align-items: center;
    display: inline-flex;
    white-space: nowrap;
}

body.page-aula-profesor .aula-admin-content-meta__icon {
    fill: none;
    flex: 0 0 auto;
    height: 0.8rem;
    margin-right: 0.22rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 0.8rem;
}

body.page-aula-profesor
    .aula-admin-content-meta
    > span:not(:first-child)::before {
    color: #9aa6b6;
    content: "·";
    margin-right: 0.42rem;
}

body.page-aula-profesor .aula-admin-drag-handle {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: grab;
    display: inline-flex;
    flex: 0 0 30px;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    margin: -0.25rem 0.35rem -0.25rem -0.35rem;
    min-height: 34px;
    padding: 0.35rem 0.3rem;
    touch-action: none;
    -webkit-user-drag: element;
}

body.page-aula-profesor .aula-admin-drag-handle:active {
    cursor: grabbing;
}

body.page-aula-profesor .aula-admin-drag-handle:hover,
body.page-aula-profesor .aula-admin-drag-handle:focus-visible {
    background: rgba(28, 76, 138, 0.09);
    outline: none;
}

body.page-aula-profesor .aula-admin-drag-handle span {
    background: #738096;
    border-radius: 999px;
    display: block;
    height: 2px;
    pointer-events: none;
    width: 14px;
}

body.page-aula-profesor .aula-admin-publication-card,
body.page-aula-profesor .aula-admin-email-card {
    height: auto;
    max-height: none;
    overflow: visible;
}

body.page-aula-profesor .aula-admin-publication-card textarea {
    min-height: 150px;
}

body.page-aula-profesor .aula-admin-communications-card textarea {
    min-height: 150px;
}

body.page-aula-profesor .aula-admin-communications-card {
    display: flex;
    flex-direction: column;
}

body.page-aula-profesor .aula-admin-communications-card > .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

body.page-aula-profesor .aula-admin-communications-card #comunicacion-panel-crear {
    flex: 1 1 auto;
    min-height: 0;
}

body.page-aula-profesor #form-crear-publicacion {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

body.page-aula-profesor #form-crear-publicacion .aula-admin-publication-field--content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

body.page-aula-profesor #form-crear-publicacion .aula-admin-publication-field--content textarea {
    flex: 1 1 auto;
    min-height: 220px;
}

body.page-aula-profesor #btnCrearPublicacion {
    align-self: flex-start;
}

body.page-aula-profesor .aula-admin-messages-card {
    height: 600px;
    max-height: 600px;
}

body.page-aula-profesor .aula-admin-messages-card .tarjeta__aula--alertas {
    background: transparent;
}

body.page-aula-profesor .aula-admin-messages-card ul {
    padding: 0;
}

body.page-aula-profesor .aula-admin-messages-card li {
    background: var(--geo-surface-soft);
    padding: 0.85rem;
}

body.page-aula-profesor .aula-admin-email-card .input-group .btn {
    min-height: 38px;
    padding-block: 0.5rem;
}

body.page-aula-profesor .aula-admin-email-status {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    min-height: 76px;
    padding: 0.75rem 0.95rem;
}

body.page-aula-profesor .aula-admin-email-status__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

body.page-aula-profesor .aula-admin-email-status__copy strong {
    color: var(--geo-ink);
    font-size: 0.9rem;
}

body.page-aula-profesor .aula-admin-email-status__copy .aula-admin-section-kicker {
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-email-status__copy small {
    color: var(--geo-muted);
    font-size: 0.72rem;
    line-height: 1.4;
    margin-top: 0.15rem;
}

body.page-aula-profesor .aula-admin-email-status__control {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
    min-height: 32px;
}

body.page-aula-profesor .aula-admin-email-status__control .aula-admin-status {
    align-items: center;
    display: inline-flex;
    line-height: 1;
    min-height: 28px;
}

body.page-aula-profesor .aula-admin-email-status__control .form-check {
    align-items: center;
    display: flex;
    height: 28px;
    margin: 0;
    min-height: 0;
    padding: 0;
}

body.page-aula-profesor .aula-admin-email-status__control .form-check-input {
    cursor: pointer;
    float: none;
    margin: 0 !important;
}

body.page-aula-profesor .aula-admin-settings {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin-top: 0;
    padding: 0;
}

body.page-aula-profesor .aula-admin-settings > .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

body.page-aula-profesor .aula-admin-settings > .row + .row {
    margin-top: 0;
}

body.page-aula-profesor .aula-admin-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

body.page-aula-profesor .aula-admin-section-heading .aula-admin-section-kicker {
    color: var(--geo-blue);
}

body.page-aula-profesor .aula-admin-section-heading h2 {
    color: var(--geo-ink);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    margin: 0;
}

body.page-aula-profesor .aula-admin-section-heading > p {
    color: var(--geo-muted);
    font-size: 0.72rem;
    margin: 0 0 0.2rem;
    max-width: 360px;
    text-align: right;
}

body.page-aula-profesor .aula-admin-settings .aula-admin-email-card {
    margin-top: 0;
}

body.page-aula-profesor .aula-admin-settings .aula-admin-setting-card {
    height: 100%;
}

body.page-aula-profesor .aula-admin-settings .card {
    margin-bottom: 0;
}

body.page-aula-profesor .aula-admin-danger-zone {
    background: #fff7f8;
    border: 1px solid #efc8ce;
    border-radius: var(--geo-radius-md);
    margin-top: 1rem;
    overflow: hidden;
    padding: 0;
}

body.page-aula-profesor .aula-admin-danger-zone__header {
    align-items: flex-end;
    border-bottom: 1px solid #efc8ce;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    width: 100%;
}

body.page-aula-profesor .aula-admin-danger-zone__header h2 {
    color: #7a2631;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    margin: 0;
}

body.page-aula-profesor .aula-admin-danger-zone__header p {
    color: #8c5660;
    font-size: 0.72rem;
    margin: 0 0 0.1rem;
    text-align: right;
}

body.page-aula-profesor .aula-admin-danger-zone__scope {
    background: rgba(255, 255, 255, 0.52);
    border-bottom: 1px solid #efc8ce;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-aula-profesor .aula-admin-danger-zone__scope > div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.85rem 1.1rem;
}

body.page-aula-profesor .aula-admin-danger-zone__scope > div + div {
    border-left: 1px solid #efc8ce;
}

body.page-aula-profesor .aula-admin-danger-zone__scope strong {
    color: #7a2631;
    font-size: 0.72rem;
}

body.page-aula-profesor .aula-admin-danger-zone__scope span {
    color: #8c5660;
    font-size: 0.66rem;
    line-height: 1.4;
}

body.page-aula-profesor .aula-admin-danger-zone__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

body.page-aula-profesor .aula-admin-danger-action {
    align-items: center;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    padding: 1rem 1.1rem;
}

body.page-aula-profesor .aula-admin-danger-action:nth-child(odd) {
    border-right: 1px solid #efc8ce;
}

body.page-aula-profesor .aula-admin-danger-action:nth-child(n + 3) {
    border-top: 1px solid #efc8ce;
}

body.page-aula-profesor .aula-admin-danger-action__copy {
    min-width: 0;
}

body.page-aula-profesor .aula-admin-danger-action__copy h3 {
    color: #7a2631;
    font-size: 0.84rem;
    margin: 0 0 0.18rem;
}

body.page-aula-profesor .aula-admin-danger-action__copy p {
    color: #8c5660;
    font-size: 0.68rem;
    line-height: 1.4;
    margin: 0;
}

body.page-aula-profesor .aula-admin-danger-action form {
    margin: 0;
}

body.page-aula-profesor .aula-admin-danger-action .app-danger-zone__action {
    cursor: pointer;
    width: 132px;
    white-space: nowrap;
}

.aula-admin-danger-dialog {
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(51, 21, 27, 0.24);
    color: var(--geo-ink);
    max-width: min(440px, calc(100vw - 2rem));
    padding: 1.35rem;
    width: 100%;
}

.aula-admin-danger-dialog::backdrop {
    backdrop-filter: blur(3px);
    background: rgba(25, 20, 21, 0.52);
}

.aula-admin-danger-dialog__icon {
    align-items: center;
    background: #fff0f2;
    border: 1px solid #efc8ce;
    border-radius: 12px;
    color: var(--geo-danger);
    display: flex;
    font-size: 1rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    margin-bottom: 0.85rem;
    width: 42px;
}

.aula-admin-danger-dialog h2 {
    color: #7a2631;
    font-size: 1.45rem;
    margin: 0 0 0.4rem;
}

.aula-admin-danger-dialog > p {
    color: var(--geo-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.aula-admin-danger-dialog label {
    color: var(--geo-ink);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.38rem;
}

.aula-admin-danger-dialog label strong {
    color: var(--geo-danger);
}

.aula-admin-danger-dialog input {
    border: 1px solid #d4dbe5;
    border-radius: 10px;
    font-size: 0.8rem;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.aula-admin-danger-dialog input:focus {
    border-color: #dc6674;
    box-shadow: 0 0 0 3px rgba(195, 62, 77, 0.14);
    outline: 0;
}

.aula-admin-danger-dialog__actions {
    display: flex;
    gap: 0.55rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.aula-admin-danger-dialog__actions button {
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 850;
    min-height: 39px;
    padding: 0.5rem 0.8rem;
}

.aula-admin-danger-dialog__cancel {
    background: #fff;
    border: 1px solid var(--geo-line);
    color: var(--geo-muted);
}

.aula-admin-danger-dialog__confirm {
    background: var(--geo-danger);
    border: 1px solid var(--geo-danger);
    color: #fff;
}

.aula-admin-danger-dialog__confirm:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

@media (max-width: 767px) {
    body.page-aula-profesor .aula-admin-nav {
        border-radius: 12px;
        justify-content: flex-start;
        margin-inline: -0.25rem;
    }

    body.page-aula-profesor .aula-admin-viewport-scroll {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    body.page-aula-profesor .aula-admin-operativa-row > [class*="col-"] + [class*="col-"] {
        margin-top: 1rem;
    }

    body.page-aula-profesor .aula-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-aula-profesor .aula-admin-danger-zone__header {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-aula-profesor .aula-admin-danger-zone__header p {
        text-align: left;
    }

    body.page-aula-profesor .aula-admin-danger-zone__grid {
        grid-template-columns: 1fr;
    }

    body.page-aula-profesor .aula-admin-danger-zone__scope {
        grid-template-columns: 1fr;
    }

    body.page-aula-profesor .aula-admin-danger-zone__scope > div + div {
        border-left: 0;
        border-top: 1px solid #efc8ce;
    }

    body.page-aula-profesor .aula-admin-danger-action {
        grid-template-columns: 1fr;
    }

    body.page-aula-profesor .aula-admin-danger-action:nth-child(odd) {
        border-right: 0;
    }

    body.page-aula-profesor .aula-admin-danger-action:nth-child(n + 2) {
        border-top: 1px solid #efc8ce;
    }

    body.page-aula-profesor .aula-admin-danger-action form {
        grid-column: 1;
    }

    body.page-aula-profesor .aula-admin-pending--daily {
        max-height: 360px;
    }

    body.page-aula-profesor .aula-admin-unified-header {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-aula-profesor .aula-admin-unified-header .aula-admin-workspace-tabs {
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-class-tabs {
        gap: 0.4rem;
    }

    body.page-aula-profesor .aula-admin-class-tab {
        min-height: 56px;
        padding: 0.62rem;
    }

    body.page-aula-profesor .aula-admin-class-fields {
        grid-template-columns: 1fr;
    }

    body.page-aula-profesor .aula-admin-class-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-aula-profesor .aula-admin-class-actions > div {
        flex-wrap: wrap;
    }

    body.page-aula-profesor .aula-admin-panel-toolbar {
        align-items: flex-start;
    }

    body.page-aula-profesor .aula-admin-message-list .list-group-item > a,
    body.page-aula-profesor .aula-admin-message-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    body.page-aula-profesor .aula-admin-message-more {
        align-self: flex-start;
    }

    body.page-aula-profesor .aula-admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    body.page-aula-profesor .aula-admin-section-heading > p {
        text-align: left;
    }

    body.page-aula-profesor .aula-admin-list-card,
    body.page-aula-profesor .aula-admin-messages-card {
        height: min(680px, calc(100vh - 5rem));
        max-height: none;
    }

    body.page-aula-profesor .aula-admin-viewport-card {
        height: calc(100dvh - 5.5rem);
        min-height: 520px;
    }

    body.page-aula-profesor .lista-alumnos .list-group-item > div {
        justify-content: flex-start;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-students > .card-body {
        padding-inline: 0.75rem;
    }

    body.page-aula-profesor .aula-admin-viewport-card--students .lista-alumnos {
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    body.page-aula-profesor .aula-admin-student-row {
        align-items: stretch !important;
        display: grid !important;
        flex: 0 0 auto;
        gap: 0.65rem;
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        min-height: max-content;
        overflow: visible;
        padding: 0.75rem;
    }

    body.page-aula-profesor .aula-admin-student-name {
        min-width: 0 !important;
        overflow-wrap: anywhere;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-student-controls {
        align-items: center;
        display: grid !important;
        gap: 0.45rem;
        grid-auto-rows: minmax(32px, auto);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch !important;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-student-deliveries {
        justify-self: start;
    }

    body.page-aula-profesor .aula-admin-filter-options {
        flex-basis: 100%;
    }

    body.page-aula-profesor .aula-admin-student-sort {
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-student-sort .geo-select {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.page-aula-profesor .aula-admin-student-visibility {
        grid-column: 1 / -1;
    }

    body.page-aula-profesor .aula-admin-student-controls .badge {
        justify-self: start;
        margin-right: 0 !important;
        max-width: 100%;
        white-space: normal;
    }

    body.page-aula-profesor .aula-admin-student-controls .grupo-selector {
        min-width: 0;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-student-advanced {
        align-items: center;
        display: flex;
        gap: 0.4rem;
        margin: 0 !important;
        min-height: 32px;
        padding-left: 0;
    }

    body.page-aula-profesor .aula-admin-student-advanced .avanzado-selector {
        float: none;
        margin: 0;
    }

    body.page-aula-profesor .visibilidad-selector {
        width: 126px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.page-aula-profesor .aula-admin-operativa-row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    body.page-aula-profesor .aula-admin-pending-item__main {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body.page-aula-profesor .aula-admin-pending-item__status {
        grid-column: 2 / 4;
        justify-self: start;
    }

    body.page-aula-profesor .aula-admin-pending-item__arrow {
        grid-column: 3;
        grid-row: 1;
    }
}

/* Student profile administration */

body.page-student-profile {
    background: var(--geo-yellow);
    height: auto;
    min-height: 100vh;
}

body.page-student-profile main {
    background:
        radial-gradient(circle at top right, rgba(22, 69, 135, 0.1), transparent 34rem),
        linear-gradient(145deg, #f5e7ca 0%, var(--geo-yellow) 100%);
    color: var(--geo-ink);
    display: block;
    flex: none;
    font-family: var(--geo-body-font);
    min-height: 100vh;
    padding: clamp(0.8rem, 2vw, 1.6rem);
    width: 100%;
}

body.page-student-profile main *,
body.page-student-profile main a:hover {
    font-family: var(--geo-body-font);
}

body.page-student-profile main h1,
body.page-student-profile main h2,
body.page-student-profile main h3,
body.page-student-profile main h4,
body.page-student-profile main h5 {
    font-family: var(--geo-display-font);
    font-weight: 400;
}

body.page-student-profile section {
    padding: 0;
}

.student-profile-shell {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.student-profile-hero {
    background:
        radial-gradient(circle at 78% -30%, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(135deg, var(--geo-blue) 0%, var(--geo-blue-deep) 100%);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(22, 69, 135, 0.18);
    color: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: clamp(1.5rem, 2.7vw, 2.15rem) clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
}

.student-profile-hero__main {
    max-width: none;
}

.student-profile-back {
    color: rgba(255, 255, 255, 0.78);
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 750;
    margin-bottom: 0;
    position: absolute;
    right: 1.5rem;
    text-decoration: none;
    top: 1.5rem;
}

.student-profile-back:hover {
    color: #fff;
}

.student-profile-eyebrow,
.student-profile-card__kicker {
    display: block;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.student-profile-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.25rem;
}

.student-profile-hero h1 {
    color: #fff;
    font-family: var(--geo-display-font);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.95;
    margin: 0;
}

.student-profile-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.student-profile-meta > span:first-child:not(.student-profile-badge) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
    margin-right: 0.2rem;
}

.student-profile-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
}

.student-profile-nav-anchor {
    display: block;
    height: 0;
    pointer-events: none;
}

.student-profile-nav {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(45, 38, 24, 0.08);
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.4rem;
    position: sticky;
    top: 0.75rem;
    z-index: 30;
}

.student-profile-nav__links {
    display: flex;
    gap: 0.35rem;
    grid-column: 2;
}

.student-profile-nav a {
    border-radius: 10px;
    color: var(--geo-muted);
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.55rem 0.78rem;
    text-decoration: none;
}

.student-profile-nav a:hover,
.student-profile-nav a:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

.student-profile-nav a.is-active,
.student-profile-nav a[aria-selected="true"] {
    background: var(--geo-blue-soft);
    box-shadow: inset 0 0 0 1px #cad9ec;
    color: var(--geo-blue);
}

.student-profile-nav-save {
    background: var(--geo-blue);
    border: 1px solid var(--geo-blue);
    border-radius: 9px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 850;
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    min-height: 36px;
    padding: 0.45rem 0.68rem;
}

.student-profile-nav-save:disabled {
    background: #e4e8ee;
    border-color: #e4e8ee;
    color: #8a94a3;
}

.student-profile-nav-save:not(:disabled):hover {
    background: var(--geo-blue-deep);
    border-color: var(--geo-blue-deep);
}

.student-profile-view[hidden] {
    display: none !important;
}

.student-profile-view.is-active {
    animation: aula-admin-view-in 160ms ease-out;
}

.student-profile-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(22, 69, 135, 0.11);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(45, 38, 24, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    scroll-margin-top: 5rem;
}

.student-profile-card__header {
    align-items: center;
    border-bottom: 1px solid var(--geo-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 72px;
    padding: 0.9rem 1.2rem;
}

.student-profile-card__kicker {
    color: var(--geo-blue);
    margin-bottom: 0.08rem;
}

.student-profile-card__header h2 {
    color: var(--geo-ink);
    font-family: var(--geo-display-font);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1;
    margin: 0;
}

.student-profile-card__title-row {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.student-profile-count {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #ccdaed;
    border-radius: 999px;
    color: var(--geo-blue);
    display: inline-flex;
    font-family: var(--geo-body-font);
    font-size: 0.7rem;
    font-weight: 850;
    justify-content: center;
    line-height: 1;
    min-height: 25px;
    min-width: 25px;
    padding: 0.25rem 0.45rem;
}

.student-profile-card__body {
    padding: 1rem 1.2rem 1.2rem;
}

.student-profile-viewport-card {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 6rem);
    margin-bottom: 0;
    max-height: none;
    min-height: 560px;
    overflow: hidden;
}

.student-profile-viewport-card > .student-profile-card__header {
    flex: 0 0 auto;
}

.student-profile-viewport-card > .student-profile-card__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.student-profile-config-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: calc(100dvh - 6rem);
}

.student-profile-config-card > .student-profile-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.student-profile-danger-zone {
    margin-top: auto;
}

.student-profile-search {
    display: block;
    flex: 0 1 280px;
    max-width: 280px;
    position: relative;
    width: 100%;
}

.student-profile-deliveries .student-profile-card__header {
    align-items: flex-end;
}

.student-profile-search > svg {
    fill: none;
    height: 16px;
    left: 0.78rem;
    pointer-events: none;
    position: absolute;
    stroke: #7b8798;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    z-index: 1;
}

.student-profile-search .form-control,
.student-profile-field .form-select,
.student-profile-field .geo-select {
    background-color: var(--geo-surface-soft);
    border: 1px solid #d2d9e3;
    border-radius: 10px;
    box-shadow: none;
    min-height: 40px;
    padding: 0.55rem 0.72rem;
}

.student-profile-search .form-control {
    margin: 0;
    padding-left: 2.25rem;
    width: 100%;
}

.student-profile-delivery-list,
.student-profile-access-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.student-profile-delivery-list {
    align-content: start;
    display: grid;
    flex: 1 1 auto;
    gap: 0.55rem;
    grid-auto-rows: max-content;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-right: 0.2rem;
    scrollbar-color: #c7d2df transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.student-profile-deliveries > .student-profile-card__body {
    display: flex;
    flex-direction: column;
}

.student-profile-delivery-list > li {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 58px;
    padding: 0.65rem 0.75rem;
}

.student-profile-delivery-list > li:hover {
    border-color: #bac9dd;
    box-shadow: 0 6px 16px rgba(22, 69, 135, 0.08);
}

.student-profile-delivery-link {
    align-items: center;
    color: var(--geo-ink);
    display: flex;
    gap: 0.7rem;
    min-width: 0;
    text-decoration: none;
}

.student-profile-file-icon {
    align-items: center;
    background: var(--geo-blue-soft);
    border-radius: 9px;
    color: var(--geo-blue);
    display: inline-flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.student-profile-file-icon svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    width: 20px;
}

.student-profile-delivery-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.student-profile-delivery-copy strong {
    font-size: 0.8rem;
}

.student-profile-delivery-copy > span {
    color: var(--geo-muted);
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-profile-delivery-meta {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
}

.student-profile-pill,
.student-profile-grade {
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
    padding: 0.32rem 0.52rem;
}

.student-profile-pill {
    background: #eef1f5;
    color: var(--geo-muted);
}

.student-profile-grade {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 34px;
}

.student-profile-grade.is-low {
    background: #fce8e8;
    color: #a72f36;
}

.student-profile-grade.is-medium {
    background: #fff1cf;
    color: #8a6300;
}

.student-profile-grade.is-good {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

.student-profile-grade.is-great {
    background: #ddf4e6;
    color: #247346;
}

.student-profile-remove {
    align-items: center;
    background: #fff2f2;
    border: 1px solid #f2c6c9;
    border-radius: 8px;
    color: #b83d45;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    height: 30px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 30px;
}

.student-profile-remove:hover {
    background: #fde4e5;
    color: #932f36;
}

.student-profile-empty {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px dashed #cbd4df;
    border-radius: 13px;
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
}

.student-profile-empty > span {
    align-items: center;
    background: #ddf4e6;
    border-radius: 50%;
    color: #247346;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.student-profile-empty strong {
    display: block;
    font-size: 0.78rem;
}

.student-profile-empty p {
    color: var(--geo-muted);
    font-size: 0.7rem;
    margin: 0.12rem 0 0;
}

.student-profile-settings {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
}

.student-profile-identity-editor {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 13px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
    margin-bottom: 1rem;
    padding: 0.9rem;
}

.student-profile-identity-copy h3 {
    color: var(--geo-ink);
    font-size: 0.88rem;
    margin: 0.18rem 0 0.2rem;
}

.student-profile-identity-copy p {
    color: var(--geo-muted);
    font-size: 0.67rem;
    line-height: 1.45;
    margin: 0;
}

.student-profile-identity-fields {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-profile-identity-field {
    display: block;
    margin: 0;
}

.student-profile-identity-field > span {
    color: var(--geo-ink);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 0.32rem;
}

.student-profile-identity-field .form-control {
    background: #fff;
    border: 1px solid #d4dce7;
    border-radius: 10px;
    box-shadow: none;
    color: var(--geo-ink);
    font-size: 0.76rem;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
}

.student-profile-identity-field .form-control:focus {
    border-color: var(--geo-blue);
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.12);
}

.student-profile-settings--single {
    grid-template-columns: 1fr;
}

.student-profile-field {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 13px;
    padding: 0.9rem;
}

.student-profile-field > label {
    color: var(--geo-ink);
    display: block;
    font-size: 0.73rem;
    font-weight: 850;
    margin-bottom: 0.4rem;
}

.student-profile-field > small {
    color: var(--geo-muted);
    display: block;
    font-size: 0.66rem;
    line-height: 1.45;
    margin-top: 0.5rem;
}

.student-profile-toggle-list {
    display: grid;
    gap: 0.55rem;
}

.student-profile-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 64px;
    padding: 0.72rem 0.85rem;
}

.student-profile-toggle:hover {
    border-color: #bac9dd;
}

.student-profile-toggle > span {
    display: flex;
    flex-direction: column;
}

.student-profile-toggle strong {
    color: var(--geo-ink);
    font-size: 0.76rem;
}

.student-profile-toggle small {
    color: var(--geo-muted);
    font-size: 0.66rem;
    line-height: 1.4;
    margin-top: 0.15rem;
}

.student-profile-toggle .form-check-input {
    -webkit-appearance: none;
    appearance: none;
    background-color: #d7dde5;
    background-image: radial-gradient(circle at 9px 50%, #fff 0 6px, transparent 6.5px) !important;
    border: 0;
    border-radius: 999px !important;
    cursor: pointer;
    flex: 0 0 auto;
    height: 20px;
    margin: 0;
    transition: background-color 150ms ease, background-image 150ms ease;
    width: 36px;
}

.student-profile-toggle .form-check-input:checked {
    background-color: var(--geo-blue);
    background-image: radial-gradient(circle at calc(100% - 9px) 50%, #fff 0 6px, transparent 6.5px) !important;
}

.student-profile-toggle .form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.student-profile-toggle.is-dependent-disabled {
    background: #f7f8fa;
    cursor: not-allowed;
    opacity: 0.68;
}

.student-profile-toggle.is-dependent-disabled:hover {
    border-color: #dfe4eb;
}

.student-profile-tabs {
    background: #f1f4f8;
    border: 1px solid #dfe5ed;
    border-radius: 11px;
    display: flex;
    gap: 0.3rem;
    padding: 0.3rem;
}

.student-profile-tab {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--geo-muted);
    font-size: 0.73rem;
    font-weight: 850;
    min-height: 36px;
    padding: 0.46rem 0.72rem;
}

.student-profile-tab:hover {
    color: var(--geo-blue);
}

.student-profile-tab.is-active {
    background: #fff;
    box-shadow: 0 3px 10px rgba(22, 69, 135, 0.1);
    color: var(--geo-blue);
}

.student-profile-content-card {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 6rem);
    margin-bottom: 0;
    min-height: 560px;
}

.student-profile-content-card > .student-profile-card__header {
    flex: 0 0 auto;
}

.student-profile-content-card > .student-profile-card__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.student-profile-content-card .student-profile-access-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.student-profile-access-panel[hidden] {
    display: none;
}

.student-profile-access-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.student-profile-access-toolbar p {
    color: var(--geo-muted);
    font-size: 0.7rem;
    margin: 0;
}

.student-profile-select-all {
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 9px;
    color: var(--geo-blue);
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 850;
    min-height: 34px;
    padding: 0.42rem 0.62rem;
}

.student-profile-select-all:hover {
    background: #dbe8f8;
}

.student-profile-access-list {
    display: grid;
    flex: 1 1 auto;
    gap: 0.45rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-right: 0.2rem;
    scrollbar-color: #c7d2df transparent;
    scrollbar-width: thin;
}

body.page-student-profile.is-student-profile-scroll-snap-enabled .student-profile-delivery-list,
body.page-student-profile.is-student-profile-scroll-snap-enabled .student-profile-access-list {
    overscroll-behavior-y: contain;
}

.student-profile-access-list label {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.55rem 0.7rem;
}

.student-profile-access-list label:hover {
    border-color: #bac9dd;
}

.student-profile-access-list label:has(input:checked) {
    background: var(--geo-blue-soft);
    border-color: #bed0ea;
}

.student-profile-access-list input {
    accent-color: var(--geo-blue);
    flex: 0 0 auto;
    height: 16px;
    width: 16px;
}

.student-profile-access-list span {
    color: var(--geo-ink);
    font-size: 0.74rem;
    font-weight: 750;
}

.student-profile-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.5rem 0.2rem 1rem;
}

.student-profile-footer a {
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}

.student-profile-footer__back {
    color: var(--geo-blue);
}

.student-profile-delete {
    color: #b83d45;
}

.student-profile-delete:hover {
    color: #932f36;
}

.app-danger-zone {
    align-items: center;
    background: #fff7f8;
    border: 1px solid #f0c7cc;
    border-radius: var(--geo-radius-md);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.1rem 1.2rem;
}

.app-danger-zone__copy {
    min-width: 0;
}

.app-danger-zone__eyebrow {
    color: var(--geo-danger);
    display: block;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.app-danger-zone__copy strong {
    color: #7a2631;
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.app-danger-zone__copy p {
    color: #8c5660;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

.app-danger-zone__action,
.app-danger-zone__action:visited {
    align-items: center;
    background: #fff;
    border: 1px solid #dc6674;
    border-radius: 9px;
    color: var(--geo-danger);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 850;
    justify-content: center;
    min-height: 39px;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
}

.app-danger-zone__action:hover {
    background: var(--geo-danger);
    border-color: var(--geo-danger);
    color: #fff;
}

@media (max-width: 767px) {
    body.page-student-profile main {
        padding: 1rem;
    }

    .student-profile-back {
        margin-bottom: 0.55rem;
        position: relative;
        right: auto;
        top: auto;
    }

    .student-profile-hero {
        border-radius: 18px;
    }

    .student-profile-nav {
        display: flex;
    }

    .student-profile-nav__links {
        display: flex;
        flex: 1 1 auto;
        overflow-x: auto;
    }

    .student-profile-nav-save {
        margin-left: auto;
    }

    .app-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .app-danger-zone__action {
        align-self: flex-start;
    }

    .student-profile-card__header--tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .student-profile-tabs {
        width: 100%;
    }

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

    .student-profile-identity-editor,
    .student-profile-identity-fields {
        grid-template-columns: 1fr;
    }

    .student-profile-content-card {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .student-profile-viewport-card {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .student-profile-viewport-card > .student-profile-card__body,
    .student-profile-content-card > .student-profile-card__body {
        overflow: visible;
    }

    .student-profile-config-card {
        min-height: 0;
    }

    .student-profile-delivery-list,
    .student-profile-access-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    .student-profile-delivery-list > li,
    .student-profile-delivery-meta {
        align-items: flex-start;
    }

    .student-profile-delivery-list > li {
        flex-direction: column;
    }

    .student-profile-delivery-meta {
        margin-left: 2.7rem;
    }

    .student-profile-search {
        width: 100%;
    }

    .student-profile-search {
        flex-basis: auto;
        max-width: none;
    }

    .student-profile-deliveries .student-profile-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .student-profile-access-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Student workspace: long, natural lists and compact communications */

body.page-aula-alumno {
    background: var(--geo-yellow);
}

body.page-aula-alumno main {
    background:
        radial-gradient(circle at top right, rgba(22, 69, 135, 0.1), transparent 34rem),
        linear-gradient(145deg, #f5e7ca 0%, var(--geo-yellow) 100%);
}

.aula-student-nav-anchor {
    display: block;
    height: 0;
    pointer-events: none;
}

.aula-student-nav {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(45, 38, 24, 0.08);
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 0 0 1rem;
    overflow: visible;
    padding: 0.4rem;
    position: sticky;
    top: 0.75rem;
    z-index: 30;
}

.aula-student-nav__utilities {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    min-width: 0;
}

.aula-student-nav__utilities {
    grid-column: 1;
    justify-self: start;
}

@media (min-width: 992px) {
    body.page-aula-alumno
        .aula-student-nav__utilities
        > .app-navbar-brand-slot {
        left: auto;
        position: static;
        top: auto;
        transform: none;
    }
}

.aula-student-nav__links {
    display: flex;
    gap: 0.35rem;
    grid-column: 2;
    justify-content: center;
    min-width: 0;
}

.aula-student-nav__links > a,
.aula-student-nav__message {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--geo-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.55rem 0.78rem;
    text-decoration: none;
}

.aula-student-nav__links > a:hover,
.aula-student-nav__links > a:focus-visible,
.aula-student-nav__message:hover,
.aula-student-nav__message:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
    outline: none;
}

.aula-student-nav__links > a.is-active,
.aula-student-nav__links > a[aria-current="page"] {
    background: var(--geo-blue-soft);
    box-shadow: inset 0 0 0 1px #cad9ec;
    color: var(--geo-blue);
}

.aula-student-nav__links > .aula-student-nav__flashcards {
    color: var(--geo-blue);
}

.aula-student-nav__message {
    position: relative;
}

.aula-student-nav__message-dot {
    background: #d44252;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(212, 66, 82, 0.18);
    flex: 0 0 auto;
    height: 9px;
    width: 9px;
}

/*
 * La utilidad de clase necesita más ancho que una columna lateral normal.
 * Saltamos a dos filas antes de que pueda invadir la navegación central.
 */
@media (max-width: 900px) {
    .aula-student-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        top: 0.45rem;
    }

    .aula-student-nav__utilities {
        flex: 1 1 100%;
        justify-self: auto;
        order: 1;
        position: relative;
    }

    .aula-student-nav__links {
        display: grid;
        flex: 1 1 100%;
        gap: 0.25rem;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        order: 2;
        width: 100%;
    }
}

.aula-student-class-menu {
    min-width: 0;
    position: relative;
}

.aula-student-class-menu__trigger {
    align-items: center;
    background: #fff;
    border: 1px solid #d5dfec;
    border-radius: 10px;
    color: var(--geo-ink);
    cursor: pointer;
    display: inline-flex;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.4rem 0.55rem;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.aula-student-class-menu__trigger::-webkit-details-marker {
    display: none;
}

.aula-student-class-menu__trigger::marker {
    content: "";
}

.aula-student-class-menu__trigger:hover,
.aula-student-class-menu__trigger:focus-visible,
.aula-student-class-menu[open] > .aula-student-class-menu__trigger {
    background: var(--geo-blue-soft);
    border-color: #b9cbe4;
    box-shadow: 0 5px 14px rgba(20, 50, 89, 0.08);
    outline: none;
}

.aula-student-class-menu__icon {
    fill: none;
    flex: 0 0 auto;
    height: 17px;
    stroke: var(--geo-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 17px;
}

.aula-student-class-menu__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aula-student-class-menu__copy strong {
    color: var(--geo-ink);
    font-size: 0.71rem;
    font-weight: 820;
    line-height: 1.1;
    white-space: nowrap;
}

.aula-student-class-menu__copy small {
    color: var(--geo-muted);
    font-size: 0.61rem;
    font-weight: 680;
    line-height: 1.1;
    margin-top: 0.12rem;
}

.aula-student-class-menu__live {
    background: #dbf3e6;
    border-radius: 999px;
    color: #147447;
    font-size: 0.58rem;
    font-weight: 850;
    padding: 0.24rem 0.4rem;
    white-space: nowrap;
}

.aula-student-class-menu__chevron {
    fill: none;
    flex: 0 0 auto;
    height: 13px;
    stroke: #657184;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    transition: transform 160ms ease;
    width: 13px;
}

.aula-student-class-menu[open]
    .aula-student-class-menu__chevron {
    transform: rotate(180deg);
}

.aula-student-class-menu__panel {
    background: #fff;
    border: 1px solid var(--geo-line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(22, 45, 75, 0.18);
    left: 0;
    min-width: min(370px, calc(100vw - 2rem));
    padding: 0.65rem;
    position: absolute;
    top: calc(100% + 0.55rem);
    z-index: 45;
}

.aula-student-class-menu__header {
    border-bottom: 1px solid var(--geo-line);
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.4rem 0.7rem;
}

.aula-student-class-menu__header strong {
    color: var(--geo-ink);
    font-size: 0.8rem;
}

.aula-student-class-menu__header small {
    color: var(--geo-muted);
    font-size: 0.67rem;
    margin-top: 0.12rem;
}

.aula-student-class-menu__list {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.5rem;
}

.aula-student-class-menu__item {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--geo-ink);
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.58rem;
    text-decoration: none;
}

.aula-student-class-menu__item:hover,
.aula-student-class-menu__item:focus-visible {
    background: var(--geo-surface-soft);
    border-color: var(--geo-line);
    color: var(--geo-ink);
    outline: none;
}

.aula-student-class-menu__item.is-live {
    background: #edf9f2;
    border-color: #b9e5cc;
}

.aula-student-class-menu__item.is-past {
    opacity: 0.72;
}

.aula-student-class-menu__item-icon {
    align-items: center;
    background: var(--geo-blue-soft);
    border-radius: 9px;
    color: var(--geo-blue);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.aula-student-class-menu__item-icon svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 17px;
}

.aula-student-class-menu__item-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aula-student-class-menu__item-copy strong {
    color: var(--geo-ink);
    font-size: 0.75rem;
    line-height: 1.2;
}

.aula-student-class-menu__item-copy small {
    color: var(--geo-muted);
    font-size: 0.64rem;
    margin-top: 0.12rem;
}

.aula-student-class-menu__item-action {
    align-items: center;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 820;
    gap: 0.15rem;
    white-space: nowrap;
}

.aula-student-class-menu__item-action svg {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 14px;
}

.aula-student-topics {
    position: relative;
}

.aula-student-topics__trigger {
    align-items: center;
    background: #fff;
    border: 1px solid #d5dfec;
    border-radius: 10px;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
}

.aula-student-topics__trigger:hover,
.aula-student-topics__trigger:focus-visible,
.aula-student-topics.is-open .aula-student-topics__trigger {
    background: var(--geo-blue-soft);
    border-color: #b9cbe4;
}

.aula-student-topics__filter-icon {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
    width: 16px;
}

.aula-student-topics__count {
    align-items: center;
    background: var(--geo-blue);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.64rem;
    height: 22px;
    justify-content: center;
    min-width: 34px;
    padding: 0 0.4rem;
}

.aula-student-topics__chevron {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 160ms ease;
    width: 14px;
}

.aula-student-topics.is-open .aula-student-topics__chevron {
    transform: rotate(180deg);
}

.aula-student-topics__panel {
    background: #fff;
    border: 1px solid var(--geo-line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(22, 45, 75, 0.18);
    min-width: 320px;
    padding: 0.65rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 40;
}

.aula-student-topics__panel[hidden] {
    display: none !important;
}

.aula-student-topics__header {
    align-items: center;
    border-bottom: 1px solid var(--geo-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.35rem 0.35rem 0.75rem;
}

.aula-student-topics__header > div:first-child {
    display: flex;
    flex-direction: column;
}

.aula-student-topics__header strong {
    color: var(--geo-ink);
    font-size: 0.82rem;
}

.aula-student-topics__header small {
    color: var(--geo-muted);
    font-size: 0.68rem;
    margin-top: 0.12rem;
}

.aula-student-topics__actions {
    display: flex;
    gap: 0.25rem;
}

.aula-student-topics__actions button {
    background: var(--geo-surface-soft);
    border: 0;
    border-radius: 7px;
    color: var(--geo-blue);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.38rem 0.48rem;
}

.aula-student-topics__actions button:hover,
.aula-student-topics__actions button:focus-visible {
    background: var(--geo-blue-soft);
}

.aula-student-topics__options {
    display: grid;
    gap: 0.3rem;
    padding-top: 0.55rem;
}

.aula-student-topic-option {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--geo-ink);
    cursor: pointer;
    display: grid;
    font-size: 0.76rem;
    font-weight: 750;
    gap: 0.55rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 38px;
    padding: 0.45rem 0.55rem;
}

.aula-student-topic-option:hover {
    background: var(--geo-surface-soft);
    border-color: var(--geo-line);
}

.aula-student-topic-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.aula-student-topic-option__dot {
    background: var(--topic-color, var(--geo-blue));
    border: 3px solid color-mix(in srgb, var(--topic-color, var(--geo-blue)) 18%, white);
    border-radius: 50%;
    height: 14px;
    width: 14px;
}

.aula-student-topic-option > svg {
    fill: none;
    height: 17px;
    stroke: var(--geo-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}

.aula-student-topic-option.is-inactive {
    color: var(--geo-muted);
}

.aula-student-topic-option.is-inactive .aula-student-topic-option__dot {
    background: #c7ced8;
    border-color: #edf0f3;
}

.aula-student-topic-option.is-inactive > svg {
    opacity: 0;
}

.aula-student-view[hidden],
[data-student-content-item][hidden] {
    display: none !important;
}

.aula-student-view.is-active {
    animation: aula-admin-view-in 160ms ease-out;
}

body.page-aula-alumno .aula-shell--student > .container,
body.page-aula-alumno .tarjetero__alumno > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.page-aula-alumno .aula-learning-grid {
    align-items: flex-start;
    row-gap: 1.5rem;
}

body.page-aula-alumno .aula-learning-grid > [class*="col-"] {
    display: flex;
}

body.page-aula-alumno .aula-list-panel {
    align-self: stretch;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: calc(100dvh - 5.75rem) !important;
    max-height: calc(100dvh - 5.75rem);
    min-height: min(520px, calc(100dvh - 5.75rem));
    overflow: hidden;
    padding: 0;
    width: 100%;
}

body.page-aula-alumno .aula-list-panel .filtros {
    border-radius: var(--geo-radius-lg) var(--geo-radius-lg) 0 0;
    flex: 0 0 auto;
    justify-content: flex-start;
    margin: 0;
    min-height: 94px;
    position: static;
    text-align: left;
    width: 100%;
}

.aula-panel-eyebrow {
    color: var(--geo-blue);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

body.page-aula-alumno .aula-list-panel .filtros h2 {
    font-size: 2rem;
}

body.page-aula-alumno .aula-list-panel .form-control {
    background: var(--geo-surface-soft);
    border-color: transparent;
    margin-bottom: 0.85rem !important;
}

body.page-aula-alumno .aula-list-panel__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 1rem;
}

body.page-aula-alumno .aula-list-panel__items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-right: 0.35rem;
    scrollbar-color: #b9c8db transparent;
    scrollbar-width: thin;
}

body.page-aula-alumno.is-student-aula-scroll-snap-enabled .aula-list-panel__items {
    overscroll-behavior-y: contain;
}

body.page-aula-alumno .btn-pulse {
    animation: student-class-pulse 1.5s ease-in-out infinite;
}

@keyframes student-class-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

body.page-aula-alumno .aula-list-panel__items::-webkit-scrollbar {
    width: 7px;
}

body.page-aula-alumno .aula-list-panel__items::-webkit-scrollbar-thumb {
    background: #b9c8db;
    border-radius: 999px;
}

body.page-aula-alumno .aula-list-panel__items::-webkit-scrollbar-track {
    background: transparent;
}

body.page-aula-alumno .aula-list-panel__items.is-empty {
    display: flex;
}

body.page-aula-alumno .aula-student-empty {
    align-items: center;
    color: var(--geo-muted);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}

body.page-aula-alumno .aula-student-empty__illustration {
    margin-bottom: 0.6rem;
    width: clamp(116px, 32%, 158px);
}

body.page-aula-alumno .aula-student-empty__illustration svg {
    display: block;
    height: auto;
    overflow: visible;
    width: 100%;
}

body.page-aula-alumno .aula-student-empty__shadow {
    fill: #e9eef5;
}

body.page-aula-alumno .aula-student-empty__page {
    fill: #fff;
    stroke: #b9cae1;
    stroke-linejoin: round;
    stroke-width: 2;
}

body.page-aula-alumno .aula-student-empty__page--back {
    fill: #eaf1fb;
    stroke: #cad7e8;
}

body.page-aula-alumno .aula-student-empty__clip {
    fill: #d9e7f8;
    stroke: var(--geo-blue);
    stroke-linejoin: round;
    stroke-width: 2;
}

body.page-aula-alumno .aula-student-empty__check-bg {
    fill: var(--geo-blue);
}

body.page-aula-alumno .aula-student-empty__check,
body.page-aula-alumno .aula-student-empty__spark {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-aula-alumno .aula-student-empty__check {
    stroke: #fff;
    stroke-width: 4;
}

body.page-aula-alumno .aula-student-empty__spark {
    stroke: #e2ad22;
    stroke-width: 3;
}

body.page-aula-alumno .aula-student-empty__spark--two {
    stroke: #8fa7c6;
    stroke-width: 2.5;
}

body.page-aula-alumno .aula-student-empty > strong {
    color: var(--geo-ink);
    font-size: 1rem;
    font-weight: 850;
}

body.page-aula-alumno .aula-student-empty > p {
    font-size: 0.74rem;
    font-weight: 700;
    margin: 0.22rem 0 0;
}

body.page-aula-alumno .aula-list-panel .apartado {
    background: #f8fafc !important;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--tema-color, var(--geo-blue)) 20%, white) 0%,
            #fff 72%
        ) !important;
    border: 1px solid var(--geo-line);
    border-left: 5px solid var(--tema-color, var(--geo-blue));
    border-radius: 11px;
    margin-bottom: 0.5rem;
    min-height: 54px;
}

body.page-aula-alumno .aula-list-panel .descargar_todos,
body.page-aula-alumno .aula-list-panel .descargar_correcciones {
    --tema-color: #d39b28;
}

body.page-aula-alumno .aula-list-panel .apartado > a,
body.page-aula-alumno .aula-list-panel a > .apartado {
    padding: 0;
}

body.page-aula-alumno .aula-list-panel .apartado p {
    font-size: 0.88rem;
    line-height: 1.35;
    padding: 0.9rem 1rem;
    text-align: left;
}

body.page-aula-alumno .aula-list-panel .right-elements {
    gap: 0.45rem;
    justify-content: flex-start;
    padding: 0 1rem 0.85rem;
}

body.page-aula-alumno .aula-list-panel .notificacion {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0.2rem 0.55rem 0.2rem 0.35rem;
    width: auto;
}

body.page-aula-alumno .aula-list-panel .notificacion__apartado {
    height: 20px;
    margin: 0 0.25rem 0 0;
    width: 20px;
}

body.page-aula-alumno .aula-list-panel__tools {
    align-items: center;
    display: grid;
    flex: 0 0 auto;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 0.85rem;
}

body.page-aula-alumno .aula-list-panel__actions {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

body.page-aula-alumno
    .aula-list-panel__actions
    .aula-student-topics__trigger {
    min-height: 46px;
}

body.page-aula-alumno .aula-list-search {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid transparent;
    border-radius: 11px;
    display: flex;
    min-width: 0;
    padding-left: 0.8rem;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.page-aula-alumno .aula-list-search:focus-within {
    background: #fff;
    border-color: #9bb5d7;
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.1);
}

body.page-aula-alumno .aula-list-search > svg {
    fill: none;
    flex: 0 0 auto;
    height: 18px;
    stroke: #6c788a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

body.page-aula-alumno .aula-list-search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0 !important;
    min-width: 0;
    padding-left: 0.65rem;
}

body.page-aula-alumno .aula-list-download {
    align-items: center;
    background: #fff;
    border: 1px solid #c9d5e5;
    border-radius: 11px;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

body.page-aula-alumno .aula-list-download:hover,
body.page-aula-alumno .aula-list-download:focus-visible {
    background: var(--geo-blue-soft);
    border-color: #9eb6d5;
    color: var(--geo-blue);
    transform: translateY(-1px);
}

body.page-aula-alumno .aula-list-download > svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 17px;
}

body.page-aula-alumno .aula-list-panel .aula-content-row {
    background: #fff !important;
    border: 1px solid #d8e0eb;
    border-left: 5px solid var(--tema-color, var(--geo-blue));
    border-radius: 14px;
    margin: 0 0 0.5rem;
    min-height: 74px;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.page-aula-alumno .aula-list-panel .aula-content-row:hover {
    border-color: color-mix(in srgb, var(--tema-color, var(--geo-blue)) 38%, #d8e0eb);
    box-shadow: 0 9px 24px rgba(28, 43, 66, 0.09);
    transform: translateY(-1px);
}

body.page-aula-alumno .aula-list-panel .aula-content-row__link {
    align-items: stretch;
    color: var(--geo-ink);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 25%);
    min-height: 72px;
    padding: 0;
    text-decoration: none;
}

body.page-aula-alumno .aula-content-row__main {
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.48rem 0.85rem 0.5rem;
    text-align: left;
}

body.page-aula-alumno .aula-content-row__kicker {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin: 0 0 0.08rem;
}

body.page-aula-alumno .aula-content-row__topic {
    align-items: center;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 0.64rem;
    font-weight: 850;
    gap: 0.35rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.page-aula-alumno .aula-content-row__topic > i {
    background: var(--tema-color, var(--geo-blue));
    border: 2px solid color-mix(in srgb, var(--tema-color, var(--geo-blue)) 20%, white);
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
}

body.page-aula-alumno .aula-content-row__date {
    color: #7a8494;
    font-size: 0.66rem;
    font-weight: 650;
}

body.page-aula-alumno .aula-content-row__main h3 {
    color: var(--geo-ink);
    font-family: var(--geo-body-font);
    font-size: clamp(0.94rem, 1.35vw, 1.08rem);
    font-weight: 820;
    line-height: 1.22;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

body.page-aula-alumno .aula-content-row__details {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.18rem;
    min-width: 0;
}

body.page-aula-alumno .aula-list-panel .aula-content-row p.aula-content-row__description {
    color: #687386;
    display: block;
    flex: 1 1 auto;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.42;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-aula-alumno .aula-content-row__meta {
    align-items: center;
    color: #657184;
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 680;
    gap: 0.28rem 0.75rem;
    justify-content: flex-end;
    margin: 0;
    white-space: nowrap;
}

body.page-aula-alumno .aula-content-row__meta > span {
    align-items: center;
    display: inline-flex;
    gap: 0.28rem;
}

body.page-aula-alumno .aula-content-row__meta > span + span:not(:has(svg))::before {
    color: #b1bac6;
    content: "·";
    margin-right: 0.28rem;
}

body.page-aula-alumno .aula-content-row__meta svg {
    fill: none;
    height: 14px;
    stroke: #748298;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    width: 14px;
}

body.page-aula-alumno .aula-content-row__progress {
    align-content: center;
    background: #f7f9fc;
    border-left: 1px solid #e1e6ee;
    display: grid;
    gap: 0.14rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    justify-items: center;
    padding: 0.42rem 0.65rem;
    text-align: center;
}

body.page-aula-alumno .aula-content-row__status {
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 850;
    padding: 0.24rem 0.48rem;
}

body.page-aula-alumno .aula-content-row__status.is-pending {
    background: #edf0f4;
    color: #697487;
}

body.page-aula-alumno .aula-content-row__status.is-delivered {
    background: #e5eefb;
    color: #1c579c;
}

body.page-aula-alumno .aula-content-row__status.is-corrected {
    background: #ddf3e8;
    color: #117447;
}

body.page-aula-alumno .aula-content-row__progress-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    grid-column: 1;
    justify-content: center;
}

body.page-aula-alumno .aula-content-row__progress-head > small {
    color: #788396;
    font-size: 0.64rem;
    font-weight: 650;
    text-align: center;
}

body.page-aula-alumno .aula-content-row__progress-meta {
    align-items: center;
    color: #667184;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.63rem;
    gap: 0.22rem 0.55rem;
    grid-column: 1;
    justify-content: center;
    margin-top: 0.08rem;
    text-align: center;
}

body.page-aula-alumno .aula-content-row__progress-meta strong {
    color: var(--geo-ink);
}

body.page-aula-alumno .aula-content-row__arrow {
    align-self: center;
    fill: none;
    grid-column: 2;
    grid-row: 1 / 3;
    height: 19px;
    stroke: #7b8799;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: stroke 160ms ease, transform 160ms ease;
    width: 19px;
}

body.page-aula-alumno .aula-content-row:hover .aula-content-row__arrow {
    stroke: var(--geo-blue);
    transform: translateX(2px);
}

body.page-aula-alumno .aula-content-row__progress--open {
    align-items: center;
    color: var(--geo-blue);
    display: flex;
    font-size: 0.7rem;
    font-weight: 820;
    gap: 0.35rem;
    justify-content: center;
}

body.page-aula-alumno .aula-content-row__progress--open > span {
    line-height: 1;
    text-align: center;
}

body.page-aula-alumno .aula-content-row__progress--open .aula-content-row__arrow {
    align-self: center;
    flex: 0 0 auto;
    grid-column: auto;
    grid-row: auto;
}

body.page-aula-alumno .aula-filterbar {
    text-align: center;
}

body.page-aula-alumno .aula-filterbar .filtrar {
    text-align: center;
}

body.page-aula-alumno .aula-filterbar .pastillas__tema {
    justify-content: center;
}

body.page-aula-alumno .app-page-hero__content {
    padding-right: 0;
}

html.is-aula-alerts-dialog-open,
html.is-aula-alerts-dialog-open body {
    overflow: hidden;
}

.aula-alerts-dialog {
    background: var(--geo-surface);
    border: 0;
    border-radius: var(--geo-radius-lg);
    box-shadow: 0 30px 90px rgba(10, 26, 48, 0.34);
    color: var(--geo-ink);
    max-height: min(78vh, 760px);
    max-width: 640px;
    overflow: hidden;
    padding: 0;
    width: calc(100% - 2rem);
}

.aula-alerts-dialog[open] {
    display: flex;
    flex-direction: column;
}

.aula-alerts-dialog::backdrop {
    backdrop-filter: blur(4px);
    background: rgba(10, 26, 48, 0.52);
}

.aula-alerts-dialog__header {
    align-items: center;
    border-bottom: 1px solid var(--geo-line);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 1.25rem 1.4rem;
}

body.page-aula .aula-alerts-dialog__header h2 {
    font-size: 2rem;
    margin: 0;
}

.aula-alerts-dialog__close {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 50%;
    color: var(--geo-ink);
    display: inline-flex;
    font-family: var(--geo-body-font);
    font-size: 1.5rem;
    height: 38px;
    justify-content: center;
    line-height: 1;
    width: 38px;
}

.aula-alerts-dialog__close:hover {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

.aula-alerts-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.aula-alerts-dialog__body ul {
    margin: 0;
    padding: 0;
}

.aula-alerts-dialog__body li {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-md);
    margin-bottom: 0.75rem;
    padding: 1rem;
}

.aula-alerts-dialog__body li:last-child {
    margin-bottom: 0;
}

.aula-alerts-dialog__body .publicacion__global {
    margin: 0.75rem 0 0;
    max-height: 112px;
}

.aula-alerts-dialog__body .publicacion__contenido {
    margin-bottom: 0;
}

.aula-alerts-dialog__empty {
    color: var(--geo-muted);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 900px) {
    body.page-landing section > .articulo,
    body.page-landing section > .editor-section__inner,
    .landing-rendered section > .articulo,
    .landing-rendered section > .editor-section__inner {
        margin-left: auto;
        margin-right: auto;
        max-width: none;
        padding: 5rem 1.4rem 7.5rem;
        width: min(100%, 760px);
    }

    body.page-landing .menu,
    .landing-rendered .menu {
        align-items: stretch;
        background: rgba(255, 255, 255, 0.94);
        border: 0;
        border-radius: 18px 18px 0 0;
        bottom: 0;
        box-shadow: 0 -12px 34px rgba(19, 39, 68, 0.16);
        flex-direction: row;
        gap: 2px;
        left: 0;
        padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
        right: 0;
        top: auto;
        width: 100%;
    }

    body.page-landing .menu .cabecera,
    .landing-rendered .menu .cabecera {
        display: none;
    }

    body.page-landing .menu a,
    .landing-rendered .menu a {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }

    body.page-landing .menu-elemento,
    .landing-rendered .menu-elemento {
        border: 0;
        min-height: 52px;
        padding: 5px 2px;
    }

    body.page-landing .menu-elemento p,
    .landing-rendered .menu-elemento p {
        flex-direction: column;
        font-size: 0.65rem;
        gap: 2px;
        text-align: center;
    }

    body.page-landing .menu-elemento img,
    .landing-rendered .menu-elemento img {
        height: 25px;
        padding: 0;
        width: 25px;
    }

    body.page-landing footer {
        margin-bottom: 76px;
    }

    .aula-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-aula .saludo-header {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    body.page-aula .saludo-dropdown {
        left: 0;
        right: auto;
    }

    body.page-aula-alumno .aula-list-panel {
        min-height: 0;
    }

    body.page-aula-alumno .app-page-hero__content {
        padding-right: 0;
        width: 100%;
    }
}

@media (max-width: 650px) {
    body.page-landing section h1,
    .landing-rendered section h1 {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
    }

    body.page-landing #inicio h1,
    .landing-rendered #inicio h1 {
        font-size: clamp(5rem, 26vw, 8rem);
        padding-top: 0;
    }

    body.page-landing .video-container-landing-div,
    .landing-rendered .video-container-landing-div {
        gap: 1rem;
    }

    body.page-landing .video-container-landing,
    .landing-rendered .video-container-landing {
        width: 100%;
    }

    body.page-landing table,
    .landing-rendered table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    body.page-aula main {
        padding: 0.8rem 0.75rem 2rem;
    }

    .aula-hero {
        border-radius: 18px;
        margin-bottom: 1rem;
        padding: 1.35rem;
    }

    body.page-aula .aula-hero h1 {
        font-size: 2.8rem;
    }

    .aula-hero__copy p {
        font-size: 0.86rem;
    }

    body.page-aula .card,
    body.page-aula .tarjeta__aula {
        border-radius: 18px;
        height: min(560px, 72vh);
    }

    body.page-aula .aula-card--feature,
    body.page-aula .aula-card--compact,
    body.page-aula .card-clase-semanal,
    body.page-aula-alumno .container.mb-4 .card {
        height: auto;
    }

    body.page-aula .aula-card--feature .card-body,
    body.page-aula .aula-card--compact .card-body {
        align-items: flex-start !important;
        flex-direction: column;
    }

    body.page-aula .pastillas__tema {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    body.page-aula-alumno .aula-filterbar .pastillas__tema {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }

    body.page-aula .pastilla__tema--filter {
        flex: 0 0 auto;
    }

    body.page-aula .right-elements {
        gap: 0.4rem;
    }

    body.page-aula-alumno .aula-list-panel__tools {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-aula-alumno .aula-list-panel__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-aula-alumno .aula-list-download {
        justify-content: center;
        min-height: 40px;
        width: 100%;
    }

    body.page-aula-alumno
        .aula-list-panel__actions
        .aula-student-topics__trigger {
        justify-content: center;
        min-height: 40px;
        width: 100%;
    }

    body.page-aula-alumno .aula-list-panel .aula-content-row__link {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-aula-alumno .aula-content-row__main {
        padding: 0.65rem 0.75rem;
    }

    body.page-aula-alumno .aula-content-row__details {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        margin-top: 0.25rem;
    }

    body.page-aula-alumno .aula-content-row__meta {
        justify-content: flex-start;
        margin: 0;
        white-space: normal;
    }

    body.page-aula-alumno .aula-content-row__progress {
        align-items: center;
        border-left: 0;
        border-top: 1px solid #e1e6ee;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0.6rem 0.8rem;
    }

    body.page-aula-alumno .aula-content-row__progress-head {
        grid-column: 1 / 3;
        grid-row: 1;
        justify-content: flex-start;
    }

    body.page-aula-alumno .aula-content-row__progress-meta {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-content: flex-start;
        text-align: left;
    }

    body.page-aula-alumno .aula-content-row__arrow {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    body.page-aula-alumno .aula-content-row__progress--open {
        justify-content: space-between;
    }

    body.page-aula-alumno .aula-content-row__progress--open > span {
        text-align: left;
    }

    .aula-alerts-dialog {
        border-radius: 18px;
        width: calc(100% - 1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-landing *,
    body.page-aula * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Delivery review */

body.page-delivery-review {
    background: var(--geo-yellow);
    color: var(--geo-ink);
    display: block;
    height: auto;
    min-height: 100vh;
}

body.page-delivery-review main {
    background:
        radial-gradient(circle at 90% 4%, rgba(22, 69, 135, 0.11), transparent 30rem),
        linear-gradient(145deg, #f5e7ca 0%, var(--geo-yellow) 100%);
    display: block;
    height: auto;
    min-height: 100vh;
    padding: clamp(0.8rem, 2vw, 1.6rem);
}

body.page-delivery-review main,
body.page-delivery-review main p,
body.page-delivery-review main a,
body.page-delivery-review main button,
body.page-delivery-review main input,
body.page-delivery-review main label,
body.page-delivery-review main div,
body.page-delivery-review main span,
body.page-delivery-review main strong,
body.page-delivery-review main small,
body.page-delivery-review main dt,
body.page-delivery-review main dd {
    font-family: var(--geo-body-font);
}

body.page-delivery-review main h1,
body.page-delivery-review main h2 {
    font-family: var(--geo-display-font);
    font-weight: 400;
    letter-spacing: -0.025em;
}

.delivery-review-shell {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.delivery-review-hero {
    background: linear-gradient(135deg, #255394 0%, var(--geo-blue-deep) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: var(--geo-shadow-md);
    color: #fff;
    column-gap: 2rem;
    display: grid;
    grid-template-areas:
        "eyebrow meta"
        "title meta"
        "subtitle meta";
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
}

.delivery-review-hero::after {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    height: 20rem;
    position: absolute;
    right: -9rem;
    top: -11rem;
    width: 20rem;
}

.delivery-review-back {
    color: rgba(255, 255, 255, 0.84);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0;
    position: absolute;
    right: 1.5rem;
    text-decoration: none;
    top: 1.5rem;
    z-index: 2;
}

.delivery-review-back:hover {
    color: #fff;
}

.delivery-review-eyebrow,
.delivery-review-kicker {
    color: var(--geo-blue);
    display: block;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.delivery-review-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    grid-area: eyebrow;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.delivery-review-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    grid-area: title;
    line-height: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.delivery-review-hero > p {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.9rem, 1.7vw, 1.15rem);
    font-weight: 700;
    grid-area: subtitle;
    margin: 0.5rem 0 0;
    position: relative;
    z-index: 1;
}

.delivery-review-hero-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    grid-area: meta;
    justify-content: flex-end;
    margin-top: 0;
    max-width: 36rem;
    position: relative;
    z-index: 1;
}

.delivery-review-hero-meta > span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 750;
    padding: 0.38rem 0.62rem;
}

.delivery-review-hero-meta > .delivery-review-status {
    background: rgba(245, 190, 60, 0.15);
    border-color: rgba(255, 215, 125, 0.34);
    color: #ffe5a5;
}

.delivery-review-hero-meta > .delivery-review-grade {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.delivery-review-hero-meta > .delivery-review-status.is-sent {
    background: rgba(81, 190, 126, 0.15);
    border-color: rgba(147, 231, 180, 0.35);
    color: #baf0d0;
}

/* Shared application hero */

.app-page-hero {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    min-height: 12.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.app-page-hero__top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    min-height: 1rem;
    position: relative;
    z-index: 2;
}

.app-page-hero__eyebrow {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.app-page-hero__action {
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    right: auto;
    text-decoration: none;
    top: auto;
    z-index: 2;
}

.app-page-hero__action:hover {
    color: #fff;
}

.app-page-hero__content {
    align-items: center;
    column-gap: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    z-index: 1;
}

.app-page-hero__copy {
    min-width: 0;
}

.app-page-hero__copy h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.95;
    margin: 0;
}

.app-page-hero .app-page-hero__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.55rem 0 0;
}

.app-page-hero__aside {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    grid-area: auto;
    justify-content: flex-end;
    margin: 0;
    max-width: 45rem;
}

body.page-aula .app-page-hero__top .saludo-header {
    align-items: flex-end;
    position: relative;
    text-align: right;
    width: auto;
}

body.page-aula .app-page-hero__top .saludo-dropdown {
    left: auto;
    right: 0;
}

@media (max-width: 650px) {
    body.page-aula .app-page-hero__top {
        gap: 0.75rem;
    }

    body.page-aula .saludo-texto {
        justify-content: center;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    body.page-aula .saludo-texto__name {
        display: none;
    }
}

.delivery-review-nav {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 69, 135, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(45, 38, 24, 0.08);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 1rem 0;
    padding: 0.4rem;
    position: sticky;
    top: 0.75rem;
    z-index: 30;
}

.delivery-review-nav > div {
    display: flex;
    gap: 0.3rem;
    grid-column: 2;
}

.delivery-review-nav a {
    border-radius: 9px;
    color: var(--geo-muted);
    font-size: 0.73rem;
    font-weight: 800;
    padding: 0.55rem 0.72rem;
    text-decoration: none;
}

.delivery-review-nav a:hover,
.delivery-review-nav a:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

.delivery-review-workspace {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
}

.delivery-review-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(22, 69, 135, 0.11);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(45, 38, 24, 0.08);
    display: block;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.delivery-review-card__header {
    border-bottom: 1px solid var(--geo-line);
    padding: 1rem 1.15rem 0.9rem;
    width: 100%;
}

.delivery-review-card__header h2 {
    color: var(--geo-ink);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1;
    margin: 0.15rem 0 0;
}

.delivery-review-card__header p {
    color: var(--geo-muted);
    font-size: 0.7rem;
    line-height: 1.5;
    margin: 0.35rem 0 0;
    max-width: 70ch;
}

.delivery-review-card__body {
    padding: 1rem 1.15rem 1.15rem;
    width: 100%;
}

.delivery-review-feedback {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.delivery-review-feedback .delivery-review-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.delivery-review-editor {
    background: var(--geo-surface-soft);
    border: 1px solid #d2d9e3;
    border-radius: 13px;
    color: var(--geo-ink);
    flex: 1 1 auto;
    font-size: 0.88rem;
    line-height: 1.65;
    min-height: 300px;
    outline: 0;
    overflow-y: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.delivery-review-editor:focus {
    background: #fff;
    border-color: var(--geo-blue);
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.13);
}

.delivery-review-editor:empty::before {
    color: #98a2b3;
    content: attr(data-placeholder);
    pointer-events: none;
}

.delivery-review-editor *,
.delivery-review-editor img {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.delivery-review-editor img {
    border-radius: 10px;
    display: block;
    height: auto;
    margin: 0.75rem 0;
    max-width: 100%;
}

.delivery-review-media-action {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 9px;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 850;
    gap: 0.45rem;
    margin-top: 0.75rem;
    min-height: 36px;
    padding: 0.48rem 0.68rem;
}

.delivery-review-media-action:hover {
    background: #dbe8f8;
}

.delivery-review-media-action svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 17px;
}

.delivery-review-sidebar {
    align-self: start;
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 5.75rem;
}

.delivery-review-file {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #cad9ec;
    border-radius: 12px;
    color: var(--geo-ink);
    display: flex;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.75rem;
    text-decoration: none;
}

.delivery-review-file:hover {
    background: #dfeaf8;
    border-color: #afc5e2;
    color: var(--geo-blue);
}

.delivery-review-file__icon {
    align-items: center;
    background: #fff;
    border-radius: 9px;
    color: var(--geo-blue);
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.delivery-review-file__icon svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 21px;
}

.delivery-review-file__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.delivery-review-file__copy strong {
    font-size: 0.74rem;
}

.delivery-review-file__copy > span {
    color: var(--geo-muted);
    font-size: 0.64rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-review-file__arrow {
    color: var(--geo-blue);
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.delivery-review-empty {
    background: var(--geo-surface-soft);
    border: 1px dashed #cbd4df;
    border-radius: 12px;
    color: var(--geo-muted);
    font-size: 0.72rem;
    padding: 0.9rem;
}

.delivery-review-details {
    display: grid;
    gap: 0;
    margin: 0.8rem 0 0;
}

.delivery-review-details > div {
    align-items: center;
    border-top: 1px solid var(--geo-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.65rem 0.1rem 0;
}

.delivery-review-details > div + div {
    margin-top: 0.65rem;
}

.delivery-review-details dt {
    color: var(--geo-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.delivery-review-details dd {
    color: var(--geo-ink);
    font-size: 0.69rem;
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.delivery-review-field {
    display: block;
}

.delivery-review-field + .delivery-review-field {
    margin-top: 0.9rem;
}

.delivery-review-field > span {
    color: var(--geo-ink);
    display: block;
    font-size: 0.71rem;
    font-weight: 850;
    margin-bottom: 0.38rem;
}

body.page-delivery-review .delivery-review-field input {
    background: var(--geo-surface-soft);
    border: 1px solid #d2d9e3;
    border-radius: 10px;
    box-shadow: none;
    color: var(--geo-ink);
    font-family: var(--geo-body-font);
    font-size: 0.82rem;
    height: auto;
    margin: 0;
    min-height: 42px;
    padding: 0.55rem 0.72rem;
    width: 100%;
}

body.page-delivery-review .delivery-review-field input:focus {
    background: #fff;
    border-color: var(--geo-blue);
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.13);
    outline: 0;
}

.delivery-review-field small {
    color: var(--geo-muted);
    display: block;
    font-size: 0.62rem;
    line-height: 1.4;
    margin-top: 0.35rem;
}

.delivery-review-actions {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 1rem;
}

.delivery-review-actions button {
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 850;
    min-height: 39px;
    padding: 0.5rem 0.65rem;
}

.delivery-review-save {
    background: #fff;
    border: 1px solid #bdc9d8;
    color: var(--geo-blue);
}

.delivery-review-save:hover {
    background: var(--geo-blue-soft);
    border-color: #afc5e2;
}

.delivery-review-send {
    background: var(--geo-blue);
    border: 1px solid var(--geo-blue);
    color: #fff;
}

.delivery-review-send:hover {
    background: var(--geo-blue-deep);
    border-color: var(--geo-blue-deep);
}

@media (max-width: 900px) {
    body.page-aula main,
    body.page-student-profile main,
    body.page-delivery-review main {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .aula-hero,
    .student-profile-hero,
    .delivery-review-hero {
        min-height: 0;
    }

    .delivery-review-hero {
        grid-template-areas:
            "back"
            "eyebrow"
            "title"
            "subtitle"
            "meta";
        grid-template-columns: 1fr;
    }

    .delivery-review-hero-meta {
        justify-content: flex-start;
        margin-top: 0.75rem;
        max-width: none;
    }

    .delivery-review-back {
        margin-bottom: 0.55rem;
        position: relative;
        right: auto;
        top: auto;
    }

    .app-page-hero__content {
        align-items: start;
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    .app-page-hero__aside {
        justify-content: flex-start;
        max-width: none;
    }

    .app-page-hero__action {
        margin: 0;
        position: relative;
        right: auto;
        top: auto;
    }

    .delivery-review-workspace {
        grid-template-columns: 1fr;
    }

    .delivery-review-feedback {
        height: auto;
    }

    .delivery-review-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    body.page-aula main,
    body.page-student-profile main,
    body.page-delivery-review main {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    body.page-delivery-review main {
        padding: 0.65rem;
    }

    .delivery-review-hero {
        border-radius: 18px;
    }

    .app-page-hero {
        padding: 1.35rem;
    }

    .delivery-review-nav {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .delivery-review-nav > div {
        overflow-x: auto;
    }

    .delivery-review-actions {
        grid-template-columns: 1fr;
    }

    .delivery-review-editor {
        min-height: 340px;
    }
}

/* Apartado detail */

body.page-apartado-detail {
    background: var(--geo-yellow);
    color: var(--geo-ink);
    display: block;
    height: auto;
    min-height: 100%;
}

body.page-apartado-detail main {
    background:
        radial-gradient(circle at 88% 5%, rgba(22, 69, 135, 0.11), transparent 30rem),
        linear-gradient(145deg, #f5e7ca 0%, var(--geo-yellow) 100%);
    display: block;
    height: auto;
    min-height: 100vh;
    padding: clamp(0.8rem, 2vw, 1.6rem);
}

body.page-apartado-detail main,
body.page-apartado-detail main p,
body.page-apartado-detail main li,
body.page-apartado-detail main a,
body.page-apartado-detail main button,
body.page-apartado-detail main input,
body.page-apartado-detail main select,
body.page-apartado-detail main textarea,
body.page-apartado-detail main pre {
    font-family: var(--geo-body-font);
}

body.page-apartado-detail main h1,
body.page-apartado-detail main h2,
body.page-apartado-detail main h3 {
    color: var(--geo-ink);
    font-family: var(--geo-display-font);
    font-weight: 400;
    letter-spacing: -0.025em;
}

body.page-apartado-detail footer {
    display: none;
}

.apartado-shell {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.apartado-hero {
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.12), transparent 20rem),
        linear-gradient(135deg, var(--geo-blue) 0%, var(--geo-blue-deep) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--geo-radius-lg);
    box-shadow: var(--geo-shadow-md);
    color: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    scroll-margin-top: 1rem;
}

.apartado-hero::after {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    height: 20rem;
    pointer-events: none;
    position: absolute;
    right: -8rem;
    top: -11rem;
    width: 20rem;
}

.apartado-hero__topline,
.apartado-hero__main,
.apartado-admin-toolbar {
    position: relative;
    z-index: 1;
}

.apartado-hero__topline {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    min-height: 1rem;
}

.apartado-back-link,
.apartado-back-link:visited {
    align-items: center;
    color: rgba(255, 255, 255, 0.84);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem;
    text-decoration: none;
}

.apartado-back-link:hover {
    color: #fff;
}

.apartado-type {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.42rem 0.7rem;
    text-transform: uppercase;
}

.apartado-hero__main {
    align-items: center;
    column-gap: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.apartado-hero__copy {
    min-width: 0;
}

.apartado-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

body.page-apartado-detail .apartado-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.95;
    margin: 0;
    max-width: 22ch;
}

body.page-apartado-detail .apartado-hero #titulo-apartado[contenteditable="true"] {
    background: rgba(7, 37, 82, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.58) !important;
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
    caret-color: #fff;
    color: #fff !important;
    outline: none;
    padding: 0.12em 0.18em;
}

body.page-apartado-detail .apartado-hero #titulo-apartado[contenteditable="true"]:focus {
    background: rgba(7, 37, 82, 0.28);
    border-color: rgba(255, 255, 255, 0.78) !important;
}

body.page-apartado-detail .apartado-hero--topic h1 {
    font-size: clamp(2.6rem, 3.8vw, 3.75rem);
    line-height: 0.98;
    max-width: 28ch;
}

.temas-asociados {
    margin-top: 0.8rem;
    text-align: left;
}

.temas-asociados__label {
    color: rgba(255, 255, 255, 0.64);
    display: block;
    font-size: 0.7rem;
    font-weight: 750;
    margin-bottom: 0.55rem;
}

.temas-asociados__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.temas-asociados .badge-container {
    display: inline-flex;
    margin: 0;
    max-width: min(34rem, 100%);
    position: relative;
}

body.page-apartado-detail .apartado-topic-badge {
    background: color-mix(in srgb, var(--topic-color) 55%, white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #111827;
    cursor: pointer;
    display: block;
    font-size: 0.76rem;
    max-width: 100%;
    padding: 0.52rem 0.75rem;
}

.apartado-topic-badge .badge-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apartado-hero__pager {
    display: flex;
    flex: 0 0 auto;
    gap: 0.55rem;
}

.apartado-pager-link,
.apartado-pager-link:visited {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 750;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.42rem 0.65rem;
    text-decoration: none;
}

.apartado-pager-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.apartado-pager-link.is-disabled {
    opacity: 0.38;
}

.apartado-admin-toolbar {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.apartado-admin-toolbar .botonera-multimedia-fixed {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    width: auto;
}

.apartado-admin-toolbar__fields {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.apartado-admin-toolbar .selector__categoria {
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.11);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E");
    background-position: right 0.58rem center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: none;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: 32px;
    padding: 0.36rem 1.9rem 0.36rem 0.65rem;
}

.apartado-admin-toolbar .selector__categoria:hover,
.apartado-admin-toolbar .selector__categoria:focus {
    background-color: rgba(255, 255, 255, 0.17);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    outline: 0;
}

.apartado-admin-toolbar .selector__categoria option {
    background: #fff;
    color: var(--geo-ink);
}

.apartado-admin-toolbar #selector-tema-asociado {
    max-width: min(260px, 44vw);
    width: 260px;
}

.apartado-layout {
    align-items: flex-start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.apartado-section-nav {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 69, 135, 0.11);
    border-radius: var(--geo-radius-md);
    box-shadow: var(--geo-shadow-sm);
    display: flex;
    flex-direction: row;
    gap: 0.35rem;
    justify-content: center;
    overflow-x: auto;
    padding: 0.55rem;
    position: sticky;
    scrollbar-width: none;
    top: 0.5rem;
    width: 100%;
    z-index: 20;
}

.apartado-section-nav::-webkit-scrollbar {
    display: none;
}

.apartado-section-nav__title {
    display: none;
}

.apartado-section-nav a,
.apartado-section-nav a:visited {
    align-items: center;
    border-radius: 9px;
    color: #344054;
    display: flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.65rem;
    min-height: 40px;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.apartado-section-nav a span {
    color: #98a2b3;
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.apartado-section-nav a:hover,
.apartado-section-nav a:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

.apartado-content {
    min-width: 0;
}

.apartado-overview-grid {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

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

body.page-apartado-detail .card.apartado-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(22, 69, 135, 0.11);
    border-radius: var(--geo-radius-md);
    box-shadow: var(--geo-shadow-sm);
    height: auto;
    margin: 0 0 1rem;
    max-height: none;
    overflow: hidden;
    padding: 0;
    scroll-margin-top: 5rem;
}

body.page-apartado-detail .apartado-feedback-section[id] {
    scroll-margin-top: 5rem;
}

body.page-apartado-detail .apartado-overview-grid {
    margin-bottom: 1rem;
}

body.page-apartado-detail .apartado-overview-grid > .apartado-card {
    height: 100%;
    margin-bottom: 0;
}

body.page-apartado-detail .apartado-card .card-header,
.apartado-card__header {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid var(--geo-line);
    border-radius: var(--geo-radius-md) var(--geo-radius-md) 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
    min-height: 0;
    padding: 1.1rem 1.25rem;
    position: static;
    text-align: left;
    width: 100%;
}

body.page-apartado-detail .apartado-card__header h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    line-height: 1;
    margin: 0;
}

.apartado-card__eyebrow {
    color: var(--geo-blue);
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.apartado-card__header > div > p {
    color: var(--geo-muted);
    font-size: 0.76rem;
    margin: 0.3rem 0 0;
}

body.page-apartado-detail .apartado-card .card-body {
    overflow: visible;
    padding: 1.25rem;
}

.apartado-card--description .card-body {
    min-height: 15rem;
}

body.page-apartado-detail #descripcion-apartado {
    color: #344054;
    font-family: var(--geo-body-font) !important;
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
    overflow: visible;
    white-space: pre-wrap;
}

.apartado-card .botonera-multimedia-fixed {
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.4rem;
    justify-content: flex-end;
    padding: 0;
    width: auto;
}

.apartado-card .botonera-multimedia-fixed .btn {
    padding: 0.42rem 0.62rem;
}

body.page-apartado-detail .enlaces-grid {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-apartado-detail .enlaces-grid li {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
}

body.page-apartado-detail .enlaces-grid .enlace,
body.page-apartado-detail .entrega-item > .enlace {
    align-items: center;
    color: var(--geo-ink);
    display: flex;
    flex: 1 1 auto;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
}

body.page-apartado-detail .enlaces-grid li > .enlace {
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 11px;
    padding: 0.75rem;
    transition: border-color 150ms ease, transform 150ms ease;
}

body.page-apartado-detail .enlaces-grid li > .enlace:hover {
    border-color: #b9cce7;
    transform: translateY(-1px);
}

body.page-apartado-detail .enlace > span:not(.resource-icon):not(.resource-arrow) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

body.page-apartado-detail .enlace strong {
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-apartado-detail .enlace small {
    color: var(--geo-muted);
    font-size: 0.72rem;
    margin-top: 0.12rem;
}

.resource-icon {
    align-items: center;
    background: var(--geo-blue-soft);
    border-radius: 9px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

body.page-apartado-detail .resource-icon .icono__detail {
    height: 21px;
    margin: 0;
    object-fit: contain;
    padding: 0;
    width: 21px;
}

.resource-arrow {
    color: #98a2b3;
    flex: 0 0 auto;
    font-size: 1rem;
}

body.page-apartado-detail .remove-icon,
body.page-apartado-detail .yt-remove {
    background: var(--geo-danger);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    height: 22px;
    line-height: 1;
    position: absolute;
    right: -6px;
    text-decoration: none;
    top: -6px;
    width: 22px;
    z-index: 4;
}

body.page-apartado-detail .multimedia-body-wrapper {
    max-height: none;
    overflow: visible;
}

body.page-apartado-detail .youtube-list {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 300px));
}

body.page-apartado-detail .yt-video {
    align-items: stretch;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 12px;
    margin: 0;
    overflow: visible;
    padding: 0.55rem;
    position: relative;
}

body.page-apartado-detail .youtube-thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    display: block;
    height: auto;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

body.page-apartado-detail .youtube-preview {
    border-radius: 9px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body.page-apartado-detail .play-icon {
    align-items: center;
    background: rgba(14, 50, 102, 0.88);
    border-radius: 50%;
    display: flex;
    font-size: 1rem;
    height: 44px;
    justify-content: center;
    padding: 0 0 0 3px;
    width: 44px;
}

body.page-apartado-detail .yt-title {
    color: var(--geo-ink);
    font-size: 0.82rem;
    font-weight: 750;
    height: auto;
    line-height: 1.35;
    min-height: 2.2em;
    padding: 0.25rem 0.2rem 0.1rem;
    text-align: left;
}

body.page-apartado-detail .yt-remove-wrapper {
    height: 22px;
    margin: 0;
    position: absolute;
    right: 3px;
    top: 3px;
    width: 22px;
    z-index: 4;
}

body.page-apartado-detail .audio-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 0.85rem;
}

body.page-apartado-detail .audio-item {
    align-items: stretch;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 11px;
    overflow: visible;
    padding: 0.75rem;
    position: relative;
    width: auto;
}

body.page-apartado-detail .audio-content {
    align-items: stretch;
    gap: 0.45rem;
}

body.page-apartado-detail .audio-content audio {
    width: 100%;
}

body.page-apartado-detail .audio-title {
    color: var(--geo-ink);
    font-size: 0.8rem;
    margin: 0;
    text-align: left;
}

.apartado-card--expansion .enlaces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apartado-empty-state {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px dashed #c8d2df;
    border-radius: 12px;
    color: var(--geo-muted);
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    min-height: 94px;
    padding: 1rem;
    text-align: center;
}

.apartado-empty-state > span {
    align-items: center;
    background: var(--geo-blue-soft);
    border-radius: 50%;
    color: var(--geo-blue);
    display: inline-flex;
    font-size: 1rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.apartado-empty-state p {
    font-size: 0.84rem;
    margin: 0;
}

.entregas-list {
    display: grid;
    gap: 0.65rem;
}

body.page-apartado-detail .entrega-item {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 11px;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem;
}

body.page-apartado-detail .entrega-hours {
    background: var(--geo-blue-soft) !important;
    color: var(--geo-blue);
    flex: 0 0 auto;
}

body.page-apartado-detail .eliminar-entrega-btn {
    color: var(--geo-danger);
    flex: 0 0 auto;
    font-size: 0.76rem;
    padding: 0.35rem 0.45rem;
    text-decoration: none;
}

.apartado-feedback-section {
    padding: 0;
    scroll-margin-top: 1rem;
    width: 100%;
}

.apartado-section-heading {
    padding: 1rem 0 0.85rem;
}

.apartado-section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    margin: 0;
}

.apartado-feedback-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-apartado-detail .feedback-card {
    margin: 0 0 1rem;
}

.feedback-card__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--geo-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.1rem 1.2rem;
}

.feedback-card__label {
    color: var(--geo-muted);
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    margin-bottom: 0.2rem;
}

.feedback-card__header h3 {
    font-family: var(--geo-body-font) !important;
    font-size: 0.9rem;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    margin: 0;
    overflow-wrap: anywhere;
}

body.page-apartado-detail .feedback-card__header .calificacion-badge {
    flex: 0 0 auto;
    font-size: 0.68rem;
    margin: 0;
    text-transform: uppercase;
}

.feedback-card__body {
    color: #344054;
    font-size: 0.88rem;
    line-height: 1.65;
    min-width: 0;
    overflow: hidden;
    padding: 1.2rem;
}

.feedback-card__body p:last-child {
    margin-bottom: 0;
}

.feedback-card__body img {
    border: 1px solid rgba(22, 69, 135, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(45, 38, 24, 0.1);
    cursor: zoom-in;
    display: block;
    height: auto !important;
    margin: 0.85rem 0;
    max-height: 32rem;
    max-width: 100% !important;
    object-fit: contain;
    width: auto !important;
}

.feedback-card__body img:focus-visible {
    outline: 3px solid rgba(22, 69, 135, 0.35);
    outline-offset: 3px;
}

.feedback-image-dialog {
    background: transparent;
    border: 0;
    height: 100%;
    margin: auto;
    max-height: none;
    max-width: none;
    padding: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
}

.feedback-image-dialog[open] {
    align-items: center;
    display: flex;
    justify-content: center;
}

.feedback-image-dialog::backdrop {
    backdrop-filter: blur(12px);
    background: rgba(10, 18, 32, 0.82);
}

.feedback-image-dialog__image {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    max-height: calc(100vh - 5rem);
    max-width: min(1200px, calc(100vw - 3rem));
    object-fit: contain;
}

.feedback-image-dialog__close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: var(--geo-ink);
    display: inline-flex;
    font-size: 1.6rem;
    height: 2.6rem;
    justify-content: center;
    line-height: 1;
    padding: 0 0 0.1rem;
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    width: 2.6rem;
    z-index: 1;
}

.feedback-image-dialog__close:hover,
.feedback-image-dialog__close:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue);
}

.apartado-bottom-nav {
    align-items: center;
    border-top: 1px solid rgba(22, 69, 135, 0.14);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin-top: 1rem;
    padding: 1.5rem 0 0.5rem;
}

.apartado-bottom-nav__item,
.apartado-bottom-nav__item:visited {
    align-items: center;
    color: var(--geo-ink);
    display: flex;
    font-size: 0.82rem;
    font-weight: 750;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
}

.apartado-bottom-nav__item > span:not(:first-child),
.apartado-bottom-nav__item--next > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apartado-bottom-nav__item small {
    color: var(--geo-muted);
    display: block;
    font-size: 0.66rem;
    font-weight: 650;
}

.apartado-bottom-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}

.apartado-danger-zone {
    align-items: center;
    background: #fff7f8;
    border: 1px solid #f0c7cc;
    border-radius: var(--geo-radius-md);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1.1rem 1.2rem;
}

.apartado-danger-zone__copy {
    min-width: 0;
}

.apartado-danger-zone__form {
    flex: 0 0 auto;
    margin: 0;
}

.apartado-danger-zone__copy .apartado-card__eyebrow {
    color: var(--geo-danger);
}

.apartado-danger-zone__copy strong {
    color: #7a2631;
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.apartado-danger-zone__copy p {
    color: #8c5660;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

body.page-apartado-detail .apartado-delete-action,
body.page-apartado-detail .apartado-delete-action:visited {
    background: #fff;
    border: 1px solid #dc6674;
    color: var(--geo-danger);
    flex: 0 0 auto;
}

body.page-apartado-detail .apartado-delete-action:hover {
    background: var(--geo-danger);
    border-color: var(--geo-danger);
    color: #fff;
}

/* Admin actions */

body.page-apartado-detail .apartado-create-action,
body.page-apartado-detail .apartado-edit-action,
body.page-apartado-detail .apartado-secondary-action {
    align-items: center;
    background: var(--geo-blue-soft);
    border: 1px solid #c3d3e8;
    box-shadow: none;
    color: var(--geo-blue);
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
}

body.page-apartado-detail .apartado-create-action,
body.page-apartado-detail .apartado-edit-action,
body.page-apartado-detail .apartado-secondary-action,
body.page-apartado-detail .apartado-save-action,
body.page-apartado-detail .apartado-cancel-action {
    border-radius: 8px;
    font-size: 0.7rem;
    line-height: 1.1;
    min-height: 30px;
    padding: 0.36rem 0.54rem;
    white-space: nowrap;
}

body.page-apartado-detail .apartado-create-action::before {
    content: "+";
    font-size: 1rem;
    font-weight: 500;
    line-height: 0.8;
}

body.page-apartado-detail .apartado-edit-action::before {
    content: "✎";
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1;
}

body.page-apartado-detail .apartado-create-action:hover,
body.page-apartado-detail .apartado-edit-action:hover,
body.page-apartado-detail .apartado-secondary-action:hover {
    background: #dbe8f8;
    border-color: #a9c1df;
    color: var(--geo-blue-deep);
}

body.page-apartado-detail .apartado-save-action {
    background: var(--geo-blue);
    border: 1px solid var(--geo-blue);
    color: #fff;
}

body.page-apartado-detail .apartado-save-action:hover {
    background: var(--geo-blue-deep);
    border-color: var(--geo-blue-deep);
    color: #fff;
}

body.page-apartado-detail .apartado-cancel-action {
    background: #fff;
    border: 1px solid var(--geo-line);
    color: var(--geo-muted);
}

body.page-apartado-detail .apartado-admin-toolbar .apartado-edit-action {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    min-height: 32px;
    padding-inline: 0.65rem;
}

body.page-apartado-detail .apartado-admin-toolbar .apartado-edit-action:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

body.page-apartado-detail .apartado-admin-toolbar .apartado-secondary-action {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: var(--geo-blue);
    min-height: 32px;
    padding-inline: 0.7rem;
}

body.page-apartado-detail .apartado-admin-toolbar .apartado-secondary-action:hover {
    background: #fff;
    border-color: #fff;
    color: var(--geo-blue-deep);
}

/* Compact add menus */

body.page-apartado-detail .apartado-card--has-menu {
    overflow: visible;
    position: relative;
}

body.page-apartado-detail .apartado-card--has-menu .apartado-card__header {
    position: relative;
    z-index: 8;
}

.apartado-add-menu {
    position: relative;
}

.apartado-add-menu__trigger::after {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    content: "";
    height: 6px;
    margin-left: 0.18rem;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform 150ms ease;
    width: 6px;
}

.apartado-add-menu__trigger[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

body.page-apartado-detail .apartado-add-menu__panel {
    background: #fff;
    border: 1px solid var(--geo-line);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(12, 32, 61, 0.18);
    display: grid;
    gap: 0.2rem;
    max-width: calc(100vw - 2rem);
    min-width: 220px;
    padding: 0.35rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 20;
}

body.page-apartado-detail .apartado-add-menu__panel[hidden] {
    display: none;
}

body.page-apartado-detail .apartado-add-menu__option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #344054;
    display: flex;
    font-family: var(--geo-body-font);
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.55rem;
    min-height: 36px;
    padding: 0.48rem 0.55rem;
    text-align: left;
    white-space: nowrap;
    width: 100%;
}

body.page-apartado-detail .apartado-add-menu__option > span {
    align-items: center;
    background: var(--geo-blue-soft);
    border-radius: 7px;
    color: var(--geo-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    height: 26px;
    justify-content: center;
    width: 26px;
}

body.page-apartado-detail .apartado-add-menu__option > span svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 15px;
}

body.page-apartado-detail .apartado-add-menu__option:hover,
body.page-apartado-detail .apartado-add-menu__option:focus-visible {
    background: var(--geo-blue-soft);
    color: var(--geo-blue-deep);
    outline: 0;
}

/* Modern modal shared by the apartado forms */

body.apartado-modal-open {
    overflow: hidden;
}

body.page-apartado-detail .apartado-modal {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(10, 23, 43, 0.58);
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem !important;
    position: fixed;
    z-index: 1200;
}

body.page-apartado-detail .apartado-modal__panel {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(6, 21, 43, 0.3);
    color: var(--geo-ink);
    margin: auto;
    max-height: calc(100vh - 2rem);
    max-width: 590px;
    overflow-y: auto;
    padding: 1.65rem !important;
    position: relative;
    width: min(100%, 590px);
}

body.page-apartado-detail .apartado-modal__eyebrow {
    color: var(--geo-blue);
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

body.page-apartado-detail .apartado-modal__panel h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
    margin: 0 3rem 1.35rem 0;
}

body.page-apartado-detail .apartado-modal__close {
    align-items: center;
    background: var(--geo-surface-soft);
    border: 1px solid var(--geo-line);
    border-radius: 50%;
    color: #475467;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    width: 38px;
}

body.page-apartado-detail .apartado-modal__close:hover {
    background: var(--geo-blue-soft);
    border-color: #c4d4e8;
    color: var(--geo-blue);
}

body.page-apartado-detail .apartado-modal__fields {
    display: grid;
    gap: 1rem;
}

body.page-apartado-detail .apartado-modal__fields p {
    margin: 0;
}

body.page-apartado-detail .apartado-modal__fields label {
    color: #344054;
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    margin-bottom: 0.4rem;
}

body.page-apartado-detail .apartado-modal__fields input:not([type="checkbox"]),
body.page-apartado-detail .apartado-modal__fields select,
body.page-apartado-detail .apartado-modal__fields textarea {
    background: var(--geo-surface-soft);
    border: 1px solid #cfd7e2;
    border-radius: 11px;
    color: var(--geo-ink);
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

body.page-apartado-detail .apartado-modal__fields input[type="file"] {
    background: #fff;
    cursor: pointer;
    padding: 0.52rem;
}

body.page-apartado-detail .apartado-modal__fields input:focus,
body.page-apartado-detail .apartado-modal__fields select:focus,
body.page-apartado-detail .apartado-modal__fields textarea:focus {
    border-color: var(--geo-blue);
    box-shadow: 0 0 0 3px rgba(22, 69, 135, 0.12);
    outline: 0;
}

body.page-apartado-detail .apartado-modal__fields .helptext {
    color: var(--geo-muted);
    display: block;
    font-size: 0.72rem;
    line-height: 1.45;
    margin-top: 0.35rem;
}

body.page-apartado-detail .apartado-modal__actions {
    align-items: center;
    border-top: 1px solid var(--geo-line);
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 1.35rem;
    padding-top: 1rem;
}

body.page-apartado-detail .apartado-modal__cancel {
    background: #fff;
    border: 1px solid var(--geo-line);
    color: #475467;
}

body.page-apartado-detail .apartado-modal__submit {
    background: var(--geo-blue);
    border-color: var(--geo-blue);
    color: #fff;
}

body.page-apartado-detail .remove-icon,
body.page-apartado-detail .yt-remove {
    align-items: center;
    background: #fff;
    border: 1px solid #e6aab2;
    box-shadow: 0 5px 14px rgba(91, 24, 35, 0.13);
    color: var(--geo-danger);
    display: inline-flex;
    height: 26px;
    justify-content: center;
    margin: 0;
    opacity: 0.92;
    overflow: hidden;
    padding: 0;
    right: -8px;
    top: -8px;
    width: 26px;
}

body.page-apartado-detail .remove-icon > span,
body.page-apartado-detail .yt-remove > span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

body.page-apartado-detail .remove-icon:hover,
body.page-apartado-detail .yt-remove:hover {
    background: var(--geo-danger);
    border-color: var(--geo-danger);
    color: #fff;
    height: 26px;
    margin: 0;
    opacity: 1;
    transform: none;
    width: 26px;
}

body.page-apartado-detail .youtube-overlay {
    backdrop-filter: blur(8px);
    z-index: 1100;
}

@media (max-width: 1050px) {
    .apartado-overview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    body.page-apartado-detail main {
        padding: 0.6rem;
    }

    .apartado-hero {
        border-radius: 18px;
        padding: 1.2rem;
    }

    .apartado-section-nav {
        justify-content: flex-start;
    }

    .apartado-hero__topline {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .apartado-hero__main {
        align-items: flex-start;
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    body.page-apartado-detail .apartado-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
        max-width: none;
    }

    .apartado-hero__pager {
        justify-content: flex-start;
        width: 100%;
    }

    .apartado-pager-link {
        flex: 1 1 0;
        justify-content: center;
    }

    .apartado-overview-grid,
    .apartado-feedback-grid {
        grid-template-columns: 1fr;
    }

    .apartado-card--description .card-body {
        min-height: 0;
    }

    .apartado-card--expansion .enlaces-grid {
        grid-template-columns: 1fr;
    }

    .apartado-card__header {
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.page-apartado-detail .apartado-card .apartado-card__header {
        flex-direction: column;
    }

    .apartado-card .botonera-multimedia-fixed {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    body.page-apartado-detail .apartado-add-menu__panel {
        left: 0;
        right: auto;
    }

    body.page-apartado-detail .youtube-list {
        grid-template-columns: 1fr;
    }

    body.page-apartado-detail .entrega-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    body.page-apartado-detail .entrega-item > .enlace {
        flex-basis: calc(100% - 3.2rem);
    }

    body.page-apartado-detail .entrega-hours {
        margin-left: 3.1rem;
    }

    .apartado-bottom-nav {
        grid-template-columns: 1fr 1fr;
    }

    .apartado-bottom-nav > .btn {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }

    .apartado-bottom-nav__item {
        grid-row: 2;
    }

    .apartado-admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .apartado-admin-toolbar__fields {
        align-items: stretch;
        flex-direction: column;
    }

    .apartado-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .apartado-danger-zone__form {
        align-self: flex-start;
    }

    body.page-apartado-detail .apartado-delete-action {
        align-self: flex-start;
    }

    body.page-apartado-detail .apartado-modal__panel {
        border-radius: 18px;
        max-height: calc(100vh - 1rem);
        padding: 1.25rem !important;
    }

    body.page-apartado-detail .apartado-modal__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .apartado-section-nav a span {
        display: none;
    }
}

@media (max-width: 767px) {
    body.page-aula-profesor .aula-admin-email-status {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-aula-profesor .aula-admin-email-status__control {
        justify-content: space-between;
    }

    /*
     * En móvil las áreas de gestión forman parte del scroll de la página.
     * Evitamos tarjetas-ventana y listas con scroll propio para no encerrar
     * contenidos ni capturar el gesto vertical del usuario.
     */
    body.page-aula-profesor .aula-admin-list-card,
    body.page-aula-profesor .aula-admin-messages-card,
    body.page-aula-profesor .aula-admin-viewport-card,
    body.page-aula-profesor .aula-admin-communications-card {
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    body.page-aula-profesor .aula-admin-viewport-card > .card-body,
    body.page-aula-profesor .aula-admin-communications-card > .card-body {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    body.page-aula-profesor .aula-admin-viewport-card--students .lista-alumnos,
    body.page-aula-profesor .aula-admin-viewport-card--contents .aula-admin-workspace-panel,
    body.page-aula-profesor .aula-admin-viewport-card--contents .aula-admin-compact-list,
    body.page-aula-profesor .aula-admin-message-list {
        flex: 0 0 auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
        overscroll-behavior-y: auto;
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    body.page-aula-profesor #form-crear-publicacion {
        height: auto;
    }

    body.page-aula-profesor #form-crear-publicacion .aula-admin-publication-field--content,
    body.page-aula-profesor #form-crear-publicacion .aula-admin-publication-field--content textarea {
        flex: 0 0 auto;
    }

    body.page-aula-profesor .aula-admin-publication-destination {
        display: block;
        min-width: 0;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-publication-destination > legend {
        display: block;
        max-width: 100%;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-publication-targets {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-publication-target {
        justify-content: center;
        min-width: 0;
        white-space: normal;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-message-list .list-group-item {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    body.page-aula-profesor .aula-admin-message-list .list-group-item > a {
        align-items: stretch;
        min-width: 0;
        padding: 0.8rem;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-message-main,
    body.page-aula-profesor .aula-admin-message-heading,
    body.page-aula-profesor .aula-admin-message-heading strong {
        min-width: 0;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-message-heading strong,
    body.page-aula-profesor .aula-admin-message-main p {
        overflow-wrap: anywhere;
    }

    body.page-aula-profesor .aula-admin-message-actions {
        border-top: 1px solid var(--geo-line);
        justify-content: flex-end;
        padding: 0.5rem 0.7rem;
        width: 100%;
    }

    body.page-aula-profesor .aula-admin-message-more {
        align-self: center;
    }

    body.page-aula-profesor .aula-admin-compact-list .list-group-item {
        align-items: center;
        flex-wrap: wrap;
        min-width: 0;
    }

    body.page-aula-profesor .aula-admin-compact-list .aula-admin-sortable-title {
        flex: 1 1 calc(100% - 3rem);
        overflow-wrap: anywhere;
    }

    body.page-aula-profesor .aula-admin-compact-list .visibilidad-selector {
        flex: 1 1 calc(100% - 2.4rem);
        margin-left: 2.4rem !important;
        width: auto !important;
    }

    .aula-student-nav__links > a,
    .aula-student-nav__message {
        font-size: 0.68rem;
        justify-content: center;
        line-height: 1.15;
        min-width: 0;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        text-align: center;
        white-space: normal;
    }

    .aula-student-topics__panel {
        max-height: min(52vh, 420px);
        min-width: min(320px, calc(100vw - 2rem));
        overflow-y: auto;
    }

    .aula-student-class-menu__panel {
        max-width: calc(100vw - 2rem);
    }

    /*
     * En móvil, Trabajo semanal y Temas se comportan como listas continuas:
     * la tarjeta crece con su contenido y el único scroll es el de la página.
     */
    body.page-aula-alumno .aula-list-panel {
        height: auto !important;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    body.page-aula-alumno .aula-list-panel__body {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    body.page-aula-alumno .aula-list-panel__items {
        flex: 0 0 auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
        overscroll-behavior-y: auto;
        padding-right: 0;
        scrollbar-gutter: auto;
    }
}

@media (max-width: 480px) {
    .aula-student-class-menu__trigger {
        max-width: 100%;
    }

    .aula-student-class-menu__copy strong {
        max-width: none;
        overflow: visible;
    }
}
