/* Landing pública (server-rendered). CSS autocontenido: no comparte bundle con
   la SPA. Sigue las reglas de diseño del proyecto — sobrio, un color de acento,
   claro/oscuro, mobile-first. Todos los valores viven como tokens aquí arriba. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --surface: #ffffff;
  --border: #e4e7ec;
  --text: #1a1d21;
  --text-muted: #5b6472;
  --accent: #2f5fd0; /* azul de marca — el mismo acento que la app y el icono.
                        El verde queda reservado para cifras financieras. */
  --accent-contrast: #ffffff;
  --success-bg: #ecf6f1;
  --success-text: #1f5a45;
  --error-text: #b42318;

  --radius: 10px;
  --gap: 16px;
  --maxw: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1214;
    --bg-subtle: #15191c;
    --surface: #171b1f;
    --border: #2a3036;
    --text: #e7eaed;
    --text-muted: #9aa4af;
    --accent: #6c95f5; /* azul de marca (variante para modo oscuro), como la app */
    --accent-contrast: #0f1214;
    --success-bg: #14251f;
    --success-text: #7fd0b4;
    --error-text: #f0857b;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

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

.container--narrow {
  max-width: 680px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: fuera de pantalla en vez de display:none (algunos bots saltan lo
   que está oculto con display:none, pero rellenan lo posicionado). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Header / footer */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 60px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.hero__title {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 18ch;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 56ch;
}

/* Secciones */
.section-title {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.features {
  padding: 24px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  gap: 24px;
  padding: 32px 20px;
  grid-template-columns: 1fr;
}

.feature__title {
  font-size: 17px;
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.shots {
  padding: 56px 0;
}

.shots__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: block;
}

.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-tail {
  padding: 8px 0 24px;
}

.cta-tail__lead {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Formulario */
.waitlist {
  max-width: 520px;
}

.waitlist__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.waitlist__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.consent input {
  margin-top: 3px;
}

.privacy-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.field-error {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--error-text);
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 0 0 8px;
  font-size: 15px;
}

.notice--success {
  background: var(--success-bg);
  color: var(--success-text);
}

.notice--error {
  color: var(--error-text);
  border: 1px solid var(--error-text);
}

/* Legal */
.legal {
  padding: 56px 0;
}

.legal h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.legal__updated {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 18px;
  margin: 28px 0 6px;
}

.legal p {
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* Tablet / desktop */
@media (min-width: 720px) {
  .hero {
    padding: 96px 0 72px;
  }

  .hero__title {
    font-size: 46px;
  }

  .features__grid {
    /* Adaptable al número de ventajas (hoy 4): dos por fila en tablet, cuatro
       en pantallas anchas, sin dejar una huérfana como haría un 3 fijo. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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