:root {
  color-scheme: light;

  --bg: #f7f8f7;
  --bg-soft: #eef2f0;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --text: #14201e;
  --muted: #52635f;
  --muted-2: #6c7d78;
  --border: #dbe4e1;
  --border-strong: #c9d5d1;
  --accent: #2f6b62;
  --accent-hover: #255850;
  --accent-contrast: #ffffff;
  --accent-soft: #e4efec;
  --accent-soft-2: #d3e6e1;
  --shadow: 0 24px 60px -28px rgba(20, 32, 30, 0.35);
  --header-bg: rgba(247, 248, 247, 0.86);
  --ring: rgba(47, 107, 98, 0.35);
  --focus: #2f6b62;
  --max: 1120px;
  --radius: 20px;
  --font: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0f1514;
    --bg-soft: #141c1a;
    --surface: #161f1d;
    --surface-2: #1b2724;
    --text: #e8efec;
    --muted: #a7b8b2;
    --muted-2: #82958f;
    --border: #293633;
    --border-strong: #3a4a46;
    --accent: #8fd3c4;
    --accent-hover: #a9e0d3;
    --accent-contrast: #0c1412;
    --accent-soft: #1a2a26;
    --accent-soft-2: #203530;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(15, 21, 20, 0.86);
    --ring: rgba(143, 211, 196, 0.25);
    --focus: #a9e0d3;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#inicio,
#como-funciona,
#descargas,
#requisitos {
  scroll-margin-top: 92px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(64px, 9vw, 112px) clamp(48px, 7vw, 88px);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.lead {
  max-width: 60ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 24px -12px var(--ring);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.button-full {
  width: 100%;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  inset: 6% 2%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft-2) 0%, transparent 65%);
  filter: blur(10px);
  content: "";
}

.hero-art::after {
  position: absolute;
  z-index: -1;
  width: min(78%, 390px);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
}

.app-mark {
  margin: 0;
}

.app-mark img {
  display: block;
  width: clamp(140px, 18vw, 190px);
  border-radius: 26%;
  box-shadow: 0 30px 60px -24px rgba(15, 30, 27, 0.45);
}

.orbit {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.orbit-a {
  top: 8%;
  right: 0;
}

.orbit-b {
  bottom: 14%;
  left: 0;
}

.trust {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust p {
  margin: 0;
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.trust p:first-child {
  padding-left: 0;
  border-left: 0;
}

.trust p:last-child {
  padding-right: 0;
}

.trust strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.95rem;
}

.section {
  padding-block: clamp(64px, 8vw, 108px);
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2,
.limits-grid h2,
.privacy-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.step-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h3,
.feature h3,
.limit-card h3,
.requirement-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.step p,
.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.limits-grid > div > p {
  color: var(--muted);
}

.note {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
}

.limit-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.check-list,
.check-list-x {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.check-list-x li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.check-list li::before {
  position: absolute;
  top: calc(0.62em - 4px);
  left: 1px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
  content: "";
}

.check-list-x li::before {
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--muted-2);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  content: "×";
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg);
}

.platform {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.download-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.download-card > p:not(.platform):not(.card-note) {
  color: var(--muted);
}

.download-card .check-list {
  margin-block: 8px 24px;
}

.download-card .button {
  margin-top: auto;
}

.card-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.requirement-card {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.requirement-card h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.requirement-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.requirement-card dl div {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.requirement-card dt {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.requirement-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.privacy-panel h2 {
  margin-bottom: 0;
}

.privacy-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.privacy-panel p.privacy-line {
  margin-top: 14px;
  color: var(--text);
  font-weight: 650;
}

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-name {
  margin-bottom: 0;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.footer-credit {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  max-width: 90ch;
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-art {
    min-height: 340px;
  }

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

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

  .limits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  #inicio,
  #como-funciona,
  #descargas,
  #requisitos {
    scroll-margin-top: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 6px 10px;
  }

  .hero-art {
    min-height: 280px;
  }

  .orbit {
    display: none;
  }

  .trust-grid,
  .steps,
  .feature-grid,
  .download-grid,
  .requirement-grid,
  .privacy-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust p {
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .trust p:first-child {
    border-top: 0;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .actions .button {
    width: 100%;
  }

  .hero {
    padding-block: 48px;
  }

  .section {
    padding-block: 56px;
  }

  .app-mark img {
    width: 132px;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
