:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #16161d;
  --muted: #5b5b6b;
  --line: #e3e3ec;
  --accent: #4338ca;
  --accent-text: #ffffff;
  --accent-soft: #e8e7fb;
  --shadow: 0 10px 30px rgba(30, 27, 75, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f15;
    --surface: #191922;
    --text: #ececf3;
    --muted: #a3a3b5;
    --line: #2a2a36;
    --accent: #8b85ff;
    --accent-text: #0f0f15;
    --accent-soft: #23223d;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .8rem; word-break: break-all; margin-top: .75em; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 6px 14px; color: var(--accent-text) !important; }

.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Ilustración: una tablet con ventanas de Windows como apps */
.mock { display: flex; justify-content: center; }
.tablet { position: relative; width: 100%; max-width: 460px; aspect-ratio: 3 / 2; border-radius: 22px; background: linear-gradient(135deg, #6d5dfc, #22c3a6); border: 10px solid #22222c; box-shadow: var(--shadow); overflow: hidden; }
.win { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.25); overflow: hidden; color: #222; }
.w1 { left: 6%; top: 9%; width: 56%; height: 64%; }
.w2 { right: 5%; top: 30%; width: 44%; height: 50%; }
.bar { display: flex; align-items: center; gap: 6px; font-size: 10px; padding: 6px 8px; background: #f0f0f4; border-bottom: 1px solid #e2e2ea; white-space: nowrap; overflow: hidden; }
.bar i { width: 10px; height: 10px; border-radius: 3px; background: #2b579a; flex: none; }
.bar i.g { background: #217346; }
.lines { padding: 10px; }
.lines b { display: block; height: 6px; background: #dcdce6; border-radius: 3px; margin-bottom: 7px; }
.lines b.s { width: 60%; }
.grid { height: 100%; background-image: linear-gradient(#e6e6ee 1px, transparent 1px), linear-gradient(90deg, #e6e6ee 1px, transparent 1px); background-size: 22px 14px; }
.dock { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; background: rgba(255,255,255,.35); border-radius: 12px; }
.dock span { width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.85); }
.dock .a { background: #2b579a; }
.dock .b { background: #217346; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.cards article p:last-child { margin-bottom: 0; }
.downloads article { display: flex; flex-direction: column; }
.downloads.locked .btn { opacity: .45; pointer-events: none; }
.unlock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.unlock label { font-weight: 600; display: block; margin-bottom: 8px; }
.unlock-row { display: flex; gap: 10px; flex-wrap: wrap; }
.unlock input { flex: 1 1 220px; font: inherit; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.unlock .muted { margin: 10px 0 0; }
.unlock.ok { border-color: var(--accent); }
.downloads .btn { align-self: flex-start; margin-top: auto; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 20px 64px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .75em 0 0; color: var(--muted); }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }

.foot { padding: 48px 16px; color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 32px; }
}
