/* Keep the main routes easy to reach on compact screens. */
@media (max-width: 1120px) {
  .nav { gap: 16px; }
}

.nav-client {
  padding: 9px 13px;
  border: 1px solid #168454;
  border-radius: 99px;
  background: linear-gradient(120deg, #188653, #116f4c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav a.nav-client:link,
.nav a.nav-client:visited,
.nav a.nav-client:hover,
.nav a.nav-client:focus,
.nav a.nav-client:active { color: #fff; }
.nav-client:hover,
.nav-client:focus-visible,
.nav-client:active {
  border-color: #0d6598;
  background: linear-gradient(120deg, #1685bf, #0c5f91);
}

@media (max-width: 920px) {
  .bar { position: relative; }
  .menu {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
  }
  .menu i,
  .menu i::before,
  .menu i::after {
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--ink);
  }
  .menu i { position: relative; }
  .menu i::before,
  .menu i::after {
    position: absolute;
    left: 0;
    content: "";
  }
  .menu i::before { top: -5px; }
  .menu i::after { top: 5px; }
  .menu[aria-expanded="true"] i { background: transparent; }
  .menu[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
  .menu[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
  .nav {
    position: absolute;
    z-index: 2;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    border: 1px solid #dfe7ee;
    border-top: 0;
    background: var(--paper);
    box-shadow: 0 16px 24px #11365312;
  }
  .nav.closed { display: none; }
  .nav a { padding: 11px 4px; }
  .nav .nav-client { margin-top: 6px; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav a { transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease; }
  .nav a.nav-client { transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease; }
  .btn:hover,
  .nav a.nav-client:hover { transform: translateY(-2px); }
  .secondary:hover { box-shadow: 0 8px 20px #11365312; }

  .hero-image { animation: gentle-float 8s ease-in-out infinite; }
  .caption { animation: gentle-float 6s ease-in-out -1.5s infinite; }
  .orbit .orb-a { animation: orbit-a 11s ease-in-out infinite alternate; }
  .orbit .orb-b { animation: orbit-b 13s ease-in-out -3s infinite alternate; }
  .orbit .orb-c { animation: orbit-c 15s ease-in-out -5s infinite alternate; }
  .orbit > b { animation: core-pulse 5s ease-in-out infinite; }
  .map-art::before { animation: coverage-pulse 6s ease-in-out infinite; }
  .map-art::after { animation: coverage-pulse 6s ease-in-out -2s infinite; }

  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes orbit-a { to { transform: rotate(-25deg) scaleY(.7); } }
@keyframes orbit-b { to { transform: rotate(38deg) scaleY(.75); } }
@keyframes orbit-c { to { transform: rotate(-60deg) scaleY(.72); } }
@keyframes core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 45px #114a711f; }
  50% { transform: scale(1.025); box-shadow: 0 24px 54px #114a7129; }
}
@keyframes coverage-pulse {
  0%, 100% { opacity: .5; transform: scale(.97); }
  50% { opacity: .9; transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .caption,
  .orbit i,
  .orbit > b,
  .map-art::before,
  .map-art::after { animation: none !important; }
  .motion-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.footnote a { color: #0e5d92; font-weight: 700; text-decoration: none; }
.footnote a:hover { text-decoration: underline; }

.grid .plan-price {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.grid .plan-price small {
  margin-left: 6px;
  color: #718094;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.grid article > .whatsapp-link { color: #178455; }

.plans .grid { gap: 16px; align-items: stretch; }
.grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 310px;
  padding: 26px 22px 22px;
  border: 1px solid #dbe7ee;
  border-radius: 23px;
  background: linear-gradient(155deg, #fff 0%, #f6fbfd 100%);
  box-shadow: 0 12px 30px #0b35540d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #167db5, #50a45a);
  opacity: .55;
  content: "";
}
.grid article::after {
  position: absolute;
  z-index: -1;
  top: 35px;
  right: -38px;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #c9e9f2 0, #e7f4f6 45%, transparent 72%);
  opacity: .55;
  content: "";
  pointer-events: none;
}
.grid article > small:first-child {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4f8;
  color: #176b94;
  font-size: 9px;
  letter-spacing: .09em;
}
.grid article > small:first-child::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}
.grid article h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 25px 0 0;
  color: var(--ink);
  font-size: clamp(40px, 3.6vw, 50px);
  line-height: .98;
}
.grid article h3 em { color: var(--blue); font-size: 18px; font-weight: 700; }
.grid article > p:not(.plan-price) {
  max-width: 240px;
  min-height: 56px;
  margin: 12px 0 24px;
  color: #667587;
  font-size: 13px;
  line-height: 1.55;
}
.grid article > .whatsapp-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid #168454;
  border-radius: 12px;
  background: linear-gradient(120deg, #188653, #116f4c);
  box-shadow: 0 8px 18px #14794d24;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.grid article > .whatsapp-link:link,
.grid article > .whatsapp-link:visited,
.grid article > .whatsapp-link:hover,
.grid article > .whatsapp-link:focus,
.grid article > .whatsapp-link:active { color: #fff; }
.grid article > .whatsapp-link:hover,
.grid article > .whatsapp-link:focus-visible,
.grid article > .whatsapp-link:active {
  border-color: #0d6598;
  background: linear-gradient(120deg, #1685bf, #0c5f91);
}

.btn.primary,
.btn.primary:link,
.btn.primary:visited,
.btn.primary:hover,
.btn.primary:focus,
.btn.primary:active {
  border-color: #168454;
  background: linear-gradient(120deg, #188653, #116f4c);
  color: #fff;
  box-shadow: 0 10px 24px #14794d38;
}
.btn.primary:hover,
.btn.primary:focus-visible,
.btn.primary:active {
  border-color: #0d6598;
  background: linear-gradient(120deg, #1685bf, #0c5f91);
  color: #fff;
}
.grid .featured {
  border-color: #85c9aa;
  background: linear-gradient(148deg, #fbfffc 0%, #eaf8f0 100%);
  box-shadow: 0 18px 42px #2180521c;
}
.grid .featured::before { height: 6px; opacity: 1; }
.grid .featured > small:first-child { background: #dff3e6; color: #16734a; }

@media (prefers-reduced-motion: no-preference) {
  .grid article:hover {
    transform: translateY(-6px);
    border-color: #b5d3e0;
    box-shadow: 0 22px 48px #0b35541b;
  }
  .grid .featured:hover { border-color: #69b991; }
  .grid article > .whatsapp-link { transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease; }
  .grid article > .whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px #147db538;
  }
}

@media (max-width: 700px) {
  .hero .actions { justify-content: center; }
  .hero .actions > .btn.primary { width: min(100%, 300px); }
  .plans .grid { gap: 10px; }
  .grid article { min-height: 270px; padding: 21px 15px 16px; border-radius: 18px; }
  .grid article > small:first-child { gap: 5px; padding: 5px 7px; font-size: 8px; }
  .grid article h3 { gap: 6px; margin-top: 20px; font-size: clamp(31px, 8vw, 38px); }
  .grid article h3 em { font-size: 14px; }
  .grid .plan-price { margin-top: 5px; font-size: 23px; }
  .grid .plan-price small { margin-left: 4px; font-size: 10px; }
  .grid article > p:not(.plan-price) { min-height: 53px; margin: 8px 0 16px; font-size: 10px; }
  .grid article > .whatsapp-link { width: fit-content; min-width: min(100%, 220px); max-width: 100%; min-height: 42px; align-self: center; margin-inline: auto; padding: 0 8px; font-size: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .grid article:hover,
  .grid article > .whatsapp-link:hover { transform: none; }
}

.family-banner {
  position: relative;
  display: flex;
  min-height: 570px;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  background: #071d32;
  color: #fff;
}
.family-banner-image,
.family-banner-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.family-banner-image { z-index: 0; object-fit: cover; object-position: center 52%; }
.family-banner-overlay {
  z-index: 1;
  background: linear-gradient(90deg, #061a2bf2 0%, #06243edb 31%, #06243e62 58%, #071d3220 100%), linear-gradient(0deg, #061a2b55, transparent 48%);
}
.family-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 570px;
  align-items: center;
}
.family-banner-copy { width: min(570px, 54%); padding: 72px 0; }
.family-banner .eyebrow { color: #d3e8f2; }
.family-banner h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.family-banner h2 span { color: #b2e86c; }
.family-banner-copy > p:not(.eyebrow) {
  max-width: 475px;
  margin: 0 0 25px;
  color: #ffffffd6;
  font-size: 16px;
  line-height: 1.65;
}
.family-banner .family-banner-cta {
  min-width: 205px;
  min-height: 54px;
  justify-content: center;
  border-radius: 13px;
  font-size: 14px;
}
.family-banner-chip {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid #ffffff38;
  border-radius: 99px;
  background: #061c30b8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.family-banner-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ce266;
  box-shadow: 0 0 0 5px #9ce2662b;
}

@media (prefers-reduced-motion: no-preference) {
  .family-banner-image { animation: family-banner-drift 24s ease-in-out infinite alternate; }
  .family-banner-chip { animation: gentle-float 6s ease-in-out infinite; }
  .family-banner .family-banner-cta { transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease; }
}
@keyframes family-banner-drift {
  from { transform: scale(1.015) translateX(0); }
  to { transform: scale(1.075) translateX(-.7%); }
}

@media (max-width: 700px) {
  .family-banner,
  .family-banner-content { min-height: 590px; }
  .family-banner-image { object-position: 69% center; }
  .family-banner-overlay { background: linear-gradient(180deg, #061a2bf0 0%, #061a2be0 40%, #061a2b67 72%, #061a2b3d 100%); }
  .family-banner-content { align-items: flex-start; }
  .family-banner-copy { display: flex; width: 100%; flex-direction: column; align-items: center; padding: 48px 0 170px; text-align: center; }
  .family-banner .eyebrow { justify-content: center; font-size: 9px; }
  .family-banner h2 { font-size: clamp(36px, 9.5vw, 48px); }
  .family-banner-copy > p:not(.eyebrow) { max-width: 420px; font-size: 14px; }
  .family-banner .family-banner-cta { width: min(100%, 300px); }
  .family-banner-chip { right: 0; bottom: 23px; left: 0; width: fit-content; margin: auto; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .family-banner-image,
  .family-banner-chip { animation: none !important; }
}

/* Alternating plan cards: white, green, blue, white. */
.grid article:nth-child(2) {
  border-color: #0e5f3b;
  background: linear-gradient(150deg, #14764a 0%, #0e5f3b 100%);
  box-shadow: 0 18px 42px #0e5f3b2b;
}
.grid article:nth-child(3) {
  border-color: #0a527d;
  background: linear-gradient(150deg, #0c6898 0%, #08486f 100%);
  box-shadow: 0 18px 42px #08486f30;
}
.grid article:nth-child(2)::before { background: linear-gradient(90deg, #c6ef87, #fff); opacity: 1; }
.grid article:nth-child(3)::before { background: linear-gradient(90deg, #a9e6f6, #fff); opacity: 1; }
.grid article:nth-child(2) > small:first-child,
.grid article:nth-child(3) > small:first-child {
  border: 1px solid #ffffff40;
  background: #ffffff20;
  color: #fff;
}
.grid article:nth-child(2) > small:first-child::before { background: #c6ef87; }
.grid article:nth-child(3) > small:first-child::before { background: #a9e6f6; }
.grid article:nth-child(2) h3,
.grid article:nth-child(2) h3 em,
.grid article:nth-child(3) h3,
.grid article:nth-child(3) h3 em,
.grid article:nth-child(2) .plan-price,
.grid article:nth-child(2) .plan-price strong,
.grid article:nth-child(2) .plan-price small,
.grid article:nth-child(3) .plan-price,
.grid article:nth-child(3) .plan-price strong,
.grid article:nth-child(3) .plan-price small,
.grid article:nth-child(2) > p:not(.plan-price),
.grid article:nth-child(3) > p:not(.plan-price) { color: #fff; }
.grid article:nth-child(2) > .whatsapp-link,
.grid article:nth-child(2) > .whatsapp-link:link,
.grid article:nth-child(2) > .whatsapp-link:visited {
  border-color: #78c999;
  background: linear-gradient(120deg, #0b5637, #073f2a);
  color: #fff;
  box-shadow: 0 8px 18px #062d1f55;
}
.grid article:nth-child(3) > .whatsapp-link,
.grid article:nth-child(3) > .whatsapp-link:link,
.grid article:nth-child(3) > .whatsapp-link:visited {
  border-color: #75c796;
  background: linear-gradient(120deg, #14764a, #0e5f3b);
  color: #fff;
  box-shadow: 0 8px 18px #062d1f45;
}
.grid article:nth-child(2) > .whatsapp-link:hover,
.grid article:nth-child(2) > .whatsapp-link:focus,
.grid article:nth-child(2) > .whatsapp-link:active,
.grid article:nth-child(3) > .whatsapp-link:hover,
.grid article:nth-child(3) > .whatsapp-link:focus,
.grid article:nth-child(3) > .whatsapp-link:active {
  border-color: #8ed3ee;
  background: linear-gradient(120deg, #0d6b9e, #084d78);
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .grid article:nth-child(2):hover { border-color: #78c999; box-shadow: 0 24px 50px #0e5f3b42; }
  .grid article:nth-child(3):hover { border-color: #75c9e8; box-shadow: 0 24px 50px #08486f45; }
}
