/* Widgets del motor (pedido, reservas, club). Sólo usan variables de :root,
   así cada restaurante los viste con su propia piel. */

/* ---------- barra flotante ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; max-width: calc(100vw - 24px);
  background: rgba(27, 18, 12, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.75), inset 0 0 0 1px rgba(246,236,223,.14);
  transition: transform .7s var(--ease), opacity .4s;
}
.dock.is-off { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
.dock__btn {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background-color .3s, color .3s, max-width .5s var(--ease), padding .5s var(--ease), opacity .3s;
  max-width: 200px; overflow: hidden;
}
.dock__btn:hover { background: rgba(246,236,223,.1); }
.dock__btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.dock__btn--main { background: var(--orange); color: var(--on-accent, #fff); }
.dock__btn--main:hover { background: var(--orange-2); }
.dock.has-cart .dock__btn--main { background: transparent; color: var(--paper); }
.dock.has-cart .dock__btn--main:hover { background: rgba(246,236,223,.1); }
/* el botón de la sección donde ya estás se esconde */
.dock__btn.is-here { max-width: 0; padding: 0; opacity: 0; pointer-events: none; }
/* móvil: la barra se pega a la izquierda para dejarle la derecha al botón "Reservar mesa" (booking-widget.css);
   con pedido, ese botón se queda sólo con su ícono para que quepan los dos */
@media (max-width: 640px) {
  .dock { left: max(12px, env(safe-area-inset-left)); transform: none; max-width: calc(100vw - 96px); }
  .dock.is-off { transform: translateY(160%); }
  body:has(.dock.has-cart:not(.is-off)) .bw-fab { padding: 0 16px; gap: 0; }
  body:has(.dock.has-cart:not(.is-off)) .bw-fab__l { max-width: 0; opacity: 0; }
}
.cartbar {
  display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 6px; border: 0; border-radius: 999px;
  background: var(--orange); color: var(--on-accent, #fff); font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(224,97,28,.8);
}
.cartbar:hover { background: var(--orange-2); }
.cartbar.is-off { display: none; }
.cartbar__count { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 14px; }
.cartbar b { padding-right: 12px; }
@media (max-width: 480px) {
  .dock__btn { padding: 0 14px; font-size: 14px; }
  .dock.has-cart .cartbar__label { display: none; }
}

/* ---------- panel lateral ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(10,6,3,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(560px, 100vw); background: var(--ink-2); color: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.6);
}
.is-open .sheet-backdrop { opacity: 1; }
.is-open .sheet { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-dark); }
.sheet__head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.02em; }
.sheet__head p { margin: 2px 0 0; color: var(--muted-dark); font-size: 13px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.sheet__body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.sheet__body > * { flex-shrink: 0; }
.sheet__foot { padding: 14px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); background: var(--ink-2); }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--ink-3); position: relative; }
.seg button { position: relative; z-index: 1; height: 44px; border: 0; background: none; border-radius: 999px; font-weight: 600; font-size: 15px; transition: color .3s; }
.seg button.is-on { color: var(--on-accent, #fff); }
.seg__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--orange); transition: transform .5s var(--ease); }
.seg[data-pos="1"] .seg__pill { transform: translateX(100%); }

.note-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ink); border-left: 3px solid var(--orange); font-size: 14px; }
.note-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.note-card span { color: var(--muted-dark); }

.rows { border-radius: var(--radius-sm); background: var(--ink-3); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0;
  background: none; text-align: left; border-bottom: 1px solid var(--line-dark); transition: background-color .3s;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(246,236,223,.04); }
.row__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--orange-2); }
.row__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.row__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.row__value { font-size: 15px; font-weight: 600; margin-top: 1px; }
.row__value.is-empty { font-weight: 400; color: var(--muted-dark); }
.row__warn { font-size: 13px; color: var(--orange-2); font-weight: 600; margin-top: 2px; }
.row__chev { color: var(--muted-dark); }
.row.is-missing .row__ico { box-shadow: inset 0 0 0 1.5px var(--orange-2); }

.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; }
.line img, .line .line__ph { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--ink-3); }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.line__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
/* el − n + del pedido toma la tinta del panel (no la del stepper de cada sitio, que en Kaimar es tinta sobre yuzu
   y aquí quedaba oscuro sobre azul) y un borde que se ve en temas claros y oscuros */
.line__ctrl .stepper {
  height: 34px; background: color-mix(in srgb, currentColor 6%, transparent); color: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent);
}
.line__ctrl .stepper button { height: 34px; width: 32px; color: inherit; }
.line__total { font-weight: 700; font-size: 15px; align-self: start; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted-dark); }
.empty b { display: block; font-family: var(--display); font-size: 28px; color: var(--paper); margin-bottom: 8px; font-weight: 600; }

.inline-field { display: flex; gap: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-dark); background: var(--ink); color: var(--paper);
  font: inherit; font-size: 16px; transition: border-color .3s;
}
.input:focus { outline: none; border-color: var(--orange-2); }
.input.is-bad { border-color: var(--tomato); }
textarea.input { height: 96px; padding: 14px 16px; resize: none; }
.hint-ok { color: #9ad16b; font-size: 13px; font-weight: 600; }
.hint-bad { color: var(--orange-2); font-size: 13px; font-weight: 600; }

.toggle-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: linear-gradient(120deg, #3a2415, var(--ink-3)); }
.toggle-card div { flex: 1; font-size: 14px; }
.toggle-card b { display: block; font-size: 15px; }
.switch { width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--ink); position: relative; flex: none; transition: background-color .3s; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform .4s var(--ease); }
.switch[aria-checked="true"] { background: var(--orange); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

.tips { display: flex; gap: 8px; }
.tips .chip { border-color: var(--line-dark); color: var(--paper); flex: 1; padding: 0 8px; }
.tips .chip.is-on { background: var(--paper); color: var(--ink); }

.summary { display: grid; gap: 8px; font-size: 15px; padding: 4px 2px; }
.summary div { display: flex; justify-content: space-between; color: var(--muted-dark); }
.summary .is-good { color: #9ad16b; }
.summary .total { color: var(--paper); font-family: var(--display); font-size: 30px; font-weight: 600; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line-dark); }

.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay button { height: 50px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pay svg, .pts-earned svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.pay button.is-on { border-color: var(--orange-2); background: rgba(224,97,28,.12); }
.cta-missing { background: transparent !important; color: var(--orange-2) !important; box-shadow: inset 0 0 0 1.5px var(--orange-2) !important; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }

/* modal pequeño */
.modal-wrap { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; background: rgba(10,6,3,.55); backdrop-filter: blur(3px); animation: fade .3s; }
.modal { width: min(500px, 100%); max-height: 90vh; overflow: auto; background: var(--ink-2); border-radius: var(--radius); box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); animation: pop .5s var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-dark); }
.modal__head h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; }
.modal__body { padding: 20px; display: grid; gap: 14px; }
.modal__foot { padding: 0 20px 20px; }
.modal small { color: var(--muted-dark); font-size: 13px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }

/* chips oscuros reutilizados */
.chip--dark { border-color: var(--line-dark); color: var(--paper); }
.chip--dark:hover { border-color: var(--paper); }
.chip--dark.is-on { background: var(--orange); border-color: var(--orange); color: var(--on-accent, #fff); }
.chip--dark[disabled] { opacity: .3; text-decoration: line-through; pointer-events: none; }

/* éxito / seguimiento */
.done { text-align: center; padding: 26px 6px; display: grid; gap: 10px; justify-items: center; }
.done__check { width: 84px; height: 84px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; animation: pop .7s var(--ease); }
.done__check svg { width: 40px; height: 40px; stroke: var(--on-accent, #fff); stroke-width: 3; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { margin: 8px 0 0; font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.done p { margin: 0; color: var(--muted-dark); }
.done__code { font-family: var(--display); font-size: 22px; letter-spacing: .08em; padding: 8px 16px; border-radius: 10px; background: var(--ink); }
.track { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; text-align: center; font-size: 13px; }
.track div { display: grid; gap: 8px; color: var(--muted-dark); }
.track i { height: 5px; border-radius: 999px; background: var(--ink-3); overflow: hidden; position: relative; }
.track i::after { content: ''; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.track .is-on { color: var(--paper); font-weight: 600; }
.track .is-on i::after { transform: none; }
.pts-earned { justify-self: center; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(224,97,28,.15); color: var(--orange-2); font-weight: 600; font-size: 14px; }

/* ---------- tarjeta del club ---------- */
.club__card {
  width: min(440px, 100%); aspect-ratio: 1.6; border-radius: 22px; padding: 26px; position: relative; overflow: hidden;
  background: var(--card-bg, linear-gradient(135deg, #ff8a3d 0%, var(--orange) 45%, #a8410f 100%)); color: var(--card-ink, #fff); display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 40px 80px -30px var(--card-glow, rgba(224,97,28,.7)), inset 0 1px 0 rgba(255,255,255,.35); transform-style: preserve-3d; will-change: transform;
}
.club__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--mx, 70%) var(--my, 20%), rgba(255,255,255,.35), transparent 70%); mix-blend-mode: soft-light; }
.club__card::after { content: var(--card-mark, 'B'); position: absolute; right: -20px; bottom: -70px; font-family: var(--display); font-size: 260px; font-weight: 800; font-style: italic; opacity: .12; line-height: 1; }
.cc__top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.cc__brand { font-family: var(--display); font-weight: 700; font-size: 24px; }
.cc__brand em { font-weight: 400; font-size: .62em; }
.cc__tier { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(27,18,12,.25); }
.cc__pts { position: relative; }
.cc__pts b { font-family: var(--display); font-size: 58px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.cc__pts span { display: block; font-size: 14px; opacity: .85; }
.cc__bar { height: 6px; border-radius: 999px; background: rgba(27,18,12,.25); margin-top: 12px; overflow: hidden; }
.cc__bar i { display: block; height: 100%; background: var(--paper); border-radius: inherit; transition: width 1s var(--ease); }
.club__lookup { width: min(440px, 100%); display: flex; gap: 8px; }
.club__coupons { width: min(440px, 100%); display: grid; gap: 8px; }
.coupon {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 14px; border: 1.5px dashed rgba(246,236,223,.25); background: transparent; text-align: left; width: 100%;
  transition: border-color .3s, background-color .3s;
}
.coupon:hover { border-color: var(--orange-2); background: rgba(224,97,28,.08); }
.coupon code { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--orange-2); }
.coupon span { flex: 1; font-size: 14px; color: var(--muted-dark); }
.coupon i { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- cuenta del club ---------- */
.club__auth { width: min(440px, 100%); }
.auth { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-dark); }
.modal .auth { padding: 0; background: none; box-shadow: none; }
.auth__fine { color: var(--muted-dark); font-size: 13px; text-align: center; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted-dark); display: grid; place-items: center; border-radius: 50%; }
.pw__eye:hover { color: var(--paper); }
.pw__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pw:not(:has(.pw__eye)) .input { padding-right: 16px; }
/* tarjeta sin activar: se ve, pero pide registrarse */
.club__card.is-preview { filter: saturate(.55) brightness(.9); }
.club__card.is-preview .cc__tier { background: rgba(27,18,12,.35); }
.club__card.is-preview .cc__pts span:last-child { font-style: italic; opacity: .75; }
.club__status { margin: 0 0 4px; color: var(--muted-dark); font-size: 15px; text-align: center; }
.club__out { color: var(--muted-dark); box-shadow: inset 0 0 0 1px var(--line-dark); justify-self: center; margin-top: 6px; }
.club__out:hover { color: var(--paper); background: transparent; box-shadow: inset 0 0 0 1px var(--paper); }
/* invitación dentro del pedido */
.join-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: linear-gradient(120deg, rgba(224,97,28,.22), var(--ink-3)); box-shadow: inset 0 0 0 1px rgba(224,97,28,.35); }
.join-card div { flex: 1; font-size: 13px; color: var(--muted-dark); }
.join-card b { display: block; font-size: 15px; color: var(--paper); margin-bottom: 2px; }
.join-card .btn { flex: none; }
/* botón de cuenta en la barra de arriba */
.nav__me { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.nav__me svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav__me.is-in { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- pantalla de idiomas (la primera visita) ---------- */
.langgate {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .25s;
}
.langgate.is-out { clip-path: inset(0 0 100% 0); }
.langgate__bg {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  filter: blur(6px) saturate(1.1); opacity: .32; transform: scale(1.08); transition: transform 6s ease-out, opacity 1s;
}
.langgate.is-in .langgate__bg { transform: scale(1); }
.langgate::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, transparent, var(--ink) 85%); pointer-events: none; }
.langgate__inner { position: relative; z-index: 1; width: min(460px, 100%); display: grid; justify-items: center; text-align: center; }
.langgate__brand {
  font-family: var(--display); font-weight: 700; font-size: clamp(54px, 13vw, 84px); line-height: .9; letter-spacing: -.04em;
  opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}
.langgate__brand em { font-weight: 300; font-size: .5em; color: var(--orange-2, var(--orange)); margin: 0 .06em; vertical-align: .5em; }
.langgate__tag {
  margin: 14px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-dark);
  opacity: 0; transition: opacity .9s var(--ease) .3s;
}
.langgate__list { list-style: none; margin: clamp(36px, 7vh, 60px) 0 0; padding: 0; width: 100%; border-top: 1px solid var(--line-dark); }
.langgate__list li { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.45s + var(--i) * .09s); }
.langgate.is-in .langgate__brand, .langgate.is-in .langgate__list li { opacity: 1; transform: none; }
.langgate.is-in .langgate__tag { opacity: 1; }
.langgate__opt {
  width: 100%; display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 14px;
  padding: 20px 6px; border: 0; background: none; color: inherit; text-align: left; position: relative;
}
.langgate__opt::before { content: ''; position: absolute; inset: 6px -10px; border-radius: 14px; background: rgba(246,236,223,.06); opacity: 0; transition: opacity .3s; }
.langgate__opt:hover::before, .langgate__opt:focus-visible::before { opacity: 1; }
.langgate__opt:focus-visible { outline: none; }
.langgate__name { position: relative; font-family: var(--display); font-size: clamp(30px, 7vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1; transition: color .3s, transform .5s var(--ease); }
.langgate__hi { position: relative; font-family: var(--display); font-style: italic; font-size: 16px; color: var(--muted-dark); transition: color .3s; }
.langgate__arrow { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--on-accent, #fff); transform: scale(.4); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.langgate__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.langgate__opt:hover .langgate__name, .langgate__opt:focus-visible .langgate__name { color: var(--orange-2, var(--orange)); transform: translateX(6px); }
.langgate__opt:hover .langgate__hi, .langgate__opt:focus-visible .langgate__hi { color: var(--paper); }
.langgate__opt:hover .langgate__arrow, .langgate__opt:focus-visible .langgate__arrow, .langgate__opt.is-picked .langgate__arrow { transform: scale(1); opacity: 1; }
.langgate.is-out .langgate__list li:not(:has(.is-picked)) { opacity: 0; transition-delay: 0s; }
.langgate__fine { margin: 26px 0 0; font-size: 12px; color: var(--muted-dark); opacity: 0; transition: opacity .9s var(--ease) .9s; }
.langgate.is-in .langgate__fine { opacity: .8; }
@media (hover: none) { .langgate__arrow { transform: scale(1); opacity: .9; } }

/* ---------- selector de idioma arriba a la derecha (mismo en todos los sitios) ----------
   Cápsula translúcida que toma el color del texto de la barra; la lista es la de widget-kit (tema del sitio). */
.langpill {
  height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px 0 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent); background: color-mix(in srgb, currentColor 7%, transparent);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  color: inherit; font: inherit; font-size: 13px; font-weight: 650; letter-spacing: .05em; transition: background-color .25s, border-color .25s;
}
.langpill:hover, .langpill[aria-expanded="true"] { background: color-mix(in srgb, currentColor 14%, transparent); }
.langpill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.langpill .langpill__chev { width: 14px; height: 14px; opacity: .7; transition: transform .3s; }
.langpill[aria-expanded="true"] .langpill__chev { transform: rotate(180deg); }
.langswitch { font-family: inherit; }
.langswitch .bw-pop { top: calc(100% + 8px); z-index: 70; }
