@charset "UTF-8";
/* Paleta y base */
:root {
    --green: #078653;
    --green-dark: #084b36;
    --green-deep: #073d2e;
    --lime: #a7d77d;
    --ink: #203d33;
    --muted: #66796f;
    --line: #dce6df;
    --paper: #f5f7f3;
    --tint: #edf5ec;
    --white: #fff;
    --radius: 16px;
    font-family: "Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 15px;
    line-height: 1.55
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

a {
    color: #087648;
    text-underline-offset: 4px
}

a:hover {
    color: var(--green-dark)
}

img {
    max-width: 100%;
    height: auto
}

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

button,a,input,select,textarea {
    -webkit-tap-highlight-color: transparent
}

h1,h2,h3,p {
    margin-top: 0
}

h1 {
    font-size: clamp(1.8rem,2.5vw,2.5rem);
    letter-spacing: -.045em;
    line-height: 1.16;
    font-weight: 700;
    margin-bottom: 12px
}

h2 {
    font-size: 1.25rem;
    letter-spacing: -.025em;
    line-height: 1.3;
    margin-bottom: 12px
}

h3 {
    font-size: 1.05rem;
    margin: 24px 0 12px
}

p {
    margin-bottom: 14px
}

p:last-child {
    margin-bottom: 0
}

strong {
    font-weight: 650
}

:focus-visible {
    outline: 3px solid #b2ce58;
    outline-offset: 4px
}

button:disabled {
    cursor: not-allowed;
    background: #e5eae6;
    color: #748179;
    box-shadow: none;
    transform: none
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    background: white;
    padding: 12px;
    z-index: 100
}

.skip-link:focus {
    top: 8px
}

/* Identidad y encabezado */
.site-header {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 max(28px,calc((100vw - 1240px)/2));
    background: var(--white);
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    gap: 13px;
    align-items: center;
    text-decoration: none;
    color: var(--green-dark);
    flex-shrink: 0
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: white;
    border-radius: 50%
}

.brand strong {
    font-size: 1.4rem;
    letter-spacing: -.05em;
    line-height: 1.15;
    display: block
}

.brand strong span {
    font-weight: 400
}

.brand small {
    display: block;
    font-size: .72rem;
    letter-spacing: .015em;
    color: var(--muted);
    margin-top: 4px
}

.header-link {
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px
}

main {
    width: min(calc(100% - 64px),1240px);
    margin: 38px auto 64px;
    min-height: calc(100vh - 240px)
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(calc(100% - 64px),1240px);
    margin: 0 auto;
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
    font-size: .75rem;
    color: var(--muted)
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 3px 12px #12302103
}

.stack {
    display: grid;
    gap: 22px
}

.grid {
    display: grid;
    gap: 18px 22px;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr))
}

.grid>* {
    min-width: 0
}

.section {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    margin-top: 12px
}

.section h2 {
    margin-bottom: 20px
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.top>* {
    min-width: 0
}

.top form {
    margin: 0
}

.top .button {
    flex-shrink: 0
}

.hint {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65
}

.eyebrow {
    font-size: .7rem;
    letter-spacing: .15em;
    font-weight: 750;
    text-transform: uppercase;
    color: var(--green);
    display: block;
    margin-bottom: 14px
}

.page-heading {
    margin: 0 0 28px
}

.page-heading .hint {
    max-width: 650px
}

.page-heading .eyebrow {
    margin-bottom: 8px
}

label {
    display: block;
    margin-top: 8px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.5;
    color: #365147
}

input,select,textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    margin-top: 7px;
    border: 1px solid #c8d6cc;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s,box-shadow .15s;
    min-height: 46px;
    font-weight: 400
}

input::placeholder,textarea::placeholder {
    color: #88948e
}

input:hover,select:hover,textarea:hover {
    border-color: #8eaa98
}

input:focus,select:focus,textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px #0786531a
}

textarea {
    min-height: 125px;
    resize: vertical
}

input[type=checkbox],input[type=radio] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex-shrink: 0;
    accent-color: var(--green)
}

input[type=file] {
    padding: 10px;
    background: #f8faf7;
    border: 1px dashed #9db9a5;
    font-size: .85rem
}

input[type=file]::file-selector-button {
    border: 1px solid #c5d7c9;
    background: white;
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--green-dark);
    font: inherit;
    cursor: pointer;
    margin-right: 12px
}

input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true] {
    border-color: #b34537;
    background: #fffafa
}

button,.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 19px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: .87rem;
    font-weight: 650;
    line-height: 1.35;
    transition: background .15s,box-shadow .15s
}

button:hover,.button:hover {
    background: #066a43;
    color: #fff;
    box-shadow: 0 3px 8px #074c3615
}

.button.secondary,button.secondary {
    background: #fff;
    border-color: #cbdad0;
    color: var(--green-dark)
}

.button.secondary:hover,button.secondary:hover {
    background: var(--tint);
    border-color: #90ae9a
}

.button.quiet,button.quiet {
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    border-color: transparent
}

.button.wide {
    width: 100%
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center
}

.actions button,.actions .button,.top button,.top .button {
    margin-top: 0
}

.actions>p {
    flex-basis: 100%
}

.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 12px;
    font-weight: 400
}

.check-row input {
    margin-top: 3px
}

.check-row span {
    padding-top: 1px
}

.error {
    color: #a3372b;
    font-size: .84rem;
    margin: 7px 0;
    overflow-wrap: anywhere
}

.notice {
    border: 1px solid #c9dfbd;
    background: #f0f7ea;
    border-radius: 10px;
    padding: 15px 18px;
    color: #36592e;
    font-size: .9rem
}

.notice.warning {
    background: #fff8e8;
    border-color: #eadbb8;
    color: #785f20
}

.notice.error {
    background: #fff3f0;
    border-color: #edc9c1;
    color: #a3372b
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 22px
}

.hidden,[hidden] {
    display: none!important
}

/* Acceso de familias y funcionarios */
.welcome-layout {
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    gap: 32px;
    align-items: start
}

.welcome-story {
    background: var(--green-dark);
    color: #fff;
    padding: 44px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    min-height: 674px;
    display: flex;
    flex-direction: column;
    isolation: isolate
}

.welcome-story:after {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    right: -280px;
    bottom: 70px;
    box-shadow: 0 0 0 65px #ffffff05,0 0 0 130px #ffffff03;
    z-index: -1
}

.welcome-story .eyebrow {
    color: #bddd9a
}

.welcome-story h1 {
    font-size: clamp(2.4rem,3.3vw,3.2rem);
    max-width: 440px;
    line-height: 1.07;
    margin: 24px 0 24px;
    font-weight: 600
}

.welcome-story h1 em {
    font-style: normal;
    color: #bddd9a
}

.welcome-story>p {
    color: #d2e4d9;
    font-size: 1rem;
    max-width: 370px
}

.story-logo {
    width: 94px;
    height: 94px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 32px
}

.story-bottom {
    margin-top: auto;
    padding-top: 42px
}

.story-bottom>p {
    font-size: .74rem;
    letter-spacing: .12em;
    color: #bddd9a
}

.journey {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px
}

.journey li {
    display: flex;
    gap: 15px;
    align-items: center
}

.journey b {
    font-size: .8rem;
    border: 1px solid #ffffff35;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #d4edbf
}

.journey strong {
    font-size: .92rem
}

.journey small {
    display: block;
    color: #b8cebf;
    font-size: .82rem;
    margin-top: 3px
}

.entry-column {
    display: grid;
    gap: 20px
}

.entry-card {
    padding: 30px 32px
}

.entry-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px
}

.entry-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--tint);
    color: var(--green);
    font-size: 1.3rem;
    flex-shrink: 0
}

.entry-heading h2 {
    margin: 0 0 5px;
    font-size: 1.25rem
}

.entry-heading p {
    font-size: .85rem;
    line-height: 1.5
}

.entry-card .grid {
    grid-template-columns: 1fr 1fr
}

.entry-note {
    font-size: .79rem;
    text-align: center;
    color: var(--muted);
    margin: 0 12px
}

.entry-card .button {
    margin-top: 20px
}

.login-layout {
    max-width: 1000px;
    margin: 55px auto;
    align-items: center
}

.login-layout .welcome-story {
    min-height: 530px
}

.login-card {
    padding: 38px
}

.login-card h1 {
    font-size: 2rem
}

.login-card .button {
    margin-top: 24px
}

/* Formulario y navegaci?n por secciones */
.stepper {
    list-style: none;
    display: flex;
    margin: 0 0 30px;
    padding: 0;
    gap: 8px;
    align-items: center;
    color: #738279;
    font-size: .85rem
}

.stepper li {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1
}

.stepper li:not(:last-child):after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
    margin: 0 12px
}

.stepper b {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd7ce;
    border-radius: 50%;
    font-size: .77rem;
    flex-shrink: 0
}

.stepper .current {
    color: var(--green-dark);
    font-weight: 650
}

.stepper .current b {
    background: var(--green);
    border-color: var(--green);
    color: white
}

.stepper .complete b {
    background: #e2edda;
    color: #47713c;
    border-color: #e2edda
}

.form-layout {
    display: grid;
    grid-template-columns: 215px minmax(0,1fr);
    gap: 28px;
    align-items: start
}

.form-index {
    position: sticky;
    top: 24px;
    min-width: 0
}

.form-index nav {
    display: grid;
    gap: 6px
}

.form-index a {
    text-decoration: none;
    color: var(--muted);
    padding: 11px 12px;
    border-radius: 8px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 11px
}

.form-index a:hover,.form-index a[aria-current=true] {
    background: #e7efdf;
    color: var(--green-dark)
}

.form-index a span {
    font-size: .72rem;
    color: #788f71;
    font-variant-numeric: tabular-nums
}

.form-index .help-note {
    margin: 25px 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .79rem;
    color: var(--muted)
}

.form-body {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none
}

.form-body>form {
    gap: 22px
}

.form-body .section {
    margin: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scroll-margin-top: 24px
}

.section-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px!important
}

.section-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--tint);
    color: var(--green);
    font-size: .78rem;
    font-weight: 600;
    flex-shrink: 0
}

.form-body .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px 20px
}

.form-body .grid+.grid {
    margin-top: 16px
}

.form-body h3 {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.form-body .section .hint {
    font-size: .82rem
}

.form-actions {
    position: static;
    display: grid;
    gap: 16px;
    margin-top: 28px;
    background: #fff;
    padding: 20px;
    border: 1px solid #cbdacf;
    border-radius: 12px
}

.form-actions .notice {
    margin: 0
}

.form-actions__buttons {
    justify-content: flex-end
}

.form-actions button {
    min-height: 44px;
    padding: 11px 14px
}

/* Estados y documentos */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .73rem;
    font-weight: 650;
    padding: 5px 10px;
    border-radius: 6px;
    background: #edf0ec;
    color: #647267;
    white-space: normal;
    line-height: 1.35
}

.status-chip:before {
    content: "";
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0
}

.status-chip[data-state=ACTIVA],.status-chip[data-state=ACEPTADO],.status-chip[data-state=CARGADO] {
    background: #e6f2e5;
    color: #347340
}

.status-chip[data-state=PENDIENTE_ACTIVACION],.status-chip[data-state=PENDIENTE] {
    background: #faf1dc;
    color: #846523
}

.status-chip[data-state=CORRECCION_HABILITADA],.status-chip[data-state=RECHAZADO] {
    background: #fcebe5;
    color: #a05237
}

.status-chip[data-state=ARCHIVADA] {
    background: #eef0f2;
    color: #4b5563
}

.status-chip[data-state=ANULADA] {
    background: #fee2e2;
    color: #991b1b
}
.status-chip[data-state=EXCLUIDO] {
    background: #edf0ec;
    color: #647267
}

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

.document-card {
    padding: 23px;
    box-shadow: none;
    overflow-wrap: anywhere
}

.document-card h3 {
    margin: 0;
    font-size: 1rem
}

.document-card .hint {
    font-size: .8rem
}

.document-card .top {
    align-items: flex-start;
    margin-bottom: 14px
}

.document-card .doc-mark {
    display: grid;
    place-items: center;
    background: var(--tint);
    color: var(--green);
    width: 38px;
    height: 42px;
    border-radius: 7px;
    font-weight: 700;
    font-size: .68rem;
    flex-shrink: 0
}

.document-card.uploaded {
    border-top: 3px solid #70a760
}

.document-card form {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 18px
}

.document-card label {
    font-size: .78rem
}

.document-summary {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    background: var(--tint);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px
}

.document-summary h2 {
    margin-bottom: 5px
}

.document-summary p {
    font-size: .85rem;
    color: var(--muted)
}

.student-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 15px;
    font-size: .9rem
}

.student-summary>span {
    color: var(--muted)
}

.student-summary strong {
    color: var(--ink)
}

/* Panel de funcionarios */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 244px;
    background: var(--green-deep);
    color: #d9e9dd;
    display: flex;
    flex-direction: column;
    padding: 30px 22px;
    z-index: 10
}

.sidebar .brand {
    color: white
}

.sidebar .brand small {
    color: #b5cebd
}

.sidebar .brand img {
    width: 44px;
    height: 44px
}

.nav-caption {
    font-size: .62rem;
    letter-spacing: .15em;
    color: #9abcaa;
    margin: 48px 12px 15px
}

.sidebar nav {
    display: grid;
    gap: 7px
}

.sidebar nav a {
    color: #c4ddce;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: .9rem
}

.sidebar nav a span {
    font-size: 1.25rem;
    width: 22px;
    text-align: center
}

.sidebar nav a:hover {
    background: #ffffff0d
}

.sidebar nav a[aria-current=page] {
    background: #e3f0ce;
    color: #184c31;
    font-weight: 650
}

.sidebar-school {
    margin-top: auto;
    padding: 24px 12px 0;
    border-top: 1px solid #ffffff20;
    font-size: .82rem;
    line-height: 1.7;
    color: #d9e8df
}

.sidebar-school span {
    display: block;
    color: #a7c4b3;
    font-size: .73rem
}

.staff-app {
    padding-left: 244px
}

.staff-app .site-header {
    height: 82px;
    padding: 0 36px
}

.staff-app main {
    width: calc(100% - 72px);
    max-width: 1280px;
    margin-top: 32px
}

.staff-app .site-footer {
    width: calc(100% - 72px)
}

.header-context,.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: .84rem
}

.header-context>span {
    color: #819087
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4eedf;
    color: var(--green-dark);
    display: grid;
    place-items: center;
    font-weight: 700
}

.user-name {
    font-size: .81rem;
    font-weight: 650
}

.user-name small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 400
}

.user-menu button {
    margin: 0
}

.staff-app main>section.card {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none
}

.staff-app main>section>.section {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin-top: 0
}

.staff-app main>section>.top {
    padding-bottom: 12px
}

.staff-app main>section>.section .grid p {
    font-size: .9rem
}

.staff-app main>section>.section .grid p strong {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 600
}

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

.stat-card {
    padding: 20px 22px;
    position: relative;
    border-top: 3px solid #a6b9a6
}

.stat-card:nth-child(2) {
    border-top-color: #d4b464
}

.stat-card:nth-child(3) {
    border-top-color: #c48870
}

.stat-card:nth-child(4) {
    border-top-color: var(--green)
}

.stat-card strong {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500
}

.stat-card p {
    font-size: 2rem;
    letter-spacing: -.04em;
    font-weight: 650;
    margin: 6px 0 0
}

.filter-panel .grid {
    grid-template-columns: 1.5fr repeat(4,minmax(0,1fr));
    gap: 14px
}

.filter-panel label {
    font-size: .76rem
}

.filter-panel select,.filter-panel input {
    font-size: .85rem
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px
}

.filter-actions .button,.filter-actions button {
    margin-top: 0
}

.filter-actions .export-button {
    margin-left: auto
}

.enrollment-list {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.list-title {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    font-weight: 650
}

.enrollment-row {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 15px
}

.enrollment-row:last-child {
    border-bottom: 0
}

.enrollment-row:hover {
    background: #fafcf8
}

.enrollment-info {
    flex: 1;
    min-width: 0
}

.enrollment-info strong {
    font-size: .93rem
}

.enrollment-info p {
    font-size: .78rem;
    color: var(--muted);
    margin: 4px 0 0
}

.enrollment-row .button {
    margin: 0;
    font-size: .8rem;
    min-height: 38px;
    padding: 9px 14px
}

.enrollment-row .status-chip {
    max-width: 170px
}

.empty-state {
    padding: 42px 24px;
    text-align: center;
    color: var(--muted)
}

.dashboard-banner {
    padding: 34px;
    background: var(--green-dark);
    color: white;
    border-radius: 18px;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center
}

.dashboard-banner .eyebrow {
    color: #bfdf9e
}

.dashboard-banner h1 {
    font-size: 2.2rem
}

.dashboard-banner p {
    color: #cbe0d2;
    max-width: 560px;
    font-size: .92rem
}

.dashboard-banner img {
    width: 104px;
    height: 104px;
    padding: 6px;
    background: white;
    border-radius: 50%
}

.dashboard-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.dashboard-card {
    padding: 30px
}

.dashboard-card h2 {
    margin-top: 20px
}

.dashboard-card p {
    font-size: .9rem;
    color: var(--muted)
}

.dashboard-card .entry-icon {
    width: 46px;
    height: 46px
}

.workflow-note {
    padding: 22px;
    background: #eaf0e3;
    border: 1px solid #d5e1c9;
    border-radius: 12px;
    font-size: .86rem;
    color: #4f6744
}

nav[role=navigation] svg {
    width: 20px;
    height: 20px
}

nav[role=navigation] a,nav[role=navigation] span[aria-current] {
    display: inline-flex;
    padding: 6px 10px
}

nav[role=navigation]>div {
    margin-top: 15px
}

/* Dise?o adaptable */
@media(min-width:1500px) {
    .form-body .grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
}

@media(max-width:1100px) {
    .sidebar {
        width: 208px;
        padding: 25px 16px
    }
    .staff-app {
        padding-left: 208px
    }
    .staff-app main,.staff-app .site-footer {
        width: calc(100% - 40px)
    }
    .staff-app .site-header {
        padding: 0 20px
    }
    .filter-panel .grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
    .welcome-story {
        padding: 34px
    }
    .entry-card {
        padding: 25px
    }
    .form-layout {
        grid-template-columns: 175px minmax(0,1fr);
        gap: 20px
    }
    .form-index a {
        font-size: .78rem
    }
    .stat-card {
        padding: 18px
    }
    .enrollment-row {
        flex-wrap: wrap
    }
    .enrollment-row .status-chip {
        margin-left: 51px
    }
}

@media(max-width:760px) {
    .site-header {
        padding: 0 20px;
        height: 80px;
        gap: 12px
    }
    .brand img {
        width: 40px;
        height: 40px
    }
    .brand strong {
        font-size: 1.25rem
    }
    .brand small {
        font-size: .62rem;
        max-width: 180px
    }
    .header-link {
        font-size: .74rem;
        gap: 6px
    }
    .header-link span {
        display: none
    }
    main {
        width: calc(100% - 32px);
        margin: 24px auto 40px
    }
    .site-footer {
        width: calc(100% - 40px);
        flex-direction: column;
        gap: 5px
    }
    .welcome-layout {
        grid-template-columns: 1fr;
        gap: 22px
    }
    .welcome-story {
        min-height: 0;
        padding: 26px
    }
    .welcome-story .story-bottom {
        display: none
    }
    .welcome-story .story-logo {
        display: none
    }
    .welcome-story h1 {
        font-size: 2.15rem;
        max-width: 450px;
        margin: 10px 0 18px
    }
    .story-logo {
        width: 66px;
        height: 66px;
        margin-bottom: 22px
    }
    .story-bottom {
        padding-top: 28px
    }
    .journey {
        gap: 14px
    }
    .entry-card .grid {
        grid-template-columns: 1fr 1fr
    }
    .login-layout {
        margin: 0
    }
    .login-layout .welcome-story {
        min-height: 0
    }
    .login-layout .story-bottom {
        display: none
    }
    .login-card {
        padding: 28px
    }
    .card {
        padding: 22px
    }
    .form-layout {
        grid-template-columns: minmax(0,1fr)
    }
    .form-index {
        position: static
    }
    .form-index .eyebrow,.form-index .help-note {
        display: none
    }
    .form-index nav {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 8px
    }
    .form-index a {
        white-space: nowrap;
        background: white;
        border: 1px solid var(--line);
        padding: 9px 11px
    }
    .form-body {
        padding: 0
    }
    .form-body .section {
        padding: 23px
    }
    .form-body .grid {
        gap: 14px
    }
    .form-actions {
        padding: 16px;
        gap: 12px
    }
    .form-actions button {
        flex: 1;
        font-size: .77rem
    }
    .stepper {
        font-size: .72rem;
        gap: 4px
    }
    .stepper li {
        gap: 6px
    }
    .stepper li:not(:last-child):after {
        margin: 0 4px
    }
    .stepper b {
        width: 24px;
        height: 24px
    }
    .document-grid {
        grid-template-columns: 1fr
    }
    .document-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px
    }
    .top {
        flex-wrap: wrap
    }
    .sidebar {
        position: static;
        width: auto;
        padding: 18px 20px;
        gap: 16px
    }
    .sidebar .brand,.nav-caption,.sidebar-school {
        display: none
    }
    .sidebar nav {
        display: flex;
        justify-content: space-between;
        gap: 6px
    }
    .sidebar nav a {
        font-size: .79rem;
        padding: 9px;
        gap: 7px
    }
    .sidebar nav a span {
        font-size: 1rem;
        width: auto
    }
    .staff-app {
        padding-left: 0
    }
    .staff-app .site-header {
        height: 72px
    }
    .staff-app main {
        width: calc(100% - 32px);
        margin-top: 24px
    }
    .header-context {
        gap: 8px;
        font-size: .78rem
    }
    .user-menu {
        gap: 8px
    }
    .user-name {
        max-width: 125px;
        overflow-wrap: anywhere
    }
    .stat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px
    }
    .stat-card {
        padding: 18px
    }
    .filter-panel .grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .dashboard-links {
        grid-template-columns: 1fr
    }
    .dashboard-banner {
        padding: 28px
    }
    .dashboard-banner h1 {
        font-size: 1.8rem
    }
    .dashboard-banner img {
        width: 65px;
        height: 65px;
        align-self: flex-start
    }
    .enrollment-row {
        padding: 18px
    }
    .staff-app main>section>.section {
        padding: 20px
    }
    .staff-app main>section>.section .card {
        padding: 18px
    }
    .enrollment-row .status-chip {
        margin-left: 0
    }
    .form-body .check-row {
        font-size: .82rem
    }
}

@media(max-width:430px) {
    .brand small {
        max-width: 145px;
        font-size: .59rem
    }
    .header-link {
        max-width: 80px;
        text-align: right
    }
    .entry-card .grid,.form-body .grid {
        grid-template-columns: 1fr
    }
    .form-body .section {
        padding: 20px
    }
    .stepper {
        font-size: .68rem
    }
    .stepper li {
        align-items: flex-start
    }
    .stepper li:not(:last-child):after {
        display: none
    }
    .form-actions__buttons {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch
    }
    .form-actions__buttons>form,.form-actions__buttons>.button {
        width: 100%
    }
    .form-actions__buttons button {
        width: 100%
    }
    .dashboard-banner img {
        display: none
    }
    .user-name {
        display: none
    }
    .filter-panel .grid {
        grid-template-columns: 1fr
    }
    .filter-actions .export-button {
        margin-left: 0
    }
    .enrollment-row .avatar {
        display: none
    }
    .enrollment-info {
        flex-basis: 100%
    }
    .welcome-story h1 {
        font-size: 2.25rem
    }
    .entry-card {
        padding: 23px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto!important;
        transition: none!important
    }
}
/* RevisiÃ³n compacta de matrÃ­cula */
.review-overview {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--tint)
}

.review-overview div {
    display: grid;
    gap: 3px;
    min-width: 0
}

.review-overview span,.review-field dt,.review-family-card dt {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase
}

.review-overview strong {
    font-size: .86rem;
    overflow-wrap: anywhere
}

.review-section {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff
}

.review-section h2 {
    margin: 0 0 14px;
    font-size: 1rem
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
    margin: 0
}

.review-field {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f7f9f5
}

.review-field-wide {
    grid-column: span 2
}

.review-field dd,.review-family-card dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 550;
    line-height: 1.35;
    overflow-wrap: anywhere
}

.review-family-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px
}

.review-family-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfcfa
}

.review-family-card h3 {
    margin: 0 0 8px;
    font-size: .9rem
}

.review-family-card dl {
    margin: 0
}

.review-family-card dl>div {
    padding: 7px 0;
    border-top: 1px solid #e8ede6
}

.review-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem
}

.review-table th,.review-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left
}

.review-table th {
    color: var(--muted);
    background: #f4f7f2;
    font-size: .7rem;
    letter-spacing: .035em;
    text-transform: uppercase
}

.review-table tbody tr:last-child td {
    border-bottom: 0
}


@media(max-width:1100px) {
    .review-grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
    .review-family-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:760px) {
    .review-overview,.review-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:430px) {
    .review-overview,.review-grid {
        grid-template-columns: 1fr
    }
    .review-field-wide {
        grid-column: auto
    }
    .review-section {
        padding: 14px
    }
}
/* Tabla compacta de documentos */
.document-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px
}

.document-section-heading h2 {
    margin-bottom: 4px
}

.document-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 11px
}

.document-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: .8rem
}

.document-table th,.document-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle
}

.document-table th {
    color: var(--muted);
    background: #f4f7f2;
    font-size: .68rem;
    letter-spacing: .035em;
    text-transform: uppercase
}

.document-file-link {
    display: grid;
    gap: 2px;
    color: var(--ink);
    text-decoration: none
}

.document-file-link:hover strong {
    color: var(--green)
}

.document-file-link span {
    max-width: 260px;
    color: var(--muted);
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.document-row-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap
}

.document-row-actions a {
    color: var(--green-dark);
    font-size: .75rem;
    font-weight: 650
}

.document-row-actions form {
    margin: 0
}

.document-action-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font-size: .75rem;
    font-weight: 650;
    text-decoration: underline;
    box-shadow: none
}
.document-action-button:hover {
    background: transparent;
    color: var(--green);
    box-shadow: none;
    transform: none
}

.document-note-row td {
    padding-top: 7px;
    padding-bottom: 7px;
    color: var(--muted);
    background: #fbf7ef
}

.document-select-column,.document-select-cell {
    width: 74px;
    text-align: center!important
}

.document-select-cell label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.document-select-cell input[type=checkbox] {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--green)
}

.document-batch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px
}

.document-batch-actions .hint {
    margin: 0
}

.document-table tbody:last-child tr:last-child td {
    border-bottom: 0
}

@media(max-width:760px) {
    .document-section-heading {
        align-items: flex-start;
        flex-direction: column
    }
    .document-batch-actions {
        align-items: stretch;
        flex-direction: column
    }

    .document-batch-actions button {
        width: 100%
    }
}
/* Estados del proceso y mensajes de acciÃ³n */
.status-chip[data-state=BORRADOR] {
    background: #e9f0f7;
    color: #41647d
}

.state-caption {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .84rem
}

.state-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid #cfded5;
    border-left: 5px solid #52748b;
    border-radius: 14px;
    background: #f5f8fb
}

.state-panel h2,.state-panel p {
    margin-bottom: 0
}

.state-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px
}

.state-panel--pending {
    border-left-color: #b18528;
    background: #fffaf0
}

.state-panel--warning {
    border-left-color: #ba5a38;
    background: #fff7f2
}

.state-panel--success {
    border-left-color: var(--green);
    background: #f0f8f2
}

.state-observation {
    padding: 14px 16px;
    border: 1px solid #e5c7b9;
    border-radius: 10px;
    background: #fff
}

.state-observation strong {
    display: block;
    margin-bottom: 4px;
    color: #8d442e
}

.state-next-step {
    padding-top: 12px;
    border-top: 1px solid currentColor
}

.document-file-meta {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .8rem;
    overflow-wrap: anywhere
}

.document-card[data-document-state=ACEPTADO] {
    border-top: 3px solid #4d9359
}

.document-card[data-document-state=RECHAZADO] {
    border-top: 3px solid #c26948;
    background: #fffaf7
}

.activation-summary {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 14px 0
}

.activation-summary div {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--tint)
}

.activation-summary strong {
    color: var(--green-dark);
    font-size: 1.5rem;
    line-height: 1
}

.activation-summary span {
    color: var(--muted);
    font-size: .78rem
}

@media(max-width:600px) {
    .state-panel__heading {
        flex-direction: column
    }

    .activation-summary {
        grid-template-columns: 1fr
    }
}

/* Accesibilidad y adaptaciÃ³n responsive */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

.review-table-wrap,.document-table-wrap,.form-index nav {
    max-width: 100%;
    scrollbar-gutter: stable
}

.review-table-wrap:focus-visible,.document-table-wrap:focus-visible,.form-index nav:focus-visible {
    outline: 3px solid #b2ce58;
    outline-offset: 3px
}

@media(max-width:760px) {
    .sidebar nav a,.document-row-actions a {
        min-height: 44px
    }
    .document-row-actions a {
        display: inline-flex;
        align-items: center
    }
}

@media(max-width:430px) {
    .filter-actions {
        align-items: stretch;
        flex-direction: column
    }
    .filter-actions>* {
        width: 100%
    }
}

@media(forced-colors:active) {
    .status-chip,.notice,.state-panel {
        border: 1px solid CanvasText
    }
}
