/* Colores y cabecera de Principal.Master, sin posicionamiento global de formularios. */
:root { --portal-blue: rgb(15,56,89); }
body { margin: 0; background: #fff; font-family: "Open Sans", Arial, sans-serif; }
h1 { text-transform: uppercase; font-size: 1.5rem; }
#navPrincipal { background-color: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: var(--portal-blue); padding: 12px; }
#navPrincipal > .container { min-height: 66px; position: relative; gap: 12px; }
#navPrincipal .navbar-brand { min-width: 0; max-width: 40%; }
#navPrincipal .navbar-brand img { display: block; max-height: 50px; max-width: 100%; width: auto; height: auto; }
.oUsuario { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: .8125rem; color: #4a5568; min-width: 0; }
.oUsuario strong { overflow-wrap: anywhere; }
.portal-logout { margin: 0; flex-shrink: 0; }
.portal-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #4a5568;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.portal-logout-button svg { flex-shrink: 0; }
.portal-logout-button:hover, .portal-logout-button:focus-visible { color: #b34b55; background-color: #f8f9fa; }
#navbarSupportedContent { gap: 20px; }
#navbarSupportedContent .navbar-nav { gap: 4px; flex-shrink: 0; }
#navbarSupportedContent .nav-link { color: #4a5568; font-weight: 500; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
#navbarSupportedContent .nav-link:hover, #navbarSupportedContent .nav-link[aria-current="page"] { color: #243b50; background: #edf2f7; text-decoration: none; }
#navbarSupportedContent .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 #4a5568; }
.portal-content { padding-top: 25px; padding-bottom: 40px; }
:focus-visible { outline: 3px solid #0070c9; outline-offset: 3px; }
@media (min-width: 992px) {
    #navbarSupportedContent { justify-content: space-between; }
    .oUsuario { margin-left: auto; flex-wrap: wrap; }
}
@media (max-width: 991.98px) {
    #navPrincipal .navbar-brand { max-width: calc(100% - 110px); }
    .oUsuario { justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
    #navbarSupportedContent { background: #fff; margin-top: 8px; padding-bottom: 8px; }
    #navbarSupportedContent .nav-link { text-align: left; }
}
