/* Contenedor de la zona de autenticación */
.Header__auth {
    float: right;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 16px;
}

.Header__authList {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.Header__authItem {
    display: flex;
    align-items: center;
}

/* Estilo del enlace "Iniciar sesión" */
.Header__authSignIn a {
    display: inline-block;
    color: #ffffff;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.Header__authSignIn a:hover {
    background: rgba(255,255,255,0.15);
}

/* Cuando el usuario está autenticado, Zoho oculta SignIn y muestra UserPreference */
.Header__authUser {
    position: relative;
}

/* Ajustes del bloque UserPreference (avatar + dropdown que inyecta Zoho) */
.Header__authUser img,
.Header__authUser .userProfileImg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
}

.Header__authUser .userName,
.Header__authUser .userProfileName {
    color: #fff;
    margin-left: 8px;
}

/* Oculta el item vacío cuando la variable no se renderiza */
.Header__authItem:empty {
    display: none;
}

/* =========================================
   Zona de autenticación (login / avatar)
   ========================================= */
.Header__auth {
    float: right;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 16px;
}

.Header__authList {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.Header__authItem {
    display: flex;
    align-items: center;
}

/* Oculta el item vacío cuando la variable no se renderiza */
.Header__authItem:empty {
    display: none;
}

/* Botón "Iniciar sesión" */
.Header__authSignIn a {
    display: inline-block;
    color: #ffffff;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.Header__authSignIn a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Avatar + dropdown que inyecta Zoho en ${UserPreference} */
.Header__authUser {
    position: relative;
}

.Header__authUser img,
.Header__authUser .userProfileImg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.Header__authUser .userName,
.Header__authUser .userProfileName {
    color: #ffffff;
    margin-left: 8px;
}

/* =========================================
   Elementos visibles solo con sesión iniciada
   ========================================= */
.Header__tabsTab--authOnly {
    display: none !important;
}

body.is-logged-in .Header__tabsTab--authOnly {
    display: inline-block !important;
}

/* Cuando el usuario está logueado, ocultamos el botón "Iniciar sesión"
   porque ${SignInSignOut} pasa a mostrar "Cerrar sesión" dentro del menú del avatar.
   Si prefieres mantenerlo visible como "Cerrar sesión" quita esta regla. */
body.is-logged-in .Header__authSignIn {
    display: none;
}
