/* ImaginaWeb authenticated header — compact, consistent final layer. */
html body.iw-panel-light nav#iw-main-header.iw-header,
html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon {
  min-height: 44px !important;
  max-height: 44px !important;
  border-bottom: 1px solid #dbe7ee !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 3px 12px rgba(13, 51, 73, .055) !important;
}


html body.iw-panel-light nav#iw-main-header .iw-header-inner,
html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-inner {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  gap: 6px !important;
  /* Ajuste visual: 246px de sidebar + 18px del contenido + 28px de avance. */
  padding: 0 16px 0 292px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-inner > .iw-header-nav {
  display: none !important;
}

html body.iw-panel-light .iw-shell-heading-zone > .iw-section-header,
html body.iw-panel-light .iw-shell-heading-zone > .iw-page-header {
  gap: 6px !important;
}

html body.iw-panel-light .iw-section-header__icon {
  flex: 0 0 25px !important;
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  border: 1px solid #c6e4e6 !important;
  border-radius: 7px !important;
  background: #edf8f7 !important;
  color: #0f6f7d !important;
  font-size: 10px !important;
}

html body.iw-panel-light .iw-section-header__icon i {
  color: #0f6f7d !important;
  font-size: 10px !important;
}

html body.iw-panel-light .iw-section-header__eyebrow,
html body.iw-panel-light .iw-shell-heading-zone .iw-breadcrumb {
  margin: 0 0 1px !important;
  color: #0f7781 !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .065em !important;
}

html body.iw-panel-light .iw-section-header__title,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-title {
  color: #0d3349 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.015em !important;
}

html body.iw-panel-light .iw-section-header__actions,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions {
  gap: 3px !important;
}

html body.iw-panel-light .iw-shell-heading-zone .iw-section-header__actions .btn,
html body.iw-panel-light .iw-shell-heading-zone .iw-page-actions .btn {
  min-height: 25px !important;
  max-height: 25px !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  font-size: 8.5px !important;
  font-weight: 750 !important;
}

/* El inicio conserva una sola acción clara; las utilidades siguen en su menú. */
html body.iw-panel-light .iw-section-header--home .iw-section-header__actions .iw-btn-secondary {
  display: none !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions {
  gap: 3px !important;
  margin-left: auto !important;
  padding-left: 7px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions::before,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account::before {
  display: none !important;
  content: none !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-store {
  display: none !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-btn,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-cart,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-notifications,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-user,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account {
  display: inline-flex !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d7e4e9 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #0f6f7d !important;
  box-shadow: none !important;
  font-size: 11px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-btn:hover,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-cart:hover,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-notifications:hover,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-user:hover,
html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account:hover {
  border-color: #b7dadd !important;
  background: #eaf6f6 !important;
  color: #0d3349 !important;
}

html body.iw-panel-light nav#iw-main-header .iw-header-actions i {
  width: 12px !important;
  height: 12px !important;
  color: inherit !important;
  font-size: 11px !important;
  line-height: 12px !important;
}

html body.iw-panel-light nav#iw-main-header .iw-hdr-account-label,
html body.iw-panel-light nav#iw-main-header .iw-hdr-store-label,
html body.iw-panel-light nav#iw-main-header .iw-hdr-username,
html body.iw-panel-light nav#iw-main-header .iw-hdr-avatar,
html body.iw-panel-light nav#iw-main-header .iw-hdr-chevron {
  display: none !important;
}

html body.iw-panel-light nav#iw-main-header .iw-hdr-badge {
  top: -4px !important;
  right: -4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 14px !important;
  width: auto !important;
  height: 14px !important;
  padding: 0 3px !important;
  border: 1.5px solid #fff !important;
  border-radius: 999px !important;
  background: #c83f49 !important;
  color: #fff !important;
  font-size: 7.5px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

@media (max-width: 991px) {
  html body.iw-panel-light nav#iw-main-header.iw-header,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon {
    position: sticky !important;
    top: 0 !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 4px 7px !important;
    border: 0 !important;
    border-bottom: 1px solid #dbe7ee !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    background-image: none !important;
    box-shadow: 0 4px 14px rgba(13, 51, 73, .07) !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-inner,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-inner {
    display: grid !important;
    grid-template-columns: minmax(120px, 1fr) auto 30px !important;
    grid-template-areas: "brand actions menu" !important;
    gap: 4px !important;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    padding: 0 !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-logo,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-logo {
    grid-area: brand !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: min(154px, calc(100vw - 116px)) !important;
    min-width: 112px !important;
    max-width: min(154px, calc(100vw - 116px)) !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-logo img,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .iw-header-logo img {
    width: auto !important;
    max-width: 144px !important;
    height: 27px !important;
    max-height: 27px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-shell-heading-zone {
    display: none !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-actions {
    grid-area: actions !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-actions::before {
    display: none !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-actions > .iw-hdr-btn:not(.iw-hdr-cart):not(.iw-hdr-notifications):not(.iw-hdr-account) {
    display: none !important;
  }

  html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-cart,
  html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-notifications,
  html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-account {
    display: inline-flex !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border-color: #d7e4e9 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0f6f7d !important;
  }

  html body.iw-panel-light nav#iw-main-header .top-resp,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon .top-resp {
    grid-area: menu !important;
    position: static !important;
    display: flex !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.iw-panel-light nav#iw-main-header #sidebarCollapsenav.respos,
  html body.iw-panel-light .iw-header.clientx.wgsheaderfromaddon #sidebarCollapsenav.respos {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #0d3349 !important;
    border-radius: 7px !important;
    background: #0d3349 !important;
    color: #fff !important;
  }

  html body.iw-panel-light nav#iw-main-header #sidebarCollapsenav i {
    color: #fff !important;
    font-size: 12px !important;
  }
}

@media (max-width: 390px) {
  html body.iw-panel-light nav#iw-main-header .iw-header-actions .iw-hdr-cart {
    display: none !important;
  }
}
