/* HorusSoft C7c — Noir & Dorado + acentos de producto (fuente: website/horussoft.css) */
:root {
  --hs-primary: #011A27;
  --hs-primary-dark: #000d14;
  --hs-brand-accent: #C6A75E;
  --hs-brand-accent-dark: #A88A45;
  --hs-dark: #011A27;
  --hs-muted: #6B7280;
  --hs-surface: #F5F4F1;
  --hs-white: #ffffff;
  --hs-shadow: 0 4px 20px rgba(1, 26, 39, 0.12);
  --hs-shadow-lg: 0 8px 32px rgba(1, 26, 39, 0.18);
  --hs-radius: 16px;

  /* Producto: Tienda Online — Cobre (primario) + Noir (secundario) */
  --hs-tienda: #9A552C;
  --hs-tienda-dark: #7A4122;
  --hs-tienda-mid: #C47E52;
  --hs-tienda-soft: #F4EBE4;
  --hs-tienda-rgb: 154, 85, 44;
  --hs-tienda-secondary: #011A27;

  /* Producto: Gestión Comercial — Pizarra */
  --hs-gestion: #2F4657;
  --hs-gestion-dark: #223440;
  --hs-gestion-mid: #5C7588;
  --hs-gestion-soft: #E8EEF1;
  --hs-gestion-rgb: 47, 70, 87;
  --hs-facturacion: var(--hs-gestion);
  --hs-facturacion-dark: var(--hs-gestion-dark);
  --hs-facturacion-mid: var(--hs-gestion-mid);
  --hs-facturacion-soft: var(--hs-gestion-soft);

  /* Compat: acento de shell (se sobrescribe por body.hs-shell-*) */
  --hs-accent: var(--hs-gestion);
  --hs-accent-rgb: var(--hs-gestion-rgb);
}

body.hs-shell-facturacion,
body.hs-shell-panel {
  --hs-accent: var(--hs-gestion);
  --hs-accent-rgb: var(--hs-gestion-rgb);
}
body.hs-shell-tienda {
  --hs-accent: var(--hs-tienda);
  --hs-accent-rgb: var(--hs-tienda-rgb);
}
body.hs-shell-empresa {
  --hs-accent: var(--hs-primary);
  --hs-accent-rgb: 1, 26, 39;
  --hs-empresa-secondary: var(--hs-brand-accent);
}

/* Logo de shell: lockup partido — símbolo casi a tope del header; wordmark estable */
img.hs-shell-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
}

/* Header shell: alto 53 + sin franja blanca/sombra bajo el viewport */
.main-header {
  border-bottom: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
.main-header > a.logo {
  height: 53px !important;
  line-height: 53px !important;
  box-sizing: border-box !important;
  border-bottom: none !important;
}
.main-header .navbar {
  min-height: 53px !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.hs-shell-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  height: 53px !important;
  max-width: 100%;
  line-height: 1 !important;
}

.hs-shell-lockup .hs-shell-logo-mark {
  display: block !important;
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  object-fit: contain !important;
}

.hs-shell-lockup .hs-shell-logo-word {
  display: block !important;
  height: 25px !important;
  max-height: 25px !important;
  width: auto !important;
  object-fit: contain !important;
}

.main-header > a.logo .logo-mini img.hs-shell-logo-mark {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  margin: 0 auto;
}

/* CTA global de marca (oro), independiente del acento de producto */
.hs-brand-cta,
.btn.hs-brand-cta {
  background-color: var(--hs-brand-accent) !important;
  border-color: var(--hs-brand-accent) !important;
  color: #1a1205 !important;
}
.hs-brand-cta:hover,
.hs-brand-cta:focus,
.btn.hs-brand-cta:hover,
.btn.hs-brand-cta:focus {
  background-color: var(--hs-brand-accent-dark) !important;
  border-color: var(--hs-brand-accent-dark) !important;
  color: #1a1205 !important;
}

/* Navbar shell: una sola fila en mobile angosto (toggle + titulo + user) */
@media (max-width: 767px) {
  .main-header .navbar.navbar-fixed-top {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 53px;
  }

  .main-header .navbar .sidebar-toggle {
    float: none !important;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
  }

  .main-header .navbar .navbar-brand.nombre_producto,
  .main-header .navbar .nombre_producto {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: 100%;
    width: auto !important;
    overflow: hidden;
    white-space: nowrap;
    height: 53px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 8px !important;
    box-sizing: border-box;
    font-size: 16px !important;
  }

  .main-header .navbar .nombre_producto .fa,
  .main-header .navbar .nombre_producto .fas {
    font-size: 16px !important;
    flex-shrink: 0;
  }

  .main-header .navbar .nombre_producto > span {
    flex-shrink: 0;
  }

  .main-header .navbar .nombre_producto .hs-nav-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-header .navbar .navbar-custom-menu {
    float: none !important;
    flex: 0 0 auto;
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .main-header .navbar .navbar-custom-menu > .navbar-nav {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
    height: 100%;
  }

  .main-header .navbar .navbar-custom-menu > .navbar-nav > li {
    float: none;
    display: flex;
    align-items: center;
    height: 100%;
  }

  /* Avatar: anula margin-top negativo de AdminLTE y centra en el header */
  .main-header .navbar .navbar-custom-menu .user-menu > a.dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 53px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
  }

  .main-header .navbar .navbar-nav > .user-menu .user-image {
    float: none !important;
    display: block !important;
    margin: 0 !important;
    margin-top: 0 !important;
    line-height: normal !important;
    width: 28px;
    height: 28px;
    object-fit: cover;
  }
}
