/*
 * Marquee de la franja superior (portado del style.css de Theme 2.0).
 * Anima el track de derecha a izquierda con dos segmentos iguales
 * (segmento + clon) para un bucle continuo.
 */

@keyframes ozMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.oz-header-topbar__inner--marquee {
  display: block;
  overflow: hidden;
  padding: 0;
  min-height: 34px;
}

.oz-header-topbar__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  min-height: 34px;
  padding: 0 18px;
  box-sizing: border-box;
  animation: ozMarquee 38s linear infinite;
  will-change: transform;
}

.oz-header-topbar:hover .oz-header-topbar__track {
  animation-play-state: paused;
}

.oz-header-topbar__inner--marquee .oz-header-topbar__segment {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding-right: 3.5rem;
  box-sizing: border-box;
}

.oz-header-topbar__inner--marquee .oz-header-topbar__items {
  flex-wrap: nowrap;
  min-width: 0;
}

/* Separador | muy suave entre cada frase (sustituye la línea vertical de layout.css en el marquee) */
.oz-header-topbar__inner--marquee .oz-header-topbar__segment .oz-header-topbar__items--left > span::after,
.oz-header-topbar__inner--marquee .oz-header-topbar__segment .oz-header-topbar__items--right > a:not(:last-child)::after {
  content: "|";
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 0.45rem 0 0.6rem;
  padding: 0;
  background: none;
  border: 0;
  transform: none;
  color: rgba(255, 255, 255, 0.16);
  font-weight: 300;
  font-size: 0.88em;
  vertical-align: baseline;
  line-height: 1;
}

@media (max-width: 1100px) {
  .oz-header-topbar__inner--marquee {
    flex-direction: row !important;
    align-items: center !important;
  }

  .oz-header-topbar__inner--marquee .oz-header-topbar__items {
    flex-wrap: nowrap !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oz-header-topbar__track {
    animation: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
    column-gap: 1rem;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .oz-header-topbar__segment--clone {
    display: none !important;
  }
}
