/* ===========================
   HEADER BASE
   =========================== */
.zxq-header {
    all: unset;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 12px 20px !important;
    width: 100%;
    box-sizing: border-box;
    background: #0d6efd;
    margin: 0 !important;
    line-height: normal !important;
    height: 60px;

    /* ✅ Necesario para que el menú se vea */
    position: relative !important;
    overflow: visible !important;
    z-index: 10;
}

/* ===========================
   LOGO
   =========================== */
.zxq-header__logo img {
    height: 28px !important;
    width: auto !important;
    display: block !important;
}

/* ===========================
   ACCIONES
   =========================== */
.zxq-header__actions {
    all: unset;
    display: grid;
    grid-auto-flow: column;
    justify-content: end;
    gap: 12px;
}

/* ===========================
   BOTONES
   =========================== */
.zxq-btn {
    all: unset;
    padding: 10px 18px;
    background: #333;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 15px;
    text-align: center;
}

.zxq-btn:hover {
    background: #555;
}

.zxq-btn--primary {
    background: #ffffff !important;
    color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
}

.zxq-btn--secondary {
    background: #084298 !important;
    color: #ffffff !important;
    border: 1px solid #084298 !important;
}

/* ===========================
   USUARIO LOGUEADO
   =========================== */
.zxq-user {
    all: unset;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: sans-serif;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
}

.zxq-user__greeting {
    font-weight: 500;
    color: #ffffff;
}

/* Avatar circular */
.zxq-user__avatar {
    all: unset;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
}

.zxq-user__avatar * {
    pointer-events: none;
}

.zxq-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #084298;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zxq-avatar-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* ===========================
   MENÚ DESPLEGABLE
   =========================== */
.zxq-user-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #ffffff;
    color: #333333;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    min-width: 150px;
    padding: 6px 0;
    display: none;
    z-index: 999999 !important;
}

.zxq-user-menu__item {
    all: unset;
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    font-family: sans-serif;
    color: #333333;
    cursor: pointer;
    box-sizing: border-box;
}

.zxq-user-menu__item:hover {
    background: #f2f2f2;
}



.zxq-user-menu--open {
    display: block;
}

/* ===========================
   VISIBILIDAD SEGÚN LOGIN
   =========================== */



/* Contenedor del dropdown */
.zxq-dropdown {
    position: relative;
    display: inline-block;
}

/* Ocultar el triángulo del summary */
.zxq-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.zxq-dropdown summary::-webkit-details-marker {
    display: none;
}

/* Menú oculto por defecto */
.zxq-dropdown .zxq-user-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #ffffff;
    color: #333333;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    min-width: 150px;
    padding: 6px 0;
    z-index: 999999;
}

/* Mostrar menú cuando el dropdown está abierto */
.zxq-dropdown[open] .zxq-user-menu {
    display: block;
}


.zxq-user-menu__item:hover {
    background: #f2f2f2 !important;
    color: #333333 !important;
}

/* ✅ Blindaje de los enlaces del menú del usuario */
.zxq-user-menu__item {
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}


/* ✅ Corrección del desplazamiento del logo */
.zxq-header__logo a {
    display: flex !important;
    align-items: center !important;
}

.zxq-header__logo img {
    display: block !important;
}




/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 480px) {

    .zxq-header {
        padding: 8px 12px !important;
    }

    .zxq-header__logo img {
        height: 28px !important;
    }

    .zxq-header__actions {
        gap: 8px !important;
    }

    .zxq-btn {
        padding: 8px 14px !important;
        font-size: 14px !important;
    }

    .zxq-user__greeting {
      
    }
}
