/* 
 * EPIS — Escuela Profesional de Ingeniería de Sistemas
 * Estilos Principales Rediseñados (Outfit & Inter + Glassmorphism Premium)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --fuente-principal: 'Inter', sans-serif;
    --fuente-titulos: 'Outfit', sans-serif;

    /* Paleta de Colores Moderna - Modo Claro */
    --color-primario: #4f46e5;
    /* Indigo Premium */
    --color-primario-rgb: 79, 70, 229;
    --color-primario-oscuro: #4338ca;
    --color-secundario: #10b981;
    /* Emerald Green */
    --color-secundario-rgb: 16, 185, 129;
    --color-acento: #f59e0b;
    /* Amber */
    --color-fondo: #f8fafc;
    /* Slate Light */
    --color-superficie: #ffffff;

    --color-texto-primario: #0f172a;
    /* Slate 900 */
    --color-texto-secundario: #475569;
    /* Slate 600 */
    --color-texto-terciario: #94a3b8;
    /* Slate 400 */
    --color-borde: #e2e8f0;
    /* Slate 200 */
    /* Sidebar Tipo Isla (Flotante Blanco - Light Sidebar) */
    --sidebar-ancho: 280px;
    --sidebar-bg: #ffffff;
    --sidebar-texto: #475569;
    --sidebar-texto-activo: #ffffff;
    --sidebar-bg-activo: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --sidebar-borde: #e2e8f0;

    /* Navbar */
    --navbar-alto: 75px;
    --navbar-bg: rgba(255, 255, 255, 0.8);

    /* Sombras y Bordes */
    --sombra-sutil: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    --sombra-premium: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --sombra-card-hover: 0 20px 25px -5px rgba(79, 70, 229, 0.12), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
    --sombra-glow-primario: 0 0 25px rgba(79, 70, 229, 0.25);
    --radio-borde: 16px;
    --radio-borde-lg: 24px;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto-primario);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-titulo {
    font-family: var(--fuente-titulos);
    font-weight: 700;
}

/* ─── Layout Base ─────────────────────────────────────────────────── */

#contenedor-aplicacion {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-fondo);
    color: var(--color-texto-primario);
}

#contenido-principal {
    flex-grow: 1;
    margin-left: calc(var(--sidebar-ancho) + 14px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

.cuerpo-pagina {
    padding: 1.75rem;
    flex-grow: 1;
}

/* ─── Sidebar Blanco Estilo TailAdmin / Metronic (Referencia) ─────── */

/* ─── Sidebar Blanco Flotante Tipo Isla (TailAdmin / Metronic Style) ─────── */

/* ─── Sidebar Tipo Untitled UI (Minimalista, Sofisticado) ─────── */

.barra-lateral {
    width: calc(var(--sidebar-ancho) - 20px);
    background: #ffffff !important;
    color: #344054 !important;
    position: fixed;
    top: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 12px 32px -4px rgba(16, 24, 40, 0.08), 0 0 0 1px #eaecf0 !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
}

.sidebar-encabezado {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    border-bottom: 1px solid #f2f4f7;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.95rem !important;
}

.sidebar-logo-img {
    height: 34px;
    max-width: 44px;
    min-width: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.sidebar-logo-titulo {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.05rem;
    color: #101828 !important;
    line-height: 1.2;
}

.sidebar-badge-version {
    font-size: 0.65rem;
    font-weight: 700;
    background: #f4f3ff;
    color: #5925dc;
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
    border: 1px solid #e9d7fe;
}

.sidebar-logo-subtitulo {
    font-size: 0.72rem;
    color: #667085;
    font-weight: 400;
}

/* Buscador Rápido Integrado */
.sidebar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-icon {
    position: absolute;
    left: 0.75rem;
    color: #667085;
    font-size: 0.85rem;
    pointer-events: none;
}

.sidebar-search-input {
    padding: 0.45rem 2.2rem 0.45rem 2.2rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    border: 1px solid #d0d5dd !important;
    background: #ffffff !important;
    color: #101828 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
}

.sidebar-search-input:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.sidebar-search-shortcut {
    position: absolute;
    right: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #667085;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 0.75rem 0.75rem;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-seccion {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #667085 !important;
    padding: 0.85rem 0.6rem 0.35rem 0.6rem;
    margin-top: 0.35rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    color: #344054 !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.sidebar-item a i {
    font-size: 1.15rem;
    color: #667085 !important;
    transition: color 0.15s ease;
}

.sidebar-item a:hover {
    background-color: #f9fafb !important;
    color: #182230 !important;
}

.sidebar-item a:hover i {
    color: #4f46e5 !important;
}

/* Ítem Activo estilo Untitled UI (Pastilla Índigo Tinta Suave) */
.sidebar-item.activo a {
    color: #4f46e5 !important;
    background: #f4f3ff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.sidebar-item.activo a i {
    color: #4f46e5 !important;
}

.sidebar-badge-count {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

/* Pinned Bottom Item */
.sidebar-fijo-inferior {
    padding: 0.35rem 0.75rem 0.15rem 0.75rem;
    border-top: none;
    background: transparent;
    flex-shrink: 0;
}

/* Pie de Usuario (Footer Widget) */
.sidebar-pie {
    padding: 0.35rem 1rem 0.85rem 1rem;
    border-top: none;
    background-color: transparent;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0.2rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7f56d9;
    box-shadow: 0 0 0 2px var(--color-superficie, #ffffff), 0 3px 10px rgba(124, 58, 237, 0.25);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-user-card a:hover .sidebar-user-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--color-superficie, #ffffff), 0 4px 14px rgba(124, 58, 237, 0.38);
}

.sidebar-user-avatar-initials {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #7f56d9;
    box-shadow: 0 0 0 2px var(--color-superficie, #ffffff), 0 3px 10px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-user-card a:hover .sidebar-user-avatar-initials {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--color-superficie, #ffffff), 0 4px 14px rgba(124, 58, 237, 0.38);
}

.sidebar-user-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #12b76a;
    border: 2px solid var(--color-superficie, #ffffff);
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.84rem;
    color: #101828;
    line-height: 1.25;
    transition: color 0.15s ease;
}

.sidebar-user-card a:hover .sidebar-user-name {
    color: #7f56d9;
}

.sidebar-user-role {
    font-size: 0.72rem;
    color: #667085;
}

.sidebar-user-logout-btn {
    color: #667085 !important;
    padding: 6px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.sidebar-user-logout-btn:hover {
    color: #d92d20 !important;
    background-color: rgba(217, 45, 32, 0.08);
}

/* ─── Navbar Superior ────────────────────────────────────────────── */

.barra-navegacion {
    height: var(--navbar-alto);
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    margin: 14px 14px 0 14px;
    border-radius: 16px;
    border: 1px solid #eaecf0;
    box-shadow: 0 12px 32px -4px rgba(16, 24, 40, 0.06), 0 0 0 1px #eaecf0;
    position: relative;
    top: auto;
    z-index: 1020;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-toggle-btn {
    background: none;
    border: none;
    color: var(--color-texto-primario);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.navbar-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.navbar-derecha {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ─── Dropdowns & Badges ──────────────────────────────────────────── */

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--color-texto-secundario);
    font-size: 1.35rem;
    position: relative;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-btn::after,
.nav-icon-btn.dropdown-toggle::after {
    display: none !important;
}

.nav-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-texto-primario);
    transform: scale(1.05);
}

/* ─── Untitled UI Notification System ────────────────────────────── */
.dropdown-menu-untitled {
    width: 380px !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 16px !important;
    border: 1px solid #eaecf0 !important;
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.1), 0 8px 8px -4px rgba(16, 24, 40, 0.04) !important;
    background: #ffffff !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.notif-header-untitled {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f2f4f7;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-title-untitled {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 0.95rem;
    color: #101828;
}

.badge-untitled-purple {
    background-color: #f4f3ff !important;
    color: #6941c6 !important;
    border: 1px solid #e9d7fe !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 12px !important;
}

.btn-link-untitled-purple {
    color: #6941c6 !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn-link-untitled-purple:hover {
    color: #53389e !important;
}

.notif-item-untitled {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f2f4f7;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    position: relative;
    background-color: #ffffff;
}

.notif-item-untitled:hover {
    background-color: #f9fafb !important;
}

.notif-item-untitled.unread {
    background-color: #fcfcfd;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #7f56d9;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-icon-box.info {
    background-color: #f4f3ff;
    color: #6941c6;
    border: 1px solid #e9d7fe;
}

.notif-icon-box.exito {
    background-color: #ecfdf3;
    color: #079455;
    border: 1px solid #abefc6;
}

.notif-icon-box.advertencia {
    background-color: #fffaeb;
    color: #b54708;
    border: 1px solid #fedf89;
}

.notif-icon-box.error {
    background-color: #fef3f2;
    color: #d92d20;
    border: 1px solid #fecdca;
}

.notif-item-title {
    font-weight: 600;
    font-size: 0.84rem;
    color: #101828;
    line-height: 1.3;
}

.notif-item-desc {
    font-size: 0.78rem;
    color: #475569;
    margin-top: 2px;
    line-height: 1.35;
}

.notif-item-time {
    font-size: 0.72rem;
    color: #667085;
    margin-top: 4px;
}

.notif-footer-untitled {
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #f2f4f7;
    text-align: center;
}

.notif-footer-btn {
    color: #6941c6 !important;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: color 0.15s ease;
}

.notif-footer-btn:hover {
    color: #53389e !important;
}

/* Page List Untitled UI */
.notif-page-list .notif-page-item {
    border-bottom: 1px solid #f2f4f7;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

.notif-page-list .notif-page-item:last-child {
    border-bottom: none !important;
}

.notif-page-list .notif-page-item:hover {
    background-color: #f9fafb;
}

.notif-page-list .notif-page-item.unread {
    background-color: #fcfcfd;
}

/* ─── Untitled UI User Dropdown Menu ────────────────────────────── */
.user-dropdown-untitled {
    width: 270px !important;
    border-radius: 16px !important;
    border: 1px solid #eaecf0 !important;
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.1), 0 8px 8px -4px rgba(16, 24, 40, 0.04) !important;
    background: #ffffff !important;
    padding: 0.5rem !important;
    overflow: hidden !important;
}

.user-header-untitled {
    padding: 0.75rem 0.85rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    border: 1px solid #f2f4f7;
}

.user-header-name {
    font-weight: 600;
    font-size: 0.86rem;
    color: #101828;
}

.user-header-email {
    font-size: 0.75rem;
    color: #667085;
}

.user-menu-item-untitled {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.82rem;
    color: #344054 !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.user-menu-item-untitled i {
    font-size: 1rem;
    color: #667085;
    transition: color 0.15s ease;
}

.user-menu-item-untitled:hover {
    background-color: #f9fafb !important;
    color: #101828 !important;
}

.user-menu-item-untitled:hover i {
    color: #6941c6 !important;
}

.user-menu-item-untitled.logout-item:hover {
    background-color: #fef3f2 !important;
    color: #d92d20 !important;
}

.user-menu-item-untitled.logout-item:hover i {
    color: #d92d20 !important;
}

.user-menu-divider-untitled {
    height: 1px;
    background-color: #f2f4f7;
    margin: 0.4rem 0;
}

/* ─── Untitled UI Table & Skeleton Loader ────────────────────────── */
.table-untitled-ui {
    margin-bottom: 0 !important;
}

.table-untitled-ui thead tr {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #eaecf0 !important;
}

.table-untitled-ui th {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #475569 !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid #eaecf0 !important;
    white-space: nowrap;
}

.table-untitled-ui td {
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid #f2f4f7 !important;
    vertical-align: middle !important;
    color: #344054;
}

.table-untitled-ui tbody tr {
    transition: background-color 0.15s ease;
    background-color: #ffffff;
}

.table-untitled-ui tbody tr:hover {
    background-color: #f9fafb !important;
}

.table-untitled-ui tbody tr:last-child td {
    border-bottom: none !important;
}

.card-footer-untitled {
    border-top: 1px solid #f2f4f7 !important;
}

/* Curated Premium KPI Icon Variants (Untitled UI) */
.kpi-icon-neutral {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    color: #475467;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.kpi-icon-purple {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f4f3ff;
    border: 1px solid #e9d7fe;
    color: #6941c6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.kpi-icon-blue {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff4ff;
    border: 1px solid #d1e9ff;
    color: #3538cd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.kpi-icon-teal {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0f9ff;
    border: 1px solid #b9e6fe;
    color: #026aa2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-quick-action {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    transition: all 0.2s ease-in-out;
}

.btn-quick-action:hover {
    background: #f9fafb;
    border-color: #d0d5dd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

/* Botones de acción estilizados para tablas Untitled UI */
.btn-action-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eaecf0;
    background-color: #ffffff;
    color: #475467;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.btn-action-icon:hover {
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}

.btn-action-icon-eye:hover {
    background-color: #f0f9ff;
    border-color: #b9e6fe;
    color: #026aa2;
}

.btn-action-icon-edit:hover {
    background-color: #f4f3ff;
    border-color: #e9d7fe;
    color: #6941c6;
}

.btn-action-icon-danger:hover {
    background-color: #fef3f2;
    border-color: #fecdca;
    color: #d92518;
}

.btn-action-icon-success:hover {
    background-color: #ecfdf3;
    border-color: #abefc6;
    color: #079455;
}

.btn-action-icon-key:hover {
    background-color: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

/* Skeleton Loader Untitled UI */
@keyframes skeletonShimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.skeleton-pulse {
    background: linear-gradient(90deg, #f2f4f7 25%, #eaecf0 37%, #f2f4f7 63%);
    background-size: 400px 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}

.skeleton-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.skeleton-text {
    height: 12px;
    border-radius: 4px;
}

.skeleton-badge {
    width: 75px;
    height: 22px;
    border-radius: 12px;
}

.badge-notificaciones {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #ef4444;
    /* Neon Red */
    border: 2px solid var(--color-superficie);
}

.dropdown-usuario-avatar-img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
    display: block;
}

.dropdown-usuario-avatar-inner-img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(124, 58, 237, 0.4);
    display: block;
}

.dropdown-usuario-menu {
    border: 1px solid var(--color-borde);
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-premium);
    padding: 0.5rem;
    width: 250px;
    animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dropdown-usuario-cabecera {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-borde);
    margin-bottom: 0.5rem;
}

.dropdown-usuario-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primario) 0%, #818cf8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* ─── Tarjetas Premium (Glassmorphism sutil) ────────────────────────── */

.tarjeta-premium {
    background-color: var(--color-superficie);
    border: 1px solid var(--color-borde);
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-premium);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tarjeta-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-card-hover);
}

.tarjeta-encabezado {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--color-borde);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tarjeta-titulo {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    color: var(--color-texto-primario);
}

.tarjeta-cuerpo {
    padding: 1.75rem;
}

/* Tarjetas de Estadísticas */
.tarjeta-estado-wrapper {
    position: relative;
    overflow: hidden;
}

.tarjeta-estado-linea-decorativa {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
}

/* ─── Botones e Inputs Premium ─────────────────────────────────────── */

.btn {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primario {
    background: linear-gradient(135deg, var(--color-primario) 0%, #6366f1 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primario:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    color: #ffffff;
}

.btn-outline-success {
    border-color: var(--color-secundario);
    color: var(--color-secundario);
}

.btn-outline-success:hover {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--color-borde);
    font-size: 0.9rem;
    background-color: var(--color-superficie);
    color: var(--color-texto-primario);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primario);
    box-shadow: var(--sombra-glow-primario);
    background-color: var(--color-superficie);
    color: var(--color-texto-primario);
}

/* ─── Tablas Personalizadas (DataTables) ────────────────────────────── */

.dataTables_wrapper {
    padding: 0;
}

.table-custom {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: 1rem !important;
}

.table-custom th {
    background-color: rgba(var(--color-primario-rgb), 0.05);
    color: var(--color-texto-secundario);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.1rem 1.25rem;
    border: none;
    border-radius: 8px;
}

.table-custom td {
    padding: 1.1rem 1.25rem;
    background-color: var(--color-superficie);
    border-top: 1px solid var(--color-borde);
    border-bottom: 1px solid var(--color-borde);
    font-size: 0.88rem;
    color: var(--color-texto-primario);
    vertical-align: middle;
    transition: background-color 0.2s;
}

.table-custom td:first-child {
    border-left: 1px solid var(--color-borde);
    border-radius: 12px 0 0 12px;
}

.table-custom td:last-child {
    border-right: 1px solid var(--color-borde);
    border-radius: 0 12px 12px 0;
}

.table-custom tr:hover td {
    background-color: rgba(var(--color-primario-rgb), 0.02) !important;
}

/* Paginar DataTable en español */
.page-link {
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 600;
    border: 1px solid var(--color-borde);
    color: var(--color-texto-secundario);
    transition: all 0.2s;
}

.page-item.active .page-link {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* ─── Pie de Página (Footer) ──────────────────────────────────────── */

.pie-pagina {
    background-color: var(--color-superficie);
    border-top: 1px solid var(--color-borde);
    padding: 1.5rem 2.25rem;
    text-align: center;
    color: var(--color-texto-terciario);
    font-size: 0.85rem;
    margin-top: auto;
}

/* ─── Botón Toggle Tema (Sol/Luna Pill) ────────────────────────────── */
.btn-toggle-tema {
    background: rgba(15, 23, 42, 0.05);
    border: 1.5px solid var(--color-borde);
    border-radius: 30px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-texto-secundario);
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.btn-toggle-tema:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primario);
    border-color: rgba(79, 70, 229, 0.3);
}

.icono-sol {
    display: inline-block;
    color: var(--color-texto-secundario);
}

.icono-luna {
    display: none;
    color: var(--color-texto-secundario);
}

[data-theme="oscuro"] .btn-toggle-tema {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

[data-theme="oscuro"] .icono-sol {
    display: none;
}

[data-theme="oscuro"] .icono-luna {
    display: inline-block;
}

/* ─── Ocultar Barras de Desplazamiento en Sidebar ────────────────────── */
.barra-lateral,
.sidebar-menu {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.barra-lateral::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ─── Toast Notifications (Notificaciones Flotantes) ───────────────── */
.toast-react-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-react {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInToast {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* ─── Carnet Digital QR (Estudiantil UNH - EPIS - Imágenes 1 y 2) ───── */

    .carnet-qr-card {
        width: 100%;
        max-width: 320px;
        border-radius: 28px !important;
        overflow: hidden !important;
        box-shadow: 0 16px 40px -6px rgba(15, 23, 42, 0.25) !important;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .carnet-qr-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 45px -5px rgba(15, 23, 42, 0.3) !important;
    }

    /* Carnet Masculino (Blue-Cyan Gradient - Image 2) */
    .carnet-male {
        background: linear-gradient(180deg, #3b82f6 0%, #06b6d4 50%, #0284c7 100%) !important;
        color: #ffffff !important;
    }

    /* Carnet Femenino (Pink-Purple Gradient - Image 2) */
    .carnet-female {
        background: linear-gradient(180deg, #ec4899 0%, #a855f7 50%, #8b5cf6 100%) !important;
        color: #ffffff !important;
    }

    .carnet-header {
        padding: 22px 20px 10px 20px;
        text-align: center;
        position: relative;
    }

    .carnet-top-bar {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 14px;
        color: #ffffff;
    }

    .carnet-unh-badge,
    .carnet-epis-badge {
        background: rgba(255, 255, 255, 0.2);
        padding: 4px 12px;
        border-radius: 20px;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-weight: 800;
    }

    /* Avatar Circular con Anillo Orbital Giratorio */
    .carnet-avatar-wrapper {
        position: relative;
        width: 105px;
        height: 105px;
        margin: 0 auto 12px auto;
    }

    .carnet-orbital-ring {
        position: absolute;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
        border: 2px dashed rgba(255, 255, 255, 0.75);
        animation: rotateRing 15s linear infinite;
    }

    @keyframes rotateRing {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .carnet-avatar-img {
        width: 105px;
        height: 105px;
        border-radius: 50%;
        overflow: hidden;
        border: 4px solid #ffffff;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
        background: #ffffff;
        margin: 0 auto;
    }

    .carnet-avatar-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    .carnet-nombre {
        font-family: 'Outfit', sans-serif;
        font-size: 1.25rem;
        font-weight: 800;
        color: #ffffff !important;
        margin: 8px 0 2px 0;
        letter-spacing: 0.2px;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .carnet-subtitulo {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600;
    }

    .carnet-codigo-pill {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 700;
        margin-top: 6px;
        color: #ffffff;
    }

    /* Onda Separadora SVG */
    .carnet-wave-separator {
        height: 32px;
        margin-top: -6px;
        overflow: hidden;
    }

    .carnet-wave-separator svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* QR Code Section */
    .carnet-body {
        padding: 10px 20px 24px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
    }

    .carnet-qr-frame {
        width: 170px;
        height: 170px;
        min-width: 170px;
        min-height: 170px;
        padding: 12px;
        margin-bottom: 12px;
        background: #ffffff;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .carnet-badge-valido {
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 1px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        padding: 5px 14px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Reverso Card (Image 1) */
    .carnet-reverso {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 440px;
        text-align: left;
    }

    .carnet-shield-badge {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carnet-divider {
        border-color: rgba(255, 255, 255, 0.25);
        margin: 12px 0;
    }

    .carnet-reverso-titulo {
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
        color: #ffffff;
    }

    .carnet-pasos-lista {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 0.8rem;
        color: #ffffff;
    }

    .carnet-pasos-lista li {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.15);
        padding: 7px 12px;
        border-radius: 12px;
        backdrop-filter: blur(4px);
    }

    .carnet-reverso-normas {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .norma-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .carnet-soporte-footer {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }

    /* ─── Responsive Data Cards (Transformación de Tablas en Móvil) ───── */
    @media (max-width: 767.98px) {
        .table-responsive-cards thead {
            display: none;
        }

        .table-responsive-cards,
        .table-responsive-cards tbody,
        .table-responsive-cards tr,
        .table-responsive-cards td {
            display: block;
            width: 100%;
        }

        .table-responsive-cards tr {
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #e2e8f0;
            margin-bottom: 1rem;
            padding: 0.75rem 1rem;
        }

        [data-theme="oscuro"] .table-responsive-cards tr {
            background: #1e293b;
            border-color: #334155;
        }

        .table-responsive-cards td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: right;
            padding: 0.5rem 0;
            border-bottom: 1px dashed #f1f5f9;
            font-size: 0.85rem;
        }

        [data-theme="oscuro"] .table-responsive-cards td {
            border-bottom-color: #334155;
        }

        .table-responsive-cards td:last-child {
            border-bottom: none;
            padding-top: 0.75rem;
            justify-content: flex-end;
        }

        .table-responsive-cards td::before {
            content: attr(data-label);
            font-weight: 700;
            text-align: left;
            color: #64748b;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        [data-theme="oscuro"] .table-responsive-cards td::before {
            color: #94a3b8;
        }
    }

    /* ─── Marco de Escáner QR con Efecto Láser ───── */
    .scan-container-frame {
        position: relative;
        width: 280px;
        height: 280px;
        margin: 0 auto;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .scan-laser-line {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #3b82f6, #06b6d4, transparent);
        box-shadow: 0 0 15px #3b82f6, 0 0 25px #06b6d4;
        animation: scanLaser 2.2s ease-in-out infinite alternate;
        z-index: 10;
    }

    @keyframes scanLaser {
        0% {
            top: 5%;
        }

        100% {
            top: 92%;
        }
    }

    .scan-corner-top-left {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 24px;
        height: 24px;
        border-top: 4px solid #3b82f6;
        border-left: 4px solid #3b82f6;
        border-top-left-radius: 8px;
        z-index: 11;
    }

    .scan-corner-top-right {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        border-top: 4px solid #3b82f6;
        border-right: 4px solid #3b82f6;
        border-top-right-radius: 8px;
        z-index: 11;
    }

    .scan-corner-bottom-left {
        position: absolute;
        bottom: 12px;
        left: 12px;
        width: 24px;
        height: 24px;
        border-bottom: 4px solid #3b82f6;
        border-left: 4px solid #3b82f6;
        border-bottom-left-radius: 8px;
        z-index: 11;
    }

    .scan-corner-bottom-right {
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        border-bottom: 4px solid #3b82f6;
        border-right: 4px solid #3b82f6;
        border-bottom-right-radius: 8px;
        z-index: 11;
    }

    /* ─── Backdrop Blur para Menú Lateral Móvil ───── */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1020;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

/* ─── Estilos y Experiencia Visual Estilo INVYS ─────────────────── */

/* Transición Deslizante Suave de Pestañas (Tab Slide In) */
@keyframes tabSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tab-content > .tab-pane.active {
    animation: tabSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Barra Flotante Fija de Guardado (INVYS Floating Action Save Bar) */
.floating-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #ffffff;
    animation: floatUpBar 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUpBar {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Switches Deslizantes Modernos Estilo INVYS */
.form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.nav-pills .nav-link {
    color: #475569;
    background-color: transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
}

.nav-pills .nav-link:hover {
    color: #1e293b;
    background-color: #f1f5f9;
    transform: translateX(3px);
}

.nav-pills .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4) !important;
    font-weight: 700 !important;
}

/* ─── Estructura de Secciones de 2 Columnas Estilo InvSys WMS ─────── */
.config-section {
    background: var(--color-superficie);
    border: 1px solid var(--color-borde);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.config-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.config-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-borde);
}

.config-section-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.config-section-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-texto-primario);
    margin-bottom: 0.15rem;
}

.config-section-desc {
    font-size: 0.8rem;
    color: var(--color-texto-terciario);
    margin-bottom: 0;
}

.logo-upload-area {
    border: 2px dashed var(--color-borde);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    background: rgba(var(--color-primario-rgb), 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

.logo-upload-area:hover {
    border-color: var(--color-primario);
    background: rgba(var(--color-primario-rgb), 0.05);
}

/* ─── Optimización Táctil y Móvil Ultra-Premium (Touch-Target 44px) ─────── */
@media (max-width: 767.98px) {
    .cuerpo-pagina {
        padding: 1rem 0.85rem !important;
    }

    .btn, 
    .form-control, 
    .form-select {
        min-height: 44px;
        font-size: 0.9rem !important;
    }

    .form-check-input {
        width: 22px !important;
        height: 22px !important;
    }

    /* Transformación limpia de tablas en tarjetas móviles */
    .table-responsive-cards thead {
        display: none !important;
    }

    .table-responsive-cards,
    .table-responsive-cards tbody,
    .table-responsive-cards tr,
    .table-responsive-cards td {
        display: block !important;
        width: 100% !important;
    }

    .table-responsive-cards tr {
        background: var(--color-superficie) !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
        border: 1px solid var(--color-borde) !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }

    .table-responsive-cards td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        padding: 0.65rem 0 !important;
        border-bottom: 1px dashed var(--color-borde) !important;
        border-top: none !important;
        gap: 0.5rem !important;
    }

    .table-responsive-cards td > div,
    .table-responsive-cards td > span,
    .table-responsive-cards td > a {
        max-width: 70% !important;
        text-align: right !important;
        word-break: break-word !important;
    }

    .table-responsive-cards td:last-child {
        border-bottom: none !important;
        padding-top: 0.85rem !important;
        justify-content: flex-end !important;
    }

    .table-responsive-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--color-texto-terciario);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   SweetAlert2 Modales de Confirmación Premium (Dribbble UI #9)
   ═══════════════════════════════════════════════════════════ */
.swal2-container {
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    background: rgba(16, 24, 40, 0.45) !important;
}

.swal2-popup.swal2-modal {
    border-radius: 20px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03) !important;
    width: 100% !important;
    max-width: 440px !important;
}

.swal2-icon {
    width: 56px !important;
    height: 56px !important;
    margin: 4px auto 18px auto !important;
    border-width: 2px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.swal2-icon .swal2-icon-content {
    font-size: 1.5rem !important;
}

/* Iconos de Alerta con Fondos Pastel Dribbble */
.swal2-icon.swal2-warning,
.swal2-icon.swal2-error {
    background-color: #fef3f2 !important;
    border-color: #fecdca !important;
    color: #d92518 !important;
}

.swal2-icon.swal2-question,
.swal2-icon.swal2-info {
    background-color: #f4f3ff !important;
    border-color: #e9d7fe !important;
    color: #6941c6 !important;
}

.swal2-icon.swal2-success {
    background-color: #ecfdf3 !important;
    border-color: #abefc6 !important;
    color: #079455 !important;
}

/* Modificación de anillos internos predeterminados de Swal */
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #079455 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(7, 148, 85, 0.3) !important;
}

.swal2-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #101828 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.swal2-html-container {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #475467 !important;
    line-height: 1.5 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 8px !important;
}

.swal2-actions {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
}

.swal2-actions button {
    flex: 1 !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.swal2-actions button:not([style*="display: none"]):not([style*="display:none"]) {
    display: inline-flex !important;
}

.swal2-actions button[style*="display: none"],
.swal2-actions button[style*="display:none"] {
    display: none !important;
}

.swal2-cancel {
    background-color: #ffffff !important;
    border: 1px solid #d0d5dd !important;
    color: #344054 !important;
}

.swal2-cancel:hover {
    background-color: #f9fafb !important;
    border-color: #d0d5dd !important;
    color: #1d2939 !important;
}

.swal2-confirm.btn-danger-confirm {
    background-color: #d92518 !important;
    border: 1px solid #d92518 !important;
    color: #ffffff !important;
}

.swal2-confirm.btn-danger-confirm:hover {
    background-color: #b42318 !important;
    border-color: #b42318 !important;
}

.swal2-confirm.btn-primary-confirm {
    background-color: #3538cd !important;
    border: 1px solid #3538cd !important;
    color: #ffffff !important;
}

.swal2-confirm.btn-primary-confirm:hover {
    background-color: #2d31a6 !important;
}

/* ═══════════════════════════════════════════════════════════
   UNTITLED UI BADGES & COMENTARIOS EN BUZÓN
   ═══════════════════════════════════════════════════════════ */
.badge-untitled-emerald {
    background-color: #ecfdf3 !important;
    color: #027a48 !important;
    border: 1px solid #abefc6 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-untitled-blue {
    background-color: #eff8ff !important;
    color: #175cd3 !important;
    border: 1px solid #b2ddff !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-untitled-gray {
    background-color: #f8fafc !important;
    color: #475467 !important;
    border: 1px solid #eaecf0 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-untitled-rose {
    background-color: #fff1f3 !important;
    color: #c01048 !important;
    border: 1px solid #fecdd3 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-untitled-purple {
    background-color: #f4f3ff !important;
    color: #5925dc !important;
    border: 1px solid #d9d6fe !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-untitled-amber {
    background-color: #fffaeb !important;
    color: #b54708 !important;
    border: 1px solid #fedf89 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-untitled-sky {
    background-color: #f0f9ff !important;
    color: #026aa7 !important;
    border: 1px solid #b9e6fe !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.comentario-sug-item {
    background-color: #ffffff;
    border: 1px solid #eaecf0 !important;
    border-left: 4px solid #3538cd !important;
    border-radius: 14px !important;
    padding: 1.1rem 1.25rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comentario-sug-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.comentario-sug-item .text-nombre-estudiante {
    color: #101828;
}

.comentario-sug-item .text-subtitulo-estudiante {
    color: #475467;
}

.comentario-sug-item .cita-sugerencia {
    background-color: #f8fafc;
    color: #1d2939;
    border-left: 3px solid #3538cd;
}

.tarjeta-ciclo-item {
    background-color: #ffffff;
    border: 1px solid #eaecf0 !important;
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tarjeta-ciclo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.05);
}