/* Kodica Sticky Glass Header 1.2.0 — Flatsome */
/* El wrapper sticky de Flatsome ocupa todo el ancho: nunca debe pintar una franja. */
body.ksgh-ready #header,
body.ksgh-ready #header .header-wrapper,
body.ksgh-ready #header .header-wrapper.stuck,
body.ksgh-ready #header .header-wrapper > .stuck,
body.ksgh-ready #header .stuck:not(.header-main),
body.ksgh-ready #header .header-bg-container,
body.ksgh-ready #header .header-bg,
body.ksgh-ready #header .header-bg-color,
body.ksgh-ready #header .header-bg-image {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
/* Flatsome puede dibujar capas de fondo absolutas dentro de header-main. */
body.ksgh-ready #header .header-main .header-bg-container,
body.ksgh-ready #header .header-main .header-bg,
body.ksgh-ready #header .header-main .header-bg-color,
body.ksgh-ready #header .header-main .header-bg-image {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.ksgh-ready #header .header-main {
  position: relative !important;
  isolation: isolate;
  transition: width .35s ease, margin .35s ease, border-radius .35s ease, box-shadow .35s ease !important;
}
body.ksgh-ready #header .header-main .header-inner {
  position: relative;
  z-index: 2;
  padding-left: 20px;
  padding-right: 20px;
}
/* Una sola capa de vidrio dentro del rectángulo redondeado. */
body.ksgh-ready #header .header-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity .35s ease;
}
body.ksgh-ready:not(.ksgh-scrolled) #header .header-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.ksgh-ready:not(.ksgh-scrolled) #header .header-main .nav > li > a,
body.ksgh-ready:not(.ksgh-scrolled) #header .header-main .icon {
  color: var(--ksgh-normal) !important;
}
body.ksgh-ready.ksgh-scrolled #header .header-main {
  width: calc(100% - 2 * var(--ksgh-side)) !important;
  max-width: 1600px !important;
  margin: var(--ksgh-offset) auto 0 !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: var(--ksgh-radius) !important;
  box-shadow: 0 10px 40px rgba(0,30,50,.16), inset 0 1px 0 rgba(255,255,255,.4) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.ksgh-ready.ksgh-scrolled #header .header-main::before {
  opacity: 1 !important;
  background: var(--ksgh-glass) !important;
  -webkit-backdrop-filter: blur(var(--ksgh-blur)) saturate(160%) !important;
  backdrop-filter: blur(var(--ksgh-blur)) saturate(160%) !important;
}
body.ksgh-ready.ksgh-scrolled #header .header-main .nav > li > a,
body.ksgh-ready.ksgh-scrolled #header .header-main .icon {
  color: var(--ksgh-sticky) !important;
}
body.ksgh-ready.ksgh-scrolled #header .header-main .nav > li > a:hover {
  color: var(--ksgh-hover) !important;
}
body.ksgh-logo-managed #header .header-logo img { transition: opacity .2s ease; }
@media (max-width: 849px) {
  body.ksgh-ready.ksgh-scrolled #header .header-main { width: calc(100% - 30px) !important; margin-top: 14px !important; }
  body.ksgh-ready #header .header-main .header-inner { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 549px) {
  body.ksgh-ready.ksgh-scrolled #header .header-main { width: calc(100% - 24px) !important; margin-top: 12px !important; }
  body.ksgh-ready #header .header-main .header-inner { padding-left: 12px; padding-right: 12px; }
}

/* Páginas internas: estilo independiente antes del scroll. */
body.ksgh-ready.ksgh-inner:not(.ksgh-scrolled) #header .header-main {
  background: var(--ksgh-inner-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.ksgh-ready.ksgh-inner:not(.ksgh-scrolled) #header .header-main .nav > li > a,
body.ksgh-ready.ksgh-inner:not(.ksgh-scrolled) #header .header-main .icon {
  color: var(--ksgh-inner-color) !important;
}
body.ksgh-ready.ksgh-inner:not(.ksgh-scrolled) #header .header-main .nav > li > a:hover {
  color: var(--ksgh-hover) !important;
}
body.ksgh-ready.ksgh-inner.ksgh-inner-floating:not(.ksgh-scrolled) #header .header-main {
  width: calc(100% - 2 * var(--ksgh-side)) !important;
  max-width: 1600px !important;
  margin: var(--ksgh-offset) auto 0 !important;
  border-radius: var(--ksgh-radius) !important;
  border: 1px solid rgba(0,30,50,.07) !important;
  box-shadow: 0 10px 30px rgba(0,30,50,.10) !important;
}
@media (max-width:849px) {
  body.ksgh-ready.ksgh-inner.ksgh-inner-floating:not(.ksgh-scrolled) #header .header-main {
    width: calc(100% - 30px) !important;
    margin-top: 14px !important;
  }
}
@media (max-width:549px) {
  body.ksgh-ready.ksgh-inner.ksgh-inner-floating:not(.ksgh-scrolled) #header .header-main {
    width: calc(100% - 24px) !important;
    margin-top: 12px !important;
  }
}
