/* =========================================================
   CRM Constructor — web comercial
   Sistema de diseño propio (tokens, tipografía, componentes)
   ========================================================= */

:root {
    /* Color */
    --ink:      #0c1220;
    --ink-2:    #131c30;
    --surface:  #ffffff;
    --surface-2:#f4f7fc;
    --line:     #e6ebf3;
    --text:     #182031;
    --muted:    #5b6579;
    --primary:  #2f5bff;
    --primary-2:#5c86ff;
    --emerald:  #12b981;
    --amber:    #f59e0b;

    /* Tipografía */
    --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Radios y sombras */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 22px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -12px rgba(16,24,40,.16);
    --shadow-lg: 0 24px 60px -20px rgba(16,24,40,.28);

    /* Layout */
    --maxw: 1160px;
    --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(47,91,255,.7); }
.btn--primary:hover { background: #234bef; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.22); color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef2fb; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow / heads ---------- */
.eyebrow {
    display: inline-block; font-family: var(--font-display); font-weight: 600;
    font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); margin-bottom: .9rem;
}
.section { padding: 92px 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: .8rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,18,32,.72); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; color: #fff; }
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__mark {
    width: 26px; height: 26px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 6px 16px -6px rgba(47,91,255,.8);
    position: relative;
}
.logo__mark::after {
    content: ""; position: absolute; inset: 7px; border-radius: 3px;
    background: #fff; opacity: .92;
    clip-path: polygon(0 60%, 40% 60%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 100%, 0 100%);
}
.logo__text { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.logo__text b { font-weight: 800; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { color: rgba(255,255,255,.8); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: #fff; }
.nav__cta { display: flex; gap: .6rem; align-items: center; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(92,134,255,.28), transparent 60%),
        radial-gradient(800px 400px at 0% 0%, rgba(47,91,255,.20), transparent 55%),
        linear-gradient(180deg, var(--ink), var(--ink-2));
    color: #fff; padding: 84px 0 96px; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
.grad { background: linear-gradient(90deg, #8fb0ff, #c8d6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(231,236,245,.82); font-size: 1.18rem; margin-top: 1.2rem; max-width: 34ch; }
.hero__actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__note { margin-top: 1.8rem; font-size: .95rem; color: rgba(231,236,245,.7); max-width: 44ch; }
.hero__note b { color: #fff; }

/* Mock del producto (CSS puro) */
.hero__mock { position: relative; }
.mock {
    background: #0f1830; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0b1424; border-bottom: 1px solid rgba(255,255,255,.07); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #33405c; }
.mock__bar em { margin-left: auto; font-style: normal; font-size: .74rem; color: rgba(255,255,255,.45); }
.mock__body { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; }
.mock__side { background: #0c1526; padding: 16px; border-right: 1px solid rgba(255,255,255,.06); }
.mock__logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); margin-bottom: 18px; }
.mock__nav { height: 11px; border-radius: 6px; background: rgba(255,255,255,.09); margin-bottom: 12px; }
.mock__nav.on { background: linear-gradient(90deg, var(--primary), var(--primary-2)); width: 82%; }
.mock__addon { margin-top: 20px; font-size: .72rem; color: #9db4ff; border: 1px dashed rgba(92,134,255,.5); border-radius: 8px; padding: 7px; text-align: center; }
.mock__main { padding: 20px; }
.mock__row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.mock__kpi { background: #111c34; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 12px; }
.mock__kpi b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.mock__kpi i { font-style: normal; font-size: .72rem; color: rgba(255,255,255,.5); }
.mock__list { display: grid; gap: 10px; }
.mock__item { height: 34px; border-radius: 10px; background: #111c34; border: 1px solid rgba(255,255,255,.06); position: relative; }
.mock__item::before { content: ""; position: absolute; left: 12px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: rgba(92,134,255,.55); }
.mock__item::after { content: ""; position: absolute; left: 34px; top: 13px; width: 45%; height: 8px; border-radius: 5px; background: rgba(255,255,255,.14); }

.chip {
    position: absolute; background: #fff; color: var(--ink); font-weight: 600; font-size: .82rem;
    font-family: var(--font-display); padding: .5rem .8rem; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.chip--1 { top: 8%; left: -26px; }
.chip--2 { bottom: 22%; left: -34px; }
.chip--3 { top: 44%; right: -28px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 30px 0; }
.trust__item { text-align: center; }
.trust__item b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.trust__item span { color: rgba(231,236,245,.6); font-size: .86rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease;
}
.section--alt .feature { background: #fff; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature__ic { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(47,91,255,.12), rgba(92,134,255,.12)); border-radius: 12px; margin-bottom: 16px; }
.feature h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.sector {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
    display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s ease, transform .15s ease;
}
.sector:hover { border-color: var(--primary); transform: translateY(-3px); }
.sector__ic { font-size: 1.9rem; }
.sector h3 { font-size: 1.12rem; font-weight: 600; }
.sector p { color: var(--muted); font-size: .95rem; }
.sectors__more { text-align: center; color: var(--muted); margin-top: 30px; font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 320px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); }
.step__n { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); margin-bottom: 16px; }
.step h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .97rem; }
.step__arrow { display: flex; align-items: center; color: var(--primary); font-size: 1.6rem; font-weight: 700; }

/* ---------- Extensiones ---------- */
.ext-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ext { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
    display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .2s ease; }
.ext:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ext__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ext__ic { font-size: 1.7rem; }
.ext h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.ext p { color: var(--muted); font-size: .9rem; flex: 1; }
.ext__sector { margin-top: 14px; font-size: .76rem; font-weight: 600; color: var(--primary);
    background: rgba(47,91,255,.08); align-self: flex-start; padding: .28rem .6rem; border-radius: 999px; }
.badge { font-family: var(--font-display); font-weight: 600; font-size: .7rem; padding: .28rem .6rem; border-radius: 999px; }
.badge--lifetime { background: rgba(18,185,129,.14); color: #0a8f63; }
.badge--annual { background: rgba(47,91,255,.12); color: var(--primary); }
.badge--monthly { background: rgba(245,158,11,.16); color: #b4780a; }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.why h2 { font-size: clamp(1.7rem,3.2vw,2.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.why__list li { position: relative; padding-left: 34px; color: var(--muted); }
.why__list li b { color: var(--text); }
.why__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
    display: grid; place-items: center; border-radius: 50%; background: rgba(18,185,129,.15); color: #0a8f63;
    font-weight: 700; font-size: .8rem; }
.why__panel { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff;
    border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.quote { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.35; }
.quote b { color: #9db4ff; }

/* ---------- Precios ---------- */
.pricing { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.plan--feature { border-color: var(--primary); box-shadow: 0 20px 50px -24px rgba(47,91,255,.5); }
.plan__tag { position: absolute; top: -13px; left: 34px; background: var(--primary); color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: .76rem; padding: .3rem .8rem; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.plan__desc { color: var(--muted); margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.plan li { position: relative; padding-left: 26px; color: var(--text); font-size: .96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

/* ---------- CTA ---------- */
.cta { background:
        radial-gradient(700px 300px at 50% 0%, rgba(92,134,255,.3), transparent 60%),
        linear-gradient(180deg, var(--ink-2), var(--ink));
    color: #fff; text-align: center; padding: 84px 0; }
.cta h2 { font-size: clamp(1.8rem,3.6vw,2.6rem); font-weight: 800; }
.cta p { color: rgba(231,236,245,.75); margin: 1rem 0 2rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(231,236,245,.7); padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand .logo__text { color: #fff; font-size: 1.2rem; }
.footer__brand p { margin-top: .6rem; font-size: .95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer__cols h4 { color: #fff; font-family: var(--font-display); font-size: .95rem; margin-bottom: 1rem; font-weight: 600; }
.footer__cols a { display: block; color: rgba(231,236,245,.6); font-size: .92rem; margin-bottom: .55rem; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__mock { display: none; }
    .features, .sectors, .ext-grid { grid-template-columns: repeat(2,1fr); }
    .trust__grid { grid-template-columns: repeat(2,1fr); }
    .why { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .nav__links { display: none; }
    .step__arrow { display: none; }
    .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .features, .sectors, .ext-grid { grid-template-columns: 1fr; }
    .nav__cta .btn--ghost { display: none; }
}
