/* ==========================================================================
   Sistema de Tutorías · Facultad de Deportes
   Bootstrap 5.3 + Font Awesome 6 · Tema institucional UABC
   ========================================================================== */

:root {
    --uabc-green: #006633;
    --uabc-green-dark: #004225;
    --uabc-green-soft: #e8f3ed;
    --uabc-gold: #f6bb09;
    --uabc-ink: #16251f;
    --uabc-muted: #5f6f67;
    --uabc-line: #e3e9e5;
    --uabc-bg: #f4f7f5;
    --uabc-surface: #ffffff;
    --uabc-danger: #c93b4a;
    --uabc-radius: 16px;
    --uabc-radius-sm: 10px;
    --uabc-shadow: 0 10px 30px rgba(15, 45, 32, .07);
    --uabc-shadow-lg: 0 24px 60px rgba(15, 45, 32, .14);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--uabc-ink);
    --bs-body-bg: var(--uabc-bg);
    --bs-border-color: var(--uabc-line);
    --bs-primary: var(--uabc-green);
    --bs-link-color: var(--uabc-green);
    --bs-link-hover-color: var(--uabc-green-dark);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-body-font-family);
    color: var(--uabc-ink);
    background: var(--uabc-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-text strong, .display-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -.02em;
    color: var(--uabc-ink);
}

a { text-decoration: none; }

.btn { border-radius: 10px; font-weight: 600; padding: .65rem 1.15rem; }
.btn-lg { padding: .85rem 1.5rem; border-radius: 12px; }
.btn-sm { padding: .4rem .8rem; border-radius: 8px; }
.btn-uabc { background: var(--uabc-green); border-color: var(--uabc-green); color: #fff; }
.btn-uabc:hover, .btn-uabc:focus { background: var(--uabc-green-dark); border-color: var(--uabc-green-dark); color: #fff; box-shadow: 0 8px 20px rgba(0, 102, 51, .22); }
.btn-outline-uabc { border: 1.5px solid var(--uabc-green); color: var(--uabc-green); background: transparent; }
.btn-outline-uabc:hover { background: var(--uabc-green); color: #fff; }
.btn-light { background: #fff; border-color: var(--uabc-line); }
.btn-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--uabc-line); background: #fff; color: var(--uabc-ink); }
.btn-icon:hover { background: var(--uabc-green-soft); color: var(--uabc-green); }

:focus-visible { outline: 3px solid rgba(0, 102, 51, .28); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--uabc-green);
    margin-bottom: .45rem;
}
.badge-soft {
    display: inline-flex; align-items: center;
    background: var(--uabc-green-soft);
    color: var(--uabc-green-dark);
    border: 1px solid #cfe5d9;
    border-radius: 999px;
    font-size: .74rem; font-weight: 600;
    padding: .32rem .7rem;
    line-height: 1.1;
}
.small-link { color: var(--uabc-green); font-weight: 600; font-size: .84rem; }
.small-link:hover { color: var(--uabc-green-dark); text-decoration: underline; }
.icon-link { color: var(--uabc-green); }
.icon-link:hover { color: var(--uabc-green-dark); }
.avatar-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; border-radius: 50%;
    width: 42px; height: 42px; font-size: .9rem; letter-spacing: .02em;
}
.avatar-sm { width: 34px; height: 34px; font-size: .72rem; }
.avatar-md { width: 54px; height: 54px; font-size: 1rem; }
.avatar-lg { width: 68px; height: 68px; font-size: 1.3rem; }
.avatar-xl { width: 92px; height: 92px; font-size: 1.7rem; }
.bg-uabc { background: var(--uabc-green) !important; }
.text-uabc { color: var(--uabc-green) !important; }
.text-ink { color: var(--uabc-ink) !important; }
.w-fit { width: fit-content; }
.min-w-0 { min-width: 0; }
.sticky-lg-top { top: 96px; z-index: 10; }

/* --------------------------------------------------------------------------
   Estructura privada
   -------------------------------------------------------------------------- */
.app-body { background: var(--uabc-bg); }
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { padding: 1.6rem 2rem 2.2rem; flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; }
.app-footer {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 1rem 2rem; border-top: 1px solid var(--uabc-line);
    color: var(--uabc-muted); font-size: .78rem; background: rgba(255,255,255,.55);
}

.sidebar {
    width: 282px; flex: 0 0 282px;
    background:
        radial-gradient(circle at 20% 0%, rgba(246, 187, 9, .18), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,.06), transparent 40%),
        linear-gradient(165deg, #073d28 0%, #03291b 62%, #021f15 100%);
    color: #fff;
    min-height: 100vh;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    border-right: 1px solid rgba(255,255,255,.06);
    z-index: 1030;
}
.sidebar-brand {
    display: flex; align-items: center; gap: .7rem;
    padding: 1.3rem 1.25rem .9rem;
}
.brand-link, .auth-brand, .navbar-brand {
    display: inline-flex; align-items: center; gap: .7rem; color: inherit;
}
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--uabc-gold), #f9d65b);
    color: #113b28; font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { font-size: .66rem; opacity: .72; font-weight: 500; }
.sidebar .brand-text strong { color: #fff; }
.sidebar .brand-text small { color: rgba(255,255,255,.62); }
.sidebar-cycle {
    margin: .4rem 1.1rem 1rem; padding: .7rem .85rem;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between;
}
.cycle-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.58); }
.cycle-value { font-weight: 700; color: var(--uabc-gold); font-size: .9rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .1rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 5px; }
.nav-heading {
    font-size: .64rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255,255,255,.38); margin: 1.1rem .65rem .35rem;
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    cursor: pointer; user-select: none; border-radius: 6px;
}
.nav-heading:hover { color: rgba(255,255,255,.72); }
.nav-heading:focus-visible { outline: 2px solid var(--uabc-gold); outline-offset: 2px; }
.nav-heading .nav-chevron { font-size: .55rem; opacity: .7; transition: transform .18s ease; }
.nav-heading[aria-expanded="false"] .nav-chevron { transform: rotate(-90deg); }
.nav-group { display: flex; flex-direction: column; }
.nav-group[hidden] { display: none !important; }
.sidebar .nav-link {
    display: flex; align-items: center; gap: .7rem;
    color: rgba(255,255,255,.78);
    font-size: .855rem; font-weight: 500;
    padding: .62rem .7rem;
    border-radius: 9px;
    margin-bottom: .12rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar .nav-link i { width: 18px; text-align: center; font-size: .9rem; opacity: .9; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.sidebar .nav-link.active {
    background: linear-gradient(100deg, rgba(246,187,9,.22), rgba(255,255,255,.07));
    color: #fff;
    box-shadow: inset 3px 0 0 var(--uabc-gold);
}
.sidebar .nav-link.active i { color: var(--uabc-gold); opacity: 1; }
.nav-badge {
    margin-left: auto; background: var(--uabc-gold); color: #1d2a22;
    font-size: .64rem; font-weight: 800; border-radius: 999px;
    min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .35rem;
}
.sidebar-footer {
    padding: 1rem 1.3rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; flex-direction: column; gap: .1rem;
    color: rgba(255,255,255,.45); font-size: .65rem;
}
.sidebar-footer small { color: rgba(255,255,255,.3); font-size: .62rem; }

.topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 2rem;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--uabc-line);
    transition: box-shadow .2s ease;
}
.topbar.is-scrolled { box-shadow: 0 8px 24px rgba(15, 45, 32, .08); }
.topbar-title { min-width: 0; }
.topbar-eyebrow { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--uabc-muted); font-weight: 700; }
.topbar-title h1 { margin: 0; font-size: 1.14rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-button {
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--uabc-ink); background: transparent; border: 1px solid transparent;
    position: relative; transition: .18s ease;
}
.icon-button:hover { background: var(--uabc-green-soft); color: var(--uabc-green); }
.notification-dot {
    position: absolute; top: 2px; right: 1px;
    background: var(--uabc-danger); color: #fff;
    font-size: .56rem; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; padding: 0 3px;
    border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.user-chip {
    display: flex; align-items: center; gap: .6rem;
    background: transparent; border: 1px solid transparent; border-radius: 12px;
    padding: .3rem .45rem; color: var(--uabc-ink);
    transition: .18s ease;
}
.user-chip:hover { background: var(--uabc-green-soft); }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--uabc-line); }
.user-avatar-initials { font-size: .78rem; box-shadow: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.15; max-width: 180px; }
.user-meta strong { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: var(--uabc-muted); font-size: .67rem; }
.user-chip > i { font-size: .65rem; color: var(--uabc-muted); }
.dropdown-menu { border-radius: 12px; padding: .4rem; }
.dropdown-item { border-radius: 8px; font-size: .84rem; padding: .5rem .65rem; }
.dropdown-item:hover { background: var(--uabc-green-soft); color: var(--uabc-green-dark); }

/* --------------------------------------------------------------------------
   Componentes privados
   -------------------------------------------------------------------------- */
.app-alert { border: 0; border-radius: 12px; box-shadow: var(--uabc-shadow); font-size: .88rem; }
.page-heading {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
    margin-bottom: 1.4rem; flex-wrap: wrap;
}
.page-heading h2 { font-size: 1.65rem; margin: 0 0 .2rem; font-weight: 700; }
.page-heading p { margin: 0; color: var(--uabc-muted); font-size: .9rem; max-width: 720px; }
.back-link { display: inline-flex; align-items: center; color: var(--uabc-muted); font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.back-link:hover { color: var(--uabc-green); }

.panel {
    background: var(--uabc-surface);
    border: 1px solid var(--uabc-line);
    border-radius: var(--uabc-radius);
    box-shadow: var(--uabc-shadow);
    padding: 1.35rem 1.4rem;
}
.panel-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.1rem; flex-wrap: wrap;
}
.panel-head h3 { font-size: 1.08rem; margin: 0; font-weight: 700; }
.panel-head .eyebrow { margin-bottom: .15rem; }
.panel-head > .btn, .panel-head > .badge-soft, .panel-head > .text-muted { flex-shrink: 0; }
.section-subtitle { font-size: 1rem; font-weight: 700; }

/* Bloque de tutoría dentro del panel de coordinación / administración */
.mi-tutoria-section { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--uabc-line); }
.mi-tutoria-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mi-tutoria-heading h2 { font-size: 1.5rem; margin: 0 0 .2rem; }
.mi-tutoria-heading p { color: var(--uabc-muted); font-size: .84rem; margin: 0; }
.mi-tutoria-banner {
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    background: linear-gradient(135deg, #04522f, #02341f);
    color: #fff; border-radius: 16px; padding: 1.1rem 1.3rem;
    box-shadow: var(--uabc-shadow); margin-bottom: 1rem;
}
.mi-tutoria-person { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1 1 280px; }
.mi-tutoria-person img, .mi-tutoria-person .avatar-fallback { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 2px solid rgba(255,255,255,.25); flex: 0 0 auto; }
.mi-tutoria-person .eyebrow { color: var(--uabc-gold); margin-bottom: .05rem; }
.mi-tutoria-person strong { display: block; font-size: 1rem; color: #fff; }
.mi-tutoria-person small { display: block; font-size: .7rem; color: rgba(255,255,255,.7); }
.mi-tutoria-metrics { display: flex; gap: 1.2rem; }
.mi-tutoria-metrics span { text-align: center; }
.mi-tutoria-metrics strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.2rem; color: var(--uabc-gold); line-height: 1; }
.mi-tutoria-metrics small { font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); }
.mi-tutoria-buttons { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.mi-tutoria-buttons .btn { padding: .5rem .8rem; font-size: .76rem; }
.mi-tutoria-buttons .btn-outline-uabc { border-color: rgba(255,255,255,.55); color: #fff; }
.mi-tutoria-buttons .btn-outline-uabc:hover { background: #fff; color: var(--uabc-green); }

.welcome-card {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    background:
        radial-gradient(circle at 92% 10%, rgba(246,187,9,.24), transparent 28%),
        linear-gradient(135deg, #04522f 0%, #02341f 100%);
    color: #fff; border-radius: 20px; padding: 1.6rem 1.8rem;
    box-shadow: var(--uabc-shadow-lg);
    position: relative; overflow: hidden;
}
.welcome-card::after {
    content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1); right: -70px; bottom: -110px;
}
.welcome-main { display: flex; align-items: center; gap: 1.2rem; min-width: 0; position: relative; z-index: 1; }
.welcome-avatar img, .welcome-avatar .avatar-fallback { width: 92px; height: 104px; border-radius: 16px; object-fit: cover; border: 3px solid rgba(255,255,255,.22); }
.welcome-copy .eyebrow { color: var(--uabc-gold); }
.welcome-copy h2 { color: #fff; font-size: 1.75rem; margin: 0 0 .25rem; }
.welcome-copy p { color: rgba(255,255,255,.72); margin: 0 0 .7rem; font-size: .88rem; }
.welcome-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; font-size: .76rem; color: rgba(255,255,255,.8); }
.welcome-meta .badge-soft { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: #fff; }
.welcome-actions { display: flex; flex-direction: column; gap: .5rem; position: relative; z-index: 1; flex-shrink: 0; }
.welcome-actions .btn-outline-uabc { border-color: rgba(255,255,255,.55); color: #fff; }
.welcome-actions .btn-outline-uabc:hover { background: #fff; color: var(--uabc-green); }
.welcome-tutor .welcome-avatar img { width: 86px; height: 96px; }
.welcome-admin .welcome-copy h2 { font-size: 1.6rem; }
.welcome-progress { text-align: center; position: relative; z-index: 1; flex-shrink: 0; }
.welcome-progress small { color: rgba(255,255,255,.65); font-size: .68rem; display: block; margin-top: .5rem; }

.progress-ring {
    --value: 0;
    width: 116px; height: 116px; border-radius: 50%;
    background: conic-gradient(var(--uabc-gold) calc(var(--value) * 1%), rgba(255,255,255,.16) 0);
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
}
.progress-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #063b25; }
.progress-ring-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.progress-ring-inner strong { font-size: 1.4rem; color: #fff; font-family: 'Outfit', sans-serif; }
.progress-ring-inner span { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.progress-ring-lg { width: 158px; height: 158px; }
.progress-ring-lg::before { inset: 10px; background: #fff; }
.progress-ring-lg .progress-ring-inner strong { color: var(--uabc-green); font-size: 2rem; }
.progress-ring-lg .progress-ring-inner span { color: var(--uabc-muted); }

.stat-card {
    background: var(--uabc-surface); border: 1px solid var(--uabc-line);
    border-radius: 14px; box-shadow: var(--uabc-shadow);
    padding: 1.1rem 1.15rem; display: flex; gap: .9rem; align-items: flex-start;
    height: 100%; position: relative; overflow: hidden;
}
.stat-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: currentColor; opacity: .05; }
.stat-icon {
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--uabc-green-soft); color: var(--uabc-green); font-size: 1rem;
}
.stat-green .stat-icon { background: #e5f2ea; color: #0f7b48; }
.stat-blue .stat-icon { background: #e8f0fe; color: #1a68d6; }
.stat-amber .stat-icon { background: #fff5d8; color: #a87900; }
.stat-rose .stat-icon { background: #fde9ec; color: #b73346; }
.stat-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--uabc-muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 1.55rem; font-family: 'Outfit', sans-serif; line-height: 1.1; margin: .15rem 0; }
.stat-card small { color: var(--uabc-muted); font-size: .7rem; }

.credit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.credit-item { background: #f7faf8; border: 1px solid var(--uabc-line); border-radius: 12px; padding: .8rem .9rem; }
.credit-item span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--uabc-muted); font-weight: 700; }
.credit-item strong { display: inline-block; font-size: 1.3rem; font-family: 'Outfit', sans-serif; }
.credit-item small { color: var(--uabc-muted); font-size: .7rem; }
.credit-total { background: var(--uabc-green); border-color: var(--uabc-green); }
.credit-total span, .credit-total small { color: rgba(255,255,255,.86); }
.credit-total strong { color: #fff; }

.app-progress { height: 8px; border-radius: 999px; background: #eaf0ec; }
.app-progress .progress-bar { background: linear-gradient(90deg, var(--uabc-green), #19a866); border-radius: 999px; }
.app-progress .bg-warning { background: var(--uabc-gold) !important; }
.app-progress .bg-info { background: #2f9ed6 !important; }
.app-progress .bg-danger { background: var(--uabc-danger) !important; }

.requirements { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.requirement { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border: 1px solid var(--uabc-line); border-radius: 10px; background: #fbfcfb; }
.requirement .req-icon { color: #b8c4bd; font-size: 1rem; }
.requirement strong { display: block; font-size: .76rem; }
.requirement small { color: var(--uabc-muted); font-size: .68rem; }
.requirement.done { background: #f1faf5; border-color: #cbe8d9; }
.requirement.done .req-icon { color: var(--uabc-green); }
.requirement-lg { padding: .8rem .9rem; }
.requirement-list { display: grid; gap: .6rem; }

.app-table { --bs-table-bg: transparent; font-size: .82rem; }
.app-table > :not(caption) > * > * { padding: .72rem .65rem; border-bottom-color: #edf1ee; vertical-align: middle; }
.app-table thead th { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--uabc-muted); font-weight: 700; border-bottom: 1px solid var(--uabc-line); white-space: nowrap; }
.app-table tbody tr:hover { background: #f9fbfa; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .6rem .7rem; margin-bottom: .9rem; border: 1px solid var(--uabc-line); border-radius: 10px; background: #f8faf9; }
.bulk-bar-info { font-size: .76rem; color: var(--uabc-muted); }
.bulk-bar-info strong { color: var(--uabc-ink); font-size: .95rem; }
.bulk-check { width: 38px; text-align: center; }
.bulk-check .form-check-input { cursor: pointer; }
.bulk-check .form-check-input:disabled { cursor: not-allowed; opacity: .4; }
.table-more { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; color: var(--uabc-green); margin-top: .8rem; }
.table-more:hover { color: var(--uabc-green-dark); }
.person-cell { display: flex; align-items: center; gap: .6rem; min-width: 180px; }
.person-cell img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.person-cell strong { display: block; font-size: .76rem; line-height: 1.2; }
.person-cell small { color: var(--uabc-muted); font-size: .67rem; }
.row-failed { background: #fff8f8; }
.row-failed td { color: #8d2c38; }
.stage-row td { background: var(--uabc-green-soft) !important; color: var(--uabc-green-dark) !important; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .5rem .65rem !important; }
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: .22rem .5rem; border-radius: 8px; font-weight: 700; font-size: .76rem; }
.grade-ok { background: #e6f6ed; color: #0f7b48; }
.grade-bad { background: #fde9ec; color: #a52a3b; }

.mini-stat { background: #f8faf9; border: 1px solid var(--uabc-line); border-radius: 10px; padding: .65rem .8rem; height: 100%; }
.mini-stat span { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--uabc-muted); font-weight: 700; }
.mini-stat strong { display: block; font-size: 1.1rem; font-family: 'Outfit', sans-serif; }
.mini-stat-green { background: var(--uabc-green-soft); border-color: #cfe5d9; }
.mini-stat-green strong { color: var(--uabc-green-dark); }

.tutor-summary { display: flex; align-items: center; gap: .9rem; }
.tutor-summary img { width: 68px; height: 78px; border-radius: 12px; object-fit: cover; border: 2px solid var(--uabc-green-soft); }
.tutor-summary strong { display: block; font-size: .92rem; }
.tutor-summary span { display: block; color: var(--uabc-muted); font-size: .74rem; }
.tutor-summary small { display: block; color: var(--uabc-muted); font-size: .7rem; margin-top: .1rem; }
.tutor-panel .panel-head { align-items: flex-start; }

.notice-list, .message-list, .task-list { display: flex; flex-direction: column; }
.notice-item { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .1rem; border-bottom: 1px solid #edf1ee; color: var(--uabc-ink); position: relative; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { color: var(--uabc-green-dark); }
.notice-item strong { display: block; font-size: .78rem; line-height: 1.3; }
.notice-item small { color: var(--uabc-muted); font-size: .67rem; }
.notice-item p { color: var(--uabc-muted); font-size: .74rem; }
.notice-item-block { align-items: flex-start; }
.notice-dot { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .74rem; flex: 0 0 auto; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uabc-danger); display: inline-block; flex: 0 0 auto; margin-top: .35rem; }
.quick-actions { display: flex; flex-direction: column; gap: .55rem; }
.quick-actions a { display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border: 1px solid var(--uabc-line); border-radius: 10px; color: var(--uabc-ink); background: #fff; transition: .18s ease; }
.quick-actions a:hover { border-color: #bfdccd; background: #f8fcfa; transform: translateX(2px); }
.quick-actions a > span { width: 34px; height: 34px; border-radius: 9px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.quick-actions a > div { flex: 1; min-width: 0; }
.quick-actions strong { display: block; font-size: .78rem; }
.quick-actions small { color: var(--uabc-muted); font-size: .67rem; }
.quick-actions a > i { color: #b6c3bb; font-size: .7rem; }

.chart-box { position: relative; height: 300px; }
.chart-box-sm { height: 230px; }

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */
.form-panel .panel-head { border-bottom: 1px solid var(--uabc-line); padding-bottom: .9rem; }
.form-label { font-size: .76rem; font-weight: 600; color: #3f5149; margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 9px; border-color: #d9e3dd; font-size: .84rem;
    padding: .58rem .75rem; color: var(--uabc-ink);
}
.form-control:focus, .form-select:focus { border-color: #7fb89b; box-shadow: 0 0 0 .2rem rgba(0, 102, 51, .1); }
.form-control:disabled, .form-select:disabled { background: #f4f7f5; color: #67776f; }
.form-text { font-size: .68rem; color: var(--uabc-muted); }
.form-section-title { font-size: .8rem; font-weight: 700; color: var(--uabc-green-dark); text-transform: uppercase; letter-spacing: .06em; margin: .2rem 0; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--uabc-line); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #8c9c94; font-size: .84rem; z-index: 2; }
.input-icon .form-control { padding-left: 2.25rem; }
.input-icon .form-control[type=password], .input-icon .form-control.has-toggle { padding-right: 2.5rem; }
.input-icon-sm .form-control { padding: .45rem .65rem .45rem 2.05rem; font-size: .8rem; }
.input-icon-sm > i { left: .7rem; font-size: .76rem; }
.password-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8c9c94; padding: .35rem; }
.password-toggle:hover { color: var(--uabc-green); }
.form-check-input:checked { background-color: var(--uabc-green); border-color: var(--uabc-green); }
.form-check-label { font-size: .8rem; }
.code-area { font-family: 'Consolas', 'Courier New', monospace; font-size: .78rem; line-height: 1.55; }

.filter-panel { padding: 1rem 1.2rem; }

/* --------------------------------------------------------------------------
   Perfil / alumno
   -------------------------------------------------------------------------- */
.profile-panel { text-align: center; }
.profile-avatar img { width: 110px; height: 126px; border-radius: 14px; object-fit: cover; border: 3px solid var(--uabc-green-soft); }
.profile-avatar .avatar-fallback { width: 110px; height: 126px; border-radius: 14px; font-size: 2rem; }
.profile-panel h3 { font-size: 1.15rem; margin: 1rem 0 .15rem; }
.profile-facts { display: grid; gap: .6rem; text-align: left; }
.profile-facts > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed #e6ece8; padding-bottom: .5rem; }
.profile-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-facts span { color: var(--uabc-muted); font-size: .72rem; }
.profile-facts strong { font-size: .76rem; text-align: right; }

.student-strip { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--uabc-line); }
.student-strip img { width: 54px; height: 62px; border-radius: 10px; object-fit: cover; }
.student-strip strong { display: block; font-size: .94rem; }
.student-strip span { display: block; color: var(--uabc-muted); font-size: .72rem; }

.big-progress { display: flex; align-items: center; gap: 1.5rem; }
.big-progress-info { flex: 1; }
.big-progress-info h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.credit-card { border: 1px solid var(--uabc-line); border-radius: 11px; padding: .8rem .9rem; background: #fbfcfb; }
.credit-card span { font-size: .7rem; color: var(--uabc-muted); font-weight: 600; }
.credit-card strong { font-size: .78rem; }
.credit-card small { display: block; color: var(--uabc-muted); font-size: .67rem; margin-top: .35rem; }

.schedule-grid { min-width: 860px; }
.schedule-summary { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.schedule-group-list { margin-top: .5rem; }
.schedule-grid thead th { background: #f3f7f5; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--uabc-muted); text-align: center; }
.schedule-grid td, .schedule-grid th { border-color: #e8eeea; vertical-align: middle; }
.schedule-grid .time-col { width: 76px; text-align: center; font-size: .72rem; color: var(--uabc-muted); background: #fafcfb; }
.schedule-block {
    background: #fff;
    background: color-mix(in srgb, var(--subject-color, var(--uabc-green)) 7%, #fff);
    border: 1px solid var(--uabc-line);
    border-left: 4px solid var(--subject-color, var(--uabc-green));
    border-radius: 7px;
    padding: .4rem .5rem;
    margin-bottom: .3rem;
    box-shadow: 0 2px 5px rgba(15, 45, 32, .04);
}
.schedule-block strong { display: block; font-size: .68rem; line-height: 1.25; color: var(--uabc-ink); }
.schedule-block small { display: block; font-size: .62rem; color: #4a6658; }
.schedule-block span { display: inline-block; font-size: .58rem; color: #3f5149; margin-top: .15rem; }
.schedule-block.schedule-conflict { outline: 2px solid var(--uabc-danger); outline-offset: 1px; }
.schedule-block .schedule-conflict-note { color: var(--uabc-danger) !important; font-weight: 700; }
.schedule-color-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.schedule-empty { display: block; text-align: center; color: #c3cec8; }
.schedule-table th { background: #f3f7f5; font-size: .68rem; text-transform: uppercase; color: var(--uabc-muted); text-align: center; }
.schedule-table td { text-align: center; font-size: .76rem; }

.schedule-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.schedule-card { border: 1px solid var(--uabc-line); border-radius: 10px; padding: .7rem .5rem; text-align: center; background: #fbfcfb; }
.schedule-card span { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: var(--uabc-muted); font-weight: 700; }
.schedule-card strong { display: block; font-size: .78rem; margin-top: .2rem; color: var(--uabc-green-dark); }
.schedule-card-empty { background: #fafafa; }
.schedule-card-empty strong { color: #aab8b1; font-weight: 500; }

.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.tip { display: flex; gap: .6rem; border: 1px solid var(--uabc-line); border-radius: 10px; padding: .7rem; }
.tip > span { width: 30px; height: 30px; border-radius: 8px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tip p { font-size: .74rem; margin: 0; color: var(--uabc-muted); }

.tutor-profile-card { padding: 0; overflow: hidden; text-align: center; }
.tutor-profile-cover { height: 96px; background: linear-gradient(135deg, #04522f, #0a7b4b); position: relative; }
.tutor-profile-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(246,187,9,.35), transparent 45%); }
.tutor-profile-body { padding: 0 1.3rem 1.3rem; }
.tutor-profile-photo { width: 110px; height: 126px; border-radius: 16px; object-fit: cover; border: 4px solid #fff; margin-top: -58px; box-shadow: 0 8px 20px rgba(0,0,0,.12); position: relative;}
.tutor-profile-body h3 { font-size: 1.2rem; margin: .8rem 0 .1rem; }
.tutor-profile-body > p { margin-bottom: .45rem; }
.tutor-contact { display: grid; gap: .55rem; text-align: left; }
.tutor-contact a { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border: 1px solid var(--uabc-line); border-radius: 9px; color: var(--uabc-ink); }
.tutor-contact a:hover { background: #f8fcfa; border-color: #c8e2d5; }
.tutor-contact a > span { width: 30px; height: 30px; border-radius: 8px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tutor-contact small { display: block; color: var(--uabc-muted); font-size: .64rem; }
.tutor-contact strong { display: block; font-size: .72rem; word-break: break-word; }

/* --------------------------------------------------------------------------
   Mensajes
   -------------------------------------------------------------------------- */
.message-row { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .2rem; border-bottom: 1px solid #edf1ee; color: var(--uabc-ink); }
.message-row:last-child { border-bottom: 0; }
.message-row:hover { background: #fafcfb; }
.message-row.unread { background: #f7fcf9; }
.message-row.unread strong { color: var(--uabc-green-dark); }
.message-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: .8rem; }
.message-icon.received { background: #e8f0fe; color: #1a68d6; }
.message-icon.sent { background: var(--uabc-green-soft); color: var(--uabc-green); }
.message-main { flex: 1; min-width: 0; }
.message-main strong { font-size: .78rem; }
.message-main p { margin: .15rem 0 .1rem; color: var(--uabc-muted); font-size: .72rem; }
.message-main span { color: var(--uabc-muted); font-size: .66rem; }
.message-main small { font-size: .65rem; }
.recipient-card { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border: 1px solid var(--uabc-line); border-radius: 10px; background: #f8fcfa; }
.recipient-card img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.recipient-card small, .recipient-card span { display: block; font-size: .66rem; color: var(--uabc-muted); }
.recipient-card strong { display: block; font-size: .78rem; }
.recipient-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--uabc-line); border-radius: 9px; padding: .35rem; }
.recipient-item { display: flex; align-items: center; gap: .5rem; padding: .4rem .45rem; border-radius: 7px; cursor: pointer; font-size: .74rem; }
.recipient-item:hover { background: #f3f9f6; }
.recipient-item small { color: var(--uabc-muted); font-size: .64rem; }

.message-detail-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.message-detail-head strong { display: block; font-size: .85rem; }
.message-detail-head span { display: block; color: var(--uabc-muted); font-size: .7rem; }
.message-bubble { background: #f8faf9; border: 1px solid var(--uabc-line); border-radius: 12px; padding: .9rem 1rem; font-size: .82rem; line-height: 1.65; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-reply { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--uabc-line); }
.message-reply-head { font-size: .74rem; font-weight: 700; color: var(--uabc-green-dark); margin-bottom: .5rem; }
.message-reply .message-bubble { background: #f1faf5; border-color: #cfe8da; }

/* --------------------------------------------------------------------------
   Avisos / justificantes / encuestas
   -------------------------------------------------------------------------- */
.notice-card { display: block; background: #fff; border: 1px solid var(--uabc-line); border-radius: 14px; padding: 1.1rem 1.15rem; height: 100%; color: var(--uabc-ink); box-shadow: var(--uabc-shadow); transition: .2s ease; }
.notice-card:hover { transform: translateY(-3px); border-color: #c5dfd1; box-shadow: 0 16px 36px rgba(15,45,32,.11); }
.notice-card.unread { border-left: 4px solid var(--uabc-gold); }
.notice-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.notice-type { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.notice-card h3 { font-size: .95rem; margin-bottom: .35rem; line-height: 1.35; }
.notice-card p { color: var(--uabc-muted); font-size: .76rem; margin-bottom: .8rem; }
.notice-card-foot { display: flex; justify-content: space-between; color: var(--uabc-muted); font-size: .68rem; border-top: 1px solid var(--uabc-line); padding-top: .6rem; }
.notice-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.notice-rich { font-size: .88rem; line-height: 1.7; }
.notice-rich p:last-child { margin-bottom: 0; }
.notice-rich ul, .notice-rich ol, .message-bubble ul, .message-bubble ol, .rich-text ul, .rich-text ol { margin: .35rem 0 .5rem 1.15rem; }
.notice-rich a, .message-bubble a, .rich-text a { color: var(--uabc-green); text-decoration: underline; }
.rich-text { font-size: .82rem; line-height: 1.65; }
.rich-text p:last-child { margin-bottom: 0; }

/* Summernote · integración con el tema */
.note-editor.note-frame { border-color: var(--uabc-line); border-radius: 10px; overflow: hidden; }
.note-editor.note-frame .note-toolbar { background: #f7faf8; border-color: var(--uabc-line); }
.note-editor.note-frame .note-btn { border-color: transparent; background: transparent; color: #41534a; }
.note-editor.note-frame .note-btn:hover { background: var(--uabc-green-soft); color: var(--uabc-green-dark); }
.note-editor.note-frame .note-editing-area .note-editable { font-size: .86rem; line-height: 1.65; min-height: 140px; }
.note-editor.note-frame .note-statusbar { background: #f7faf8; border-top-color: var(--uabc-line); }
.note-editor.note-frame> .note-statusbar .note-resizebar { border-top-color: var(--uabc-line); }
.note-editor.note-frame.is-invalid { border-color: var(--uabc-danger); box-shadow: 0 0 0 .2rem rgba(201, 59, 74, .12); }
.note-editor .note-editable ul, .note-editor .note-editable ol { margin: .35rem 0 .5rem 1.15rem; }
.note-editor .note-editable a { color: var(--uabc-green); text-decoration: underline; }
.justificante-meter { background: #fffaf0; border: 1px solid #f3e3b9; border-radius: 11px; padding: .8rem .9rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.4rem; }
.detail-grid > div { border-bottom: 1px dashed #e5ebe7; padding-bottom: .5rem; }
.detail-grid span { display: block; color: var(--uabc-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.detail-grid strong { display: block; font-size: .8rem; font-weight: 600; margin-top: .1rem; }

.survey-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--uabc-shadow); height: 100%; }
.survey-icon { width: 56px; height: 56px; border-radius: 15px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: .8rem; }
.survey-card h3 { font-size: 1.15rem; }
.survey-card p { color: var(--uabc-muted); font-size: .82rem; }
.survey-disabled { opacity: .72; }
.survey-disabled .survey-icon { background: #f0f2f1; color: #8a9891; }

.security-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.security-list li { display: flex; gap: .55rem; font-size: .78rem; color: var(--uabc-muted); }
.security-list i { color: var(--uabc-green); margin-top: .2rem; }

/* --------------------------------------------------------------------------
   Tabs / PAT / reportes
   -------------------------------------------------------------------------- */
.app-tabs { gap: .35rem; border-bottom: 1px solid var(--uabc-line); padding-bottom: .6rem; flex-wrap: wrap; }
.app-tabs .nav-link { color: var(--uabc-muted); font-size: .76rem; font-weight: 600; border-radius: 8px; padding: .45rem .75rem; }
.app-tabs .nav-link:hover { background: var(--uabc-green-soft); color: var(--uabc-green); }
.app-tabs .nav-link.active { background: var(--uabc-green); color: #fff; }

.student-profile-banner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.student-profile-main { display: flex; align-items: center; gap: 1rem; }
.student-profile-main .profile-photo-lg { width: 88px; height: 100px; border-radius: 14px; object-fit: cover; border: 3px solid var(--uabc-green-soft); }
.student-profile-main h3 { font-size: 1.25rem; }
.contact-inline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--uabc-muted); font-size: .72rem; }
.student-profile-stats { display: flex; gap: 1.2rem; text-align: center; }
.student-profile-stats > div { min-width: 72px; }
.student-profile-stats span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--uabc-muted); font-weight: 700; }
.student-profile-stats strong { display: block; font-size: 1.3rem; font-family: 'Outfit', sans-serif; }

.pat-list { display: grid; gap: .8rem; }
.pat-item { border: 1px solid var(--uabc-line); border-radius: 11px; padding: .8rem .9rem; background: #fbfcfb; }
.pat-item-head { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: .35rem; flex-wrap: wrap; }
.pat-item-head > div { display: flex; align-items: center; gap: .5rem; }
.pat-item-head strong { font-size: .8rem; }
.pat-item p { font-size: .75rem; color: var(--uabc-muted); margin-bottom: .55rem; }
.pat-report { margin: .5rem 0 .65rem; padding: .55rem .7rem; border-left: 3px solid var(--uabc-gold); background: #fffdf5; border-radius: 7px; font-size: .74rem; color: #4d4433; }
.note-placeholder { color: #5f6f67 !important; }

.risk-list { display: grid; gap: .6rem; }
.risk-list > div { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.risk-list strong { margin-left: auto; font-size: .95rem; }
.risk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.state-list { display: grid; gap: .65rem; }
.state-item { font-size: .76rem; }
.state-item .progress { height: 6px; margin-top: .25rem; }
.legacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.legacy-link { display: flex; align-items: center; gap: .65rem; padding: .7rem .75rem; border: 1px solid var(--uabc-line); border-radius: 10px; color: var(--uabc-ink); background: #fbfcfb; transition: .18s ease; }
.legacy-link:hover { border-color: #bfdccd; background: #f4faf7; color: var(--uabc-green-dark); transform: translateY(-1px); }
.legacy-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.legacy-text { min-width: 0; flex: 1; }
.legacy-text strong { display: block; font-size: .76rem; line-height: 1.25; }
.legacy-text small { display: block; font-size: .6rem; color: var(--uabc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legacy-arrow { font-size: .62rem; color: #b3c0b9; }
.summary-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.summary-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--uabc-line); border-radius: 999px; background: #fff; color: var(--uabc-muted); font-size: .74rem; font-weight: 600; }
.summary-chip strong { color: var(--uabc-ink); }
.summary-chip:hover { border-color: #bcd9c9; color: var(--uabc-green); }
.summary-chip.active { background: var(--uabc-green); border-color: var(--uabc-green); color: #fff; }
.summary-chip.active strong { color: #fff; }

/* --------------------------------------------------------------------------
   Timeline / legado / notas
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; gap: .7rem; }
.timeline-item { display: flex; gap: .8rem; background: #fff; border: 1px solid var(--uabc-line); border-radius: 11px; padding: .7rem; box-shadow: var(--uabc-shadow); }
.timeline-date { width: 52px; height: 56px; border-radius: 9px; background: var(--uabc-green-soft); color: var(--uabc-green-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.timeline-date strong { font-size: 1.15rem; line-height: 1; font-family: 'Outfit', sans-serif; }
.timeline-date span { font-size: .58rem; font-weight: 700; letter-spacing: .05em; }
.timeline-body strong { display: block; font-size: .8rem; }
.timeline-body p { margin: .1rem 0 .2rem; color: var(--uabc-muted); font-size: .72rem; }
.timeline-time { color: var(--uabc-muted); font-size: .65rem; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; }
.info-note { display: flex; gap: .8rem; background: #eef7f2; border: 1px solid #cfe8da; border-radius: 12px; padding: .9rem 1rem; }
.info-note > i { color: var(--uabc-green); font-size: 1.1rem; margin-top: .1rem; }
.info-note strong { display: block; font-size: .8rem; }
.info-note p { margin: .1rem 0 0; color: #50665a; font-size: .76rem; }
.legacy-content { font-size: .84rem; line-height: 1.7; }
.legacy-content img { max-width: 100%; height: auto; border-radius: 8px; }
.legacy-content table { width: 100%; margin-bottom: 1rem; }
.legacy-content table td, .legacy-content table th { padding: .35rem .5rem; border: 1px solid var(--uabc-line); }
.legacy-content h1, .legacy-content h2, .legacy-content h3, .legacy-content h4 { margin-top: 1.1rem; }
.legacy-content .legacy-heading { margin-top: 1.1rem; margin-bottom: .5rem; }
.legacy-content .legacy-h1 { font-size: 1.5rem; }
.legacy-content .legacy-h2 { font-size: 1.3rem; }
.legacy-content .legacy-h3 { font-size: 1.15rem; }
.legacy-content .legacy-h4 { font-size: 1.05rem; }
.legacy-content .legacy-h5 { font-size: 1rem; }
.legacy-content .legacy-h6 { font-size: .95rem; }
.legacy-content-scroll { max-height: 360px; overflow-y: auto; padding-right: .4rem; }
.info-details { background: #fff; border: 1px solid var(--uabc-line); border-radius: 12px; padding: .8rem 1rem; }
.info-details summary { cursor: pointer; font-weight: 600; font-size: .82rem; color: var(--uabc-green-dark); }
.side-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.4rem; box-shadow: var(--uabc-shadow); }
.side-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: .8rem; }
.side-card h3 { font-size: 1.05rem; }
.side-card p { font-size: .8rem; color: var(--uabc-muted); }
.side-card h6 { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--uabc-muted); font-weight: 700; margin-bottom: .5rem; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid #edf1ee; color: var(--uabc-ink); font-size: .78rem; }
.side-link:last-child { border-bottom: 0; }
.side-link:hover { color: var(--uabc-green); }
.side-link i { font-size: .65rem; color: #b3c0b9; }
.side-card hr { margin: 1rem 0; border-color: var(--uabc-line); }

.empty-state { text-align: center; color: var(--uabc-muted); padding: 2rem 1rem; }
.empty-state i { font-size: 1.8rem; color: #b9c8c0; margin-bottom: .6rem; display: block; }
.empty-state h3 { font-size: 1.05rem; }
.empty-state p { font-size: .8rem; margin-bottom: .8rem; }
.section-subtitle { font-size: 1rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Autenticación
   -------------------------------------------------------------------------- */
.auth-body { background: #f5f8f6; }
.auth-shell { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }
.auth-visual {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(246,187,9,.26), transparent 32%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%),
        linear-gradient(150deg, #06452c 0%, #022e1d 65%, #011c12 100%);
    display: flex; align-items: stretch;
}
.auth-visual::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
}
.auth-visual-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 2.4rem 3rem; width: 100%; }
.auth-brand { color: #fff; }
.auth-brand strong { display: block; font-size: 1rem; }
.auth-brand small { display: block; font-size: .68rem; color: rgba(255,255,255,.6); }
.auth-copy { max-width: 520px; padding: 2rem 0; }
.auth-copy .eyebrow { color: var(--uabc-gold); }
.auth-copy h1 { color: #fff; font-size: clamp(2.1rem, 3.4vw, 3.4rem); line-height: 1.03; margin-bottom: 1rem; }
.auth-copy h1 span { color: var(--uabc-gold); }
.auth-copy p { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.65; max-width: 460px; }
.auth-features { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.auth-features > div { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .45rem .8rem; font-size: .72rem; color: rgba(255,255,255,.82); }
.auth-features i { color: var(--uabc-gold); }
.auth-quote { border-left: 3px solid var(--uabc-gold); padding-left: .9rem; max-width: 430px; color: rgba(255,255,255,.72); font-size: .78rem; }
.auth-quote i { color: var(--uabc-gold); margin-right: .35rem; }
.auth-quote p { margin: .2rem 0 0; }
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.auth-form-wrap { width: 100%; max-width: 430px; }
.auth-heading h2 { font-size: 2rem; margin-bottom: .4rem; }
.auth-heading p { color: var(--uabc-muted); font-size: .86rem; margin-bottom: 1.6rem; }
.auth-form .form-control { padding: .8rem .9rem .8rem 2.45rem; font-size: .9rem; }
.auth-form .input-icon > i { left: .9rem; }
.auth-form .password-toggle { right: .65rem; }
.auth-form .form-label { font-size: .78rem; }
.auth-help { display: flex; gap: .7rem; margin-top: 1.4rem; padding: .85rem .9rem; background: #f7faf8; border: 1px solid var(--uabc-line); border-radius: 11px; }
.auth-help-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.auth-help strong { display: block; font-size: .78rem; }
.auth-help p { margin: .1rem 0 0; font-size: .73rem; color: var(--uabc-muted); }
.auth-help a { color: var(--uabc-green); font-weight: 600; }
.auth-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.2rem; color: #68776f; font-size: .68rem; }
.auth-note i { color: var(--uabc-green); }
.auth-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--uabc-line); font-size: .68rem; color: #94a29b; flex-wrap: wrap; }
.auth-footer a { color: var(--uabc-green); font-weight: 600; }

/* --------------------------------------------------------------------------
   Sitio público
   -------------------------------------------------------------------------- */
.public-body { background: #fff; }
.public-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--uabc-line); }
.public-nav .navbar { padding: .55rem 0; }
.public-nav .navbar-brand .brand-mark { width: 38px; height: 38px; font-size: .95rem; }
.public-nav .navbar-brand strong { font-size: .95rem; }
.public-nav .nav-link { font-size: .8rem; font-weight: 600; color: #4c5b54; padding: .5rem .65rem !important; }
.public-nav .nav-link:hover { color: var(--uabc-green); }
.public-actions { margin-left: 1rem; }
.hero { position: relative; background: linear-gradient(150deg, #05452c 0%, #02311f 65%, #012014 100%); color: #fff; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(246,187,9,.24), transparent 30%), radial-gradient(circle at 15% 90%, rgba(255,255,255,.06), transparent 35%); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%); }
.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); color: var(--uabc-gold); padding: .38rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 600; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; margin-bottom: 1.1rem; }
.hero h1 span { color: var(--uabc-gold); }
.hero-lead { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.7; max-width: 530px; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-actions .btn-outline-light { border-color: rgba(255,255,255,.4); }
.hero-actions .btn-outline-light:hover { background: #fff; color: var(--uabc-green); }
.hero-meta { display: flex; gap: 1.8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-meta strong { display: block; font-size: 1.4rem; font-family: 'Outfit', sans-serif; color: var(--uabc-gold); }
.hero-meta span { color: rgba(255,255,255,.75); font-size: .68rem; }
.hero-card { background: rgba(255,255,255,.96); color: var(--uabc-ink); border-radius: 20px; padding: 1.4rem; box-shadow: 0 30px 70px rgba(0,0,0,.3); max-width: 440px; margin-left: auto; transform: rotate(-1deg); }
.hero-card-head { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid var(--uabc-line); }
.hero-card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; }
.hero-card-head strong { display: block; font-size: .85rem; }
.hero-card-head small { display: block; color: var(--uabc-muted); font-size: .67rem; }
.hero-avatars { display: flex; align-items: center; padding: 1rem 0 .4rem; }
.hero-avatars img, .hero-avatars .avatar-fallback, .hero-avatars .avatar-more { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.hero-avatars img:first-child, .hero-avatars .avatar-fallback:first-child { margin-left: 0; }
.avatar-more { display: inline-flex; align-items: center; justify-content: center; background: var(--uabc-green); color: #fff; font-size: .66rem; font-weight: 700; }
.hero-card-body { padding: .6rem 0 .3rem; display: grid; gap: .5rem; }
.mini-feature { display: flex; align-items: center; gap: .55rem; font-size: .76rem; color: #3f5149; }
.mini-feature i { width: 28px; height: 28px; border-radius: 8px; background: #f3f8f5; color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
.hero-card-foot { border-top: 1px solid var(--uabc-line); padding-top: .7rem; font-size: .66rem; color: var(--uabc-muted); }

.section { padding: 4.5rem 0; }
.section-muted { background: var(--uabc-bg); }
.section-heading { max-width: 680px; margin-bottom: 2rem; }
.section-heading.text-center { margin-left: auto; margin-right: auto; }
.section-heading h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .45rem; }
.section-heading p { color: var(--uabc-muted); font-size: .9rem; margin: 0; }
.quick-access { padding: 3rem 0; background: #fff; }
.quick-card { display: block; height: 100%; background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.4rem; color: var(--uabc-ink); box-shadow: var(--uabc-shadow); transition: .22s ease; }
.quick-card:hover { transform: translateY(-5px); border-color: #c4dfd1; box-shadow: 0 22px 44px rgba(15,45,32,.12); color: var(--uabc-ink); }
.quick-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--uabc-green-soft); color: var(--uabc-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .9rem; }
.quick-card h3, .quick-card .quick-title { font-size: 1.05rem; margin-bottom: .3rem; }
.quick-card p { color: var(--uabc-muted); font-size: .8rem; margin-bottom: .9rem; }
.quick-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--uabc-green); font-size: .76rem; font-weight: 700; }
.content-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.5rem; box-shadow: var(--uabc-shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.6rem; position: relative; box-shadow: var(--uabc-shadow); }
.step-number { position: absolute; top: 1rem; right: 1.2rem; font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: #7f9889; }
.step-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--uabc-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .9rem; }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--uabc-muted); font-size: .8rem; margin: 0; }
.tutor-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; overflow: hidden; box-shadow: var(--uabc-shadow); height: 100%; transition: .2s ease; }
.tutor-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,45,32,.12); }
.tutor-photo { width: 100%; height: 210px; object-fit: cover; display: block; background: var(--uabc-green-soft); }
.tutor-photo-initials { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; font-family: 'Outfit', sans-serif; }
.tutor-info { padding: 1rem 1.1rem 1.2rem; }
.tutor-info h3 { font-size: .95rem; margin-bottom: .15rem; }
.tutor-info p { color: var(--uabc-muted); font-size: .72rem; margin-bottom: .55rem; min-height: 2.1em; }
.tutor-info a { color: var(--uabc-green); font-size: .7rem; font-weight: 600; word-break: break-word; }
.tutor-card-lg .tutor-photo { height: 230px; }
.cta-section { padding: 0 0 4.5rem; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: linear-gradient(120deg, #04522f, #02351f); color: #fff; border-radius: 20px; padding: 2.4rem 2.6rem; box-shadow: var(--uabc-shadow-lg); }
.cta-card h2 { color: #fff; font-size: 1.7rem; margin-bottom: .3rem; }
.cta-card p { color: rgba(255,255,255,.65); margin: 0; font-size: .88rem; }

.page-hero { background: linear-gradient(140deg, #054b2f, #022f1e); color: #fff; padding: 3rem 0 3.4rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(246,187,9,.22), transparent 30%); }
.page-hero-sm { padding: 2.2rem 0 2.6rem; }
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.66); font-size: .92rem; margin: 0; }
.breadcrumb-light .breadcrumb-item, .breadcrumb-light .breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .72rem; }
.breadcrumb-light .breadcrumb-item.active { color: rgba(255,255,255,.8); }
.search-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.3rem; box-shadow: 0 18px 40px rgba(15,45,32,.1); }
.result-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--uabc-shadow); }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.profile-photo-lg { width: 130px; height: 150px; border-radius: 16px; object-fit: cover; border: 3px solid var(--uabc-green-soft); }
.profile-photo-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 2.4rem; font-family: 'Outfit', sans-serif; }
.contact-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-grid a { display: inline-flex; align-items: center; gap: .45rem; background: #f5faf7; border: 1px solid var(--uabc-line); border-radius: 8px; padding: .4rem .65rem; color: var(--uabc-ink); font-size: .74rem; }
.contact-grid a:hover { border-color: #bfdccd; color: var(--uabc-green); }
.contact-grid i { color: var(--uabc-green); }
.student-mini { display: flex; align-items: center; gap: .6rem; }
.student-mini img, .student-mini .avatar-fallback { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.student-mini strong { display: block; font-size: .82rem; }
.student-mini span { display: block; color: var(--uabc-muted); font-size: .68rem; }

.faq-accordion .accordion-item { border: 1px solid var(--uabc-line); border-radius: 10px !important; margin-bottom: .5rem; overflow: hidden; }
.faq-accordion .accordion-button { font-size: .84rem; font-weight: 600; color: var(--uabc-ink); }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--uabc-green-soft); color: var(--uabc-green-dark); box-shadow: none; }
.faq-accordion .accordion-body { font-size: .8rem; color: var(--uabc-muted); }

.calendar-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 16px; padding: 1.2rem; box-shadow: var(--uabc-shadow); }
#calendar { min-height: 620px; }
.fc { font-family: 'Inter', sans-serif; }
.fc .fc-toolbar-title { font-family: 'Outfit', sans-serif; font-size: 1.1rem; }
.fc .fc-button-primary { background: var(--uabc-green); border-color: var(--uabc-green); font-size: .72rem; border-radius: 7px; }
.fc .fc-button-primary:hover { background: var(--uabc-green-dark); border-color: var(--uabc-green-dark); }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--uabc-green-dark); border-color: var(--uabc-green-dark); }
.fc .fc-daygrid-event { border-radius: 5px; font-size: .68rem; padding: 1px 3px; }
.fc-theme-standard td, .fc-theme-standard th { border-color: #e8eeea; }

.public-footer { background: #061f15; color: rgba(255,255,255,.75); padding: 3.2rem 0 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.footer-brand strong { display: block; color: #fff; font-size: .95rem; }
.footer-brand p { margin: 0; font-size: .7rem; color: rgba(255,255,255,.72); }
.footer-text { font-size: .76rem; line-height: 1.65; max-width: 380px; }
.public-footer h6, .public-footer .footer-heading { color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.public-footer a { display: block; color: rgba(255,255,255,.74); font-size: .74rem; padding: .25rem 0; }
.public-footer a:hover { color: var(--uabc-gold); }
.footer-contact { font-size: .72rem; margin-bottom: .4rem; }
.footer-social { display: flex; gap: .4rem; margin-top: .8rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.footer-social a:hover { background: var(--uabc-gold); color: #062116; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.09); margin-top: 2rem; padding-top: 1rem; font-size: .66rem; color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   Error
   -------------------------------------------------------------------------- */
.error-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 20%, #e8f3ed, #f7faf8 60%); }
.error-wrap { width: 100%; padding: 1.5rem; }
.error-page { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--uabc-line); border-radius: 20px; padding: 3rem 2rem; box-shadow: var(--uabc-shadow-lg); }
.error-code { font-family: 'Outfit', sans-serif; font-size: 5rem; font-weight: 800; line-height: 1; color: var(--uabc-green-soft); margin-bottom: .5rem; }
.error-page h1 { font-size: 1.5rem; }
.error-page p { color: var(--uabc-muted); font-size: .88rem; margin-bottom: 1.3rem; }

/* --------------------------------------------------------------------------
   Planes de estudio y mapa curricular
   -------------------------------------------------------------------------- */
.plan-switcher { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.plan-tab {
    display: flex; flex-direction: column; gap: .1rem; min-width: 140px;
    border: 1px solid var(--uabc-line); background: #fff; border-radius: 12px;
    padding: .65rem .9rem; color: var(--uabc-ink); transition: .18s ease;
}
.plan-tab:hover { border-color: #bfdccd; color: var(--uabc-green-dark); transform: translateY(-1px); }
.plan-tab strong { font-family: 'Outfit', sans-serif; font-size: .95rem; display: flex; align-items: center; gap: .35rem; }
.plan-tab span { font-size: .65rem; color: var(--uabc-muted); }
.plan-tab.active { background: var(--uabc-green); border-color: var(--uabc-green); color: #fff; box-shadow: 0 8px 18px rgba(0, 102, 51, .22); }
.plan-tab.active span { color: rgba(255,255,255,.82); }
.plan-tab.active .plan-flag { color: #1d2a22; }
.plan-flag { background: var(--uabc-gold); color: #1d2a22; border-radius: 999px; font-size: .48rem; padding: .1rem .35rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }

.plan-overview {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    background: linear-gradient(135deg, #04522f, #02341f); color: #fff;
    border-radius: 18px; padding: 1.4rem 1.6rem; box-shadow: var(--uabc-shadow); margin-bottom: 1.2rem;
}
.plan-overview-main { flex: 1 1 320px; min-width: 0; }
.plan-overview-main .eyebrow { color: var(--uabc-gold); }
.plan-overview-main h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .2rem; }
.plan-overview-main p { color: rgba(255,255,255,.7); font-size: .78rem; margin: 0 0 .5rem; }
.plan-overview-detail { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .7rem; color: rgba(255,255,255,.78); }
.plan-overview-detail strong { color: var(--uabc-gold); }
.plan-overview-stats { display: flex; gap: 1.2rem; }
.plan-overview-stats div { text-align: center; }
.plan-overview-stats strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.35rem; color: var(--uabc-gold); line-height: 1; }
.plan-overview-stats span { font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); }
.plan-overview .btn-uabc { background: #fff; border-color: #fff; color: var(--uabc-green); }
.plan-overview .btn-uabc:hover { background: var(--uabc-gold); border-color: var(--uabc-gold); color: #16251f; }

.plan-legend {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
    background: #fff; border: 1px solid var(--uabc-line); border-radius: 10px;
    padding: .6rem .8rem; font-size: .66rem; color: var(--uabc-muted); margin-bottom: 1.4rem;
}
.plan-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.plan-legend i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
.plan-legend .plan-legend-sep { margin-left: auto; }
.plan-legend .plan-legend-sep i { width: auto; height: auto; border-radius: 0; color: var(--uabc-green); }

.plan-map { display: grid; gap: 1.6rem; }
.plan-stage { background: #fff; border: 1px solid var(--uabc-line); border-radius: 18px; padding: 1.2rem; box-shadow: var(--uabc-shadow); }
.plan-stage-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.plan-stage-number {
    width: 38px; height: 38px; border-radius: 12px; background: var(--uabc-green); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; flex: 0 0 auto;
}
.plan-stage-head h2 { font-size: 1.15rem; margin: 0; }
.plan-stage-head .badge-soft { margin-left: auto; }
.plan-semesters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.plan-semester { background: #f8fbf9; border: 1px solid var(--uabc-line); border-radius: 12px; padding: .7rem; }
.plan-semester-head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.plan-semester-head h3 { font-size: .78rem; margin: 0; }
.plan-semester-head span { font-size: .56rem; color: var(--uabc-muted); text-align: right; }
.plan-subjects { display: grid; gap: .45rem; }
.plan-subject { background: #fff; border: 1px solid var(--uabc-line); border-left: 4px solid var(--area-color, var(--uabc-green)); border-radius: 9px; padding: .55rem .6rem; }
.plan-subject-top { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin-bottom: .2rem; }
.plan-subject-code { font-size: .55rem; font-weight: 700; color: var(--uabc-muted); letter-spacing: .03em; }
.plan-subject-type { font-size: .48rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: .1rem .35rem; white-space: nowrap; }
.type-obligatoria { background: var(--uabc-green-soft); color: var(--uabc-green-dark); }
.type-optativa { background: #fff4d6; color: #7a4b00; }
.plan-subject h4 { font-size: .68rem; line-height: 1.3; margin: 0 0 .25rem; }
.plan-subject-meta { display: flex; justify-content: space-between; gap: .3rem; font-size: .56rem; }
.plan-credits { color: var(--uabc-green-dark); font-weight: 700; }
.plan-area { font-weight: 600; }
.plan-hours { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .3rem; }
.plan-hours span { background: #f3f7f5; border: 1px solid var(--uabc-line); border-radius: 999px; padding: .05rem .3rem; font-size: .48rem; color: #54665d; }
.plan-requisite { font-size: .54rem; color: #8a5a00; margin: .3rem 0 0; }
.plan-requisite i { margin-right: .15rem; }
.plan-empty { background: #fff; border: 1px solid var(--uabc-line); border-radius: 18px; padding: 2.5rem 1.5rem; box-shadow: var(--uabc-shadow); }

.plan-table-sections { display: grid; gap: 1.2rem; }
.plan-table-stage { background: #fff; border: 1px solid var(--uabc-line); border-radius: 18px; padding: 1.2rem; box-shadow: var(--uabc-shadow); }
.plan-stage-head-sm { margin-bottom: .7rem; }
.plan-table-block + .plan-table-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--uabc-line); }
.plan-table-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .45rem; }
.plan-table-head h3 { font-size: .88rem; margin: 0; }
.plan-table-head span { font-size: .6rem; color: var(--uabc-muted); }
.plan-table thead th { background: #f3f7f5; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; color: var(--uabc-muted); border-color: #e8eeea; }
.plan-table td { font-size: .72rem; border-color: #eef3f0; }
.plan-area-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.plan-hours-inline { margin-top: 0; }

/* --------------------------------------------------------------------------
   Mapa curricular del alumno (detalle del tutorado)
   -------------------------------------------------------------------------- */
.mapa-kardex-summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.3rem;
    background: #f6faf8; border: 1px solid var(--uabc-line); border-radius: 12px;
    padding: .85rem 1rem; margin-bottom: .9rem;
}
.mapa-kardex-summary > div { min-width: 76px; }
.mapa-kardex-summary span { display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; color: var(--uabc-muted); }
.mapa-kardex-summary strong { font-family: 'Outfit', sans-serif; font-size: 1.08rem; line-height: 1.1; }
.mapa-kardex-summary-progress { flex: 1 1 220px; min-width: 190px; }
.mapa-kardex-summary-progress .progress { height: .45rem; }

.mapa-kardex-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
    font-size: .66rem; color: var(--uabc-muted); margin-bottom: 1rem;
}
.mapa-kardex-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.mapa-kardex-legend .dot { width: .65rem; height: .65rem; border-radius: 3px; display: inline-block; }
.mapa-kardex-legend .is-aprobada { background: #05ad08; }
.mapa-kardex-legend .is-reprobada { background: #ea042b; }
.mapa-kardex-legend .is-sinCursar { background: #f4df42; }
.mapa-kardex-legend-note { margin-left: auto; }
.mapa-kardex-legend-note i { color: var(--uabc-green); }

.mapa-kardex-wrap {
    position: relative;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: .7rem; align-items: start;
}
.mapa-kardex-links {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: visible; z-index: 4;
}
.mapa-kardex-link { fill: none; stroke: #a86b00; stroke-width: 1.6; stroke-dasharray: 5 3; opacity: .75; }
.mapa-kardex-legend-seriada i { color: #a86b00; }
.mapa-kardex-semestre {
    min-width: 0; background: #f8fbf9; border: 1px solid var(--uabc-line);
    border-top: 3px solid var(--uabc-line); border-radius: 12px; padding: .6rem;
}
.mapa-kardex-semestre.is-etapa-1 { border-top-color: #006633; }
.mapa-kardex-semestre.is-etapa-2 { border-top-color: #0d6efd; }
.mapa-kardex-semestre.is-etapa-3 { border-top-color: #6f42c1; }
.mapa-kardex-semestre-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .4rem; margin-bottom: .55rem; }
.mapa-kardex-semestre-head > span { font-size: .68rem; font-weight: 700; color: var(--uabc-green-dark); }
.mapa-kardex-etapa-tag { font-size: .5rem; font-weight: 700; letter-spacing: .02em; padding: .12rem .35rem; border-radius: 999px; }
.mapa-kardex-etapa-tag.is-etapa-1 { background: #e8f3ed; color: #006633; }
.mapa-kardex-etapa-tag.is-etapa-2 { background: #e7f0ff; color: #0d6efd; }
.mapa-kardex-etapa-tag.is-etapa-3 { background: #f1ebfa; color: #6f42c1; }
.mapa-kardex-materias { display: grid; gap: .45rem; }

.mapa-kardex-card { background: #fff; border: 1px solid var(--uabc-line); border-radius: 9px; overflow: hidden; }
.mapa-kardex-card-top { display: grid; grid-template-columns: 1fr auto auto; gap: 1px; background: #e7efe9; }
.mapa-kardex-card-top > span { min-height: 22px; display: flex; align-items: center; justify-content: center; padding: .15rem .3rem; font-size: .54rem; font-weight: 700; text-align: center; }
.mapa-kardex-ciclo { background: #5882fa; color: #fff; }
.mapa-kardex-examen { background: #a9f5a9; color: #173d17; }
.mapa-kardex-examen.is-extra { background: #8787a9; color: #fff; }
.mapa-kardex-nota { background: #ffbf00; color: #3d2b00; min-width: 34px; }
.mapa-kardex-card-top > span.is-empty { background: #eef3f0; color: #b9c6be; }
.mapa-kardex-nombre { font-size: .64rem; line-height: 1.25; margin: .45rem .5rem .3rem; color: var(--uabc-ink); }
.mapa-kardex-clave { display: block; margin-bottom: .08rem; font-size: .5rem; font-weight: 700; letter-spacing: .04em; color: var(--uabc-muted); }
.mapa-kardex-meta { display: flex; justify-content: space-between; gap: .3rem; margin: 0 .5rem .4rem; font-size: .52rem; color: var(--uabc-muted); }
.mapa-kardex-seriada { display: flex; align-items: center; gap: .22rem; margin: 0 .5rem .4rem; font-size: .5rem; font-weight: 700; color: #8a5a00; }
.mapa-kardex-seriada i { font-size: .48rem; }
.mapa-kardex-intentos { display: block; margin: 0 .5rem .4rem; font-size: .5rem; color: #8a5a00; }
.mapa-kardex-status { display: flex; justify-content: space-between; align-items: center; gap: .3rem; padding: .28rem .5rem; font-size: .54rem; font-weight: 700; }
.mapa-kardex-status small { font-size: .5rem; font-weight: 600; opacity: .85; }
.mapa-kardex-card.is-aprobada .mapa-kardex-status { background: #05ad08; color: #fff; }
.mapa-kardex-card.is-reprobada .mapa-kardex-status { background: #ea042b; color: #fff; }
.mapa-kardex-card.is-sinCursar .mapa-kardex-status { background: #f4df42; color: #3d2b00; }

@media (max-width: 575.98px) {
    .mapa-kardex-wrap { grid-template-columns: 1fr; }
    .mapa-kardex-summary-progress { flex-basis: 100%; }
    .mapa-kardex-legend-note { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Oferta académica
   -------------------------------------------------------------------------- */
.nav-period {
    display: inline-block;
    margin-left: .35rem;
    background: var(--uabc-gold);
    color: #16251f;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .12rem .42rem;
    line-height: 1.25;
    vertical-align: middle;
}
.public-nav .nav-link.active { color: var(--uabc-green); }

.offer-band-section { padding: 0 0 3rem; background: #fff; }
.offer-band {
    display: flex; align-items: center; gap: 1.5rem;
    background: linear-gradient(120deg, #04522f, #02351f);
    border-radius: 20px; padding: 1.8rem 2rem; color: #fff;
    box-shadow: var(--uabc-shadow-lg);
}
.offer-band-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(255,255,255,.12); color: var(--uabc-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex: 0 0 auto;
}
.offer-band-copy { flex: 1; min-width: 0; }
.offer-band-copy .eyebrow { color: var(--uabc-gold); }
.offer-band-copy h2 { color: #fff; font-size: 1.5rem; margin: 0 0 .25rem; }
.offer-band-copy p { color: rgba(255,255,255,.72); font-size: .82rem; margin: 0; max-width: 620px; }
.offer-band-actions { display: flex; align-items: center; gap: 1.2rem; flex: 0 0 auto; }
.offer-band-stat { text-align: center; }
.offer-band-stat strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.5rem; color: var(--uabc-gold); line-height: 1; }
.offer-band-stat span { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }

.offer-empty { background: #fff; border: 1px solid var(--uabc-line); border-radius: 18px; padding: 3rem 1.5rem; box-shadow: var(--uabc-shadow); }
.offer-empty h2 { font-size: 1.35rem; }
.offer-groups-panel { padding: 1.2rem; }
.offer-panel-title { font-size: 1.08rem; margin: 0; font-weight: 700; }
.offer-group-search { margin-bottom: 1rem; }
.offer-group-search .form-control { font-size: .82rem; }
.offer-group-section + .offer-group-section { margin-top: 1.1rem; }
.offer-group-heading {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--uabc-muted); margin-bottom: .55rem;
}
.offer-group-heading i { color: var(--uabc-green); margin-right: .25rem; }
.offer-group-heading small {
    background: var(--uabc-green-soft); color: var(--uabc-green-dark);
    border-radius: 999px; padding: .1rem .45rem; font-size: .6rem; font-weight: 700;
}
.offer-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.offer-group-chip {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .1rem; padding: .55rem .25rem; border: 1px solid var(--uabc-line);
    border-radius: 10px; color: var(--uabc-ink); background: #fff;
    transition: .16s ease; text-align: center; min-height: 54px;
}
.offer-group-chip:hover { border-color: #bfdccd; background: #f4faf7; color: var(--uabc-green-dark); transform: translateY(-1px); }
.offer-group-chip strong { font-family: 'Outfit', sans-serif; font-size: 1rem; line-height: 1; }
.offer-group-chip span { font-size: .54rem; color: var(--uabc-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-group-chip.active { background: var(--uabc-green); border-color: var(--uabc-green); color: #fff; box-shadow: 0 8px 18px rgba(0, 102, 51, .22); }
.offer-group-chip.active span { color: rgba(255,255,255,.82); }
.offer-group-empty { font-size: .72rem; color: var(--uabc-muted); margin: 1rem 0 0; }

.offer-welcome { padding: 2.5rem 2rem; text-align: center; }
.offer-welcome-icon {
    width: 74px; height: 74px; border-radius: 20px;
    background: var(--uabc-green-soft); color: var(--uabc-green);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.7rem; margin-bottom: 1rem;
}
.offer-welcome h2 { font-size: 1.5rem; }
.offer-welcome p { color: var(--uabc-muted); font-size: .86rem; max-width: 480px; margin: 0 auto 1.2rem; }
.offer-welcome-tips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.offer-welcome-tips div {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #f6faf8; border: 1px solid var(--uabc-line); border-radius: 999px;
    padding: .45rem .8rem; font-size: .72rem; color: #43554c;
}
.offer-welcome-tips i { color: var(--uabc-green); }

.offer-detail { padding: 1.4rem; }
.offer-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.offer-detail-head h2 { font-size: 1.5rem; margin: 0 0 .35rem; }
.offer-detail-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.offer-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0 1rem; }
.offer-facts > div { background: #f6faf8; border: 1px solid var(--uabc-line); border-radius: 10px; padding: .55rem .65rem; }
.offer-facts span { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--uabc-muted); }
.offer-facts strong { display: block; font-size: .84rem; color: var(--uabc-green-dark); margin-top: .1rem; }

.offer-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-bottom: .6rem; font-size: .68rem; color: var(--uabc-muted); }
.offer-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.offer-legend i { color: var(--uabc-green); }
.offer-table-wrap { border: 1px solid var(--uabc-line); border-radius: 12px; }
.offer-table { min-width: 900px; table-layout: fixed; }
.offer-table thead th {
    background: #f3f7f5; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--uabc-muted); border-color: #e8eeea; padding: .55rem .4rem; text-align: center;
}
.offer-table .offer-time-col { width: 72px; }
.offer-table tbody th, .offer-table tbody td { border-color: #eef3f0; }
.offer-time { width: 72px; text-align: center; background: #fbfdfc; }
.offer-time strong { display: block; font-size: .72rem; color: var(--uabc-green-dark); }
.offer-time span { display: block; font-size: .58rem; color: var(--uabc-muted); }
.offer-cell { padding: .28rem !important; height: 74px; }
.offer-cell-empty { background: #fcfdfc; }
.offer-block {
    height: 100%; min-height: 66px; background: #fff;
    border: 1px solid var(--uabc-line);
    border-left: 4px solid var(--subject-color, var(--uabc-green));
    border-radius: 8px; padding: .4rem .45rem;
    display: flex; flex-direction: column; gap: .1rem;
    box-shadow: 0 2px 6px rgba(15, 45, 32, .04);
}
.offer-block-type { font-size: .5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--subject-color, var(--uabc-green)); display: inline-flex; align-items: center; gap: .25rem; }
.offer-block strong { font-size: .66rem; line-height: 1.25; color: var(--uabc-ink); }
.offer-block small { font-size: .54rem; color: var(--uabc-muted); line-height: 1.3; display: flex; align-items: center; gap: .25rem; }
.offer-block small i { color: var(--subject-color, var(--uabc-green)); width: .7rem; text-align: center; flex: 0 0 auto; }
.offer-block-code { font-variant-numeric: tabular-nums; }

.offer-subjects { border-top: 1px solid var(--uabc-line); margin-top: 1.1rem; padding-top: 1rem; }
.offer-subjects h3 { font-size: .92rem; margin-bottom: .6rem; }
.offer-subject-list { display: grid; gap: .45rem; }
.offer-subject {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    border: 1px solid var(--uabc-line);
    border-left: 4px solid var(--subject-color, var(--uabc-green));
    border-radius: 9px; padding: .5rem .7rem; background: #fff;
}
.offer-subject-main { min-width: 0; }
.offer-subject-main strong { display: block; font-size: .74rem; }
.offer-subject-main span { display: block; font-size: .6rem; color: var(--uabc-muted); }
.offer-subject-meta { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; }
.offer-chip { background: #f3f7f5; border: 1px solid var(--uabc-line); border-radius: 999px; padding: .12rem .45rem; font-size: .54rem; color: #54665d; white-space: nowrap; }
.offer-chip-optativa { background: #e2d303; border: 1px solid var(--uabc-line); border-radius: 999px; padding: .12rem .45rem; font-size: .54rem; color: #000000; white-space: nowrap; font-weight: bold;}
.offer-chip-obligatoria { background: #027e40; border: 1px solid var(--uabc-line); border-radius: 999px; padding: .12rem .45rem; font-size: .54rem; color: hsl(0, 0%, 100%); white-space: nowrap; font-weight: bold; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .app-content { padding: 1.4rem 1.5rem 2rem; }
    .topbar { padding: .7rem 1.5rem; }
    .welcome-card { flex-wrap: wrap; }
    .welcome-actions { flex-direction: row; width: 100%; }
    .credit-grid { grid-template-columns: repeat(2, 1fr); }
    .public-nav .navbar-collapse { background: #fff; border: 1px solid var(--uabc-line); border-radius: 12px; padding: .7rem; margin-top: .5rem; box-shadow: var(--uabc-shadow); }
    .public-actions { margin: .6rem 0 0; }
    .plan-semesters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .sidebar { position: fixed; height: 100vh; }
    .offcanvas-lg { width: 292px; }
    .app-content { padding: 1.2rem 1rem 1.8rem; }
    .topbar { padding: .65rem 1rem; }
    .app-footer { padding: .9rem 1rem; flex-direction: column; gap: .2rem; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 1.5rem; }
    .hero { padding: 3rem 0 3.5rem; }
    .hero-card { margin: 2rem auto 0; transform: none; }
    .steps { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; text-align: center; }
    .schedule-cards { grid-template-columns: repeat(3, 1fr); }
    .offer-band { flex-wrap: wrap; }
    .offer-band-actions { width: 100%; justify-content: space-between; }
    .offer-group-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .student-profile-banner { flex-direction: column; align-items: flex-start; }
    .student-profile-stats { width: 100%; justify-content: space-between; }
}

@media (max-width: 767.98px) {
    .page-heading { flex-direction: column; align-items: flex-start; }
    .page-heading h2 { font-size: 1.4rem; }
    .welcome-card { padding: 1.3rem; border-radius: 16px; }
    .welcome-main { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .welcome-avatar img, .welcome-avatar .avatar-fallback { width: 72px; height: 82px; }
    .welcome-copy h2 { font-size: 1.35rem; }
    .welcome-progress { display: none; }
    .credit-grid { grid-template-columns: repeat(2, 1fr); }
    .requirements { grid-template-columns: 1fr; }
    .panel { padding: 1.05rem; border-radius: 13px; }
    .stat-card strong { font-size: 1.3rem; }
    .big-progress { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .tips-grid { grid-template-columns: 1fr; }
    .schedule-cards { grid-template-columns: repeat(2, 1fr); }
    .offer-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offer-subject { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .offer-subject-meta { justify-content: flex-start; }
    .offer-detail { padding: 1rem; }
    .offer-detail-head .btn { width: 100%; }
    .mi-tutoria-buttons { width: 100%; margin-left: 0; }
    .mi-tutoria-buttons .btn { flex: 1; }
    .mi-tutoria-metrics { width: 100%; justify-content: space-between; }
    .plan-overview-stats { width: 100%; justify-content: space-between; }
    .plan-overview .plan-pdf { width: 100%; }
    .plan-stage { padding: 1rem; }
    .plan-stage-head { flex-wrap: wrap; }
    .plan-stage-head .badge-soft { margin-left: 0; }
    .plan-semesters { grid-template-columns: 1fr; }
    .plan-table-head { flex-direction: column; align-items: flex-start; gap: .1rem; }
    .plan-tab { flex: 1 1 calc(50% - .6rem); min-width: 0; }
    .detail-grid { grid-template-columns: 1fr; }
    .legacy-grid { grid-template-columns: 1fr 1fr; }
    .student-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
    .student-profile-main { flex-direction: column; align-items: flex-start; }
    .hero-meta { gap: 1rem; }
    .hero-meta strong { font-size: 1.15rem; }
    .public-nav .navbar-collapse { background: #fff; border: 1px solid var(--uabc-line); border-radius: 12px; padding: .7rem; margin-top: .5rem; box-shadow: var(--uabc-shadow); }
    .public-actions { margin: .6rem 0 0; }
    .cta-card { padding: 1.6rem; }
    .cta-card h2 { font-size: 1.35rem; }
    .auth-form-wrap { max-width: 100%; }
    .timeline-item { padding: .6rem; }
    .timeline-date { width: 46px; height: 50px; }
    .panel-head { justify-content: flex-start; }
    .panel-head form { width: 100%; }
    .topbar-title h1 { font-size: 1rem; }
    .user-meta { display: none; }
    .user-chip > i { display: none; }
    .credit-card { margin-bottom: .4rem; }
}

@media (max-width: 575.98px) {
    .app-content { padding: 1rem .8rem 1.5rem; }
    .topbar { padding: .55rem .8rem; }
    .topbar-actions { gap: .2rem; }
    .icon-button { width: 36px; height: 36px; }
    .user-avatar { width: 34px; height: 34px; }
    .welcome-meta { gap: .35rem .6rem; font-size: .7rem; }
    .welcome-actions { flex-direction: column; }
    .credit-grid { grid-template-columns: 1fr 1fr; }
    .student-profile-stats { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 2.4rem 0 3rem; }
    .hero-actions .btn { width: 100%; }
    .hero-card { padding: 1.1rem; }
    .quick-access, .section { padding: 3rem 0; }
    .page-hero { padding: 2rem 0 2.4rem; }
    .schedule-cards { grid-template-columns: 1fr 1fr; }
    .legacy-grid { grid-template-columns: 1fr; }
    .offer-band { flex-direction: column; text-align: center; padding: 1.4rem; }
    .offer-band-copy p { max-width: none; }
    .offer-band-actions { flex-direction: column; width: 100%; gap: .8rem; }
    .offer-band-actions .btn { width: 100%; }
    .offer-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .offer-welcome { padding: 1.6rem 1rem; }
    .offer-facts { grid-template-columns: 1fr 1fr; }
    .plan-overview { padding: 1.2rem; }
    .plan-overview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
    .plan-legend .plan-legend-sep { margin-left: 0; width: 100%; }
    .plan-table-stage { padding: 1rem; }
}

/* --------------------------------------------------------------------------
   Impresión
   -------------------------------------------------------------------------- */
@media print {
    .sidebar, .topbar, .app-footer, .no-print, .btn, .dropdown, .public-nav, .public-footer { display: none !important; }
    .app-shell, .app-main { display: block !important; }
    .app-content { padding: 0 !important; max-width: 100% !important; }
    .panel { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
    body { background: #fff !important; }
    .print-area { border: 0 !important; padding: 0 !important; }
    .row-failed { background: #fff !important; }
    .offer-groups-panel, .offer-band-section, .offer-welcome-tips { display: none !important; }
    .offer-detail { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
    .offer-table { min-width: 0 !important; font-size: .68rem; }
    .offer-cell { height: auto !important; }
    .offer-block { box-shadow: none !important; min-height: 0 !important; }
    .offer-table-wrap { overflow: visible !important; border-color: #ccc !important; }
    .offer-subjects { break-inside: avoid; }
    a[href]::after { content: ''; }
    @page { size: letter; margin: 1.4cm; }
}
