/* ArcaOne — Selector de Idiomas (Español, Inglés, Portugués) */

.arca-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Urbanist', -apple-system, sans-serif;
  z-index: 120;
}

.arca-lang-btn {
  background: #141712;
  border: 1px solid #454d39;
  border-radius: 99px;
  padding: 10px 16px;
  color: #f0f1e9;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.arca-lang-btn:hover,
.arca-lang-switch.open .arca-lang-btn {
  background: #191e16;
  border-color: #88a80d;
  color: #fff;
  box-shadow: 0 0 14px rgba(136, 168, 13, 0.16);
}

.arca-lang-globe {
  width: 15px;
  height: 15px;
  color: #88a80d;
  flex-shrink: 0;
}

.arca-lang-text {
  letter-spacing: 0.3px;
}

.arca-lang-caret {
  font-size: 10px;
  color: #a5a89e;
  transition: transform .2s ease;
  line-height: 1;
}

.arca-lang-switch.open .arca-lang-caret {
  transform: rotate(180deg);
}

.arca-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #151813;
  border: 1px solid #363c2c;
  border-radius: 14px;
  padding: 6px;
  min-width: 165px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 18px rgba(136, 168, 13, 0.08);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 200;
  animation: arcaLangFade .15s ease;
}

@keyframes arcaLangFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.arca-lang-switch.open .arca-lang-menu {
  display: flex;
}

.arca-lang-item {
  background: transparent;
  border: 0;
  color: #c4c7ba;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}

.arca-lang-item:hover {
  background: #1f251a;
  color: #fff;
}

.arca-lang-item.active {
  background: rgba(136, 168, 13, 0.16);
  color: #b6d55a;
  font-weight: 600;
}

.arca-lang-code-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: #c4c7ba;
  line-height: 1.1;
  flex-shrink: 0;
}

.arca-lang-item.active .arca-lang-code-chip {
  background: #88a80d;
  color: #101110;
  border-color: #88a80d;
}

.arca-lang-flag {
  display: none;
}

.arca-lang-title {
  flex-grow: 1;
}

.arca-lang-check {
  color: #88a80d;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
}

.arca-lang-item.active .arca-lang-check {
  opacity: 1;
}

/* Toast flotante de confirmación */
.arca-lang-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #171b13;
  border: 1px solid #88a80d;
  color: #f0f1e9;
  padding: 12px 20px;
  border-radius: 99px;
  font-family: 'Urbanist', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(136, 168, 13, 0.2);
  z-index: 10000;
  animation: arcaToastIn .25s ease;
  pointer-events: none;
}

@keyframes arcaToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Adaptación móvil dentro del menú de navegación (header nav.open) */
@media (max-width: 760px) {
  header nav .arca-lang-switch {
    width: 100%;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #2b3024;
  }
  header nav .arca-lang-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
  header nav .arca-lang-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border-color: #2b3024;
  }

  /* Para encabezados sin drawer (como planes/index.html) */
  .pricing-header .arca-lang-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.arca-lang-code {
  display: none;
}

@media (max-width: 480px) {
  .pricing-header .arca-lang-btn {
    padding: 6px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .pricing-header .arca-lang-globe {
    width: 13px;
    height: 13px;
  }
  .pricing-header .arca-lang-name {
    display: none;
  }
  .pricing-header .arca-lang-code {
    display: inline;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}
