/* Misma paleta y tipografía que la app, con tema claro y oscuro según el teléfono. */
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --bg: #e9edf3;
  --surface: #f7f8fb;
  --surface2: #dde3ec;
  --border: #c8d0dd;
  --text: #1a2030;
  --muted: #55617a;
  --accent: #dc4519;
  --accent-lo: #ff9a56;
  --accent-hi: #f2542d;
  --on-accent: #1c0f08;
  --suite: #6a44e4;
  --up: #17794f;
  --shadow: 0 24px 48px -24px rgba(30, 40, 70, 0.45);
  --glow-a: rgba(255, 122, 69, 0.16);
  --glow-b: rgba(106, 68, 228, 0.14);
  --wm-claro: block;
  --wm-oscuro: none;
  --i-sun: none;
  --i-moon: block;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c1017;
    --surface: #161c28;
    --surface2: #1f2837;
    --border: #2a3446;
    --text: #eef1f8;
    --muted: #9aa6bd;
    --accent: #ff7a45;
    --suite: #9b6bff;
    --up: #43d69a;
    --shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.8);
    --glow-a: rgba(255, 122, 69, 0.2);
    --glow-b: rgba(155, 107, 255, 0.18);
    --wm-claro: none;
    --wm-oscuro: block;
    --i-sun: block;
    --i-moon: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0c1017;
  --surface: #161c28;
  --surface2: #1f2837;
  --border: #2a3446;
  --text: #eef1f8;
  --muted: #9aa6bd;
  --accent: #ff7a45;
  --suite: #9b6bff;
  --up: #43d69a;
  --shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.8);
  --glow-a: rgba(255, 122, 69, 0.2);
  --glow-b: rgba(155, 107, 255, 0.18);
  --wm-claro: none;
  --wm-oscuro: block;
  --i-sun: block;
  --i-moon: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 6.4vw, 3.9rem);
  font-weight: 850;
}
h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 800;
}
h3 {
  font-size: 1.3rem;
  font-weight: 750;
}
p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.narrow {
  max-width: 680px;
}
.center {
  text-align: center;
  margin-inline: auto;
}
section {
  padding-block: clamp(56px, 9vw, 104px);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.fine {
  font-size: 0.88rem;
  color: var(--muted);
}
.aside {
  font-size: 0.95rem;
  color: var(--muted);
}
.note {
  color: var(--muted);
}

/* cabecera */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  display: block;
  width: auto;
}
.brand > img {
  height: 36px;
}
.wordmark img {
  height: 22px;
}

/* botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  border: 0;
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-lo), var(--accent-hi));
  box-shadow: 0 14px 28px -12px rgba(242, 84, 45, 0.7);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
  color: var(--on-accent);
  border: 0;
  background: linear-gradient(180deg, var(--accent-lo), var(--accent-hi));
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.actions.center {
  justify-content: center;
}

/* portada */
.hero {
  padding-top: clamp(36px, 7vw, 72px);
  background:
    radial-gradient(60% 50% at 85% 10%, var(--glow-a), transparent 70%),
    radial-gradient(50% 45% at 5% 0%, var(--glow-b), transparent 70%);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}
.hero-text > * + * {
  margin-top: 18px;
}
.hero-text .eyebrow {
  margin-bottom: 0;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-text .actions {
  margin-top: 28px;
}
.hero-phone {
  justify-self: center;
  width: min(100%, 320px);
}

/* marco de teléfono para las capturas */
.phone {
  width: min(100%, 300px);
  justify-self: center;
  border-radius: 38px;
  padding: 9px;
  background: #05070b;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 30px;
  aspect-ratio: 390 / 780;
  object-fit: cover;
  background: #0c1017;
}

/* historia */
.story {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.story .narrow > * + * {
  margin-top: 18px;
}
.story h2 {
  margin-bottom: 8px;
}
.story p:not(.eyebrow):not(.sign):not(.note) {
  font-size: 1.25rem;
}
.sign {
  font-weight: 800;
  color: var(--suite);
}
.story .note {
  padding-top: 8px;
}

/* funciones */
.features > .wrap > h2 {
  max-width: 14em;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.feature {
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding-block: clamp(24px, 4vw, 44px);
}
.feature.flip {
  grid-template-columns: minmax(0, 300px) 1fr;
}
.feature.flip .feature-text {
  order: 2;
}
.feature-text > * + * {
  margin-top: 14px;
}
.feature-text p:not(.aside) {
  color: var(--muted);
}
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.chips li + li::before {
  content: '';
}
.thumbs {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.thumbs img {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 4vw, 48px);
}
.mini {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.mini p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* instalación */
.install {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.install h2 {
  margin-bottom: 28px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.step ol {
  margin-top: 12px;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.step .aside {
  margin-top: 14px;
}
.install .note {
  margin-top: 22px;
  font-size: 0.95rem;
}

/* lo que viene */
.roadmap h2 {
  margin-bottom: 28px;
}
.road {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.road li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.road h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
}
.road p {
  margin-top: 4px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 4px 0;
  text-align: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag.next {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.tag.soon {
  background: color-mix(in srgb, var(--suite) 18%, transparent);
  color: var(--suite);
}
.tag.idea {
  background: var(--surface2);
  color: var(--muted);
}

/* cómo se construyó */
.build {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.build .narrow > * + * {
  margin-top: 16px;
}
.build .narrow p:not(.eyebrow) {
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}
.about {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  max-width: 44em;
  margin-inline: auto;
  text-align: center;
}

/* cierre */
.final {
  background:
    radial-gradient(60% 80% at 50% 100%, var(--glow-a), transparent 70%),
    radial-gradient(40% 60% at 15% 0%, var(--glow-b), transparent 70%);
}
.final .narrow > * + * {
  margin-top: 16px;
}
.final p {
  color: var(--muted);
}
.final img {
  display: block;
  margin-inline: auto;
}

.foot {
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  text-align: center;
}
.foot p + p {
  margin-top: 10px;
}

/* teléfono angosto */
@media (max-width: 820px) {
  .hero-in,
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .hero-phone {
    order: 2;
  }
  .feature .phone,
  .feature.flip .phone {
    order: 2;
  }
  .feature.flip .feature-text {
    order: 1;
  }
  .mini-grid,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
  .road li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tag {
    justify-self: start;
    padding-inline: 14px;
  }
  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.feedback {
  margin-top: 22px;
}
.feedback[hidden] {
  display: none;
}

/* nombre según el tema y botón del tema */
.wordmark .wm-claro {
  display: var(--wm-claro);
}
.wordmark .wm-oscuro {
  display: var(--wm-oscuro);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-btn:hover {
  border-color: var(--accent);
}
.i-sun {
  display: var(--i-sun);
}
.i-moon {
  display: var(--i-moon);
}

/* ---- Preguntas frecuentes ---- */
.faq h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.faq .lead {
  margin-top: 12px;
}
.faq h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 750;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq .resp {
  padding: 0 18px 18px;
  color: var(--muted);
}
.faq .resp p + p {
  margin-top: 10px;
}

/* encabezado en teléfonos angostos, para que el botón entre en una línea */
@media (max-width: 430px) {
  .top-in {
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand > img {
    height: 32px;
  }
  .wordmark img {
    height: 19px;
  }
  .top-actions {
    gap: 8px;
  }
  .theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .btn.small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}
@media (max-width: 340px) {
  .wordmark {
    display: none;
  }
}

.conteo[hidden] {
  display: none;
}
