/* IDIOMA */
.idioma .centrado {
  max-width: 1200px;
  margin: 0 auto;
}

.bar-container {
  width: 100%;
  max-width: 920px;
  height: 50px;
  border: 0.2rem solid var(--accent-gold);
  margin: 0 auto 1.6rem;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    outline-color 0.25s ease;
}

.bar {
  height: 100%;
  background-color: var(--button-bg);
  text-align: left;
  padding-left: 3rem;
  line-height: 50px;
  color: var(--button-text);
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  width: 0%; /* Empezamos desde 0 para que la animación suba */
  transition: width 1.75s cubic-bezier(0.1, 0.5, 0.2, 1);
}

.bar-container:hover {
  outline: 2px solid var(--accent-gold);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* Las widths específicas ahora se controlan desde barraidioma.js */
@media (prefers-reduced-motion: reduce) {
  .bar-container {
    transition: none;
  }
}

.bar-content {
  transition: width 0.3s ease;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}
