/* ============================================================
   UNICREA · Identidad visual del sistema de control de accesos
   Inspiración: azul institucional de la interfaz original.
   ============================================================ */
:root {
    --uni-blue: #0059b3;
    --uni-blue-deep: #07315f;
    --uni-blue-dark: #102b49;
    --uni-blue-soft: #eaf2fb;
    --uni-steel: #a0aec0;
    --uni-paper: #f2f5f8;
    --uni-white: #ffffff;
    --uni-text: #1b2d42;
    --uni-muted: #718096;
    --uni-line: #dce3eb;
    --uni-gold: #c99a45;
    --uni-shadow: 0 12px 32px rgba(13, 39, 68, .075);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--uni-paper); }
body.unicrea-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--uni-text);
    background: var(--uni-paper);
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Barra institucional: limpia, sólida y sin un isotipo inventado. */
.unicrea-navbar {
    position: relative;
    z-index: 1020;
    min-height: 72px;
    padding: .55rem 0;
    background: var(--uni-blue);
    box-shadow: 0 5px 18px rgba(0, 44, 91, .17);
}
.unicrea-navbar::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--uni-gold) 0 13%, rgba(255,255,255,.18) 13% 100%);
    content: '';
}
.unicrea-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: .25rem 0;
    text-decoration: none;
}
.unicrea-brand__symbol {
    display: block;
    width: 4px;
    height: 37px;
    border-radius: 0;
    background: var(--uni-gold);
}
.unicrea-brand__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    line-height: 1;
}
.unicrea-brand__text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .16em;
}
.unicrea-brand__text small {
    color: rgba(255,255,255,.75);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .19em;
}
.unicrea-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: .85rem 1rem !important;
    border-radius: 3px;
    color: rgba(255,255,255,.78) !important;
    font-size: 12px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease;
}
.unicrea-nav-link:hover,
.unicrea-nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.unicrea-nav-link.active::after {
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    background: var(--uni-gold);
    content: '';
}
.unicrea-nav-link i { font-size: 12px; }
.unicrea-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .35rem .5rem !important;
    border-radius: 3px;
    color: #fff !important;
}
.unicrea-user:hover { background: rgba(255,255,255,.1); }
.unicrea-user__avatar {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.09);
    font-size: 12px;
}
.unicrea-user__name { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.unicrea-user__name strong { max-width: 220px; overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.unicrea-user__name small { color: rgba(255,255,255,.7); font-size: 9px; }
.unicrea-dropdown {
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--uni-line);
    border-radius: 5px;
    box-shadow: var(--uni-shadow);
}
.unicrea-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 3px;
    color: #46586c;
    font-size: 12px;
}
.unicrea-dropdown .dropdown-item:hover { color: #9d3740; background: #fff1f2; }
.unicrea-toggler { border-color: rgba(255,255,255,.35); border-radius: 3px; }
.unicrea-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.18); }
.unicrea-toggler .navbar-toggler-icon { filter: brightness(0) invert(1); }
.unicrea-main { width: 100%; min-height: calc(100vh - 72px); }

@media (max-width: 991.98px) {
    .unicrea-navbar { min-height: 66px; }
    .unicrea-main { min-height: calc(100vh - 66px); }
    .unicrea-navbar .navbar-collapse { padding: 11px 0 5px; }
    .unicrea-nav-link { width: fit-content; }
    .unicrea-user { margin-top: 6px; }
}
@media (max-width: 575.98px) {
    .unicrea-brand__symbol { height: 32px; }
    .unicrea-brand__text strong { font-size: 17px; }
    .unicrea-brand__text small { font-size: 7px; }
}
