/* ============================================================================
   Nuclio — página oficial
   Marca: blanco de base, violeta #6D28D9 como acento. Manrope (UI) + Spectral (frases).
   Las animaciones de scroll leen --p (0 → 1) que pone nuclio.js en cada bloque:
   avanzan al bajar y vuelven al subir. Sin JS o con "reducir movimiento" todo se ve quieto.
   ============================================================================ */
:root {
    --v: #6D28D9; --v7: #5B21B6; --v9: #2E1065; --v5: #8B5CF6; --v4: #A78BFA;
    --l100: #EDE9FE; --l50: #F5F3FF;
    --ink: #17141F; --ink2: #3D3A47; --ink3: #6E6A78; --muted: #9A96A6; --ph: #A7A2B2;
    --line: #E7E5EC; --line2: #C9C6D1; --inp: #E1DEE8; --s2: #F3F2F6; --off: #FAFAFB;
    --ok: #12A150; --err: #E5484D; --warn: #F5A524; --info: #2E90FA;
    --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --serif: 'Spectral', Georgia, 'Times New Roman', serif;
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --sh: 0 1px 2px rgba(23,20,31,.05), 0 10px 30px -12px rgba(23,20,31,.12);
    --sh-v: 0 6px 18px rgba(109,40,217,.28);
    --nav: 68px;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--v); outline-offset: 3px; border-radius: 8px; }
section[id], #contacto { scroll-margin-top: calc(var(--nav) - 1px); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
@media (min-width: 1100px) { .wrap { padding: 0 36px; } }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--v); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.saltar:focus { top: 12px; }

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

/* ── Tipografía ── */
.kicker { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--v); }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(109,40,217,.14); }
h1 { font-size: clamp(38px, 6vw, 74px); font-weight: 800; line-height: 1.02; letter-spacing: -.038em; }
h2 { font-size: clamp(31px, 4.4vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.032em; }
h1 em, h2 em, .cita em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--v); letter-spacing: -.012em; }
h1 em, h2 em { font-size: 1.06em; }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink3); line-height: 1.55; }

/* ── Logo (símbolo + "nucli" con la "o" como núcleo) ── */
.lk { --s: 30px; --c: var(--v); display: inline-flex; align-items: center; gap: 8px; font-size: 22px; }
.sym { --s2: var(--s, 30px); position: relative; width: var(--s2); height: var(--s2); flex: none; border-radius: 50%; }
.sym::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: calc(var(--s2) * .076) solid var(--c, var(--v)); transition: transform .5s var(--ease); }
.sym::after { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--s2) * .265); height: calc(var(--s2) * .265); border-radius: 50%; background: var(--c, var(--v)); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.wm { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: var(--ink); }
.wm .o { position: relative; display: inline-block; width: .6em; height: .6em; margin-left: .06em; }
.wm .o::before { content: ''; position: absolute; inset: 0; border: .13em solid currentColor; border-radius: 50%; }
.wm .o::after { content: ''; position: absolute; left: 50%; top: 50%; width: .19em; height: .19em; background: var(--dot, var(--v)); border-radius: 50%; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.lk-blanco { --c: #fff; --dot: #fff; --s: 40px; font-size: 30px; gap: 10px; }
.lk-blanco .wm { color: #fff; }
.lk-sm { --s: 22px; font-size: 17px; gap: 6px; }
a:hover > .lk .sym::before, .pie-marca .lk:hover .sym::before { transform: scale(1.1); }
a:hover > .lk .sym::after, .pie-marca .lk:hover .sym::after { transform: translate(-50%, -50%) scale(1.35); }
a:hover > .lk .wm .o::after { transform: translate(-50%, -50%) scale(1.5); }

/* ── Botones: todos se mueven con el cursor ── */
.btn { --mx: 0px; --my: 0px; --lift: 0px; position: relative; isolation: isolate; overflow: hidden;
       display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px;
       border: 0; border-radius: 12px; font: 700 15px/1 var(--ui); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
       translate: var(--mx) calc(var(--my) + var(--lift));
       transition: translate .35s var(--ease), scale .2s var(--ease), box-shadow .3s, background-color .25s, color .25s; }
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { --lift: -2px; }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { scale: .97; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15.5px; }
.btn-full { width: 100%; }
/* Violeta: brillo que cruza + sombra que crece */
.btn-p { background: var(--v); color: #fff; box-shadow: var(--sh-v); }
.btn-p::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.34) 48%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.btn-p:hover { background: var(--v7); box-shadow: 0 14px 30px -6px rgba(109,40,217,.5); }
.btn-p:hover::after { transform: translateX(110%); }
/* Blanco con borde: se llena de lila desde la izquierda */
.btn-g { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-g::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--l50); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn-g:hover { color: var(--v); box-shadow: inset 0 0 0 1.5px var(--v), 0 10px 22px -10px rgba(109,40,217,.35); }
.btn-g:hover::before { transform: scaleX(1); }
/* Contorno blanco (sobre violeta) */
.btn-o { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-o::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.btn-o:hover { color: var(--v); box-shadow: inset 0 0 0 1.5px #fff, 0 14px 30px -10px rgba(20,6,50,.5); }
.btn-o:hover::before { transform: scaleY(1); }

/* Links con subrayado que crece desde el centro */
.ul { background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease), color .2s; }
.ul:hover { background-size: 100% 1.5px; color: var(--v); }
.lnk { color: var(--v); font-weight: 700; }

/* ── Barra de arriba ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.nav.scrolled, .nav.abierto { background: #fff; box-shadow: 0 1px 0 rgba(23,20,31,.07), 0 8px 24px -18px rgba(23,20,31,.25); }
.nav-in { display: flex; align-items: center; gap: 20px; height: var(--nav); }
.nav-logo { display: inline-flex; padding: 6px 4px; margin-left: -4px; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 28px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.nav-cta { display: flex; gap: 10px; }
.nav-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--v4), var(--v)); transform-origin: left; transform: scaleX(0); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; transition: background-color .25s, scale .2s; }
.burger:hover { background: var(--l50); }
.burger:active { scale: .94; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s, background-color .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger:hover span { background: var(--v); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: absolute; top: var(--nav); left: 0; right: 0; background: #fff; padding: 6px 16px 20px; box-shadow: 0 24px 40px -20px rgba(23,20,31,.25); display: grid; animation: menuIn .35s var(--ease); max-height: calc(100svh - var(--nav)); overflow: auto; }
.menu > a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; transition: color .2s, padding-left .3s var(--ease); }
.menu > a:hover { color: var(--v); padding-left: 12px; }
.menu-cta { display: grid; gap: 10px; margin-top: 18px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 920px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: block; }
}

/* ── Bloques fijos mientras se scrollea (la altura la ajusta el JS) ── */
.js .pin { position: relative; }
.js .pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Aparición atada al scroll */
.js [data-r] { opacity: calc(var(--p, 0) * 1.35 - .2); transform: translate3d(0, calc((1 - var(--p, 0)) * 54px), 0); }
.js [data-r-type="scale"] { transform: translate3d(0, calc((1 - var(--p, 0)) * 50px), 0) scale(calc(.92 + var(--p, 0) * .08)); }

/* ============================ 1. Portada ============================ */
.hero { --p: 0; --pa: 0; --pc: 0; --pd: 0; background: #fff; }
.js .hero { height: 205vh; height: 205svh; }
.hero-stage { display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(40px); }
.hero-bg .b1 { width: 620px; height: 620px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(167,139,250,.34), transparent 68%); transform: translate3d(0, calc(var(--p, 0) * 120px), 0); }
.hero-bg .b2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(237,233,254,.9), transparent 70%); }
.hero-bg .b3 { width: 280px; height: 280px; left: 44%; top: 12%; background: radial-gradient(circle, rgba(139,92,246,.16), transparent 70%); transform: translate3d(calc(var(--p, 0) * -80px), 0, 0); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 36px; align-items: center; padding-top: var(--nav); height: 100%; }
.hero-copy { position: relative; z-index: 2; max-width: 580px; }
.hero-copy .kicker { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { max-width: 520px; margin-bottom: 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.checks { display: grid; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.checks li { display: flex; align-items: center; gap: 9px; }
.checks .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--l50); color: var(--v); stroke-width: 2.4; }
.checks.claro { color: rgba(255,255,255,.9); }
.checks.claro .ico { background: rgba(255,255,255,.16); color: #fff; }

.hero-vis { position: relative; z-index: 1; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; container-type: inline-size; }
.orb { position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(109,40,217,.16);
       transform: translate(-50%, -50%) rotate(calc(var(--r0) + var(--pc) * 90deg)) scaleY(.38) scale(calc(1 - var(--pc) * .3)); opacity: calc(1 - var(--pd) * 1.4); }
.orb i { display: none; }
.o1 { --r0: 0deg; } .o2 { --r0: 60deg; } .o3 { --r0: -60deg; }
.core { position: absolute; left: 50%; top: 50%; width: 34cqw; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
        background: radial-gradient(circle, rgba(237,233,254,.95) 0 38%, rgba(237,233,254,0) 70%);
        transform: translate(-50%, -50%) scale(calc(1 + var(--pc) * .3 - var(--pd) * 1.1)); opacity: calc(1 - var(--pd) * 1.5); }
.core .sym { --s: 19cqw; animation: latido 3.2s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(1.06); } }
.chips li { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 9px 11px; border-radius: 99px;
            background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -12px rgba(46,16,101,.35); font-size: clamp(11.5px, 2.5cqw, 14px); font-weight: 700; white-space: nowrap; color: var(--ink);
            --ang: calc(var(--a) + var(--pc) * 150deg);
            transform: translate(-50%, -50%) rotate(var(--ang)) translateX(calc(41cqw * (1 - var(--pc)))) rotate(calc(-1 * var(--ang))) scale(calc(1 - var(--pc) * .55));
            opacity: calc(1.15 - var(--pc) * 1.25); }
.chips .ico { width: 17px; height: 17px; color: var(--v); }

/* Panel que aparece del núcleo */
.app { position: absolute; left: 50%; top: 50%; width: 104cqw; font-size: 12.5px; background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
       box-shadow: 0 40px 80px -30px rgba(46,16,101,.45), 0 0 0 8px rgba(237,233,254,.5);
       transform: translate(-50%, -50%) perspective(1400px) rotateX(calc((1 - var(--pd)) * 22deg)) scale(calc(.18 + var(--pd) * .82));
       opacity: calc(var(--pd) * 1.8 - .15); pointer-events: none; }
.app-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--off); border-bottom: 1px solid var(--line); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.app-bar span { margin-left: 10px; font-size: .86em; font-weight: 600; color: var(--muted); }
.app-body { display: flex; }
.app-side { display: grid; align-content: start; gap: 10px; padding: 14px 10px; border-right: 1px solid var(--line); }
.app-side b { width: 22px; height: 22px; border-radius: 7px; background: var(--s2); }
.app-side b.on { background: var(--v); }
.app-main { flex: 1; min-width: 0; padding: 16px; display: grid; gap: 12px; }
.app-hi small { display: block; color: var(--muted); font-size: .85em; font-weight: 600; }
.app-hi strong { font-size: 1.3em; letter-spacing: -.02em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-size: .82em; font-weight: 600; }
.kpi b { font-size: 1.28em; letter-spacing: -.02em; white-space: nowrap; }
.kpi em { font-style: normal; font-size: .8em; font-weight: 700; color: var(--ok); }
.app-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 118px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(180deg, #fff, var(--l50)); }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--v5), var(--v)); height: calc(var(--h) * 1% * clamp(0, calc(var(--pd) * 1.6 - var(--i) * .05), 1)); min-height: 3px; }
.feed { display: grid; gap: 6px; }
.feed li { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; }
.feed div { flex: 1; min-width: 0; display: grid; }
.feed b { font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed small { color: var(--muted); font-size: .8em; }
.fd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fd.v { background: var(--v); } .fd.g { background: var(--ok); } .fd.a { background: var(--warn); }
.st { font-style: normal; font-size: .76em; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.st-v { background: var(--l100); color: var(--v7); } .st-g { background: #E3F6EA; color: #0E7A3C; } .st-a { background: #FEF3DC; color: #9A5B00; }

.hero-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); opacity: calc(1 - var(--p, 0) * 5); white-space: nowrap; }
.hero-hint span { width: 22px; height: 34px; border: 2px solid var(--line2); border-radius: 12px; position: relative; }
.hero-hint span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--v); animation: rueda 1.6s ease-in-out infinite; }
@keyframes rueda { 60% { transform: translateY(9px); opacity: 0; } 61% { transform: none; opacity: 0; } }

@media (max-width: 979px) {
    .js .hero { height: 215svh; }
    .hero-grid { display: block; padding-top: calc(var(--nav) + 18px); }
    .hero-copy { transform: translate3d(0, calc(var(--pa) * -60px), 0); opacity: calc(1 - var(--pa) * 1.6); }
    .hero-copy .kicker { margin-bottom: 16px; }
    .hero-copy h1 { margin-bottom: 14px; }
    .hero-copy .lead { margin-bottom: 22px; }
    .ctas { margin-bottom: 20px; }
    .ctas .btn { flex: 1 1 auto; }
    .js .hero-vis { position: absolute; left: 50%; top: calc(var(--vt0, 520) * 1px); width: min(90vw, 440px); transform: translate3d(-50%, calc(var(--pa) * var(--vshift, 0) * -1px), 0); }
    .app { width: 100cqw; font-size: 10.5px; }
    .app-side { display: none; }
    .app-cols { grid-template-columns: 1fr; }
    .bars { height: 70px; }
    .feed li:nth-child(3) { display: none; }
    .hero-hint { display: none; }
}
@media (max-width: 979px) and (max-height: 700px) { .checks { display: none; } }
/* Compus con pantalla baja (notebooks, ventana achicada): la portada se achica con el alto */
@media (min-width: 980px) {
    .hero-copy h1 { font-size: min(6vw, 74px, 8.4vh); }
    .hero-vis { width: min(100%, 560px, calc(100vh - var(--nav) - 60px)); }
}
@media (min-width: 980px) and (max-height: 780px) {
    .hero-copy .kicker { margin-bottom: 14px; }
    .hero-copy h1 { margin-bottom: 14px; }
    .hero-copy .lead { margin-bottom: 20px; }
    .ctas { margin-bottom: 18px; }
    .checks { gap: 6px; }
    .hero-hint { display: none; }
}

/* ============================ 2. Canales ============================ */
.flow-sec { background: linear-gradient(180deg, #fff, var(--off)); }
.js .flow-sec { height: 290vh; height: 290svh; }
.flow-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 44px); padding: calc(var(--nav) + 8px) 0 18px; }
.flow-head { text-align: center; }
.flow-head h2 { margin-top: 14px; font-size: clamp(28px, 3.8vw, 48px); }
.flow-wrap { display: grid; gap: clamp(18px, 3vh, 30px); }
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(40px, 9vw, 150px); }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-svg .fb { fill: none; stroke: #DDD7EA; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.flow-svg .fl { fill: none; stroke: var(--v); stroke-width: 2.2; stroke-linecap: round; }
.flow-svg .pk { fill: var(--v); stroke: #fff; stroke-width: 2.5; }
.fcol { position: relative; z-index: 1; display: grid; gap: 12px; }
.fnode { --on: 1; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh);
         opacity: calc(.5 + var(--on) * .5); transform: scale(calc(.96 + var(--on) * .04)); transition: border-color .3s, box-shadow .3s; }
.fnode > .ico { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--s2); color: var(--ink3); transition: background-color .3s, color .3s; }
.fnode b { display: block; font-size: 15px; letter-spacing: -.01em; }
.fnode small { display: block; font-size: 12.5px; color: var(--muted); }
.fnode.lit { border-color: #D6C8F6; box-shadow: 0 12px 28px -14px rgba(109,40,217,.45); }
.fnode.lit > .ico { background: var(--l100); color: var(--v); }
.fmid { justify-items: center; }
.fcore { --bump: 0; position: relative; width: clamp(120px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 8px;
         background: radial-gradient(circle, #fff 0 45%, var(--l50) 72%); border: 1px solid #E4DBFA;
         box-shadow: 0 0 0 calc(var(--bump) * 26px) rgba(109,40,217,.10), 0 22px 50px -20px rgba(76,29,149,.45); transform: scale(calc(1 + var(--bump) * .1)); }
.fcore .sym { --s: clamp(44px, 5vw, 62px); }
.fcore b { font-size: 14px; letter-spacing: -.01em; }
.flow-caps { position: relative; height: 3.4em; max-width: 700px; width: 100%; margin: 0 auto; text-align: center; font-size: clamp(15.5px, 1.4vw, 18px); font-weight: 600; color: var(--ink2); }
.fcap { --c: 1; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; opacity: var(--c); transform: translate3d(0, calc((1 - var(--c)) * 10px), 0); }
.fcap b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--v); color: #fff; font-size: 13px; }
@media (max-width: 859px) {
    .js .flow-sec { height: 270svh; }
    .flow { grid-template-columns: 1fr; gap: 30px; }
    .fin, .fout { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fnode { padding: 10px 11px; gap: 9px; border-radius: 12px; }
    .fnode > .ico { width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
    .fnode b { font-size: 13.5px; }
    .fnode small { display: none; }
    .fcore { width: 104px; gap: 4px; }
    .fcore .sym { --s: 40px; }
    .fcore b { font-size: 12.5px; }
    .flow-caps { height: 4.6em; font-size: 14.5px; }
    .fcap { align-items: flex-start; text-align: left; }
}

/* ============================ 3. Un día en tu local ============================ */
.dia { background: var(--off); }
.js .dia { height: 520vh; }
.dia-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 38px); padding: calc(var(--nav) + 6px) 0 16px; }
.dia-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dia-head h2 { margin-top: 14px; }
.dia-reloj { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; box-shadow: var(--sh); }
.dia-reloj .ico { color: var(--v); width: 22px; height: 22px; }
.dia-reloj i { width: clamp(80px, 14vw, 170px); height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dia-reloj i b { display: block; height: 100%; background: var(--v); transform-origin: left; transform: scaleX(var(--p, 0)); }
.dia-track { display: flex; gap: 20px; width: max-content; padding: 0 max(16px, calc((100vw - 1200px) / 2 + 36px)); will-change: transform; }
html:not(.js) .dia-track { width: auto; overflow-x: auto; padding-bottom: 20px; }
.dcard { --f: 1; flex: none; width: min(82vw, 440px); display: grid; align-content: start; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh);
         transform: scale(calc(.93 + var(--f) * .07)); opacity: calc(.45 + var(--f) * .55); transition: box-shadow .3s, border-color .3s; }
.dcard:hover { border-color: #D6C8F6; box-shadow: 0 24px 50px -24px rgba(76,29,149,.45); }
.dhora { justify-self: start; font-weight: 800; font-size: 13px; color: var(--v7); background: var(--l100); padding: 5px 11px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.dcard h3 { font-size: clamp(20px, 2vw, 23px); letter-spacing: -.02em; line-height: 1.2; }
.dcard p { color: var(--ink3); font-size: 15px; line-height: 1.5; }
@media (max-height: 720px) { .dcard p { font-size: 14px; } .dcard { padding: 18px; } }

/* Maquetas chiquitas (dentro de las tarjetas) */
.mk { margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--off); border: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 8px; }
.mk-top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mk-top .ico { color: var(--v); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(18,161,80,.14); }
.mk-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); color: var(--ink2); }
.mk-row b { font-variant-numeric: tabular-nums; color: var(--ink); }
.mk-row.tot { font-weight: 800; color: var(--ink); border-top-style: solid; }
.mk-alerta { position: relative; background: #fff; box-shadow: 0 18px 40px -22px rgba(46,16,101,.5); border-color: #E4DBFA; }
.mk-bell { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--l100); color: var(--v); animation: campana 2.4s ease-in-out infinite; }
@keyframes campana { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(14deg); } 70% { transform: rotate(-12deg); } 76% { transform: rotate(8deg); } 82% { transform: rotate(-4deg); } }
.mk-t { font-weight: 800; font-size: 16px; }
.mk-t span { color: var(--muted); font-weight: 700; }
.mk-s { color: var(--muted); font-size: 13px; }
.mk-total { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-total b { font-size: 20px; letter-spacing: -.02em; }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.pill.ok { background: #E3F6EA; color: #0E7A3C; }
.mk-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.mk-btns span { text-align: center; padding: 9px; border-radius: 10px; font-weight: 700; }
.b-no { background: var(--s2); color: var(--ink3); }
.b-si { background: var(--v); color: #fff; }
.mk-tabs { display: flex; gap: 6px; font-size: 12.5px; font-weight: 700; }
.mk-tabs b, .mk-tabs span { padding: 5px 12px; border-radius: 99px; }
.mk-tabs b { background: #fff; box-shadow: 0 1px 3px rgba(23,20,31,.12); }
.mk-tabs span { color: var(--muted); }
.mapa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px 4px; }
.m { display: grid; place-items: center; height: 42px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--ink3); background: #fff; border: 1.5px solid var(--line2); }
.m.r { border-radius: 50%; width: 42px; justify-self: center; }
.m.s { border-radius: 10px; }
.m.l { border-radius: 10px; grid-column: span 1; }
.m.ab { background: #E3F6EA; border-color: #7BCB9C; color: #0E7A3C; }
.m.cu { background: #FEF3DC; border-color: #F5C46B; color: #9A5B00; }
.m.re { background: #E4F0FE; border-color: #8DBEF8; color: #175CD3; }
.ley { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ley span { display: inline-flex; align-items: center; gap: 5px; }
.ley i { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--line2); background: #fff; }
.ley i.ab { background: #E3F6EA; border-color: #7BCB9C; } .ley i.cu { background: #FEF3DC; border-color: #F5C46B; } .ley i.re { background: #E4F0FE; border-color: #8DBEF8; }
.cst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cst div { display: grid; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.cst small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.cst b { font-size: 16px; letter-spacing: -.02em; }
.cst b.vv, .mk-nota b { color: var(--v); }
.cbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); }
.cbar i { background: var(--line2); }
.cbar em { background: linear-gradient(90deg, var(--v5), var(--v)); }
.mk-nota { font-weight: 600; color: var(--ink2); }
.mk-mail { background: #fff; padding: 0; overflow: hidden; gap: 0; }
.ml-cab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--v); color: #fff; font-weight: 700; font-size: 13px; }
.ml-t { padding: 12px 14px 2px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.ml-p { padding: 0 14px; color: var(--ink3); font-size: 13px; }
.ml-cup { margin: 10px 14px; padding: 8px 12px; border: 1.5px dashed var(--v4); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; background: var(--l50); }
.ml-cup small { color: var(--ink3); font-weight: 600; }
.ml-cup b { color: var(--v); letter-spacing: .06em; font-family: var(--mono); }
.ml-steps { display: flex; gap: 6px; padding: 0 14px 12px; }
.ml-steps span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 5px 0; border-radius: 8px; background: var(--s2); color: var(--muted); }
.ml-steps span.on { background: #E3F6EA; color: #0E7A3C; }
.mk-ok { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 8px 10px; border-radius: 10px; background: #E3F6EA; color: #0E7A3C; font-weight: 700; font-size: 13px; }

/* ============================ 4. Funciones ============================ */
.sec { padding: clamp(84px, 11vw, 140px) 0; }
.sec-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.sec-head .lead { max-width: 620px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.bc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh);
      transition: translate .45s var(--ease), box-shadow .35s, border-color .35s; }
.bc-a, .bc-d, .bc-e { grid-column: span 7; }
.bc-b, .bc-c, .bc-f { grid-column: span 5; }
.bc:hover { translate: 0 -5px; border-color: #D6C8F6; box-shadow: 0 30px 60px -30px rgba(76,29,149,.4); }
.glow::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
                background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(139,92,246,.10), transparent 60%); }
.glow:hover::before { opacity: 1; }
.bc > *, .pil > * { position: relative; z-index: 1; }
.bc-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--l50); color: var(--v); transition: transform .45s var(--ease), background-color .3s, color .3s; }
.bc-ic .ico { width: 24px; height: 24px; }
.bc:hover .bc-ic, .pil:hover .bc-ic { transform: rotate(-8deg) scale(1.08); background: var(--v); color: #fff; }
.bc h3, .pil h3 { font-size: clamp(21px, 2vw, 25px); letter-spacing: -.025em; line-height: 1.15; }
.bc > p, .pil p { color: var(--ink3); font-size: 15.5px; line-height: 1.5; }
.lst { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.bc-a .lst, .bc-d .lst, .bc-e .lst { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.lst li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.lst .ico { width: 18px; height: 18px; margin-top: 1px; padding: 2.5px; border-radius: 50%; background: var(--l50); color: var(--v); stroke-width: 2.6; }
.bv { margin-top: auto; padding-top: 10px; }

.bv-kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kt { padding: 10px 11px; border-radius: 12px; background: var(--off); border: 1px solid var(--line); font-size: 12.5px; display: grid; gap: 3px;
      transform: translate3d(0, calc((1 - clamp(0, calc(var(--p, 1) * 2.2 - .6), 1)) * 24px), 0); }
.kt:nth-child(2) { transform: translate3d(0, calc((1 - clamp(0, calc(var(--p, 1) * 2.2 - .8), 1)) * 24px), 0); }
.kt:nth-child(3) { transform: translate3d(0, calc((1 - clamp(0, calc(var(--p, 1) * 2.2 - 1), 1)) * 24px), 0); }
.kt-h { display: flex; justify-content: space-between; padding-bottom: 5px; margin-bottom: 2px; border-bottom: 1px dashed var(--line2); }
.kt-h span { color: var(--warn); font-weight: 700; }
.kt p { color: var(--ink2); }
.kt .obs { color: var(--err); font-weight: 600; font-size: 11.5px; }
.kt-ok { background: #F0FAF4; border-color: #BFE6CF; }
.kt-ok .kt-h span { color: var(--ok); }

.bv-phone { display: flex; justify-content: center; }
.ph { width: min(100%, 260px); padding: 12px; border-radius: 30px; background: #fff; border: 7px solid var(--ink); box-shadow: 0 30px 50px -28px rgba(23,20,31,.6); display: grid; gap: 8px; font-size: 12.5px;
      transform: translate3d(0, calc((1 - var(--p, 1)) * 60px), 0) rotate(calc((1 - var(--p, 1)) * 6deg)); }
.ph-cab { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 6px 4px; }
.ph-logo { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--v5), var(--v)); }
.ph-cab small { color: var(--ok); font-weight: 700; font-size: 11px; }
.ph-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--s2); text-align: center; font-weight: 700; font-size: 11.5px; }
.ph-seg b { background: #fff; border-radius: 8px; padding: 5px; box-shadow: 0 1px 3px rgba(23,20,31,.12); }
.ph-seg span { padding: 5px; color: var(--muted); }
.ph-it { display: flex; align-items: center; gap: 9px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ph-it > i { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.fo1 { background: linear-gradient(135deg, #F5C46B, #E08A2E); } .fo2 { background: linear-gradient(135deg, #FBE38E, #F5A524); } .fo3 { background: linear-gradient(135deg, #D9F99D, #84CC16); }
.ph-it div { flex: 1; display: grid; }
.ph-it small { color: var(--ink3); font-weight: 700; }
.ph-it s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.ph-add { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--v); color: #fff; }
.ph-add .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.ph-cart { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 12px; background: var(--v); color: #fff; font-weight: 700; margin-top: 4px; }

.bv-fide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: start; }
.fd-card { padding: 12px; border-radius: 16px; background: linear-gradient(145deg, var(--v), var(--v9)); color: #fff; display: grid; gap: 10px; box-shadow: 0 18px 36px -20px rgba(46,16,101,.8); }
.fd-top { display: flex; align-items: center; gap: 9px; }
.fd-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-weight: 800; font-size: 12px; }
.fd-top div { flex: 1; display: grid; font-size: 13px; }
.fd-top small { opacity: .75; font-size: 11px; }
.fd-top em { font-style: normal; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.16); padding: 3px 8px; border-radius: 99px; }
.sellos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sellos i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: rgba(255,255,255,.35); }
.sellos i:nth-child(-n+7) { background: #fff; color: var(--v); transform: scale(clamp(.4, calc(var(--p, 1) * 10 - var(--i) * .9 - 1.5), 1)); }
.sellos .ico { width: 62%; height: 62%; stroke-width: 2; }
.sellos i:nth-child(-n+7) .ico { fill: currentColor; }
.fd-pie { font-size: 10.5px; opacity: .8; }
.camps { display: grid; gap: 7px; }
.camps li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 700; background: #fff; }
.sw { width: 30px; height: 18px; border-radius: 99px; background: var(--line2); position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s; }
.sw.on { background: var(--ok); }
.sw.on::after { transform: translateX(12px); }

.bv-stock { display: grid; gap: 9px; }
.sk { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.sk i { height: 8px; border-radius: 6px; background: var(--s2); overflow: hidden; }
.sk i b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--v5), var(--v)); width: calc(var(--w) * 100% * var(--p, 1)); }
.sk i b.bj { background: var(--warn); }
.sk em { font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--ink3); white-space: nowrap; }
.sk em.bj { color: #9A5B00; }

.bv-adm { display: grid; gap: 12px; }
.eb { display: grid; gap: 7px; }
.eb-r { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.eb-r i { height: 18px; border-radius: 6px; background: var(--s2); overflow: hidden; }
.eb-r b { display: block; height: 100%; border-radius: 6px; background: var(--line2); width: calc(var(--w) * 100% * var(--p, 1)); }
.eb-r:first-child b { background: var(--v4); }
.eb-r.res { font-weight: 800; color: var(--ink); }
.eb-r.res b { background: linear-gradient(90deg, var(--v5), var(--v)); }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; background: var(--off); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.adm-chips .ico { width: 16px; height: 16px; color: var(--v); }

.bv-suc { display: grid; gap: 8px; }
.sc { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .25s, translate .3s var(--ease); }
.sc:hover { border-color: var(--v); translate: 4px 0; }
.sc-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--l50); color: var(--v); font-weight: 800; font-size: 13px; }
.sc div { flex: 1; display: grid; font-size: 13.5px; }
.sc small { color: var(--muted); font-size: 12px; }
.sc em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }
.sc-add { border-style: dashed; }
.sc-add b { color: var(--v); }

@media (max-width: 899px) {
    .bc-a, .bc-b, .bc-c, .bc-d, .bc-e, .bc-f { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .bc-a .lst, .bc-d .lst, .bc-e .lst { grid-template-columns: 1fr; }
    .bv-kds { grid-template-columns: 1fr 1fr; }
    .bv-kds .kt:nth-child(3) { display: none; }
    .bv-fide { grid-template-columns: 1fr; }
    .sk { grid-template-columns: 92px 1fr auto; gap: 8px; }
    .eb-r { grid-template-columns: 118px 1fr; }
}

/* Cinta de "Y además": se corre con el scroll (y vuelve al subir) */
.marq { margin-top: clamp(56px, 8vw, 90px); display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq-row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.marq-row span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; color: var(--ink2); white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, scale .25s var(--ease); }
.marq-row span:hover { background: var(--v); border-color: var(--v); color: #fff; scale: 1.05; }
.marq-row .ico { width: 17px; height: 17px; color: var(--v); transition: color .25s; }
.marq-row span:hover .ico { color: #fff; }

/* ============================ 5. Comparación ============================ */
.comparar { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.comparar::before { content: ''; position: absolute; width: 800px; height: 800px; left: 50%; top: -420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(109,40,217,.35), transparent 65%); pointer-events: none; }
.sec-head.claro .kicker { color: var(--v4); }
.sec-head.claro h2 em { color: var(--v4); }
.comparar .wrap { position: relative; }
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); max-width: 940px; margin: 0 auto; align-items: start; }
.tk { position: relative; padding-top: 8px; }
.js .tk[data-r] { opacity: 1; transform: none; }
.tk::before { content: ''; position: absolute; left: -10px; right: -10px; top: 0; height: 14px; border-radius: 8px; background: #2B2735; box-shadow: inset 0 -3px 0 #0E0C13; z-index: 2; }
/* Papel con el corte dentado abajo (fondos, sin máscara: la máscara le costaba mucho al navegador) */
.tk-in { position: relative; color: var(--ink); padding: 26px 22px 36px; font-family: var(--mono); font-size: 13.5px;
         background: linear-gradient(#fff, #fff) top / 100% calc(100% - 10px) no-repeat,
                     linear-gradient(135deg, #fff 50%, transparent 50%) left bottom / 20px 10px repeat-x,
                     linear-gradient(-135deg, #fff 50%, transparent 50%) left bottom / 20px 10px repeat-x;
         clip-path: inset(0 0 calc((1 - var(--p, 1)) * 100%) 0); transform: translate3d(0, calc((var(--p, 1) - 1) * 40px), 0); }
.tk-cab { display: grid; justify-items: center; gap: 6px; text-align: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px dashed #CFCBD8; font-family: var(--ui); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.tk-cab small { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.tk-l { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #DEDAE6; }
.tk-l span { color: var(--ink2); }
.tk-l b { white-space: nowrap; font-weight: 700; }
.tk-l.no b { color: var(--muted); font-weight: 500; }
.tk-l.si b { color: var(--v); }
.tk-tot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 16px; }
.tk-tot > b { display: grid; justify-items: end; font-size: 22px; letter-spacing: -.02em; }
.tk-tot small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tk-nuclio .tk-cab { border-bottom-color: var(--v4); }
.tk-nuclio .tk-tot > b { color: var(--v); }
/* Sello "Todo incluido": cae sobre el ticket cuando termina de imprimirse */
.tk-sello { position: absolute; z-index: 3; top: 22px; right: -16px; padding: 8px 12px; border: 2.5px solid var(--v); border-radius: 10px; background: var(--l50); color: var(--v); font: 800 13px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase;
            box-shadow: 0 10px 24px -10px rgba(46,16,101,.6); pointer-events: none;
            transform: rotate(8deg) scale(calc(1.8 - clamp(0, calc((var(--p, 1) - .8) * 6), 1) * .8)); opacity: clamp(0, calc((var(--p, 1) - .8) * 6), 1); }
@media (max-width: 760px) { .tk-sello { right: -6px; top: -14px; } }
.ahorro { margin-top: clamp(36px, 5vw, 54px); text-align: center; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.015em; color: rgba(255,255,255,.88); }
.ahorro strong { color: #fff; background: linear-gradient(transparent 62%, rgba(139,92,246,.55) 62%); }
.js .ahorro[data-r] { transform: scale(calc(.94 + var(--p, 0) * .06)); }   /* sin desplazarse: no se monta sobre la fuente */
.fuente { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.5); }
@media (max-width: 760px) {
    .tickets { grid-template-columns: 1fr; max-width: 460px; }
}

/* ============================ 6. Precio ============================ */
.precio { background: linear-gradient(180deg, #fff 0%, var(--l50) 100%); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); max-width: 1040px; margin: 0 auto; background: #fff; border: 1px solid #E4DDF7; border-radius: 30px; overflow: hidden;
        box-shadow: 0 40px 90px -40px rgba(76,29,149,.45); }
.plan-izq { padding: clamp(28px, 4vw, 48px); display: grid; align-content: start; gap: 16px; }
.plan-badge { justify-self: start; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--v); background: var(--l50); padding: 7px 13px; border-radius: 99px; }
.plan-precio { display: flex; align-items: flex-end; gap: 12px; }
.plan-precio b { font-size: clamp(56px, 7.4vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.plan-precio span { font-size: 15px; font-weight: 700; color: var(--ink3); line-height: 1.25; padding-bottom: 6px; white-space: nowrap; }
.plan-final { font-size: 17px; font-weight: 600; color: var(--ink2); max-width: 360px; }
.plan-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.plan-nota { font-size: 12.5px; color: var(--muted); }
.plan-der { padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, var(--l50), #fff 70%); border-left: 1px solid #EEE9FB; }
.plan-inc { font: 700 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--v); margin-bottom: 18px; }
.lst-2 { grid-template-columns: 1fr 1fr; column-gap: 20px; gap: 12px 20px; }
.lst-2 li { opacity: clamp(0, calc(var(--p, 1) * 20 - var(--i) - 4), 1); transform: translate3d(calc((1 - clamp(0, calc(var(--p, 1) * 20 - var(--i) - 4), 1)) * 14px), 0, 0); }
@media (max-width: 820px) {
    .plan { grid-template-columns: 1fr; }
    .plan-der { border-left: 0; border-top: 1px solid #EEE9FB; }
}
@media (max-width: 460px) { .lst-2 { grid-template-columns: 1fr; } .plan-ctas .btn { flex: 1 1 100%; } }

/* ============================ 7. De dónde viene ============================ */
.origen { background: #fff; }
.cita { margin: 0 auto clamp(48px, 7vw, 80px); max-width: 960px; text-align: center; }
.cita p { font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 3.8vw, 48px); line-height: 1.22; letter-spacing: -.012em; color: var(--ink); }
.cita .w { opacity: clamp(.16, calc(var(--p, 1) * var(--n, 1) * 1.15 - var(--k)), 1); transition: none; }
.js .cita[data-r] { transform: none; opacity: 1; }
.pilares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pil { position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: 24px; background: var(--off); border: 1px solid var(--line); transition: translate .45s var(--ease), box-shadow .35s, border-color .35s, background-color .35s; }
.pil:hover { translate: 0 -5px; background: #fff; border-color: #D6C8F6; box-shadow: 0 30px 60px -30px rgba(76,29,149,.35); }
@media (max-width: 820px) { .pilares { grid-template-columns: 1fr; } }

/* ============================ 8. Pasos ============================ */
.pasos { background: var(--off); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1040px; margin: 0 auto; counter-reset: none; }
.js .steps[data-r] { opacity: 1; transform: none; }
.linea { position: absolute; top: 29px; left: 16.66%; right: 16.66%; height: 2px; background: var(--line); }
.linea i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--v4), var(--v)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.st1 { position: relative; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 0 8px; }
.num { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--v); background: #fff; border: 2px solid #DCD2F7; overflow: hidden; isolation: isolate; transition: scale .3s var(--ease); }
.num::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--l100); border-radius: 50%; transform: scale(clamp(0, calc(var(--p, 1) * 3.6 - var(--i) * 1.1 - .1), 1)); }
.num::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--v); opacity: clamp(0, calc(var(--p, 1) * 3.6 - var(--i) * 1.1 - .1), 1); }
.st1:hover .num { scale: 1.1; }
.st1 h3 { font-size: 21px; letter-spacing: -.02em; }
.st1 p { color: var(--ink3); font-size: 15.5px; max-width: 300px; }
@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 26px; }
    .linea { top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto; }
    .linea i { transform-origin: top; transform: scaleY(var(--p, 1)); }
    .st1 { grid-template-columns: 60px 1fr; justify-items: start; text-align: left; column-gap: 18px; row-gap: 4px; padding: 0; }
    .st1 .num { grid-row: span 2; }
    .st1 h3 { align-self: end; }
}

/* ============================ 9. Preguntas ============================ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-head { display: grid; gap: 16px; position: sticky; top: calc(var(--nav) + 28px); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: inherit; }
.qa-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 6px; background: none; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
        font: 700 clamp(16.5px, 1.5vw, 18.5px)/1.35 var(--ui); letter-spacing: -.012em; color: var(--ink); transition: background-color .25s, padding .35s var(--ease), color .25s; }
.qa-q:hover { background: var(--l50); padding-left: 16px; padding-right: 12px; color: var(--v7); }
.qa-i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--l50); color: var(--v); transition: transform .4s var(--ease), background-color .25s, color .25s; }
.qa-q:hover .qa-i { background: var(--v); color: #fff; transform: scale(1.08); }
.qa.open .qa-i { transform: rotate(135deg); background: var(--v); color: #fff; }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 6px 22px; color: var(--ink3); font-size: 16px; line-height: 1.62; max-width: 640px; }
.qa.open .qa-a { grid-template-rows: 1fr; }
html:not(.js) .qa-a { grid-template-rows: 1fr; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ============================ 10. Contacto ============================ */
.contacto { position: relative; overflow: hidden; background: var(--v); color: #fff; padding: clamp(90px, 11vw, 140px) 0; }
.con-bg { position: absolute; inset: 0; pointer-events: none; }
.con-bg i { position: absolute; border-radius: 50%; }
.con-bg .b1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(167,139,250,.6), transparent 68%); filter: blur(30px); transform: translate3d(calc(var(--p, 0) * 80px), calc(var(--p, 0) * 60px), 0); }
.con-bg .b2 { width: 700px; height: 700px; right: -220px; bottom: -260px; background: radial-gradient(circle, rgba(76,29,149,.8), transparent 66%); filter: blur(34px); transform: translate3d(calc(var(--p, 0) * -70px), calc(var(--p, 0) * -90px), 0); }
.con-bg .e1, .con-bg .e2, .con-bg .e3 { background: #fff; animation: flota 8s ease-in-out infinite; }
.con-bg .e1 { width: 9px; height: 9px; left: 4%; top: 10%; opacity: .75; }
.con-bg .e2 { width: 7px; height: 7px; left: 46%; top: 80%; opacity: .6; animation-duration: 10s; animation-delay: -3s; }
.con-bg .e3 { width: 6px; height: 6px; right: 9%; top: 14%; opacity: .5; animation-duration: 7s; animation-delay: -5s; }
@keyframes flota { 50% { transform: translate(6px, -8px); } }
.con-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
.con-copy { display: grid; gap: 22px; justify-items: start; }
.con-copy h2 em { color: #fff; font-weight: 500; }
.con-copy > p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.82); max-width: 460px; line-height: 1.5; }
.form { position: relative; background: #fff; color: var(--ink); border-radius: 26px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 40px 90px -30px rgba(30,8,70,.7); }
.form-campos { display: grid; gap: 14px; }
.form h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.opc { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--inp); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 500; color: var(--ink);
       transition: border-color .15s, box-shadow .15s, background-color .15s; }
.form textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
               background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6A78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.form input::placeholder, .form textarea::placeholder { color: var(--ph); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--v); box-shadow: 0 0 0 3px rgba(109,40,217,.13); }
.form .mal { border-color: var(--err); box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--err); font-size: 14px; font-weight: 600; }
.form-pie { text-align: center; font-size: 12.5px; color: var(--muted); }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.btn.cargando { pointer-events: none; }
.btn.cargando .spin { display: inline-block; }
.btn.cargando .arr { display: none; }
.form-ok { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 34px 10px; animation: okIn .6s var(--ease); }
.ok-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #E3F6EA; color: var(--ok); }
.ok-ic .ico { width: 34px; height: 34px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; animation: trazo .6s .25s var(--ease) forwards; }
.form-ok p { color: var(--ink3); max-width: 320px; }
@keyframes okIn { from { opacity: 0; transform: scale(.94); } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .con-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .f2 { grid-template-columns: 1fr; } }

/* ============================ Pie ============================ */
.pie { padding: 52px 0 30px; border-top: 1px solid var(--line); }
.pie-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.pie-marca { display: grid; gap: 12px; }
.pie-marca p { font-family: var(--serif); font-size: 18px; color: var(--ink3); }
.pie-links { display: flex; flex-wrap: wrap; gap: 14px 26px; font-weight: 600; font-size: 14.5px; color: var(--ink2); }
.pie-copy { margin-top: 36px; font-size: 12.5px; color: var(--muted); }

/* ============================ Sin animación ============================ */
html.rm { scroll-behavior: auto; }
html:not(.js) .flow-caps { height: auto; display: grid; gap: 8px; }
html:not(.js) .fcap { position: static; }
.rm .pin, .rm .hero, .rm .flow-sec, .rm .dia { height: auto !important; }
.rm .pin-stage { position: relative; height: auto; min-height: 100svh; }
.rm .dia-stage { padding-bottom: 60px; }
.rm .dia-track { width: auto; flex-wrap: wrap; justify-content: center; transform: none !important; }
.rm [data-r] { opacity: 1 !important; transform: none !important; }
.rm *, .rm *::before, .rm *::after { animation: none !important; transition-duration: .01ms !important; }
@media (max-width: 979px) {
    .rm .hero-vis { position: relative; left: auto; top: auto; transform: none; margin: 24px auto 0; }
}
