/* Spanish site — floating flags bar (v1.4.6) */
.myc-es-flags {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--myc-navy, #1b2a4a) 0%, #243656 50%, var(--myc-navy, #1b2a4a) 100%);
  border-bottom: 3px solid var(--myc-muted-red, #b85c5c);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.25);
  pointer-events: none;
}

.myc-es-flags-inner {
  display: flex;
  width: max-content;
  animation: myc-es-flags-scroll 55s linear infinite;
}

.myc-es-flags-set {
  display: flex;
  flex-shrink: 0;
}

.myc-es-flags:hover .myc-es-flags-inner {
  animation-play-state: paused;
}

.myc-es-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 40px;
  color: var(--myc-ivory, #f7f1e8);
  font-family: var(--myc-font-display, Lato, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.myc-es-flag-emoji {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@keyframes myc-es-flags-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

body.myc-lang-es {
  padding-top: 40px !important;
}

body.myc-lang-es.admin-bar {
  padding-top: 72px !important;
}

body.myc-lang-es.admin-bar .myc-es-flags {
  top: 32px;
}

@media (prefers-reduced-motion: reduce) {
  .myc-es-flags-inner {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 4px 12px;
    padding: 4px 8px;
  }

  .myc-es-flags {
    height: auto;
    min-height: 40px;
  }

  .myc-es-flag {
    height: auto;
    padding: 4px 8px;
    font-size: 11px;
  }

  .myc-es-flags-duplicate {
    display: none;
  }
}

.myc-lang-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
}

.myc-lang-switch a {
  color: var(--myc-coral, #e8957a);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.myc-lang-switch a:hover,
.myc-lang-switch a:focus-visible {
  border-bottom-color: currentColor;
}

.myc-lang-switch .myc-lang-active {
  color: var(--myc-ivory, #f7f1e8);
  border-bottom-color: var(--myc-butter, #f0d878);
}
