/* =============================================
   HOME Header Simple — 3 elementos: hamburguesa + logo + idioma
   Casa Xu'unan
   ============================================= */

.home-header-simple {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    min-height: 100px;
    padding-top: 14px;
    gap: 16px;
    position: relative;
    flex-wrap: nowrap;
}
/* Cada item del header centrado verticalmente en el mismo eje */
.home-header-simple > * {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
}

/* Ambos lados con el mismo ancho fijo para que el logo quede REAL centrado */
.home-header-left,
.home-header-right {
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    min-width: 70px;
    max-width: 70px;
}
.home-header-left {
    justify-content: flex-start;
}
.home-header-right {
    justify-content: flex-end;
}
.home-header-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo — override display:table+height:80px del CSS original para que
   se alinee al flex del padre sin empujar a los otros items */
.home-header-center #logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    line-height: 1 !important;
}
.home-header-center #logo a {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: initial !important;
    line-height: 1 !important;
    height: auto !important;
}
.home-header-center #logo img.logo {
    display: block;
    vertical-align: middle;
}

/* Hamburguesa override — alineada al centro del flex padre */
.home-header-left #menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px;
    height: 40px;
    line-height: 1 !important;
    cursor: pointer;
}
/* El icono FontAwesome del hamburguesa se centra con el flex padre */
.home-header-left #menu-btn::before {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Boton idioma compacto */
.home-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    line-height: 1;
    background: transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.home-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff !important;
    text-decoration: none !important;
}
.home-lang-flag {
    font-size: 12px;
    line-height: 1;
    display: inline-block;
}
/* Fallback: si el sistema NO soporta emojis de bandera
   (detectado por JS y clase agregada al body), ocultamos la bandera */
body.no-flag-emoji .home-lang-flag {
    display: none;
}

/* Mobile ajustes (no se toca el tamano del logo) */
@media (max-width: 767px) {
    .home-header-simple {
        padding: 0 4px;
        gap: 8px;
    }
    .home-lang-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    .home-lang-flag {
        font-size: 11px;
    }
    .home-header-left,
    .home-header-right {
        flex: 0 0 60px;
        min-width: 60px;
        max-width: 60px;
    }
}
