/* =========================================================
ECJ ÚLTIMAS NOTICIAS v1.1
========================================================= */

.ecj-breaking-news,
.ecj-breaking-news * {
  box-sizing: border-box;
}

.ecj-breaking-news {
  --ecj-bn-red: #d71920;
  --ecj-bn-text: #18212a;
  --ecj-bn-border: #e4e8ec;
  --ecj-bn-bg: #ffffff;
  --ecj-bn-speed: 32s;

  width: 100%;
  min-height: 46px;

  display: flex;
  align-items: stretch;

  overflow: hidden;

  background: var(--ecj-bn-bg);
  border: 1px solid var(--ecj-bn-border);

  font-family: inherit;
}

.ecj-bn-label {
  position: relative;
  z-index: 3;

  flex: 0 0 auto;
  min-width: 170px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  padding: 0 18px;

  background: var(--ecj-bn-red);
  color: #fff;

  font-size: 13px;
  line-height: 1;
  font-weight: 800;

  letter-spacing: .35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ecj-bn-label::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;

  width: 15px;
  height: 100%;

  background: var(--ecj-bn-red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ecj-bn-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 50%;
  background: #fff;

  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
  animation: ecj-bn-pulse 1.6s infinite;
}

@keyframes ecj-bn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.ecj-bn-viewport {
  min-width: 0;
  flex: 1;

  overflow: hidden;

  display: flex;
  align-items: center;

  padding-left: 24px;
}

.ecj-bn-track {
  width: max-content;

  display: flex;
  align-items: center;

  gap: 34px;

  white-space: nowrap;

  animation: ecj-bn-scroll var(--ecj-bn-speed) linear infinite;
  will-change: transform;
}

.ecj-bn-group {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  flex: 0 0 auto;
}

.ecj-bn-group-gap {
  color: var(--ecj-bn-red);
  flex: 0 0 auto;
}

@keyframes ecj-bn-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 17px));
  }
}

.ecj-bn-pause-hover:hover .ecj-bn-track {
  animation-play-state: paused;
}

.ecj-bn-item {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  min-height: 44px;

  color: var(--ecj-bn-text);

  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
}

.ecj-bn-item a {
  color: var(--ecj-bn-text) !important;
  text-decoration: none !important;
}

.ecj-bn-item a:hover {
  color: var(--ecj-bn-red) !important;
}

.ecj-bn-time {
  display: inline-flex;
  align-items: center;

  padding: 3px 6px;

  border-radius: 4px;

  background: #f1f3f5;
  color: #68737d;

  font-size: 10px;
  font-weight: 800;
}

.ecj-bn-separator {
  color: var(--ecj-bn-red);
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 600px) {
  .ecj-breaking-news {
    min-height: 43px;
  }

  .ecj-bn-label {
    min-width: auto;
    padding: 0 12px;

    font-size: 10px;
    letter-spacing: .2px;
  }

  .ecj-bn-label::after {
    right: -10px;
    width: 11px;
  }

  .ecj-bn-dot {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  .ecj-bn-viewport {
    padding-left: 17px;
  }

  .ecj-bn-item {
    min-height: 41px;
    font-size: 12px;
  }

  .ecj-bn-group {
    gap: 24px;
  }

  .ecj-bn-track {
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecj-bn-track {
    animation: none !important;
    transform: none !important;
  }

  .ecj-bn-group-clone,
  .ecj-bn-group-gap {
    display: none !important;
  }

  .ecj-bn-viewport {
    overflow-x: auto;
  }

  .ecj-bn-dot {
    animation: none;
  }
}
