/* Apariencia única para Inicio, Propiedades y Detalle, sin afectar el contenido de cada vista. */
.landing-page {
    --landing-header-height: 66px;
}

.landing-page .main-header {
    width: 100%;
    height: var(--landing-header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #f1d58a;
    box-shadow: none;
    color: #37352f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: auto;
}

/* Bootstrap conserva sticky en Inicio/Detalle y fixed en Propiedades; no cambiamos sus offsets. */
.page-home .main-header {
    z-index: 1000;
}

/* Conserva la cabecera del detalle por encima del acceso flotante al listado. */
.page-property-detail .main-header {
    z-index: 1100;
}

.main-header .home-header-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 32px;
}

.main-header .home-header-content {
    width: 100%;
    min-height: var(--landing-header-height);
    margin: 0;
}

.main-header .brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.main-header .logo-circle {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.main-header .logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-header .logo-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-header .logo-text .mexico,
.main-header .logo-text .inmuebles {
    color: #000;
    font-size: 18px;
}

.main-header .logo-text .mexico {
    font-weight: 500;
}

.main-header .logo-text .inmuebles {
    font-weight: 700;
}

.main-header .home-header-sell-link {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    color: #272727;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 3px;
}

.main-header .home-header-sell-link:hover {
    color: #000;
    text-decoration: none;
}

.main-header .home-header-help {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.main-header .home-header-login {
    min-width: 116px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #f4b72f;
    color: #291d00;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.main-header .home-header-login:hover {
    transform: translateY(-1px);
    background: #e9a916;
    color: #171000;
    text-decoration: none;
    animation: landing-header-login-hover .2s ease;
}

@keyframes landing-header-login-hover {
    from { transform: translateY(0); background-color: #f4b72f; }
    to { transform: translateY(-1px); background-color: #e9a916; }
}

@media (prefers-reduced-motion: reduce) {
    .main-header .home-header-login:hover {
        animation: none;
        transform: none;
    }
}

@media (max-width: 900px) {
    .main-header .home-header-container {
        padding: 0 18px;
    }
}

@media (max-width: 575px) {
    .landing-page {
        --landing-header-height: 58px;
    }

    .main-header .home-header-container {
        padding: 0 14px;
    }

    .main-header .home-header-login {
        min-width: 94px;
        padding: 9px 12px;
        font-size: 11px;
    }
}

/* En teléfonos estrechos, logo y acceso caben sin superponerse ni cambiar la altura. */
@media (max-width: 359px) {
    .main-header .brand-link {
        gap: 8px;
    }

    .main-header .logo-circle {
        width: 32px;
        height: 32px;
    }

    .main-header .logo-text .mexico,
    .main-header .logo-text .inmuebles {
        font-size: 16px;
    }
}
