/* CORVUS STUDIO | Internacionalización ALPHA 01
   Solo el botón de idioma y ajustes para textos traducidos. */
.lang-switcher {
  position: fixed;
  z-index: 1200;
  right: clamp(12px, 2.2vw, 28px);
  bottom: clamp(14px, 2.2vw, 28px);
  font-family: inherit;
}
.lang-button {
  appearance: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(216,177,102,.55);
  border-radius: 12px;
  background: rgba(7, 23, 40, .94);
  color: #f4dfaa;
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  font-weight: 750;
  font-size: .83rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.lang-button:hover, .lang-button:focus-visible {
  background: #142c42;
  border-color: #efd18e;
  transform: translateY(-2px);
}
.lang-button:focus-visible, .lang-menu button:focus-visible {
  outline: 2px solid #e8bf72;
  outline-offset: 3px;
}
.lang-globe { width: 18px; height: 18px; }
.lang-chevron { width: 12px; height: 12px; transition: transform .18s; }
.lang-button[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-button-flag { font-size: 1.1rem; line-height: 1; letter-spacing: 0; }
.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 196px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(216,177,102,.45);
  border-radius: 13px;
  background: #071a2e;
  box-shadow: 0 16px 48px rgba(0,0,0,.54);
}
.lang-menu[hidden] { display: none !important; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f1f0e8;
  text-align: left;
  font-family: inherit;
  font-weight: 550;
  font-size: .86rem;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button.is-selected { background: #20344a; color: #f4dfaa; }
.lang-menu button > span:first-child { font-size: 1.15rem; line-height: 1; }
.lang-menu .lang-check { margin-left: auto; opacity: 0; color: #ecd08b; }
.lang-menu button.is-selected .lang-check { opacity: 1; }
/* CJK usa las fuentes locales del sistema sin descargar tipografías. */
html[lang="ja"] body, html[lang="zh-CN"] body {
  font-family: system-ui, -apple-system, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Microsoft YaHei', 'Noto Sans CJK JP', 'Noto Sans CJK SC', sans-serif;
}
html[lang="ja"] .hero-content p, html[lang="zh-CN"] .hero-content p,
html[lang="fr"] .hero-content p, html[lang="en"] .hero-content p {
  max-width: min(94vw, 1040px);
  padding-inline: 6px;
  text-align: center;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
html[lang="ja"] .section-head h1, html[lang="zh-CN"] .section-head h1 {
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
html[lang="ja"] .nav-links b, html[lang="zh-CN"] .nav-links b {
  letter-spacing: 0;
}
html[lang="fr"] .contact-section .mail-cta,
html[lang="ja"] .contact-section .mail-cta,
html[lang="zh-CN"] .contact-section .mail-cta { letter-spacing: .015em; }
@media (max-width: 780px) {
  .lang-switcher { right: 13px; bottom: 13px; }
  .lang-button { min-height: 42px; padding: 9px 11px; }
  .lang-menu { min-width: 185px; }
  .hero-content p { font-size: clamp(.72rem,2.5vw,1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .lang-button, .lang-chevron { transition: none; }
}
