#tt-ribbon-tlk {
  --bg: #ff2d2d;
  /* color de la franja */
  --text: #ffffff;
  /* texto y separador */
  --speed: 28s;
  /* menor = más rápido */
  --bar-h: clamp(40px, 4.5vw, 56px);
  /* alto responsive */
  --bleed: calc(var(--bar-h) / 2);
  /* seguridad vertical */
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  --gap: clamp(20px, 3vw, 36px);
  /* separación responsive */
  --pad: clamp(16px, 2.2vw, 28px);
  /* padding lateral responsive */
  --sep: clamp(14px, 1.2vw, 18px);
  /* tamaño separador */

  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-block: var(--bleed);
  pointer-events: none;
  transform: rotate(358deg);
}

/* Wrapper exacto de la barra */
.tt-wrap {
  position: relative;
  height: var(--bar-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fondo rojo con bordes inclinados (alineado al wrapper) */
.tt-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  box-shadow: var(--shadow);
  clip-path: polygon(0% 6%, 100% 0%, 100% 94%, 0% 100%);
}

/* Viewport y track */
.tt-viewport {
  position: relative;
  height: var(--bar-h);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.tt-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: max-content;
  animation: tt-scroll var(--speed) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@keyframes tt-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Items */
.tt-chunk {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 0 var(--pad);
  height: var(--bar-h);
}

.tt-chunk span {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tt-sep {
  width: var(--sep);
  height: var(--sep);
  flex: 0 0 var(--sep);
  color: var(--text);
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .tt-track {
    animation: none;
  }
}
