/* i18n.css */

:root{
  --header-h: 64px;
  --lang-panel-h: 44px;
}


.lang-switcher {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
  padding: .5rem 1rem;
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--accent-blue, #0A84FF);
  background: transparent;
  color: var(--white, #fff);
  font: 600 12px/1 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding: .45rem .6rem;
  border-radius: 10px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
  opacity: .8;
}
.lang-btn:hover { transform: translateY(-1px); opacity: 1; }
.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  background: var(--accent-blue, #0A84FF);
  color: #000;
  box-shadow: 0 0 0 2px rgba(10,132,255,.25) inset;
  opacity: 1;
}

/* Selector extendido */
.lang-select {
  appearance: none;
  background: rgba(255,255,255,.05);
  color: var(--white, #fff);
  border: 1px solid rgba(255,255,255,.15);
  padding: .45rem .75rem;
  border-radius: 10px;
  font: 600 12px/1 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer;
}
.lang-select:focus { outline: 2px solid var(--accent-blue, #0A84FF); outline-offset: 2px; }

/* Accesibilidad (sr-only util) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Panel de idiomas fijo, pegado al header */
/* Panel de idiomas fijo, pegado al header */
.lang-panel{
  position: fixed;
  top: var(--header-h);   
  left: 0;
  right: 0;
  height: var(--lang-panel-h);
  z-index: 999;       
  background: rgba(13,13,13,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  margin: 0;
  display: flex;
  align-items: center;
}

/* Contenedor interno y alineación a la derecha */
.lang-panel .lang-switcher{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 .75rem;     
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;   
}


/* Fuerza texto negro y fondo claro en las opciones del menú nativo */
.lang-select option,
.lang-select optgroup {
  color: #000 !important;
  background: #fff !important;
}

/* Mientras el select está enfocado/abierto, usa esquema claro para evitar texto blanco */
.lang-select:focus,
.lang-select:active,
.lang-select:focus-visible {
  color: #000 !important;
  background: #fff !important;
  border-color: rgba(0,0,0,.2);
  outline: 2px solid rgba(0,0,0,.2);
  outline-offset: 2px;
}

/* Opcional: estados de opción deshabilitada */
.lang-select option:disabled {
  color: #666 !important;
  background: #f2f2f2 !important;
}


/* Empuja el contenido por debajo del header + panel, sin tocar style.css */
body{
  padding-top: calc(var(--header-h) + var(--lang-panel-h));
}

/* Opcional: en móviles, hacer que el select use más ancho */
@media (max-width: 640px) {
  .lang-panel .lang-switcher {
    gap: .4rem;
    padding: .4rem .75rem;
  }
  .lang-select {
    min-width: 42%;
  }
}
