/* ============================================================
   DIPP UNAH — dipp-master.css
   Ruta: Content/master/dipp-master.css
   Fuentes: Outfit + Plus Jakarta Sans
   DEGT - UNAH | v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
    --unah-blue-dark: #003A7D;
    --unah-blue: #0057C2;
    --unah-blue-light: #EBF2FF;
    --unah-gold: #F5A623;
    --unah-gold-light: #FEF3DC;
    --unah-gold-dark: #7a4800;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --font-display: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --sidebar-w: 260px;
    --header-h: auto;
    --transition: 0.18s ease;
}

/* ── Modo oscuro ──────────────────────────────────────────── */
[data-theme="dark"] {
    --gray-50:   #0f172a;
    --gray-100:  #1e293b;
    --gray-200:  #334155;
    --gray-300:  #475569;
    --gray-400:  #64748b;
    --gray-500:  #94a3b8;
    --gray-700:  #cbd5e1;
    --gray-900:  #f1f5f9;
}

/* ── Reset base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}

/* ── Dark mode: header, sidebar ──────────────────────────── */
[data-theme="dark"] .dipp-header {
    background: #1e293b;
    border-bottom-color: #334155;
}
[data-theme="dark"] .dipp-logo__title { color: #e2e8f0; }
[data-theme="dark"] .dipp-logo__sub   { color: #64748b; }
[data-theme="dark"] .profile-trigger  { border-color: #334155; }
[data-theme="dark"] .profile-trigger:hover { background: #334155; border-color: #475569; }
[data-theme="dark"] .profile-name     { color: #cbd5e1; }
[data-theme="dark"] .profile-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
[data-theme="dark"] .profile-dropdown__header  { background: #0f172a; }
[data-theme="dark"] .profile-dropdown__name    { color: #f1f5f9; }
[data-theme="dark"] .profile-dropdown__account { color: #64748b; }
[data-theme="dark"] .profile-dropdown__divider { background: #334155; }
[data-theme="dark"] .profile-dropdown__item    { color: #cbd5e1; }
[data-theme="dark"] .profile-dropdown__item:hover { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .sidebar {
    background: #1e293b;
    border-right-color: #334155;
}
[data-theme="dark"] .sidebar__profile { border-bottom-color: #334155; }
[data-theme="dark"] .sidebar__profile-name    { color: #f1f5f9; }
[data-theme="dark"] .sidebar__profile-account { color: #64748b; }
[data-theme="dark"] .nav-section + .nav-section { border-top-color: #334155; }
[data-theme="dark"] .nav-section__header { color: #64748b; }
[data-theme="dark"] .nav-item { color: #cbd5e1; }
[data-theme="dark"] .nav-item:hover { background: #334155; }
[data-theme="dark"] .nav-item--highlight { background: rgba(0,87,194,.2); }
[data-theme="dark"] .nav-item--highlight:hover { background: rgba(0,87,194,.3); }
[data-theme="dark"] .nav-item__title { color: #f1f5f9; }
[data-theme="dark"] .nav-item__desc  { color: #64748b; }
[data-theme="dark"] .main-content    { background: #0f172a; }
[data-theme="dark"] .dipp-nav        { border-top-color: #334155; }
[data-theme="dark"] .dipp-nav__link  { color: #94a3b8; }
[data-theme="dark"] .dipp-nav__link:hover { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .dipp-nav__link.active { background: rgba(0,87,194,.25); color: #93c5fd; }

/* Dark toggle button */
.dark-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: none;
    cursor: pointer;
    color: var(--gray-500);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    flex-shrink: 0;
}
.dark-toggle:hover {
    background: var(--gray-100);
    color: var(--unah-blue-dark);
}
[data-theme="dark"] .dark-toggle { border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .dark-toggle:hover { background: #334155; color: #f1f5f9; }
.dark-toggle .icon-moon { display: block; }
.dark-toggle .icon-sun  { display: none;  }
[data-theme="dark"] .dark-toggle .icon-moon { display: none;  }
[data-theme="dark"] .dark-toggle .icon-sun  { display: block; }

/* Header card título — dark */
[data-theme="dark"] .header-card-titulo {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
[data-theme="dark"] .header-card-titulo h2 { color: #f1f5f9; }
[data-theme="dark"] .header-breadcrumb-bar { border-bottom-color: #334155; }
[data-theme="dark"] .bc-item  { color: #94a3b8; }
[data-theme="dark"] .bc-sep   { color: #475569; }
[data-theme="dark"] .bc-active { color: #60a5fa; }
[data-theme="dark"] .header-page-title h2 { color: #f1f5f9; }
[data-theme="dark"] .header-subtitle      { color: #64748b; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
}

/* ── Layout shell ─────────────────────────────────────────── */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-container {
    display: flex;
    flex: 1;
    min-height: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.dipp-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow var(--transition);
}

    .dipp-header.scrolled {
        box-shadow: 0 2px 16px rgba(0,0,0,.08);
    }

.dipp-header__accent {
    height: 3px;
    background: linear-gradient(90deg, var(--unah-blue-dark) 0%, var(--unah-blue) 55%, var(--unah-gold) 100%);
}

.dipp-header__inner {
    max-width: 100%;
    padding: 0 1.5rem;
}

/* Top row */
.dipp-header__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 10px;
}

/* Hamburger (solo aparece cuando hay sidebar) */
.sidebar-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-500);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

    .sidebar-hamburger:hover {
        background: var(--gray-100);
        color: var(--unah-blue-dark);
    }

    .sidebar-hamburger svg {
        display: block;
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        flex-shrink: 0;
    }

/* Logo */
.dipp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.dipp-logo__badge {
    width: 40px;
    height: 40px;
    background: var(--unah-blue-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}

    .dipp-logo__badge svg {
        display: block;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

.dipp-logo:hover .dipp-logo__badge {
    background: var(--unah-blue);
}

.dipp-logo__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.dipp-logo__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: var(--unah-blue-dark);
    letter-spacing: -0.3px;
}

    .dipp-logo__title em {
        color: var(--unah-gold);
        font-style: normal;
    }

.dipp-logo__sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Header actions */
.dipp-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.dipp-header__logo-img {
    height: 38px;
    width: auto;
    margin-left: 8px;
}

/* Botones del header */
.btn-cta-nav {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: var(--unah-blue-dark);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .btn-cta-nav:hover {
        background: var(--unah-blue);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(0,87,194,.28);
        color: #fff;
        text-decoration: none;
    }

/* ── Perfil (menú desplegable) ────────────────────────────── */
.profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    padding: 5px 12px 5px 6px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

    .profile-trigger:hover {
        background: var(--gray-100);
        border-color: var(--gray-300);
    }

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--unah-blue-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-avatar--md {
    width: 40px;
    height: 40px;
}

.profile-avatar--lg {
    width: 44px;
    height: 44px;
}

.profile-initials {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--unah-blue-dark);
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.profile-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-chevron {
    color: var(--gray-400);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.profile-menu.open .profile-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    overflow: hidden;
    z-index: 300;
}

.profile-menu.open .profile-dropdown {
    display: block;
}

.profile-dropdown__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--gray-50);
}

.profile-dropdown__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-dropdown__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown__account {
    font-size: 12px;
    color: var(--gray-400);
}

.profile-dropdown__divider {
    height: 1px;
    background: var(--gray-100);
}

.profile-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

    .profile-dropdown__item:hover {
        background: var(--gray-100);
        color: var(--unah-blue-dark);
    }

.profile-dropdown__item--danger {
    color: #dc3545;
}

    .profile-dropdown__item--danger:hover {
        background: #fff5f5;
        color: #b91c1c;
    }

/* ── Navegación principal (sin sesión) ───────────────────── */
.dipp-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    border-top: 1px solid var(--gray-100);
    padding: 4px 0 0;
}

.dipp-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: none;
    background: none;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

    .dipp-nav__link:hover {
        background: var(--gray-100);
        color: var(--unah-blue-dark);
    }

    .dipp-nav__link.active {
        color: var(--unah-blue-dark);
        font-weight: 600;
        background: var(--unah-blue-light);
    }

        .dipp-nav__link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 14px;
            right: 14px;
            height: 2px;
            background: var(--unah-blue-dark);
            border-radius: 2px;
        }

.dipp-nav__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--unah-gold);
    display: none;
    flex-shrink: 0;
}

.dipp-nav__link.active .dipp-nav__dot {
    display: block;
}

.dipp-nav__badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--unah-gold-light);
    color: var(--unah-gold-dark);
    padding: 1px 7px;
    border-radius: var(--radius-pill);
}

/* Dropdowns del nav */
.dipp-nav__dropdown-wrap {
    position: relative;
}

.dipp-nav__link--has-children {
    gap: 5px;
}

.dipp-nav__submenu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    list-style: none;
    padding: 6px;
    z-index: 300;
}

.dipp-nav__dropdown-wrap:hover .dipp-nav__submenu,
.dipp-nav__dropdown-wrap.open .dipp-nav__submenu {
    display: block;
}

.dipp-nav__sublink {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

    .dipp-nav__sublink:hover {
        background: var(--gray-100);
        color: var(--unah-blue-dark);
    }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--gray-200);
    height: calc(100vh - 72px); /* ajustar si cambia la altura del header */
    position: sticky;
    top: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
    transition: transform var(--transition);
}

    .sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--gray-200);
        border-radius: 4px;
    }

.sidebar__close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: background var(--transition);
}

    .sidebar__close:hover {
        background: var(--gray-200);
    }

/* Mini perfil en sidebar */
.sidebar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar__profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar__profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__profile-account {
    font-size: 11px;
    color: var(--gray-400);
}

/* Nav sections */
.nav-section {
    padding: 8px 10px;
}

    .nav-section + .nav-section {
        border-top: 1px solid var(--gray-100);
    }

.nav-section__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-400);
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Nav item */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--gray-700);
    font-family: var(--font-body);
    transition: background var(--transition), color var(--transition);
}

    .nav-item:hover {
        background: var(--gray-100);
    }

.nav-item--highlight {
    background: var(--unah-blue-light);
}

    .nav-item--highlight:hover {
        background: #d9e9ff;
    }

.nav-item--danger:hover {
    background: #fff5f5;
}

    .nav-item--danger:hover .nav-item__title {
        color: #dc3545;
    }

.nav-item__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.nav-item__content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.nav-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item__desc {
    font-size: 11px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Overlay mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 150;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — Opción B (3 columnas)
═══════════════════════════════════════════════════════════ */
.dipp-footer {
    background: #002F6C;
    color: rgba(255,255,255,.65);
    font-family: var(--font-body);
}

/* ── Bloque superior: grid de 3 columnas ─────────────────── */
.dipp-footer__top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 36px 2rem 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── Columna marca ────────────────────────────────────────── */
.dipp-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dipp-footer__logo-badge {
    width: 36px;
    height: 36px;
    background: var(--unah-blue-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dipp-footer__logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    color: #ffffff;
    letter-spacing: -.3px;
}

    .dipp-footer__logo-name em {
        color: var(--unah-gold);
        font-style: normal;
    }

.dipp-footer__desc {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 260px;
}

/* Redes sociales */
.dipp-footer__social {
    display: flex;
    gap: 8px;
}

.dipp-footer__social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
}

    .dipp-footer__social-link:hover {
        background: var(--unah-gold);
        border-color: var(--unah-gold);
        color: var(--unah-gold-dark);
    }

/* ── Títulos de columna ───────────────────────────────────── */
.dipp-footer__col-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.35);
    margin-bottom: 14px;
}

/* ── Links de acceso rápido ───────────────────────────────── */
.dipp-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .dipp-footer__links a {
        font-size: 13px;
        color: rgba(255,255,255,.55);
        text-decoration: none;
        transition: color var(--transition);
    }

        .dipp-footer__links a:hover {
            color: var(--unah-gold);
        }

/* ── Lista de contacto ────────────────────────────────────── */
.dipp-footer__contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .dipp-footer__contact li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .dipp-footer__contact svg {
        flex-shrink: 0;
        margin-top: 2px;
        opacity: .45;
        color: #ffffff;
    }

    .dipp-footer__contact span {
        font-size: 12px;
        color: rgba(255,255,255,.55);
        line-height: 1.55;
    }

    .dipp-footer__contact a {
        color: var(--unah-gold);
        text-decoration: none;
        transition: opacity var(--transition);
    }

        .dipp-footer__contact a:hover {
            opacity: .8;
        }

/* ── Banda inferior ───────────────────────────────────────── */
.dipp-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dipp-footer__bottom-logo img {
    opacity: .55;
    filter: brightness(10);
    transition: opacity var(--transition);
}

.dipp-footer__bottom-logo:hover img {
    opacity: .8;
}

.dipp-footer__copy {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    margin: 0;
}

/* ── Responsive footer ────────────────────────────────────── */
@media (max-width: 900px) {
    .dipp-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .dipp-footer__col--brand {
        grid-column: 1 / -1;
    }

    .dipp-footer__desc {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .dipp-footer__top {
        grid-template-columns: 1fr;
        padding: 24px 1rem 20px;
        gap: 24px;
    }

    .dipp-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 14px 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 160;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0,0,0,.12);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar-overlay.open {
        display: block;
    }

    .sidebar__close {
        display: flex;
    }

    .sidebar-hamburger {
        display: flex;
    }

    .dipp-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

        .dipp-nav::-webkit-scrollbar {
            display: none;
        }
}

@media (max-width: 768px) {
    .dipp-header__inner {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .dipp-logo__sub {
        display: none;
    }

    .profile-name {
        display: none;
    }

    .dipp-header__logo-img {
        height: 30px;
    }

    /* Dropdown: fixed al viewport para que nunca se corte */
    .profile-dropdown {
        position: fixed;
        top: 58px;
        right: 8px;
        left: auto;
        min-width: 240px;
        max-width: calc(100vw - 16px);
    }
}

@media (max-width: 480px) {
    .dipp-logo__title {
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════
   UTILITARIOS GLOBALES (compartidos entre páginas)
═══════════════════════════════════════════════════════════ */

/* Header card título — usado en varias páginas internas */
.header-card-titulo {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

    .header-card-titulo h2 {
        font-size: 28px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: -0.5px;
    }

    .header-card-titulo strong {
        color: #6c757d;
        font-size: 15px;
        font-weight: 500;
    }

/* Breadcrumb header */
.header-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.bc-item {
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s;
}

    .bc-item:hover {
        color: #0066cc;
        text-decoration: none;
    }

.bc-sep {
    color: #adb5bd;
    font-size: 12px;
    user-select: none;
}

.bc-active {
    color: #0066cc;
    font-weight: 500;
    cursor: default;
}

.header-page-title {
    padding: 18px 24px 22px;
}

    .header-page-title h2 {
        margin: 0 0 2px;
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
    }

.header-subtitle {
    font-size: 13px;
    color: #6c757d;
}

/* Botón logout en nav */
.btn-nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #6c757d !important;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #dee2e6 !important;
    background: transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

    .btn-nav-logout:hover {
        background: #fff5f5;
        color: #c82333 !important;
        border-color: #f5c6cb !important;
    }

@media (max-width: 576px) {
    .header-breadcrumb-bar {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-page-title {
        padding: 14px 16px 18px;
    }
}

/* ── GridView HeaderStyle global (elimina estilos inline de ASP.NET) ── */
.gv-header {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

[data-theme="dark"] .gv-header {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}
