/* ================= HEADER ================= */

.site-header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* COLLAPSE */
.site-header.is-sticky .header-top,
.site-header.is-sticky .header-bottom {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  border: none;
}

/* ================= LOGO ================= */

.logo a {
  display: inline-block;
  max-width: 100%;
}

.logo__img {
  width: calc(240px - (100vw - 1200px) * -0.05);
  max-width: 240px;
  min-width: 140px;
  height: auto;
  display: block;
}

.mobile__logo {
  display: none;
  width: 100%;
  max-width: 52px;
  height: auto;
}

.subscribe-2 {
  display: none;
}

/* ================= TOP HEADER ================= */

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;

  max-height: 100px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.2s ease;
}

.top-left {
  font-weight: bold;
  flex-shrink: 0;
  font-size: 14px;
}

.top-right-user {
  color: #8a0022;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

/* TREND LIST */
.top-center-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 15px;

  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-center-list::before {
  content: "Hoy interesa:";
  font-size: 14px;
}

.top-center-list::-webkit-scrollbar {
  display: none;
}

.top-center-list li {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-center-list li a {
  text-decoration: none;
  color: #555555;
  font-size: 14px;
}

.top-center-list li a:hover {
  text-decoration: underline;
}

.top-center-list li:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: #555555;
}

/* ================= MAIN HEADER ================= */

.header-main-sticky {
  background: #b00124;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-left,
.main-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.main-left {
  position: relative;
}

.menu-btn,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: capitalize;
}

.dropdown-toggle{
  text-transform: uppercase;
}

.divider {
  color: rgba(255, 255, 255, 0.4);
}

.burger__icon {
  text-decoration: none;
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: bold;
}

/* ================= DROPDOWN ================= */

.nacional-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50px;
  background: #eaeaea;
  color: #333;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 15px 0;
}

.nacional-dropdown.active {
  display: block;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 10px;
  font-size: 12px;
  color: #777;
  border-bottom: 1px solid #ccc;
}

.close-dropdown-btn {
  background: none;
  border: none;
  color: #8a0022;
  font-weight: bold;
  cursor: pointer;
}

.nacional-dropdown ul {
  list-style: none;
  padding-top: 10px;
}

.nacional-dropdown ul li a {
  display: block;
  padding: 8px 20px;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ================= BUTTONS ================= */

.btn-tv {
  border: 2px solid #fff;
  background: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-subscribe {
  background: #bfa000;
  border: none;
  color: #fff;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
}

/* ================= BOTTOM HEADER ================= */

.header-bottom {
  max-height: 100px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.2s ease;
}

.category-title {
  text-align: center;
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px dotted #000;
}

.bottom-nav-scroll {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  justify-content: space-between;
}

.bottom-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.bottom-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

.nav-item {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-item.secondary {
  color: #333333;
  font-weight: normal;
  text-transform: capitalize;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 970px) {
  .subscribe1,
  .top-left,
  .top-right-user,
  .divider,
  .dropdown-toggle,
  .mail,
  .menu-btn,
  .btn-tv {
    display: none;
  }

  .subscribe-2 {
    display: block;
  }

  .header-top {
    padding: 8px 10px;
  }

  .top-center-list {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .nav-item.secondary {
    font-size: 18px;
  }

  .main-center .logo {
    font-size: 22px;
  }

  /* ВАЖНО: header-top больше не скрывается */
  .header-top {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .top-center-list {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .bottom-nav-scroll {
    justify-content: flex-start;
    gap: 20px;
  }

  .nacional-dropdown {
    left: 10px;
    position: fixed;
    top: 50px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .logo__img {
    max-width: 120px;
  }

  .header-main-sticky {
    padding: 10px;
  }
}

@media (max-width: 352px) {
  .logo__img {
    display: none;
  }

  .mobile__logo {
    display: block;
  }
}
