
:root {
  --bi-navy: #09263A;
  --bi-teal: #008993;
  --bi-accent: #00A895;
  --bi-text: #29485D;
  --bi-light: #F5FBFA;
  --bi-white: #FFFFFF;
  --bi-line: #E8EEF1;
  --bi-muted: #667A88;
  --bi-header-max: 1240px;
}

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

.bi-site-header {
  position: relative;
  z-index: 10000;
  width: 100%;
  margin: 0;
  background: var(--bi-white);
  color: var(--bi-navy);
  font-family: Poppins, Arial, sans-serif;
  border-bottom: 1px solid rgba(9,38,58,.05);
}

.bi-site-header .bi-header-inner {
  width: calc(100% - 48px) !important;
  max-width: var(--bi-header-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================
   FILA SUPERIOR
   ========================= */

.bi-header-top {
  background: var(--bi-white);
}

.bi-header-top-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.bi-header-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bi-header-left { justify-content: flex-start; }
.bi-header-right { justify-content: flex-end; gap: 4px; }

.bi-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bi-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bi-brand-logo {
  display: block;
  width: 150px;
  max-width: 150px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  transform: scale(1.45);
  transform-origin: center center;
}

.bi-brand-text {
  display: inline-block;
  color: #000;
  font-size: 29px;
  line-height: .82;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: left;
}
.bi-brand-text span { font-size: .58em; }

/* Reset para que los botones globales de Elementor no afecten iconos del header */
.bi-site-header .bi-icon-button,
.bi-site-header button.bi-icon-button,
.bi-site-header a.bi-icon-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--bi-teal) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: color .2s ease, opacity .2s ease;
}

.bi-site-header .bi-icon-button:hover,
.bi-site-header .bi-icon-button:focus-visible {
  background: transparent !important;
  color: var(--bi-navy) !important;
  opacity: .88;
  outline: none;
}

.bi-site-header .bi-icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.bi-site-header button.bi-menu-toggle {
  display: none !important;
  flex-direction: column;
  gap: 4px;
}

.bi-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 20px;
  transition: transform .2s ease, opacity .2s ease;
}

.bi-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.bi-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bi-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================
   BUSCADOR DESPLEGABLE
   ========================= */

.bi-site-search {
  border-top: 1px solid var(--bi-line);
  border-bottom: 1px solid var(--bi-line);
  padding: 14px 0;
}

.bi-site-search form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}

.bi-site-search label { flex: 1; margin: 0; }

.bi-site-search input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--bi-line);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--bi-white);
  color: var(--bi-text);
  font: 400 15px/1.4 Poppins, Arial, sans-serif;
}

.bi-site-search input[type="submit"],
.bi-site-search button[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  background: var(--bi-teal);
  color: var(--bi-white);
  font: 600 15px/1 Poppins, Arial, sans-serif;
  cursor: pointer;
}

/* =========================
   MENÚ PRINCIPAL
   ========================= */

.bi-header-nav-row {
  background: var(--bi-white);
}

.bi-primary-nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bi-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.bi-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.bi-site-header .bi-menu a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  color: var(--bi-teal);
  text-decoration: none;
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  transition: color .2s ease;
}

.bi-site-header .bi-menu a:hover,
.bi-site-header .bi-menu a:focus-visible {
  color: var(--bi-navy);
  outline: none;
}

.bi-site-header .bi-menu .current-menu-item > a,
.bi-site-header .bi-menu .current-menu-ancestor > a {
  color: var(--bi-teal);
}

.bi-menu .menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  margin-left: 1px;
}

.bi-menu .sub-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  min-width: 220px;
  margin: 0;
  padding: 9px;
  list-style: none;
  background: var(--bi-white);
  border: 1px solid var(--bi-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(9,38,58,.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 7px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10020;
}

.bi-site-header .bi-menu .sub-menu a {
  min-height: auto;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--bi-text);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
}

.bi-site-header .bi-menu .sub-menu a:hover,
.bi-site-header .bi-menu .sub-menu a:focus-visible {
  color: var(--bi-navy);
  background: var(--bi-light);
}

.bi-menu > li:hover > .sub-menu,
.bi-menu > li:focus-within > .sub-menu,
.bi-menu > li.bi-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}

/* =========================
   ACCESOS PRIVADOS
   ========================= */

.bi-access-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bi-access-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  padding: 10px;
  background: var(--bi-white);
  border: 1px solid var(--bi-line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(9,38,58,.12);
  z-index: 10030;
}

.bi-access-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bi-site-header .bi-access-list a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--bi-text);
  text-decoration: none;
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.bi-site-header .bi-access-list a:hover,
.bi-site-header .bi-access-list a:focus-visible {
  background: var(--bi-light);
  color: var(--bi-navy);
  outline: none;
}

.bi-access-empty {
  padding: 11px 12px;
  color: var(--bi-muted);
  font-size: 13px;
  line-height: 1.4;
}

.bi-menu-missing {
  margin: 0;
  padding: 14px 0;
  color: var(--bi-muted);
  font-size: 14px;
}

/* =========================
   TABLET / MÓVIL
   ========================= */


@media (min-width: 761px) {
  .bi-site-header button.bi-menu-toggle,
  .bi-site-header .bi-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .bi-site-header .bi-header-inner {
    width: calc(100% - 36px) !important;
    max-width: var(--bi-header-max) !important;
  }

  .bi-header-top-inner {
    min-height: 76px;
    gap: 10px;
  }

  .bi-brand-logo {
    width: 112px;
    max-width: 112px;
    max-height: 50px;
    transform: none;
  }

  .bi-site-header button.bi-menu-toggle {
    display: inline-flex !important;
  }

  .bi-site-header .bi-icon-button,
  .bi-site-header button.bi-icon-button,
  .bi-site-header a.bi-icon-button {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  .bi-site-header .bi-icon-button svg {
    width: 20px;
    height: 20px;
  }

  .bi-header-nav-row {
    border-top: 1px solid var(--bi-line);
  }

  .bi-primary-nav {
    min-height: 0;
    display: none;
    padding: 10px 0 16px;
  }

  .bi-primary-nav.bi-nav-open { display: block; }

  .bi-menu { display: block; }

  .bi-menu > li {
    border-bottom: 1px solid var(--bi-line);
  }
  .bi-menu > li:last-child { border-bottom: 0; }

  .bi-site-header .bi-menu a {
    min-height: 46px;
    justify-content: space-between;
    padding: 2px 4px;
    color: var(--bi-navy);
    font-size: 15px;
  }

  .bi-menu .menu-item-has-children > a::after {
    margin-right: 7px;
  }

  .bi-menu .sub-menu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .bi-menu > li.bi-submenu-open > .sub-menu { display: block; }

  .bi-site-header .bi-menu .sub-menu a {
    white-space: normal;
    color: var(--bi-text);
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .bi-site-header .bi-header-inner {
    width: calc(100% - 28px) !important;
    max-width: var(--bi-header-max) !important;
  }

  .bi-header-top-inner {
    min-height: 70px;
    gap: 5px;
  }

  .bi-brand-logo {
    width: 102px;
    max-width: 102px;
    max-height: 46px;
  }

  .bi-header-right { gap: 2px; }
}


/* =========================================================
   FOOTER GLOBAL BOLD INVESTOR
   Basado en el footer actual compartido por Bold Investor.
   ========================================================= */

#bold-footer-final,
#bold-footer-final * {
  box-sizing: border-box;
}

#bold-footer-final {
  --bff-main: #088993;
  --bff-white: #ffffff;
  --bff-soft: rgba(255,255,255,.84);
  --bff-muted: rgba(255,255,255,.67);
  --bff-line: rgba(255,255,255,.20);
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,255,255,.09), transparent 27%),
    radial-gradient(circle at 7% 88%, rgba(255,255,255,.06), transparent 24%),
    var(--bff-main);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.5 !important;
}

#bold-footer-final::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .055;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

#bold-footer-final a {
  position: relative;
  z-index: 3;
  pointer-events: auto !important;
  text-decoration: none !important;
}

#bold-footer-final .bff-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

#bold-footer-final .bff-grid {
  display: grid;
  grid-template-columns: 1.22fr .8fr 1fr 1.08fr;
  gap: 38px;
  padding: 48px 0 39px;
}

/* Marca */

#bold-footer-final .bff-logo {
  display: inline-flex;
}

#bold-footer-final .bff-logo img {
  display: block;
  width: 168px;
  height: auto;
}

#bold-footer-final .bff-purpose {
  max-width: 315px;
  margin: 17px 0 0;
  color: var(--bff-soft);
  font-size: 14px;
  line-height: 1.72;
}

#bold-footer-final .bff-contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

#bold-footer-final .bff-contact > a {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.35 !important;
}

#bold-footer-final .bff-contact__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

#bold-footer-final .bff-contact__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#bold-footer-final .bff-contact a > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.35 !important;
}

#bold-footer-final .bff-contact small {
  display: block;
  margin: 0;
  color: rgba(255,255,255,.56);
  font-size: 10px;
  line-height: 1.2 !important;
}

#bold-footer-final .bff-socials {
  display: flex;
  gap: 9px;
  margin-top: 19px;
}

#bold-footer-final .bff-socials a {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #ffffff !important;
  background: rgba(255,255,255,.06);
  transition: transform 180ms ease, background-color 180ms ease;
}

#bold-footer-final .bff-socials a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.16);
}

#bold-footer-final .bff-socials svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Columnas */

#bold-footer-final .bff-column,
#bold-footer-final .bff-security {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#bold-footer-final .bff-column h3,
#bold-footer-final .bff-security > h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

#bold-footer-final .bff-column > a {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85) !important;
  font-size: 13px;
  line-height: 1.45;
  transition: color 180ms ease, padding-left 180ms ease;
}

#bold-footer-final .bff-column > a:hover {
  padding-left: 4px;
  color: #ffffff !important;
}

#bold-footer-final .bff-column > a i {
  color: #ffffff;
  font-style: normal;
  font-size: 16px;
}

/* Seguridad */

#bold-footer-final .bff-security {
  gap: 10px;
}

#bold-footer-final .bff-security__item {
  width: 100%;
  display: grid;
  grid-template-columns: 43px minmax(0,1fr);
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

#bold-footer-final .bff-security__icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.11);
}

#bold-footer-final .bff-security__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#bold-footer-final .bff-security__item strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

#bold-footer-final .bff-security__item p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  line-height: 1.58;
}

#bold-footer-final .bff-contact-button {
  width: 100%;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
  padding: 11px 18px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: var(--bff-main) !important;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#bold-footer-final .bff-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

#bold-footer-final .bff-contact-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cierre */

#bold-footer-final .bff-divider {
  height: 1px;
  background: var(--bff-line);
}

#bold-footer-final .bff-bottom {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#bold-footer-final .bff-bottom p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  line-height: 1.58;
}

#bold-footer-final .bff-disclaimer {
  max-width: 700px;
  text-align: right;
}

@media (max-width: 1050px) {
  #bold-footer-final .bff-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 39px;
  }
}

@media (max-width: 680px) {
  #bold-footer-final .bff-wrap {
    width: calc(100% - 34px);
  }

  #bold-footer-final .bff-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 0 35px;
  }

  #bold-footer-final .bff-purpose {
    max-width: none;
  }

  #bold-footer-final .bff-bottom {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 17px 0;
  }

  #bold-footer-final .bff-disclaimer {
    text-align: left;
  }
}

