/* =====================
   TICKER
===================== */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--ticker-bg);
  border-bottom: 0.5px solid var(--border-accent);
  overflow: hidden;
  min-height: 38px;
}

/* Etiqueta de sección — link clicable */
.ticker-label {
  background: var(--accent);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0EAE8;
  padding: 0 18px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s;
}

.ticker-label:hover { background: var(--accent-hover); }

/* DESKTOP: fade entre items */
.ticker-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-item {
  position: absolute;
  width: 100%;
  padding: 0 22px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.ticker-item.active { opacity: 1; pointer-events: auto; }

.ticker-link {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.ticker-link:hover { color: var(--ticker-accent); }

/* RESPONSIVE: marquesina continua — oculta en desktop */
.ticker-marquee-wrap { display: none; }

/* Separador punto entre items */
.ticker-dot-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 14px;
  vertical-align: middle;
  flex-shrink: 0;
}

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

@media (max-width: 1100px) {
  .ticker-label { padding: 0 16px; font-size: 10px; }

  /* Ocultar fade, activar marquesina */
  .ticker-content { display: none; }

  .ticker-marquee-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    height: 38px;
  }

  .ticker-marquee {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 24s linear infinite;
    will-change: transform;
  }

  .ticker-marquee a {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    padding: 0 4px;
  }

  .ticker-marquee a:hover { color: var(--ticker-accent); }
}
