/* PMB: marca, funciones y contacto. El diseño base de la referencia se conserva. */
.brand { background: transparent; }
.brand .pmb-brand-image {
  display: block;
  width: 63px;
  height: 63px;
  object-fit: contain;
  flex: 0 0 63px;
  background: transparent;
}
/* PNG con alfa real, recortado al lettering: no requiere mezcla ni máscaras. */
.brand .pmb-brand-wordmark {
  display: block;
  flex: 0 0 auto;
  width: 205px;
  line-height: 0;
  background: transparent;
}
.pmb-brand-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 185;
  object-fit: contain;
  background: transparent;
}
/* Medidas enteras y tipografía nítida, sin desplazar el texto al interactuar. */
.header-layout { min-height: 64px; }
.header-layout .topbar {
  min-height: 52px;
  padding: 6px 7px 6px 12px;
}
.header-layout .nav-links a {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0;
  color: #484848;
  text-shadow: none;
  filter: none;
  transform: none;
  -webkit-font-smoothing: auto;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.header-layout .nav-links a:hover,
.header-layout .nav-links a:focus-visible {
  color: #181818;
  background: #fff;
  box-shadow: 0 4px 12px #25252512, inset 0 1px 0 #fff;
  transform: none;
}
.pmb-account-menu { position: relative; flex: 0 0 auto; }
.pmb-account-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  list-style: none;
  border: 1px solid #ffffff54;
  border-radius: 50%;
  color: #fff;
  background: #151515;
  box-shadow: inset 0 1px 1px #ffffff26, 0 3px 8px #26262620;
  cursor: pointer;
  transition: box-shadow .2s ease;
}
.pmb-account-toggle::-webkit-details-marker { display: none; }
.pmb-account-toggle::marker { content: ""; }
.pmb-account-toggle svg { display: block; width: 20px; height: 20px; }
.pmb-account-toggle:hover,
.pmb-account-menu[open] .pmb-account-toggle {
  box-shadow: inset 0 1px 1px #ffffff42, 0 5px 12px #2626262a;
}
.pmb-account-options {
  position: absolute;
  z-index: 35;
  top: calc(100% + 14px);
  right: 0;
  width: min(236px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: linear-gradient(145deg, #fafafa, #f2f2f2);
  box-shadow: 0 12px 32px #25252520, 0 2px 5px #25252505;
}
.pmb-account-options .pmb-account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #414141;
  box-shadow: none;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.pmb-account-options .pmb-account-link:hover,
.pmb-account-options .pmb-account-link:focus-visible {
  color: #171717;
  background: #fff;
  box-shadow: 0 3px 9px #25252507;
}
.pmb-account-link svg { display: block; flex: 0 0 21px; width: 21px; height: 21px; color: #555; }
.pmb-account-menu :focus-visible { outline: 2px solid #666; outline-offset: 3px; }
.pmb-account-options .pmb-account-link:focus-visible { outline-offset: -2px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-brand p { margin: 0; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.pmb-feature-strip .audiences {
  width: 100%;
  justify-content: space-between;
  gap: 20px 24px;
  padding-inline: 0;
}
.pmb-feature-strip .audiences span {
  min-width: 0;
  line-height: 1.45;
}
.pmb-feature-strip .audiences svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.pmb-footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  padding: 4px 0 28px;
  font-style: normal;
}
.pmb-footer-contacts a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: #414141;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.pmb-footer-contacts a:hover { color: #111; }
.pmb-footer-contacts svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #737373;
}
.pmb-footer-contacts .pmb-contact-label {
  display: block;
  color: #777;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .25px;
}
.pmb-contact-float {
  position: fixed;
  z-index: 80;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
html:not(.js) .whatsapp-widget { display: none; }
body.modal-open .whatsapp-widget { visibility: hidden; }
.pmb-whatsapp-toggle {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 6px 20px #128c7e30, inset 0 1px 0 #ffffff40;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.pmb-whatsapp-toggle svg { width: 29px; height: 29px; }
.pmb-whatsapp-toggle:hover { background: #20c55d; transform: translateY(-2px); }
.pmb-whatsapp-toggle[aria-expanded="true"] { background: #20c55d; }
.pmb-contact-popover {
  width: min(272px, calc(100vw - 32px));
  max-height: calc(100dvh - 106px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: linear-gradient(145deg, #fafafa, #f1f1f1);
  box-shadow: 0 12px 38px #00000021, 0 2px 5px #00000005;
}
.pmb-contact-popover[hidden] { display: none; }
.pmb-contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 4px 6px; }
.pmb-contact-heading h2 {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -.25px;
  font-weight: 650;
  margin: 0;
}
.pmb-contact-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #efefef;
  color: #666;
  cursor: pointer;
}
.pmb-contact-close svg { width: 17px; height: 17px; }
.pmb-whatsapp-city {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: #ffffffa6;
  color: #303030;
  transition: background-color .2s ease;
}
.pmb-whatsapp-city:hover { background: #fff; }
.pmb-city-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #128c7e; background: #e4f6ec; flex: 0 0 34px; }
.pmb-city-icon svg { display: block; width: 21px; height: 21px; }
.pmb-whatsapp-city strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.pmb-whatsapp-city small { display: block; font-size: 11px; color: #777; line-height: 1.65; }
.pmb-whatsapp-city .pmb-city-arrow { width: 18px; height: 18px; margin-left: auto; flex: 0 0 18px; color: #777; }
.pmb-contact-float :focus-visible { outline: 2px solid #666; outline-offset: 4px; }
@media (max-width: 1060px) {
  .brand .pmb-brand-wordmark { width: 180px; }
  .brand .pmb-brand-image { width: 57px; height: 57px; flex-basis: 57px; }
  .header-layout .nav-links a { padding-inline: 10px; font-size: 12px; }
  .pmb-feature-strip .audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
}
@media (max-width: 800px) {
  .site-header { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  .site-header .header-layout { min-height: 58px; flex-wrap: nowrap; gap: 12px; background: transparent; }
  .site-header .header-layout .topbar {
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 40px;
    padding: 0;
    gap: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-header .header-layout .account-actions { margin: 0; gap: 0; }
  .pmb-account-toggle { width: 40px; height: 40px; }
  .pmb-account-options { right: 0; left: auto; transform: none; }
  /* Misma píldora gris y selección oscura del header del SaaS. */
  .site-header .header-layout #main-navigation {
    position: fixed;
    z-index: 80;
    left: max(16px, env(safe-area-inset-left));
    right: calc(max(16px, env(safe-area-inset-right)) + 56px);
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 420px;
    height: 46px;
    margin: 0;
    padding: 4px;
    border: 1px solid #1315220f;
    border-radius: 40px;
    background: #eef1f6;
    box-shadow: 0 10px 30px #0000002e;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: 5px;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .header-layout #main-navigation::-webkit-scrollbar { display: none; }
  .site-header .header-layout #main-navigation a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 25px;
    background: transparent;
    box-shadow: none;
    color: #555;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    white-space: nowrap;
    transform: none;
  }
  .site-header .header-layout #main-navigation a:hover { color: #131522; }
  .site-header .header-layout #main-navigation a[aria-current="location"] {
    background: #131522;
    color: #fff;
    box-shadow: 0 4px 10px #13152233;
  }
  .site-header .header-layout #main-navigation a:focus-visible { outline: 2px solid #555; outline-offset: -2px; }
  body.modal-open #main-navigation { visibility: hidden; }
  .pmb-contact-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .pmb-whatsapp-toggle { width: 46px; height: 46px; }
  .pmb-whatsapp-toggle svg { width: 25px; height: 25px; }
  .pmb-whatsapp-toggle:hover { transform: none; }
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .brand .pmb-brand-wordmark { width: 145px; }
  .header-brand .pmb-brand-image { width: 51px; height: 51px; flex-basis: 51px; }
  .site-header .header-layout { min-height: 52px; }
  .pmb-feature-strip .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 18px; padding-inline: 0; }
  .pmb-feature-strip .audiences span { gap: 8px; font-size: 11px; }
  .pmb-feature-strip .audiences svg { width: 18px; height: 18px; flex-basis: 18px; }
  .pmb-footer-contacts { display: grid; gap: 13px; padding: 0 0 24px; }
  .pmb-footer-contacts a { font-size: 12px; }
  .footer-brand p { font-size: 11px; }
}
@media (max-width: 370px) {
  .header-brand .pmb-brand-image { width: 45px; height: 45px; flex-basis: 45px; }
  .brand .pmb-brand-wordmark { width: 125px; }
  .site-header .header-layout { min-height: 46px; }
  .pmb-feature-strip .audiences { gap: 20px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pmb-whatsapp-toggle, .pmb-whatsapp-city, .pmb-account-toggle, .pmb-account-link, .header-layout .nav-links a { transition: none; }
}
@media print { .whatsapp-widget, #main-navigation { display: none; } }
