/* COMPARIO primary compare CTAs always show their real brand gradient.
   Disabled state blocks interaction only; it must not visually mute the brand. */
.cmp-card__cta,
.compare-cta,
.cmp-card__cta:hover,
.compare-cta:hover,
.cmp-card__cta:disabled,
.compare-cta:disabled {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.cmp-card__cta:disabled,
.compare-cta:disabled {
  cursor: not-allowed !important;
}

/* The comparison panel is the product, not a brand billboard. */
.compare-panel__head {
  grid-template-columns: minmax(0, 1fr) !important;
}

.compare-panel__head > img {
  display: none !important;
}

/* Homepage hero editorial calibration — desktop LatAm + diaspora. */
html body .main-hero.main-hero::before {
  background:
    radial-gradient(
      ellipse 58% 52% at 17% 23%,
      rgba(3, 11, 21, 0.84) 0%,
      rgba(3, 11, 21, 0.66) 38%,
      rgba(3, 11, 21, 0.28) 66%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 11, 21, 0.13) 0%,
      rgba(3, 11, 21, 0.05) 30%,
      transparent 52%
    ),
    linear-gradient(
      180deg,
      rgba(3, 11, 21, 0.12) 0%,
      transparent 24%,
      transparent 73%,
      rgba(3, 11, 21, 0.7) 100%
    ) !important;
}

html body .main-hero .main-hero__copy {
  transform: translateY(-40px) !important;
}

html body .main-hero .quick-start {
  transform: translateY(78px) !important;
}

html body .main-hero .hero-earth-layer {
  top: 36.5% !important;
  left: 53.5% !important;
  width: min(98vw, 1900px) !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
}

html body .main-hero .hero-earth-layer__earth {
  filter: saturate(1.01) contrast(1.05) brightness(0.99) !important;
}

html body .main-hero .hero-earth-layer__connections {
  opacity: 0.8 !important;
  mix-blend-mode: screen !important;
}

html body .main-hero .hero-earth-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 24% 32% at 31% 63%,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.043) 42%,
    transparent 78%
  );
  mix-blend-mode: screen;
}

@media (max-width: 1040px) {
  html body .main-hero .main-hero__copy {
    transform: translateY(-28px) !important;
  }

  html body .main-hero .quick-start {
    transform: translateY(54px) !important;
  }

  html body .main-hero .hero-earth-layer {
    top: 40.5% !important;
    left: 53% !important;
    width: 112vw !important;
    transform: translate(-50%, -50%) scale(1.06) !important;
  }
}

/* Mobile header: compact distribution, stable touch targets and a cleaner 2-line menu icon. */
@media (max-width: 720px) {
  html body .site-header {
    min-height: 4rem !important;
    gap: .45rem !important;
    padding: .5rem .7rem !important;
    border-radius: 0 0 .9rem .9rem !important;
  }

  html body .site-header .brand-lockup {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  html body .site-header .wordmark {
    width: min(9.2rem, 39vw) !important;
    max-width: none !important;
    height: auto !important;
  }

  html body .header-actions {
    flex: 0 0 auto;
    gap: .28rem !important;
    margin-left: auto;
  }

  html body .theme-toggle,
  html body .account-link,
  html body .menu-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  html body .theme-toggle,
  html body .account-link {
    border-radius: .75rem !important;
  }

  html body .menu-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent !important;
    border-radius: .78rem !important;
    background:
      linear-gradient(var(--surface), var(--surface)) padding-box,
      linear-gradient(120deg, var(--brand-fuchsia), var(--brand-coral)) border-box !important;
    box-shadow: 0 8px 22px -16px rgba(255, 20, 120, .7);
  }

  html body .menu-toggle span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-fuchsia), var(--brand-coral)) !important;
    transform-origin: center;
    transition: transform .18s ease;
  }

  html body .menu-toggle.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  html body .menu-toggle.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  html body .site-header nav {
    inset: 4.25rem .65rem auto !important;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    padding: .65rem !important;
    border-radius: .95rem !important;
    box-shadow: 0 22px 60px -32px rgba(0, 0, 0, .75);
  }

  /* Mobile homepage hero: use normal document flow. Transforms were creating visual gaps. */
  html body .main-hero.main-hero {
    min-height: auto !important;
    align-items: start !important;
    padding: 1.55rem 1rem 2rem !important;
  }

  html body .main-hero .main-hero__grid {
    width: 100% !important;
    gap: 1.15rem !important;
  }

  html body .main-hero .main-hero__copy {
    width: 100% !important;
    max-width: 40rem !important;
    padding-left: 0 !important;
    transform: none !important;
  }

  html body .main-hero .main-hero__copy h1 {
    max-width: 12ch !important;
    font-size: clamp(2.55rem, 11.7vw, 3.65rem) !important;
    line-height: .97 !important;
    letter-spacing: -.065em !important;
  }

  html body .main-hero .main-hero__lead {
    max-width: 34rem !important;
    margin-top: .8rem !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
  }

  html body .main-hero .quick-start {
    width: 100% !important;
    margin: .35rem 0 0 !important;
    transform: none !important;
  }

  html body .main-hero .hero-earth-layer {
    top: 43% !important;
    left: 49% !important;
    width: 152vw !important;
    transform: translate(-50%, -50%) scale(1.02) !important;
  }

  html body .main-hero .hero-earth-layer__earth {
    filter: saturate(.99) contrast(1.04) brightness(.92) !important;
  }

  html body .main-hero .hero-earth-layer__connections {
    opacity: .46 !important;
  }

  html body .main-hero.main-hero::before {
    background:
      radial-gradient(
        ellipse 86% 42% at 25% 10%,
        rgba(3, 11, 21, .72) 0%,
        rgba(3, 11, 21, .40) 46%,
        transparent 100%
      ),
      linear-gradient(
        180deg,
        rgba(3, 11, 21, .14) 0%,
        rgba(3, 11, 21, .06) 52%,
        rgba(3, 11, 21, .65) 100%
      ) !important;
  }

  html body .main-hero .hero-earth-layer::after {
    background: radial-gradient(
      ellipse 27% 32% at 31% 63%,
      rgba(255, 255, 255, .068) 0%,
      rgba(255, 255, 255, .028) 44%,
      transparent 78%
    );
  }
}

@media (max-width: 430px) {
  html body .site-header .wordmark {
    width: min(8.35rem, 36vw) !important;
  }

  html body .theme-toggle,
  html body .account-link,
  html body .menu-toggle {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  html body .main-hero.main-hero {
    padding-top: 1.35rem !important;
    padding-bottom: 1.6rem !important;
  }

  html body .main-hero .quick-start__countries {
    grid-template-columns: 1fr !important;
    gap: .65rem !important;
  }

  html body .main-hero .hero-earth-layer {
    top: 39% !important;
    left: 46% !important;
    width: 168vw !important;
  }
}

@media (max-width: 360px) {
  html body .site-header {
    padding-inline: .55rem !important;
  }

  html body .site-header .wordmark {
    width: 7.5rem !important;
  }

  html body .header-actions {
    gap: .2rem !important;
  }

  html body .theme-toggle,
  html body .account-link,
  html body .menu-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}
