/* ===== News Ticker Mejorado ===== */
.news-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #162844 100%);
  border-bottom: 1px solid rgba(139, 211, 255, 0.15);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Efecto de brillo sutil */
.news-ticker__glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 211, 255, 0.08),
    transparent
  );
  animation: glowSlide 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowSlide {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.news-ticker__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  position: relative;
  z-index: 1;
}

.news-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5a5f 100%);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 
    0 4px 15px rgba(255, 90, 95, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Animación de pulso sutil */
.news-ticker__label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}

.news-ticker__icon {
  width: 16px;
  height: 16px;
  animation: rotate 3s linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.news-ticker__label span {
  position: relative;
  z-index: 1;
}

.news-ticker__track {
  position: relative;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.news-ticker__marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 28px;
  will-change: transform;
  animation: tickerScroll 45s linear infinite;
}

.news-ticker:hover .news-ticker__marquee {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e9eefc;
  transition: all 0.3s ease;
}

.news-ticker__item:hover {
  transform: translateY(-1px);
}

.news-ticker__tag {
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-ticker__tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.news-ticker__tag--int { 
  color: #8bd3ff;
  border-color: rgba(139, 211, 255, 0.3);
  background: linear-gradient(135deg, rgba(139, 211, 255, 0.1), rgba(139, 211, 255, 0.05));
}

.news-ticker__tag--nac { 
  color: #84f7c1;
  border-color: rgba(132, 247, 193, 0.3);
  background: linear-gradient(135deg, rgba(132, 247, 193, 0.1), rgba(132, 247, 193, 0.05));
}

.news-ticker__tag--pol { 
  color: #ffd36b;
  border-color: rgba(255, 211, 107, 0.3);
  background: linear-gradient(135deg, rgba(255, 211, 107, 0.1), rgba(255, 211, 107, 0.05));
}

.news-ticker__link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.news-ticker__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #8bd3ff, #84f7c1);
  transition: width 0.3s ease;
}

.news-ticker__link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(139, 211, 255, 0.4);
}

.news-ticker__link:hover::after {
  width: 100%;
}

.news-ticker__sep {
  opacity: 0.3;
  font-size: 12px;
  color: #8bd3ff;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .news-ticker__inner {
    padding: 12px 16px;
    gap: 14px;
  }
  
  .news-ticker__label {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .news-ticker__icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 520px) {
  .news-ticker__label span { 
    display: none; 
  }
  
  .news-ticker__label {
    padding: 8px;
  }
  
  .news-ticker__item { 
    font-size: 13px; 
  }
  
  .news-ticker__tag {
    font-size: 10px;
    padding: 4px 10px;
  }
}