/* Scaparato 2035 shared shell. Loaded only in explicitly opted-in contexts. */
.sc-shell-active {
  --sc-shell-header-height: 82px;
}

.sc-shell-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--sc-graphite, #1e2d42);
  border: 2px solid var(--sc-blue, #21628d);
  transform: translateY(-150%);
}

.sc-shell-skip-link:focus {
  transform: translateY(0);
}

.sc-shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--sc-shell-header-height);
  background: #fff;
  border-bottom: 1px solid var(--sc-border, #d9e2ec);
  box-shadow: var(--sc-shadow-sm, 0 1px 3px rgba(30, 45, 66, 0.12));
}

.admin-bar .sc-shell-header {
  top: 32px;
}

.sc-shell-header__inner,
.sc-shell-footer__inner,
.sc-shell-footer__legal {
  width: min(100% - 2rem, var(--sc-max-width, 1200px));
  margin-inline: auto;
}

.sc-shell-header__inner {
  min-height: var(--sc-shell-header-height);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.sc-shell-logo {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 0.25rem;
}

.sc-shell-logo img {
  display: block;
  width: 190px;
  height: auto;
  aspect-ratio: 960 / 183;
}

.sc-shell-logo:focus-visible,
.sc-shell-header a:focus-visible,
.sc-shell-header button:focus-visible,
.sc-shell-footer a:focus-visible {
  outline: 3px solid var(--sc-blue, #21628d);
  outline-offset: 3px;
}

.sc-shell-desktop-nav {
  margin-left: auto;
}

.sc-shell-nav-list,
.sc-shell-mobile-nav__list,
.sc-shell-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-shell-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 0.75rem);
}

.sc-shell-nav-list a {
  display: block;
  padding: 0.7rem 0.55rem;
  color: var(--sc-graphite, #1e2d42);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--sc-radius-md, 0.375rem);
}

.sc-shell-nav-list a:hover,
.sc-shell-nav-list a[aria-current="page"] {
  color: var(--sc-blue, #21628d);
  background: var(--sc-mist, #f1f5f8);
}

.sc-shell-header__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sc-shell-menu-toggle,
.sc-shell-mobile-nav {
  display: none;
}

.sc-shell-footer {
  color: #fff;
  background: var(--sc-graphite, #1e2d42);
}

.sc-shell-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(170px, 0.8fr) minmax(240px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.sc-shell-footer__logo img {
  width: min(240px, 100%);
  padding: 0.65rem;
  background: #fff;
  border-radius: var(--sc-radius-md, 0.375rem);
}

.sc-shell-footer__brand p,
.sc-shell-footer__group p {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  color: #fff;
  line-height: 1.65;
}

.sc-shell-footer__group h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sc-shell-footer__links {
  display: grid;
  gap: 0.55rem;
}

.sc-shell-footer__links a {
  color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sc-shell-footer__cta {
  display: inline-flex;
  margin-top: 1.25rem;
}

.sc-shell-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
}

.sc-shell-footer__legal p {
  margin: 0;
  color: #fff;
}

.sc-shell-footer__links--inline {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 1099px) {
  .sc-shell-active {
    --sc-shell-header-height: 72px;
  }

  .sc-shell-logo img {
    width: 168px;
  }

  .sc-shell-desktop-nav,
  .sc-shell-header__cta {
    display: none;
  }

  .sc-shell-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    color: var(--sc-graphite, #1e2d42);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--sc-radius-md, 0.375rem);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .sc-shell-menu-toggle__icon {
    width: 20px;
    display: grid;
    gap: 4px;
  }

  .sc-shell-menu-toggle__icon span {
    display: block;
    height: 2px;
    background: currentColor;
  }

  .sc-shell-mobile-nav {
    max-height: calc(100vh - var(--sc-shell-header-height));
    overflow-y: auto;
    padding: 0.75rem max(1rem, calc((100vw - var(--sc-max-width, 1200px)) / 2));
    background: #fff;
    border-top: 1px solid var(--sc-border, #d9e2ec);
    box-shadow: var(--sc-shadow-md, 0 8px 20px rgba(30, 45, 66, 0.14));
  }

  .js .sc-shell-mobile-nav[hidden] {
    display: none;
  }

  .js .sc-shell-mobile-nav:not([hidden]) {
    display: block;
  }

  .sc-shell-mobile-nav__list {
    display: grid;
  }

  .sc-shell-mobile-nav__list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: var(--sc-graphite, #1e2d42);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--sc-border, #d9e2ec);
  }

  .sc-shell-mobile-nav__list a[aria-current="page"] {
    color: var(--sc-blue, #21628d);
  }

  .sc-shell-mobile-nav__cta {
    width: 100%;
    margin: 1rem 0 0.5rem;
    justify-content: center;
  }

  .sc-shell-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar .sc-shell-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  body.sc-has-new-home:not(.sc-diagnostico-page) .sc-shell-footer__inner,
  body.sc-has-new-home:not(.sc-diagnostico-page) .sc-shell-footer__legal {
    padding-right: 80px;
  }
}

@media (max-width: 620px) {
  .sc-shell-footer__inner {
    grid-template-columns: 1fr;
  }

  .sc-shell-footer__legal {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .sc-shell-menu-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* WhatsApp floating button responsive positioning */
@media (max-width: 768px) {
  #wa-float-btn {
    bottom: 80px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  #wa-float-btn {
    bottom: 100px;
    width: 60px;
    height: 60px;
  }

  #wa-float-btn::before {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-shell-skip-link,
  .sc-shell-header *,
  .sc-shell-footer * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
