﻿/* =====================================================
   SOLO HOME PRINCIPAL
   ===================================================== */

.home-main-theme {
    min-height: 100vh;
    position: relative;
    background: #ffffff !important;
    color: #21166f;
}

    .home-main-theme::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 20% 20%, rgba(33,22,111,.035) 0%, transparent 25%), radial-gradient(circle at 85% 70%, rgba(33,22,111,.025) 0%, transparent 24%);
        z-index: 0;
    }

    .home-main-theme > * {
        position: relative;
        z-index: 1;
    }

@media (max-width: 991.98px) {
    .home-main-theme {
        background-attachment: scroll;
        background-position: center top;
    }

        .home-main-theme .topbar-links {
            position: relative;
            flex-direction: row !important;
            align-items: center !important;
            white-space: normal;
        }

        .home-main-theme .quick-nav-wrap {
            margin-left: auto;
        }

        .home-main-theme #quickNavMenu {
            display: none !important;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 280px;
            z-index: 1050;
            flex-direction: column;
            align-items: stretch;
            gap: .3rem;
            background: #21166f;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: .9rem;
            box-shadow: 0 1rem 2rem rgba(0,0,0,.18);
            padding: .55rem;
            backdrop-filter: blur(12px);
        }

            .home-main-theme #quickNavMenu.is-open {
                display: flex !important;
            }

        .home-main-theme .quick-link {
            display: block;
            width: 100%;
            padding: .48rem .55rem;
            border-radius: .55rem;
        }

        .home-main-theme .quick-dd,
        .home-main-theme .quick-dd-menu {
            width: 100%;
        }

        .home-main-theme .quick-dd-menu {
            position: static !important;
            box-shadow: none !important;
            border: 0 !important;
            margin-top: .2rem;
            padding-left: .55rem;
            background: transparent;
            display: none;
        }

        .home-main-theme .quick-dd.open > .quick-dd-menu {
            display: block;
        }

        .home-main-theme .banner-img,
        .home-main-theme .home-banner-img {
            height: 220px;
        }
}

/* ==========================================
   HEADER SOLO HOME
   ========================================== */

.home-main-theme .header-bg {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.home-main-theme .header-bg-inner {
    background: transparent;
    padding-top: 22px;
    padding-bottom: 12px;
}

.home-main-theme .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 1;
}

    .home-main-theme .navbar-brand img.brandimage {
        display: block;
        height: 54px;
        width: auto;
        max-height: 54px;
        object-fit: contain;
        filter: none;
    }

.home-main-theme header .nav-link,
.home-main-theme header .navbar .nav-link,
.home-main-theme header .navbar .dropdown-toggle,
.home-main-theme header .navbar .btn-link,
.home-main-theme header .navbar a {
    color: #21166f !important;
    font-weight: 600;
}

    .home-main-theme header .nav-link:hover,
    .home-main-theme header .navbar a:hover {
        color: #d4ad45 !important;
    }

/* ==========================================
   CONTENEDOR SOLO HOME
   ========================================== */

.home-main-theme .container {
    max-width: 1280px;
}

/* ==========================================
   TOPBAR SOLO HOME
   ========================================== */

.home-main-theme .topbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    white-space: nowrap;
    margin-top: 2px;
    margin-bottom: 20px;
    padding: 14px 24px !important;
    border-radius: 18px;
    background: #21166f;
    border: none;
    box-shadow: none;
}

    .home-main-theme .topbar-links .small,
    .home-main-theme .topbar-links .text-muted,
    .home-main-theme .topbar-links b {
        color: #ffffff !important;
        font-weight: 700;
    }

/* ==========================================
   NAVEGACIÓN RÁPIDA SOLO HOME
   ========================================== */

.home-main-theme .quick-nav {
    white-space: nowrap;
}

.home-main-theme .quick-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.05;
    padding: 2px 4px;
    border-radius: 8px;
    transition: all .18s ease;
    white-space: nowrap;
}

    .home-main-theme .quick-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        height: 2px;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left;
        background: #d4ad45;
        transition: transform .18s ease;
        opacity: .95;
    }

    .home-main-theme .quick-link:hover {
        color: #d4ad45 !important;
        background: transparent !important;
    }

        .home-main-theme .quick-link:hover::after {
            transform: scaleX(1);
        }

    .home-main-theme .quick-link.active {
        color: #d4ad45;
    }

        .home-main-theme .quick-link.active::after {
            transform: scaleX(1);
        }

.home-main-theme .quick-dd {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.home-main-theme .quick-dd-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid rgba(33,22,111,.12);
    border-radius: 14px;
    padding: .55rem;
    box-shadow: 0 18px 35px rgba(33,22,111,.14);
    display: none;
    z-index: 99999 !important;
    backdrop-filter: none;
}

.home-main-theme .quick-dd-menu-wide {
    min-width: 330px;
    max-height: 320px;
    overflow: auto;
}

.home-main-theme .quick-dd-item {
    display: block;
    padding: .6rem .8rem;
    border-radius: 10px;
    text-decoration: none !important;
    color: #21166f !important;
    font-size: .875rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

    .home-main-theme .quick-dd-item:hover {
        background: rgba(33,22,111,.08);
        color: #21166f !important;
    }

.home-main-theme .quick-dd.open > .quick-dd-menu {
    display: block !important;
}

.home-main-theme .quick-dd.open > .quick-dd-toggle::after {
    transform: scaleX(1);
}

.home-main-theme .quick-dd.open > .quick-dd-toggle {
    color: #d4ad45 !important;
}

.home-main-theme .quick-nav-wrap {
    position: relative;
}

.home-main-theme .quick-nav-toggle {
    border: none;
    background: #21166f;
    color: #ffffff;
    border-radius: 10px;
    padding: .35rem .65rem;
    font-weight: 800;
}

.home-main-theme #quickNavMenu {
    display: flex;
}

/* ==========================================
   BANNER SOLO HOME
   ========================================== */

.home-main-theme .main-home-content {
    padding-top: 0;
}

.home-main-theme .banner-img,
.home-main-theme .home-banner-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    border: none;
    box-shadow: none;
    background: #ffffff;
}

/* ==========================================
   PERFIL INTEGRADO DEL USUARIO - SOLO HOME
   ========================================== */

.home-main-theme .employee-profile-strip {
    margin: 24px auto 24px;
    max-width: 1280px;
}

.home-main-theme .employee-profile-strip__inner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(212, 173, 69, .75);
    background: #ffffff !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

    .home-main-theme .employee-profile-strip__inner::before {
        content: none;
    }

.home-main-theme .employee-profile-strip__header {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(33,22,111,.15);
}

.home-main-theme .employee-profile-strip__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #21166f;
    line-height: 1.1;
}

.home-main-theme .employee-profile-strip__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.home-main-theme .employee-profile-strip__item {
    padding: 10px 18px 8px;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .home-main-theme .employee-profile-strip__item:not(:last-child) {
        border-right: 1px solid rgba(33,22,111,.14);
    }

.home-main-theme .employee-profile-strip__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #21166f;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

    .home-main-theme .employee-profile-strip__label i {
        font-size: 1.1rem;
    }

.home-main-theme .employee-profile-strip__value {
    color: #21166f;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

/* ==========================================
   RESPONSIVE PERFIL INTEGRADO
   ========================================== */

@media (max-width: 991.98px) {
    .home-main-theme .employee-profile-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-main-theme .employee-profile-strip__item:nth-child(2) {
        border-right: none;
    }

    .home-main-theme .employee-profile-strip__item:nth-child(1),
    .home-main-theme .employee-profile-strip__item:nth-child(2) {
        border-bottom: 1px solid rgba(33,22,111,.14);
        padding-bottom: 14px;
    }
}

@media (max-width: 767.98px) {
    .home-main-theme .employee-profile-strip {
        margin: 18px auto 20px;
    }

    .home-main-theme .employee-profile-strip__inner {
        padding: 14px 14px;
        border-radius: 18px;
    }

    .home-main-theme .employee-profile-strip__title {
        font-size: 1.35rem;
    }

    .home-main-theme .employee-profile-strip__grid {
        grid-template-columns: 1fr;
    }

    .home-main-theme .employee-profile-strip__item {
        padding: 12px 4px;
        min-height: auto;
        border-right: none !important;
    }

        .home-main-theme .employee-profile-strip__item:not(:last-child) {
            border-bottom: 1px solid rgba(33,22,111,.14);
        }

    .home-main-theme .employee-profile-strip__label {
        font-size: 1rem;
    }

    .home-main-theme .employee-profile-strip__value {
        font-size: .97rem;
    }
}

/* =====================================================
   CAJAS INFO USUARIO
   ===================================================== */

.home-main-theme .employee-info-box {
    min-height: 118px;
    border-radius: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(212, 173, 69, .75);
    background: #ffffff !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all .25s ease;
}

    .home-main-theme .employee-info-box:hover {
        border-color: #d4ad45;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(33,22,111,.12);
    }

.home-main-theme .employee-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #21166f;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

    .home-main-theme .employee-info-label i {
        font-size: 1.25rem;
    }

.home-main-theme .employee-info-value {
    color: #21166f;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.home-main-theme .employee-info-value--sm {
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================
   FOOTER SOLO HOME
   ========================================== */

.home-main-theme .footer {
    background: transparent !important;
    border-top: 1px solid rgba(33,22,111,.12) !important;
    margin-top: 26px;
    padding-top: 14px;
    padding-bottom: 12px;
}

    .home-main-theme .footer,
    .home-main-theme .footer .text-muted,
    .home-main-theme .footer a,
    .home-main-theme .footer .float-start,
    .home-main-theme .footer .float-end {
        color: #21166f !important;
    }

        .home-main-theme .footer a:hover {
            color: #d4ad45 !important;
        }

/* ==========================================
   MOBILE SOLO HOME
   ========================================== */

@media (max-width: 991.98px) {
    .home-main-theme .topbar-links {
        position: relative;
        flex-direction: row !important;
        align-items: center !important;
        white-space: normal;
    }

    .home-main-theme .quick-nav-wrap {
        margin-left: auto;
    }

    .home-main-theme #quickNavMenu {
        display: none !important;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 280px;
        z-index: 1050;
        flex-direction: column;
        align-items: stretch;
        gap: .3rem;
        background: #21166f;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: .9rem;
        box-shadow: 0 1rem 2rem rgba(0,0,0,.18);
        padding: .55rem;
        backdrop-filter: blur(12px);
    }

        .home-main-theme #quickNavMenu.is-open {
            display: flex !important;
        }

    .home-main-theme .quick-link {
        display: block;
        width: 100%;
        padding: .48rem .55rem;
        border-radius: .55rem;
        color: #ffffff;
    }

    .home-main-theme .quick-dd,
    .home-main-theme .quick-dd-menu {
        width: 100%;
    }

    .home-main-theme .quick-dd-menu {
        position: static !important;
        box-shadow: none !important;
        border: 0 !important;
        margin-top: .2rem;
        padding-left: .55rem;
        background: transparent;
        display: none;
    }

    .home-main-theme .quick-dd.open > .quick-dd-menu {
        display: block;
    }

    .home-main-theme .quick-dd-item {
        color: #ffffff;
    }

        .home-main-theme .quick-dd-item:hover {
            background: rgba(255,255,255,.12);
            color: #d4ad45;
        }

    .home-main-theme .banner-img,
    .home-main-theme .home-banner-img {
        height: 220px;
    }

    .home-main-theme .employee-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-main-theme .employee-hero-wrapper {
        margin: 18px auto 22px;
    }

    .home-main-theme .employee-hero-shell {
        padding: 12px;
        border-radius: 22px;
    }

    .home-main-theme .employee-hero-card {
        padding: 20px 18px 18px;
        border-radius: 20px;
    }

    .home-main-theme .employee-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-main-theme .employee-info-box {
        min-height: 96px;
        padding: 16px;
    }

    .home-main-theme .employee-hero-title {
        font-size: 2rem;
        color: #21166f;
    }

    .home-main-theme .employee-info-label {
        color: #21166f;
    }

    .home-main-theme .employee-info-value {
        color: #21166f;
    }
}

/* =====================================================
   MENU AZUL SOLO HOME
   ===================================================== */

.home-main-theme .topbar-links {
    white-space: nowrap;
    margin-top: 2px;
    margin-bottom: 20px;
    padding: 14px 24px !important;
    border-radius: 10px;
    background: #21166f;
    border: none;
    box-shadow: none;
}

.home-main-theme .quick-link {
    color: #ffffff;
    font-weight: 700;
}

    .home-main-theme .quick-link:hover {
        color: #d4ad45;
    }

    .home-main-theme .quick-link::after {
        background: #d4ad45;
    }

/* =====================================================
   DROPDOWN DEL MENU ENCIMA DEL BANNER
   ===================================================== */

.home-main-theme .topbar-links,
.home-main-theme .quick-nav-wrap,
.home-main-theme #quickNavMenu,
.home-main-theme .quick-dd {
    overflow: visible !important;
}

.home-main-theme .topbar-links {
    position: relative;
    z-index: 1000;
}

.home-main-theme .quick-nav-wrap {
    position: relative;
    z-index: 5001;
}

.home-main-theme #quickNavMenu {
    position: relative;
    z-index: 5002;
}

.home-main-theme .quick-dd {
    position: relative;
    z-index: 5003;
}

.home-main-theme .quick-dd-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    z-index: 99999 !important;
}

.home-main-theme .main-home-content,
.home-main-theme .home-banner-carousel,
.home-main-theme .home-banner-inner,
.home-main-theme .carousel-inner,
.home-main-theme .carousel-item,
.home-main-theme .home-banner-img,
.home-main-theme .banner-img {
    position: relative;
    z-index: 1 !important;
}

.home-main-theme .home-banner-carousel,
.home-main-theme .carousel-inner,
.home-main-theme .carousel-item {
    overflow: visible !important;
}

body.module-main-theme.manuales-politicas-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    body.module-main-theme.manuales-politicas-page .layout-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }

        body.module-main-theme.manuales-politicas-page .layout-content > .container {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
        }

    body.module-main-theme.manuales-politicas-page .main-home-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }

.manuales-politicas-page .mp-front-wrapper {
    flex: 1 0 auto;
}

.manuales-politicas-page .footer {
    margin-top: auto;
}

/* ==========================================
   AJUSTE DINÁMICO DEL MENÚ SEGÚN OPCIONES
   ========================================== */

.home-main-theme .topbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

    .home-main-theme .topbar-links .small {
        flex: 0 0 auto;
    }

.home-main-theme .quick-nav-wrap {
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.home-main-theme .quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    row-gap: .5rem;
    white-space: normal;
}

.home-main-theme .quick-dd,
.home-main-theme .quick-link {
    flex: 0 0 auto;
}

.employee-profile-card {
    margin-top: 20px;
}

.employee-card {
    background: #21166f;
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(33,22,111,0.18);
}

.employee-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.employee-card__avatar i {
    font-size: 50px;
    color: #d4ad45;
}

.employee-card__fullname {
    font-weight: 700;
    font-size: 16px;
}

.employee-card__role {
    font-size: 13px;
    opacity: 0.8;
}

.employee-card__body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.employee-card__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .employee-card__item i {
        font-size: 18px;
        color: #d4ad45;
    }

    .employee-card__item span {
        font-size: 12px;
        opacity: 0.7;
        display: block;
    }

    .employee-card__item strong {
        font-size: 14px;
    }

.home-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* IZQUIERDA */
.home-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* DERECHA */
.home-main {
    flex: 1;
}

/* que la tarjeta se quede fija (pro) */
.home-sidebar {
    position: sticky;
    top: 20px;
}

/* responsive */
@media (max-width: 991px) {
    .home-layout {
        flex-direction: column;
    }

    .home-sidebar {
        width: 100%;
        position: relative;
    }
}

.sidebar-toggle {
    position: fixed;
    top: 80px;
    left: 22px;
    z-index: 1200;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21166f;
    backdrop-filter: none;
    border: none;
    border-radius: 14px;
    padding: 0;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.35s ease;
}

    .sidebar-toggle:hover {
        background: #2f2390;
        border-color: transparent;
    }

    .sidebar-toggle.active {
        top: 22px;
        left: 248px;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        width: auto;
        height: auto;
        display: inline-flex;
        color: #ffffff;
    }

        .sidebar-toggle.active i {
            font-size: 23px;
            line-height: 1;
        }

        .sidebar-toggle.active:hover {
            background: none;
        }

        .sidebar-toggle.active i {
            opacity: 0.9;
        }

/* SIDEBAR */
.sidebar-profile {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #21166f;
    padding: 20px;
    z-index: 1100;
    transition: all 0.3s ease;
}

    .sidebar-profile.active {
        left: 0;
    }

/* mover layout */
#layoutWrapper {
    transition: margin-left 0.3s ease;
}

    #layoutWrapper.shifted {
        margin-left: 300px;
    }

/* responsive */
@media (max-width: 991px) {
    #layoutWrapper.shifted {
        margin-left: 0;
    }

    .sidebar-profile {
        width: 80%;
        left: -100%;
    }

        .sidebar-profile.active {
            left: 0;
        }

    .sidebar-toggle {
        top: 68px;
        left: 16px;
        width: 54px;
        height: 54px;
    }

        .sidebar-toggle.active {
            top: 16px;
            left: calc(80% - 66px);
        }
}

/* =====================================================
   AJUSTE FINAL CUMPLEAÑOS - FONDO BLANCO / BORDE DORADO
   ===================================================== */

.home-main-theme .birthday-showcase,
.home-main-theme .birthday-showcase--compact {
    background: #ffffff !important;
    border: 2px solid #d4ad45 !important;
    border-radius: 22px !important;
    box-shadow: none !important;
    overflow: hidden;
}

    .home-main-theme .birthday-showcase::before,
    .home-main-theme .birthday-showcase::after,
    .home-main-theme .birthday-showcase--compact::before,
    .home-main-theme .birthday-showcase--compact::after {
        display: none !important;
        content: none !important;
    }

.home-main-theme .birthday-showcase__title,
.home-main-theme .birthday-showcase__month,
.home-main-theme .birthday-showcase__footer {
    color: #21166f !important;
}

/* Tarjetas de cumpleaños en azul */
.home-main-theme .birthday-person-card {
    background: #eaf2ff !important;
    border: 1px solid #c9daf5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.home-main-theme .birthday-person-card__date,
.home-main-theme .birthday-person-card__name,
.home-main-theme .birthday-person-card__role {
    color: #06185f !important;
}

.home-main-theme .birthday-person-card__day {
    background: #21166f !important;
    color: #ffffff !important;
}

.home-main-theme .birthday-person-card__badge span {
    background: #dcecff !important;
    color: #064a9b !important;
}

/* Cumpleaños pasados */
.home-main-theme .birthday-person--past {
    background: #f1f5fb !important;
}

    .home-main-theme .birthday-person--past .birthday-person-card__day {
        background: #aeb8c6 !important;
        color: #ffffff !important;
    }

/* Próximos cumpleaños */
.home-main-theme .birthday-person--upcoming {
    background: #eaf2ff !important;
}

    .home-main-theme .birthday-person--upcoming .birthday-person-card__day {
        background: #21166f !important;
        color: #ffffff !important;
    }


/* =====================================================
   AJUSTE FINAL SIDEBAR PERFIL - ICONOS BLANCOS
   ===================================================== */

/* Fondo menú izquierdo */
.sidebar-profile {
    background: #21166f !important;
}

/* Ícono de foto/perfil se queda dorado */
.employee-card__avatar i {
    color: #d4ad45 !important;
}

/* Todos los demás íconos blancos */
.employee-card__item i {
    color: #ffffff !important;
}

/* Textos del sidebar */
.employee-card__fullname,
.employee-card__role,
.employee-card__item span,
.employee-card__item strong {
    color: #ffffff !important;
}

/* Línea divisoria */
.employee-card__header {
    border-bottom: 1px solid rgba(255,255,255,0.25) !important;
}

/* Card interior sin degradado extra */
.employee-card {
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================
   LOGO HORIZONTAL
   ========================================== */

.home-main-theme .navbar-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    padding: 0 !important;
}

    .home-main-theme .navbar-brand img.brandimage {
        height: 58px !important;
        width: auto !important;
        max-height: 58px !important;
        object-fit: contain;
    }

    .home-main-theme .navbar-brand::before {
        content: "Intranet";
        font-size: 1.15rem;
        font-weight: 500;
        color: #21166f;
        margin-right: 4px;
    }

/* ==========================================
   BOTÓN HAMBURGUESA ALINEADO AL MENU
   ========================================== */

.sidebar-toggle {
    top: 110px !important; /* misma altura del menu */
    left: 28px !important;
    width: 58px;
    height: 58px;
    border-radius: 16px;
}

    /* cuando abre */
    .sidebar-toggle.active {
        top: 24px !important;
        left: 248px !important;
    }

@media (max-width: 991px) {

    .home-main-theme .navbar-brand::before {
        font-size: 1rem;
    }

    .home-main-theme .navbar-brand img.brandimage {
        height: 48px !important;
    }

    .sidebar-toggle {
        top: 72px !important;
        left: 14px !important;
        width: 52px;
        height: 52px;
    }

        .sidebar-toggle.active {
            top: 14px !important;
            left: calc(80% - 64px) !important;
        }
}

/**/

.banner-img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}




.quick-notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: #1f1466;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    box-shadow: 0 6px 16px rgba(31, 20, 102, .25);
}

    .quick-notification-btn:hover {
        background: #d4af37;
        color: #1f1466;
        transform: translateY(-2px);
    }

    .quick-notification-btn i {
        font-size: 1.15rem;
    }

.quick-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d4af37;
    color: #1f1466;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}


.quick-notification-header {
    background: linear-gradient(135deg, #1f1466 0%, #2c1d8f 100%);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .quick-notification-header strong {
        font-size: 1.05rem;
    }

    .quick-notification-header span {
        font-size: .9rem;
        opacity: .85;
    }

.quick-notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f1f1f1;
    transition: .2s ease;
}

    .quick-notification-item:hover {
        background: #f8f9ff;
    }

    .quick-notification-item.is-unread {
        background: #fff8df;
    }

.quick-notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f1f2ff;
    color: #1f1466;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.quick-notification-item strong,
.quick-notification-item span,
.quick-notification-item small {
    display: block;
}

.quick-notification-item strong {
    font-size: 14px;
}

.quick-notification-item span {
    font-size: 13px;
    color: #666;
}

.quick-notification-item small {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.quick-notification-empty {
    padding: 20px;
    text-align: center;
    color: #777;
}

.quick-notifications {
    position: relative;
    z-index: 99999;
}

.quick-notification-menu {
    z-index: 999999 !important;
    position: absolute !important;
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 999999 !important;
}

.home-main-theme .header-bg,
.home-main-theme .header-bg-inner,
.home-main-theme header,
.home-main-theme nav.navbar {
    position: relative;
    z-index: 999998 !important;
    overflow: visible !important;
}

.quick-notifications {
    position: relative;
    z-index: 1000000 !important;
}

.quick-notification-menu {
    width: 360px;
    min-height: 120px;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    padding: 0;
    margin-top: 14px !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.22);
    background: #ffffff;
    animation: notificationDropdown .22s ease;
}
@keyframes notificationDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-notification-btn.has-alert {
    animation: bellShake 2s infinite;
}

@keyframes bellShake {

    0% {
        transform: rotate(0);
    }

    5% {
        transform: rotate(15deg);
    }

    10% {
        transform: rotate(-12deg);
    }

    15% {
        transform: rotate(10deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    25% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

.quick-notification-badge {
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

.home-main-theme .quick-dd-menu {
    display: none !important;
}

.home-main-theme .quick-dd.open > .quick-dd-menu {
    display: block !important;
}

/* Evitar que el mensaje de cumpleaños se corte */
.home-main-theme .birthday-showcase,
.home-main-theme .birthday-showcase--compact,
.home-main-theme .birthday-showcase-wrapper,
.home-main-theme .birthday-showcase__content,
.home-main-theme .birthday-showcase__grid {
    overflow: visible !important;
}

.home-main-theme .birthday-person-card {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

    .home-main-theme .birthday-person-card:hover {
        z-index: 9999;
    }

.home-main-theme .birthday-popup {
    z-index: 99999 !important;
}

/* =====================================================
   SECCIÓN COMPLIANCE DEL MENÚ
   ===================================================== */

.quick-dd-divider {
    height: 1px;
    margin: 8px 12px;
    background: rgba(0, 0, 0, 0.1);
}

.quick-dd-section-title {
    padding: 5px 14px 4px;
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================================
   MENÚ SUPERIOR - MÓDULOS INTERNOS
   Adquisiciones / Mesa de Ayuda / Compliance / ERP / etc.
   ============================================================ */

.module-main-theme {
    min-height: 100vh;
    background: #ffffff !important;
    color: #21166f;
}


    /* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

    .module-main-theme .layout-content > .container {
        max-width: 1280px;
    }


    /* ============================================================
   BARRA SUPERIOR
   ============================================================ */

    .module-main-theme .topbar-links {
        position: relative;
        z-index: 5000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        row-gap: 8px;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 2px;
        margin-bottom: 20px;
        padding: 14px 24px !important;
        background: #21166f;
        border: none;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(33, 22, 111, 0.12);
        overflow: visible !important;
    }


        /* ============================================================
   TEXTO "HOLA, USUARIO"
   ============================================================ */

        .module-main-theme .topbar-links .small,
        .module-main-theme .topbar-links .text-muted,
        .module-main-theme .topbar-links b {
            color: #ffffff !important;
        }

        .module-main-theme .topbar-links .small {
            flex: 0 0 auto;
            font-size: 0.82rem;
            font-weight: 500;
        }

        .module-main-theme .topbar-links b {
            font-weight: 700;
        }


    /* ============================================================
   CONTENEDOR NAVEGACIÓN
   ============================================================ */

    .module-main-theme .quick-nav-wrap {
        position: relative;
        z-index: 5001;
        margin-left: auto;
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible !important;
    }


    /* ============================================================
   MENÚ
   ============================================================ */

    .module-main-theme #quickNavMenu,
    .module-main-theme .quick-nav {
        position: relative;
        z-index: 5002;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 1rem;
        row-gap: 0.5rem;
        white-space: normal;
        overflow: visible !important;
    }


    /* ============================================================
   LINKS PRINCIPALES
   ============================================================ */

    .module-main-theme .quick-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        padding: 3px 4px;
        color: #ffffff !important;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.1;
        text-decoration: none !important;
        border-radius: 7px;
        white-space: nowrap;
        transition: color 0.18s ease, background-color 0.18s ease;
    }


        /* Línea dorada inferior */

        .module-main-theme .quick-link::after {
            content: "";
            position: absolute;
            left: 4px;
            right: 4px;
            bottom: -5px;
            height: 2px;
            background: #d4ad45;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.18s ease;
            border-radius: 999px;
        }


        /* Hover */

        .module-main-theme .quick-link:hover {
            color: #d4ad45 !important;
            background: transparent !important;
        }

            .module-main-theme .quick-link:hover::after {
                transform: scaleX(1);
            }


        /* Link activo */

        .module-main-theme .quick-link.active {
            color: #d4ad45 !important;
        }

            .module-main-theme .quick-link.active::after {
                transform: scaleX(1);
            }


    /* ============================================================
   CONTENEDORES DROPDOWN
   ============================================================ */

    .module-main-theme .quick-dd {
        position: relative;
        z-index: 5003;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        overflow: visible !important;
    }


    /* ============================================================
   DROPDOWN
   ============================================================ */

    .module-main-theme .quick-dd-menu {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 99999 !important;
        display: none;
        min-width: 270px;
        margin-top: 10px;
        padding: 8px;
        background: #ffffff;
        border: 1px solid rgba(33, 22, 111, 0.12);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(33, 22, 111, 0.18);
        overflow: hidden;
    }


    /* Dropdown ancho */

    .module-main-theme .quick-dd-menu-wide {
        min-width: 340px;
        max-height: 420px;
        overflow-x: hidden;
        overflow-y: auto;
    }


    /* Mostrar dropdown */

    .module-main-theme .quick-dd.open > .quick-dd-menu {
        display: block !important;
    }


    /* Link padre abierto */

    .module-main-theme .quick-dd.open > .quick-dd-toggle {
        color: #d4ad45 !important;
    }

        .module-main-theme .quick-dd.open > .quick-dd-toggle::after {
            transform: scaleX(1);
        }


    /* ============================================================
   ITEMS DEL DROPDOWN
   ============================================================ */

    .module-main-theme .quick-dd-item {
        display: block;
        width: 100%;
        padding: 9px 12px;
        color: #21166f !important;
        font-size: 0.84rem;
        font-weight: 600;
        line-height: 1.3;
        text-decoration: none !important;
        border-radius: 9px;
        transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }

        .module-main-theme .quick-dd-item:hover {
            color: #21166f !important;
            background: rgba(33, 22, 111, 0.08);
            transform: translateX(2px);
        }


    /* ============================================================
   SEPARADORES DEL DROPDOWN
   ============================================================ */

    .module-main-theme .quick-dd-menu hr {
        margin: 6px 4px;
        border-color: rgba(33, 22, 111, 0.10);
        opacity: 1;
    }


    /* ============================================================
   BOTÓN HAMBURGUESA
   ============================================================ */

    .module-main-theme .quick-nav-toggle {
        border: none;
        background: #21166f;
        color: #ffffff;
        border-radius: 10px;
        padding: 7px 11px;
        font-size: 1rem;
        font-weight: 800;
        cursor: pointer;
    }


    /* ============================================================
   PROTECCIÓN DE Z-INDEX
   ============================================================ */

    .module-main-theme .topbar-links,
    .module-main-theme .quick-nav-wrap,
    .module-main-theme #quickNavMenu,
    .module-main-theme .quick-dd {
        overflow: visible !important;
    }

    .module-main-theme .topbar-links {
        position: relative;
        z-index: 5000;
    }

    .module-main-theme .quick-nav-wrap {
        z-index: 5001;
    }

    .module-main-theme #quickNavMenu {
        z-index: 5002;
    }

    .module-main-theme .quick-dd {
        z-index: 5003;
    }

    .module-main-theme .quick-dd-menu {
        z-index: 99999 !important;
    }


/* ============================================================
   MOBILE / TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .module-main-theme .topbar-links {
        position: relative;
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px 16px !important;
        white-space: normal;
    }


    .module-main-theme .quick-nav-wrap {
        margin-left: auto;
        flex: 0 0 auto;
    }


    /*
     * En móvil el menú permanece oculto
     * hasta utilizar el botón hamburguesa.
     */

    .module-main-theme #quickNavMenu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 99999;
        display: none !important;
        width: 290px;
        padding: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #21166f;
        border: 1px solid rgba( 255, 255, 255, 0.12 );
        border-radius: 12px;
        box-shadow: 0 18px 38px rgba( 0, 0, 0, 0.20 );
    }


        .module-main-theme #quickNavMenu.is-open {
            display: flex !important;
        }


    .module-main-theme .quick-link {
        display: block;
        width: 100%;
        padding: 8px 10px;
        border-radius: 8px;
    }


        .module-main-theme .quick-link::after {
            display: none;
        }


        .module-main-theme .quick-link:hover {
            background: rgba( 255, 255, 255, 0.10 ) !important;
        }


    .module-main-theme .quick-dd {
        display: block;
        width: 100%;
    }


    .module-main-theme .quick-dd-menu {
        position: static !important;
        display: none;
        width: 100%;
        min-width: 0;
        margin-top: 4px;
        padding: 4px 4px 4px 12px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }


    .module-main-theme
    .quick-dd.open > .quick-dd-menu {
        display: block !important;
    }


    .module-main-theme .quick-dd-item {
        color: #ffffff !important;
        padding: 7px 10px;
    }


        .module-main-theme .quick-dd-item:hover {
            color: #d4ad45 !important;
            background: rgba( 255, 255, 255, 0.10 );
            transform: none;
        }
}


/* ============================================================
   MOBILE PEQUEÑO
   ============================================================ */

@media (max-width: 575.98px) {

    .module-main-theme .topbar-links {
        padding: 10px 12px !important;
    }


        .module-main-theme .topbar-links .small {
            max-width: calc(100% - 55px);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


    .module-main-theme #quickNavMenu {
        width: min( 290px, calc(100vw - 30px) );
    }
}

/* ============================================================
   FIX Z-INDEX MENU VS MODALES
   ============================================================ */

.module-main-theme .topbar-links {
    z-index: 900 !important;
}

.module-main-theme .quick-nav-wrap {
    z-index: 901 !important;
}

.module-main-theme #quickNavMenu {
    z-index: 902 !important;
}

.module-main-theme .quick-dd {
    z-index: 903 !important;
}

.module-main-theme .quick-dd-menu {
    z-index: 950 !important;
}

/*
 * Bootstrap modal:
 * backdrop ≈ 1050
 * modal ≈ 1055
 *
 * Forzamos explícitamente para evitar que cualquier
 * estilo general de la Intranet quede encima.
 */

.modal-backdrop {
    z-index: 1050 !important;
}

.modal {
    z-index: 1060 !important;
}