.pgwph-header,
.pgwph-header * {
  box-sizing: border-box;
}

.pgwph-header {
  --pg-header-height: 72px;
  --pg-container: 1344px;
  --pg-drawer-width: 390px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(217, 148, 31, 0.12);
  -webkit-backdrop-filter: saturate(185%) blur(26px);
  backdrop-filter: saturate(185%) blur(26px);
  font-family: var(--pg-body-font);
  color: var(--pg-text);
  overflow: visible;
}

.pgwph-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pg-header-warm-glow);
  background-size: 140% 140%;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: pgwph-header-glow-shift 16s ease-in-out infinite alternate;
}

.pgwph-header > * {
  position: relative;
  z-index: 1;
}

.pgwph-header .header-top {
  z-index: 3;
}

@keyframes pgwph-header-glow-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.pgwph-pending {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pgwph-header a {
  color: inherit;
  text-decoration: none;
}

.page-template-template-cotizador .pgwph-header a,
.page-template-template-cotizador .pgwph-header a:link,
.page-template-template-cotizador .pgwph-header a:visited,
.page-template-template-cotizador .pgwph-header a:hover,
.page-template-template-cotizador .pgwph-header a:focus,
.page-template-template-cotizador .pgwph-header a:focus-visible,
.page-template-template-cotizador .pgwph-header .nav-link,
.page-template-template-cotizador .pgwph-header .nav-link:link,
.page-template-template-cotizador .pgwph-header .nav-link:visited,
.page-template-template-cotizador .pgwph-header .nav-link:hover,
.page-template-template-cotizador .pgwph-header .nav-link:focus,
.page-template-template-cotizador .pgwph-header .nav-link:focus-visible,
.page-template-template-cotizador .pgwph-header .mega-link,
.page-template-template-cotizador .pgwph-header .mega-link:link,
.page-template-template-cotizador .pgwph-header .mega-link:visited,
.page-template-template-cotizador .pgwph-header .mega-link:hover,
.page-template-template-cotizador .pgwph-header .mega-link:focus,
.page-template-template-cotizador .pgwph-header .mega-link:focus-visible,
.page-template-template-cotizador .pgwph-header .contact-link,
.page-template-template-cotizador .pgwph-header .contact-link:link,
.page-template-template-cotizador .pgwph-header .contact-link:visited,
.page-template-template-cotizador .pgwph-header .contact-link:hover,
.page-template-template-cotizador .pgwph-header .contact-link:focus,
.page-template-template-cotizador .pgwph-header .contact-link:focus-visible,
.page-template-template-cotizador .pgwph-header .search-item,
.page-template-template-cotizador .pgwph-header .search-item:link,
.page-template-template-cotizador .pgwph-header .search-item:visited,
.page-template-template-cotizador .pgwph-header .search-item:hover,
.page-template-template-cotizador .pgwph-header .search-item:focus,
.page-template-template-cotizador .pgwph-header .search-item:focus-visible {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

.pgwph-header button,
.pgwph-header input {
  font: inherit;
}

.pgwph-header .header-top {
  max-width: var(--pg-container);
  margin: 0 auto;
  min-height: var(--pg-header-height);
  display: grid;
  grid-template-columns: 220px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 10px;
}

.pgwph-header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--pg-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pgwph-header .menu-toggle:hover,
.pgwph-header .menu-toggle:focus-visible {
  background: var(--pg-primary-light);
  color: var(--pg-primary-dark);
}

.pgwph-header .brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.pgwph-header .brand-logo {
  display: block;
  height: 33px;
  width: auto;
  max-height: 33px;
  max-width: 100%;
}

.pgwph-header .header-search {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1300;
}

.pgwph-header .header-search::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid var(--pg-primary-ring-soft);
  border-top-color: var(--pg-primary);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pgwph-header .header-search.is-loading::after {
  opacity: 1;
  transform: scale(1);
  animation: pgwph-search-spin 0.75s linear infinite;
}

.pgwph-header .header-search input {
  width: 100%;
  height: 46px;
  border: 1px solid #EBEBEB;
  outline: none;
  background: #fff;
  border-radius: 999px;
  padding: 0 44px 0 46px;
  font-size: 16px;
  color: var(--pg-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pgwph-header .header-search input:focus {
  background: var(--pg-card-bg);
  border-color: var(--pg-primary);
  box-shadow: var(--pg-glow);
}

.pgwph-header .header-search>i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pg-primary-dark);
  font-size: 16px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.pgwph-header .header-search.is-loading > i {
  opacity: 0.45;
}

.pgwph-header .search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: var(--pg-card-bg);
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  box-shadow: var(--pg-shadow);
  padding: 8px 0;
  display: none;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  z-index: 1500;
}

.pgwph-header .search-dropdown.open {
  display: block;
}

@keyframes pgwph-search-spin {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}

.pgwph-header .search-section {
  padding: 0;
}

.pgwph-header .search-section.hidden {
  display: none;
}

.pgwph-header .search-section+.search-section {
  padding-top: 4px;
}

.pgwph-header .search-section-title {
  margin: 0;
  padding: 4px 16px;
  color: var(--pg-muted);
  font-size: 14px;
  font-weight: 600;
}

.pgwph-header .search-list {
  display: grid;
}

.pgwph-header .search-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--pg-text);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pgwph-header .search-item:hover,
.pgwph-header .search-item:focus-visible {
  background: var(--pg-primary-light);
  color: var(--pg-primary-dark);
}

.pgwph-header .search-item-label {
  font-size: 15px;
  line-height: 1.35;
}

.pgwph-header .search-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.pgwph-header .search-item-meta {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pg-text-muted);
}

.pgwph-header .search-item-arrow {
  color: var(--pg-text-muted);
  font-size: 15px;
  flex-shrink: 0;
}

.pgwph-header .search-list-categories .search-item {
  justify-content: flex-start;
}

.pgwph-header .search-item mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.pgwph-header .search-empty {
  display: none;
  margin: 0;
  padding: 12px 16px 4px;
  color: var(--pg-muted);
  font-size: 14px;
}

.pgwph-header .search-empty.visible {
  display: block;
}

.pgwph-header .header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pgwph-header .contact-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pgwph-header .pgwph-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  flex-shrink: 0;
}

.pgwph-header .pgwph-header-tool {
  width: 42px;
  height: 42px;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: var(--pg-card-bg);
  color: var(--pg-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pgwph-header .pgwph-header-tool:hover,
.pgwph-header .pgwph-header-tool:focus-visible {
  border-color: var(--pg-primary);
  color: var(--pg-primary-dark);
  background: var(--pg-primary-light);
}

.pgwph-header .pgwph-header-tool svg {
  width: 22px;
  height: 22px;
  display: block;
}

.pgwph-header .pgwph-header-cart {
  position: relative;
}

.pgwph-header .pgwph-header-cart .cart-button-total {
  display: none;
}

.pgwph-header .pgwph-header-cart .badge {
  background: var(--pg-primary);
  color: var(--pg-white);
  top: -2px;
  right: -2px;
}

.pgwph-header .pgwph-header-cart .cart-mini {
  right: 0;
  top: calc(100% + 14px);
}

.pgwph-header .contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.pgwph-header .contact-link:hover,
.pgwph-header .contact-link:focus-visible {
  color: var(--pg-primary);
}

.pgwph-header .contact-link i {
  color: var(--pg-primary);
  font-size: 18px;
}

.pgwph-header .contact-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pgwph-header .contact-copy small {
  font-size: 12px;
  color: var(--pg-text);
}

.pgwph-header .contact-copy strong,
.pgwph-header .contact-copy span {
  font-size: 14px;
  color: var(--pg-primary);
  font-weight: 600;
}

.pgwph-header .main-nav-wrap {
  border-top: 1px solid var(--pg-border-subtle);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .pgwph-header {
    animation: none;
  }
}

.pgwph-header .main-nav {
  width: 100%;
  max-width: var(--pg-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}

.pgwph-header .nav-item {
  position: relative;
}

.pgwph-header .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--pg-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pgwph-header .nav-link:hover,
.pgwph-header .nav-link:focus-visible,
.pgwph-header .nav-item.active .nav-link {
  background: var(--pg-primary-light);
  color: var(--pg-primary-dark);
}

.pgwph-header .mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--pg-container), calc(100vw - 36px));
  max-width: var(--pg-container);
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 40px;
  padding: 28px 36px 34px;
  background: var(--pg-card-bg);
  box-shadow: var(--pg-shadow);
  border-radius: 0 0 22px 22px;
  z-index: 1301;
}

.pgwph-header .mega-menu.open {
  display: grid;
}

.pgwph-header .mega-col {
  display: grid;
  gap: 14px;
}

.pgwph-header .mega-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pg-text);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pgwph-header .mega-link:hover,
.pgwph-header .mega-link:focus-visible {
  background: transparent;
  color: var(--pg-primary-dark) !important;
}

body.pgwph-menu-open,
body.pgwph-submenu-open {
  overflow: hidden;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(var(--pg-drawer-width), 92vw);
  height: 100vh;
  background: var(--pg-card-bg);
  z-index: 999999;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  border-right: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-drawer-inner {
  position: relative;
  height: 100%;
}

.menu-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--pg-card-bg);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-panel-main {
  transform: translateX(0);
}

.menu-panel-sub {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.menu-drawer.show-submenu .menu-panel-main {
  transform: translateX(-100%);
}

.menu-drawer.show-submenu .menu-panel-sub {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-panel-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 60px;
  padding: 0 10px;
  border-bottom: 1px solid var(--pg-border);
}

.menu-panel-header--main {
  grid-template-columns: 1fr 48px;
  padding-left: 16px;
}

.menu-panel-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-panel-brand img {
  display: block;
  height: 28px;
  width: auto;
  max-height: 28px;
  max-width: 100%;
}

.menu-back,
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--pg-text);
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-back:hover,
.menu-back:focus-visible,
.menu-close:hover,
.menu-close:focus-visible {
  background: var(--pg-primary-light);
  color: var(--pg-primary-dark);
}

.menu-title {
  text-align: center;
  font-family: var(--pg-heading-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--pg-text);
}

.menu-list,
.submenu-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-item-link,
.menu-item-button,
.submenu-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: none;
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-card-bg);
  color: var(--pg-text);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-item-link:hover,
.menu-item-link:focus-visible,
.menu-item-button:hover,
.menu-item-button:focus-visible,
.submenu-link:hover,
.submenu-link:focus-visible {
  background: var(--pg-card-bg);
  color: var(--pg-primary-dark) !important;
}

.menu-item-label,
.submenu-link span {
  flex: 1;
}

.menu-item-button i,
.submenu-link i {
  color: var(--pg-primary-dark);
  font-size: 15px;
  flex-shrink: 0;
}

.submenu-link:hover i,
.submenu-link:focus-visible i {
  color: var(--pg-primary-dark);
}

.page-template-template-cotizador .pgwph-header .mega-link:hover,
.page-template-template-cotizador .pgwph-header .mega-link:focus-visible,
.page-template-template-cotizador .pgwph-header .submenu-link:hover,
.page-template-template-cotizador .pgwph-header .submenu-link:focus-visible,
.page-template-template-cotizador .pgwph-header .menu-item-link:hover,
.page-template-template-cotizador .pgwph-header .menu-item-link:focus-visible,
.page-template-template-cotizador .pgwph-header .menu-item-button:hover,
.page-template-template-cotizador .pgwph-header .menu-item-button:focus-visible {
  color: var(--pg-primary-dark) !important;
}

.menu-panel-body {
  flex: 1;
  overflow-y: auto;
}

.site-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--pg-overlay-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1090;
}

body.pgwph-menu-open .site-overlay,
body.pgwph-submenu-open .site-overlay {
  opacity: 1;
}

body.pgwph-menu-open .site-overlay {
  pointer-events: auto;
}

body.pgwph-submenu-open .site-overlay {
  pointer-events: none;
}

@media (max-width: 1180px) {
  .pgwph-header .header-top {
    grid-template-columns: 200px 1fr;
    grid-template-areas:
      "brand actions"
      "search search";
    row-gap: 14px;
  }

  .pgwph-header .brand {
    grid-area: brand;
  }

  .pgwph-header .header-search {
    grid-area: search;
  }

  .pgwph-header .header-right {
    grid-area: actions;
    justify-content: flex-end;
  }

  .pgwph-header .contact-group {
    gap: 14px;
  }

  .pgwph-header .pgwph-header-tools {
    gap: 8px;
    margin-left: 0;
  }
}

@media (max-width: 920px) {
  .pgwph-header .header-top {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle brand actions"
      "search search search";
    row-gap: 12px;
  }

  .pgwph-header .menu-toggle {
    display: inline-flex;
    grid-area: toggle;
  }

  .pgwph-header .brand {
    grid-area: brand;
    min-width: 0;
  }

  .pgwph-header .header-right {
    grid-area: actions;
    justify-content: flex-end;
  }

  .pgwph-header .header-search {
    grid-area: search;
  }

  .pgwph-header .main-nav-wrap {
    display: none;
  }

  .pgwph-header .contact-group {
    display: flex;
    gap: 12px;
  }

  .pgwph-header .contact-link {
    display: none;
  }

  .pgwph-header .pgwph-header-tools {
    gap: 8px;
    margin-left: 0;
  }
}

@media (min-width: 921px) {
  .menu-drawer {
    display: none;
  }
}

@media (max-width: 640px) {
  .pgwph-header .header-top {
    padding: 12px 14px;
  }

  .pgwph-header .brand-logo {
    height: 40px;
    max-height: 40px;
  }

  .pgwph-header .header-right {
    gap: 12px;
  }

  .pgwph-header .contact-group {
    gap: 10px;
  }

  .pgwph-header .pgwph-header-tool {
    width: 38px;
    height: 38px;
  }

  .pgwph-header .pgwph-header-tool svg {
    width: 20px;
    height: 20px;
  }

  .pgwph-header .pgwph-header-cart .cart-mini {
    position: fixed;
    top: calc(var(--pg-header-height) + 10px);
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    z-index: 1400;
  }

  .pgwph-header .header-search input {
    height: 42px;
    font-size: 15px;
  }

  .pgwph-header .icon-btn i {
    font-size: 18px;
  }

  .menu-drawer {
    width: 100vw;
  }
}
