/* Página de presentación.
   Se carga después de app.css y reaprovecha sus variables de color, .btn,
   .brand, .icon y .badge. Aquí sólo viven las piezas que la aplicación no
   tiene: cabecera fija, secciones largas, rejillas de tarjetas y el FAQ. */

.lp {
  /* app.css fija height:100% en html y body para el layout de la bóveda, que
     ocupa exactamente la pantalla. Una landing crece hacia abajo. */
  height: auto;
  min-height: 100%;
  scroll-behavior: smooth;
}

.lp :where(h1, h2, h3) { letter-spacing: -.025em; }

.lp code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .9em;
}

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

/* --------------------------------------------------------------- cabecera */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.lp-nav .brand { text-decoration: none; color: inherit; }
.lp-nav .btn { margin-left: auto; }

.lp-nav__links { display: flex; gap: 4px; }
.lp-nav__links a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  transition: background .14s ease, color .14s ease;
}
.lp-nav__links a:hover { background: var(--surface-2); color: var(--text); }
.lp-nav__links a.is-current { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 900px) {
  .lp-nav__links { display: none; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(70% 60% at 15% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(60% 70% at 90% 10%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 62%);
}

/* Retícula tenue, sin cargar ninguna imagen. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 4.5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 4.5%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(75% 65% at 45% 30%, #000, transparent 78%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero__inner { max-width: 780px; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
}
.pill .icon { color: var(--accent); }

.hero__title {
  margin-top: 22px;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 780;
  line-height: 1.05;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 20px auto 0;
  max-width: 60ch;
  color: var(--dim);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.btn--lg { padding: 12px 22px; font-size: 15px; }

.hero__note { margin-top: 16px; color: var(--faint); font-size: 12.5px; }

.hero__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0;
  list-style: none;
}
.hero__specs li {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  text-align: center;
}
.hero__specs strong {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.02em;
}
.hero__specs span { color: var(--faint); font-size: 12.5px; }

/* --------------------------------------------------------------- secciones */

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}
.section--alt {
  max-width: none;
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.section--alt > * { max-width: 1120px; margin-inline: auto; }

.section__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title-lg {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 740;
  line-height: 1.15;
  max-width: 22ch;
}

.section__lede {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ------------------------------------------------------------------ pasos */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: 720;
}

.step__title { margin-top: 16px; font-size: 16.5px; font-weight: 680; }
.step__text { margin-top: 8px; color: var(--dim); font-size: 14px; line-height: 1.62; }

/* -------------------------------------------------------------- rejillas */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 38px;
}
.grid--tight, .grid--apps { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.feature-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .16s ease, transform .16s ease;
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-card h3 { margin-top: 15px; font-size: 15.5px; font-weight: 680; }
.feature-card p { margin-top: 8px; color: var(--dim); font-size: 13.8px; line-height: 1.6; }

.mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.mini > .icon { color: var(--accent); margin-top: 2px; }
.mini h3 { font-size: 14.5px; font-weight: 670; }
.mini p { margin-top: 5px; color: var(--dim); font-size: 13.3px; line-height: 1.55; }

/* ----------------------------------------------------------------- apps */

.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.app-card--soon { background: color-mix(in srgb, var(--surface) 60%, transparent); }

.app-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.app-card--soon .app-card__icon { background: var(--surface-3); color: var(--faint); }

.app-card h3 { font-size: 17px; font-weight: 700; }
.app-card p { color: var(--dim); font-size: 13.8px; line-height: 1.62; }
/* El botón queda pegado abajo aunque los textos midan distinto. */
.app-card .btn, .app-card__meta { margin-top: auto; }
.app-card__meta { color: var(--faint); font-size: 12.5px; font-style: italic; }

/* -------------------------------------------------------------------- FAQ */

.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-2); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  list-style: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }

/* El signo se dibuja con CSS: un icono más que mantener no compensa. */
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--faint);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .18s ease, color .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }

.faq summary:hover { background: var(--surface-2); }
.faq p {
  padding: 0 18px 18px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.68;
  max-width: 72ch;
}

/* -------------------------------------------------------------------- CTA */

.cta {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 740; }
.cta p { margin-top: 10px; color: var(--dim); font-size: 15px; }
.cta .btn { margin-top: 26px; }

/* -------------------------------------------------------------------- pie */

.lp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 28px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--faint);
  font-size: 12.5px;
}
.lp-footer p { flex: 1; min-width: 220px; }
.lp-footer__links { display: flex; gap: 16px; }
.lp-footer__links a { color: var(--dim); text-decoration: none; }
.lp-footer__links a:hover { color: var(--text); text-decoration: underline; }
