/* naellabs.com — estilos del sitio (no depende de Tailwind).
   Las demos animadas de producto se controlan desde assets/site.js. */

:root {
    --bg: #faf7f2;
    --bg-2: #f3ede4;
    --card: #fffdfa;
    --ink: #17130f;
    --ink-2: #4b443c;
    --muted: #7b7269;
    --line: #e6ddd0;
    --line-2: #d6cabb;
    --bronze: #a27e5e;
    --bronze-d: #7d5a38;
    --bronze-l: #cfae8c;
    --bronze-bg: #f1e6d6;
    --stage: #14100d;
    --wa: #1fa855;
    --wa-bubble: #d9fdd3;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Instrument Serif', 'Times New Roman', serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--bronze-d);
    outline-offset: 3px;
    border-radius: 6px;
}

[id] {
    scroll-margin-top: 96px;
}

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

.ico {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    transition: top .2s;
}

.skip:focus {
    top: 16px;
}

/* ===== Tipografía ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 12px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bronze-d);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
}

.h2 {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.032em;
    text-wrap: balance;
}

.h2 em,
.hero h1 em,
.cta h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--bronze-d);
    font-size: 1.08em;
}

.lead-p {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--ink-2);
    max-width: 56ch;
    text-wrap: pretty;
}

.sec {
    padding: clamp(72px, 10vw, 136px) 0;
}

.sec-head {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}

.btn .ico {
    transition: transform .3s var(--ease);
}

.btn:hover .ico {
    transform: translateX(4px);
}

.btn:active {
    transform: scale(.98);
}

.btn-ink {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(23, 19, 15, .55);
}

.btn-ink:hover {
    background: #000;
    box-shadow: 0 14px 30px -10px rgba(23, 19, 15, .65);
}

.btn-ghost {
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: #fff;
}

.btn-light {
    background: #fff;
    color: var(--ink);
}

.btn-light:hover {
    background: var(--bronze-bg);
}

.btn-line {
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.btn-line:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

.btn-sm {
    height: 42px;
    padding: 0 18px;
    font-size: 14.5px;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15.5px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    width: fit-content;
}

.link .ico {
    width: 16px;
    height: 16px;
    transition: transform .3s var(--ease);
}

.link:hover .ico {
    transform: translate(3px, -3px);
}

/* ===== Navegación ===== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(250, 247, 242, .78);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background-color .3s;
}

.nav.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(250, 247, 242, .92);
}

.nav-in {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.brand img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 30px;
    margin-left: auto;
    font-size: 14.5px;
    color: var(--ink-2);
}

.nav-links a {
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: none;
}

.nav-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.nav-toggle .ico {
    width: 24px;
    height: 24px;
}

.nav-menu {
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 12px 20px 24px;
}

.nav-menu a {
    display: block;
    padding: 14px 4px;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
}

.nav-menu .btn {
    display: flex;
    margin-top: 18px;
    border: 0;
    padding: 0 26px;
    font-size: 16px;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .nav-toggle,
    .nav-menu {
        display: none !important;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 132px 0 56px;
    text-align: center;
    overflow: clip;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 720px;
    background:
        radial-gradient(52% 60% at 50% 0%, rgba(162, 126, 94, .22), transparent 70%),
        radial-gradient(30% 40% at 12% 18%, rgba(207, 174, 140, .18), transparent 70%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 14px 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    font: 500 12px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.hero-chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wa);
    box-shadow: 0 0 0 4px rgba(31, 168, 85, .16);
}

.hero h1 {
    margin: 26px auto 0;
    max-width: 15ch;
    font-size: clamp(2.7rem, 7.4vw, 5.6rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.04em;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
    padding-bottom: .12em;
    margin-bottom: -.12em;
}

.hero h1 .line > span {
    display: block;
}

.hero-sub {
    margin: 26px auto 0;
    max-width: 58ch;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--ink-2);
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.hero-note {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--muted);
}

/* Entrada del hero (una vez, al cargar) */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

@keyframes lineUp {
    from {
        transform: translateY(108%);
    }
}

.js .hero-chip,
.js .hero-sub,
.js .hero-cta,
.js .hero-note {
    animation: rise .8s var(--ease) both;
}

.js .hero h1 .line > span {
    animation: lineUp .95s var(--ease) both;
}

.js .hero h1 .line:nth-child(2) > span {
    animation-delay: .1s;
}

.js .hero-sub {
    animation-delay: .28s;
}

.js .hero-cta {
    animation-delay: .38s;
}

.js .hero-note {
    animation-delay: .46s;
}

/* ===== Escenario: demo animada de las apps ===== */
.stage {
    position: relative;
    margin-top: 56px;
    padding: 14px;
    border-radius: 26px;
    text-align: left;
    color: #fff;
    background:
        radial-gradient(90% 70% at 50% 0%, #33271d 0%, transparent 62%),
        var(--stage);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 50px 100px -40px rgba(23, 19, 15, .7), 0 0 0 1px rgba(23, 19, 15, .9);
    overflow: hidden;
    isolation: isolate;
}

.stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}

.js .stage {
    animation: stageIn 1.1s var(--ease) .5s both;
}

@keyframes stageIn {
    from {
        opacity: 0;
        transform: translateY(44px) scale(.97);
    }
}

.stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px 14px;
    font: 500 11.5px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.stage-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .85);
}

.stage-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    animation: live 1.8s ease-out infinite;
}

@keyframes live {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 220, 132, .55);
    }

    100% {
        box-shadow: 0 0 0 9px rgba(61, 220, 132, 0);
    }
}

.stage-canvas {
    display: grid;
    min-height: 436px;
    align-items: center;
    transition: opacity .3s;
}

.stage.is-resetting .stage-canvas {
    opacity: 0;
}

.slot {
    position: relative;
    grid-area: 1 / 1;
    width: min(100%, 400px);
    margin-inline: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(28px) scale(.98);
    transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .45s;
}

.stage[data-step="0"] .slot-wa,
.stage[data-step="1"] .slot-wa,
.stage[data-step="2"] .slot-crm,
.stage[data-step="3"] .slot-erp {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.app {
    position: relative;
    height: 404px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
    transition: opacity .5s, transform .7s var(--ease), box-shadow .5s, filter .5s;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid #eee7dd;
    background: #faf6f0;
    flex: none;
}

.app-bar b {
    font-weight: 600;
    font-size: 12px;
}

.dots {
    display: inline-flex;
    gap: 5px;
}

.dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dcd2c4;
}

.app-kpi {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
}

.app-kpi strong {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Estados genéricos que activa el JS con la clase .on */
.pop {
    display: none;
}

.pop.on {
    display: block;
    animation: pop .5s var(--spring) both;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.92);
    }
}

.fade {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.fade.on {
    opacity: 1;
    transform: none;
}

/* --- WhatsApp --- */
.wa-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #0b5c4b;
    color: #fff;
    flex: none;
}

.wa-head b {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.wa-head small {
    font-size: 10.5px;
    opacity: .8;
}

.wa-head .ico {
    margin-left: auto;
    opacity: .85;
}

.ava {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex: none;
    background: var(--bronze-bg);
    color: var(--bronze-d);
    font-size: 11px;
    font-weight: 600;
}

.wa-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    padding: 12px;
    overflow: hidden;
    background: #efe8de;
}

.msg {
    position: relative;
    max-width: 86%;
    padding: 7px 10px 6px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.38;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    transform-origin: left bottom;
}

.msg.in {
    align-self: flex-start;
    background: #fff;
    border-top-left-radius: 4px;
}

.msg.out {
    align-self: flex-end;
    background: var(--wa-bubble);
    border-top-right-radius: 4px;
    transform-origin: right bottom;
}

.msg time {
    display: block;
    margin-top: 2px;
    text-align: right;
    font-size: 9.5px;
    color: #8b8b84;
}

.msg .by {
    display: block;
    margin-bottom: 2px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #12804a;
}

.msg.typing.on {
    display: flex;
    gap: 4px;
    padding: 11px 12px;
}

.typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6f9c80;
    animation: blink 1s infinite both;
}

.typing i:nth-child(2) {
    animation-delay: .15s;
}

.typing i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes blink {

    0%,
    60%,
    100% {
        opacity: .3;
        transform: none;
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.wa-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 10px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    color: #9a948b;
    font-size: 12px;
    flex: none;
}

.app-wa {
    background: #efe8de;
}

/* Tarjeta de IA flotante */
.ai-card {
    position: absolute;
    right: 10px;
    top: 62px;
    z-index: 5;
    width: 214px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(23, 19, 15, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 174, 140, .5);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(207, 174, 140, .5);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
}

.ai-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font: 500 10.5px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bronze-l);
}

.ai-title .ico {
    width: 14px;
    height: 14px;
}

.ai-row.on {
    display: flex;
}

.ai-row {
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    margin-top: 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
}

.ai-row span {
    color: rgba(255, 255, 255, .6);
}

.ai-row b {
    font-weight: 500;
}

/* --- CRM --- */
.board {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: #fff;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px;
    border-radius: 10px;
    background: #f6f1ea;
}

.col h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.col h4 span {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #fff;
    text-align: center;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.col-won {
    background: #edf6ee;
}

.deal {
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ece4d8;
    box-shadow: 0 1px 2px rgba(23, 19, 15, .05);
}

.deal b {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.deal small {
    display: block;
    margin: 2px 0 5px;
    font-size: 10px;
    line-height: 1.25;
    color: var(--muted);
}

.deal em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.deal-new {
    display: none;
    position: relative;
    z-index: 3;
    border-color: var(--bronze);
    box-shadow: 0 0 0 3px rgba(162, 126, 94, .16), 0 10px 20px -10px rgba(23, 19, 15, .4);
}

.deal-new.on {
    display: block;
}

.deal-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--bronze-bg);
    color: var(--bronze-d);
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}

.deal-tag.ok {
    background: #dff3e3;
    color: #17703c;
}

.app-note {
    position: relative;
    height: 40px;
    flex: none;
    border-top: 1px solid #eee7dd;
    background: #faf6f0;
}

.app-note .note {
    position: absolute;
    inset: 0;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 11.5px;
    color: var(--ink-2);
}

.app-note .note.on {
    display: flex;
}

.app-note .ico {
    width: 14px;
    height: 14px;
    color: var(--bronze-d);
}

/* --- ERP --- */
.erp-kpi {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eee7dd;
    flex: none;
}

.erp-kpi small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
}

.erp-kpi strong {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 44px;
}

.bars i {
    width: 10px;
    height: var(--h);
    border-radius: 3px 3px 0 0;
    background: #e3d8c9;
    transition: height .9s var(--ease), background-color .5s;
}

.bars i.on {
    height: var(--h2);
    background: var(--bronze);
}

.fold {
    display: grid;
    grid-template-rows: 0fr;
    flex: none;
    transition: grid-template-rows .65s var(--ease);
}

.fold.on {
    grid-template-rows: 1fr;
}

.fold > div {
    min-height: 0;
    overflow: hidden;
}

.inv {
    margin: 10px 10px 2px;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid var(--bronze);
    background: #fffaf3;
    box-shadow: 0 0 0 3px rgba(162, 126, 94, .14);
}

.inv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.inv-head b {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.inv-head small {
    font-size: 10px;
    color: var(--muted);
}

.inv-line,
.inv-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.inv-line span {
    color: var(--ink-2);
}

.inv-line b {
    font-weight: 500;
}

.inv-total {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px dashed var(--line-2);
    font-size: 13px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
    background: #eee7dd;
    color: var(--ink-2);
    transition: background-color .3s, color .3s;
}

.badge[data-badge="enviada"] {
    background: #e2ecfb;
    color: #24539b;
}

.badge[data-badge="cobrada"] {
    background: #dff3e3;
    color: #17703c;
}

.inv-list {
    padding: 6px 14px;
}

.inv-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #f1ebe2;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.inv-list li span {
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-list b {
    font-weight: 500;
}

/* Pasos de la demo */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.step {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 10px 8px 8px;
    border-radius: 12px;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    transition: color .3s, background-color .3s;
}

.step:hover {
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .8);
}

.step.is-active,
.step.is-done {
    color: #fff;
}

.step .bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}

.step .bar i {
    display: block;
    height: 100%;
    background: var(--bronze-l);
    transform: scaleX(0);
    transform-origin: left;
}

.step.is-done .bar i {
    transform: scaleX(1);
}

.step.is-active .bar i {
    animation: stepFill var(--dur, 4s) linear forwards;
}

@keyframes stepFill {
    to {
        transform: scaleX(1);
    }
}

.step .num {
    font: 500 10.5px/1 var(--mono);
    letter-spacing: .08em;
    color: var(--bronze-l);
    margin-top: 6px;
}

.step .st {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.step .sd {
    display: none;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .55);
}

/* Escenario en escritorio: las tres apps a la vez */
@media (min-width: 1024px) {
    .stage {
        padding: 22px 26px 22px;
        border-radius: 32px;
    }

    .stage-bar {
        padding: 2px 2px 20px;
    }

    .stage-canvas {
        grid-template-columns: .84fr 1.28fr 1fr;
        gap: 34px;
        min-height: 448px;
    }

    .slot,
    .stage .slot {
        grid-area: auto;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .stage .app {
        opacity: .5;
        transform: scale(.955);
        filter: saturate(.6);
    }

    .slot-crm .app {
        height: 372px;
    }

    .stage[data-step="0"] .app-wa,
    .stage[data-step="1"] .app-wa,
    .stage[data-step="2"] .app-crm,
    .stage[data-step="3"] .app-erp {
        opacity: 1;
        transform: none;
        filter: none;
        box-shadow: 0 0 0 1px rgba(207, 174, 140, .7), 0 40px 90px -30px rgba(207, 174, 140, .55), 0 30px 60px -24px rgba(0, 0, 0, .8);
    }

    /* Conectores entre apps */
    .slot-crm::before,
    .slot-erp::before {
        content: '';
        position: absolute;
        left: -34px;
        top: 50%;
        width: 34px;
        border-top: 2px dashed rgba(255, 255, 255, .22);
    }

    .slot-crm::after,
    .slot-erp::after {
        content: '';
        position: absolute;
        left: -38px;
        top: calc(50% - 3px);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--bronze-l);
        box-shadow: 0 0 14px 2px var(--bronze-l);
        opacity: 0;
    }

    .stage[data-step="2"] .slot-crm::after,
    .stage[data-step="3"] .slot-erp::after {
        animation: flow .9s var(--ease) 3;
    }

    .stage .ai-card {
        right: -92px;
        top: 70px;
        width: 226px;
    }

    .steps {
        gap: 18px;
        margin-top: 22px;
    }

    .step {
        padding: 12px 12px 12px;
    }

    .step .st {
        font-size: 15.5px;
    }

    .step .sd {
        display: block;
    }
}

@keyframes flow {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    25%,
    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(38px);
    }
}

/* ===== Cinta ===== */
.ticker {
    padding: 22px 0;
    border-block: 1px solid var(--line);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker ul {
    display: flex;
    align-items: center;
    flex: none;
}

.ticker li {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--ink-2);
    white-space: nowrap;
}

.ticker li::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bronze);
}

.ticker li s {
    text-decoration-color: var(--bronze);
    text-decoration-thickness: 2px;
    color: var(--muted);
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* ===== Aparición al hacer scroll ===== */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ===== Soluciones ===== */
.bento {
    display: grid;
    gap: 18px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: var(--card);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -34px rgba(23, 19, 15, .35);
    border-color: var(--line-2);
}

.tile-text {
    display: grid;
    gap: 12px;
    padding: 30px 30px 24px;
}

.tile-tag {
    font: 500 11.5px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bronze-d);
}

.tile h3 {
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.028em;
}

.tile p {
    color: var(--ink-2);
    max-width: 46ch;
}

.tile .link {
    margin-top: 6px;
}

.tile-demo {
    position: relative;
    flex: 1;
    min-height: 292px;
    margin: 0 14px 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--bg-2);
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
    transition: opacity .35s;
}

[data-seq].seq-out > * {
    opacity: 0;
    transition: opacity .35s;
}

.tile-wa {
    background: #eef5ec;
    border-color: #dbe7d8;
}

.tile-wa .tile-demo {
    background: #e2ecdf;
}

.tile-wa .tile-tag {
    color: #17703c;
}

.tile-erp {
    background: var(--stage);
    border-color: #2a221c;
    color: #fff;
}

.tile-erp p {
    color: rgba(255, 255, 255, .68);
}

.tile-erp .tile-tag {
    color: var(--bronze-l);
}

.tile-erp .tile-demo {
    background: #201915;
}

.tile-dev {
    background: var(--bronze-bg);
    border-color: #e4d3bd;
}

.tile-dev .tile-demo {
    background: #e7d7c1;
}

@media (min-width: 900px) {
    .bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .tile-crm,
    .tile-dev {
        grid-column: span 7;
    }

    .tile-wa,
    .tile-erp {
        grid-column: span 5;
    }

    .tile-text {
        padding: 36px 36px 26px;
    }
}

/* Demo: leads priorizados */
.panel {
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px -20px rgba(23, 19, 15, .3);
}

.panel-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1ebe2;
    font-size: 12.5px;
}

.panel-h b {
    font-weight: 600;
}

.chip-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--bronze-bg);
    color: var(--bronze-d);
    font-size: 10.5px;
    font-weight: 600;
}

.chip-ai .ico {
    width: 12px;
    height: 12px;
}

.lead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 84px 26px;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #f6f1ea;
}

.lead:last-child {
    border-bottom: 0;
}

.lead-t b {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-t small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fde7d6;
    color: #b0541a;
    font-size: 10px;
    font-weight: 600;
}

.score {
    height: 6px;
    border-radius: 6px;
    background: #f0e9df;
    overflow: hidden;
}

.score i {
    display: block;
    height: 100%;
    width: calc(var(--v) * 100%);
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bronze-l), var(--bronze-d));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease);
}

.score i.on {
    transform: none;
}

.lead .num {
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.toast {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    box-shadow: 0 18px 36px -16px rgba(23, 19, 15, .7);
}

.toast.on {
    display: flex;
}

.toast .ico {
    width: 16px;
    height: 16px;
    color: #6fe39b;
}

.toast.warn {
    background: #fff;
    color: var(--ink);
}

.toast.warn .ico {
    color: #c9731f;
}

@media (min-width: 600px) {
    .toast {
        left: auto;
        max-width: 320px;
    }
}

/* Demo: chat */
.d-chat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.d-chat .msg {
    font-size: 13.5px;
    padding: 9px 12px;
    max-width: 82%;
}

.chat-meta {
    align-self: center;
    margin-top: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: #17703c;
    font-size: 11px;
    font-weight: 600;
}

/* Demo: panel ERP */
.d-erp {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #fff;
}

.erp-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.erp-top small {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
}

.erp-top strong {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.delta {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(111, 227, 155, .16);
    color: #6fe39b;
    font-size: 11px;
    font-weight: 600;
}

.chart {
    flex: 1;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 46px;
}

.chart i {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: rgba(255, 255, 255, .12);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .9s var(--ease);
}

.chart i.on {
    transform: none;
}

.chart i.hi {
    background: linear-gradient(180deg, var(--bronze-l), var(--bronze));
}

/* Demo: construcción a medida */
.win {
    height: 100%;
    min-height: 256px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e0cfb8;
    box-shadow: 0 18px 36px -22px rgba(23, 19, 15, .4);
    overflow: hidden;
}

.win-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 12px;
    border-bottom: 1px solid #f1ebe2;
    background: #faf6f0;
}

.win-url {
    flex: 1;
    max-width: 220px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eee7dd;
    font: 400 10.5px/1.2 var(--mono);
    color: var(--muted);
}

.pub {
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dff3e3;
    color: #17703c;
    font-size: 10.5px;
    font-weight: 600;
}

.win-body {
    flex: 1;
    display: grid;
    grid-template-columns: 22% 1fr;
    gap: 10px;
    padding: 10px;
}

.sk {
    border-radius: 9px;
    background: #f3ede4;
}

.sk-side {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 10px 8px;
    background: var(--ink);
}

.sk-side i {
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .2);
}

.sk-side i:first-child {
    width: 60%;
    background: var(--bronze-l);
    margin-bottom: 6px;
}

.sk-main {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;
    min-width: 0;
}

.sk-head {
    height: 26px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
}

.sk-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sk-card {
    padding: 9px 10px;
}

.sk-card small {
    display: block;
    font-size: 9.5px;
    color: var(--muted);
}

.sk-card b {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.sk-chart {
    min-height: 70px;
    padding: 8px;
}

.sk-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.draw path {
    fill: none;
    stroke: var(--bronze-d);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease);
}

.draw.on path {
    stroke-dashoffset: 0;
}

/* ===== Proceso ===== */
.proc {
    position: relative;
    display: grid;
    gap: 28px;
}

.proc-step {
    position: relative;
    padding-top: 26px;
    border-top: 1px solid var(--line-2);
}

.proc-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .15s);
}

.proc-step.in::before {
    transform: none;
}

.proc-n {
    font: 500 12px/1 var(--mono);
    letter-spacing: .08em;
    color: var(--bronze-d);
}

.proc-step h3 {
    margin: 18px 0 10px;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.025em;
}

.proc-step p {
    color: var(--ink-2);
    font-size: 16px;
}

@media (min-width: 640px) {
    .proc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .proc {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }
}

/* ===== Datos ===== */
.facts-sec {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-2);
    border: 1px solid var(--line-2);
    border-radius: 24px;
    overflow: hidden;
}

.fact {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: clamp(22px, 3vw, 36px);
    background: var(--bg);
}

.fact b {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: .95;
    font-weight: 600;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}

.fact b em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--bronze-d);
    letter-spacing: -.02em;
}

.fact span {
    color: var(--ink-2);
    font-size: 15.5px;
    max-width: 24ch;
}

@media (min-width: 900px) {
    .facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== FAQ ===== */
.faq-grid {
    display: grid;
    gap: 36px;
}

.faq-aside {
    display: grid;
    gap: 18px;
    align-content: start;
}

@media (min-width: 900px) {
    .faq-grid {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }

    .faq-aside {
        position: sticky;
        top: 112px;
    }
}

.faq {
    border-top: 1px solid var(--line-2);
}

.faq details {
    border-bottom: 1px solid var(--line-2);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -.015em;
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--bronze-d);
}

.faq summary .ico {
    width: 22px;
    height: 22px;
    transition: transform .35s var(--ease);
}

.faq details[open] summary .ico {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 44px 24px 0;
    color: var(--ink-2);
    max-width: 62ch;
}

.faq details p a {
    color: var(--bronze-d);
    border-bottom: 1px solid currentColor;
}

@supports (interpolate-size: allow-keywords) {
    .faq details {
        interpolate-size: allow-keywords;
    }

    .faq details::details-content {
        height: 0;
        overflow: clip;
        transition: height .4s var(--ease), content-visibility .4s allow-discrete;
    }

    .faq details[open]::details-content {
        height: auto;
    }
}

/* ===== CTA ===== */
.cta {
    position: relative;
    padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 88px);
    border-radius: 32px;
    background:
        radial-gradient(60% 90% at 85% 110%, rgba(207, 174, 140, .5), transparent 60%),
        radial-gradient(50% 70% at 0% 0%, #33271d, transparent 70%),
        var(--stage);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.cta h2 {
    max-width: 16ch;
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -.035em;
}

.cta h2 em {
    color: var(--bronze-l);
}

.cta p {
    margin-top: 22px;
    max-width: 48ch;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, .72);
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* ===== Footer ===== */
.foot {
    padding: 64px 0 36px;
}

.foot-grid {
    display: grid;
    gap: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.foot-brand img {
    height: 40px;
    width: auto;
}

.foot-brand p {
    margin-top: 16px;
    max-width: 34ch;
    font-size: 15px;
    color: var(--muted);
}

.foot h3 {
    margin-bottom: 14px;
    font: 500 11.5px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.foot li {
    margin-top: 10px;
    font-size: 15px;
}

.foot li a {
    color: var(--ink-2);
    transition: color .2s;
}

.foot li a:hover {
    color: var(--bronze-d);
}

.foot-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 26px;
    font-size: 14px;
    color: var(--muted);
}

.foot-base a {
    display: inline-flex;
    transition: color .2s;
}

.foot-base a:hover {
    color: var(--bronze-d);
}

@media (min-width: 800px) {
    .foot-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ===== WhatsApp flotante ===== */
.wa-float {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    transition: transform .25s var(--ease);
}

.wa-float:hover {
    transform: scale(1.08);
}

/* ===== Sin movimiento ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .proc-step::before {
        transform: none;
    }

    .ticker-track {
        width: auto;
        flex-wrap: wrap;
    }

    .ticker ul[aria-hidden] {
        display: none;
    }

    .ticker ul {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 12px;
    }
}

/* =====================================================================
   Páginas interiores (CRM, ERP, Nosotros, Contacto, legales)
   ===================================================================== */
.js .rise {
    animation: rise .9s var(--ease) var(--d, 0s) both;
}

.nav-links a[aria-current] {
    color: var(--ink);
}

.nav-links a[aria-current]::after {
    transform: scaleX(1);
    background: var(--bronze);
}

/* Cabecera de página */
.phero {
    position: relative;
    padding: 132px 0 clamp(56px, 8vw, 104px);
    overflow: clip;
}

.phero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 640px;
    background:
        radial-gradient(52% 60% at 70% 0%, rgba(162, 126, 94, .22), transparent 70%),
        radial-gradient(30% 40% at 8% 18%, rgba(207, 174, 140, .18), transparent 70%);
    pointer-events: none;
}

.phero .wrap {
    position: relative;
}

.phero-grid {
    display: grid;
    gap: 44px;
    align-items: center;
}

.phero h1 {
    margin-top: 22px;
    font-size: clamp(2.5rem, 5.6vw, 4.4rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.phero h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--bronze-d);
    font-size: 1.08em;
}

.phero .hero-sub {
    margin-inline: 0;
}

.phero .hero-cta {
    justify-content: flex-start;
}

.phero-center {
    text-align: center;
}

.phero-center h1 {
    max-width: 16ch;
    margin-inline: auto;
    font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.phero-center .hero-sub {
    margin-inline: auto;
}

.ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 22px;
    font-size: 14.5px;
    color: var(--muted);
}

.ticks li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ticks .ico {
    width: 16px;
    height: 16px;
    color: var(--wa);
}

@media (min-width: 1000px) {
    .phero-grid {
        grid-template-columns: 1fr 1.02fr;
        gap: 60px;
    }
}

/* Escenario pequeño para una sola app */
.pstage {
    position: relative;
    padding: 14px 14px 16px;
    border-radius: 28px;
    background:
        radial-gradient(90% 70% at 50% 0%, #33271d 0%, transparent 62%),
        var(--stage);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 44px 90px -44px rgba(23, 19, 15, .75);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.pstage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}

.pstage .app {
    height: 400px;
}

.pstage .ai-card {
    top: auto;
    right: 26px;
    bottom: 70px;
}

.pstage .toast {
    left: auto;
    right: 26px;
    bottom: 28px;
    max-width: calc(100% - 52px);
}

.badge.pop {
    display: none;
}

.badge.pop.on {
    display: inline-block;
}

@media (min-width: 640px) {
    .pstage {
        padding: 20px 22px 22px;
    }
}

/* Banda oscura con funciones */
.band {
    padding: clamp(32px, 6vw, 72px);
    border-radius: 32px;
    background:
        radial-gradient(70% 90% at 100% 0%, #33271d, transparent 60%),
        var(--stage);
    color: #fff;
}

.band .eyebrow,
.band .h2 em {
    color: var(--bronze-l);
}

.band .lead-p {
    color: rgba(255, 255, 255, .68);
}

.band .sec-head {
    margin-bottom: 0;
}

.band-grid {
    display: grid;
    gap: 1px;
    margin-top: clamp(32px, 4vw, 52px);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    overflow: hidden;
}

.band-item {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 28px 26px 30px;
    background: #1a1511;
    transition: background-color .3s;
}

.band-item:hover {
    background: #221b15;
}

.band-item .n,
.card .n {
    font: 500 12px/1 var(--mono);
    letter-spacing: .08em;
    color: var(--bronze-l);
}

.band-item h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.02em;
}

.band-item p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, .64);
}

@media (min-width: 640px) {
    .band-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .band-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Sección partida: demo + texto */
.split {
    display: grid;
    gap: 40px;
    align-items: center;
}

.split-demo {
    position: relative;
    min-height: 380px;
    padding: 20px;
    border-radius: 26px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
}

.split-demo.dark {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--stage);
    border-color: #2a221c;
    color: #fff;
}

.split-demo.dark .chart {
    flex: none;
    height: 120px;
    min-height: 0;
    padding-bottom: 0;
}

.checks {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

.checks li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
}

.ck {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--bronze-bg);
    color: var(--bronze-d);
}

.ck .ico {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.checks h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.checks p {
    margin-top: 3px;
    font-size: 16px;
    color: var(--ink-2);
}

@media (min-width: 1000px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 72px;
    }
}

/* Demo: previsión de cierre */
.fc {
    padding: 14px;
    border-bottom: 1px solid #f1ebe2;
}

.fc small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.fc strong {
    display: block;
    margin: 2px 0 10px;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.fc .score {
    height: 8px;
}

/* Demo: avisos del ERP */
.alerts {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 168px;
}

.alert {
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
}

.alert.on {
    display: flex;
}

.alert .ico {
    width: 17px;
    height: 17px;
    color: #f0a85a;
}

.alert b {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
}

.alert small {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}

/* Tarjetas */
.cards {
    display: grid;
    gap: 18px;
}

.card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: 0 30px 60px -36px rgba(23, 19, 15, .35);
}

.card .n {
    color: var(--bronze-d);
}

.card h3 {
    margin-top: 8px;
    font-size: 1.35rem;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -.025em;
}

.card p {
    font-size: 16px;
    color: var(--ink-2);
}

@media (min-width: 860px) {
    .cards-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Historia (Nosotros) */
.story {
    display: grid;
    gap: 32px;
}

.story-aside {
    display: grid;
    gap: 18px;
    align-content: start;
}

.story-note {
    font: 500 12px/1.4 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.story-text {
    display: grid;
    gap: 22px;
    font-size: 1.1rem;
    color: var(--ink-2);
}

.story-text p:first-child {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.38;
    letter-spacing: -.018em;
    color: var(--ink);
}

.story-text strong {
    font-weight: 600;
    color: var(--ink);
}

@media (min-width: 900px) {
    .story {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }

    .story-aside {
        position: sticky;
        top: 112px;
    }
}

/* Contacto */
.contact-grid {
    display: grid;
    gap: 28px;
    margin-top: clamp(36px, 5vw, 56px);
}

.methods {
    display: grid;
    gap: 14px;
    align-content: start;
}

.method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease);
}

.method:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -30px rgba(23, 19, 15, .4);
}

.method-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bronze-bg);
    color: var(--bronze-d);
}

.method-ico .ico {
    width: 21px;
    height: 21px;
}

.method small {
    display: block;
    margin-bottom: 3px;
    font: 500 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.method b {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.method > .ico {
    color: var(--muted);
}

.methods-note {
    padding: 4px 6px;
    font-size: 14.5px;
    color: var(--muted);
}

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 34px 70px -46px rgba(23, 19, 15, .4);
}

.form-card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.028em;
}

.form-card > p {
    margin: 6px 0 26px;
    color: var(--ink-2);
    font-size: 16px;
}

.form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field ::placeholder {
    color: #a59c91;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--bronze-d);
    box-shadow: 0 0 0 4px rgba(162, 126, 94, .18);
}

.form .btn {
    width: 100%;
    border: 0;
}

.form .btn[disabled] {
    opacity: .6;
    cursor: default;
}

.form-status {
    text-align: center;
    font-size: 14.5px;
    font-weight: 500;
}

.form-status.ok {
    color: #17703c;
}

.form-status.err {
    color: #b3261e;
}

.snack {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14.5px;
    font-weight: 500;
    box-shadow: 0 20px 40px -16px rgba(23, 19, 15, .6);
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity .3s, transform .3s var(--ease);
    pointer-events: none;
}

.snack.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.snack .ico {
    color: #6fe39b;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: 5fr 7fr;
        gap: 48px;
        align-items: start;
    }
}

/* Textos legales */
.legal {
    padding: 136px 0 clamp(64px, 9vw, 112px);
}

.legal .wrap {
    width: min(760px, 100% - 40px);
}

.legal h1 {
    font-size: clamp(2.3rem, 5.4vw, 3.6rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.035em;
}

.legal .date {
    margin-top: 16px;
    font: 500 12px/1.4 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.prose {
    display: grid;
    gap: 36px;
    margin-top: 48px;
    color: var(--ink-2);
}

.prose h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.022em;
    color: var(--ink);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
    margin-top: 12px;
}

.prose ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
    list-style: disc;
}

.prose strong {
    font-weight: 600;
    color: var(--ink);
}

.prose a,
.legal .back a {
    color: var(--bronze-d);
    border-bottom: 1px solid currentColor;
}

.legal .back {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-weight: 500;
}
