/* Cabecera compartida: marca, navegación y Facebook. */
.topbar.mdMainHeader {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  border-top: 3px solid #f58220;
  border-bottom: 1px solid #dce5ed;
  box-shadow: 0 6px 28px rgba(8, 27, 48, .07);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease;
}
.mdMainHeader.mdHeaderScrolled { box-shadow: 0 8px 30px rgba(8, 27, 48, .16); }
.mdMainHeader .brandLogo { margin-right: auto; max-width: 235px; flex: 0 0 auto; }
.mdMainHeader .brandLogo img { width: 235px; max-width: 100%; }
.mdMainHeader #mainNav {
  position: static;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid #294662;
  border-radius: 14px;
  background: linear-gradient(120deg, #081b30, #153852) !important;
  box-shadow: 0 7px 20px rgba(8, 27, 48, .12);
  white-space: nowrap;
}
.mdMainHeader #mainNav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 11px 13px;
  border: 0;
  border-radius: 8px;
  color: #edf4fb !important;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: none;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.mdMainHeader #mainNav a::after { content: none; }
.mdMainHeader #mainNav a:hover { background: #ffffff14; color: #ffb76e !important; }
.mdMainHeader #mainNav a.navCta {
  margin-left: 5px;
  padding-left: 20px;
  padding-right: 20px;
  background: var(--button-color, #f58220);
  color: #081b30 !important;
  box-shadow: 0 4px 14px #0002;
}
.mdMainHeader #mainNav a.navCta:hover { filter: brightness(1.08); }
.mdMainHeader #mainNav a[aria-current],
.mdMainHeader #mainNav a.navCta[aria-current] {
  background: #f58220;
  color: #fff !important;
  box-shadow: none;
}
.mdMainHeader #mainNav a:focus-visible { outline: 3px solid #9acbff; outline-offset: 2px; }
.mdMainHeader .mdNavFacebook {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #0866d4;
  border-radius: 50%;
  background: #0866d4;
  color: #fff;
  box-shadow: 0 5px 15px rgba(8, 102, 212, .2);
  transition: background-color .18s ease, transform .18s ease;
}
.mdMainHeader .mdNavFacebook svg { width: 24px; height: 24px; }
.mdMainHeader .mdNavFacebook:hover { background: #0755b1; transform: translateY(-2px); }
.mdMainHeader .mdNavFacebook:focus-visible { outline: 3px solid #0866d4; outline-offset: 4px; }
.mdMainHeader .mdMenuToggle { display: none; }
.mdMainHeader.supportTop + .supportMain { padding-top: 0; }
html { scroll-padding-top: 116px; }
@media (min-width: 1201px) and (max-width: 1350px) {
  .topbar.mdMainHeader { gap: 14px; padding-left: 24px; padding-right: 24px; }
  .mdMainHeader .brandLogo { max-width: 210px; }
  .mdMainHeader #mainNav a { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 1200px) {
  .topbar.mdMainHeader { height: 86px; gap: 14px; padding-left: 24px; padding-right: 24px; }
  .mdMainHeader .brandLogo { max-width: 215px; }
  .mdMainHeader .mdMenuToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 94px;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #cedbe6;
    border-radius: 9px;
    background: #f2f6fa;
    color: #102c49 !important;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.4;
  }
  .mdMainHeader .mdMenuToggle[aria-expanded="true"] { background: #102c49; color: #fff !important; border-color: #102c49 !important; }
  .mdMenuBars { position: relative; display: block; width: 18px; height: 16px; }
  .mdMenuBars i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .mdMenuBars i:nth-child(1) { top: 0; }
  .mdMenuBars i:nth-child(2) { top: 7px; }
  .mdMenuBars i:nth-child(3) { top: 14px; }
  [aria-expanded="true"] .mdMenuBars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  [aria-expanded="true"] .mdMenuBars i:nth-child(2) { opacity: 0; }
  [aria-expanded="true"] .mdMenuBars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mdMainHeader #mainNav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 18px 45px #081b3038;
    white-space: normal;
  }
  .mdMainHeader #mainNav.open { display: grid; gap: 4px; }
  .mdMainHeader #mainNav a { justify-content: flex-start; padding: 13px 16px; }
  .mdMainHeader #mainNav a.navCta { justify-content: center; margin: 6px 0 0; }
  .mdMainHeader #mainNav a[aria-current] { box-shadow: none; }
  .mdMainHeader.supportTop #mainNav a:first-child { display: flex; }
  html { scroll-padding-top: 102px; }
}
@media (max-width: 480px) {
  .topbar.mdMainHeader { height: 78px; padding-left: 16px; padding-right: 16px; gap: 10px; }
  .mdMainHeader .brandLogo { flex: 0 1 auto; min-width: 0; max-width: 180px; }
  .mdMainHeader .brandLogo img { width: 100%; height: auto !important; max-height: 50px; object-fit: contain; }
  .mdMainHeader .mdMenuToggle { min-width: 44px; width: 44px; padding: 10px; }
  .mdMainHeader .mdMenuLabel { display: none; }
  .mdMainHeader #mainNav { left: 12px; right: 12px; max-height: calc(100dvh - 102px); }
  html { scroll-padding-top: 94px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar.mdMainHeader, .mdMainHeader #mainNav a, .mdMainHeader .mdNavFacebook, .mdMenuBars i { transition: none; }
  .mdMainHeader .mdNavFacebook:hover { transform: none; }
}
