:root {
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --accent: #10b981;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --paper: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --hero-bg: #092126;
  --hero-ink: #e6f2f1;
  --hero-soft: #9db8b6;
  --radius: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #0f2f35;
    --ink: #e6f2f1;
    --ink-soft: #9db8b6;
    --ink-muted: #7f9c9a;
    --paper: #092126;
    --card: #0f2f35;
    --line: #1e4a52;
    --hero-bg: #061719;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--hero-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo img {
  width: 34px;
  height: 34px;
}

.logo .inv {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--hero-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  color: #fff;
}

/* "Entrar": the web app (Premium) at /app */
.nav .nav-enter {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #062a22;
  font-weight: 800;
  white-space: nowrap;
}

.nav .nav-enter:hover {
  background: #34d399;
  color: #062a22;
}

/* Language switch: segmented pill with a sliding thumb */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  isolation: isolate;
}

.lang-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.lang-switch[data-active="en"]::before {
  transform: translateX(100%);
}

.nav .lang-switch a {
  min-width: 42px;
  padding: 5px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--hero-soft);
  border-radius: 999px;
  transition: color 0.22s ease;
}

.nav .lang-switch a:hover {
  color: #fff;
}

.lang-switch[data-active="es"] a[hreflang="es"],
.lang-switch[data-active="en"] a[hreflang="en"] {
  color: #062a22;
}

/* Smooth cross-page swap in browsers with View Transitions */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

/* Suggests the other language once */
.lang-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  background: #0f2f35;
  color: #e6f2f1;
  font-size: 14px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 16px 40px rgb(0 0 0 / 0.35);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lang-toast-go {
  flex: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #062a22;
  font-weight: 700;
  text-decoration: none;
}

.lang-toast-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9db8b6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lang-toast-close:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

@media (max-width: 480px) {
  .lang-toast span {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav .hide-sm {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #062a22;
}

.btn-primary:hover {
  background: #34d399;
}

.btn.is-soon {
  cursor: default;
}

.btn.is-soon:hover {
  background: var(--accent);
}

.btn.is-soon:active {
  transform: none;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.22);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.06);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(16 185 129 / 0.22), transparent 70%),
    var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgb(16 185 129 / 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--hero-soft);
  max-width: 34em;
  margin: 20px 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 28px 0 72px;
  font-size: 14px;
  color: var(--hero-soft);
}

.trust li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}

.hero-phone {
  justify-self: center;
  align-self: end;
  width: min(340px, 80vw);
  margin-bottom: -60px;
}

.phone {
  border-radius: 36px;
  padding: 10px;
  background: #0b1517;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 30px 80px rgb(0 0 0 / 0.45);
}

.phone img {
  border-radius: 28px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 24px;
  }

  .trust {
    margin-bottom: 24px;
  }

  .hero-phone {
    width: min(280px, 72vw);
    margin-bottom: -120px;
  }
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 14px 0 0;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.feature .icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.feature li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.features-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
  .features-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .features-3 {
    grid-template-columns: 1fr;
  }
}

/* Premium */
.section-head .price-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 17px;
}

.price-tag strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.price-tag span {
  font-size: 14px;
  color: var(--ink-muted);
}

.compare-wrap {
  max-width: 760px;
  margin: 64px auto 0;
}

.compare-title,
.steps-head h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15.5px;
}

.compare th,
.compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare th[scope="row"],
.compare thead th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.compare thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper);
}

.compare thead th:last-child {
  color: var(--brand);
}

.compare td {
  width: 22%;
  color: var(--ink-soft);
  font-weight: 600;
}

.compare td.yes {
  color: var(--brand);
}

.compare td.yes::before {
  content: "✓ ";
  font-weight: 800;
}

.compare td.no {
  color: var(--ink-muted);
  font-weight: 500;
}

.compare td.no::before {
  content: "– ";
}

.compare .price-row th,
.compare .price-row td {
  background: var(--paper);
  font-weight: 800;
  color: var(--ink);
}

.compare-note {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 12px 0 0;
}

@media (max-width: 520px) {
  .compare {
    font-size: 14px;
  }

  .compare th,
  .compare td {
    padding: 10px 8px;
  }

  .compare th[scope="row"],
  .compare thead th:first-child {
    padding-left: 12px;
  }

  .compare td {
    width: 24%;
  }
}

.steps-head {
  max-width: 760px;
  margin: 64px auto 0;
}

.steps-head p {
  color: var(--ink-soft);
  margin: -8px 0 24px;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #062a22;
  font-weight: 800;
  margin-bottom: 12px;
}

.steps h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Screens */
.screens-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 24px;
  margin: 0 -20px;
  scrollbar-width: thin;
}

.screens figure {
  margin: 0;
  scroll-snap-align: start;
}

.screens .phone {
  padding: 7px;
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgb(15 23 42 / 0.14);
}

.screens .phone img {
  border-radius: 22px;
}

.screens figcaption {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-top: 14px;
}

.screens figcaption span {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Privacy band */
.privacy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--hero-bg);
  color: var(--hero-ink);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
}

.privacy-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.privacy-band p {
  color: var(--hero-soft);
  margin: 14px 0 0;
}

.privacy-band ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.privacy-band li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
}

.privacy-band li svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  margin-top: 1px;
}

@media (max-width: 860px) {
  .privacy-band {
    grid-template-columns: 1fr;
  }
}

/* Final CTA */
.final {
  text-align: center;
}

.final h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.final p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 14px auto 32px;
  max-width: 32em;
}

.final .cta-row {
  justify-content: center;
}

.final .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.final .btn-ghost:hover {
  background: var(--card);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* Legal page */
.legal-hero {
  background: var(--hero-bg);
  color: #fff;
  padding: 56px 0 40px;
}

.legal-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-hero p {
  color: var(--hero-soft);
  margin: 10px 0 0;
}

.legal {
  max-width: 720px;
  padding: 48px 20px 80px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 8px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal strong {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

  .btn,
  .lang-switch::before,
  .lang-toast {
    transition: none;
  }

  @view-transition {
    navigation: none;
  }
}
