/* ============================================================
   Mega Automação — Design System (prefixo .mega-auto-)
   ============================================================ */
:root {
  --mega-navy-950: #050f22;
  --mega-navy-900: #071630;
  --mega-navy-800: #0a1f3f;
  --mega-navy-700: #10294f;
  --mega-blue-700: #1d5fc4;
  --mega-blue-600: #2b74e4;
  --mega-blue-500: #3f8bef;
  --mega-sky-400: #6fb6ff;
  --mega-sky-300: #9fd0ff;
  --mega-ink-900: #0c1e3a;
  --mega-ink-700: #26405f;
  --mega-ink-500: #4d637f;
  --mega-ink-400: #6b7f97;
  --mega-bg-50: #f4f8fd;
  --mega-bg-100: #edf4fb;
  --mega-bg-200: #e2edf8;
  --mega-line: #d8e5f2;
  --mega-white: #ffffff;
  --mega-green: #25d366;
  --mega-radius: 14px;
  --mega-radius-sm: 10px;
  --mega-shadow-sm: 0 2px 10px rgba(12, 30, 58, .06);
  --mega-shadow-md: 0 10px 30px rgba(12, 30, 58, .10);
  --mega-shadow-lg: 0 24px 60px rgba(7, 22, 48, .22);
  --mega-font-head: "Manrope", "Inter", system-ui, sans-serif;
  --mega-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --mega-header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mega-font-body);
  color: var(--mega-ink-700);
  background: var(--mega-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mega-auto-container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Tipografia utilitária ---------- */
.mega-auto-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mega-font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mega-blue-600);
  margin: 0 0 22px;
}
.mega-auto-eyebrow::after {
  content: "";
  width: 52px;
  height: 2px;
  background: var(--mega-blue-600);
}
.mega-auto-eyebrow--light { color: var(--mega-sky-400); }
.mega-auto-eyebrow--light::after { background: var(--mega-sky-400); }

.mega-auto-h1, .mega-auto-h2, .mega-auto-h3 {
  font-family: var(--mega-font-head);
  color: var(--mega-ink-900);
  line-height: 1.12;
  margin: 0;
}
.mega-auto-h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.mega-auto-h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.mega-auto-h3 { font-size: 1.25rem; font-weight: 800; }

.mega-auto-text-accent { color: var(--mega-blue-500); }
.mega-auto-lead { font-size: 1.06rem; color: var(--mega-ink-700); }

/* ---------- Botões ---------- */
.mega-auto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mega-font-head);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--mega-blue-600);
  color: #fff;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.mega-auto-btn svg { width: 18px; height: 18px; flex: none; }
.mega-auto-btn:hover { background: var(--mega-blue-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43, 116, 228, .32); }
.mega-auto-btn:active { transform: translateY(0); }

.mega-auto-btn--outline {
  background: transparent;
  color: var(--mega-blue-600);
  border-color: var(--mega-blue-600);
}
.mega-auto-btn--outline:hover { background: var(--mega-blue-600); color: #fff; }

.mega-auto-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.mega-auto-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }

.mega-auto-btn--green { background: var(--mega-green); }
.mega-auto-btn--green:hover { background: #1eb856; box-shadow: 0 12px 26px rgba(37, 211, 102, .35); }

.mega-auto-btn--lg { padding: 17px 34px; font-size: 1rem; }
.mega-auto-btn--sm { padding: 10px 18px; font-size: .82rem; }
.mega-auto-btn--block { width: 100%; }

/* ---------- Header ---------- */
.mega-auto-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mega-line);
}
.mega-auto-header__inner {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--mega-header-h);
  display: flex;
  align-items: center;
  gap: 34px;
}
.mega-auto-header__logo { display: flex; align-items: center; flex: none; }
.mega-auto-header__logo img { height: 44px; width: auto; }

.mega-auto-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.mega-auto-nav > a,
.mega-auto-nav__dropdown > button {
  font-family: var(--mega-font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mega-ink-900);
  background: none;
  border: 0;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  transition: color .2s ease;
}
.mega-auto-nav > a::after,
.mega-auto-nav__dropdown > button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--mega-blue-600);
  transition: width .25s ease;
}
.mega-auto-nav > a:hover,
.mega-auto-nav__dropdown > button:hover { color: var(--mega-blue-600); }
.mega-auto-nav > a:hover::after,
.mega-auto-nav__dropdown > button:hover::after { width: 100%; }
.mega-auto-nav > a[aria-current="page"] { color: var(--mega-blue-600); }
.mega-auto-nav > a[aria-current="page"]::after { width: 100%; }
.mega-auto-nav__dropdown > button svg { width: 13px; height: 13px; transition: transform .2s ease; }

.mega-auto-nav__dropdown { position: relative; }
.mega-auto-nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  box-shadow: var(--mega-shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mega-auto-nav__dropdown:hover .mega-auto-nav__menu,
.mega-auto-nav__dropdown:focus-within .mega-auto-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mega-auto-nav__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--mega-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--mega-ink-700);
  transition: background .18s ease, color .18s ease;
}
.mega-auto-nav__menu a:hover { background: var(--mega-bg-100); color: var(--mega-blue-600); }
.mega-auto-nav__menu a svg { width: 16px; height: 16px; color: var(--mega-blue-600); }

.mega-auto-header__actions { display: flex; align-items: center; gap: 16px; }
.mega-auto-header__social { display: flex; align-items: center; gap: 12px; }
.mega-auto-header__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--mega-navy-800);
  transition: color .2s ease, transform .2s ease;
}
.mega-auto-header__social a:hover { color: var(--mega-blue-600); transform: translateY(-2px); }
.mega-auto-header__social svg { width: 21px; height: 21px; }
.mega-auto-header__divider { width: 1px; height: 30px; background: var(--mega-line); }

.mega-auto-header__budget {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mega-line);
  color: var(--mega-ink-900);
  transition: border-color .2s ease, color .2s ease;
}
.mega-auto-header__budget:hover { border-color: var(--mega-blue-600); color: var(--mega-blue-600); }
.mega-auto-header__budget svg { width: 19px; height: 19px; }

.mega-auto-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mega-blue-600);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.mega-auto-badge[hidden] { display: none; }

.mega-auto-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius-sm);
  background: #fff;
  color: var(--mega-ink-900);
  place-items: center;
}
.mega-auto-header__toggle svg { width: 22px; height: 22px; }

/* Menu mobile — drawer lateral */
.mega-auto-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 885;
  background: rgba(5, 15, 34, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.mega-auto-mobile-overlay.mega-auto-is-open { opacity: 1; visibility: visible; }

.mega-auto-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 890;
  width: min(340px, 88vw);
  background: #fff;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .38s cubic-bezier(.32, .72, .24, 1), visibility .38s;
  overflow-y: auto;
  box-shadow: 24px 0 60px rgba(7, 22, 48, .18);
  display: flex;
  flex-direction: column;
}
.mega-auto-mobile-menu.mega-auto-is-open { transform: translateX(0); visibility: visible; }

.mega-auto-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--mega-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.mega-auto-mobile-menu__head img { height: 34px; width: auto; }
.mega-auto-mobile-menu__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mega-line);
  background: #fff;
  color: var(--mega-ink-700);
  display: grid;
  place-items: center;
  transition: color .2s ease, border-color .2s ease;
}
.mega-auto-mobile-menu__close:hover { color: var(--mega-ink-900); border-color: var(--mega-ink-400); }
.mega-auto-mobile-menu__close svg { width: 17px; height: 17px; }

.mega-auto-mobile-menu a:not(.mega-auto-btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--mega-line);
  font-family: var(--mega-font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--mega-ink-900);
}
.mega-auto-mobile-menu a:not(.mega-auto-btn) svg { width: 16px; height: 16px; color: var(--mega-blue-600); }
.mega-auto-mobile-menu__sub { padding-left: 14px; }
.mega-auto-mobile-menu__sub a:not(.mega-auto-btn) { font-size: .92rem; font-weight: 600; color: var(--mega-ink-500); }

.mega-auto-mobile-menu .mega-auto-btn {
  margin-top: 26px;
  width: 100%;
  justify-content: center;
  padding: 15px 20px;
  font-size: .9rem;
}
.mega-auto-mobile-menu__foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-auto-mobile-menu__foot span { font-size: .8rem; color: var(--mega-ink-400); }

/* ---------- Hero home ---------- */
.mega-auto-hero {
  position: relative;
  background: var(--mega-navy-900);
  color: #fff;
  overflow: hidden;
}
.mega-auto-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: 72% center;
}
.mega-auto-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--mega-navy-900) 0%,
      rgba(7, 22, 48, .96) 30%,
      rgba(7, 22, 48, .55) 55%,
      rgba(7, 22, 48, .18) 75%,
      rgba(7, 22, 48, .35) 100%);
}
.mega-auto-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: 40px;
  padding: 104px 0 116px;
}
.mega-auto-hero__eyebrow {
  font-family: var(--mega-font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mega-sky-300);
  margin: 0 0 26px;
}
.mega-auto-hero__title {
  font-family: var(--mega-font-head);
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
}
.mega-auto-hero__title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--mega-blue-500), var(--mega-sky-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mega-auto-hero__dash {
  width: 84px;
  height: 5px;
  border-radius: 99px;
  background: var(--mega-blue-500);
  margin: 26px 0;
}
.mega-auto-hero__sub {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  max-width: 460px;
  margin: 0 0 46px;
}
.mega-auto-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 30px;
}
.mega-auto-hero__proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 30px 4px 0;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.mega-auto-hero__proof-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.mega-auto-hero__proof-item svg { width: 30px; height: 30px; color: var(--mega-sky-400); flex: none; }
.mega-auto-hero__proof-item strong {
  display: block;
  font-family: var(--mega-font-head);
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
}
.mega-auto-hero__proof-item span { font-size: .85rem; color: rgba(255, 255, 255, .68); line-height: 1.35; display: block; }

.mega-auto-hero__side {
  align-self: start;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 70px;
}
.mega-auto-hero__side span {
  font-family: var(--mega-font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  text-align: right;
}
.mega-auto-hero__side::after {
  content: "";
  width: 46px;
  height: 3px;
  background: var(--mega-blue-500);
  margin-top: 10px;
  align-self: flex-end;
}

/* Hexágonos decorativos */
.mega-auto-hex-decor { position: absolute; pointer-events: none; z-index: 1; }
.mega-auto-hex-decor svg { display: block; }

/* ---------- Strip de pilares (sobre hero) ---------- */
.mega-auto-pillars {
  background: var(--mega-bg-50);
  padding: 64px 0 74px;
}
.mega-auto-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mega-auto-pillar {
  text-align: center;
  padding: 0 34px;
  position: relative;
}
.mega-auto-pillar + .mega-auto-pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--mega-line);
}
.mega-auto-pillar__icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  position: relative;
  display: grid;
  place-items: center;
}
.mega-auto-pillar__icon > svg.mega-auto-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--mega-blue-600);
  opacity: .16;
}
.mega-auto-pillar__icon > svg:not(.mega-auto-hex) { width: 40px; height: 40px; color: var(--mega-blue-600); position: relative; }
.mega-auto-pillar h3 {
  font-family: var(--mega-font-head);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mega-ink-900);
  margin: 0 0 10px;
}
.mega-auto-pillar p { font-size: .9rem; color: var(--mega-ink-500); margin: 0 0 16px; line-height: 1.55; }
.mega-auto-pillar__dash { width: 44px; height: 4px; border-radius: 99px; background: var(--mega-blue-500); margin: 0 auto; }

/* ---------- Seções genéricas ---------- */
.mega-auto-section { padding: 92px 0; }
.mega-auto-section--tint { background: var(--mega-bg-50); }
.mega-auto-section--dark { background: var(--mega-navy-900); color: #fff; position: relative; overflow: hidden; }
.mega-auto-section__head { max-width: 720px; margin-bottom: 54px; }
.mega-auto-section__head--center { margin-inline: auto; text-align: center; }
.mega-auto-section__head--center .mega-auto-eyebrow { justify-content: center; }
.mega-auto-section__head p { margin: 16px 0 0; color: var(--mega-ink-500); }

.mega-auto-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.mega-auto-split__aside {
  border-left: 1px solid var(--mega-line);
  padding-left: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.mega-auto-split__aside span {
  font-family: var(--mega-font-head);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mega-ink-700);
}
.mega-auto-split__aside::after { content: ""; width: 46px; height: 3px; background: var(--mega-blue-500); margin-top: 8px; }

/* Cards grandes de serviço (fiel ao print) */
.mega-auto-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 56px;
}
.mega-auto-service-card {
  background: var(--mega-bg-100);
  border-radius: var(--mega-radius);
  padding: 44px 44px 40px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mega-auto-service-card:hover { transform: translateY(-5px); box-shadow: var(--mega-shadow-md); }
.mega-auto-service-card__icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: var(--mega-navy-800);
  display: grid;
  place-items: center;
}
.mega-auto-service-card__icon svg { width: 40px; height: 40px; color: #fff; }
.mega-auto-service-card__title {
  align-self: center;
  font-family: var(--mega-font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--mega-ink-900);
  margin: 0;
  position: relative;
  padding-bottom: 14px;
}
.mega-auto-service-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: var(--mega-blue-500);
}
.mega-auto-service-card__list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.mega-auto-service-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: .98rem;
  color: var(--mega-ink-700);
}
.mega-auto-service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mega-blue-600);
}
.mega-auto-service-card__list li ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 2px; }
.mega-auto-service-card__list li ul li { padding-left: 18px; color: var(--mega-ink-500); font-size: .94rem; }
.mega-auto-service-card__list li ul li::before {
  width: 10px;
  height: 2px;
  border-radius: 0;
  top: .72em;
  background: var(--mega-ink-400);
}

/* Trio de valores */
.mega-auto-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
}
.mega-auto-value { text-align: center; padding: 0 44px; position: relative; }
.mega-auto-value + .mega-auto-value::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: var(--mega-line);
}
.mega-auto-value__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--mega-bg-200);
  display: grid;
  place-items: center;
}
.mega-auto-value__icon svg { width: 30px; height: 30px; color: var(--mega-navy-800); }
.mega-auto-value h3 {
  font-family: var(--mega-font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mega-ink-900);
  margin: 0 0 8px;
}
.mega-auto-value p { margin: 0; font-size: .92rem; color: var(--mega-ink-500); }

/* Cards de serviços (grade nova) */
.mega-auto-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mega-auto-card {
  background: #fff;
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mega-auto-card:hover { transform: translateY(-6px); box-shadow: var(--mega-shadow-md); border-color: transparent; }
.mega-auto-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--mega-bg-100);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background .3s ease;
}
.mega-auto-card:hover .mega-auto-card__icon { background: var(--mega-navy-800); }
.mega-auto-card__icon svg { width: 29px; height: 29px; color: var(--mega-blue-600); transition: color .3s ease; }
.mega-auto-card:hover .mega-auto-card__icon svg { color: #fff; }
.mega-auto-card h3 { font-family: var(--mega-font-head); font-size: 1.1rem; font-weight: 800; color: var(--mega-ink-900); margin: 0 0 10px; }
.mega-auto-card p { font-size: .9rem; color: var(--mega-ink-500); margin: 0 0 20px; flex: 1; }
.mega-auto-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mega-font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mega-blue-600);
}
.mega-auto-card__link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.mega-auto-card__link:hover svg { transform: translateX(4px); }

/* Faixa essência (escura) */
.mega-auto-essence { position: relative; z-index: 2; }
.mega-auto-essence__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.mega-auto-essence__title {
  font-family: var(--mega-font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 14px 0 0;
  color: #fff;
}
.mega-auto-essence__title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--mega-blue-500), var(--mega-sky-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mega-auto-essence__text {
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: 36px;
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
}
.mega-auto-essence__text p { margin: 0 0 12px; }
.mega-auto-essence__text p:last-child { margin-bottom: 0; }

/* Categorias da loja (fiel ao print) */
.mega-auto-cats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}
.mega-auto-cats-head .mega-auto-h2 { max-width: 560px; }
.mega-auto-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.mega-auto-cat {
  background: var(--mega-bg-100);
  border-radius: var(--mega-radius);
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.mega-auto-cat:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--mega-shadow-md); }
.mega-auto-cat__icon {
  width: 74px;
  height: 74px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.mega-auto-cat__icon > svg.mega-auto-hex { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--mega-blue-600); opacity: .15; }
.mega-auto-cat__icon > svg:not(.mega-auto-hex) { width: 34px; height: 34px; color: var(--mega-blue-600); position: relative; }
.mega-auto-cat h3 { font-family: var(--mega-font-head); font-size: 1.02rem; font-weight: 800; color: var(--mega-ink-900); margin: 0 0 8px; }
.mega-auto-cat p { font-size: .86rem; color: var(--mega-ink-500); margin: 0 0 18px; flex: 1; line-height: 1.5; }
.mega-auto-cat__arrow { width: 22px; height: 22px; color: var(--mega-blue-600); transition: transform .25s ease; }
.mega-auto-cat:hover .mega-auto-cat__arrow { transform: translateX(6px); }

/* Features inline (agilidade / suporte) */
.mega-auto-inline-feats { display: flex; gap: 60px; margin: 44px 0 0; }
.mega-auto-inline-feat { display: flex; align-items: center; gap: 18px; position: relative; }
.mega-auto-inline-feat + .mega-auto-inline-feat { padding-left: 60px; }
.mega-auto-inline-feat + .mega-auto-inline-feat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: var(--mega-line);
}
.mega-auto-inline-feat svg { width: 44px; height: 44px; color: var(--mega-blue-600); flex: none; }
.mega-auto-inline-feat strong { display: block; font-family: var(--mega-font-head); font-size: 1.02rem; font-weight: 800; color: var(--mega-ink-900); }
.mega-auto-inline-feat span { font-size: .9rem; color: var(--mega-ink-500); }

/* ---------- Cards de produto (ecommerce) ---------- */
.mega-auto-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mega-auto-product {
  background: #fff;
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mega-auto-product:hover { transform: translateY(-6px); box-shadow: var(--mega-shadow-md); }
.mega-auto-product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mega-bg-50);
  overflow: hidden;
}
.mega-auto-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mega-auto-product:hover .mega-auto-product__media img { transform: scale(1.06); }
.mega-auto-product__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--mega-navy-800);
  color: #fff;
  font-family: var(--mega-font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.mega-auto-product__quick {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--mega-ink-900);
  display: grid;
  place-items: center;
  box-shadow: var(--mega-shadow-sm);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease, color .25s ease;
}
.mega-auto-product:hover .mega-auto-product__quick { opacity: 1; transform: translateY(0); }
.mega-auto-product__quick:hover { background: var(--mega-blue-600); color: #fff; }
.mega-auto-product__quick svg { width: 18px; height: 18px; }
.mega-auto-product__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.mega-auto-product__cat {
  font-family: var(--mega-font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mega-blue-600);
  margin-bottom: 6px;
}
.mega-auto-product__name {
  font-family: var(--mega-font-head);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--mega-ink-900);
  margin: 0 0 6px;
  line-height: 1.3;
}
.mega-auto-product__name a:hover { color: var(--mega-blue-600); }
.mega-auto-product__desc { font-size: .85rem; color: var(--mega-ink-500); margin: 0 0 18px; flex: 1; }
.mega-auto-product__actions { display: flex; gap: 10px; }
.mega-auto-product__actions .mega-auto-btn { flex: 1; padding: 11px 14px; font-size: .8rem; }
.mega-auto-product__add {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--mega-blue-600);
  background: #fff;
  color: var(--mega-blue-600);
  display: grid;
  place-items: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.mega-auto-product__add:hover { background: var(--mega-blue-600); color: #fff; transform: translateY(-2px); }
.mega-auto-product__add svg { width: 18px; height: 18px; }
.mega-auto-product__add.mega-auto-is-added { background: var(--mega-green); border-color: var(--mega-green); color: #fff; }

/* Filtros da loja */
.mega-auto-shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.mega-auto-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.mega-auto-chip {
  font-family: var(--mega-font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--mega-line);
  background: #fff;
  color: var(--mega-ink-500);
  transition: all .2s ease;
}
.mega-auto-chip:hover { border-color: var(--mega-blue-600); color: var(--mega-blue-600); }
.mega-auto-chip.mega-auto-is-active { background: var(--mega-navy-800); border-color: var(--mega-navy-800); color: #fff; }
.mega-auto-shop-count { font-size: .86rem; color: var(--mega-ink-400); }

/* ---------- Breadcrumb ---------- */
.mega-auto-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .84rem;
}
.mega-auto-breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--mega-ink-400); }
.mega-auto-breadcrumb a { color: var(--mega-ink-500); font-weight: 600; transition: color .2s ease; }
.mega-auto-breadcrumb a:hover { color: var(--mega-blue-600); }
.mega-auto-breadcrumb svg { width: 13px; height: 13px; color: var(--mega-ink-400); }
.mega-auto-breadcrumb [aria-current] { color: var(--mega-ink-900); font-weight: 700; }

.mega-auto-page-head {
  background: var(--mega-bg-50);
  border-bottom: 1px solid var(--mega-line);
  padding: 40px 0 44px;
  position: relative;
  overflow: hidden;
}
.mega-auto-page-head .mega-auto-breadcrumb { margin-bottom: 18px; }
.mega-auto-page-head p { margin: 14px 0 0; max-width: 640px; color: var(--mega-ink-500); }
.mega-auto-page-head--dark {
  background: var(--mega-navy-900);
  border-bottom: 0;
  color: #fff;
}
.mega-auto-page-head--dark .mega-auto-h1 { color: #fff; }
.mega-auto-page-head--dark .mega-auto-breadcrumb a { color: rgba(255, 255, 255, .65); }
.mega-auto-page-head--dark .mega-auto-breadcrumb a:hover { color: var(--mega-sky-400); }
.mega-auto-page-head--dark .mega-auto-breadcrumb li,
.mega-auto-page-head--dark .mega-auto-breadcrumb svg { color: rgba(255, 255, 255, .4); }
.mega-auto-page-head--dark .mega-auto-breadcrumb [aria-current] { color: #fff; }
.mega-auto-page-head--dark p { color: rgba(255, 255, 255, .72); }

/* ---------- Página de produto ---------- */
.mega-auto-pdp {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 64px;
  align-items: start;
}
.mega-auto-gallery__main {
  position: relative;
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  overflow: hidden;
  background: var(--mega-bg-50);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.mega-auto-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease-out;
  will-change: transform;
}
.mega-auto-gallery__main.mega-auto-is-zoomed img { transform: scale(2); }
.mega-auto-gallery__hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(7, 22, 48, .78);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  pointer-events: none;
}
.mega-auto-gallery__hint svg { width: 14px; height: 14px; }
.mega-auto-gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.mega-auto-gallery__thumb {
  width: 92px;
  height: 92px;
  border-radius: var(--mega-radius-sm);
  border: 2px solid var(--mega-line);
  background: var(--mega-bg-50);
  overflow: hidden;
  padding: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.mega-auto-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-auto-gallery__thumb:hover { transform: translateY(-2px); }
.mega-auto-gallery__thumb.mega-auto-is-active { border-color: var(--mega-blue-600); }

.mega-auto-pdp__cat {
  font-family: var(--mega-font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mega-blue-600);
  margin-bottom: 10px;
}
.mega-auto-pdp__title { margin-bottom: 14px; }
.mega-auto-pdp__short { color: var(--mega-ink-500); margin: 0 0 26px; max-width: 520px; }
.mega-auto-pdp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--mega-line);
  border-bottom: 1px solid var(--mega-line);
  margin-bottom: 28px;
  font-size: .86rem;
  color: var(--mega-ink-500);
}
.mega-auto-pdp__meta strong { color: var(--mega-ink-900); font-weight: 700; }
.mega-auto-pdp__meta span { display: inline-flex; align-items: center; gap: 8px; }
.mega-auto-pdp__meta svg { width: 16px; height: 16px; color: var(--mega-blue-600); }

.mega-auto-pdp__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mega-auto-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--mega-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.mega-auto-qty button {
  width: 46px;
  height: 50px;
  border: 0;
  background: transparent;
  color: var(--mega-ink-700);
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}
.mega-auto-qty button:hover { background: var(--mega-bg-100); color: var(--mega-blue-600); }
.mega-auto-qty button svg { width: 15px; height: 15px; }
.mega-auto-qty input {
  width: 54px;
  height: 50px;
  border: 0;
  text-align: center;
  font-family: var(--mega-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mega-ink-900);
  -moz-appearance: textfield;
  appearance: textfield;
}
.mega-auto-qty input::-webkit-outer-spin-button,
.mega-auto-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mega-auto-qty input:focus { outline: none; }

.mega-auto-pdp__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: .85rem;
  color: var(--mega-ink-500);
}
.mega-auto-pdp__note svg { width: 18px; height: 18px; color: var(--mega-green); flex: none; }

/* Abas */
.mega-auto-tabs { margin-top: 76px; }
.mega-auto-tabs__nav {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--mega-line);
}
.mega-auto-tabs__tab {
  font-family: var(--mega-font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 14px 26px;
  border: 0;
  background: transparent;
  color: var(--mega-ink-400);
  position: relative;
  transition: color .2s ease;
}
.mega-auto-tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--mega-blue-600);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.mega-auto-tabs__tab:hover { color: var(--mega-ink-900); }
.mega-auto-tabs__tab.mega-auto-is-active { color: var(--mega-blue-600); }
.mega-auto-tabs__tab.mega-auto-is-active::after { transform: scaleX(1); }
.mega-auto-tabs__panel { padding: 34px 0 8px; display: none; max-width: 860px; }
.mega-auto-tabs__panel.mega-auto-is-active { display: block; }
.mega-auto-tabs__panel p { margin: 0 0 14px; color: var(--mega-ink-500); }
.mega-auto-tabs__panel ul { margin: 0 0 14px; padding-left: 20px; color: var(--mega-ink-500); }
.mega-auto-tabs__panel li { margin-bottom: 8px; }

.mega-auto-spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mega-auto-spec-table th, .mega-auto-spec-table td {
  text-align: left;
  padding: 13px 18px;
  border: 1px solid var(--mega-line);
}
.mega-auto-spec-table th {
  width: 240px;
  background: var(--mega-bg-50);
  font-family: var(--mega-font-head);
  font-weight: 700;
  color: var(--mega-ink-900);
}
.mega-auto-spec-table td { color: var(--mega-ink-500); }

/* Relacionados */
.mega-auto-related { margin-top: 84px; }
.mega-auto-related .mega-auto-h2 { margin-bottom: 36px; }

/* Barra flutuante de orçamento (PDP) */
.mega-auto-budget-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--mega-navy-900);
  color: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 24px;
  box-shadow: var(--mega-shadow-lg);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
  max-width: calc(100% - 32px);
}
.mega-auto-budget-bar.mega-auto-is-visible { transform: translate(-50%, 0); }
.mega-auto-budget-bar__info { display: flex; align-items: center; gap: 10px; font-size: .88rem; white-space: nowrap; }
.mega-auto-budget-bar__info svg { width: 19px; height: 19px; color: var(--mega-sky-400); }
.mega-auto-budget-bar__info strong { font-family: var(--mega-font-head); }
.mega-auto-budget-bar .mega-auto-btn { padding: 11px 22px; font-size: .82rem; }

/* Lightbox */
.mega-auto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 15, 34, .92);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.mega-auto-lightbox.mega-auto-is-open { opacity: 1; visibility: visible; }
.mega-auto-lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 84vh;
  border-radius: var(--mega-radius);
  box-shadow: var(--mega-shadow-lg);
}
.mega-auto-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.mega-auto-lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.mega-auto-lightbox__close svg { width: 20px; height: 20px; }
.mega-auto-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.mega-auto-lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.mega-auto-lightbox__nav svg { width: 22px; height: 22px; }
.mega-auto-lightbox__nav--prev { left: 22px; }
.mega-auto-lightbox__nav--next { right: 22px; }

/* ---------- Página de orçamento ---------- */
.mega-auto-cart { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; }
.mega-auto-cart__list { display: flex; flex-direction: column; gap: 16px; }
.mega-auto-cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  padding: 18px 22px;
  transition: box-shadow .25s ease;
}
.mega-auto-cart-item:hover { box-shadow: var(--mega-shadow-sm); }
.mega-auto-cart-item__img {
  width: 110px;
  height: 110px;
  border-radius: var(--mega-radius-sm);
  overflow: hidden;
  background: var(--mega-bg-50);
}
.mega-auto-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.mega-auto-cart-item__cat {
  font-family: var(--mega-font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mega-blue-600);
}
.mega-auto-cart-item__name { font-family: var(--mega-font-head); font-size: 1.05rem; font-weight: 800; color: var(--mega-ink-900); margin: 4px 0 6px; }
.mega-auto-cart-item__name a:hover { color: var(--mega-blue-600); }
.mega-auto-cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mega-ink-400);
  transition: color .2s ease;
}
.mega-auto-cart-item__remove:hover { color: #d33; }
.mega-auto-cart-item__remove svg { width: 14px; height: 14px; }
.mega-auto-cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mega-auto-cart-item__side .mega-auto-qty button { width: 40px; height: 44px; }
.mega-auto-cart-item__side .mega-auto-qty input { width: 48px; height: 44px; }
.mega-auto-cart-item__qty-label { font-size: .76rem; color: var(--mega-ink-400); }

.mega-auto-cart__summary {
  background: var(--mega-bg-50);
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  padding: 32px 30px;
  position: sticky;
  top: calc(var(--mega-header-h) + 24px);
}
.mega-auto-cart__summary h2 { font-family: var(--mega-font-head); font-size: 1.25rem; font-weight: 800; color: var(--mega-ink-900); margin: 0 0 20px; }
.mega-auto-cart__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  font-size: .92rem;
  color: var(--mega-ink-500);
  border-bottom: 1px dashed var(--mega-line);
}
.mega-auto-cart__summary-row strong { color: var(--mega-ink-900); }
.mega-auto-cart__summary .mega-auto-btn { margin-top: 24px; }
.mega-auto-cart__summary-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  font-size: .8rem;
  color: var(--mega-ink-400);
  line-height: 1.5;
}
.mega-auto-cart__summary-note svg { width: 16px; height: 16px; flex: none; color: var(--mega-blue-600); margin-top: 2px; }

.mega-auto-cart__empty {
  text-align: center;
  padding: 90px 20px;
  background: var(--mega-bg-50);
  border: 1px dashed var(--mega-line);
  border-radius: var(--mega-radius);
}
.mega-auto-cart__empty svg { width: 64px; height: 64px; color: var(--mega-ink-400); margin: 0 auto 20px; }
.mega-auto-cart__empty h2 { font-family: var(--mega-font-head); color: var(--mega-ink-900); margin: 0 0 10px; }
.mega-auto-cart__empty p { color: var(--mega-ink-500); margin: 0 0 26px; }

/* Modal */
.mega-auto-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.mega-auto-modal.mega-auto-is-open { opacity: 1; visibility: visible; }
.mega-auto-modal__overlay { position: absolute; inset: 0; background: rgba(5, 15, 34, .66); backdrop-filter: blur(4px); }
.mega-auto-modal__box {
  position: relative;
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 40px 40px 36px;
  box-shadow: var(--mega-shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .3s ease;
}
.mega-auto-modal.mega-auto-is-open .mega-auto-modal__box { transform: translateY(0) scale(1); }
.mega-auto-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--mega-line);
  background: #fff;
  color: var(--mega-ink-500);
  display: grid;
  place-items: center;
  transition: color .2s ease, border-color .2s ease;
}
.mega-auto-modal__close:hover { color: var(--mega-ink-900); border-color: var(--mega-ink-400); }
.mega-auto-modal__close svg { width: 16px; height: 16px; }
.mega-auto-modal__box h2 { font-family: var(--mega-font-head); font-size: 1.45rem; font-weight: 800; color: var(--mega-ink-900); margin: 0 0 8px; }
.mega-auto-modal__box > p { font-size: .9rem; color: var(--mega-ink-500); margin: 0 0 26px; }

.mega-auto-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega-auto-field { display: flex; flex-direction: column; gap: 7px; }
.mega-auto-field--full { grid-column: 1 / -1; }
.mega-auto-field label {
  font-family: var(--mega-font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mega-ink-700);
}
.mega-auto-field label em { color: #d33; font-style: normal; }
.mega-auto-field input,
.mega-auto-field textarea {
  font-family: var(--mega-font-body);
  font-size: .95rem;
  color: var(--mega-ink-900);
  padding: 13px 16px;
  border: 1.5px solid var(--mega-line);
  border-radius: var(--mega-radius-sm);
  background: var(--mega-bg-50);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
}
.mega-auto-field textarea { resize: vertical; min-height: 96px; }
.mega-auto-field input:focus,
.mega-auto-field textarea:focus {
  outline: none;
  border-color: var(--mega-blue-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 116, 228, .12);
}
.mega-auto-field.mega-auto-has-error input,
.mega-auto-field.mega-auto-has-error textarea { border-color: #d33; }
.mega-auto-field__error { font-size: .76rem; color: #d33; display: none; }
.mega-auto-field.mega-auto-has-error .mega-auto-field__error { display: block; }
.mega-auto-form .mega-auto-btn { grid-column: 1 / -1; margin-top: 8px; }

/* ---------- Institucional ---------- */
.mega-auto-prose-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 70px; align-items: start; }
.mega-auto-prose { font-size: var(--mega-prose-size, 1.06rem); line-height: 1.85; color: var(--mega-ink-700); transition: font-size .2s ease; }
.mega-auto-prose p { margin: 0 0 1.4em; }
.mega-auto-prose h2 {
  font-family: var(--mega-font-head);
  font-size: 1.5em;
  font-weight: 800;
  color: var(--mega-ink-900);
  margin: 1.6em 0 .7em;
}
.mega-auto-prose ul { margin: 0 0 1.4em; padding-left: 1.3em; }
.mega-auto-prose li { margin-bottom: .5em; }
.mega-auto-prose strong { color: var(--mega-ink-900); }

.mega-auto-a11y {
  position: sticky;
  top: calc(var(--mega-header-h) + 24px);
  background: var(--mega-bg-50);
  border: 1px solid var(--mega-line);
  border-radius: var(--mega-radius);
  padding: 26px;
}
.mega-auto-a11y h2 {
  font-family: var(--mega-font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mega-ink-900);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mega-auto-a11y h2 svg { width: 19px; height: 19px; color: var(--mega-blue-600); }
.mega-auto-a11y__row { display: flex; gap: 10px; }
.mega-auto-a11y__btn {
  flex: 1;
  padding: 12px 0;
  border-radius: var(--mega-radius-sm);
  border: 1.5px solid var(--mega-line);
  background: #fff;
  font-family: var(--mega-font-head);
  font-weight: 800;
  color: var(--mega-ink-700);
  transition: all .2s ease;
}
.mega-auto-a11y__btn:hover:not(:disabled) { border-color: var(--mega-blue-600); color: var(--mega-blue-600); }
.mega-auto-a11y__btn:disabled { opacity: .4; cursor: not-allowed; }
.mega-auto-a11y__hint { font-size: .78rem; color: var(--mega-ink-400); margin: 14px 0 0; line-height: 1.5; }
.mega-auto-a11y__size { font-size: .8rem; color: var(--mega-ink-500); margin-top: 12px; text-align: center; }

/* ---------- 404 ---------- */
.mega-auto-notfound {
  min-height: calc(100vh - var(--mega-header-h));
  display: grid;
  place-items: center;
  background: var(--mega-navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 24px;
}
.mega-auto-notfound__inner { position: relative; z-index: 2; max-width: 640px; }
.mega-auto-notfound__code {
  font-family: var(--mega-font-head);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
  background: linear-gradient(120deg, var(--mega-blue-600), var(--mega-sky-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mega-auto-notfound h1 { font-family: var(--mega-font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 10px 0 14px; color: #fff; }
.mega-auto-notfound p { color: rgba(255, 255, 255, .72); margin: 0 0 34px; }
.mega-auto-notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.mega-auto-footer {
  background: var(--mega-navy-950);
  color: rgba(255, 255, 255, .72);
  position: relative;
  overflow: hidden;
}
.mega-auto-footer__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 76px 0 60px;
}
.mega-auto-footer__logo img { height: 48px; width: auto; margin-bottom: 22px; }
.mega-auto-footer__about { font-size: .92rem; line-height: 1.7; max-width: 320px; }
.mega-auto-footer__social { display: flex; gap: 12px; margin-top: 24px; }
.mega-auto-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.mega-auto-footer__social a:hover { background: var(--mega-blue-600); border-color: var(--mega-blue-600); transform: translateY(-3px); }
.mega-auto-footer__social svg { width: 17px; height: 17px; }
.mega-auto-footer h3 {
  font-family: var(--mega-font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 6px 0 22px;
  position: relative;
  padding-bottom: 14px;
}
.mega-auto-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 99px; background: var(--mega-blue-500); }
.mega-auto-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mega-auto-footer__links a { font-size: .92rem; transition: color .2s ease, padding-left .2s ease; }
.mega-auto-footer__links a:hover { color: var(--mega-sky-400); padding-left: 6px; }
.mega-auto-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mega-auto-footer__contact li { display: flex; gap: 12px; font-size: .92rem; line-height: 1.55; }
.mega-auto-footer__contact svg { width: 18px; height: 18px; color: var(--mega-sky-400); flex: none; margin-top: 3px; }
.mega-auto-footer__contact a:hover { color: var(--mega-sky-400); }
.mega-auto-footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.mega-auto-footer__bottom a { color: rgba(255, 255, 255, .7); }
.mega-auto-footer__bottom a:hover { color: var(--mega-sky-400); }

/* ---------- Flutuantes ---------- */
.mega-auto-float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 880;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--mega-green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mega-auto-float-whatsapp:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 36px rgba(37, 211, 102, .5); }
.mega-auto-float-whatsapp svg { width: 30px; height: 30px; }
.mega-auto-float-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--mega-green);
  animation: mega-auto-pulse 2.2s ease-out infinite;
}
@keyframes mega-auto-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

.mega-auto-float-top {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 880;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--mega-navy-800);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--mega-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s ease;
}
.mega-auto-float-top.mega-auto-is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-auto-float-top:hover { background: var(--mega-blue-600); }
.mega-auto-float-top svg { width: 20px; height: 20px; }

/* Toast */
.mega-auto-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--mega-header-h) + 16px);
  transform: translate(-50%, -20px);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mega-navy-900);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: var(--mega-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  max-width: calc(100% - 32px);
}
.mega-auto-toast.mega-auto-is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-auto-toast svg { width: 18px; height: 18px; color: var(--mega-green); flex: none; }

/* Reveal on scroll */
.mega-auto-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.mega-auto-reveal.mega-auto-is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .mega-auto-nav { display: none; }
  .mega-auto-header__toggle { display: grid; }
  .mega-auto-header__actions .mega-auto-btn span { display: none; }
  .mega-auto-header__actions .mega-auto-btn { padding: 12px 16px; }
  .mega-auto-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-auto-products { grid-template-columns: repeat(3, 1fr); }
  .mega-auto-cats { grid-template-columns: repeat(3, 1fr); }
  .mega-auto-pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .mega-auto-pillar:nth-child(3)::before { display: none; }
  .mega-auto-pdp { grid-template-columns: 1fr; gap: 44px; }
  .mega-auto-cart { grid-template-columns: 1fr; }
  .mega-auto-cart__summary { position: static; }
  .mega-auto-prose-wrap { grid-template-columns: 1fr; }
  .mega-auto-a11y { position: static; order: -1; }
  .mega-auto-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --mega-header-h: 72px; }
  .mega-auto-container { width: calc(100% - 36px); }
  .mega-auto-header__inner { width: calc(100% - 36px); gap: 14px; }
  .mega-auto-header__logo img { height: 36px; }
  .mega-auto-header__social, .mega-auto-header__divider { display: none; }
  .mega-auto-header__actions { margin-left: auto; gap: 10px; }
  .mega-auto-header__actions .mega-auto-btn { display: none; }

  .mega-auto-hero__inner { grid-template-columns: 1fr; padding: 76px 0 84px; }
  .mega-auto-hero__bg { background-position: 78% center; }
  .mega-auto-hero__bg::after {
    background: linear-gradient(180deg,
      rgba(7, 22, 48, .9) 0%,
      rgba(7, 22, 48, .82) 55%,
      rgba(7, 22, 48, .7) 100%);
  }
  .mega-auto-hero__side { display: none; }
  .mega-auto-hero__proof { flex-direction: column; gap: 18px; }
  .mega-auto-hero__proof-item { border-right: 0; margin-right: 0; padding-right: 0; }

  .mega-auto-section { padding: 64px 0; }
  .mega-auto-split { grid-template-columns: 1fr; gap: 34px; }
  .mega-auto-split__aside { border-left: 0; padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 26px; }
  .mega-auto-split__aside::after { display: none; }
  .mega-auto-service-cards { grid-template-columns: 1fr; }
  .mega-auto-service-card { grid-template-columns: 64px 1fr; padding: 30px 26px; }
  .mega-auto-service-card__icon { width: 64px; height: 64px; }
  .mega-auto-service-card__icon svg { width: 30px; height: 30px; }
  .mega-auto-service-card__title { font-size: 1.15rem; }
  .mega-auto-values { grid-template-columns: 1fr; gap: 34px; }
  .mega-auto-value + .mega-auto-value::before { display: none; }
  .mega-auto-inline-feats { flex-direction: column; gap: 26px; }
  .mega-auto-inline-feat + .mega-auto-inline-feat { padding-left: 0; }
  .mega-auto-inline-feat + .mega-auto-inline-feat::before { display: none; }
  .mega-auto-essence__grid { grid-template-columns: 1fr; gap: 30px; }
  .mega-auto-essence__text { border-left: 0; padding-left: 0; }
  .mega-auto-cats-head { flex-direction: column; align-items: flex-start; }
  .mega-auto-cats { grid-template-columns: repeat(2, 1fr); }
  .mega-auto-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mega-auto-product__body { padding: 14px 14px 16px; }
  .mega-auto-product__actions .mega-auto-btn { font-size: .72rem; padding: 10px 10px; }
  .mega-auto-cards-grid { grid-template-columns: 1fr; }
  .mega-auto-pillars__grid { grid-template-columns: 1fr; }
  .mega-auto-pillar + .mega-auto-pillar::before { display: none; }
  .mega-auto-form { grid-template-columns: 1fr; }
  .mega-auto-cart-item { grid-template-columns: 84px 1fr; }
  .mega-auto-cart-item__img { width: 84px; height: 84px; }
  .mega-auto-cart-item__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .mega-auto-tabs__tab { padding: 12px 16px; font-size: .84rem; }
  .mega-auto-spec-table th { width: 130px; }
  .mega-auto-modal__box { padding: 30px 24px; }
  .mega-auto-budget-bar { gap: 12px; padding-left: 18px; bottom: 90px; }
  .mega-auto-budget-bar__info { font-size: .78rem; }
  .mega-auto-footer__main { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 44px; }
  .mega-auto-footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .mega-auto-cats { grid-template-columns: 1fr; }
  .mega-auto-cat { min-height: 0; }
  .mega-auto-products { grid-template-columns: 1fr; }
  .mega-auto-pdp__buy .mega-auto-btn { width: 100%; }
  .mega-auto-gallery__thumb { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Barra flutuante de orçamento — mobile dock ---------- */
@media (max-width: 768px) {
  .mega-auto-budget-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: translateY(calc(100% + 24px));
    max-width: none;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 18px;
  }
  .mega-auto-budget-bar.mega-auto-is-visible { transform: translateY(0); }
  .mega-auto-budget-bar__info { flex-direction: row; font-size: .82rem; line-height: 1.25; white-space: normal; }
  .mega-auto-budget-bar .mega-auto-btn { flex: none; padding: 12px 18px; font-size: .8rem; }

  /* afasta os flutuantes quando a barra está visível */
  body.mega-auto-has-budget-bar .mega-auto-float-whatsapp { bottom: 96px; }
  body.mega-auto-has-budget-bar .mega-auto-float-top { bottom: 164px; }
}

/* ---------- Modal vira bottom-sheet no mobile ---------- */
@media (max-width: 768px) {
  .mega-auto-modal { place-items: end center; padding: 0; }
  .mega-auto-modal__box {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px));
    transform: translateY(104%);
    transition: transform .42s cubic-bezier(.32, .72, .24, 1);
  }
  .mega-auto-modal.mega-auto-is-open .mega-auto-modal__box { transform: translateY(0); }
  .mega-auto-modal__box::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 99px;
    background: var(--mega-line);
    margin: 4px auto 18px;
  }
  .mega-auto-modal__close { top: 16px; right: 16px; }
  .mega-auto-modal__box h2 { font-size: 1.25rem; }
  .mega-auto-modal__box > p { margin-bottom: 20px; }
}

/* ---------- Faixas de logos (clientes / parceiros) ---------- */
.mega-auto-logos { padding: 72px 0 80px; border-top: 1px solid var(--mega-line); }
.mega-auto-logos--tint { background: var(--mega-bg-50); }
.mega-auto-logos__head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.mega-auto-logos__head .mega-auto-eyebrow { justify-content: center; }
.mega-auto-logos__head .mega-auto-eyebrow::after { display: none; }
.mega-auto-logos__head p { margin: 14px 0 0; color: var(--mega-ink-500); font-size: .95rem; }

.mega-auto-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.mega-auto-marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding: 8px 36px;
  animation: mega-auto-marquee 38s linear infinite;
}
.mega-auto-marquee:hover .mega-auto-marquee__track { animation-play-state: paused; }
.mega-auto-marquee__track img {
  height: 56px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
  flex: none;
}
.mega-auto-marquee__track img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
@keyframes mega-auto-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .mega-auto-logos { padding: 54px 0 60px; }
  .mega-auto-marquee__track { gap: 48px; padding: 6px 24px; animation-duration: 28s; }
  .mega-auto-marquee__track img { height: 44px; max-width: 150px; }
}
