:root {
  --brand-green: #58b888;
  --brand-blue: #4060a8;
  --brand-blue-soft: #a0b8e0;
  --brand-ink: #1a2744;
  --background: #f7fbf9;
  --foreground: #1a2744;
  --muted: #eef5f1;
  --muted-foreground: #51607a;
  --border: #d5e3dc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo-wordmark {
  height: 2rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  order: 3;
  width: 100%;
  justify-content: center;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
  padding: 0.4rem 0.65rem;
  border-radius: 0.6rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 6%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  overflow: hidden;
  background: #fff;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  line-height: 1;
}

.lang-switch button.is-active {
  background: var(--brand-blue);
  color: #fff;
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: -2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-ghost {
  color: var(--brand-blue);
  background: transparent;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--brand-blue) 5%, transparent);
}

.btn-primary {
  color: #fff;
  background: var(--brand-blue);
  box-shadow: 0 1px 2px rgba(26, 39, 68, 0.08);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--brand-blue) 90%, #000);
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-outline {
  color: var(--brand-blue);
  background: #fff;
  border-color: color-mix(in srgb, var(--brand-blue) 25%, transparent);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--brand-blue) 5%, transparent);
}

.btn-green {
  color: #fff;
  background: var(--brand-green);
}

.btn-green:hover {
  background: color-mix(in srgb, var(--brand-green) 90%, #000);
}

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -8%, color-mix(in srgb, var(--brand-blue-soft) 55%, transparent), transparent 58%),
    radial-gradient(900px 480px at 100% 8%, color-mix(in srgb, var(--brand-green) 22%, transparent), transparent 52%),
    linear-gradient(180deg, #f7fbf9 0%, #eef5f1 100%);
}

.hero-inner {
  display: flex;
  min-height: calc(100vh - 4.25rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.hero-page .hero-inner {
  min-height: auto;
  align-items: flex-start;
  text-align: left;
  padding: 3.5rem 0 3rem;
}

.hero-page .hero-inner.centered {
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.hero-page h1 {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--brand-ink);
}

.page-narrow {
  max-width: 46rem;
  margin-inline: auto;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 800;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 8%, transparent);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.footer-nav a:hover {
  color: var(--brand-blue);
}

.logo-principal {
  height: 9rem;
  width: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brand-ink);
}

.hero h1 .accent {
  color: var(--brand-green);
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(28rem, 100%);
  margin-top: 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-white {
  background: #fff;
}

.section-muted {
  background: color-mix(in srgb, var(--muted) 60%, #fff);
}

.section-head {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
}

.feature-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand-green) 12%, transparent);
  color: var(--brand-green);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.feature p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.steps {
  display: grid;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
}

.step h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.step p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* CTA band */
.cta-band {
  background: var(--brand-blue);
  color: #fff;
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.cta-band .logo-icon {
  height: 3.5rem;
  width: auto;
  margin: 0 auto 1.25rem;
  filter: brightness(0) invert(1);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .cta-row {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  height: 1.75rem;
  width: auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.footer-link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .logo-wordmark {
    height: 2.25rem;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }

  .logo-principal {
    height: 11rem;
  }

  .hero-lead {
    font-size: 1.125rem;
  }

  .cta-row {
    width: auto;
    flex-direction: row;
    justify-content: center;
  }

  .hero-page .cta-row {
    justify-content: flex-start;
  }

  .hero-page .hero-inner.centered .cta-row {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 0;
    width: auto;
    flex: 1;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .logo-principal {
    height: 13rem;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
