.fc-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 0 24px 0 10px;
  border: 1px solid var(--line-strong, rgba(246, 216, 128, 0.42));
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 230, 162, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--gold, #e3b454);
  flex: 0 0 auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.fc-language:hover {
  color: var(--gold-bright, #ffe9a3);
  border-color: rgba(255, 230, 162, 0.7);
  box-shadow: 0 0 22px rgba(232, 191, 98, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fc-language-globe {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.fc-language select {
  appearance: none;
  border: 0;
  outline: 0;
  width: 20px;
  padding: 0;
  background: transparent;
  color: inherit;
  font: 900 10px/1 var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  letter-spacing: 0.08em;
  cursor: pointer;
  color-scheme: dark;
}

.fc-language::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.85;
}

.fc-language select:focus-visible {
  outline: 1px solid var(--gold-bright, #ffe9a3);
  outline-offset: 3px;
  border-radius: 3px;
}

.fc-language select option {
  background: #07150d;
  color: #f2e7ce;
  font-size: 13px;
}

@media (max-width: 900px) {
  .fc-language {
    height: 38px;
    padding: 0 21px 0 8px;
    gap: 4px;
  }
  .fc-language-globe { width: 13px; height: 13px; }
  .fc-language select { font-size: 9px; width: 18px; }
  .fc-language::after { right: 8px; width: 4.5px; height: 4.5px; margin-top: -3.5px; }
}

/* Menú de idioma personalizado */
.fc-language { padding: 0; }
.fc-language-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 24px 0 10px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.fc-language-code {
  font: 900 10px/1 var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  letter-spacing: 0.08em;
}
.fc-language-menu {
  position: absolute;
  z-index: 300;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 6px;
  border: 1px solid rgba(246, 216, 128, 0.34);
  border-radius: 12px;
  background: #07150d;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.fc-language-menu[hidden] { display: none; }
.fc-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e9dfc8;
  font: 600 12px/1.2 var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  text-align: left;
  cursor: pointer;
}
.fc-language-option small {
  color: #8f8772;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.fc-language-option:hover,
.fc-language-option.is-selected {
  background: linear-gradient(135deg, #ffe9a3, #d1a23d);
  color: #1d1304;
}
.fc-language-option:hover small,
.fc-language-option.is-selected small {
  color: #4b3508;
}
@media (max-width: 900px) {
  .fc-language-button { padding: 0 21px 0 8px; gap: 4px; }
  .fc-language-code { font-size: 9px; }
}
.fc-language-menu { max-height: min(70vh, 430px); overflow-y: auto; overscroll-behavior: contain; }
