body {
  overflow-x: hidden;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.section {
  padding-block: var(--section-space);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
}

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--cyan-500);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--cyan-400);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--cyan-500);
  border-radius: 4px;
  background: var(--cyan-500);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  padding: 0.66rem 1.25rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button .fa-whatsapp,
[data-whatsapp] .fa-whatsapp {
  font-size: 1.15em;
  line-height: 1;
}

.button:hover {
  border-color: #079fc8;
  background: #079fc8;
  box-shadow: 0 10px 22px rgba(19, 175, 214, 0.22);
  transform: translateY(-1px);
}

.button--small {
  min-height: 40px;
  padding-inline: 1.15rem;
}

.button--lg {
  min-height: 54px;
  padding: 0.9rem 1.7rem;
  font-size: 0.92rem;
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.button--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.text-link,
.digital-feature a,
.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 750;
}

.text-link .icon,
.digital-feature a .icon,
.article-card__more .icon {
  width: 1rem;
  transition: transform 180ms ease;
}

.text-link:hover .icon,
.digital-feature a:hover .icon,
.article-card__more:hover .icon {
  transform: translateX(3px);
}

.round-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
}

.round-icon .icon {
  width: 17px;
}

.round-icon--teal {
  background: var(--teal-500);
}

.round-icon--lime {
  background: var(--lime-500);
}

.round-icon--orange {
  background: var(--orange-500);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  background: #fff;
  color: var(--navy-950);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f6c744;
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .wa-float__pulse,
  .wa-float__pulse--delay {
    animation: none;
    opacity: 0;
  }

  .wa-float__badge {
    animation: none;
  }
}

/* WhatsApp flutuante + captura de leads */
.wa-float {
  position: fixed;
  z-index: 1200;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-sans);
}

.wa-float__bubble {
  max-width: min(268px, calc(100vw - 96px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.wa-float__bubble.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.wa-float__bubble[hidden],
.wa-float__panel[hidden] {
  display: none !important;
}

.wa-float__bubble strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-900);
  font-weight: 760;
}

.wa-float__bubble-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.wa-float__bubble {
  position: relative;
  padding-right: 36px;
}

.wa-float__bubble-close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.wa-float__panel {
  width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(8, 50, 91, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(3, 41, 79, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.wa-float__panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-float__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--blue-600) 100%);
  color: #fff;
}

.wa-float__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.35rem;
}

.wa-float__head h2 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.wa-float__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.35;
}

.wa-float__close {
  margin-left: auto;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.wa-float__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.wa-float__body {
  padding: 16px;
}

.wa-float__intro {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 0.84rem;
  line-height: 1.4;
}

.wa-float__field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.wa-float__field label {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.wa-float__field label span {
  color: var(--muted);
  font-weight: 500;
}

.wa-float__field input,
.wa-float__field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wa-float__field input:focus,
.wa-float__field select:focus {
  outline: none;
  border-color: var(--cyan-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19, 177, 217, 0.18);
}

.wa-float__field input.is-invalid,
.wa-float__field select.is-invalid {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.wa-float__error {
  margin: -4px 0 10px;
  color: #c0392b;
  font-size: 0.74rem;
  min-height: 1.1em;
}

.wa-float__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.wa-float__submit {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.wa-float__submit:hover {
  background: #1ebe57;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
  transform: translateY(-1px);
}

.wa-float__skip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wa-float__skip:hover {
  color: var(--ink);
}

.wa-float__privacy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.wa-float__privacy a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wa-float__launcher-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.wa-float__pulse,
.wa-float__pulse--delay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.wa-float__pulse--delay {
  animation-delay: 1.1s;
}

.wa-float__launcher {
  position: relative;
  z-index: 1;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
  font-size: 1.85rem;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.wa-float__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.45);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  animation: wa-badge-pop 1.8s ease-in-out infinite;
  pointer-events: none;
}

.wa-float__launcher:hover {
  background: #1ebe57;
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

.wa-float__launcher[aria-expanded="true"] {
  background: var(--navy-900);
  box-shadow: 0 12px 28px rgba(3, 41, 79, 0.28);
}

.wa-float.is-open .wa-float__pulse,
.wa-float.is-open .wa-float__pulse--delay,
.wa-float.is-open .wa-float__bubble {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.wa-float.is-open .wa-float__badge,
.wa-float.is-seen .wa-float__badge {
  display: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.75);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

@keyframes wa-badge-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 480px) {
  .wa-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .wa-float__panel {
    width: min(100vw - 24px, 340px);
  }

  .wa-float__launcher {
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
  }
}
