.appsweb-portal-shell {
    --appsweb-header-bg: #1b4e48;
    --appsweb-header-rgb: 27, 78, 72;
    --appsweb-banner: url('../img/imgsistema/bannerfs.png');
}

html:has(#appsweb-portal-header) { scroll-padding-top: 110px; }
body:has(> #appsweb-portal-header) {
    overflow-x: clip;
    overflow-y: visible;
}

#appsweb-portal-header,
.appsweb-portal-hero {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

#appsweb-portal-header *,
.appsweb-portal-hero * { box-sizing: border-box; }

#appsweb-portal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--appsweb-header-bg);
    color: #fff;
}

.appsweb-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(100% - 32px, 1140px);
    min-height: 92px;
    margin: 0 auto;
}

#appsweb-portal-header a {
    color: #fff;
    text-decoration: none;
}

#appsweb-portal-header a:hover,
#appsweb-portal-header a:focus-visible { color: #f4d895; }

.appsweb-header-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.appsweb-header-brand img,
.appsweb-brand-fallback {
    display: inline-grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    color: var(--appsweb-header-bg);
    padding: 3px;
    font-size: 28px;
    font-weight: 700;
}

.appsweb-header-brand strong,
.appsweb-header-brand small { display: block; line-height: 1.2; }
.appsweb-header-brand strong { font-size: 18px; }
.appsweb-header-brand small { margin-top: 2px; font-size: 13px; font-weight: 400; }

.appsweb-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    flex: 1 1 auto;
    min-width: 0;
}

.appsweb-header-nav a,
.appsweb-header-login {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
}

#appsweb-portal-header .appsweb-header-login {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #fff;
    border-radius: 2px;
}

#appsweb-portal-header .appsweb-header-login:hover,
#appsweb-portal-header .appsweb-header-login:focus-visible {
    background: #fff;
    color: var(--appsweb-header-bg);
}

.appsweb-portal-hero {
    color: #fff;
    background-color: var(--appsweb-header-bg);
    background-image: linear-gradient(90deg, rgba(var(--appsweb-header-rgb), .97), rgba(var(--appsweb-header-rgb), .83) 62%, rgba(var(--appsweb-header-rgb), .54)), var(--appsweb-banner), url('../img/imgsistema/bannerfs.png');
    background-position: center;
    background-size: cover;
}

.appsweb-hero-inner {
    width: min(100% - 32px, 1140px);
    margin: 0 auto;
    padding: 26px 0 29px;
}

.appsweb-portal-hero p {
    margin: 0 0 9px;
    color: #f3da9c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.appsweb-portal-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.appsweb-portal-hero--inner h1 { margin-bottom: 0; }

.appsweb-hero-inner > span { color: #e2edef; font-size: 16px; }

.appsweb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.appsweb-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #d9e9e7;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.appsweb-hero-actions a:first-child {
    border-color: #fff;
    background: #fff;
    color: #17353e;
}

.appsweb-hero-actions a:hover,
.appsweb-hero-actions a:focus-visible {
    background: #e5f0ec;
    color: #17353e;
}

@media (max-width: 991px) {
    html:has(#appsweb-portal-header) { scroll-padding-top: 155px; }
    .appsweb-header-inner { flex-wrap: wrap; gap: 0 16px; padding: 12px 0; }
    .appsweb-header-brand { margin-right: auto; }
    .appsweb-header-nav {
        order: 3;
        justify-content: flex-start;
        gap: 20px;
        width: 100%;
        padding: 12px 0 3px;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .appsweb-header-brand strong { font-size: 15px; }
    .appsweb-header-brand small { font-size: 11px; }
    .appsweb-header-brand img,
    .appsweb-brand-fallback { flex-basis: 42px; width: 42px; height: 42px; }
    #appsweb-portal-header .appsweb-header-login { min-height: 40px; padding: 0 10px; font-size: 13px; }
    .appsweb-header-nav a { font-size: 14px; }
    .appsweb-portal-hero h1 { font-size: 22px; }
    .appsweb-hero-inner > span { font-size: 14px; }
}
