/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
    --ink: #17121f;
    --muted: #625d73;
    --line: #ece9f4;
    --bg: #ffffff;
    --soft: #f6f3ff;
    --violet: #7C3AED;
    --violet-600: #6d28d9;
    --violet-700: #5b21b6;
    --violet-soft: #efe8ff;
    --green: #16a34a;
    --radius: 18px;
    --shadow: 0 18px 50px -22px rgba(35, 17, 82, .35);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1140px;
}

/* App (WASM) necesita viewport fijo */
html.is-app, html.is-app body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Landing scrollea normal */
html.is-landing { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-landing body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

#landing a { color: inherit; text-decoration: none; }
#landing code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--violet-soft);
    color: var(--violet-700);
    padding: .1em .4em;
    border-radius: 6px;
    font-size: .9em;
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    padding: .82rem 1.15rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(180deg, #8b4dff, var(--violet));
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(124, 58, 237, .75);
}
.btn-primary:hover { background: linear-gradient(180deg, #9257ff, var(--violet-600)); box-shadow: 0 16px 34px -12px rgba(124, 58, 237, .85); }
.btn-soft { background: var(--violet-soft); color: var(--violet-700); }
.btn-soft:hover { background: #e6dbff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--violet-700); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.btn-light:hover { background: #faf7ff; }

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: .9rem 1.25rem;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(160deg, #8b4dff, var(--violet-700));
    box-shadow: 0 8px 18px -8px rgba(124,58,237,.8);
}
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: .5rem; }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(2rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--violet-700);
    background: var(--violet-soft);
    padding: .38rem .7rem;
    border-radius: 999px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 850;
    margin: 1rem 0 0;
}
.hero h1 .hl {
    background: linear-gradient(120deg, var(--violet), #b06bff 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--muted);
    margin: 1.1rem 0 0;
    max-width: 34rem;
}
.lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-checks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    padding: 0;
    margin: 1.5rem 0 0;
    font-size: .9rem;
    color: var(--muted);
    font-weight: 600;
}
.hero-checks li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-checks li::before {
    content: "";
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
}

/* Phone mockup */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
    position: relative;
    width: min(300px, 82vw);
    border-radius: 40px;
    padding: 10px;
    background: linear-gradient(160deg, #241a3a, #0f0b19);
    box-shadow: var(--shadow), 0 0 0 1px rgba(124,58,237,.25) inset;
    transform: rotate(-2.5deg);
}
.phone-notch {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 8px; border-radius: 999px; background: #0b0713;
    z-index: 3;
}
.phone-screen {
    border-radius: 32px;
    overflow: hidden;
    background: #faf9ff;
    padding: 26px 12px 12px;
}
.mini-store { display: flex; flex-direction: column; gap: 10px; }
.mini-head { display: flex; align-items: center; gap: 10px; }
.mini-logo {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-size: 22px; background: linear-gradient(150deg, #efe6ff, #d9c6ff);
}
.mini-name { font-weight: 800; font-size: .95rem; }
.mini-sub { font-size: .68rem; color: var(--green); font-weight: 700; }
.mini-search {
    font-size: .72rem; color: #9b93ad; background: #fff; border: 1px solid #ece7f7;
    padding: .55rem .7rem; border-radius: 10px;
}
.mini-chips { display: flex; gap: 6px; }
.mini-chips span {
    font-size: .64rem; font-weight: 700; color: var(--muted);
    background: #fff; border: 1px solid #ece7f7; border-radius: 999px; padding: .22rem .55rem;
}
.mini-chips .on { background: var(--violet); color: #fff; border-color: var(--violet); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-card { background: #fff; border: 1px solid #efeaf9; border-radius: 12px; padding: 6px; box-shadow: 0 6px 14px -12px rgba(60,30,120,.6); }
.mini-img { height: 62px; border-radius: 8px; display: grid; place-items: center; font-size: 30px; }
.mini-img.a { background: linear-gradient(150deg, #ffe9c7, #ffd59a); }
.mini-img.b { background: linear-gradient(150deg, #ffe08a, #ffc94d); }
.mini-img.c { background: linear-gradient(150deg, #ffe3d0, #ffc9a8); }
.mini-img.d { background: linear-gradient(150deg, #ffd9d0, #ffb7a3); }
.mini-line { height: 6px; border-radius: 4px; background: #ece7f7; margin-top: 6px; }
.mini-line.short { width: 60%; }
.mini-price { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; font-weight: 800; margin-top: 7px; }
.mini-add { width: 18px; height: 18px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.mini-cart {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--violet); color: #fff; font-size: .75rem; font-weight: 700;
    padding: .6rem .8rem; border-radius: 12px;
}
.wa-bubble {
    position: absolute;
    bottom: -18px; left: -8px;
    right: auto;
    display: flex; gap: .6rem;
    align-items: flex-start;
    width: min(300px, 80vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .7rem .8rem;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}
.wa-avatar { width: 30px; height: 30px; border-radius: 9px; background: #dcfce7; display: grid; place-items: center; font-size: 15px; flex: none; }
.wa-name { font-weight: 800; font-size: .8rem; }
.wa-text { font-size: .72rem; color: var(--muted); line-height: 1.35; }

/* ===== Strip ===== */
.strip {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.strip-items { display: flex; flex-wrap: wrap; gap: .5rem; }
.strip-items span {
    background: var(--soft);
    color: var(--ink);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
}

/* ===== Secciones ===== */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; }
.section-alt { background: var(--soft); border-radius: 32px; max-width: calc(var(--wrap) + 2.5rem); }
.section-head { max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 850;
    margin: .9rem 0 .5rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Features */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd3f6; }
.feature .ico {
    width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center; font-size: 24px;
    background: var(--violet-soft);
    margin-bottom: .9rem;
}
.feature h3 { margin: .2rem 0 .45rem; font-size: 1.08rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.step-n {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 850; font-size: 1.1rem;
    color: #fff; background: linear-gradient(160deg, #8b4dff, var(--violet-700));
    margin-bottom: .9rem;
    box-shadow: 0 10px 20px -10px rgba(124,58,237,.8);
}
.step h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 1.2rem; justify-content: center; }
.plan {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.7rem;
    display: flex; flex-direction: column;
}
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .price { font-size: 2.6rem; font-weight: 850; letter-spacing: -.03em; margin: .6rem 0 1rem; display: flex; align-items: baseline; gap: .1rem; }
.plan .price span { font-size: 1.3rem; color: var(--muted); }
.plan .price small { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.plan li { padding-left: 1.5rem; position: relative; color: var(--muted); font-size: .93rem; }
.plan li::before {
    content: ""; position: absolute; left: 0; top: .18em;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--violet-soft);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z'/%3E%3C/svg%3E") center/64% no-repeat, linear-gradient(#000,#000);
    -webkit-mask-composite: xor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z'/%3E%3C/svg%3E") center/64% no-repeat;
}
.plan .btn { margin-top: auto; }
.plan-pro {
    background: linear-gradient(180deg, #1d1430, #120c1f);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow);
}
.plan-pro h3 { color: #fff; }
.plan-pro .price { color: #fff; }
.plan-pro .price span, .plan-pro .price small { color: #c9bff0; }
.plan-pro li { color: #c9c2dd; }
.plan-pro li::before { background: #8b4dff; }
.plan-badge {
    position: absolute; top: -12px; right: 1.4rem;
    background: linear-gradient(90deg, #b06bff, var(--violet));
    color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    padding: .3rem .7rem; border-radius: 999px; text-transform: uppercase;
}

/* CTA */
.cta { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.cta-inner {
    background: radial-gradient(120% 140% at 20% 0%, #8b4dff 0%, var(--violet-700) 55%, #3b0f77 100%);
    color: #fff;
    border-radius: 28px;
    padding: clamp(2.2rem, 5vw, 3.6rem);
    text-align: center;
    box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.03em; margin: 0 0 .6rem; font-weight: 850; }
.cta-inner p { margin: 0 0 1.5rem; color: #e7defc; font-size: 1.05rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem;
    transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer; list-style: none; font-weight: 700; padding: 1.05rem 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; font-size: 1.4rem; color: var(--violet); font-weight: 700; line-height: 1;
    transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 1.1rem; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-top, .footer-bottom {
    max-width: var(--wrap); margin: 0 auto; padding: 1.4rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.3rem; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { color: var(--muted); font-size: .85rem; padding-top: 0; }
.footer-bottom a { color: var(--violet-700); font-weight: 700; }

/* ===== Boot overlay ===== */
#boot {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    background: radial-gradient(120% 120% at 30% 10%, #2a1a4a, #120c1f 70%);
    transition: opacity .3s ease;
}
#boot[hidden] { display: none; }
#boot.done { opacity: 0; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.boot-text { color: #ded7f2; font-family: var(--font); font-size: .95rem; font-weight: 600; letter-spacing: .01em; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.2rem; }
    .hero-art { order: 2; }
    .hero-copy { text-align: center; }
    .hero-actions, .hero-checks { justify-content: center; }
    .lead { margin-inline: auto; }
    .grid-features, .steps { grid-template-columns: 1fr 1fr; }
    .pricing { grid-template-columns: minmax(0, 360px); }
}
@media (max-width: 720px) {
    .nav { gap: .8rem; }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; gap: 4px;
        margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer;
    }
    .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
    .nav.open { flex-wrap: wrap; }
    .nav.open .nav-links, .nav.open .nav-cta {
        display: flex; flex-basis: 100%; flex-direction: column; gap: .35rem; margin: 0;
    }
    .nav.open .nav-links { padding-top: .6rem; border-top: 1px solid var(--line); }
    .nav.open .nav-links a { padding: .5rem .25rem; }
    .nav.open .nav-cta a { width: 100%; }
    .grid-features, .steps { grid-template-columns: 1fr; }
    .wa-bubble { position: static; transform: none; margin: 1rem auto 0; width: 100%; }
    .hero-art { flex-direction: column; align-items: center; }
    .phone { transform: none; }
    .strip { justify-content: center; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html.is-landing { scroll-behavior: auto; }
    .feature, .btn { transition: none; }
}
