:root {
    --brand: #7b1fa2;
    --brand-dark: #5a1178;
    --brand-soft: #f5e9fa;
    --ink: #1d1627;
    --muted: #625a70;
    --line: #e7e1ee;
    --bg: #ffffff;
    --bg-alt: #faf7fc;
    --radius: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.nav nav .nav-cta { color: #fff; background: var(--brand); padding: 8px 16px; border-radius: 999px; }
.nav nav .nav-cta:hover { color: #fff; background: var(--brand-dark); }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% 10%, #f3e3fa 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

.code-form { margin-top: 32px; max-width: 420px; }
.code-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; font-size: 1.1rem; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; }
.code-row input:focus { outline: none; border-color: var(--brand); }
.code-row button { font-size: 1rem; font-weight: 700; padding: 0 24px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; }
.code-row button:hover { background: var(--brand-dark); }

/* Maquetas del hero */
.hero-visual { position: relative; padding-bottom: 40px; }
.screen-mock { background: #140d1f; border-radius: 18px; padding: 18px 20px 14px; box-shadow: 0 30px 60px -20px rgba(60, 10, 80, .45); color: #fff; }
.screen-bar { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: #cfc4dc; }
.screen-bar b { color: #fff; white-space: nowrap; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 28px 8px; min-height: 210px; font-weight: 700; }
.cloud .w1 { font-size: 2.3rem; }
.cloud .w2 { font-size: 1.6rem; }
.cloud .w3 { font-size: 1.2rem; }
.cloud .w4 { font-size: .95rem; }
.c1 { color: #f472b6; } .c2 { color: #a78bfa; } .c3 { color: #60a5fa; } .c4 { color: #34d399; } .c5 { color: #fbbf24; }
.ticker { font-size: .78rem; color: #bdb0cc; border-top: 1px solid #2c2140; padding-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-mock { position: absolute; right: -12px; bottom: -8px; width: 170px; background: #fff; border: 8px solid #1d1627; border-radius: 28px; padding: 18px 12px 16px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.35); font-size: .78rem; }
.phone-notch { width: 50px; height: 6px; border-radius: 6px; background: #1d1627; margin: -8px auto 12px; }
.phone-hello { margin: 0; color: var(--muted); }
.phone-q { margin: 2px 0 10px; font-weight: 700; line-height: 1.25; }
.phone-opt { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; margin-top: 6px; font-weight: 600; }
.phone-opt.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* Secciones */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 16px; }
.steps p, .card p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.features li { padding-left: 18px; border-left: 3px solid var(--brand-soft); color: var(--muted); }
.features strong { display: block; color: var(--ink); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .hero { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .steps, .features { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .phone-mock { right: 8px; }
}
@media (max-width: 560px) {
    .nav nav a:not(.nav-cta) { display: none; }
    .section { padding: 56px 0; }
    .phone-mock { display: none; }
    .hero-visual { padding-bottom: 0; }
    .cloud .w1 { font-size: 1.7rem; }
}
