/* Tesai · top bar. One pill, one look on every page; only its contents change.
   .tesai-bar            the pill (add .is-sticky to pin it)
   <tesai-brand>         logo and name (always first)         <tesai-lang>   EN | ES (always last)
   .bar-links / .bar-label / .bar-right   what the page puts between them
   Uses only tokens from shared/tokens.css. */
.tesai-bar {
  display: flex; align-items: center; gap: 16px;
  width: min(1320px, calc(100% - 28px)); margin: 12px auto 0;
  padding: 8px 10px 8px 16px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--color-white) 74%, transparent); border: 1px solid color-mix(in srgb, var(--color-deep) 12%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-deep) 12%, transparent);
  color: var(--color-ink); font-family: var(--font-ui);
}
.tesai-bar.is-sticky { position: sticky; top: 12px; z-index: 50 }
.bar-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; min-width: 0 }
.bar-links a {
  padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: var(--fs-md);
  color: var(--color-muted); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.bar-links a:hover { background: var(--color-white); color: var(--color-ink) }
.bar-links a[aria-current="page"] { background: var(--grad-brand); color: var(--color-white) }
.bar-label { margin-left: 8px; flex: 1; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-teal-ink) }
.bar-right { display: flex; align-items: center; gap: 10px; margin-left: auto }

tesai-brand, tesai-lang { display: block; flex: none }
.sn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-ink); font-family: var(--font-ui); font-size: var(--fs-xl); letter-spacing: -.01em }
.sn-brand b { font-weight: 700 }
.sn-logo { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; flex: none; color: var(--color-white) }
.sn-logo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.sn-lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--color-white) 55%, transparent); border: 1px solid color-mix(in srgb, var(--color-deep) 12%, transparent) }
.sn-lang button {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: none; box-shadow: none; text-transform: none;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  padding: 6px 11px; min-height: 30px; border-radius: var(--r-pill); cursor: pointer; color: var(--color-muted);
}
.sn-lang button[aria-pressed="true"] { background: var(--color-white); color: var(--color-ink); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-deep) 18%, transparent) }
.tesai-bar a:focus-visible, .tesai-bar button:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 2px }
@media (max-width: 760px) {
  .tesai-bar { flex-wrap: wrap; border-radius: 28px; gap: 8px 12px; padding: 8px 12px }
  .bar-links { order: 3; flex: 1 1 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none }
  .bar-label { display: none }
}
@media (max-width: 460px) { .bar-right .btn { display: none } }
