/* =====================================================
   /milagres — Condição especial (planos anuais 30/50 CNPJs)
   Usa tokens, header e footer de styles.css.
   ===================================================== */

.mg {
  --gold: #f6c56b;
  --gold2: #f39c4a;
  --goldBg: rgba(246, 197, 107, 0.12);
  --goldLine: rgba(246, 197, 107, 0.45);
  --gradGold: linear-gradient(135deg, #ffe0a3 0%, #f6c56b 45%, #f39c4a 100%);
  --sea: #2e8a99;
  --r: 22px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.mg-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.mg-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.mg-nav {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
.mg-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg2);
}
.mg-nav a:hover {
  color: var(--fg);
  background: var(--accBg);
}
@media (max-width: 860px) {
  .mg-nav {
    display: none;
  }
}

/* ---------- Botões ---------- */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.mg-btn:hover {
  transform: translateY(-1px);
}
.mg-btn-lg {
  min-height: 56px;
  padding: 15px 26px;
  font-size: 16px;
}
.mg-btn-primary,
.mg-btn-primary:hover {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 32px -14px rgba(30, 136, 229, 0.9);
}
.mg-btn-gold,
.mg-btn-gold:hover {
  background: var(--gradGold);
  color: #2a1700;
  box-shadow: 0 14px 32px -14px rgba(243, 156, 74, 0.9);
}
/* Botão do sorteio no hero */
.mg-btn-raffle {
  gap: 12px;
  padding: 10px 22px 10px 18px;
  text-align: left;
}
.mg-btn-raffle-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mg-btn-raffle-txt small {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.8;
}
.mg-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--fg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mg-btn-ghost:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.14);
}
.mg-btn-line {
  border: 1px solid var(--line);
  color: var(--fg2);
}
.mg-btn-line:hover {
  color: var(--fg);
  border-color: var(--accLine);
}
.mg-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

/* ---------- Tipografia de seção ---------- */
.mg-section {
  padding: 96px 0;
  position: relative;
}
.mg-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.mg-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
}
.mg-h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.mg-h2 em,
.mg-hero-title em {
  font-style: normal;
  background: var(--gradGold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mg-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg2);
}
.mg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  background: var(--accBg);
  border: 1px solid var(--accLine);
}
.mg-tag.is-gold {
  color: var(--gold);
  background: var(--goldBg);
  border-color: var(--goldLine);
}

/* ---------- Hero ---------- */
.mg-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.mg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.mg-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: mg-zoom 18s ease-out both;
}
@keyframes mg-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
.mg-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 29, 0.92) 0%, rgba(6, 16, 29, 0.7) 42%, rgba(6, 16, 29, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 16, 29, 0.55) 22%, rgba(6, 16, 29, 0) 45%),
    linear-gradient(180deg, rgba(6, 16, 29, 0.6) 0%, rgba(6, 16, 29, 0) 22%);
}
.mg-hero > .mg-wrap {
  width: 100%;
}
.mg-hero-inner > * {
  max-width: 660px;
}
.mg-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(6, 16, 29, 0.55);
  border: 1px solid var(--goldLine);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mg-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(246, 197, 107, 0.7);
  animation: mg-pulse 1.8s infinite;
}
@keyframes mg-pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(246, 197, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 197, 107, 0);
  }
}
.mg-hero-title {
  margin: 20px 0 18px;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
.mg-hero-lead {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: #dbe6f2;
}
.mg-hero-lead b {
  color: #fff;
}

/* Contagem regressiva */
.mg-countdown {
  margin-bottom: 28px;
}
.mg-countdown-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}
.mg-countdown-grid {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 8px;
}
.mg-countdown-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 8px;
  border-radius: 14px;
  background: rgba(14, 31, 53, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mg-countdown-grid b {
  font-family: Sora, Inter, sans-serif;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.mg-countdown-grid span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg3);
}
.mg-countdown-end {
  margin: 0;
  font-weight: 600;
  color: var(--gold);
}
.mg-countdown.is-over .mg-countdown-grid,
.mg-countdown.is-over .mg-countdown-label {
  display: none;
}

.mg-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mg-hero-ctas.is-center {
  justify-content: center;
}

.mg-hero-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 12px;
  margin-top: 48px;
}
.mg-hero-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(6, 16, 29, 0.6);
  border: 1px solid var(--accLine);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg2);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.mg-hero-chip:hover {
  transform: translateY(-2px);
  color: var(--fg2);
}
.mg-hero-chip.is-gold {
  border-color: var(--goldLine);
}
.mg-hero-chip-k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.mg-hero-chip.is-gold .mg-hero-chip-k {
  color: var(--gold);
}
.mg-hero-chip-v {
  font-size: 15px;
}
.mg-hero-chip-v b {
  color: #fff;
}

/* ---------- Passos ---------- */
.mg-steps-sec {
  padding: 32px 0 24px;
}
.mg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mg-steps li {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
}
.mg-step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
}
.mg-steps h3 {
  margin: 2px 0 6px;
  font-size: 17px;
  color: var(--fg);
}
.mg-steps p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg3);
}

/* ---------- Planos ---------- */
.mg-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.mg-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: var(--r);
  background: linear-gradient(180deg, #13284a 0%, #0e1f35 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.mg-plan.is-apto {
  border-color: var(--accLine);
}
.mg-plan.is-casa {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(246, 197, 107, 0.16), transparent 60%),
    linear-gradient(180deg, #0c3a66 0%, #0a2746 100%);
  border-color: var(--goldLine);
  box-shadow:
    0 0 0 1px rgba(246, 197, 107, 0.15),
    0 30px 60px -28px rgba(243, 156, 74, 0.5);
}
.mg-plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
}
.mg-plan.is-casa .mg-plan-badge {
  background: var(--gradGold);
  color: #2a1700;
}
.mg-plan-k {
  font-family: Sora, Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}
.mg-plan.is-casa .mg-plan-k {
  color: var(--gold);
}
.mg-plan.is-apto .mg-plan-k {
  color: var(--acc);
}
.mg-plan-price {
  margin: 18px 0 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.mg-plan-price span {
  font-size: 0.6em;
  vertical-align: 0.35em;
  opacity: 0.85;
}
.mg-plan-price small {
  margin-left: 6px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fg3);
}
.mg-plan hr {
  width: 100%;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.mg-plan-unit {
  margin: 0 0 22px;
  font-family: Sora, Inter, sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}
.mg-plan-unit span {
  display: block;
  margin-top: 2px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg3);
}
.mg-plan-unit.is-hl {
  font-size: 36px;
  background: linear-gradient(135deg, #7fd6ff, #2aa9ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mg-plan-bonus {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(6, 16, 29, 0.45);
  border: 1px dashed var(--accLine);
  color: var(--fg2);
  font-size: 14.5px;
  line-height: 1.35;
  margin-top: auto;
}
.mg-plan.is-casa .mg-plan-bonus {
  border-color: var(--goldLine);
}
.mg-plan-bonus:hover {
  color: var(--fg);
}
.mg-plan-bonus img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.mg-plan-bonus small {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
}
.mg-plan.is-casa .mg-plan-bonus small {
  color: var(--gold);
}
.mg-plan-bonus b {
  color: #fff;
}
.mg-plan-unit + .mg-btn {
  margin-top: auto;
}
.mg-plan .mg-btn {
  width: 100%;
}
.mg-fine {
  margin: 24px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg3);
}

/* ---------- Imóveis ---------- */
.mg-prop {
  overflow: hidden;
}
.mg-prop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 0% 30%, rgba(46, 138, 153, 0.16), transparent 70%);
}
.mg-prop.is-casa::before {
  background: radial-gradient(60% 50% at 100% 20%, rgba(246, 197, 107, 0.1), transparent 70%);
}
.mg-prop-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.mg-prop-grid.is-rev .mg-prop-text {
  order: 2;
}
.mg-prop-logo {
  display: block;
  width: auto;
  height: 64px;
  margin: 22px 0 22px;
}
.mg-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 28px 0 22px;
  padding: 0;
}
.mg-facts li {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--fg3);
}
.mg-facts b {
  font-family: Sora, Inter, sans-serif;
  font-size: 24px;
  color: #fff;
}
.mg-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mg-checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg2);
}
.mg-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235dc4f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--accBg);
}
.is-casa .mg-checks li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6c56b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--goldBg);
}

/* Galeria em mosaico */
.mg-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 160px);
  gap: 10px;
}
.mg-ph {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}
.mg-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.mg-ph:hover img {
  transform: scale(1.05);
}
.mg-ph.is-main {
  grid-column: span 2;
  grid-row: span 2;
}
.mg-ph:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Faixa do condomínio */
.mg-strip {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 40px;
}
.mg-strip figure {
  position: relative;
  margin: 0;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
}
.mg-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg-strip figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 16, 29, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Sorteio ---------- */
.mg-raffle {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid var(--goldLine);
  background: #081a30;
  box-shadow: 0 40px 80px -40px rgba(243, 156, 74, 0.45);
}
.mg-raffle-bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.mg-raffle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #081a30 0%, #081a30 42%, rgba(8, 26, 48, 0.55) 70%, rgba(8, 26, 48, 0.2) 100%),
    radial-gradient(60% 80% at 0% 0%, rgba(246, 197, 107, 0.18), transparent 60%);
}
.mg-raffle-body {
  max-width: 560px;
  padding: 56px;
}
.mg-raffle-body .mg-h2 {
  margin-top: 18px;
}
.mg-raffle-steps {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mg-raffle-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--fg2);
}
.mg-raffle-steps span {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  border: 1px solid var(--goldLine);
  background: var(--goldBg);
}
.mg-raffle-soon {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--fg3);
}

/* ---------- FAQ ---------- */
.mg-faq-wrap {
  max-width: 820px;
}
.mg-faq {
  display: grid;
  gap: 10px;
}
.mg-faq details {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.mg-faq details[open] {
  border-color: var(--accLine);
}
.mg-faq summary {
  position: relative;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  cursor: pointer;
}
.mg-faq summary::-webkit-details-marker {
  display: none;
}
.mg-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--acc);
  transition: transform 0.2s ease;
}
.mg-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.mg-faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg2);
}

/* ---------- CTA final ---------- */
.mg-final {
  padding-bottom: 120px;
}
.mg-final-inner {
  max-width: 760px;
  text-align: center;
}
.mg-final .mg-sub {
  margin-bottom: 28px;
}

/* ---------- Barra fixa mobile ---------- */
.mg-mobilebar {
  display: none;
}

/* ---------- Lightbox ---------- */
.mg-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 9, 17, 0.94);
}
.mg-lightbox::backdrop {
  background: rgba(3, 9, 17, 0.8);
}
.mg-lightbox[open] {
  display: grid;
  place-items: center;
}
.mg-lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 96px);
  border-radius: 14px;
  object-fit: contain;
}
.mg-lb-close,
.mg-lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 31, 53, 0.8);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.mg-lb-close {
  top: 16px;
  right: 16px;
}
.mg-lb-nav {
  top: 50%;
  transform: translateY(-50%);
}
.mg-lb-nav.is-prev {
  left: 16px;
}
.mg-lb-nav.is-next {
  right: 16px;
}

/* ---------- Animação de entrada ---------- */
.mg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.mg-reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .mg-reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .mg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mg-hero-bg img,
  .mg-pulse {
    animation: none;
  }
}

/* =====================================================
   Responsivo
   ===================================================== */
@media (max-width: 1024px) {
  .mg-plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .mg-plan:first-child {
    order: 3;
    grid-column: span 2;
  }
  .mg-prop-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mg-prop-grid.is-rev .mg-prop-text {
    order: 0;
  }
  .mg-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .mg-strip-wide {
    grid-column: span 3;
  }
}

@media (max-width: 767px) {
  .mg-section {
    padding: 64px 0;
  }
  .mg-wrap {
    padding: 0 16px;
  }
  .mg-head {
    margin-bottom: 32px;
  }
  .mg-sub {
    font-size: 16px;
  }

  /* Hero */
  .mg-hero {
    padding: 104px 0 28px;
  }
  .mg-hero-bg img {
    object-position: center 45%;
  }
  .mg-hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(6, 16, 29, 0.88) 38%, rgba(6, 16, 29, 0.35) 70%, rgba(6, 16, 29, 0.7) 100%);
  }
  .mg-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .mg-countdown-grid b {
    font-size: 24px;
  }
  .mg-hero-ctas .mg-btn {
    flex: 1 1 100%;
  }
  .mg-hero-pair {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
    gap: 10px;
  }
  .mg-hero-chip {
    padding: 12px 14px;
  }
  .mg-hero-chip-v {
    font-size: 13.5px;
  }

  /* Passos */
  .mg-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mg-steps li {
    padding: 18px;
  }

  /* Planos */
  .mg-plans {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .mg-plan:first-child {
    grid-column: auto;
  }
  .mg-plan.is-casa {
    order: -1;
  }
  .mg-plan {
    padding: 28px 22px 22px;
  }
  .mg-plan-price {
    font-size: 36px;
  }

  /* Imóveis */
  .mg-prop-logo {
    height: 52px;
  }
  .mg-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .mg-gallery {
    display: flex;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .mg-gallery::-webkit-scrollbar {
    display: none;
  }
  .mg-ph,
  .mg-ph.is-main {
    flex: 0 0 72%;
    height: 340px;
    scroll-snap-align: center;
  }
  .mg-strip {
    display: flex;
    margin: 24px -16px 0;
    padding: 0 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .mg-strip::-webkit-scrollbar {
    display: none;
  }
  .mg-strip figure {
    flex: 0 0 62%;
    height: 220px;
    scroll-snap-align: center;
  }
  .mg-strip-wide {
    flex-basis: 88% !important;
  }

  /* Sorteio */
  .mg-raffle {
    border-radius: 22px;
  }
  .mg-raffle-bg {
    width: 100%;
    height: 220px;
    inset: 0 0 auto 0;
  }
  .mg-raffle::after {
    background:
      linear-gradient(180deg, rgba(8, 26, 48, 0.1) 0%, #081a30 210px),
      radial-gradient(80% 50% at 0% 100%, rgba(246, 197, 107, 0.16), transparent 60%);
  }
  .mg-raffle-body {
    padding: 170px 22px 26px;
  }
  .mg-raffle-body .mg-btn {
    width: 100%;
  }

  /* Barra fixa */
  .mg-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 16, 29, 0.92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .mg-mobilebar.is-on {
    transform: none;
  }
  .mg-mobilebar .mg-btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14.5px;
  }
  .mg-final {
    padding-bottom: 110px;
  }
  .mg .page footer {
    padding-bottom: 80px;
  }
}

@media (max-width: 380px) {
  .mg-hero-pair {
    grid-template-columns: 1fr;
  }
  .mg-countdown-grid b {
    font-size: 21px;
  }
}
