:root {
  --cide-header-purple: #682470;
  --cide-header-lime: #c2e204;
  --cide-header-ink: #242424;
  --cide-header-muted: #656565;
  --cide-header-line: rgba(104, 36, 112, 0.12);
  --cide-header-bg: rgba(255, 255, 255, 0.96);
  --cide-header-shadow: 0 14px 35px rgba(28, 16, 32, 0.07);
  --cide-header-active-bg: rgba(194, 226, 4, 0.18);
}

body.cide-coded-home {
  --cide-header-purple: #682470;
  --cide-header-lime: #c2e204;
  --cide-header-ink: #ffffff;
  --cide-header-muted: rgba(255, 255, 255, 0.78);
  --cide-header-line: rgba(255, 255, 255, 0.14);
  --cide-header-bg: rgba(104, 36, 112, 0.94);
  --cide-header-shadow: 0 16px 36px rgba(63, 22, 70, 0.24);
  --cide-header-active-bg: rgba(194, 226, 4, 0.22);
}

body.cide-coded-tesis {
  --cide-header-purple: #e9541f;
  --cide-header-lime: #e9541f;
  --cide-header-ink: #ffffff;
  --cide-header-muted: rgba(255, 255, 255, 0.74);
  --cide-header-line: rgba(255, 255, 255, 0.12);
  --cide-header-bg: rgba(24, 24, 24, 0.96);
  --cide-header-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  --cide-header-active-bg: rgba(233, 84, 31, 0.2);
}

body.cide-coded-about,
body.cide-coded-contact,
body.cide-coded-blog {
  --cide-header-purple: #682470;
  --cide-header-lime: #c2e204;
  --cide-header-ink: #ffffff;
  --cide-header-muted: rgba(255, 255, 255, 0.78);
  --cide-header-line: rgba(255, 255, 255, 0.14);
  --cide-header-bg: rgba(104, 36, 112, 0.94);
  --cide-header-shadow: 0 16px 36px rgba(63, 22, 70, 0.24);
  --cide-header-active-bg: rgba(194, 226, 4, 0.22);
}

body #header-section {
  background: var(--cide-header-bg);
  border-bottom: 1px solid var(--cide-header-line);
  box-shadow: var(--cide-header-shadow);
  position: relative;
  z-index: 1000;
}

body #masthead.site-header {
  background: var(--cide-header-bg);
  backdrop-filter: blur(14px);
  min-height: 78px;
}

body #masthead .container {
  align-items: center;
  display: flex;
  height: 86px;
  min-height: 86px;
  width: min(1240px, calc(100% - 42px));
}

body .site-branding {
  align-items: center;
  display: flex;
  height: 86px;
  min-height: 86px;
}

body .site-brand-inner,
body .site-logo-div {
  align-items: center;
  display: flex;
  height: 86px;
}

body .site-logo-div .custom-logo-link {
  align-items: center;
  display: inline-flex;
  height: 86px;
  overflow: visible;
}

body .site-logo-div .custom-logo {
  display: block;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  width: auto;
}

body .header-right-wrapper {
  align-items: center;
  display: flex;
  margin-left: auto;
}

body .main-navigation .onepress-menu {
  align-items: center;
  display: flex;
  gap: 8px;
}

body .main-navigation .onepress-menu > li > a {
  align-items: center;
  border-radius: 999px;
  color: var(--cide-header-ink);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  min-height: 38px;
  padding: 12px 15px;
  position: relative;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body .main-navigation .onepress-menu > li > a:hover,
body .main-navigation .onepress-menu > li.current-menu-item > a,
body .main-navigation .onepress-menu > li.current_page_item > a {
  background: var(--cide-header-active-bg);
  color: var(--cide-header-lime);
  text-decoration: none;
}

body .main-navigation .onepress-menu > li > a:hover {
  transform: translateY(-1px);
}

body .main-navigation .onepress-menu > li.menu-item-type-custom > a {
  background: transparent;
  color: var(--cide-header-muted);
  font-size: 1rem;
  min-height: 38px;
  padding: 10px;
  width: 38px;
}

body .main-navigation .onepress-menu > li.menu-item-type-custom > a:hover {
  background: var(--cide-header-purple);
  color: #ffffff;
}

body.cide-coded-home .main-navigation .onepress-menu > li.menu-item-type-custom > a:hover,
body.cide-coded-about .main-navigation .onepress-menu > li.menu-item-type-custom > a:hover,
body.cide-coded-contact .main-navigation .onepress-menu > li.menu-item-type-custom > a:hover,
body.cide-coded-blog .main-navigation .onepress-menu > li.menu-item-type-custom > a:hover {
  background: var(--cide-header-lime);
  color: #202020;
}

body.cide-coded-tesis .main-navigation .onepress-menu > li.menu-item-type-custom > a:hover {
  background: var(--cide-header-lime);
  color: #ffffff;
}

body #nav-toggle {
  border: 1px solid var(--cide-header-line);
  border-radius: 999px;
  color: var(--cide-header-purple);
  font-weight: 800;
  padding: 9px 14px;
}

body #nav-toggle span,
body #nav-toggle span::before,
body #nav-toggle span::after {
  background: var(--cide-header-purple);
}

@media (max-width: 1140px) {
  body .main-navigation .onepress-menu {
    gap: 2px;
  }

  body .main-navigation .onepress-menu > li > a {
    font-size: 0.76rem;
    padding-left: 11px;
    padding-right: 11px;
  }
}

@media (max-width: 940px) {
  body #header-section {
    background: var(--cide-header-bg) !important;
    border-bottom-color: var(--cide-header-line) !important;
    position: relative;
    z-index: 9999;
  }

  body #masthead.site-header {
    background: var(--cide-header-bg) !important;
    min-height: 58px;
  }

  body #masthead .container {
    align-items: center;
    height: 58px;
    justify-content: space-between;
    min-height: 58px;
    width: min(100% - 24px, 1240px);
  }

  body #masthead .container::before {
    content: none;
    display: none;
  }

  body .site-branding {
    align-items: center;
    display: flex !important;
    flex: 0 1 auto;
    height: 58px;
    min-height: 58px;
    overflow: hidden;
    padding: 0;
    width: auto;
  }

  body .site-brand-inner,
  body .site-logo-div,
  body .site-logo-div .custom-logo-link {
    align-items: center;
    display: flex !important;
    height: 58px;
    min-height: 58px;
  }

  body .site-branding .site-title,
  body .site-branding .site-description {
    display: none !important;
  }

  body .site-logo-div .custom-logo,
  body .site-logo-div .custom-logo-transparent {
    height: auto !important;
    max-height: 46px !important;
    max-width: 132px !important;
    object-fit: contain;
    width: auto !important;
  }

  body .header-right-wrapper {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 58px;
    width: auto;
  }

  body #site-navigation.main-navigation {
    display: flex;
    justify-content: flex-end;
    position: static;
  }

  body #nav-toggle {
    align-items: center;
    background: var(--cide-header-active-bg);
    border: 1px solid var(--cide-header-line);
    display: inline-flex !important;
    font-size: 0;
    height: 44px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    position: relative;
    width: 44px;
    z-index: 10001;
  }

  body #nav-toggle span {
    display: block;
    height: 2px;
    left: 50%;
    margin: 0;
    position: absolute;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    width: 20px;
  }

  body #nav-toggle span,
  body #nav-toggle span::before,
  body #nav-toggle span::after {
    background: var(--cide-header-ink);
    height: 2px;
    width: 20px;
  }

  body #nav-toggle span::before,
  body #nav-toggle span::after {
    left: 0;
    right: auto;
    transform-origin: center;
  }

  body #nav-toggle span::before {
    top: -7px;
  }

  body #nav-toggle span::after {
    top: 7px;
  }

  body #nav-toggle.nav-is-visible span {
    background: transparent;
  }

  body #nav-toggle.nav-is-visible span::before,
  body #nav-toggle.nav-is-visible span::after {
    background: var(--cide-header-ink);
    left: 0;
    top: 0;
  }

  body #nav-toggle.nav-is-visible span::before {
    transform: rotate(45deg);
  }

  body #nav-toggle.nav-is-visible span::after {
    transform: rotate(-45deg);
  }

  body .main-navigation .onepress-menu {
    align-items: stretch;
    background: var(--cide-header-bg) !important;
    border: 1px solid var(--cide-header-line);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(28, 16, 32, 0.14);
    gap: 4px;
    left: 12px !important;
    margin: 0;
    max-height: min(520px, calc(100vh - 82px));
    overflow-y: auto;
    padding: 12px;
    position: fixed !important;
    right: 12px !important;
    top: 66px !important;
    width: auto !important;
    z-index: 10000;
  }

  body .main-navigation .onepress-menu > li {
    background: transparent !important;
    display: block !important;
    min-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body #site-navigation.main-navigation .onepress-menu:not(.onepress-menu-mobile) {
    display: none !important;
  }

  body #site-navigation.main-navigation .onepress-menu.onepress-menu-mobile {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
  }

  body .main-navigation .onepress-menu > li > a {
    background: rgba(255, 255, 255, 0.96) !important;
    border-radius: 14px;
    color: #241126 !important;
    display: flex !important;
    font-size: 0.9rem !important;
    font-weight: 900;
    justify-content: flex-start;
    min-height: 46px;
    opacity: 1 !important;
    padding: 0 18px !important;
    text-indent: 0 !important;
    text-transform: uppercase;
    visibility: visible !important;
    width: 100%;
  }

  body .main-navigation .onepress-menu > li.current-menu-item > a,
  body .main-navigation .onepress-menu > li.current_page_item > a,
  body .main-navigation .onepress-menu > li > a:hover {
    background: #eef9c8 !important;
    color: #682470 !important;
  }

  body .main-navigation .onepress-menu > li.menu-item-type-custom > a {
    align-items: center;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #682470 !important;
    justify-content: center;
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  body #masthead.site-header,
  body #masthead .container,
  body .site-branding,
  body .site-brand-inner,
  body .site-logo-div,
  body .site-logo-div .custom-logo-link,
  body .header-right-wrapper {
    height: 56px;
    min-height: 56px;
  }

  body .site-logo-div .custom-logo,
  body .site-logo-div .custom-logo-transparent {
    max-height: 44px !important;
    max-width: 124px !important;
  }
}

@media (max-width: 720px) {
  body .cide-whatsapp,
  body .tesis-whatsapp,
  body .about-whatsapp,
  body .contact-whatsapp,
  body .blog-whatsapp {
    align-items: center !important;
    border-radius: 999px !important;
    bottom: 16px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
    display: inline-flex !important;
    font-size: 0 !important;
    height: 58px !important;
    justify-content: center !important;
    left: auto !important;
    padding: 0 !important;
    right: 16px !important;
    width: 58px !important;
    z-index: 9000 !important;
  }

  body .cide-whatsapp__text {
    display: none !important;
  }

  body .cide-whatsapp__icon,
  body .tesis-whatsapp span,
  body .about-whatsapp span,
  body .blog-whatsapp span {
    font-size: 0.82rem !important;
    height: 42px !important;
    width: 42px !important;
  }
}
