/* ================================== */
/* ARCHIVO: ranking-ticker.css        */
/* ================================== */

.ranking-ticker-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 0;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 8px; /* Espacio para separarlo del contenido de abajo */
}

.ranking-ticker-widget {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-tape-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-tape-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-ticker 80000s linear infinite; 
}

.ticker-tape-content:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 25px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.ticker-item .city-name {
  font-weight: 600;
  margin-right: 10px;
  opacity: 0.9;
}

.ticker-item .rank-change {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 5px;
  min-width: 45px;
  justify-content: center;
}

.ticker-item .rank-change i {
  margin-right: 5px;
  font-size: 12px;
}

/* Color verde para subidas */
.rank-up {
  color: #c7ffd8;
  background-color: rgba(30, 150, 76, 0.3);
}

/* Color rojo para bajadas */
.rank-down {
  color: #ffc7ce;
  background-color: rgba(220, 53, 69, 0.3);
}

/* [MODIFICADO] Color amarillo para sin cambios */
.rank-same {
  color: #ffe8a1;
  background-color: rgba(255, 193, 7, 0.25);
}