/* Tikray header: matching the fixed glass navigation in the Home reference. */
.tikray-header {
  --tikray-ink: #04123c;
  --tikray-blue: #4290ee;
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 1200px;
  transform: translateX(-50%);
  color: var(--tikray-ink);
  font-family: Poppins, Arial, sans-serif;
}
.tikray-header,
.tikray-header * { box-sizing: border-box; }
.tikray-header a { color: inherit; text-decoration: none; }
.tikray-header__bar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 10px 0 26px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 32px -18px rgba(4,18,60,.3), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
.tikray-header__brand { display: flex; flex: none; align-items: center; }
.tikray-header__brand img { display: block; width: auto; height: 30px; max-width: 180px; object-fit: contain; }
.tikray-header__wordmark { color: #04123c; font-size: 24px; font-weight: 700; letter-spacing: -1.2px; }
.tikray-header__nav { display: flex; min-width: 0; align-items: center; }
.tikray-header__menu,
.tikray-header__menu ul {
  display: flex;
  align-items: center;
  gap: clamp(16px,2.2vw,32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tikray-header__menu > li { position: relative; white-space: nowrap; }
.tikray-header__menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #04123c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: color .18s;
}
.tikray-header__menu a:hover,
.tikray-header__menu a:focus-visible { color: #4290ee; }
.tikray-header__menu .menu-item-has-children > a:after {
  width: 7px;
  height: 7px;
  margin: 0 0 4px 2px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .2s;
}
.tikray-header__menu .menu-item-has-children:hover > a:after,
.tikray-header__menu .menu-item-has-children:focus-within > a:after { margin-bottom: -3px; transform: rotate(225deg); }
.tikray-header__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: none;
  min-width: 220px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e3e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(4,18,60,.28);
  transform: translateX(-50%);
}
.tikray-header__menu li:hover > .sub-menu,
.tikray-header__menu li:focus-within > .sub-menu { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
.tikray-header__menu .sub-menu:before { position: absolute; right: 0; bottom: 100%; left: 0; height: 18px; content: ""; }
.tikray-header__menu .sub-menu li { width: 100%; }
.tikray-header__menu .sub-menu a { display: flex; padding: 10px 12px; border-radius: 9px; font-size: 15px; line-height: 1.3; }
.tikray-header__menu .sub-menu a:hover,
.tikray-header__menu .sub-menu a:focus-visible { background: #f3f7ff; color: #3244fb; }
.tikray-header__cta,
.tikray-header__mobile-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg,#6363f4,#4290ee);
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: filter .18s;
}
.tikray-header__cta:hover,
.tikray-header__mobile-cta:hover { color: #fff !important; filter: brightness(1.06); }
/* Keep the mobile control hidden even when the active theme styles all buttons globally. */
.tikray-header .tikray-header__toggle {
  display: none !important;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid #e3e8f2;
  border-radius: 50%;
  appearance: none;
  background: #fff;
  box-shadow: none;
  color: #04123c;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.tikray-header .tikray-header__toggle:hover,
.tikray-header .tikray-header__toggle:focus { border-color: #e3e8f2; background: #fff; color: #04123c; }
.tikray-header__toggle svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tikray-header__icon-close { display: none; }
.tikray-header__mobile[hidden] { display: none !important; }
.tikray-header__mobile {
  max-height: calc(100vh - 110px);
  margin-top: 8px;
  padding: 10px 24px 22px;
  overflow: auto;
  border: 1px solid #e3e8f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(4,18,60,.3);
}
.tikray-header__mobile-menu,
.tikray-header__mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.tikray-header__mobile-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e3e8f2;
  color: #04123c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.tikray-header__mobile-menu .menu-item-has-children > a:after {
  width: 7px;
  height: 7px;
  margin: 0 5px 4px 12px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.tikray-header__mobile-menu .sub-menu { padding: 2px 0 8px 12px; border-bottom: 1px solid #e3e8f2; }
.tikray-header__mobile-menu .sub-menu a { display: block; padding: 9px 0; color: #04123c; font-size: 15px; line-height: 1.3; }
.tikray-header__mobile-cta { display: flex; min-height: 50px; margin-top: 10px; font-size: 15px; }
.tikray-header.is-open .tikray-header__icon-menu { display: none; }
.tikray-header.is-open .tikray-header__icon-close { display: block; }

/* The source switches from full navigation to its narrow menu at 1000px. */
@media (max-width: 1000px) {
  .tikray-header__bar { padding-left: 20px; }
  .tikray-header__nav,
  .tikray-header__cta { display: none !important; }
  .tikray-header .tikray-header__toggle { display: inline-flex !important; }
}

/* Four-column Soluciones dropdown from the source navigation. */
.tikray-header__menu > .tikray-mega-menu > .sub-menu {
  display: none;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
  gap: 16px;
  width: min(1060px,calc(100vw - 64px));
  padding: 28px 26px 24px;
  border-radius: 24px;
}
.tikray-header__menu > .tikray-mega-menu:hover > .sub-menu,
.tikray-header__menu > .tikray-mega-menu:focus-within > .sub-menu { display: grid; }
.tikray-header__menu > .tikray-mega-menu > .sub-menu > li { min-width: 0; }
.tikray-header__menu > .tikray-mega-menu > .sub-menu > li > a {
  display: block;
  padding: 0 12px 10px;
  color: #8c98b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}
.tikray-header__menu > .tikray-mega-menu > .sub-menu > li > .sub-menu {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.tikray-header__menu > .tikray-mega-menu > .sub-menu > li > .sub-menu:before { display: none; }
.tikray-header__menu > .tikray-mega-menu > .sub-menu > li > .sub-menu a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.3; }
.tikray-header__menu > .tikray-mega-menu > .sub-menu > .menu-item-has-children > a { color: #8c98b8 !important; pointer-events: none; }
.tikray-header__menu > .tikray-mega-menu > .sub-menu > .menu-item-has-children > a:after { display: none !important; }
