/* ============================================
   TANA TOP BANNER
   Mobile: full width, centered
   Desktop: left-aligned within nav1
   ============================================ */

.tana-topbanner {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  z-index: 100;
  box-sizing: border-box;
}

.tana-topbanner__content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tana-topbanner__text {
  text-align: center;
}

.tana-topbanner__text a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.tana-topbanner__text a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.tana-topbanner__link {
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.tana-topbanner__link:hover {
  opacity: 0.85;
}

.tana-topbanner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.tana-topbanner__close:hover {
  opacity: 1;
}

/* Desktop: escape del contenedor con padding, alineado a la izquierda */
@media (min-width: 769px) {
  .tana-topbanner {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
  }

  .tana-topbanner__content {
    justify-content: flex-start;
    max-width: 1200px;
    padding-left: 16px;
  }

  .tana-topbanner__text {
    text-align: left;
  }
}

/* Mobile: ancho completo simple, sin truco de escape */
@media (max-width: 768px) {
  /* Forzar visibilidad del contenedor del hook displayNav1 en móvil */
  #header .header-nav,
  .header-nav,
  [id*="nav1"],
  [class*="nav1"] {
    display: block !important;
    overflow: visible !important;
  }

  .tana-topbanner {
    width: 100% !important;
    position: static !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box;
  }

  .tana-topbanner__content {
    justify-content: center;
    width: 100%;
    padding-right: 32px;
  }

  .tana-topbanner__close {
    right: 8px;
  }
}
