/* B4: identidad y navegación del portal público */

header.ifc-public-header .header-left-group {
    min-width: 0;
}

header.ifc-public-header .header-title {
    min-width: 0;
    text-align: left;
}

header.ifc-public-header .header-title h1 {
    font-size: 1.5rem !important;
    line-height: 1.25;
}

header.ifc-public-header .header-title h1 a {
    color: #fff;
    text-decoration: none;
}

header.ifc-public-header .header-title p {
    color: #d3deeb !important;
    line-height: 1.45;
}

header.ifc-public-header .header-widgets-right {
    flex-shrink: 0;
}

header.ifc-public-header .main-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px !important;
    padding: 0 !important;
}

header.ifc-public-header .main-nav-link {
    border-radius: 3px !important;
    font-size: 0.88rem !important;
}

header.ifc-public-header .main-nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: underline;
    text-underline-offset: 5px;
}

header.ifc-public-header a:focus-visible,
header.ifc-public-header button:focus-visible {
    outline: 3px solid #c7a858;
    outline-offset: 3px;
}

#cursos-section {
    scroll-margin-top: 180px;
}

@media (max-width: 1100px) {
    header.ifc-public-header {
        position: relative !important;
        padding: 16px !important;
    }

    .ifc-public-header ~ .main-content-wrapper {
        margin-top: 0 !important;
    }

    header.ifc-public-header .header-top-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    header.ifc-public-header .header-left-group {
        flex: 1 1 100%;
        gap: 14px !important;
    }

    header.ifc-public-header .header-widgets-right {
        margin-left: auto !important;
    }

    header.ifc-public-header .main-nav-bar {
        padding: 10px 0 0 !important;
    }

    #cursos-section {
        scroll-margin-top: 16px;
    }
}

@media (max-width: 580px) {
    header.ifc-public-header .header-left-group {
        align-items: flex-start !important;
        gap: 10px !important;
    }

    header.ifc-public-header .header-logos-combined {
        gap: 8px !important;
        flex-shrink: 0;
    }

    header.ifc-public-header .header-logo-img {
        height: 34px !important;
    }

    header.ifc-public-header .header-divider {
        display: none;
    }

    header.ifc-public-header .header-title h1 {
        font-size: 1.15rem !important;
    }

    header.ifc-public-header .header-title p {
        font-size: 0.76rem !important;
    }

    header.ifc-public-header .main-nav-list {
        justify-content: flex-start;
        gap: 4px !important;
    }

    header.ifc-public-header .main-nav-link {
        padding: 9px 10px !important;
        font-size: 0.8rem !important;
    }
}