:root {
    --bg: #3c4046;
    --bg-2: #2c3036;
    --superficie: #ffffff;
    --texto: #f7f8fa;
    --texto-suave: #c5c9d0;
    --borde: rgba(255, 255, 255, .14);
    --acento: #3d7eb8;
    --acento-2: #7eb6e8;
    --acento-suave: rgba(126, 182, 232, .16);
    --peligro: #e11d48;
    --ok: #059669;
    --radio: 18px;
    --fuente: "Manrope", system-ui, sans-serif;
    --display: "Syne", system-ui, sans-serif;
    /* Manito verde de marca (arrastre) */
    --ico-mano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='%232f6ea3' stroke='%232f6ea3' stroke-width='2.6' stroke-linejoin='round'%3E%3Crect x='8' y='6' width='4.2' height='15' rx='2.1'/%3E%3Crect x='13' y='3.5' width='4.2' height='17.5' rx='2.1'/%3E%3Crect x='18' y='5' width='4.2' height='16' rx='2.1'/%3E%3Crect x='23' y='9' width='4.2' height='12' rx='2.1'/%3E%3Crect x='8' y='14' width='19.2' height='14' rx='6'/%3E%3Crect x='4.6' y='14' width='4.4' height='11' rx='2.2' transform='rotate(-30 6.8 24)'/%3E%3C/g%3E%3Cg fill='%234e97cf'%3E%3Crect x='8' y='6' width='4.2' height='15' rx='2.1'/%3E%3Crect x='13' y='3.5' width='4.2' height='17.5' rx='2.1'/%3E%3Crect x='18' y='5' width='4.2' height='16' rx='2.1'/%3E%3Crect x='23' y='9' width='4.2' height='12' rx='2.1'/%3E%3Crect x='8' y='14' width='19.2' height='14' rx='6'/%3E%3Crect x='4.6' y='14' width='4.4' height='11' rx='2.2' transform='rotate(-30 6.8 24)'/%3E%3C/g%3E%3C/svg%3E");
    --cur-grab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='%232f6ea3' stroke='%232f6ea3' stroke-width='2.6' stroke-linejoin='round'%3E%3Crect x='8' y='6' width='4.2' height='15' rx='2.1'/%3E%3Crect x='13' y='3.5' width='4.2' height='17.5' rx='2.1'/%3E%3Crect x='18' y='5' width='4.2' height='16' rx='2.1'/%3E%3Crect x='23' y='9' width='4.2' height='12' rx='2.1'/%3E%3Crect x='8' y='14' width='19.2' height='14' rx='6'/%3E%3Crect x='4.6' y='14' width='4.4' height='11' rx='2.2' transform='rotate(-30 6.8 24)'/%3E%3C/g%3E%3Cg fill='%234e97cf'%3E%3Crect x='8' y='6' width='4.2' height='15' rx='2.1'/%3E%3Crect x='13' y='3.5' width='4.2' height='17.5' rx='2.1'/%3E%3Crect x='18' y='5' width='4.2' height='16' rx='2.1'/%3E%3Crect x='23' y='9' width='4.2' height='12' rx='2.1'/%3E%3Crect x='8' y='14' width='19.2' height='14' rx='6'/%3E%3Crect x='4.6' y='14' width='4.4' height='11' rx='2.2' transform='rotate(-30 6.8 24)'/%3E%3C/g%3E%3C/svg%3E") 16 15, grab;
    --cur-grabbing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='%232f6ea3' stroke='%232f6ea3' stroke-width='2.6' stroke-linejoin='round'%3E%3Crect x='7.5' y='10' width='4.2' height='10' rx='2.1'/%3E%3Crect x='12.5' y='8.5' width='4.2' height='11.5' rx='2.1'/%3E%3Crect x='17.5' y='9' width='4.2' height='11' rx='2.1'/%3E%3Crect x='22.5' y='11' width='4.2' height='9' rx='2.1'/%3E%3Crect x='7.5' y='15' width='19.2' height='12' rx='5.5'/%3E%3C/g%3E%3Cg fill='%234e97cf'%3E%3Crect x='7.5' y='10' width='4.2' height='10' rx='2.1'/%3E%3Crect x='12.5' y='8.5' width='4.2' height='11.5' rx='2.1'/%3E%3Crect x='17.5' y='9' width='4.2' height='11' rx='2.1'/%3E%3Crect x='22.5' y='11' width='4.2' height='9' rx='2.1'/%3E%3Crect x='7.5' y='15' width='19.2' height='12' rx='5.5'/%3E%3C/g%3E%3Crect x='3.6' y='17.4' width='13' height='4.8' rx='2.4' fill='%234e97cf' stroke='%232f6ea3' stroke-width='1.2'/%3E%3C/svg%3E") 16 16, grabbing;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--fuente);
    color: var(--texto);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--acento-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(18, 20, 24, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--borde);
}
.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--texto);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: auto;
}
.logo-img { display: block; height: 44px; width: auto; }
.logo-hero { display: block; width: min(340px, 78vw); height: auto; }
.logo-pie { display: block; height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn) {
    color: var(--texto-suave);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.nav > a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--texto); border-radius: 2px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primario {
    background: linear-gradient(135deg, var(--acento-2), var(--acento));
    color: #fff;
}
.btn-primario:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(62, 130, 190, .35);
}
.btn-fantasma {
    background: transparent;
    color: #f7f8fa;
    border-color: rgba(255, 255, 255, .35);
}
.btn-fantasma:hover {
    border-color: var(--acento-2);
    color: var(--acento);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}
.btn-chico { padding: 8px 14px; font-size: .92rem; }
.btn-bloque { width: 100%; }

.flash-zona {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: min(92vw, 480px);
}
.flash {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ok);
    color: #fff;
    font-weight: 600;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    padding: 28px 4vw 36px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(126, 182, 232, .18), transparent 46%),
        linear-gradient(180deg, #2a2e34 0%, var(--bg) 100%);
}
.hero-fondo { position: absolute; inset: 0; pointer-events: none; }
.grid-tech {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 182, 232, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 182, 232, .08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 12%, transparent 68%);
}
.hero-contenido { position: relative; z-index: 1; max-width: 560px; }
.marca-hero {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 3.35rem);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -.04em;
    color: var(--texto);
}
.marca-hero strong { color: var(--acento-2); }
.hero h1 {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 700;
    max-width: 28ch;
    margin-bottom: 10px;
}
.hero-sub {
    color: var(--texto-suave);
    font-size: .98rem;
    max-width: 44ch;
    margin-bottom: 18px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { padding: 10px 16px; }

.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }

.pc-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: end;
    width: min(100%, 520px);
}
.pc-duo .pc-demo:first-child { transform: translateY(10px); }
.pc-duo .pc-demo-alt { transform: translateY(-6px) scale(.94); }

/* PC digitalizando / pedidos */
.pc-demo {
    width: 100%;
    display: grid;
    justify-items: center;
    animation: flotar 5.5s ease-in-out infinite;
}
.pc-demo-alt { animation-delay: -2.2s; }
@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.pc-pantalla {
    width: 100%;
    background: #0f172a;
    border: 2px solid #1e293b;
    border-radius: 14px 14px 6px 6px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
}
.pc-barra {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #1e293b;
}
.pc-barra span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}
.pc-barra span:first-child { background: #fb7185; }
.pc-barra span:nth-child(2) { background: #fbbf24; }
.pc-barra span:nth-child(3) { background: #34d399; }
.pc-barra em {
    margin-left: auto;
    font-style: normal;
    font-size: .68rem;
    font-weight: 700;
    color: #94a3b8;
    font-family: ui-monospace, Consolas, monospace;
}
.pc-cuerpo {
    display: grid;
    grid-template-columns: 1.15fr .95fr;
    gap: 10px;
    padding: 12px;
    min-height: 168px;
    background:
        linear-gradient(160deg, #0b1220 0%, #132033 100%);
}
.pc-cuerpo-pedidos { grid-template-columns: 1fr 1fr; }
.pc-doc {
    position: relative;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 12px;
}
.pc-doc-hoja {
    width: 100%;
    max-width: 120px;
    background: #fff;
    border-radius: 6px;
    padding: 12px 10px;
    display: grid;
    gap: 7px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.pc-doc-hoja i {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
}
.pc-doc-hoja i.corta { width: 62%; }
.pc-doc-hoja b {
    display: block;
    height: 36px;
    margin-top: 4px;
    border-radius: 4px;
    background: #e2e8f0;
}
.pc-laser {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #8ec4ef;
    box-shadow: 0 0 14px 3px rgba(142, 196, 239, .55);
    animation: pcScan 2.8s ease-in-out infinite;
    z-index: 2;
}
@keyframes pcScan {
    0%, 100% { top: 14%; opacity: .35; }
    50% { top: 78%; opacity: 1; }
}
.pc-pedido {
    display: grid;
    gap: 7px;
    align-content: center;
}
.pc-ticket {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 8px;
    padding: 7px 8px;
    animation: ticketPulse 3.8s ease-in-out infinite;
}
.pc-ticket.t2 { animation-delay: .6s; border-color: rgba(142, 196, 239, .35); }
.pc-ticket.t3 { animation-delay: 1.2s; background: rgba(47, 110, 163, .35); border-color: rgba(142, 196, 239, .45); }
.pc-ticket b { display: block; font-size: .72rem; color: #eef6fc; }
.pc-ticket small { color: #94a3b8; font-size: .62rem; }
@keyframes ticketPulse {
    0%, 100% { transform: translateY(0); opacity: .75; }
    40% { transform: translateY(-3px); opacity: 1; }
}

.pc-term {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 2px;
    min-height: 110px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: .62rem;
    font-weight: 700;
    color: #d6e8f7;
}
.pc-term-line {
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
}
.pc-term-line.es-ok { color: #eef6fc; }
.pc-cursor {
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 2px;
    background: #8ec4ef;
    vertical-align: text-bottom;
    animation: blinkCursor 1s steps(1) infinite;
}
@keyframes blinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Reveal tipo Framer: entra al scrollear */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
[data-reveal].es-visible {
    opacity: 1;
    transform: none;
}
.pc-base {
    width: 72%;
    height: 10px;
    margin-top: -1px;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 0 0 8px 8px;
}
.pc-pie {
    width: 42%;
    height: 6px;
    background: #94a3b8;
    border-radius: 0 0 10px 10px;
}

.bloque {
    padding: 40px 4vw 52px;
    scroll-margin-top: 72px;
    transition: background-color .45s ease, color .35s ease;
}
.contenedor { max-width: 1280px; margin: 0 auto; }
.ejemplos > .contenedor { max-width: 1400px; }
.contenedor-angosto { max-width: 640px; margin: 0 auto; }
.bloque h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.bloque-sub { color: var(--texto-suave); font-size: .98rem; max-width: 58ch; }


.pasos {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.pasos li {
    padding: 16px 0 0;
    border-top: 2px solid var(--acento-2);
}
.paso-num {
    display: block;
    font-family: var(--display);
    color: var(--acento-2);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 8px;
}
.pasos strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.pasos p { color: var(--texto-suave); font-size: .9rem; }

/* Alternancia de tono por sección */
.tono-claro {
    --seccion-bg: #3c4046;
    --texto: #f7f8fa;
    --texto-suave: #c5c9d0;
    --borde: rgba(255, 255, 255, .14);
    --superficie: #ffffff;
    --acento: #3d7eb8;
    --acento-2: #7eb6e8;
    --acento-suave: rgba(126, 182, 232, .16);
    background: var(--seccion-bg);
    color: var(--texto);
}
.tono-oscuro {
    --seccion-bg: #17191e;
    --texto: #f7f8fa;
    --texto-suave: #c5c9d0;
    --borde: rgba(255, 255, 255, .14);
    --superficie: #ffffff;
    --acento: #9cc8ef;
    --acento-2: #7eb6e8;
    --acento-suave: rgba(126, 182, 232, .16);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(126, 182, 232, .14), transparent 45%),
        var(--seccion-bg);
    color: var(--texto);
}
.tono-oscuro h2, .tono-claro h2 { color: #f7f8fa; }
.tono-oscuro .bloque-sub { color: var(--texto-suave); }
.tono-oscuro .demo {
    --texto: #0f172a;
    --texto-suave: #64748b;
    --borde: #d8e0ea;
    --acento: #3d7eb8;
    --acento-2: #2f6ea3;
    --acento-suave: #e8f3fb;
    background: rgba(255, 255, 255, .97);
    color: #0f172a;
    border-color: rgba(255, 255, 255, .2);
}
.tono-oscuro .demo h3 { color: #0f172a; }
.tono-oscuro .demo-texto p { color: #64748b; }
.tono-oscuro .paso-num { color: var(--acento-2); }
.tono-oscuro .pasos li { border-top-color: var(--acento-2); }
.tono-oscuro .pasos strong, .tono-claro .pasos strong { color: #f7f8fa; }
.tono-oscuro .pasos p { color: var(--texto-suave); }
.tono-oscuro .btn-fantasma {
    background: transparent;
    color: #f7f8fa;
    border-color: rgba(126, 182, 232, .4);
}
.tono-oscuro .campo > span,
.tono-oscuro .campo legend { color: #f7f8fa; }
.tono-oscuro .form-nota,
.tono-oscuro .ayuda { color: var(--texto-suave); }
.tono-oscuro .opcion span {
    background: rgba(20, 23, 28, .72);
    color: #f7f8fa;
    border-color: rgba(126, 182, 232, .28);
}
.tono-oscuro .opcion input:checked + span {
    background: var(--acento-suave);
    color: #eef6fc;
    border-color: var(--acento-2);
}
.tono-oscuro .zona-archivo {
    background: rgba(20, 23, 28, .55);
    border-color: rgba(126, 182, 232, .45);
    color: var(--texto-suave);
}
.tono-oscuro .campo input,
.tono-oscuro .campo textarea {
    background: #fff;
    color: #0f172a;
    border-color: rgba(255, 255, 255, .35);
}
.demos {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}
.demos-fila { grid-template-columns: 1fr; }
.demo {
    background: var(--superficie);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 24px 26px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.demo:hover {
    border-color: rgba(78, 151, 207, .4);
    box-shadow: 0 14px 36px rgba(47, 110, 163, .12);
    transform: translateY(-3px);
}
.demo.es-activa {
    border-color: rgba(78, 151, 207, .45);
    box-shadow: 0 12px 32px rgba(78, 151, 207, .1);
}
.demo-ancha {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 28px 36px;
    align-items: center;
}
.demo-texto { display: grid; gap: 8px; align-content: start; }
.demo-tipo {
    justify-self: start;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--acento);
    background: var(--acento-suave);
    padding: 3px 9px;
    border-radius: 999px;
}
.demo h3 { font-size: 1.2rem; margin: 0; }
.demo-texto p, .demo > p { color: var(--texto-suave); font-size: .95rem; }

.demo-escena {
    min-height: 240px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--borde);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1fr);
    gap: 16px 18px;
    align-items: center;
    padding: 18px 20px;
    width: 100%;
    overflow: hidden;
}
.demo-escena-ancha { min-height: 260px; }
.demo-escena-flujo {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 16px;
}
.demo-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    height: 100%;
}
.demo-tag {
    align-self: flex-start;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}
.demo-tag.ok { background: #e3f1fb; color: var(--acento); }

/* Conector tech: riel + paquetes de datos */
.sep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 8px;
    min-width: 96px;
    position: relative;
    z-index: 1;
    border-radius: 14px;
    transition: background .2s, transform .2s;
}
.sep:hover,
.sep.es-activa {
    background: rgba(238, 246, 252, .7);
}
.sep-rail {
    position: absolute;
    inset: 12% auto;
    width: 3px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(78, 151, 207, .55) 0 4px,
            transparent 4px 8px
        );
    opacity: .55;
    overflow: hidden;
    pointer-events: none;
}
.sep-rail i {
    position: absolute;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 2px;
    background: #8ec4ef;
    box-shadow: 0 0 10px rgba(142, 196, 239, .85);
    animation: paqVertical 1.9s linear infinite;
}
.sep-rail i:nth-child(2) { animation-delay: .63s; }
.sep-rail i:nth-child(3) { animation-delay: 1.26s; }
@keyframes paqVertical {
    0% { top: -10%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}
.sep-pill {
    position: relative;
    font-size: .68rem;
    font-weight: 800;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #eef6fc;
    background: linear-gradient(135deg, #2f6ea3 0%, #4e97cf 55%, #6aaddf 100%);
    padding: 7px 10px;
    border-radius: 9px;
    white-space: nowrap;
    border: 1px solid rgba(214, 232, 247, .35);
    box-shadow:
        0 8px 18px rgba(78, 151, 207, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    animation: latidoExe 2.4s ease-in-out infinite;
}
.sep-pill::before {
    content: "▸";
    margin-right: 4px;
    opacity: .7;
    animation: blinkCursor 1s steps(1) infinite;
}
@keyframes blinkCursor {
    0%, 50% { opacity: .7; }
    51%, 100% { opacity: 0; }
}
.sep-caption {
    position: relative;
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--acento);
    background: #fff;
    border: 1px dashed rgba(78, 151, 207, .4);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.sep-chevron {
    position: relative;
    width: 28px;
    height: 2px;
    background: var(--acento-2);
    border-radius: 999px;
    animation: pulsoFlecha 1.8s ease-in-out infinite;
}
.sep-chevron::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--acento-2);
}
.sep-flujo {
    min-width: 58px;
    padding: 4px 2px;
    align-self: center;
    margin-top: 14px;
}
.sep-flujo .sep-rail {
    inset: 48% 0 auto;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    transform: none;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(78, 151, 207, .55) 0 4px,
            transparent 4px 8px
        );
}
.sep-flujo .sep-rail i {
    top: 50%;
    left: -10%;
    margin-left: 0;
    margin-top: -3.5px;
    animation: paqHorizontal 1.7s linear infinite;
}
.sep-flujo .sep-rail i:nth-child(2) { animation-delay: .85s; }
@keyframes paqHorizontal {
    0% { left: -12%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 112%; opacity: 0; }
}
.sep-flujo .sep-pill { display: none; }
.sep-flujo .sep-caption {
    font-size: .55rem;
    letter-spacing: .05em;
    padding: 2px 6px;
}
.sep-flujo .sep-chevron { width: 22px; }

@keyframes latidoExe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes pulsoFlecha {
    0%, 100% { opacity: .45; transform: scaleX(.78); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Separador entre secciones — puerto de enlace */
.puente {
    --p-claro: #3c4046;
    --p-oscuro: #17191e;
    --p-desde: var(--p-claro);
    --p-hacia: var(--p-oscuro);
    --p-acento: #4e97cf;
    position: relative;
    height: 64px;
    overflow: hidden;
    pointer-events: none;
}
.puente-claro-claro { --p-desde: var(--p-claro); --p-hacia: var(--p-claro); --p-acento: #4e97cf; }
.puente-claro-oscuro { --p-desde: var(--p-claro); --p-hacia: var(--p-oscuro); --p-acento: #8ec4ef; }
.puente-oscuro-claro { --p-desde: var(--p-oscuro); --p-hacia: var(--p-claro); --p-acento: #2f6ea3; }
.puente-oscuro-oscuro { --p-desde: var(--p-oscuro); --p-hacia: var(--p-oscuro); --p-acento: #b7d4f0; }

.puente-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--p-desde) 0%, var(--p-hacia) 100%);
}

.puente-centro {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: .55;
    transform: scale(.96);
    transition: opacity .55s ease, transform .55s ease;
}
.puente.es-visto .puente-centro {
    opacity: 1;
    transform: scale(1);
}

.puente-rayo {
    width: min(28vw, 160px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--p-acento), transparent);
    opacity: .7;
}
.puente-nodo {
    width: 14px;
    height: 14px;
    border: 2px solid var(--p-acento);
    border-radius: 3px;
    background: rgba(255, 255, 255, .35);
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px rgba(78, 151, 207, .1);
    flex: 0 0 auto;
}
.puente.es-visto .puente-nodo {
    animation: puentePulso 2.4s ease-in-out infinite;
}
.puente-claro-oscuro .puente-nodo,
.puente-oscuro-oscuro .puente-nodo {
    background: rgba(12, 61, 58, .55);
    box-shadow: 0 0 0 4px rgba(142, 196, 239, .12);
}
@keyframes puentePulso {
    0%, 100% { box-shadow: 0 0 0 4px rgba(78, 151, 207, .1); }
    50% { box-shadow: 0 0 0 8px rgba(142, 196, 239, .18); }
}

@media (prefers-reduced-motion: reduce) {
    .sep-rail i,
    .flecha-fluxo .paq,
    .pc-demo,
    .pc-laser,
    .pc-ticket,
    .archivo-ico,
    .flujo-caja,
    .flujo-chip.alerta,
    .flujo-chip.es-accion,
    .demo-escena-flujo [data-f].es-on,
    .demo-escena-flujo .flujo-paso.es-on .flujo-caja,
    .demo-escena-flujo .flujo-paso.es-on .flujo-chip,
    .demo-escena-flujo.es-enviando .flujo-caja.cliente,
    .demo-escena.es-listo > .sep,
    .demo-escena.es-listo .demo-resultado,
    .demo-escena.es-listo .demo-resultado > *,
    .drag-flecha::before { animation: none !important; }
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pc-cursor { animation: none; opacity: 1; }
    .btn:hover,
    .demo:hover { transform: none; box-shadow: none; }
    .puente.es-visto .puente-nodo { animation: none; }
    .puente-centro { opacity: 1; transform: none; transition: none; }
}
.doc {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    display: grid;
    gap: 4px;
}
.doc b { font-size: .82rem; }
.doc small { color: var(--texto-suave); font-size: .72rem; }
.doc-pdf { border-left: 4px solid #e11d48; animation: entra 3.5s ease-in-out infinite; }
.doc-txt { border-left: 4px solid var(--acento-2); animation: sale 3.5s ease-in-out infinite; }
.doc-txt code { font-size: .68rem; color: var(--texto-suave); }
.doc-xls { border-left: 4px solid #16a34a; animation: entra 3.5s ease-in-out infinite; }
.doc-xls.chico { animation: none; }
.doc-web { border-left: 4px solid #2563eb; text-align: center; animation: sale 3.5s ease-in-out infinite; }
.doc-dif { border-left: 4px solid #d97706; animation: sale 3.5s ease-in-out infinite; }
.doc-dif ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: .72rem; display: grid; gap: 3px; }
.doc-dif em { color: #b45309; font-style: normal; font-weight: 700; }
@keyframes entra {
    0%, 100% { transform: translateX(0); opacity: 1; }
    40% { transform: translateX(4px); opacity: .65; }
}
@keyframes sale {
    0%, 35% { transform: translateX(-4px); opacity: .35; }
    55%, 100% { transform: translateX(0); opacity: 1; }
}

.destino {
    margin-top: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #2f6ea3;
    color: #eef6fc;
    text-align: center;
    animation: destinoIn 3.5s ease-in-out infinite;
}
.destino span { display: block; font-size: .68rem; opacity: .85; }
.destino strong { font-size: .78rem; line-height: 1.25; }
@keyframes destinoIn {
    0%, 45% { opacity: .35; transform: translateY(4px); }
    65%, 100% { opacity: 1; transform: translateY(0); }
}

.mini-tabla { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.mini-tabla li {
    font-size: .68rem;
    color: var(--texto-suave);
    background: #f1f5f9;
    border-radius: 4px;
    padding: 3px 6px;
}
.pilas { display: grid; gap: 6px; animation: sale 3.5s ease-in-out infinite; }
.pila {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--borde);
    border-left: 4px solid var(--acento-2);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: .75rem;
}
.pila span { color: var(--texto-suave); }

.caos { display: grid; gap: 6px; animation: entra 3.5s ease-in-out infinite; }
.caos span {
    font-size: .75rem;
    font-weight: 600;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 8px;
    padding: 7px 8px;
}
.panel-local { display: grid; gap: 6px; animation: sale 3.5s ease-in-out infinite; }
.mesa-item {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 8px;
    padding: 7px 9px;
}
.mesa-item.ocupada { border-color: var(--acento-2); background: var(--acento-suave); }
.mesa-item b { display: block; font-size: .8rem; }
.mesa-item small { color: var(--texto-suave); font-size: .7rem; }
.cuenta {
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}
.btn-falso {
    display: inline-block;
    margin: 6px auto;
    background: var(--acento-2);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.carpeta-caos { display: grid; gap: 4px; animation: entra 3.5s ease-in-out infinite; }
.carpeta-caos span {
    font-size: .68rem;
    font-family: ui-monospace, Consolas, monospace;
    background: #fff;
    border: 1px dashed #fca5a5;
    color: #b91c1c;
    border-radius: 6px;
    padding: 5px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carpeta-ok { display: grid; gap: 6px; animation: sale 3.5s ease-in-out infinite; }
.folder {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 8px;
    padding: 8px 10px;
    position: relative;
}
.folder::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 10px;
    width: 28px;
    height: 8px;
    background: #fbbf24;
    border-radius: 3px 3px 0 0;
}
.folder b { display: block; font-size: .78rem; }
.folder small { color: var(--texto-suave); font-size: .7rem; }

.dos-listas { display: grid; gap: 6px; animation: entra 3.5s ease-in-out infinite; }

/* Arrastrar archivo → programa */
.drop-flujo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(140px, 1.15fr);
    gap: 12px;
    align-items: center;
    width: 100%;
}
.archivos-drag {
    display: grid;
    gap: 6px;
}
.archivo-ico {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 10px;
    padding: 7px 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    animation: dragHacia 2.4s ease-in-out infinite;
    cursor: var(--cur-grab, grab);
    user-select: none;
    touch-action: none;
    -webkit-user-drag: element;
    position: relative;
}
.archivo-ico::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 18px;
    margin-right: 2px;
    background:
        radial-gradient(circle, #4e97cf 1.6px, transparent 1.8px) 0 2px / 10px 7px repeat-y,
        radial-gradient(circle, #4e97cf 1.6px, transparent 1.8px) 5px 2px / 10px 7px repeat-y;
    opacity: .95;
}
.archivo-ico:nth-child(2) { animation-delay: .35s; }
.archivo-ico:active {
    cursor: var(--cur-grabbing, grabbing);
}
.archivo-ico.es-arrastrando {
    opacity: .35;
    animation: none;
}
.archivo-ico.es-usado {
    opacity: .4;
    filter: grayscale(.4);
    animation: none;
    cursor: default;
    pointer-events: none;
}
/* El resultado (derecha) NO se ve hasta que el usuario interactúa */
.demo-escena.es-espera-drop > .sep,
.demo-escena.es-espera-drop .demo-resultado {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    animation: none;
}
.demo-escena.es-espera-drop { position: relative; }
.demo-escena.es-espera-drop::after {
    content: "El resultado aparece acá";
    position: absolute;
    top: 18px;
    right: 20px;
    bottom: 18px;
    width: 33%;
    display: grid;
    place-items: center;
    padding: 12px;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    color: #94a3b8;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    pointer-events: none;
}
.demo-escena.es-listo > .sep {
    animation: apareceX .5s cubic-bezier(.2, .8, .2, 1) both;
}
.demo-escena.es-listo .demo-resultado {
    animation: apareceX .6s cubic-bezier(.2, .8, .2, 1) .3s both;
}
.demo-escena.es-listo .demo-resultado > *:not(.demo-tag) {
    animation: apareceY .5s cubic-bezier(.2, .8, .2, 1) both;
}
.demo-escena.es-listo .demo-resultado > *:nth-child(2) { animation-delay: .6s; }
.demo-escena.es-listo .demo-resultado > *:nth-child(3) { animation-delay: .85s; }
.demo-escena.es-listo .demo-resultado > *:nth-child(4) { animation-delay: 1.1s; }
.demo-escena.es-listo .demo-resultado > *:nth-child(n+5) { animation-delay: 1.3s; }
.demo-escena.es-listo > .sep .sep-rail i {
    animation-iteration-count: 3;
    animation-fill-mode: both;
}
.demo-escena.es-listo > .sep .sep-chevron { animation: none; opacity: 1; }
.demo-escena.es-listo > .sep .sep-pill { animation: none; }
@keyframes apareceX {
    from { opacity: 0; transform: translateX(-16px) scale(.94); }
    to { opacity: 1; transform: none; }
}
@keyframes apareceY {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: none; }
}
.demo-reiniciar {
    display: none;
    justify-self: start;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    min-height: 32px;
    padding: 6px 14px;
    font-family: var(--fuente);
    font-size: .74rem;
    font-weight: 800;
    color: var(--acento);
    background: #fff;
    border: 1.5px solid rgba(78, 151, 207, .5);
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.demo-reiniciar:hover { background: var(--acento-suave); transform: translateY(-1px); }
.demo-escena.es-listo .demo-reiniciar { display: inline-flex; }
.demo-escena.es-procesando .drop-zona {
    border-style: solid;
    border-color: var(--acento-2);
    animation: dropPulse .7s ease-in-out infinite;
}
.demo-escena.es-listo .demo-resultado {
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
}
.demo-escena.es-listo .drop-zona {
    border-style: solid;
    border-color: #059669;
    background: #ecfdf5;
    animation: none;
}
.demo-escena.es-listo .drop-zona strong::after {
    content: " · listo";
    color: #047857;
}
.demo-escena.es-listo .archivo-ico { animation: none; }
.drop-programa.es-sobre {
    box-shadow: 0 0 0 3px rgba(142, 196, 239, .45), 0 10px 28px rgba(78, 151, 207, .18);
    transform: scale(1.02);
    transition: transform .15s ease, box-shadow .15s ease;
}
.drop-programa.es-sobre .drop-zona {
    border-color: var(--acento-2);
    border-style: solid;
    background: #eef6fc;
}
.demo-pista-drag {
    display: block;
    margin-top: 6px;
    font-size: .68rem;
    font-weight: 700;
    color: var(--acento);
    opacity: .85;
}
.demo-escena.es-listo .demo-pista-drag { display: none; }
.archivo-ico b {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    word-break: break-all;
}
.archivo-ico small {
    display: block;
    color: var(--texto-suave);
    font-size: .65rem;
}
.archivo-badge {
    flex: 0 0 auto;
    min-width: 34px;
    text-align: center;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: #64748b;
    border-radius: 6px;
    padding: 8px 6px;
    line-height: 1;
}
.archivo-badge.inline {
    display: inline-block;
    min-width: 0;
    padding: 3px 6px;
    margin-right: 4px;
    vertical-align: middle;
}
.tipo-xls .archivo-badge,
.archivo-badge.tipo-xls { background: #16a34a; }
.tipo-pdf .archivo-badge,
.archivo-badge.tipo-pdf { background: #dc2626; }
.tipo-img .archivo-badge,
.archivo-badge.tipo-img { background: #2563eb; }
.tipo-txt .archivo-badge,
.archivo-badge.tipo-txt { background: #4e97cf; }

.drag-flecha {
    width: 22px;
    height: 3px;
    background: var(--acento-2);
    position: relative;
    border-radius: 999px;
    animation: pulsoFlecha 1.6s ease-in-out infinite;
}
.drag-flecha::before {
    content: "";
    position: absolute;
    left: -6px;
    top: -30px;
    width: 28px;
    height: 28px;
    background: var(--ico-mano) center / contain no-repeat;
    animation: manoDrag 2.4s ease-in-out infinite;
}
.demo-escena.es-listo .drag-flecha::before { display: none; }
.drag-flecha::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--acento-2);
}
@keyframes dragHacia {
    0%, 100% { transform: translateX(0); }
    55% { transform: translateX(6px); }
}
@keyframes manoDrag {
    0%, 100% { opacity: .45; transform: translateX(-4px); }
    55% { opacity: 1; transform: translateX(8px); }
}

.drop-programa {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    min-width: 0;
}
.drop-barra {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background: #2f6ea3;
    color: #eef6fc;
}
.drop-barra i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
}
.drop-barra i:first-child { background: #fb7185; }
.drop-barra i:nth-child(2) { background: #fbbf24; }
.drop-barra i:nth-child(3) { background: #34d399; }
.drop-barra b {
    margin-left: auto;
    font-size: .68rem;
    font-family: ui-monospace, Consolas, monospace;
    font-weight: 800;
}
.drop-zona {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 14px 10px;
    text-align: center;
    border: 2px dashed rgba(78, 151, 207, .45);
    margin: 8px;
    border-radius: 10px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(78, 151, 207, .06) 0 8px,
            transparent 8px 16px
        );
    animation: dropPulse 2.2s ease-in-out infinite;
}
.drop-zona strong {
    font-size: .78rem;
    color: var(--acento);
}
.drop-zona small {
    font-size: .65rem;
    color: var(--texto-suave);
}
.drop-flecha {
    font-size: 1rem;
    color: var(--acento-2);
    animation: dropBounce 1.2s ease-in-out infinite;
}
@keyframes dropPulse {
    0%, 100% { border-color: rgba(78, 151, 207, .35); background-color: rgba(238, 246, 252, .4); }
    50% { border-color: rgba(78, 151, 207, .7); background-color: rgba(238, 246, 252, .85); }
}
@keyframes dropBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
.drop-zona-scan {
    padding: 8px;
    gap: 6px;
}
.pdf-rico-mini {
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: 8px;
    margin: 0;
}
.pdf-rico-mini .pdf-cabeza { margin-bottom: 4px; }
.pdf-rico-mini .pdf-cabeza b { font-size: .68rem; }
.pdf-rico-mini .pdf-cabeza small { font-size: .58rem; }
.pdf-rico-mini .pdf-logo { width: 18px; height: 18px; }
.pdf-rico-mini .scan-label {
    position: static;
    display: block;
    text-align: center;
    margin-top: 2px;
}

.sep:not(:has(.sep-pill)) {
    min-width: 64px;
}
.sep:not(:has(.sep-pill)) .sep-caption {
    background: var(--acento-suave);
    border-style: solid;
}

/* PDF rico + escaneo */
.pdf-rico {
    position: relative;
    width: 100%;
    max-width: 220px;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    overflow: hidden;
    justify-self: center;
}
.pdf-cabeza { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pdf-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #2f6ea3 40%, #d6e8f7 40% 70%, #f59e0b 70%);
    flex: none;
}
.pdf-cabeza b { display: block; font-size: .78rem; }
.pdf-cabeza small { color: var(--texto-suave); font-size: .68rem; }
.pdf-foto {
    height: 54px;
    border-radius: 8px;
    margin-bottom: 8px;
    background:
        linear-gradient(120deg, #cbd5e1 0 35%, transparent 35%),
        linear-gradient(30deg, #94a3b8, #e2e8f0);
}
.pdf-lineas { display: grid; gap: 5px; margin-bottom: 8px; }
.pdf-lineas span { height: 6px; border-radius: 3px; background: #e2e8f0; }
.pdf-lineas .corta { width: 60%; }
.pdf-tabla { display: grid; gap: 4px; }
.pdf-tabla i { display: block; height: 10px; border-radius: 3px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.scan-barra {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8ec4ef, transparent);
    box-shadow: 0 0 16px rgba(142, 196, 239, .8);
    animation: escanear 2.8s ease-in-out infinite;
    pointer-events: none;
}
.scan-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: .65rem;
    font-weight: 800;
    color: var(--acento);
    background: rgba(238, 246, 252, .95);
    padding: 3px 7px;
    border-radius: 999px;
    animation: parpadeoScan 2.8s ease-in-out infinite;
}
@keyframes escanear {
    0% { top: 8%; opacity: .2; }
    50% { top: 78%; opacity: 1; }
    100% { top: 8%; opacity: .2; }
}
@keyframes parpadeoScan {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}
.datos-extraidos {
    display: grid;
    gap: 8px;
    animation: sale 3.5s ease-in-out infinite;
}
.datos-extraidos ul {
    list-style: none;
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    display: grid;
    gap: 5px;
    font-size: .8rem;
}
.datos-extraidos em {
    font-style: normal;
    font-weight: 700;
    color: var(--acento);
    margin-right: 6px;
}

/* Flujo de pedidos */
.flujo-paso { display: grid; gap: 8px; min-width: 118px; }
.flujo-rol {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texto-suave);
    text-align: center;
}
.flujo-caja {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    display: grid;
    gap: 4px;
    min-height: 118px;
    align-content: center;
}
.flujo-caja b { font-size: .88rem; }
.flujo-caja small { color: var(--texto-suave); font-size: .72rem; line-height: 1.3; }
.flujo-chip {
    display: inline-block;
    margin-top: 6px;
    font: inherit;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    border: 0;
}
.flujo-chip.es-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    min-height: 38px;
    margin-top: 8px;
    padding: 8px 16px;
    font-family: var(--fuente);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: var(--acento);
    color: #fff;
    box-shadow: 0 4px 10px rgba(47, 110, 163, .28);
    transition: transform .15s, box-shadow .15s, background .2s, color .2s;
    animation: botonLatido 2s ease-in-out infinite;
}
.flujo-chip.es-accion:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(78, 151, 207, .32);
}
.flujo-chip.es-accion:active { transform: translateY(1px) scale(.97); }
.flujo-chip.es-accion:focus-visible { outline: 3px solid rgba(142, 196, 239, .6); outline-offset: 2px; }
.flujo-chip.es-accion:disabled { cursor: progress; animation: none; background: #4e97cf; opacity: .9; }
.demo-escena-flujo.es-flujo-activo .flujo-chip.es-accion { animation: none; }
.demo-escena-flujo.es-flujo-listo .flujo-chip.es-accion {
    background: #fff;
    color: var(--acento);
    box-shadow: inset 0 0 0 1.5px rgba(78, 151, 207, .55);
}
@keyframes botonLatido {
    0%, 100% { box-shadow: 0 4px 10px rgba(47, 110, 163, .28), 0 0 0 0 rgba(142, 196, 239, .5); }
    50% { box-shadow: 0 4px 10px rgba(47, 110, 163, .28), 0 0 0 7px rgba(142, 196, 239, 0); }
}
.flujo-chip.alerta { background: #ffedd5; color: #c2410c; }
.flujo-chip.ok { background: #e3f1fb; color: var(--acento); }
.flujo-caja.cuenta-box {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.flujo-caja.cuenta-box small { color: #94a3b8; }
.demo-escena-flujo .demo-pista-drag {
    grid-column: 1 / -1;
    margin: 0 0 4px;
}

/* Pedidos: lo de la derecha aparece recién al enviar el pedido */
.demo-escena-flujo { position: relative; }
.demo-escena-flujo.js-flujo [data-f]:not(.es-on) {
    visibility: hidden;
    opacity: 0;
}
.demo-escena-flujo.js-flujo:not(.es-flujo-activo)::after {
    content: "Acá aparece el recorrido del pedido";
    position: absolute;
    top: 46px;
    bottom: 18px;
    left: calc(100% / 7 + 22px);
    right: 16px;
    display: grid;
    place-items: center;
    padding: 12px;
    text-align: center;
    font-size: .74rem;
    font-weight: 700;
    color: #94a3b8;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    pointer-events: none;
}
.demo-escena-flujo [data-f].es-on {
    animation: apareceX .6s cubic-bezier(.2, .8, .2, 1) both;
}
.demo-escena-flujo .flujo-paso.es-on .flujo-caja {
    animation: cajaLlega 1.1s ease .15s both;
}
.demo-escena-flujo .flujo-paso.es-on .flujo-chip.alerta,
.demo-escena-flujo .flujo-paso.es-on .flujo-chip.ok {
    animation: chipPop .6s cubic-bezier(.2, 1.4, .4, 1) .45s both;
}
.demo-escena-flujo.es-enviando .flujo-caja.cliente,
.demo-escena-flujo.es-flujo-activo .flujo-caja.cliente {
    border-color: #b7d4f0;
    box-shadow: 0 10px 22px rgba(78, 151, 207, .18);
}
.demo-escena-flujo.es-enviando .flujo-caja.cliente { animation: cajaEnvia .6s ease both; }
.demo-escena-flujo .flujo-paso.es-on .flujo-caja.mostrador { border-color: #fdba74; }
.demo-escena-flujo .flujo-paso.es-on .flujo-caja.cocina { border-color: #b7d4f0; }
.demo-escena-flujo .sep.es-on .sep-rail i {
    animation-iteration-count: 3;
    animation-fill-mode: both;
}
.demo-escena-flujo .sep.es-on .sep-chevron { animation: none; opacity: 1; }
.demo-escena-flujo.es-flujo-listo .flujo-caja.cuenta-box {
    box-shadow: 0 0 0 3px rgba(142, 196, 239, .45), 0 12px 26px rgba(15, 23, 42, .25);
}
@keyframes cajaLlega {
    0% { box-shadow: 0 6px 16px rgba(15, 23, 42, .05); transform: scale(.92); }
    45% { box-shadow: 0 0 0 4px rgba(142, 196, 239, .5), 0 14px 28px rgba(78, 151, 207, .22); transform: scale(1.05); }
    100% { box-shadow: 0 6px 16px rgba(15, 23, 42, .05); transform: scale(1); }
}
@keyframes cajaEnvia {
    0% { transform: scale(1); }
    40% { transform: scale(.95); }
    100% { transform: scale(1); }
}
@keyframes chipPop {
    from { opacity: 0; transform: scale(.4); }
    to { opacity: 1; transform: scale(1); }
}
.entrega {
    border-top: 0;
    border-bottom: 0;
}
.entrega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.entrega-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.entrega-lista li {
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    color: #475569;
}
.entrega-lista strong { color: #2f6ea3; }

.pedido { /* tono vía .tono-oscuro */ }
.formulario { display: grid; gap: 18px; margin-top: 28px; }
.campo { display: grid; gap: 8px; }
.campo > span, .campo legend { font-weight: 700; font-size: .95rem; }
.campo em { font-style: normal; font-weight: 500; color: var(--texto-suave); }
.campo input, .campo textarea, .campo select {
    width: 100%;
    font: inherit;
    color: #0f172a;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 12px 14px;
}
.campo input:focus, .campo textarea:focus {
    outline: 2px solid rgba(126, 182, 232, .45);
    border-color: var(--acento-2);
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ayuda, .form-nota { color: var(--texto-suave); font-size: .85rem; }
.error { color: var(--peligro); font-size: .85rem; font-weight: 600; }
.alerta {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
}
fieldset.campo { border: 0; padding: 0; margin: 0; }
.opciones { display: grid; gap: 10px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--borde);
    background: var(--superficie);
    cursor: pointer;
    font-weight: 600;
    transition: border-color .15s, background .15s;
}
.opcion input:checked + span {
    border-color: var(--acento-2);
    background: var(--acento-suave);
    color: var(--acento);
}
.opcion input:focus-visible + span { outline: 2px solid rgba(126, 182, 232, .45); }
.zona-archivo {
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px dashed #b7d4f0;
    border-radius: 14px;
    background: var(--acento-suave);
    text-align: center;
    color: var(--texto-suave);
    cursor: pointer;
    position: relative;
}
.zona-archivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.pie {
    padding: 44px 6vw 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #c5c9d0;
    font-size: .9rem;
    background: #121418;
}
.pie a { color: #7eb6e8; text-decoration: none; }
.pie a:hover { color: #f7f8fa; }
.pie-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.pie-col { display: grid; gap: 10px; }
.pie-col-marca { gap: 14px; }
.pie-frase { margin: 0; max-width: 34ch; color: #d5d8de; line-height: 1.5; }
.pie-titulo {
    margin: 0 0 4px;
    font-family: var(--display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f7f8fa;
}
.pie-base {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}
.pie-base p { margin: 0; }
.pie-nota { font-size: .8rem; color: #9aa0a8; opacity: 1; }

@media (max-width: 720px) {
    .pie-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 16px;
        background: #121418;
        border-bottom: 1px solid var(--borde);
    }
    .nav.abierto { display: flex; }
    .hero { grid-template-columns: 1fr; padding: 22px 5vw 28px; }
    .hero-visual {
        display: flex;
        margin-top: 8px;
    }
    .pc-duo {
        grid-template-columns: 1fr;
        width: min(100%, 340px);
        margin: 0 auto;
    }
    .pc-duo .pc-demo:first-child,
    .pc-duo .pc-demo-alt {
        transform: none;
    }
    .pc-demo-alt { display: none; }
    .puente { height: 52px; }
    .puente-rayo { width: min(22vw, 100px); }
    .pasos, .demos, .entrega-grid, .campo-doble, .demo-ancha { grid-template-columns: 1fr; }
    .demo-escena,
    .demo-escena-ancha {
        grid-template-columns: 1fr;
        justify-items: stretch;
        min-height: 0;
    }
    .demo-escena-flujo {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    .drop-flujo {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    .drag-flecha {
        width: 3px;
        height: 18px;
        margin: 2px auto;
        transform: none;
    }
    .drag-flecha::before { display: none; }
    .demo-escena.es-espera-drop > .sep,
    .demo-escena.es-espera-drop .demo-resultado,
    .demo-escena-flujo.js-flujo [data-f]:not(.es-on) { display: none; }
    .demo-escena.es-espera-drop::after,
    .demo-escena-flujo.js-flujo:not(.es-flujo-activo)::after { display: none; }
    .demo-escena.es-listo > .sep,
    .demo-escena.es-listo .demo-resultado,
    .demo-escena-flujo [data-f].es-on { animation-name: apareceY; }
    .drag-flecha::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -3px;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: var(--acento-2);
        border-left-color: transparent;
    }
    .sep {
        flex-direction: row;
        min-width: 0;
        width: 100%;
        padding: 8px 0;
        gap: 8px;
    }
    .sep-rail {
        inset: auto 10%;
        top: 50%;
        left: 0;
        right: 0;
        width: auto;
        height: 3px;
        transform: translateY(-50%);
        background:
            repeating-linear-gradient(
                90deg,
                rgba(78, 151, 207, .55) 0 4px,
                transparent 4px 8px
            );
    }
    .sep-rail i {
        top: 50%;
        left: -10%;
        margin-left: 0;
        margin-top: -3.5px;
        animation: paqHorizontal 1.7s linear infinite;
    }
    .sep-flujo {
        margin-top: 0;
        width: 100%;
        flex-direction: row;
    }
    .sep-flujo .sep-rail {
        inset: auto 10%;
        top: 50%;
        height: 3px;
        width: auto;
    }
    .sep-flujo .sep-chevron {
        width: 3px;
        height: 18px;
        animation: pulsoFlechaVert 1.8s ease-in-out infinite;
    }
    .sep-flujo .sep-chevron::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2px;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: var(--acento-2);
        border-left-color: transparent;
    }
    @keyframes pulsoFlechaVert {
        0%, 100% { opacity: .45; transform: scaleY(.78); }
        50% { opacity: 1; transform: scaleY(1); }
    }
    .pdf-rico { max-width: none; }
    .bloque { padding: 44px 5vw; }
}
