:root {
  --header-offset: calc(5.75rem + env(safe-area-inset-top, 0px));
}

@media (max-width: 1280px) {
  :root {
    --header-offset: calc(7rem + env(safe-area-inset-top, 0px));
  }
}

html {
  scroll-padding-top: var(--header-offset);
}

header.site-header {
  box-sizing: border-box;
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: calc(4.5rem + env(safe-area-inset-top, 0px)) !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  z-index: 10050 !important;
  background: #111 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  visibility: visible !important;
  overflow: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

html.dp-site-header > body > header.site-header {
  position: fixed !important;
  z-index: 10050 !important;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 4.5rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  min-height: 44px;
}

.site-header-logo img {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: 140px;
  object-fit: contain;
  filter: none !important;
  background: #fff;
  border-radius: 10px;
  padding: 3px 6px;
}

.site-header-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.1rem 0.65rem;
  float: none !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.site-header-nav > a,
.site-header-drop-btn {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.1rem;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.site-header-nav > a:hover,
.site-header-nav > a.is-active,
.site-header-drop-btn:hover,
.site-header-drop.is-open > .site-header-drop-btn,
.site-header-drop.has-active > .site-header-drop-btn {
  color: #fff !important;
  box-shadow: inset 0 -2px 0 #c4a35a;
}

.site-header-drop {
  position: relative;
}

.site-header-drop-btn::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.site-header-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 13.5rem;
  padding: 0.4rem 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.site-header-drop:hover .site-header-drop-menu,
.site-header-drop.is-open .site-header-drop-menu {
  display: flex;
  flex-direction: column;
}

.site-header-nav > .site-header-drop:last-of-type .site-header-drop-menu {
  left: auto;
  right: 0;
}

.site-header-drop-menu a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: transparent;
}

.site-header-drop-menu a:hover,
.site-header-drop-menu a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #c4a35a !important;
}

.site-header-cta {
  background: #c4a35a !important;
  color: #111 !important;
  border-radius: 999px;
  padding: 0.4rem 0.9rem !important;
  box-shadow: none !important;
}

.site-header-cta:hover,
.site-header-cta.is-active {
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

.site-header-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  appearance: none;
}

.site-header-toggle span,
.site-header-toggle span::before,
.site-header-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.site-header-toggle span::before,
.site-header-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header-toggle span::before { top: -6px; }
.site-header-toggle span::after { top: 6px; }

html.dp-site-header header.l-h,
html.dp-site-header .s-hn,
html.dp-site-header .h-w.wnd-fixed,
html.dp-site-header #menu-mobile,
html.dp-site-header #menu-slider,
html.dp-site-header #menu-block,
html.dp-site-header body > header:not(.site-header) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  position: static !important;
  transform: none !important;
}

html.dp-site-header header.l-h:has(main),
html.dp-site-header header.l-h:has(.l-m),
html.dp-site-header .s-hn:has(main),
html.dp-site-header .s-hn:has(.l-m),
html.dp-site-header body > header:not(.site-header):has(main),
html.dp-site-header body > header:not(.site-header):has(.l-m) {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
}

.site-header-spacer {
  display: block;
  width: 100%;
  height: var(--header-offset);
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  visibility: hidden;
}

body.dp-fullbleed > .site-header-spacer,
body.wt-home > .site-header-spacer,
body.packs-redesign > .site-header-spacer {
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}

html.dp-site-header .l-m {
  padding-top: var(--header-offset) !important;
}

html.dp-site-header:has(.site-header-spacer) .l-m,
html.dp-site-header body.packs-redesign .l-m,
html.dp-site-header body.dp-fullbleed .l-m,
html.dp-site-header body.wt-home .l-m {
  padding-top: 0 !important;
}

html.dp-header-pad body {
  padding-top: var(--header-offset);
}

html.dp-header-pad:has(.cb-hero) body,
html.dp-header-pad:has(.site-header-spacer) body,
html.dp-site-header body.dp-fullbleed {
  padding-top: 0 !important;
}

html.dp-site-header .s-hm,
html.dp-site-header .s-hm.hn-default,
html.dp-site-header .s-hm.hn-slogan,
html.dp-site-header .l-sidebar .s-hm {
  margin-top: 0 !important;
}

html.dp-site-header .s-hm .s-o,
html.dp-site-header .s-hm.hn-default .s-o,
html.dp-site-header .s-hm.hn-slogan .s-o,
html.dp-site-header .l-sidebar .s-hm .s-o {
  padding-top: 0 !important;
}

/*
  Full-bleed: el fondo del hero llega al borde del viewport.
  El offset del header fijo va DENTRO del primer bloque de color
  (padding-top: var(--header-offset)), no como franja blanca en .l-m / body.
  Gutters solo en el contenedor interno (.cm-container, .qs-wrap, .cb-wrap).
*/
html.dp-site-header body.dp-fullbleed {
  overflow-x: hidden;
}

html.dp-site-header body.dp-fullbleed .cm-hero,
html.dp-site-header body.dp-fullbleed .qs-hero,
html.dp-site-header body.dp-fullbleed .cb-hero,
html.dp-site-header body.dp-fullbleed .dp-pricing-page > .dp-yellow-banner:first-of-type {
  padding-top: calc(var(--header-offset) + 1.25rem) !important;
}

@media (max-width: 1280px) {
  html.dp-site-header body.dp-fullbleed .cm-hero,
  html.dp-site-header body.dp-fullbleed .qs-hero,
  html.dp-site-header body.dp-fullbleed .cb-hero,
  html.dp-site-header body.dp-fullbleed .dp-pricing-page > .dp-yellow-banner:first-of-type,
  html.dp-site-header body.wt-home .dp-home-hero .s-c {
    padding-top: calc(var(--header-offset) + 1.5rem) !important;
  }
}

html.dp-site-header body.dp-fullbleed .s-hm,
html.dp-site-header body.dp-fullbleed .s-hm-hidden {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

html.dp-site-header body.dp-fullbleed .l-page,
html.dp-site-header body.dp-fullbleed .l-w,
html.dp-site-header body.dp-fullbleed .l-m,
html.dp-site-header body.dp-fullbleed .sw,
html.dp-site-header body.dp-fullbleed .sw-c,
html.dp-site-header body.dp-fullbleed .s-basic,
html.dp-site-header body.dp-fullbleed .wnd-s-normal,
html.dp-site-header body.dp-fullbleed .wnd-w-max,
html.dp-site-header body.dp-fullbleed .wnd-w-default {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html.dp-site-header body.dp-fullbleed .l-m .s-w,
html.dp-site-header body.dp-fullbleed .l-m .s-o,
html.dp-site-header body.dp-fullbleed .l-m .s-c,
html.dp-site-header body.dp-fullbleed .l-m .ez,
html.dp-site-header body.dp-fullbleed .l-m .ez-c,
html.dp-site-header body.dp-fullbleed .l-m .b-html,
html.dp-site-header body.dp-fullbleed .l-m .b-html .b-c {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 1280px) {
  .site-header-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .site-header-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    max-height: min(80vh, calc(100dvh - var(--header-offset)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header.is-open .site-header-nav {
    display: flex !important;
  }
  .site-header-nav > a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none !important;
    min-height: 44px;
  }
  .site-header-drop {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-header-drop-btn {
    width: 100%;
    justify-content: space-between;
    pointer-events: none;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55) !important;
    min-height: 36px;
    padding-top: 0.85rem;
    box-shadow: none !important;
  }
  .site-header-drop-btn::after {
    display: none;
  }
  .site-header-drop-menu {
    display: flex !important;
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.35rem;
    background: transparent;
  }
  .site-header-drop-menu a {
    padding: 0.65rem 0.35rem 0.65rem 0.7rem;
  }
  .site-header-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .site-header-logo span { font-size: 0.95rem; }
  .site-header-inner { padding: 0.45rem 0.75rem; }
}
