.products-dropdown {
  position: relative;
  isolation: isolate;
}

.products-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 680px;
  height: 26px;
  transform: translateX(-50%);
}

.products-dropdown > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 8px;
  color: #475467;
  font-size: .92rem;
  font-weight: 780;
  list-style: none;
  cursor: pointer;
  outline: none;
  transition: color .2s ease;
}

.products-dropdown > summary::-webkit-details-marker { display: none; }

.products-dropdown > summary::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,#23cdb1,#3159df);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease,transform .2s ease;
}

.products-dropdown > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s ease,margin .22s ease;
}

.products-dropdown:hover > summary,
.products-dropdown:focus-within > summary,
.products-dropdown.active > summary { color: #3159df; }

.products-dropdown:hover > summary::before,
.products-dropdown:focus-within > summary::before { opacity: 1; transform: scaleX(1); }

.products-dropdown:hover > summary::after,
.products-dropdown:focus-within > summary::after,
.products-dropdown[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }

.products-panel {
  position: absolute;
  display: block;
  z-index: 80;
  top: calc(100% + 20px);
  left: 50%;
  width: max-content;
  min-width: 158px;
  max-width: min(560px,calc(100vw - 40px));
  max-height: min(520px,calc(100vh - 100px));
  overflow-y: auto;
  padding: 12px;
  color: #101828;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(213,221,234,.92);
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(23,39,72,.2),0 8px 22px rgba(23,39,72,.08),inset 0 1px 0 rgba(255,255,255,.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%,14px) scale(.985);
  transform-origin: 50% 0;
  backdrop-filter: blur(24px) saturate(1.15);
  transition: opacity .22s ease,transform .22s cubic-bezier(.2,.8,.2,1),visibility .22s ease;
}

.products-dropdown:hover .products-panel,
.products-dropdown:focus-within .products-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%,0) scale(1);
}

.products-panel::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(50% - 9px);
  width: 17px;
  height: 17px;
  background: rgba(255,255,255,.98);
  border-top: 1px solid #d9e0eb;
  border-left: 1px solid #d9e0eb;
  transform: rotate(45deg);
}

.products-panel-title {
  display: none;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: max-content;
  max-width: 100%;
}

.product-menu-card {
  position: relative;
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 128px;
  padding: 9px;
  overflow: hidden;
  color: #101828;
  background: linear-gradient(145deg,#fbfdff,#f1f6fa);
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  text-decoration: none;
  transition: border-color .22s ease,transform .22s ease,box-shadow .22s ease;
}

.product-menu-card::after {
  display: none;
}

.product-menu-card:hover,
.product-menu-card:focus-visible {
  border-color: #8fa8ef;
  box-shadow: 0 12px 28px rgba(49,89,223,.14);
  transform: translateY(-2px);
}

.product-menu-card:focus-visible { outline: 3px solid rgba(49,89,223,.2); outline-offset: 3px; }

.product-menu-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 82px;
  overflow: hidden;
  background: radial-gradient(circle at 65% 40%,rgba(45,223,189,.16),transparent 55%),#f3f7fa;
  border: 1px solid rgba(215,224,235,.8);
  border-radius: 11px;
}

.product-menu-image img {
  width: 108%;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(27,40,62,.18));
  transition: transform .25s ease;
}

.product-menu-card:hover .product-menu-image img { transform: scale(1.045); }
.product-menu-card strong { margin-top: 9px; font-size: .78rem; line-height: 1.15; letter-spacing: -.015em; text-align: center; }
.product-menu-card small { display: none; }

.all-products-link {
  display: none;
}

.all-products-link::after { content: "→"; font-size: 1.05rem; transition: transform .18s ease; }
.all-products-link:hover::after { transform: translateX(4px); }

.header-account-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #344054;
  background: rgba(255,255,255,.92);
  border: 1px solid #dbe2ee;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(25,39,70,.08);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}

.header-account-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-account-link:hover,
.header-account-link:focus-visible,
.header-account-link.is-authenticated {
  color: #3159df;
  background: #f3f6ff;
  border-color: #b9c8f5;
  box-shadow: 0 9px 22px rgba(49,89,223,.13);
  transform: translateY(-1px);
}

.header-account-link:focus-visible { outline: 3px solid rgba(49,89,223,.18); outline-offset: 3px; }

@media (max-width: 940px) {
  .header-inner { grid-template-columns: 1fr auto auto !important; gap: 9px; }
  .header-nav { display: flex !important; gap: 0 !important; }
  .header-nav > a { display: none !important; }
  .products-dropdown { display: block; }
  .products-dropdown::after { display: none; }
  .products-dropdown > summary { min-height: 38px; padding: 0 11px; border: 1px solid #dbe2ee; border-radius: 11px; background: #fff; font-size: .78rem; }
  .products-dropdown > summary::before { display: none; }
  .products-panel { position: fixed; top: 70px; right: 16px; left: 16px; width: auto; min-width: 0; max-width: none; max-height: calc(100vh - 88px); overflow-y: auto; transform: translateY(10px) scale(.99); }
  .products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(112px,1fr)); width: 100%; }
  .product-menu-card { min-width: 0; }
  .products-dropdown:hover .products-panel,
  .products-dropdown[open] .products-panel,
  .products-dropdown:focus-within .products-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
  .products-panel::before { left: auto; right: 124px; }
}

@media (max-width: 620px) {
  .header-inner { width: min(100% - 24px,1180px) !important; }
  .brand img:last-child { display: none; }
  .products-panel { top: 64px; right: 10px; left: 10px; padding: 14px; border-radius: 20px; }
  .products-grid { grid-template-columns: repeat(auto-fill,minmax(104px,1fr)); gap: 8px; }
  .product-menu-card { min-height: 118px; padding: 8px; }
  .product-menu-image,.product-menu-image img { height: 74px; }
  .product-menu-card strong { margin-top: 8px; font-size: .74rem; }
  .products-panel::before { display: none; }
  .header-account-link { min-height: 38px; padding: 0 11px; font-size: .74rem; }
}

.global-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(34px,4.5vw,68px);
  color: #334155;
  background:
    radial-gradient(circle at 8% 0%,rgba(46,229,189,.13),transparent 30rem),
    radial-gradient(circle at 94% 8%,rgba(82,115,255,.1),transparent 32rem),
    linear-gradient(135deg,#fbfdff 0%,#f6f9fd 52%,#f1f5fb 100%);
  border-top: 1px solid #dce5f1;
}

.global-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .38;
  background-image: linear-gradient(rgba(116,143,184,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(116,143,184,.11) 1px,transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom,black,transparent 82%);
}

.global-footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(88vw,1320px);
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,#2ee5bd 24%,#3159df 72%,transparent);
}

.global-footer__inner { width: min(calc(100% - 64px),1320px); margin: 0 auto; }

.global-footer__top {
  display: grid;
  grid-template-columns: minmax(300px,1.18fr) minmax(170px,.58fr) minmax(390px,1.15fr);
  gap: clamp(38px,5vw,78px);
  align-items: start;
  padding: clamp(58px,7vw,84px) 0 clamp(44px,5vw,58px);
}

.global-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.global-footer__logo img:first-child { width: 36px; height: 36px; object-fit: contain; opacity: .94; }
.global-footer__logo img:last-child { width: min(100%,180px); height: auto; }
.global-footer__brand > p { max-width: 360px; margin: 22px 0 18px; color: #64748b; font-size: .96rem; line-height: 1.65; }
.global-footer__brand > .global-footer__services { max-width: 410px; margin: 0; padding-left: 14px; color: #536178; border-left: 2px solid #22bfa7; font-size: .76rem; line-height: 1.65; }

.global-footer h2 { margin: 0; color: #101827; font-size: 1rem; letter-spacing: -.02em; }
.global-footer__nav { display: grid; grid-template-columns: repeat(2,minmax(108px,1fr)); column-gap: clamp(22px,2.4vw,38px); row-gap: 13px; align-content: start; }
.global-footer__nav h2 { grid-column: 1 / -1; margin-bottom: 7px; }
.global-footer__nav a { width: fit-content; color: #526176; font-size: .88rem; font-weight: 650; text-decoration: none; transition: color .18s ease,transform .18s ease; }
.global-footer__nav a:hover,.global-footer__nav a:focus-visible { color: #2559df; transform: translateX(3px); }

.global-footer__connect { position: relative; padding: 4px 0 0 clamp(28px,3vw,44px); border-left: 1px solid #d9e3ef; }
.global-footer__connect::before { content: ""; position: absolute; top: 5px; left: -1px; width: 1px; height: 48px; background: linear-gradient(#2ee5bd,#5273ff); box-shadow: 0 0 16px rgba(46,229,189,.34); }
.global-footer__eyebrow { margin: 0 0 10px !important; color: #087f71 !important; font-size: .66rem !important; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.global-footer__connect > p:not(.global-footer__eyebrow) { max-width: 530px; margin: 11px 0 22px; color: #64748b; font-size: .84rem; line-height: 1.65; }
.global-footer__socials { display: flex; flex-wrap: wrap; gap: 9px; }
.global-footer__socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; color: #26364d; background: rgba(255,255,255,.82); border: 1px solid #d5dfec; border-radius: 12px; box-shadow: 0 8px 22px rgba(47,66,96,.05); font-size: .75rem; font-weight: 780; text-decoration: none; transition: color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.global-footer__socials svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }
.global-footer__socials svg rect,.global-footer__socials svg circle:not(.fill-dot),.global-footer__socials svg path { fill: none; }
.global-footer__socials a:first-child svg path { fill: currentColor; stroke: none; }
.global-footer__socials .fill-dot { fill: currentColor; stroke: none; }
.global-footer__whatsapp { min-width: 194px; }
.global-footer__whatsapp svg { flex: 0 0 auto; }
.global-footer__email { min-width: 218px; }
.global-footer__email svg { flex: 0 0 auto; }
.global-footer__social-copy { display: grid; gap: 1px; line-height: 1.05; }
.global-footer__social-copy strong { color: inherit; font-size: .75rem; font-weight: 800; }
.global-footer__social-copy small { color: #66758a; font-size: .62rem; font-weight: 650; letter-spacing: .015em; }
.global-footer__socials a:hover,.global-footer__socials a:focus-visible { color: #075e54; background: #edfffb; border-color: #4bd8c0; box-shadow: 0 12px 28px rgba(46,190,165,.14); transform: translateY(-2px); }
.global-footer__socials a:hover .global-footer__social-copy small,.global-footer__socials a:focus-visible .global-footer__social-copy small { color: rgba(6,19,33,.72); }

.global-footer__bottom { display: flex; align-items: center; justify-content: center; min-height: 68px; color: #6b778b; border-top: 1px solid #dce5f1; font-size: .72rem; font-weight: 650; letter-spacing: .02em; text-align: center; }

@media (max-width: 900px) {
  .global-footer__inner { width: min(calc(100% - 40px),1320px); }
  .global-footer__top { grid-template-columns: 1fr .72fr; }
  .global-footer__connect { grid-column: 1 / -1; padding: 28px 0 0; border-top: 1px solid #dce5f1; border-left: 0; }
  .global-footer__connect::before { top: -1px; left: 0; width: 72px; height: 1px; }
}

@media (max-width: 620px) {
  .global-footer { margin-top: 40px; }
  .global-footer__inner { width: min(calc(100% - 28px),1320px); }
  .global-footer__top { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 34px; }
  .global-footer__connect { grid-column: auto; padding-top: 26px; }
  .global-footer__bottom { justify-content: center; padding: 22px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .global-footer a { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .products-panel,.products-dropdown > summary::before,.products-dropdown > summary::after,.product-menu-card,.product-menu-image img,.all-products-link::after,.header-account-link { transition: none; }
}
