/* =============================================================================
   Selector de idioma de la barra de arriba (partials/lang-top.twig), 26-11-2026.
   Lo cargan todas las plantillas de página (oficina, nodos, portadas y app). Se adapta a cabeceras oscuras (por
   defecto) y claras (.lang-top--light, la portada de bitgamenodes.com).
   ============================================================================= */
.lang-top { position: relative; flex: none; }
.lang-top > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 9px;
  border-radius: 9999px; font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: .03em; color: inherit; user-select: none;
  background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
  transition: background-color .25s, box-shadow .25s;
}
.lang-top > summary::-webkit-details-marker { display: none; }
.lang-top > summary:hover, .lang-top[open] > summary { background: rgb(255 255 255 / .13); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34); }
.lang-top > summary:focus-visible { outline: 2px solid #2FC6FF; outline-offset: 2px; }
.lang-top .flag { display: inline-block; flex: none; line-height: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .2); }
.lang-top .flag svg { display: block; }
.lang-top__chev { flex: none; opacity: .7; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.lang-top[open] .lang-top__chev { transform: rotate(180deg); }
.lang-top__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 200px; padding: 6px; border-radius: 16px;
  background: #0E111C; color: #F2F5FF; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 24px 60px -20px rgb(0 0 0 / .8);
  animation: lang-top-in .25s cubic-bezier(.32,.72,0,1);
}
@keyframes lang-top-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-top__title { display: block; padding: 8px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(242 245 255 / .55); }
.lang-top__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: 500; color: inherit; background: none; cursor: pointer; text-align: left;
  transition: background-color .2s;
}
.lang-top__opt:hover, .lang-top__opt:focus-visible { background: rgb(255 255 255 / .08); outline: none; }
.lang-top__opt.is-on { font-weight: 600; }
.lang-top__ok { margin-left: auto; flex: none; color: #2ECC71; }
/* Cabeceras claras */
.lang-top--light > summary { background: rgb(14 30 60 / .05); box-shadow: inset 0 0 0 1px rgb(14 30 60 / .18); }
.lang-top--light > summary:hover, .lang-top--light[open] > summary { background: rgb(14 30 60 / .1); box-shadow: inset 0 0 0 1px rgb(14 30 60 / .32); }
.lang-top--light .flag { box-shadow: 0 0 0 1px rgb(14 30 60 / .15); }
/* Teléfonos: bandera y código, sin la flecha (ocupa menos) */
@media (max-width: 520px) {
  .lang-top > summary { gap: 6px; height: 38px; padding: 0 10px; }
  .lang-top__chev { display: none; }
}

/* Coreano: las líneas se parten entre palabras, no en medio de una; lo que no quepa entero sí se puede partir. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
