/* BitGrand i18n - language switcher + light LTR fixes. */
.bgl{position:relative;display:inline-flex;flex-shrink:0;font-family:inherit;line-height:1;z-index:10000}
.bgl-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35em;height:2.8em;min-width:2.8em;padding:0 .7em;
  border-radius:.75em;border:1px solid var(--c-line,rgba(255,140,0,.18));background:transparent;color:var(--c-text,#fbefdf);
  font:inherit;font-size:.9em;font-weight:700;letter-spacing:.04em;cursor:pointer;white-space:nowrap}
.bgl-btn:hover,.bgl-btn:focus-visible,.bgl.open .bgl-btn{color:#ffb84d;border-color:#ff8c00;outline:none}
.bgl-btn:focus-visible{box-shadow:0 0 0 2px rgba(255,140,0,.45)}
.bgl-btn svg{flex-shrink:0}
.bgl-caret{transition:transform .15s}
.bgl.open .bgl-caret{transform:rotate(180deg)}
.bgl-menu{position:absolute;top:calc(100% + .45em);left:0;min-width:9.5em;margin:0;padding:.35em;list-style:none;
  border-radius:.75em;background:var(--c-glass-2,rgba(16,10,5,.96));border:1px solid var(--c-line,rgba(255,140,0,.18));
  box-shadow:0 8px 24px rgba(0,0,0,.28)}
html[dir="ltr"] .bgl-in-header .bgl-menu{left:auto;right:0}
.bgl-menu[hidden]{display:none}
.bgl-menu li{margin:0;padding:0;list-style:none}
.bgl-menu a{display:flex;align-items:center;gap:.6em;padding:.6em .7em;border-radius:.55em;text-decoration:none;
  color:var(--c-muted,#b7a896);font-size:13px;font-weight:600;white-space:nowrap}
.bgl-menu a b{display:inline-block;min-width:1.9em;font-size:11px;color:#ff8c00;letter-spacing:.05em}
.bgl-menu a:hover,.bgl-menu a:focus-visible{color:#ffb84d;background:rgba(255,140,0,.08);outline:none}
.bgl-menu a[aria-current]{color:var(--c-text,#fbefdf)}
.bgl-menu a[aria-current]::after{content:"";margin-inline-start:auto;width:6px;height:6px;border-radius:50%;background:#ff8c00}
/* Pages without the custom header: small fixed switcher. */
.bgl-floating{position:fixed;left:14px;bottom:14px;font-size:14px}
.bgl-floating .bgl-btn{background:var(--c-glass-2,rgba(16,10,5,.94));color:var(--c-text,#fbefdf)}
.bgl-floating .bgl-menu{top:auto;bottom:calc(100% + .45em)}
html[data-theme="light"] .bgl-menu{box-shadow:0 8px 24px rgba(80,40,0,.14)}
@media (max-width:480px){.bgl-btn{padding:0 .5em;gap:.25em}.bgl-btn .bgl-caret{display:none}}

/* ---------- LTR (English / Spanish) ---------- */
html[dir="ltr"] body{direction:ltr}
html[dir="ltr"] .bg-sub{inset-inline-start:0}
html[dir="ltr"] .bg-hero-btns a,html[dir="ltr"] .bg-consult{letter-spacing:0}
html[lang="en"] body,html[lang="es"] body{word-break:normal;overflow-wrap:break-word}
/* Let the header's own "fit" script see real overflow (it then hides phone / consult / links step by step)
   instead of letting the link list shrink under the action buttons. */
.bg-nav .bg-links{flex-shrink:0}
/* Compact in the header: language code + caret only (globe kept in the floating variant). */
.bgl-in-header .bgl-btn{padding:0 .55em;gap:.25em}
.bgl-in-header .bgl-btn>svg:first-child{display:none}
