/**
 * Barra promocional en movimiento — independiente del layout home/registro.
 */
:root {
  --cp-promo-bar: #d90429;
  --cp-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.home-promo-ticker {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, #b80324 0%, var(--cp-promo-bar) 42%, var(--cp-promo-bar) 58%, #b80324 100%);
  border-bottom: 1px solid rgba(11, 28, 48, 0.08);
  cursor: default;
  box-sizing: border-box;
  flex-shrink: 0;
}

.home-promo-ticker-badge {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.home-promo-ticker-badge-img {
  display: block;
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: 108px;
  object-fit: contain;
  object-position: left center;
}

.home-promo-ticker-track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
}

.home-promo-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  min-height: 0;
  animation: home-promo-ticker-scroll 42s linear infinite;
  will-change: transform;
}

.home-promo-ticker-track-wrap:hover .home-promo-ticker-track,
.home-promo-ticker-track-wrap:focus-within .home-promo-ticker-track {
  animation-play-state: paused;
}

.home-promo-ticker-segment {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  height: 100%;
  padding-right: 40px;
  white-space: nowrap;
}

.home-promo-ticker-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  margin: 0 20px;
  color: #ffffff;
}

.home-promo-ticker-msg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.home-promo-ticker-msg-icon .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.home-promo-ticker-msg-title {
  font-family: var(--cp-font);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

@media (max-width: 767px) {
  .home-promo-ticker-msg {
    margin: 0 14px;
    gap: 8px;
  }

  .home-promo-ticker-msg-title {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-promo-ticker-track {
    animation: none;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    height: 100%;
    min-height: 40px;
    padding: 0;
  }

  .home-promo-ticker-segment[aria-hidden="true"] {
    display: none;
  }

  .home-promo-ticker-track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-promo-ticker-track-wrap::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .home-promo-ticker {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
  }

  .home-promo-ticker-badge-img {
    max-width: 76px;
  }

  .home-promo-ticker-msg {
    margin: 0 10px;
    gap: 6px;
  }

  .home-promo-ticker-msg-title {
    font-size: 11px;
    line-height: 1.2;
  }

  .home-promo-ticker-msg-icon .material-symbols-outlined {
    font-size: 14px;
  }
}
