/* ======================================================
   HEADER OTROS – SIGv 2025
   Documental · Formularios · Reportes
   Variable-driven · Limpio · Predecible
====================================================== */

/* ======================================================
   HEADER BASE
====================================================== */
.header-otros {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ======================================================
   CONTENEDOR PRINCIPAL
====================================================== */
.hm-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    width: 100%;
}

/* ======================================================
   BRAND
====================================================== */
.hm-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hm-logo {
    height: clamp(52px, 6vw, 68px);
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
}

.hm-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.hm-title {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: var(--header-title-color);
    white-space: nowrap;
}

.hm-sub {
    font-size: clamp(11px, 2.5vw, 13px);
    color: var(--header-subtitle-color);
}

/* ======================================================
   MENÚ DESKTOP
====================================================== */
.hm-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--header-menu-bg);
}

.hm-nav a,
.hm-nav span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--header-menu-text, inherit);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.hm-nav a:hover {
    background: var(--header-menu-hover-bg, rgba(0,0,0,0.06));
}

.hm-nav a.activo {
    background: var(--header-menu-active-bg);
    color: var(--header-menu-active-text, #ffffff);
}

.hm-nav .logout {
    background: #c0392b;
    color: #ffffff;
}

/* ======================================================
   INFO DE SESIÓN
====================================================== */
.sesion-info {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    background: var(--header-session-bg);
    color: #ffffff;
}

/* ======================================================
   BOTÓN MENÚ (MÓVIL)
====================================================== */
.hm-burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--header-menu-active-bg);
    color: var(--header-menu-active-text, #ffffff);
    padding: 10px 14px;
    font-size: 17px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ======================================================
   RESPONSIVE (MÓVIL)
====================================================== */
@media (max-width: 768px) {

    .hm-burger {
        display: inline-flex;
    }

    .hm-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        flex-direction: column;
        gap: 4px;
        min-width: 220px;
        padding: 10px;
        border-radius: 14px;
        background: var(--header-menu-bg);
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        z-index: 10000;
    }

    .hm-nav.open {
        display: flex;
    }

    .hm-nav a,
    .hm-nav span {
        width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
    }
}

/* ======================================================
   PROTECCIÓN
====================================================== */
header {
    -webkit-user-select: none;
    user-select: none;
}

/* ======================================================
   SKIN OTROS (SOLO VARIABLES)
====================================================== */
body.header-otros {
    --header-bg: #fafafa;
    --header-title-color: #34495e;
    --header-subtitle-color: #7f8c8d;
    --header-menu-bg: #fafafa;
    --header-menu-text: #34495e;
    --header-menu-active-bg: #bdc3c7;
    --header-menu-active-text: #2c3e50;
    --header-session-bg: #7f8c8d;
}


/* ======================================================
   🔒 MENÚ – CONTROLADO POR VARIABLES (NO HARD CODE)
====================================================== */


.hm-nav {
    background: var(--header-menu-bg);
}

.hm-nav a,
.hm-nav span {
    color: var(--header-menu-text, inherit);
}

.hm-nav a:hover {
    background: var(--header-menu-hover-bg, rgba(0,0,0,0.06));
}

.hm-nav a.activo {
    background: var(--header-menu-active-bg, var(--color-secundario));
    color: var(--header-menu-active-text, #ffffff);
}