/* ===================================================
   VORTEKAI — Selector de idioma (ES | EN) y aviso de idioma
   Compartido por todas las paginas que existen en los dos idiomas
   (home, proyectos/projects, legales, gracias/thank-you, 404) y por
   js/lang.js. Aqui solo va el ASPECTO; donde se coloca lo decide el
   CSS de cada pagina. 16-10-2026.
   =================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(234, 229, 236, 0.62);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.lang-switch a:hover { color: #ffffff; }

/* Idioma actual: relleno suave en el color de marca */
.lang-switch a[aria-current="true"] {
  background: rgba(194, 164, 255, 0.18);
  color: #f3eefa;
}

.lang-switch a:focus-visible {
  outline: 2px solid rgba(194, 164, 255, 0.7);
  outline-offset: 2px;
}

/* En pantallas tactiles, objetivo de toque mas grande */
@media (hover: none) {
  .lang-switch a { padding: 8px 11px; }
}

/* --- Aviso de idioma (lo crea js/lang.js) ---
   Arriba y centrado, por debajo de la cabecera: abajo ya esta el banner de
   cookies. Nunca redirige: solo ofrece la otra version. */
.lang-suggest {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(194, 164, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 13, 22, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  color: rgba(234, 229, 236, 0.82);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lang-suggest.is-visible { opacity: 1; transform: translate(-50%, 0); }

.lang-suggest a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #c2a4ff;
  color: #17111f;
  font-weight: 600;
  text-decoration: none;
}

.lang-suggest a:hover { background: #d4bfff; color: #17111f; }

.lang-suggest button {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(234, 229, 236, 0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lang-suggest button:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.lang-suggest a:focus-visible,
.lang-suggest button:focus-visible { outline: 2px solid rgba(194, 164, 255, 0.7); outline-offset: 2px; }

@media (max-width: 600px) {
  .lang-suggest { top: 80px; font-size: 13px; gap: 8px; padding-left: 14px; }
  .lang-suggest a { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-suggest { transition: none; }
}
