/* ============================================================
   Header Announcements – Estilos frontend
   ============================================================ */

/* ── Reset base ────────────────────────────────────────────── */
#han-countdown-bar *,
#han-items-bar * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════════════════════════════
   COUNTDOWN BAR
   ══════════════════════════════════════════════════════════════ */
.han-countdown-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.han-countdown-bar.han--hidden {
  display: none;
}

.han-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Text */
.han-countdown-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Timer */
.han-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.han-timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.han-timer-num {
  font-size: 20px;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.han-timer-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 2px;
}

.han-timer-sep {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

/* CTA Button */
.han-cta-btn {
  display: inline-block;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.han-cta-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Close button */
.han-close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
  padding: 4px 6px;
  transition: opacity 0.2s ease;
}

.han-close-btn:hover {
  opacity: 1;
}

/* Countdown expired state */
.han-timer--expired .han-timer-num {
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════
   ITEMS BAR (Carrusel / Marquesina)
   ══════════════════════════════════════════════════════════════ */
.han-items-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  z-index: 999;
  overflow: hidden;
  min-height: 40px;
}

/* Slides wrapper */
.han-slides-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.han-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Individual slide */
.han-slide {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.han-slide.han-slide--active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.han-slide.han-slide--exit {
  display: flex;
  opacity: 0;
  transform: translateX(-30px);
}

.han-slide a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon */
.han-slide-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* Text */
.han-slide-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Arrows */
.han-arr {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0 8px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.han-arr:hover {
  opacity: 1;
}

.han-arr-prev { position: absolute; left: 8px; }
.han-arr-next { position: absolute; right: 8px; }

/* Only show arrows if > 1 slide */
.han-items-bar[data-total="1"] .han-arr,
.han-items-bar[data-total="1"] .han-dots {
  display: none;
}

/* Dots */
.han-dots {
  display: flex;
  gap: 5px;
  margin-left: 12px;
  flex-shrink: 0;
}

.han-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0.35;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.han-dot.han-dot--active {
  opacity: 1;
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .han-countdown-bar {
    padding: 8px 36px 8px 12px;
    font-size: 12px;
  }

  .han-countdown-inner {
    gap: 10px;
  }

  .han-countdown-text {
    font-size: 12px;
  }

  .han-timer-num {
    font-size: 16px;
  }

  .han-cta-btn {
    font-size: 11px;
    padding: 5px 12px;
  }

  .han-items-bar {
    padding: 8px 40px;
    font-size: 12px;
  }

  .han-slide-text {
    font-size: 11px;
  }

  .han-arr {
    font-size: 20px;
  }

  /* Hide dots on very small screens */
  @media (max-width: 480px) {
    .han-dots {
      display: none;
    }
  }
}

@media (max-width: 480px) {
  .han-countdown-inner {
    gap: 8px;
  }

  .han-countdown-text {
    text-align: center;
  }

  .han-timer-num {
    font-size: 14px;
    min-width: 22px;
  }
}
