/* Tokens compartidos por la landing y la web app de Memora. */
:root {
  --blue: #2563EB;
  --blue-600: #1D4ED8;
  --blue-50: #EEF3FF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E8EAEF;
  --bg: #FFFFFF;
  --soft: #F6F7F9;
  --card: #FFFFFF;
  --ok: #10B981;
  --warn: #F59E0B;
  --error: #EF4444;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 80px -20px rgba(37, 99, 235, .35), 0 12px 32px rgba(15, 23, 42, .12);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

/* Modo oscuro: solo si el visitante lo elige (por defecto siempre claro). */
:root[data-theme="dark"] {
    --blue: #3B82F6;
    --blue-600: #60A5FA;
    --blue-50: #172554;
    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --muted: #94A3B8;
    --line: #1E293B;
    --bg: #0B1120;
    --soft: #0F172A;
    --card: #111A2E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 80px -20px rgba(59, 130, 246, .35), 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }

/* Botones de tienda */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #0B0B0F; color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 10.5px; opacity: .8; letter-spacing: .02em; }
.store b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
:root[data-theme="dark"] .store { background: #fff; color: #0B0B0F; }

/* Selectores de idioma y tema */
.prefs { display: inline-flex; align-items: center; gap: 6px; }
.pref-btn {
  height: 36px; min-width: 36px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.pref-btn:hover { color: var(--ink); border-color: var(--muted); }
.pref-btn svg { width: 16px; height: 16px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
