/*
 * REAL PROH - Header responsive adjustments
 * Version: 3.0 - 2026-09-14
 * Canonical destination: /public/assets/css/realproh-header.css
 */

.realproh-mobile-menu-actions {
    display: none;
}

/*
 * Base profile button styling for every viewport size.
 * This must also win on desktop pages such as /acceso, whose page CSS
 * otherwise renders white text over a white header.
 */
header .header-button .btn.realproh-profile-button,
body.login-page header .header-button .btn.realproh-profile-button,
body.login-page header.realproh-sticky-header .header-button .btn.realproh-profile-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;

    min-width: 138px;
    min-height: 46px;
    height: 46px;
    padding: 0 22px !important;

    background: #e2b34f !important;
    border: 1px solid #e2b34f !important;
    border-radius: 999px !important;
    color: #111111 !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: nowrap;
    gap: 7px;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

header .header-button .btn.realproh-profile-button span,
body.login-page header .header-button .btn.realproh-profile-button span,
body.login-page header.realproh-sticky-header .header-button .btn.realproh-profile-button span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    color: #111111 !important;
}

header .header-button .btn.realproh-profile-button i,
body.login-page header .header-button .btn.realproh-profile-button i,
body.login-page header.realproh-sticky-header .header-button .btn.realproh-profile-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    line-height: 1 !important;
    color: #111111 !important;
    font-size: 11px;
}

header .header-button .btn.realproh-profile-button:hover,
header .header-button .btn.realproh-profile-button:focus,
header .header-button .btn.realproh-profile-button:active,
body.login-page header .header-button .btn.realproh-profile-button:hover,
body.login-page header .header-button .btn.realproh-profile-button:focus,
body.login-page header .header-button .btn.realproh-profile-button:active,
body.login-page header.realproh-sticky-header .header-button .btn.realproh-profile-button:hover,
body.login-page header.realproh-sticky-header .header-button .btn.realproh-profile-button:focus,
body.login-page header.realproh-sticky-header .header-button .btn.realproh-profile-button:active {
    background: #c99a35 !important;
    border-color: #c99a35 !important;
    color: #111111 !important;
}


/*
 * Profile button
 * Use the same selector weight as page-specific rules such as
 * .header-button .btn so the header remains consistent on every page.
 */
@media (max-width: 1199.98px) {
    header .header-button .btn.realproh-profile-button,
    header.header-appear .header-button .btn.realproh-profile-button,
    header.sticky .header-button .btn.realproh-profile-button,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;

        min-width: 116px;
        min-height: 42px;
        height: 42px;
        padding: 0 18px !important;

        background: #e2b34f !important;
        border: 1px solid #e2b34f !important;
        border-radius: 999px !important;
        color: #111111 !important;

        font-size: 13px !important;
        font-weight: 500;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap;

        gap: 7px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
    }

    header .header-button .btn.realproh-profile-button span,
    header.header-appear .header-button .btn.realproh-profile-button span,
    header.sticky .header-button .btn.realproh-profile-button span,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    header .header-button .btn.realproh-profile-button i,
    header.header-appear .header-button .btn.realproh-profile-button i,
    header.sticky .header-button .btn.realproh-profile-button i,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        line-height: 1 !important;
        font-size: 11px;
    }

    header .header-button .btn.realproh-profile-button:hover,
    header .header-button .btn.realproh-profile-button:focus,
    header .header-button .btn.realproh-profile-button:active,
    header.header-appear .header-button .btn.realproh-profile-button:hover,
    header.header-appear .header-button .btn.realproh-profile-button:focus,
    header.header-appear .header-button .btn.realproh-profile-button:active,
    header.sticky .header-button .btn.realproh-profile-button:hover,
    header.sticky .header-button .btn.realproh-profile-button:focus,
    header.sticky .header-button .btn.realproh-profile-button:active,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button:hover,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button:focus,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button:active {
        background: #c99a35 !important;
        border-color: #c99a35 !important;
        color: #111111 !important;
    }
}

/* Tablet and mobile navigation. */
@media (max-width: 991.98px) {
    .realproh-profile-access {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end;
        padding-left: 6px;
    }

    .realproh-profile-access .header-icon,
    .realproh-profile-access .header-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center;
        height: 100%;
    }

    .realproh-mobile-menu-actions {
        display: block !important;
        width: 100%;
        margin-top: 14px;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .realproh-mobile-menu-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .realproh-mobile-menu-buttons .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        min-height: 48px;
        padding: 12px 18px !important;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1 !important;
        text-transform: none;
        letter-spacing: 0;
    }

    .realproh-mobile-profile-btn {
        color: #ffffff !important;
        background: transparent !important;
        border: 1px solid rgba(226, 179, 79, 0.85) !important;
    }

    .realproh-mobile-profile-btn:hover,
    .realproh-mobile-profile-btn:focus,
    .realproh-mobile-profile-btn:active {
        color: #ffffff !important;
        background: rgba(226, 179, 79, 0.12) !important;
        border-color: #e2b34f !important;
    }

    .realproh-mobile-join-btn {
        color: #111111 !important;
        background: #e2b34f !important;
        border: 1px solid #e2b34f !important;
    }

    .realproh-mobile-join-btn:hover,
    .realproh-mobile-join-btn:focus,
    .realproh-mobile-join-btn:active {
        color: #111111 !important;
        background: #c99a35 !important;
        border-color: #c99a35 !important;
    }
}

/* Small phones: keep logo, profile access and hamburger on the same row. */
@media (max-width: 575.98px) {
    .navbar .container-fluid {
        flex-wrap: nowrap;
    }

    .realproh-brand-column {
        min-width: 0;
    }

    .navbar .navbar-brand {
        max-width: 190px;
        margin-right: 4px;
    }

    .navbar .navbar-brand img {
        max-width: 100%;
        height: auto;
    }

    .realproh-profile-access {
        padding-left: 4px;
    }

    header .header-button .btn.realproh-profile-button,
    header.header-appear .header-button .btn.realproh-profile-button,
    header.sticky .header-button .btn.realproh-profile-button,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button {
        min-width: 92px;
        min-height: 38px;
        height: 38px;
        padding: 0 13px !important;
        font-size: 12px !important;
    }

    header .header-button .btn.realproh-profile-button i,
    header.header-appear .header-button .btn.realproh-profile-button i,
    header.sticky .header-button .btn.realproh-profile-button i,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button i {
        display: none !important;
    }

    .navbar-toggler {
        margin-left: 6px !important;
    }
}

@media (max-width: 389.98px) {
    .navbar .navbar-brand {
        max-width: 165px;
    }

    header .header-button .btn.realproh-profile-button,
    header.header-appear .header-button .btn.realproh-profile-button,
    header.sticky .header-button .btn.realproh-profile-button,
    header.realproh-sticky-header .header-button .btn.realproh-profile-button {
        min-width: 86px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* REAL PROH - Directorio dropdown */
.realproh-directory-dropdown .realproh-directory-menu {
    width: 312px !important;
    min-width: 312px !important;
    padding: 8px !important;
    margin-top: 0 !important;
    border: 1px solid rgba(212, 175, 90, 0.20) !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(11, 16, 32, 0.16) !important;
    overflow: hidden;
}

@media (min-width: 992px) {
    .realproh-directory-dropdown {
        position: relative;
    }

    .realproh-directory-dropdown .realproh-directory-menu {
        top: calc(100% - 1px) !important;
    }

    .realproh-directory-dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
    }
}

.realproh-directory-dropdown .realproh-directory-menu > li {
    margin: 0 !important;
    padding: 0 !important;
}

.realproh-directory-dropdown .realproh-directory-option {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 8px 10px !important;
    border-radius: 10px;
    color: #11182d !important;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease;
}

.realproh-directory-dropdown .realproh-directory-option:hover,
.realproh-directory-dropdown .realproh-directory-option:focus {
    background: #f7f3e9 !important;
}

.realproh-directory-option-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #11182d;
    color: #d9aa45;
    font-size: 15px;
}

.realproh-directory-option strong {
    display: block;
    color: #11182d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}

.realproh-directory-option-arrow {
    color: #b58a31;
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .realproh-directory-dropdown .realproh-directory-menu {
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 4px !important;
        box-shadow: none !important;
    }

    .realproh-directory-option strong {
        white-space: normal;
    }
}

