@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   NeurySis · Tema sobre Bootstrap 5.3
   Navy primario + naranja como acción/acento.
   Solo van clases que Bootstrap no provee.
   ============================================================ */

:root {
    /* Overrides de Bootstrap */
    --bs-primary: #1d4ed8;
    --bs-primary-rgb: 29, 78, 216;
    --bs-body-bg: #FAFBFC;
    --bs-body-color: #1e293b;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-border-color: #e2e8f0;
    --bs-border-color-translucent: rgba(30, 41, 59, .12);
    --bs-secondary-color: #64748b;
    --bs-tertiary-bg: #EEF2F7;
    --bs-link-color: #1d4ed8;
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: #1e40af;
    --bs-link-hover-color-rgb: 30, 64, 175;
    --bs-border-radius: .6rem;
    --bs-border-radius-sm: .45rem;
    --bs-border-radius-lg: .85rem;
    --bs-heading-color: #1e293b;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Botón primario (navy) ---- */
.btn-primary {
    --bs-btn-bg: #1d4ed8;
    --bs-btn-border-color: #1d4ed8;
    --bs-btn-hover-bg: #1e40af;
    --bs-btn-hover-border-color: #1e40af;
    --bs-btn-active-bg: #1e3a8a;
    --bs-btn-active-border-color: #1e3a8a;
    --bs-btn-disabled-bg: #1d4ed8;
    --bs-btn-disabled-border-color: #1d4ed8;
}

.btn-outline-primary {
    --bs-btn-color: #1d4ed8;
    --bs-btn-border-color: #1d4ed8;
    --bs-btn-hover-bg: #1d4ed8;
    --bs-btn-hover-border-color: #1d4ed8;
    --bs-btn-active-bg: #1e40af;
    --bs-btn-active-border-color: #1e40af;
}

/* ---- Botón naranja (acción primaria; Bootstrap no lo trae) ---- */
.btn-orange {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f97316;
    --bs-btn-border-color: #f97316;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ea580c;
    --bs-btn-hover-border-color: #ea580c;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c2410c;
    --bs-btn-active-border-color: #c2410c;
    --bs-btn-disabled-bg: #f97316;
    --bs-btn-disabled-border-color: #f97316;
    --bs-btn-disabled-color: #fff;
}

/* ---- Foco temático ---- */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .2rem rgba(29, 78, 216, .22);
}

.form-check-input:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Inputs blancos */
.form-control,
.form-select {
    background-color: #fff;
    border-color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
}

/* Inputs readonly: que se vean igual de blancos (Bootstrap los grisea) */
.form-control[readonly],
.form-control:disabled,
.form-select:disabled {
    background-color: #fff;
    opacity: 1;
}

/* Quita el tinte azul/amarillo de Chrome autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b;
    transition: background-color 5000s ease-in-out 0s;
}

/* Caja del icono en input-group: naranja como el botón Guardar */
.input-group-text {
    background-color: #f97316;
    color: #fff;
    border-color: #f97316;
}

/* En el login (tarjeta cyan) los inputs siguen siendo blancos */
.login-card .form-control { background-color: #fff; }
.login-card .form-control:focus { background-color: #fff; }

.text-primary { color: #1d4ed8 !important; }
.bg-primary-subtle { background-color: #dbeafe !important; }
.text-bg-primary { background-color: #1d4ed8 !important; color: #fff !important; }

/* ---- Tablas y tarjetas ---- */
.table { --bs-table-bg: #fff; }
.table > thead {
    --bs-table-color: #64748b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.card {
    --bs-card-border-color: #e2e8f0;
    --bs-card-cap-bg: #fff;
}

/* ============================================================
   Shell del layout
   ============================================================ */

.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: #fff;
    border-right: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-content {
    flex: 1;
    min-width: 0;
    background: #FAFBFC;
}

.sidebar-logo {
    height: 36px;
    width: auto;
}

/* Nav del sidebar (Bootstrap nav-pills + matices del tema) */
.app-sidebar .nav-link {
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    font-weight: 500;
    padding: .55rem .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    position: relative;
}
.app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}
.app-sidebar .nav-link.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 600;
}
.app-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35rem;
    bottom: .35rem;
    width: 3px;
    background: #f97316;
    border-radius: 2px;
}
.app-sidebar .nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
/* Flecha indicadora de submenú — empujada a la derecha; rota al expandirse */
.app-sidebar .nav-link .nav-chevron {
    width: 15px;
    height: 15px;
    margin-left: auto;
    transition: transform .2s ease;
    opacity: .8;
}
.app-sidebar .nav-link[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

/* Iconos emoji en el sidebar — tamaño consistente con los SVG */
.app-sidebar .nav-emoji {
    width: 22px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    /* Fuentes de emoji a color en Windows / macOS / Linux */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
    /* Restaurar saturación natural sobre el sidebar oscuro */
    filter: saturate(1.15);
}

/* Bordes / tonos en el sidebar */
.app-sidebar .border-bottom,
.app-sidebar .border-top { border-color: rgba(255, 255, 255, .15) !important; }
.app-sidebar .text-secondary { color: rgba(255, 255, 255, .65) !important; }
.app-sidebar .btn-outline-secondary {
    --bs-btn-color: rgba(255, 255, 255, .85);
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
    --bs-btn-hover-color: #fff;
}

@media (max-width: 768px) {
    .app-shell { flex-direction: column; }
    .app-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
}

/* ---- Marca usada en pantallas de auth (legacy) ---- */
/* ===== Toggle "ojito" para mostrar/ocultar contraseña ===== */
.pwd-wrap { position: relative; }
.btn-toggle-pwd {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #64748b;
    padding: 4px;
    line-height: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: color .15s, background .15s;
    z-index: 5;
}
.btn-toggle-pwd:hover { color: #0ea5e9; background: #f0f9ff; }
.btn-toggle-pwd:focus { outline: 2px solid #0ea5e9; outline-offset: 1px; }

/* ===== OTP (casillas de código de 6 dígitos) ===== */
.otp-wrap { user-select: none; }
.otp-cell {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #0c4a6e;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    background: #f8fbff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.otp-cell:focus {
    outline: none;
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.otp-cell:not(:placeholder-shown) { background: #fff; }
.otp-clear {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid #bae6fd;
    background: #f8fbff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.otp-clear:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.otp-clear:active { transform: scale(.94); }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Avatares con iniciales en la lista ---- */
.avatar-init {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .78rem;
    flex-shrink: 0;
}
.avatar-init.c1 { background: #FCE7F3; color: #BE185D; }
.avatar-init.c2 { background: #E0F2FE; color: #0369A1; }
.avatar-init.c3 { background: #EDE9FE; color: #6D28D9; }
.avatar-init.c4 { background: #FEF3C7; color: #A16207; }
.avatar-init.c5 { background: #DCFCE7; color: #15803D; }
.avatar-init.c6 { background: #FFE4E6; color: #BE123C; }
.avatar-init.c7 { background: #CFFAFE; color: #0E7490; }

/* ---- Avatar con foto en grillas ---- */
.avatar-foto {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

/* ---- Subida de foto en formularios ---- */
.tbd-foto-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.tbd-foto-prev {
    width: 144px;
    height: 144px;
    border-radius: 18px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    overflow: hidden;
    flex-shrink: 0;
}
.tbd-foto-prev img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tbd-foto-ctrls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tbd-btn-foto,
.tbd-btn-foto-del {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    width: fit-content;
}
.tbd-btn-foto {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}
.tbd-btn-foto:hover { background: #bae6fd; }
.tbd-btn-foto-del {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.tbd-btn-foto-del:hover { background: #fee2e2; }
.tbd-foto-hint {
    margin: 2px 0 0;
    font-size: .76rem;
    color: #94a3b8;
}

/* ---- Badges por rol ---- */
.badge-rol-estudiante { background: #DBEAFE; color: #1E40AF; }
.badge-rol-tutor      { background: #FEF3C7; color: #A16207; }
.badge-rol-psicologo  { background: #FCE7F3; color: #BE185D; }
.badge-rol-master     { background: #E0E7FF; color: #3730A3; }
.badge-rol-auditor    { background: #DCFCE7; color: #15803D; }

/* ---- Punto de estado en listas ---- */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ---- Cabecera de tabla con fondo claro ---- */
.table > thead > tr > th {
    background-color: #F8FAFC;
    color: #64748b;
    font-weight: 600;
}

/* ---- Cabecera de sección con icono (Bootstrap no lo trae) ---- */
.section-icon {
    width: 32px;
    height: 32px;
    border-radius: .55rem;
    background: rgba(249, 115, 22, .14);
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   Pantallas de autenticación (login centrado, tarjeta azul)
   ============================================================ */

.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-logo { height: 56px; width: auto; }

.login-card {
    background: linear-gradient(165deg, #53bfe6 0%, #3fa8d8 100%);
    border: 0;
    border-radius: 1.4rem;
    box-shadow: 0 22px 48px -16px rgba(39, 48, 74, .45);
    color: #fff;
}
.login-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto -48px;
    background: #fff;
    box-shadow: 0 10px 22px -6px rgba(39, 48, 74, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.login-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.login-title { letter-spacing: .2em; font-weight: 600; }

.login-card .input-group-text { background: #fff; border: 0; color: #93a0c6; }
.login-card button.input-group-text { cursor: pointer; transition: color .15s; }
.login-card button.input-group-text:hover,
.login-card button.input-group-text:focus { color: #3fa8d8; outline: none; }
.login-card .form-control { border: 0; box-shadow: none; }
.login-card .form-control:focus { box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .4); }
.login-card a { color: #fff; text-decoration: underline; }
.login-card a:hover { color: #eaf7fc; }
.login-card .form-check-label { color: #fff; }

/* ============================================================
   Tech Blue Dashboard (TBD)
   Estilos compartidos por las vistas:
     Usuarios/Index · _ListUsuarios · CreateEdit · Details
   Paleta: cian #bae6fd / azul oscuro #0c4a6e / acento naranja #f97316
   ============================================================ */

/* ---------- 1. Tarjetas base ---------- */
.tbd-card {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, .08);
    overflow: hidden;
}
.tbd-card-det {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, .08);
    overflow: hidden;
    height: 100%;
}

/* ---------- 2. Header de página (Index) ---------- */
.tbd-hdr { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.tbd-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 8px 20px rgba(59, 130, 246, .35);
    position: relative; flex-shrink: 0;
}
.tbd-icon[data-count]::after {
    content: attr(data-count);
    position: absolute; top: -6px; right: -6px;
    background: #ef4444; color: #fff;
    min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 11px;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.tbd-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800; font-size: 30px;
    color: #0c4a6e; margin: 0; letter-spacing: -.7px;
}
.tbd-sub { font-size: 14px; color: #0369a1; margin: 3px 0 0; font-weight: 500; }

/* ---------- 3. Header dentro de tarjeta (CreateEdit / Details cards) ---------- */
.tbd-hdr-form {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
    border-bottom: 1px solid #bae6fd;
}
.tbd-hdr-det {
    display: flex; align-items: flex-start; gap: 18px;
    margin-bottom: 22px;
}
.tbd-back {
    width: 42px; height: 42px; border-radius: 12px;
    background: #fff; border: 1px solid #bae6fd;
    color: #0c4a6e;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; text-decoration: none; flex-shrink: 0;
}
.tbd-back:hover { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.tbd-crumb {
    font-size: 12.5px; color: #0369a1; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 4px;
}
.tbd-crumb a { color: inherit; text-decoration: none; }
.tbd-crumb a:hover { color: #0c4a6e; }
.tbd-title-form {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800; font-size: 24px;
    color: #0c4a6e; margin: 0; letter-spacing: -.5px;
}
.tbd-sub-form { font-size: 13.5px; color: #0369a1; margin: 3px 0 0; font-weight: 500; }
.tbd-title-det {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800; font-size: 28px;
    color: #0c4a6e; margin: 0; letter-spacing: -.6px;
}

/* ---------- 4. Botones ---------- */
.tbd-btn-nuevo,
.tbd-btn-save,
.tbd-btn-edit {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff; border: none;
    padding: 10px 18px; border-radius: 12px;
    font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 14px rgba(249, 115, 22, .35);
    transition: all .2s;
    text-decoration: none;
}
.tbd-btn-nuevo:hover,
.tbd-btn-save:hover,
.tbd-btn-edit:hover {
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, .45);
    background: linear-gradient(135deg, #f97316, #ea580c);
}
.tbd-btn-save { padding: 9px 22px; border-radius: 10px; }
.tbd-btn-edit { padding: 10px 20px; border-radius: 11px; }
.tbd-btn-cancel {
    background: #fff; border: 1px solid #bae6fd;
    color: #0c4a6e;
    padding: 9px 22px; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    display: inline-flex; align-items: center;
    transition: all .15s;
}
.tbd-btn-cancel:hover { background: #f0f9ff; color: #0c4a6e; }

/* ---------- 5. Toolbar (Index) ---------- */
.tbd-toolbar {
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe) !important;
    border-bottom: 1px solid #bae6fd !important;
}

/* ---------- 6. Tabla (Index / _ListUsuarios) ---------- */
#tablaCrud { margin: 0; }
#tablaCrud thead th {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700; font-size: 12px;
    letter-spacing: 1px; text-transform: uppercase;
    color: #0c4a6e;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
    border-bottom: 2px solid #bae6fd !important;
    border-top: none;
}
#tablaCrud tbody tr {
    transition: all .18s;
    border-left: 3px solid transparent;
}
#tablaCrud tbody tr:hover {
    background: #f0f9ff !important;
    border-left-color: #0ea5e9;
}
#tablaCrud tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #e0f2fe;
    font-size: 13px;
    color: #0c4a6e;
    vertical-align: middle;
}

/* ---------- 7. Badges de rol con degradado ---------- */
.tbd-role {
    color: #fff;
    padding: 4px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    display: inline-block;
    line-height: 1.4;
}
.tbd-role-master      { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.tbd-role-psicologo   { background: linear-gradient(135deg, #10b981, #0d9488); }
.tbd-role-tutor       { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tbd-role-auditor     { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tbd-role-estudiante  { background: linear-gradient(135deg, #06b6d4, #0891b2); }
/* Variante grande para hero/detalle */
.tbd-role-hero {
    color: #fff; padding: 5px 14px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
}

/* ---------- 8. Botones de acción (tabla) ---------- */
.tbd-act {
    width: 28px; height: 28px;
    border: none; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s; font-weight: 600;
    padding: 0;
}
.tbd-act + .tbd-act { margin-left: 4px; }
.tbd-act-ver  { background: #dbeafe; color: #1e40af; }
.tbd-act-ver:hover  { background: #2563eb; color: #fff; transform: scale(1.08); }
.tbd-act-edit { background: #ccfbf1; color: #0f766e; }
.tbd-act-edit:hover { background: #14b8a6; color: #fff; transform: scale(1.08); }
.tbd-act-perm { background: #fef3c7; color: #a16207; }
.tbd-act-perm:hover { background: #f59e0b; color: #fff; transform: scale(1.08); }
.tbd-act-del  { background: #fee2e2; color: #b91c1c; }
.tbd-act-del:hover  { background: #ef4444; color: #fff; transform: scale(1.08); }

/* Encabezado y celda de acciones: en una sola línea */
#tablaCrud th.tbd-col-acciones,
#tablaCrud td.tbd-col-acciones { white-space: nowrap; }
/* Columna de rol más angosta para que quepan los botones de acción */
#tablaCrud th.tbd-col-rol,
#tablaCrud td.tbd-col-rol { width: 116px; }
/* Texto del badge de rol dentro de la grilla, 2 pt más pequeño */
#tablaCrud td.tbd-col-rol .tbd-role { font-size: 11px; }

/* ---------- 8b. Modal de confirmación global (ModalConfirm) ---------- */
.mc-content {
    border: none; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px -16px rgba(12, 74, 110, .45);
}
.mc-header {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #0ea5e9, #0c4a6e);
    color: #fff;
}
.mc-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .18);
}
.mc-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800; font-size: 18px; margin: 0; letter-spacing: -.3px;
}
.mc-body {
    padding: 24px 26px;
    font-size: 14.5px; color: #0c4a6e; line-height: 1.55;
}
.mc-footer {
    padding: 16px 26px; background: #f0f9ff;
    border-top: 1px solid #bae6fd;
    display: flex; justify-content: flex-end; gap: 10px;
}
.mc-btn-cerrar {
    background: #fff; border: 1px solid #bae6fd; color: #0c4a6e;
    padding: 9px 20px; border-radius: 10px;
    font-weight: 600; font-size: 14px; transition: all .15s;
}
.mc-btn-cerrar:hover { background: #e0f2fe; }
.mc-btn-confirmar {
    border: none; color: #fff;
    padding: 9px 22px; border-radius: 10px;
    font-weight: 600; font-size: 14px; transition: all .2s;
    display: inline-flex; align-items: center; gap: 8px;
}
.mc-btn-confirmar:hover { color: #fff; transform: translateY(-2px); }
/* Variantes de color del botón Confirmar / icono según el tipo de acción */
.mc-peligro    .mc-btn-confirmar { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 6px 14px rgba(220, 38, 38, .38); }
.mc-advertencia .mc-btn-confirmar { background: linear-gradient(135deg, #fb923c, #f97316); box-shadow: 0 6px 14px rgba(249, 115, 22, .38); }
.mc-info       .mc-btn-confirmar { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 6px 14px rgba(2, 132, 199, .38); }
.mc-exito      .mc-btn-confirmar { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 14px rgba(5, 150, 105, .38); }

/* ---------- 9. Footer (paginación tabla / formulario) ---------- */
.tbd-foot { background: #f0f9ff; border-top: 1px solid #bae6fd; }
.tbd-foot-form {
    padding: 20px 28px;
    background: #f0f9ff;
    border-top: 1px solid #bae6fd;
    display: flex; justify-content: flex-end; gap: 10px;
}

/* ---------- 10. Sección con icono (CreateEdit, cards) ---------- */
.tbd-body { padding: 28px; }
.tbd-section { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; margin-top: 6px; }
.tbd-section.mt0 { margin-top: 0; }
/* Recuadro de ayuda/aviso dentro de formularios */
.tbd-hint {
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
    border-radius: 10px;
    font-size: 12.5px;
    color: #0369a1;
    margin-bottom: 18px;
}
.tbd-sicon {
    width: 32px; height: 32px; border-radius: 10px;
    background: #dbeafe; color: #1e40af;
    display: flex; align-items: center; justify-content: center;
}
.tbd-stitle {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700; font-size: 14px;
    color: #0c4a6e; margin: 0;
}

/* ---------- 11. Inputs personalizados (CreateEdit) ---------- */
.tbd-label {
    font-size: 12.5px; font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 6px; display: block;
}
.tbd-ig {
    display: flex; align-items: stretch;
    border: 1.5px solid #bae6fd; border-radius: 10px;
    overflow: hidden;
    transition: all .15s;
    background: #fff;
}
.tbd-ig:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.tbd-pre {
    width: 42px;
    background: #f0f9ff; color: #0369a1;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid #bae6fd;
    flex-shrink: 0;
}
.tbd-inp {
    flex: 1; border: none; outline: none;
    padding: 9px 12px;
    font-size: 14px; color: #0c4a6e;
    background: transparent;
    min-width: 0;
}
.tbd-inp[readonly] { background: #f0f9ff; color: #64748b; cursor: not-allowed; }
/* Selector de color (input type=color) en formularios */
.tbd-color {
    width: 54px; height: 40px;
    padding: 4px;
    border: 1.5px solid #bae6fd; border-radius: 10px;
    background: #fff; cursor: pointer;
}
.tbd-sel {
    border: 1.5px solid #bae6fd; border-radius: 10px;
    padding: 9px 12px; width: 100%;
    font-size: 14px; color: #0c4a6e;
    background: #fff;
    transition: all .15s;
}
.tbd-sel:focus {
    border-color: #0ea5e9; outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

/* Select2 alineado al estilo .tbd-sel — mismo alto, color, borde y focus. */
.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    background: #fff;
    transition: all .15s;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0c4a6e;
    font-size: 14px;
    line-height: 38px;
    padding-left: 12px;
    padding-right: 32px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #bae6fd;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 14px;
    color: #0c4a6e;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0ea5e9;
}
.tbd-toggle {
    background: transparent; border: none;
    border-left: 1px solid #bae6fd;
    padding: 0 14px;
    color: #0369a1; font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.tbd-toggle:hover { background: #e0f2fe; }
.tbd-err { display: block; font-size: 12px; color: #dc2626; margin-top: 4px; }

/* Contenedor del switch (.form-check.form-switch).
   NO usar `padding: 7px 0` porque Bootstrap requiere el padding-left
   (1.5em para checkbox, 2.5em para switch) — el input flota a la izquierda
   con margin-left negativo. Sin ese padding, el switch sale del contenedor. */
.tbd-switch-wrap {
    margin-top: 6px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.tbd-switch-wrap .form-check-label {
    color: #0c4a6e;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}
.tbd-switch-wrap .form-check-input:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}
.tbd-switch-wrap .form-check-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

/* ---------- 12. Hero (Details) ---------- */
.tbd-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd; border-radius: 16px;
    padding: 28px;
    display: flex; align-items: center; gap: 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, .08);
}
.tbd-hero-av {
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 30px;
    box-shadow: 0 8px 22px rgba(14, 165, 233, .35);
    flex-shrink: 0;
}
.tbd-hero-av-foto {
    width: 84px; height: 84px; border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(14, 165, 233, .35);
    flex-shrink: 0;
    border: 2px solid #fff;
}
.tbd-hero-info { flex: 1; min-width: 0; }
.tbd-hero-nm {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 22px;
    color: #0c4a6e; margin: 0 0 4px;
}
.tbd-hero-em { font-size: 14px; color: #0369a1; margin: 0 0 10px; }
.tbd-hero-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 13. Estado activo/inactivo (Details) ---------- */
.tbd-st-act {
    background: #dcfce7; color: #15803d;
    padding: 5px 12px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}
.tbd-st-ina {
    background: #fee2e2; color: #b91c1c;
    padding: 5px 12px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- 14. Tarjetas de información (Details) ---------- */
.tbd-card-hdr {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 22px;
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
    border-bottom: 1px solid #bae6fd;
}
.tbd-card-icon {
    width: 32px; height: 32px; border-radius: 10px;
    background: #dbeafe; color: #1e40af;
    display: flex; align-items: center; justify-content: center;
}
.tbd-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 14px;
    color: #0c4a6e; margin: 0; flex: 1;
}
.tbd-card-badge {
    background: #0ea5e9; color: #fff;
    padding: 2px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
}
.tbd-card-body { padding: 22px; }

/* ---------- 15. Lista de definiciones (Details) ---------- */
.tbd-dl { margin: 0; }
.tbd-dl-row {
    display: grid; grid-template-columns: 160px 1fr;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed #e0f2fe;
}
.tbd-dl-row:last-child { border-bottom: none; padding-bottom: 0; }
.tbd-dl-row:first-child { padding-top: 0; }
.tbd-dt {
    font-size: 12.5px; font-weight: 600; color: #0369a1;
    text-transform: uppercase; letter-spacing: .5px;
}
.tbd-dd { font-size: 14px; color: #0c4a6e; font-weight: 500; margin: 0; }
.tbd-dd-strong { font-weight: 700; }

/* ---------- 16. Chips de permisos (Details) ---------- */
.tbd-perm-empty {
    text-align: center; padding: 24px 8px;
    color: #64748b; font-size: 13.5px;
}
.tbd-perm-empty svg { margin-bottom: 8px; color: #bae6fd; }
.tbd-perm-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0f9ff; color: #0c4a6e;
    border: 1px solid #bae6fd;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
}
.tbd-perm-chip::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #0ea5e9;
}

/* ============================================================
   Importaciones (Estudiantes / Trazabilidades)
   ============================================================ */
.imp-step { display:flex; gap:16px; padding:22px 24px; border-bottom:1px solid #e0f2fe; }
.imp-step:last-child { border-bottom:none; }
.imp-num {
    width:38px; height:38px; border-radius:50%; flex-shrink:0;
    background:linear-gradient(135deg,#0ea5e9,#0c4a6e); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:16px;
    font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
.imp-step-body { flex:1; min-width:0; }
.imp-step-title { font-weight:700; font-size:15px; color:#0c4a6e; margin:0 0 3px; }
.imp-step-desc  { font-size:13px; color:#5d6680; margin:0 0 12px; }
.imp-file {
    border:1.6px dashed #7dd3fc; border-radius:11px;
    padding:9px 12px; font-size:14px; color:#0c4a6e; background:#f0f9ff;
    width:100%; max-width:440px;
}
.imp-btn {
    border:none; border-radius:10px; padding:9px 20px;
    font-weight:600; font-size:14px; cursor:pointer;
    display:inline-flex; align-items:center; gap:8px; transition:all .18s;
    text-decoration:none;
}
.imp-btn-plantilla { background:#dbeafe; color:#1e40af; }
.imp-btn-plantilla:hover { background:#2563eb; color:#fff; }
.imp-btn-cargar {
    background:linear-gradient(135deg,#38bdf8,#0284c7); color:#fff;
    box-shadow:0 6px 14px rgba(2,132,199,.32);
}
.imp-btn-cargar:hover { color:#fff; transform:translateY(-2px); }
.imp-btn-agregar {
    background:linear-gradient(135deg,#34d399,#059669); color:#fff;
    box-shadow:0 6px 14px rgba(5,150,105,.34);
}
.imp-btn-agregar:hover { color:#fff; transform:translateY(-2px); }
.imp-resumen {
    background:#ecfdf5; border:1px solid #a7f3d0; border-radius:11px;
    padding:10px 14px; font-size:13.5px; color:#065f46; margin-bottom:14px;
    display:flex; align-items:center; gap:8px;
}
#tablaPreview th { font-size:11px; }
#tablaPreview td { font-size:12.5px; }

/* ---- Overlay de procesamiento (loader) ---- */
.imp-overlay {
    position:fixed; inset:0; z-index:2000;
    background:rgba(15,23,42,.55); backdrop-filter:blur(2px);
    display:flex; align-items:center; justify-content:center;
}
.imp-overlay-card {
    background:#fff; border-radius:14px; padding:22px 30px;
    box-shadow:0 18px 46px rgba(2,132,199,.28);
    display:flex; align-items:center; gap:16px; max-width:380px;
}
.imp-overlay-spinner {
    width:38px; height:38px; border-radius:50%;
    border:4px solid #e0f2fe; border-top-color:#0284c7;
    animation:impSpin .85s linear infinite;
    flex-shrink:0;
}
@keyframes impSpin { to { transform:rotate(360deg); } }
.imp-overlay-text { font-size:14.5px; color:#0c4a6e; font-weight:600; line-height:1.35; }
.imp-overlay-sub  { font-size:12.5px; color:#5d6680; font-weight:400; margin-top:3px; }

/* ---- Chip de color de riesgo en grilla de estudiantes ---- */
.tbd-riesgo-chip {
    display:inline-block;
    width:22px; height:22px; border-radius:6px;
    box-shadow:0 0 0 1px rgba(15,23,42,.10), inset 0 -1px 0 rgba(15,23,42,.08);
    cursor:help;
    vertical-align:middle;
}

/* ============================================================
   Buscador de estudiante (compartido por Entrevista Inicial y Consultas)
   ============================================================ */
.ent-search       { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ent-criteria     { display: flex; gap: 14px; flex-wrap: wrap; }
.ent-radio        { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 10px; background: #f0f9ff; border: 1.5px solid #bae6fd; cursor: pointer; font-size: 13px; color: #0c4a6e; }
.ent-radio:has(input:checked) { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.ent-buscar-row   { display: flex; gap: 8px; align-items: stretch; }
.ent-msg          { padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.ent-msg.error    { background: #fee2e2; color: #b91c1c; }

/* ---- Autocomplete del buscador de estudiantes (Entrevista Inicial) ----
   Usa position:fixed (no absolute) para que el dropdown se renderice
   relativo al viewport y NO sea recortado por contenedores ancestros
   con overflow:hidden (p.ej. .tbd-card). Las coordenadas top/left/width
   las calcula el JS desde el rect del input al abrir el dropdown. */
.ent-autocomplete-wrap { position: relative; }
.ent-autocomplete {
    position: fixed;
    z-index: 1080;
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(2, 132, 199, .18);
    max-height: 320px; overflow-y: auto;
    padding: 4px 0;
}
.ent-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid #f1f5f9;
}
.ent-autocomplete-item:last-child { border-bottom: none; }
.ent-autocomplete-item:hover,
.ent-autocomplete-item.is-active   { background: #f0f9ff; }
.ent-autocomplete-name             { font-size: 13.5px; font-weight: 600; color: #0c4a6e; }
.ent-autocomplete-meta             { font-size: 11.5px; color: #64748b; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.ent-autocomplete-meta span        { display: inline-flex; align-items: center; gap: 4px; }
.ent-autocomplete-meta strong      { color: #0369a1; font-weight: 600; }
.ent-autocomplete-empty            { padding: 12px; text-align: center; color: #94a3b8; font-size: 12.5px; }

/* ---- Banner de borrador recuperado (autoguardado del form de entrevista) ---- */
.ent-borrador-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px;
    background: #eff6ff; border: 1px solid #93c5fd; border-radius: 10px;
    color: #1e40af; font-size: 13px;
    margin-bottom: 12px;
}
.ent-borrador-banner strong { color: #1e3a8a; }
.ent-borrador-banner .ent-borrador-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ent-borrador-btn { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; transition: background .15s; }
.ent-borrador-btn-primary    { background: #2563eb; color: #fff; }
.ent-borrador-btn-primary:hover    { background: #1e40af; }
.ent-borrador-btn-secondary  { background: #fff; color: #475569; border: 1px solid #cbd5e1; }
.ent-borrador-btn-secondary:hover  { background: #f1f5f9; }

/* Flash visual al restaurar un campo desde el autoguardado. */
@keyframes entBorradorFlash {
    0%   { background-color: #fef9c3; box-shadow: 0 0 0 3px rgba(253, 224, 71, .65); }
    100% { background-color: transparent; box-shadow: 0 0 0 0 transparent; }
}
.ent-borrador-flash { animation: entBorradorFlash 1.1s ease-out; }

/* ============================================================
   Consultas (lista de actividades + detalle de entrevista)
   ============================================================ */

/* Body padding compartido */
.cons-card .tbd-body,
.det-card .tbd-body { padding: 18px 24px 24px; }

/* ---- Ficha del estudiante (mismo bloque en lista y en detalle) ---- */
.cons-ficha,
.det-ficha { display: flex; gap: 16px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #f0f9ff, #ede9fe); border: 1px solid #bae6fd; }
.cons-ficha-avatar { flex-shrink: 0; }
.cons-iniciales { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #8b5cf6); color: #fff; font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cons-ficha-body { flex: 1; min-width: 0; }
.cons-ficha-row,
.det-ficha-row  { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.cons-ficha-name,
.det-ficha-name { font-size: 18px; font-weight: 700; color: #0c4a6e; }
.cons-riesgo-tag,
.det-riesgo-tag { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.cons-ficha-meta,
.det-ficha-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #475569; margin-top: 4px; }
.cons-ficha-meta strong,
.det-ficha-meta strong { color: #0c4a6e; font-weight: 600; }

/* ---- KPIs (lista) ---- */
.cons-kpis     { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cons-kpi      { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.cons-kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cons-kpi-num  { font-size: 22px; font-weight: 800; color: #0c4a6e; line-height: 1; }
.cons-kpi-lbl  { font-size: 12.5px; color: #64748b; margin-top: 2px; }

/* ---- Filtros (lista) ---- */
.cons-filtros       { padding: 14px 16px; border-radius: 14px; background: #f8fbff; border: 1px solid #e0f2fe; }
.cons-filtros-title { font-size: 13px; font-weight: 700; color: #0c4a6e; margin-bottom: 8px; }
.cons-filtros-row   { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cons-filtros-row .tbd-label { font-size: 11.5px; color: #475569; margin-bottom: 3px; }

/* ---- Timeline horizontal (lista) ---- */
.cons-timeline-hdr   { margin-bottom: 8px; }
.cons-timeline-title { font-size: 15px; font-weight: 700; color: #0c4a6e; margin: 0; }
.cons-timeline-sub   { font-size: 12px; color: #64748b; margin: 2px 0 0 0; }
.cons-timeline {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: hidden;
    padding: 8px 4px 14px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
.cons-timeline::-webkit-scrollbar { height: 8px; }
.cons-timeline::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.cons-timeline::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.cons-card-act {
    --card-color: #0ea5e9;
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--card-color);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
    transition: transform .12s, box-shadow .12s;
}
.cons-card-act:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.cons-card-act.is-clickable { cursor: pointer; }
.cons-card-act.is-clickable:hover { border-color: var(--card-color); }
.cons-card-top       { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cons-card-top-right { display: inline-flex; align-items: center; gap: 6px; }
.cons-chip           { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: #fff; padding: 3px 8px; border-radius: 999px; }
.cons-pendiente      { font-size: 10.5px; font-weight: 700; color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 999px; }
.cons-card-pdf       { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1.4px solid #bae6fd; color: #0369a1; text-decoration: none; transition: all .15s; }
.cons-card-pdf:hover { background: #0ea5e9; border-color: #0ea5e9; color: #fff; transform: translateY(-1px); }
.cons-card-tipo   { font-size: 14px; font-weight: 700; color: #0c4a6e; }
.cons-card-fecha  { font-size: 12.5px; color: #475569; }
.cons-card-hora   { color: #64748b; }
.cons-card-prof   { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #1e293b; }
.cons-card-prof small { color: #94a3b8; }
.cons-card-solic  { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #5b21b6; background: #ede9fe; padding: 2px 8px; border-radius: 999px; align-self: flex-start; }
.cons-card-obs    { font-size: 11.5px; color: #64748b; max-height: 36px; overflow: hidden; line-height: 1.4; }

.cons-empty { padding: 24px; text-align: center; color: #64748b; font-size: 13px; background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1; }

/* ---- Detalle de entrevista ---- */
.det-actions               { display: flex; gap: 8px; align-items: center; }
.det-actions .tbd-btn-save { display: inline-flex; align-items: center; gap: 6px; }
.det-section { display: flex; align-items: center; gap: 8px; padding: 6px 0 4px; border-bottom: 1.5px solid #e0f2fe; margin-bottom: 6px; }
.det-stitle  { margin: 0; font-size: 14px; font-weight: 700; color: #0c4a6e; }

/* ---- Consulta de Entrevistas (filtros + grilla) ---- */
.cons-ent-form { width: 100%; }
.cons-ent-filtros {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 140px 140px minmax(220px, 1.6fr) auto;
    gap: 12px;
    align-items: end;
}
@media (max-width: 991px) {
    .cons-ent-filtros { grid-template-columns: 1fr 1fr; }
    .cons-ent-acciones { grid-column: 1 / -1; }
}
.cons-ent-estudiante { position: relative; }
.cons-ent-acciones { display: flex; gap: 8px; align-items: center; }

.cons-ent-result        { width: 100%; }
.cons-ent-result-hdr    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 0 4px; }
.cons-ent-result-count  { font-size: 12.5px; color: #475569; font-weight: 600; }

.cons-ent-tabla-wrap    { overflow-x: auto; border: 1px solid #e0f2fe; border-radius: 12px; background: #fff; }
.cons-ent-tabla         { width: 100%; border-collapse: collapse; font-size: 13px; }
.cons-ent-tabla thead th {
    text-align: left; padding: 10px 12px;
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
    color: #0c4a6e; font-weight: 700; font-size: 12px;
    border-bottom: 1px solid #bae6fd;
    white-space: nowrap;
}
.cons-ent-tabla tbody td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }
.cons-ent-tabla tbody tr:hover { background: #f8fbff; }
.cons-ent-tabla tbody tr:last-child td { border-bottom: 0; }
.cons-ent-tabla .cons-ent-obs { max-width: 320px; }
.cons-ent-tabla .cons-ent-obs span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cons-ent-tabla .cons-ent-acc { width: 1%; white-space: nowrap; text-align: center; }
.cons-ent-dash { color: #94a3b8; }

.cons-ent-link { color: #0c4a6e; font-weight: 600; text-decoration: none; }
.cons-ent-link:hover { text-decoration: underline; }
.cons-ent-cod { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 11px; font-weight: 700; }

.cons-ent-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e2e8f0; color: #475569; }
.cons-ent-tag-ini { background: #dbeafe; color: #1e40af; }
.cons-ent-tag-seg { background: #dcfce7; color: #166534; }
.cons-ent-tag-tut { background: #fef3c7; color: #92400e; }
.cons-ent-tag-otr { background: #f3e8ff; color: #6b21a8; }

.cons-ent-btn-pdf {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 8px;
    background: #fee2e2; color: #b91c1c;
    border: 1px solid #fca5a5;
    font-size: 11.5px; font-weight: 700; text-decoration: none;
    transition: background .15s, color .15s;
}
.cons-ent-btn-pdf:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }

/* Header de la tabla con orden — el TH es clickable (data-col en JS). */
.cons-ent-tabla thead th[data-col] { cursor: pointer; }
.cons-ent-tabla thead th[data-col]:hover { background: linear-gradient(180deg, #e0f2fe, #bae6fd); }

.det-fotos      { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
/* La foto se muestra COMPLETA dentro del cuadro (object-fit: contain), nunca
   recortada. El cuadro tiene altura fija para que dos o tres fotos queden
   uniformes en la grilla y el fondo neutro rellena los márgenes que sobren
   cuando la relación de aspecto de la foto no coincide con la del cuadro. */
.det-foto       { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; height: 260px; background: #f1f5f9; padding: 6px; }
.det-foto img   { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .2s; }
.det-foto:hover img { transform: scale(1.02); }

.det-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.det-qr   { padding: 10px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.det-q    { font-size: 11.5px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.det-r    { font-size: 13.5px; color: #0c4a6e; white-space: pre-wrap; }
