/* cr-header.css — fresh header + nav, isolated under .cr-header namespace.
   No inheritance from any older selectors. Single source.
   ============================================================ */

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

.cr-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(10,10,16,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background .25s, border-color .25s, transform .35s cubic-bezier(.2,.6,.2,1);
}
.cr-header.is-scrolled { background: rgba(10,10,16,0.92); }

.cr-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.cr-header__logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.cr-header__logo img {
  height: 34px; width: auto; display: block;
  filter: brightness(0) invert(1);
  border: 0;
}

/* Nav */
.cr-header__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.cr-header__menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
}
.cr-header__menu > li { position: relative; }
.cr-header__link,
.cr-header__trigger {
  font: 600 13px/1 "Montserrat", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
  appearance: none; -webkit-appearance: none;
}
.cr-header__link:hover,
.cr-header__trigger:hover,
.cr-header__link.is-active { color: #fff; }
.cr-header__caret {
  width: 10px; height: 6px;
  transition: transform .25s;
}
.cr-header__menu > li.is-open .cr-header__caret { transform: rotate(180deg); }

/* Dropdown panel */
.cr-header__panel {
  list-style: none; margin: 0; padding: 8px;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: rgba(14,14,20,0.96);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s, transform .22s, visibility 0s .22s;
  display: flex; flex-direction: column; gap: 2px;
}
.cr-header__menu > li:hover > .cr-header__panel,
.cr-header__menu > li:focus-within > .cr-header__panel,
.cr-header__menu > li.is-open > .cr-header__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .22s, transform .22s, visibility 0s 0s;
}
/* Bridge between trigger and panel so hover is continuous */
.cr-header__menu > li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none;
}
.cr-header__menu > li:hover::after,
.cr-header__menu > li.is-open::after { pointer-events: auto; }
.cr-header__panel a {
  display: block;
  padding: 10px 14px;
  font: 500 13px/1.3 "Montserrat", sans-serif;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cr-header__panel a:hover { background: rgba(233,30,99,0.12); color: #fff; }
.cr-header__panel a.is-active { color: #ff7c8f; }
.cr-header__panel a.cr-header__panel-all {
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  color: #ff7c8f;
  font-weight: 700;
}

/* CTA + Lang chip */
.cr-header__cta {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: linear-gradient(90deg, #e91e63, #ff7c8f);
  color: #0a0a10 !important;
  font: 700 12.5px/1 "Montserrat", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(233,30,99,0.55);
  transition: transform .2s, box-shadow .2s;
  flex: 0 0 auto;
}
.cr-header__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px rgba(233,30,99,0.7); }

.cr-header__lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font: 600 12px/1 "Montserrat", sans-serif;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.75);
  flex: 0 0 auto;
}
.cr-header__lang strong { color: #fff; font-weight: 700; }
.cr-header__lang a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.cr-header__lang a:hover { color: #ff7c8f; }

/* Hamburger */
.cr-header__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  appearance: none; -webkit-appearance: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  user-select: none; -webkit-user-select: none;
  transition: background .2s, border-color .2s;
}
.cr-header__toggle:focus,
.cr-header__toggle:focus-visible,
.cr-header__toggle:active,
.cr-header__toggle:hover {
  outline: none; box-shadow: none;
  background: rgba(255,124,140,0.12);
  border-color: rgba(255,124,140,0.45);
}
.cr-header__toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.6,.2,1), opacity .2s;
  transform-origin: center;
}
.cr-header.is-mobile-open .cr-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cr-header.is-mobile-open .cr-header__toggle span:nth-child(2) { opacity: 0; }
.cr-header.is-mobile-open .cr-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Reveal mode (hide on hero, appear on scroll) */
body.cr-header-reveal .cr-header { transform: translateY(-110%); pointer-events: none; }
body.cr-header-reveal .cr-header.is-revealed { transform: translateY(0); pointer-events: auto; }

/* ========================================================================
   Mobile (≤ 900px)
   ======================================================================== */
@media (max-width: 900px) {
  body.cr-header-reveal .cr-header { transform: translateY(0) !important; pointer-events: auto !important; }
  .cr-header__inner { padding: 10px 16px; gap: 10px; justify-content: space-between; }
  .cr-header__nav { display: none; }
  .cr-header__cta { display: none; }
  .cr-header__lang {
    padding: 7px 12px;
    font-size: 11.5px;
    margin-left: auto;
  }
  .cr-header__toggle { display: inline-flex; }

  /* Drawer */
  .cr-header.is-mobile-open .cr-header__nav {
    display: block;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: #0a0a10;
    overflow-y: auto;
    padding: 12px 24px 40px;
    z-index: 99;
  }
  .cr-header.is-mobile-open .cr-header__menu {
    flex-direction: column; align-items: stretch; gap: 0; width: 100%;
  }
  .cr-header.is-mobile-open .cr-header__menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .cr-header.is-mobile-open .cr-header__link,
  .cr-header.is-mobile-open .cr-header__trigger {
    display: flex; width: 100%;
    padding: 18px 0;
    font-size: 16px;
    color: #fff;
    justify-content: space-between;
  }
  .cr-header.is-mobile-open .cr-header__panel {
    position: static;
    transform: none !important;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin: 0;
    min-width: 0;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    display: flex !important; flex-direction: column;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
    width: auto; left: auto; top: auto;
  }
  .cr-header.is-mobile-open .cr-header__menu > li::after { display: none; }
  .cr-header.is-mobile-open .cr-header__menu > li.is-open .cr-header__panel {
    opacity: 1;
    pointer-events: auto;
    padding: 4px 0 12px 16px;
  }
  .cr-header.is-mobile-open .cr-header__panel a {
    padding: 12px 0; font-size: 14px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-radius: 0;
    white-space: normal;
  }
  .cr-header.is-mobile-open .cr-header__panel a.cr-header__panel-all { border-top: 0; }

  /* CTA inside drawer */
  .cr-header.is-mobile-open .cr-header__cta {
    display: inline-flex;
    width: 100%; box-sizing: border-box;
    margin: 24px 0 8px;
    padding: 16px 24px;
    justify-content: center;
    font-size: 13px;
  }

  body.cr-header-mobile-open { overflow: hidden; }
}

/* Hotfix: max-height en is-open mobile (faltaba) + blue completamente eliminado */
@media (max-width: 900px) {
  .cr-header.is-mobile-open .cr-header__menu > li.is-open .cr-header__panel{
    max-height: 600px !important;
  }
}
.cr-header *{-webkit-tap-highlight-color: transparent !important}
.cr-header__toggle,
.cr-header__trigger,
.cr-header__link,
.cr-header__cta,
.cr-header__lang a,
.cr-header__panel a{
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none;
  outline: none !important;
}
.cr-header__toggle:focus,.cr-header__toggle:focus-visible,.cr-header__toggle:hover,.cr-header__toggle:active,
.cr-header__trigger:focus,.cr-header__trigger:focus-visible,.cr-header__trigger:active{
  outline: none !important; box-shadow: none !important;
}
.cr-header__trigger:active,.cr-header__trigger:focus{background: transparent !important}

/* NUCLEAR: matar TODA fuente posible de azul */
.cr-header,.cr-header *,.cr-header *::before,.cr-header *::after{
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  accent-color: transparent !important;
}
.cr-header button,.cr-header input,.cr-header a{
  -webkit-appearance: none !important;
  appearance: none !important;
}
.cr-header a:link,.cr-header a:visited,.cr-header a:hover,.cr-header a:active,.cr-header a:focus{
  color: inherit !important;
  text-decoration: none !important;
}
.cr-header__lang a:link,.cr-header__lang a:visited{color: rgba(255,255,255,0.5) !important}
.cr-header__lang a:hover,.cr-header__lang a:active{color: #ff7c8f !important}
.cr-header__panel a:link,.cr-header__panel a:visited{color: rgba(255,255,255,0.82) !important}
.cr-header__panel a:hover{color: #fff !important}
.cr-header__cta:link,.cr-header__cta:visited{color: #0a0a10 !important}
.cr-header__link:link,.cr-header__link:visited,.cr-header__trigger{color: rgba(255,255,255,0.78) !important}
.cr-header__link:hover,.cr-header__link.is-active,.cr-header__trigger:hover{color: #fff !important}

.cr-header *:focus,.cr-header *:focus-visible,.cr-header *:focus-within{
  outline: 0 !important;outline-color: transparent !important;outline-width: 0 !important;
  box-shadow: none !important;
}
.cr-header__toggle,.cr-header__trigger,.cr-header__link,.cr-header__cta,.cr-header__lang a,.cr-header__panel a,.cr-header__logo{
  -webkit-tap-highlight-color: transparent !important;
}
.cr-header__toggle:active,.cr-header__toggle:focus{background: rgba(255,255,255,0.05) !important}

/* ========================================================================
   KILL BeTheme blue (#0089F7 #0089f7 #0095eb #007cc3 #0693e3 #007cba)
   Replace globally with brand pink/peach.
   ======================================================================== */
:root,body{
  --mfn-clients-tiles-hover:#e91e63 !important;
  --mfn-icon-box-icon:#e91e63 !important;
  --mfn-sliding-box-bg:#e91e63 !important;
  --mfn-woo-themecolor:#e91e63 !important;
  --mfn-woo-bg-themecolor:#e91e63 !important;
  --mfn-woo-border-themecolor:#e91e63 !important;
  --wp-admin-theme-color:#e91e63 !important;
  --wp-admin-theme-color-darker-10:#c2185b !important;
  --wp-admin-theme-color-darker-20:#a01649 !important;
}
/* Action button + variants */
.action_button,.action_button:hover,
body .action_button,body .action_button:hover{
  background-color:#e91e63 !important;color:#fff !important;border-color:#e91e63 !important
}
.button-stroke a.action_button{border-color:#e91e63 !important;color:#e91e63 !important;background:transparent !important}
.button-stroke a.action_button:hover{background-color:#e91e63 !important;color:#fff !important}
/* All BeTheme button variants */
.button-default a.button.alt,.button-default button.button.alt,.button-default input.button.alt,
.button-flat a.button.alt,.button-flat button.button.alt,.button-flat input.button.alt,
.button-round a.button.alt,.button-round button.button.alt,.button-round input.button.alt,
.button-default #respond input#submit.alt,
.button-flat #respond input#submit.alt,
.button-round #respond input#submit.alt{
  background-color:#e91e63 !important;color:#fff !important;border-color:#e91e63 !important
}
.button-stroke a.button.alt,.button-stroke button.button.alt,.button-stroke input.button.alt,
.button-stroke #respond input#submit.alt{
  border-color:#e91e63 !important;color:#e91e63 !important
}
.button-stroke a.button.alt:hover,.button-stroke button.button.alt:hover,.button-stroke input.button.alt:hover{
  background-color:#e91e63 !important;color:#fff !important
}
.button-custom .button_theme,.button-custom button,.button-custom input[type=button],.button-custom input[type=reset],.button-custom input[type=submit]{
  background-color:#e91e63 !important;color:#fff !important
}
.button-custom .button_theme:hover,.button-custom button:hover,.button-custom input[type=button]:hover{
  background-color:#c2185b !important
}
/* Theme color text + bg utility classes from BeTheme */
.themecolor,.themecolor *{color:#e91e63 !important}
.themebg{background-color:#e91e63 !important}
/* Generic anchor hover (BeTheme set a:hover{color:#0089f7}) */
html body a:hover{color:#ff7c8f !important}
/* Inside .cr-header keep its own colors */
.cr-header a:hover,.cr-header .cr-header__cta:hover{color:inherit !important}
.cr-header__cta:hover{color:#0a0a10 !important}
.cr-header__lang a:hover{color:#ff7c8f !important}
.cr-header__panel a:hover{color:#fff !important}
/* Selection highlight */
*::selection{background-color:#e91e63 !important;color:#fff !important}
*::-moz-selection{background-color:#e91e63 !important;color:#fff !important}
/* Any inline style or class using exact BeTheme blue tokens */
[style*=#0089F7],[style*=#0089f7]{color:inherit}
[style*=background:#0089F7],[style*=background-color:#0089F7],[style*=background:#0089f7],[style*=background-color:#0089f7]{
  background-color:#e91e63 !important;background:#e91e63 !important
}

/* Force same WHITE color for all top-level menu items (links + triggers) */
html body .cr-header .cr-header__menu > li > .cr-header__link,
html body .cr-header .cr-header__menu > li > .cr-header__link:link,
html body .cr-header .cr-header__menu > li > .cr-header__link:visited,
html body .cr-header .cr-header__menu > li > .cr-header__trigger{
  color: #fff !important;opacity: 0.92
}
html body .cr-header .cr-header__menu > li > .cr-header__link:hover,
html body .cr-header .cr-header__menu > li > .cr-header__trigger:hover,
html body .cr-header .cr-header__menu > li.is-open > .cr-header__trigger,
html body .cr-header .cr-header__menu > li > .cr-header__link.is-active{
  color: #fff !important;opacity: 1
}
/* CTA Diagnóstico gratis: white text */
html body .cr-header__cta,
html body .cr-header__cta:link,
html body .cr-header__cta:visited,
html body .cr-header__cta:hover,
html body .cr-header__cta:active{
  color: #fff !important
}

/* DEFINITIVE button reset for cr-header (kills any browser/BeTheme default) */
html body header.cr-header button,
html body header.cr-header .cr-header__trigger,
html body header.cr-header .cr-header__toggle{
  all: unset !important;
  display: inline-flex !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
/* Re-apply specific styles ON TOP of the reset */
html body header.cr-header .cr-header__trigger{
  font: 600 13px/1 "Montserrat", sans-serif !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  padding: 8px 0 !important;
  align-items: center !important;
  gap: 6px !important;
}
html body header.cr-header .cr-header__toggle{
  width: 44px !important;
  height: 44px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 10px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
html body header.cr-header .cr-header__toggle:hover,
html body header.cr-header .cr-header__toggle:active,
html body header.cr-header .cr-header__toggle:focus{
  background: rgba(255,124,140,0.12) !important;
  border-color: rgba(255,124,140,0.45) !important;
}
@media (max-width:900px){
  html body .cr-header.is-mobile-open .cr-header__trigger{
    padding: 18px 0 !important;
    font-size: 16px !important;
    color: #fff !important;
    width: 100% !important;
    justify-content: space-between !important;
    background: transparent !important;
    background-color: transparent !important;
  }
  html body .cr-header.is-mobile-open .cr-header__trigger:active,
  html body .cr-header.is-mobile-open .cr-header__trigger:focus,
  html body .cr-header.is-mobile-open .cr-header__trigger:hover{
    background: transparent !important;
    background-color: transparent !important;
  }
}
