/* =========================================================================
   Pampa Software — Landing
   Colores de marca (Manual de marca): verde #10be41 · violeta #755da4
   Tipografía: Montserrat (incluida en el kit de marca)
   ========================================================================= */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #10be41;
    --green-bright: #3ddc6c;   /* verde sobre violeta oscuro (contraste AA texto grande) */
    --green-ink: #0a7a2b;      /* verde para texto sobre blanco */
    --green-50: #e3f8ea;
    --purple: #755da4;
    --purple-600: #644e95;
    --purple-800: #4f3b80;
    --purple-50: #f4f1fa;
    --purple-100: #e9e3f5;
    --lilac: #a593d4;
    --ink: #1d1736;
    --text: #2b2643;
    --muted: #6a6582;
    --line: #e6e2ef;
    --white: #fff;
    --warn-bg: #fdecd6;
    --warn-ink: #8f5300;

    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(29, 23, 54, .06), 0 2px 8px rgba(29, 23, 54, .05);
    --shadow: 0 10px 30px -10px rgba(29, 23, 54, .25);
    --wrap: 1160px;
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Movimiento */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-reveal: .75s;
    --reveal-shift: 28px;
    --grad-brand: linear-gradient(90deg, var(--green) 0%, var(--lilac) 55%, var(--purple) 100%);
    --glow-green: 0 10px 26px -10px rgba(16, 190, 65, .75);
    --glow-purple: 0 18px 40px -18px rgba(117, 93, 164, .55);
    --error-ring: #ff8a8a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease-out), background-color .15s ease, box-shadow .2s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
    position: relative; overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #13d149; box-shadow: 0 6px 18px -6px rgba(16, 190, 65, .7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2e2650; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple-600); }

.link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--purple-600); text-decoration: none; }
.link svg { transition: transform .15s ease; }
.link:hover svg { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navegación ---------- */
.nav {
    position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
    width: min(100% - 32px, var(--wrap));
    display: flex; align-items: center; gap: 24px;
    padding: 8px 10px 8px 22px; background: #fff; border-radius: 999px;
    box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, translate .35s var(--ease-out);
}
.nav.is-scrolled { box-shadow: 0 8px 30px -8px rgba(29, 23, 54, .3); translate: 0 -6px; }
.nav__brand img { width: 124px; height: auto; }
.nav__menu { flex: 1; display: flex; align-items: center; gap: 24px; }
.nav__links { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; }
.nav__links > li > a, .dd > summary {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav__links > li > a:hover, .dd > summary:hover, .dd[open] > summary { background: var(--purple-50); color: var(--purple-600); }
.nav__actions { display: flex; gap: 8px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--purple-50); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle-close { display: none; }

.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary svg { transition: transform .15s ease; }
.dd[open] > summary svg { transform: rotate(180deg); }
.dd__panel {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    min-width: 220px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.dd__panel--wide { min-width: 340px; }
.dd__panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.dd__panel a:hover { background: var(--purple-50); }
.dd__panel small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.dd__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--purple-50); color: var(--purple-600); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 600px at 85% 10%, rgba(165, 147, 212, .35), transparent 60%),
        linear-gradient(160deg, #5c4792 0%, var(--purple-800) 70%);
    padding: 150px 0 64px;
}
/* Sin barra fija: arriba queda solo el logo (versión blanca sobre el violeta) */
.hero--no-nav { padding-top: 22px; }
.hero__top { position: relative; z-index: 1; margin-bottom: 36px; }
.hero__brand { display: inline-block; border-radius: 8px; }
.hero__brand img { display: block; width: 150px; height: auto; }
.hero__dots {
    position: absolute; inset: 0 auto 0 0; width: 46%;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.4px);
    background-size: 16px 16px;
    mask-image: linear-gradient(120deg, #000 0%, transparent 75%);
    -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 75%);
}
.hero::after {
    content: ""; position: absolute; left: -60px; bottom: -80px; width: 340px; height: 200px;
    background: rgba(165, 147, 212, .35); border-radius: 40px; transform: skewX(-14deg);
}
.hero__body { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--green-bright); }
.hero__lead { margin: 22px 0 0; max-width: 30em; font-size: 17px; color: rgba(255, 255, 255, .88); }

/* Formulario de demo */
.demo-form { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 470px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm); }
.demo-form input[type="email"] { flex: 1; min-width: 0; border: 0; padding: 10px 16px; font-size: 15px; color: var(--ink); background: transparent; border-radius: 999px; }
.demo-form input[type="email"]::placeholder { color: #9b97ad; }
.demo-form input[type="email"]:focus { outline: none; }
.demo-form:focus-within { box-shadow: 0 0 0 3px var(--green); }
.demo-form .btn { padding: 12px 22px; }
.demo-form__msg { position: absolute; left: 18px; top: calc(100% + 10px); font-size: 14px; font-weight: 600; }
.demo-form__msg:empty { display: none; }
.demo-form.is-error .demo-form__msg { color: #ffd2d2; }
.cta .demo-form.is-error .demo-form__msg { color: #ffe0e0; }

/* Isotipo ilustrado (4 paralelogramos como el logo) */
.hero__art { position: relative; justify-self: center; width: min(100%, 470px); padding: 8px 10px 32px; }
.tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile {
    position: relative; display: block; height: 150px; border-radius: var(--radius-lg);
    text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.tile:nth-child(-n+2) { transform: skewX(-14deg); }
.tile:nth-child(n+3) { transform: skewX(14deg); }
.tile:nth-child(-n+2):hover { transform: skewX(-14deg) translateY(-4px); box-shadow: var(--shadow); }
.tile:nth-child(n+3):hover { transform: skewX(14deg) translateY(4px); box-shadow: var(--shadow); }
.tile__in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 28px; }
.tile:nth-child(-n+2) .tile__in { transform: skewX(14deg); }
.tile:nth-child(n+3) .tile__in { transform: skewX(-14deg); }
.tile strong { font-size: 18px; font-weight: 800; }
.tile--green { background: var(--green); color: var(--ink); }
.tile--white { background: #fff; color: var(--ink); }
.tile--white svg { color: var(--purple); }
.tile--lilac { background: var(--lilac); color: var(--ink); }
.tile--dark { background: #2e2154; color: #fff; }
.chip {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
    border: 3px solid var(--purple-800); transition: background-color .15s ease;
}
.chip:hover { background: var(--green); color: var(--ink); }
/* táctil: área de toque de 44px sin cambiar cómo se ve el chip */
@media (pointer: coarse), (max-width: 1020px) { .chip::before { content: ""; position: absolute; inset: -12px -6px; } }
.float-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow);
    font-size: 13px; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 800; }
.float-card small { display: block; color: var(--muted); font-size: 11.5px; }
.float-card--top { top: -36px; right: -6px; }
.float-card--bottom { bottom: -16px; left: 20%; animation-delay: -3s; }
.float-card__check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: var(--ink); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Clientes (carrusel) ---------- */
.clients { padding: 56px 0 24px; }
.clients__title { text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 24px; }
.marquee {
    display: flex; overflow: hidden; user-select: none; padding-block: 8px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    flex: none; display: flex; gap: 16px; padding-right: 16px; min-width: 100%;
    animation: marquee calc(var(--items, 20) * 2.6s) linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 8px; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-tile {
    flex: none; width: 180px; height: 96px; display: grid; place-items: center; padding: 14px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.logo-tile a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-tile img {
    max-width: 100%; max-height: 64px; object-fit: contain; mix-blend-mode: multiply;
    filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease;
}
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0 0; }
.section__title { text-align: center; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 28px; }

/* Tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 32px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.tabs__tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; }
.tabs__tab:hover { background: var(--purple-50); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__panel { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Vitrina de cada producto: funcionalidades a la izquierda, pantalla real de la elegida a la derecha */
.showcase { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 32px; align-items: start; }
.showcase__list { position: relative; display: grid; gap: 6px; }
.showcase__item {
    position: relative; display: grid; gap: 4px; width: 100%; padding: 12px 16px 12px 22px; text-align: left;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.showcase__item::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: transparent; transition: background-color .2s ease; }
.showcase__item strong { font-size: 15px; font-weight: 800; line-height: 1.3; }
.showcase__item span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
/* Con muchas funcionalidades solo la elegida muestra su descripción, así la lista queda pareja con la pantalla */
.showcase--compact .showcase__item:not(.is-active) span { display: none; }
.showcase--compact .showcase__item.is-active span { animation: fade .3s ease; }
.showcase__item:hover { border-color: var(--purple-100); background: var(--purple-50); }
.showcase__item.is-active { border-color: var(--purple-100); background: var(--purple-50); box-shadow: var(--shadow-sm); }
.showcase__item.is-active::before { background: var(--green); }
.showcase__item:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* Ventana de aplicación con la captura (la pantalla se ve completa a lo ancho, desde arriba) */
.showcase__stage { position: relative; min-width: 0; container-type: inline-size; }
.window { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 60px -28px rgba(29, 23, 54, .45), var(--shadow-sm); overflow: hidden; }
.js .window:not(.is-active) { display: none; }
.window.is-active { animation: fade .35s ease; }
.window__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f1eff6; border-bottom: 1px solid var(--line); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d4e6; }
.window__bar i:nth-child(1) { background: #ff6159; }
.window__bar i:nth-child(2) { background: #ffbd2e; }
.window__bar i:nth-child(3) { background: #28c941; }
.window__bar span { flex: 1; margin-right: 40px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* La ventana toma el alto de cada pantalla, hasta un máximo de 5:3 (las más altas se ven desde arriba) */
.window__body { position: relative; max-height: 54cqw; overflow: hidden; background: #f4f5f8; }
.window__body--mock { aspect-ratio: 25 / 12; }
/* Demo animada: el iframe avisa su alto (postMessage, main.js) para que la ventana no recorte ni deje bandas */
.window__body--demo { max-height: none; }
.window__body--demo iframe { display: block; width: 100%; height: 560px; border: 0; background: #f4f5f8; }
.window__body img { display: block; width: 100%; height: auto; }
/* Varias capturas en la misma ventana: apiladas, se ve una por vez y cambian con un fundido (main.js, cada 4 s) */
.window__body--slides { display: grid; align-items: start; }
.window__body--slides > img, .window__body--slides > .window__link { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; }
.window__body--slides > .window__link:not(.is-current) { pointer-events: none; }
.window__body--slides > .is-current { opacity: 1; }
/* Capturas de sitios reales: toda la pantalla lleva al sitio (se abre en otra pestaña) */
.window__link { display: block; cursor: pointer; }
.window__link img { transition: filter .25s ease; }
.window__link:hover img { filter: brightness(.96); }
.window__link:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
/* La etiqueta se ubica en la ventana (no en la imagen) para que no quede debajo del recorte */
.window__visit { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
    background: rgba(29, 23, 54, .78); color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(29, 23, 54, .25); transition: background-color .2s ease, transform .2s ease; }
.window__link:hover .window__visit, .window__link:focus-visible .window__visit { background: var(--purple); transform: translateY(-1px); }
.window__dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(29, 23, 54, .55); }
.window__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background-color .3s ease, transform .3s ease; }
.window__dots i.is-current { background: #fff; transform: scale(1.15); }
.window__body--mock {
    display: grid; place-items: center; padding: 24px;
    background-color: var(--purple-50);
    background-image: radial-gradient(rgba(117, 93, 164, .22) 1px, transparent 1.2px);
    background-size: 12px 12px;
}
.window__body--mock .mk { max-width: 360px; transform: scale(1.15); }
.window__caption { display: none; }

/* Video Gestión Web (sección propia, editable en Contenido) */
.video__lead { max-width: 40em; margin: -12px auto 28px; text-align: center; color: var(--muted); font-size: 17px; line-height: 1.55; }
.video { max-width: 1000px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; background: #241a3f; box-shadow: 0 30px 70px -30px rgba(29, 23, 54, .6), var(--shadow-sm); }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #241a3f; }
.video__cta { margin-top: 28px; text-align: center; }

/* Integraciones (sección propia, editable en Contenido): Pampa conectado con cada plataforma */
/* hasta 3 por fila; la última fila incompleta queda centrada */
.integrations { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.integration { flex: 0 1 calc((100% - 40px) / 3); padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.integration__link { display: flex; align-items: center; margin-bottom: 20px; }
.integration__pampa { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--purple-50); }
.integration__wire { position: relative; flex: 1; min-width: 24px; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); overflow: hidden; }
.integration__wire::after {
    content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); animation: int-pulse 2.4s var(--ease-out) infinite;
}
@keyframes int-pulse { from { transform: translateX(-6px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { transform: translateX(var(--wire, 140px)); opacity: 0; } }
.integration__mark { flex: none; padding: 12px 14px; border-radius: 12px; background: var(--purple); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.integration__logo { flex: none; display: grid; place-items: center; height: 48px; }
.integration__logo img { display: block; width: auto; height: 34px; max-width: 150px; object-fit: contain; }
.integration h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.integration p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (hover: hover) {
    .integration:hover { transform: translateY(-4px); border-color: var(--purple-100); box-shadow: var(--glow-purple); }
}
@media (prefers-reduced-motion: reduce) { .integration__wire::after { animation: none; display: none; } }
@media (max-width: 900px) { .integrations { max-width: 520px; } .integration { flex-basis: 100%; } }

/* App móvil (sección propia, editable en Contenido): texto al centro y una app a cada lado, en un celular
   sostenido por una mano que entra desde su costado al hacer scroll (main.js pone --e de 0 a 1) */
#app-movil { overflow-x: clip; } /* los brazos salen de la pantalla sin ensanchar la página */
.apps { --w: 280px; --e: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, 1fr); grid-template-areas: "left text right"; gap: 72px; align-items: center; }
.apps--single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text left" "text right"; }
.apps--single .hand { grid-area: auto; }
.app__text { grid-area: text; text-align: center; }
.app__case { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.app__title { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.app__lead { margin: 0 0 22px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.app__points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; text-align: left; }
.app__points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.app__points svg { flex: none; margin-top: 1px; color: #fff; background: var(--green); border-radius: 50%; padding: 2px; }
.app__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hand { grid-area: left; position: relative; display: flex; flex-direction: column; align-items: center; touch-action: pan-y; }
.hand--right { grid-area: right; }
.hand::before { content: ""; position: absolute; left: 50%; top: calc(var(--w) * 1.05); width: calc(var(--w) * 2); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--green-50) 0%, var(--purple-50) 55%, transparent 72%); }
.hand--right::before { background: radial-gradient(circle, var(--purple-100) 0%, var(--purple-50) 55%, transparent 72%); }
/* Celular en la mano: foto real (assets/img/manos) con la pantalla medida; las capturas van recortadas con la forma
   exacta de esa pantalla (máscara), así los dedos y la cámara de la foto quedan encima. --w = ancho de la pantalla;
   index.php pone en cada una --sh (alto/ancho), --l y --t (dónde arranca la foto) y --pw (ancho de la foto).
   Al terminar de entrar queda derecho (rotado, el navegador suaviza las pantallas y se ven menos nítidas). */
.hand__stage { position: relative; width: var(--w); height: calc(var(--w) * var(--sh)); transform-origin: 220% 120%; transform: translateX(calc((1 - var(--e)) * 60vw)) rotate(calc((1 - var(--e)) * -16deg)); }
.hand--left .hand__stage { transform-origin: -120% 120%; transform: translateX(calc((1 - var(--e)) * -60vw)) rotate(calc((1 - var(--e)) * 16deg)); }
.hand__photo { position: absolute; z-index: 0; left: calc(var(--w) * var(--l)); top: calc(var(--w) * var(--t)); width: calc(var(--w) * var(--pw)); max-width: none; height: auto; pointer-events: none; user-select: none;
    -webkit-mask-image: linear-gradient(to top left, transparent 6%, #000 30%); mask-image: linear-gradient(to top left, transparent 6%, #000 30%); } /* el antebrazo se desvanece: no se ve el corte de la foto */
.hand--left .hand__photo { -webkit-mask-image: linear-gradient(to top right, transparent 6%, #000 30%); mask-image: linear-gradient(to top right, transparent 6%, #000 30%); }
.hphone { position: absolute; z-index: 1; inset: 0; margin: 0; background: #000; cursor: pointer; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hphone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .6s ease .6s; } /* la que sale espera a que la nueva la tape */
.hphone img.is-current { z-index: 1; opacity: 1; transition-delay: 0s; }
.hand__caption { position: relative; z-index: 3; margin: 30px 0 2px; text-align: center; font-size: 14px; line-height: 1.35; color: var(--muted); }
.hand__caption strong { display: block; font-size: 16px; color: var(--ink); }
.app__dots { position: relative; display: flex; justify-content: center; gap: 0; }
.app__dots button { width: 22px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.app__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9d4e6; transition: background-color .3s ease, transform .3s ease; }
.app__dots button.is-current::before { background: var(--green); transform: scale(1.25); }
.hand--right .app__dots button.is-current::before { background: var(--purple); }
.app__dots button:focus-visible { outline: 2px solid var(--purple); border-radius: 50%; }
@media (max-width: 1180px) {
    .apps { --w: 240px; gap: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 340px) minmax(0, 1fr); } .app__points { grid-template-columns: 1fr; }
    /* el botón de App Store lleva el nombre de la app (editable): si no entra, que baje de renglón en vez de recortarse o ensanchar la página */
    .app__actions .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 11px; }
    .app__actions .btn--ghost { display: inline-block; text-wrap: balance; } /* el ícono acompaña a la última palabra y los renglones quedan parejos */
    .app__actions .btn--ghost svg { display: inline; vertical-align: -2px; margin-left: 4px; }
}
@media (max-width: 1020px) { .apps { --w: 200px; gap: 52px; } }
@media (max-width: 900px) {
    /* minmax(0, …): el texto no ensancha las columnas; en tablet el celular no pasa de 220px (a 260 ocupaba toda la pantalla) */
    .apps, .apps--single { --w: min(220px, calc(40vw - 22px)); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text text" "left right"; gap: 40px 12px; }
    .apps--single { grid-template-areas: "text text" "left left"; }
    .app__text { max-width: 560px; margin-inline: auto; }
    .app__points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .apps { column-gap: 40px; }
    .app__points { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
    .hand__caption { margin-top: 22px; font-size: 13px; }
    .hand__caption strong { font-size: 14px; }
}
/* en pantallas táctiles los puntos tienen un área de toque más alta (el punto se ve igual) */
@media (pointer: coarse) { .app__dots { margin-top: -6px; z-index: 3; } .app__dots button { width: 24px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .hphone img { transition: none; } }
@media (max-width: 680px) {
    .video { border-radius: var(--radius); }
    .video__lead { font-size: 15.5px; }
}

/* Mockups */
.mk { width: 100%; max-width: 300px; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 11.5px; color: var(--ink); }
.mk__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mk__head strong { font-weight: 800; font-size: 12px; }
.mk__muted { color: var(--muted); font-size: 11px; }
.mk__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mk__row:last-child { border-bottom: 0; }
.mk__row--start { justify-content: flex-start; }
.mk__total { text-align: right; font-weight: 800; font-size: 15px; color: var(--purple-600); padding-top: 6px; }
.sk { display: block; height: 8px; border-radius: 4px; background: var(--purple-100); }
.sk[data-light] { background: rgba(255, 255, 255, .5); }
.pill { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.pill--ok { background: var(--green-50); color: var(--green-ink); }
.pill--warn { background: var(--warn-bg); color: var(--warn-ink); }
.mk__avatar { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); }
.mk__dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--purple-100); }
.mk__dot.is-green { background: var(--green); }
.mk__chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mk__chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--purple-100); }
.mk__chart span.is-green { background: var(--green); }
.mk__browser { display: flex; gap: 4px; margin-bottom: 8px; }
.mk__browser i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-100); }
.mk__hero { display: grid; gap: 6px; padding: 12px; border-radius: 6px; background: var(--purple); margin-bottom: 8px; }
.mk__hero .sk:first-child { background: #fff; }
.mk__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk__cards span { height: 30px; border-radius: 5px; background: var(--purple-50); border: 1px solid var(--line); }

.pill--info { background: var(--purple-100); color: var(--purple-600); }
.mk__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 8px; }
.mk__thumbs span { height: 26px; border-radius: 5px; background: var(--lilac); opacity: .55; }

/* La orden de trabajo tiene una fila más que el resto: se compacta para entrar en .feature__art */
.mk--workorder .mk__head { padding-bottom: 6px; }
.mk--workorder .mk__row { padding: 4px 0; }
.mk--workorder .mk__thumbs { padding-top: 6px; }
.mk--workorder .mk__thumbs span { height: 18px; }

/* Producto aliado */
.tag-ally { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--green-50); color: var(--green-ink); font-size: 10.5px; font-style: normal; font-weight: 800; vertical-align: 2px; }
.ally {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
    margin-bottom: 20px; padding: 18px 22px; border-radius: var(--radius);
    background: var(--purple-50); border: 1px solid var(--purple-100);
}
.ally__brand { display: flex; align-items: center; gap: 10px; padding-right: 24px; border-right: 1px solid var(--purple-100); }
.ally__brand img { max-width: 150px; max-height: 44px; object-fit: contain; }
.ally__brand strong { font-size: 20px; font-weight: 800; color: var(--ink); }
.ally__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; }
.ally__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 2px; }
.ally__text p:last-child { font-size: 14.5px; color: var(--text); }
.ally__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 24px; margin: 88px 0 0; padding: 44px 32px; background: var(--ink); border-radius: var(--radius-lg); text-align: center; }
.stats__item { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { margin: 0; font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.stats dd.is-green { color: var(--green-bright); }
.stats dt { font-size: 14px; color: #cdc7e0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 22px 20px 26px; border-radius: var(--radius); background: var(--purple-50); }
.step__num {
    display: inline-grid; place-items: center; width: 40px; height: 28px; margin-bottom: 16px;
    border-radius: 8px; transform: skewX(-14deg); background: var(--purple); color: #fff; font-weight: 800; font-size: 14px;
}
.step__num.is-green { background: var(--green); color: var(--ink); }
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan--dark { background: var(--purple-50); border-color: var(--purple-100); }
.plan--featured { border: 2px solid var(--green); box-shadow: 0 24px 50px -24px rgba(16, 190, 65, .55); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.plan__product { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan__name { font-size: 22px; font-weight: 800; margin: 6px 0 8px; }
.plan__price { margin-bottom: 18px; }
.plan__price strong { font-size: 28px; font-weight: 800; color: var(--purple-600); letter-spacing: -.01em; }
.plan__price strong.is-muted { font-size: 20px; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__list { display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.plan__list svg { flex: none; margin-top: 3px; color: var(--green-ink); }

/* Testimonios */
.testimonials__list { display: grid; gap: 20px; }
.testimonials__list.is-multi { grid-auto-flow: column; grid-auto-columns: min(100%, 520px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.testimonial { margin: 0; text-align: center; scroll-snap-align: center; }
.is-multi .testimonial { padding: 28px; border-radius: var(--radius); background: var(--purple-50); text-align: left; }
.testimonial blockquote { margin: 0 auto 12px; max-width: 34em; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.35; }
.is-multi .testimonial blockquote { font-size: 18px; }
.testimonial figcaption { font-size: 14px; color: var(--muted); }

/* CTA */
#demo { padding-top: 88px; }
.cta {
    position: relative; overflow: hidden; padding: 64px 24px 72px; border-radius: var(--radius-lg);
    background: var(--purple); color: #fff; text-align: center;
}
.cta h2 { position: relative; color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.cta p { position: relative; margin: 10px auto 26px; max-width: 34em; color: rgba(255, 255, 255, .9); }
.cta .demo-form { margin-inline: auto; text-align: left; }
.cta .demo-form__msg { position: absolute; margin: 0; max-width: none; color: #fff; }
.cta__shape { position: absolute; border-radius: 22px; transform: skewX(-14deg); }
.cta__shape--a { left: -30px; bottom: -20px; width: 150px; height: 90px; background: var(--green); }
.cta__shape--b { right: -40px; top: -20px; width: 180px; height: 90px; background: var(--purple-800); }

/* Footer */
.footer { margin-top: 88px; padding: 56px 0 28px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 13px; font-weight: 800; margin-bottom: 14px; color: var(--ink); }
.footer ul { display: grid; gap: 8px; color: var(--muted); }
.footer li { display: flex; align-items: center; gap: 6px; }
.footer a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: var(--purple-600); }
.footer__brand img { width: 140px; height: auto; margin-bottom: 18px; }
.footer__social { display: flex !important; gap: 8px !important; margin-top: 16px; }
.footer__social a { width: 38px; height: 38px; justify-content: center; border-radius: 50%; background: var(--purple-50); color: var(--purple-600); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--ink); box-shadow: var(--shadow); }

/* =========================================================================
   Movimiento e interacción
   - Lo que se oculta para revelarse depende de .has-reveal (la agrega main.js
     solo si hay IntersectionObserver y no se pidió reducir movimiento).
   - Las entradas del hero dependen de .js y usan fill "backwards": si la
     animación no corre, el contenido queda visible igual.
   - Solo se animan transform / translate / scale / opacity.
   ========================================================================= */
@keyframes heroUp   { from { opacity: 0; translate: 0 22px; } }
@keyframes navIn    { from { opacity: 0; translate: 0 -18px; } }
@keyframes tileIn   { from { opacity: 0; translate: 0 26px; scale: .9; } }
@keyframes popIn    { from { opacity: 0; scale: .6; } }
@keyframes rise     { from { opacity: 0; translate: 0 8px; } }
@keyframes cardIn   { from { opacity: 0; translate: 0 16px; } }
@keyframes drift    { 50% { translate: 0 -6px; } }
@keyframes driftDn  { 50% { translate: 0 6px; } }
@keyframes slab     { 50% { translate: 18px -10px; } }
@keyframes ddIn     { from { opacity: 0; translate: 0 -6px; } }
@keyframes skIn     { from { transform: scaleX(0); } }
@keyframes barUp    { from { transform: scaleY(0); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes ring     { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.06, 1.4); } }
@keyframes shake    { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
@keyframes msgIn    { from { opacity: 0; translate: 0 -4px; } }
@keyframes pulseRing { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* Barra de progreso de lectura */
.scroll-progress {
    position: fixed; z-index: 60; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%;
    pointer-events: none; will-change: transform;
}

/* Nav: entrada, sección activa (scrollspy) y paneles */
.js .nav { animation: navIn .7s var(--ease-out) backwards; }
.nav__links > li > a, .dd > summary { position: relative; transition: background-color .15s ease, color .15s ease; }
.nav__links > li > a::after, .dd > summary::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; margin-left: -8px;
    border-radius: 3px; background: var(--green); opacity: 0; transform: scale(0);
    transition: transform .3s var(--ease-out), opacity .2s ease;
}
.nav__links > li > a.is-active, .dd > summary.is-active { color: var(--purple-600); }
.nav__links > li > a.is-active::after, .dd > summary.is-active::after { opacity: 1; transform: none; }
.dd[open] > .dd__panel { animation: ddIn .22s var(--ease-out); }
.nav.is-open .nav__menu { animation: fade .25s var(--ease-out); }
@media (max-width: 1020px) {
    .nav__links > li > a::after, .dd > summary::after { left: 4px; top: 50%; bottom: auto; width: 3px; height: 18px; margin: -9px 0 0; }
}

/* Botones: brillo al pasar, glow de marca, estado de carga */
.btn--green { --spin-c: var(--ink); }
.btn--dark { --spin-c: #fff; }
.btn--green::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-110%);
}
.btn--dark:hover { box-shadow: var(--glow-purple); }
.btn.is-loading { color: transparent; cursor: progress; transform: none; }
.btn.is-loading::after { display: none; }
.btn.is-loading::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border-radius: 50%; border: 2.5px solid var(--spin-c, var(--ink)); border-right-color: transparent;
    animation: spin .7s linear infinite;
}

/* Formulario de demo: confirmación y error */
.demo-form::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 3px var(--green); opacity: 0;
}
.demo-form.is-success::after { animation: ring .9s var(--ease-out); }
.demo-form.is-error::after { box-shadow: 0 0 0 3px var(--error-ring); animation: ring .9s var(--ease-out); }
.demo-form.is-error { animation: shake .45s ease; }
.demo-form.is-error:focus-within { box-shadow: 0 0 0 3px var(--error-ring); }
.demo-form.is-success .demo-form__msg, .demo-form.is-error .demo-form__msg { animation: msgIn .4s var(--ease-out); }
.demo-form.is-success .demo-form__msg { display: flex; align-items: center; gap: 8px; }
.demo-form.is-success .demo-form__msg::before {
    content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1736' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
    animation: popIn .45s var(--ease-spring) .1s backwards;
}

/* Hero: entrada escalonada, isotipo flotando y parallax con el mouse */
.js .hero__copy > * { animation: heroUp .9s var(--ease-out) backwards; }
.js .hero__copy > :nth-child(1) { animation-delay: .1s; }
.js .hero__copy > :nth-child(2) { animation-delay: .2s; }
.js .hero__copy > :nth-child(3) { animation-delay: .32s; }
.js .hero__copy > :nth-child(4) { animation-delay: .45s; }
/* El sacudón de error se suma a la entrada (mismo nombre = no se repite) */
.js .hero__copy > .demo-form.is-error { animation: heroUp .9s var(--ease-out) .45s backwards, shake .45s ease; }

.js .tile { animation: tileIn .9s var(--ease-out) .25s backwards, drift 7s ease-in-out 1.4s infinite; }
.js .tile:nth-child(2) { animation-delay: .35s, 2.6s; animation-duration: .9s, 8s; }
.js .tile:nth-child(3) { animation-name: tileIn, driftDn; animation-delay: .45s, 2s; }
.js .tile:nth-child(4) { animation-name: tileIn, driftDn; animation-delay: .55s, 3.2s; animation-duration: .9s, 7.5s; }
.js .chip { animation: popIn .6s var(--ease-spring) .85s backwards; }
.js .float-card { animation: popIn .6s var(--ease-spring) 1s backwards, float 6s ease-in-out infinite; }
.js .float-card--bottom { animation-delay: 1.15s, -3s; }
.js .hero::after { animation: slab 14s ease-in-out infinite; }

.hero { --mx: 0; --my: 0; }
.hero.is-parallax .tiles, .hero.is-parallax .float-card, .hero.is-parallax .hero__dots { transition: translate .7s var(--ease-out); }
.hero.is-parallax .tiles { translate: calc(var(--mx) * -10px) calc(var(--my) * -8px); }
.hero.is-parallax .float-card { translate: calc(var(--mx) * 18px) calc(var(--my) * 14px); }
.hero.is-parallax .hero__dots { translate: calc(var(--mx) * 8px) calc(var(--my) * 6px); }

/* Aparición al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal [data-reveal] {
        opacity: 0; translate: 0 var(--reveal-shift);
        transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out), scale var(--dur-reveal) var(--ease-out);
        transition-delay: var(--reveal-delay, 0ms);
    }
    .has-reveal [data-reveal="fade"] { translate: none; }
    .has-reveal [data-reveal="zoom"] { translate: 0 calc(var(--reveal-shift) * .6); scale: .96; }
    .has-reveal [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
}

/* Mockups: se "dibujan" al aparecer o al cambiar de pestaña */
.mk-play .sk { animation: skIn .8s var(--ease-out) backwards; transform-origin: 0 50%; }
.mk-play .mk__chart span { animation: barUp .8s var(--ease-out) backwards; transform-origin: 50% 100%; }
.mk-play .pill, .mk-play .mk__avatar, .mk-play .mk__dot { animation: popIn .5s var(--ease-spring) backwards; }
.mk-play .mk__total, .mk-play .mk__cards span, .mk-play .mk__thumbs span { animation: rise .6s var(--ease-out) backwards; }
.mk-play :is(.sk, .pill, .mk__avatar, .mk__dot, .mk__chart span, .mk__total, .mk__cards span, .mk__thumbs span) {
    animation-delay: calc(var(--reveal-delay, 0ms) + 280ms + var(--k, 0) * 90ms);
}
.mk-play .mk .pill { animation-delay: calc(var(--reveal-delay, 0ms) + 480ms + var(--k, 0) * 90ms); }
.mk-play .mk__row:nth-child(2), .mk-play :is(.mk__chart, .mk__cards, .mk__thumbs) > :nth-child(2) { --k: 1; }
.mk-play .mk__row:nth-child(3), .mk-play :is(.mk__chart, .mk__cards, .mk__thumbs) > :nth-child(3) { --k: 2; }
.mk-play .mk__row:nth-child(4), .mk-play .mk__chart > :nth-child(4), .mk-play .mk__total { --k: 3; }
.mk-play .mk__row:nth-child(5), .mk-play .mk__chart > :nth-child(5) { --k: 4; }
.mk-play .mk__chart > :nth-child(6) { --k: 5; }

/* Pestañas de soluciones */
.tabs__tab { transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.tabs__tab:active { transform: scale(.96); }

/* Carrusel de clientes */
.marquee.is-paused .marquee__track, .marquee.is-offscreen .marquee__track { animation-play-state: paused; }
.logo-tile { transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.logo-tile:focus-within { border-color: var(--purple); }
.logo-tile:focus-within img { filter: none; opacity: 1; }
.clients__controls { display: flex; justify-content: flex-end; margin-top: 6px; }
.marquee-toggle {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer;
    transition: color .15s ease, border-color .15s ease, transform .2s var(--ease-out);
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { color: var(--purple-600); border-color: var(--purple); }
.marquee-toggle__play, .marquee-toggle[aria-pressed="true"] .marquee-toggle__pause { display: none; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__play { display: block; }
@media (pointer: coarse) { .marquee-toggle { width: 44px; height: 44px; } } /* área de toque cómoda en celular/tablet */

/* Cifras */
.stats dd { font-variant-numeric: tabular-nums; }
.stats .count { display: inline-block; }

/* CTA: paralelogramos a la deriva */
.js .cta__shape--a { animation: slab 9s ease-in-out infinite; }
.js .cta__shape--b { animation: slab 11s ease-in-out -4s infinite reverse; }

/* Microinteracciones (solo con mouse, para evitar el hover "pegado" en touch) */
.step { transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.step__num { transition: transform .35s var(--ease-spring); }
.plan { transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.tile { transition: transform .3s var(--ease-out), box-shadow .3s ease; }
@media (hover: hover) {
    .btn--green:hover::after { transform: translateX(110%); transition: transform .7s var(--ease-out); }
    .step:hover { transform: translateY(-4px); box-shadow: var(--glow-purple); }
    .step:hover .step__num { transform: skewX(-14deg) scale(1.12); }
    .plan:hover { transform: translateY(-6px); box-shadow: var(--glow-purple); }
    .plan--featured:hover { box-shadow: 0 30px 60px -24px rgba(16, 190, 65, .6); }
    .logo-tile:hover { transform: translateY(-3px); border-color: var(--purple-100); box-shadow: var(--shadow-sm); }
    .tile:nth-child(-n+2):hover { transform: skewX(-14deg) translateY(-6px); box-shadow: var(--glow-purple); }
    .tile:nth-child(n+3):hover { transform: skewX(14deg) translateY(6px); box-shadow: var(--glow-purple); }
    .tile--green:hover { box-shadow: var(--glow-green); }
}

/* WhatsApp y volver arriba */
.wa { transition: transform .25s var(--ease-spring), box-shadow .25s ease; }
.wa:hover { transform: scale(1.07); box-shadow: var(--glow-green); }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; pointer-events: none; }
.js .wa { animation: popIn .6s var(--ease-spring) 1.4s backwards; }
.js .wa::after { animation: pulseRing 2.4s var(--ease-out) 2.2s 3; }

.to-top {
    position: fixed; z-index: 40; right: 20px; bottom: 20px; display: grid; place-items: center;
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff;
    cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; translate: 0 14px; scale: .9;
    transition: opacity .3s ease, translate .35s var(--ease-out), scale .35s var(--ease-out), visibility 0s linear .35s, background-color .15s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; visibility: visible; translate: none; scale: none; transition-delay: 0s; }
.to-top:hover { background: var(--purple-600); }
.to-top svg { transition: transform .25s var(--ease-out); }
.to-top:hover svg { transform: translateY(-2px); }
.wa ~ .to-top { right: 25px; bottom: 88px; }
/* Celular: botones flotantes más chicos y pegados al borde, y el final del footer se puede leer sin quedar tapado */
@media (max-width: 680px) {
    .to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; }
    .to-top.is-visible { opacity: .92; }
    .wa { right: 12px; bottom: 12px; width: 52px; height: 52px; }
    .wa ~ .to-top { right: 16px; bottom: 74px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .nav { padding-left: 18px; border-radius: 26px; flex-wrap: wrap; gap: 0; }
    .nav__toggle { display: inline-flex; }
    .nav__menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 4px 10px; }
    .nav.is-open .nav__menu { display: flex; }
    .nav.is-open .nav__toggle-open { display: none; }
    .nav.is-open .nav__toggle-close { display: inline; }
    .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__links > li > a, .dd > summary { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 15px; }
    .dd__panel { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 8px; }
    .nav__actions .btn { flex: 1; padding: 13px; }

    .hero { padding: 130px 0 56px; }
    .hero--no-nav { padding-top: 18px; }
    .hero__top { margin-bottom: 26px; }
    .hero__brand img { width: 128px; }
    .hero__body { grid-template-columns: 1fr; gap: 24px; }
    .hero__art { width: min(100%, 420px); }
    .plans { grid-template-columns: 1fr 1fr; }
    /* Tablet: las funcionalidades son chips arriba de la ventana (a todo el ancho) y la descripción de la elegida va debajo de la pantalla */
    .showcase { grid-template-columns: 1fr; gap: 16px; }
    .showcase__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .showcase__item { flex: none; width: auto; min-height: 44px; align-content: center; padding: 10px 18px; border-radius: 999px; }
    .showcase__item::before { display: none; }
    .showcase__item span { display: none; }
    .showcase__item strong { font-size: 14.5px; white-space: nowrap; }
    .showcase__item.is-active { background: var(--purple-50); border-color: var(--purple); color: var(--purple-800); box-shadow: none; }
    .window__caption { display: block; padding: 14px 18px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr 1fr; }
    /* Footer en tablet: marca arriba a todo el ancho y las columnas de links en una sola fila */
    .footer { margin-top: 72px; padding-top: 48px; }
    .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
    .footer__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
    .footer__brand img { margin-bottom: 0; }
    .footer .footer__contact { display: flex; flex-wrap: wrap; column-gap: 24px; }
    .footer__social { margin: 0 0 0 auto; }
    .ally { grid-template-columns: 1fr; gap: 14px; }
    .ally__brand { padding-right: 0; border-right: 0; }
    .ally__actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
    .section, #demo { padding-top: 64px; }
    .stats { margin-top: 64px; grid-template-columns: repeat(min(var(--n, 4), 2), 1fr); padding: 32px 16px; row-gap: 28px; }
    .stats__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stats__item { justify-content: flex-end; } /* (column-reverse) las cifras de una fila quedan a la misma altura aunque una etiqueta ocupe dos renglones */
    .stats dt { text-wrap: balance; }
    .plans, .steps { grid-template-columns: 1fr; }
    /* En celular las funcionalidades son una fila deslizable justo arriba de la ventana; la descripción va debajo de la pantalla */
    .showcase { gap: 12px; }
    .showcase__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; scroll-padding-inline: 16px; }
    .showcase__list::-webkit-scrollbar { display: none; }
    .showcase__item { padding: 10px 16px; scroll-snap-align: start; }
    .showcase__item strong { font-size: 14px; }
    .window__caption { padding: 12px 16px; font-size: 14.5px; }
    /* En celular la captura se ve entera (como en desktop) y se amplía a pantalla completa con "Ampliar" (main.js) */
    .window__body--demo { overflow: hidden; } /* la demo se acomoda sola al ancho del celular */
    .window__body--mock .mk { transform: none; }
    .tile { height: 120px; }
    .tile__in { padding: 16px 22px; }
    .tile strong { font-size: 16px; }
    .float-card--top { right: 0; }
    /* centrada y debajo de los mosaicos: así no tapa el nombre "Empresas" */
    .float-card--bottom { bottom: -14px; left: 0; right: 0; width: max-content; margin-inline: auto; }
    .logo-tile { width: 140px; height: 80px; }
    .demo-form .btn { padding: 12px 16px; }
    .plans { gap: 28px; }
    .plan { padding: 26px 20px 20px; }

    /* Testimonios: la tarjeta siguiente asoma para indicar que se desliza */
    .testimonials__list.is-multi { grid-auto-columns: 86%; gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
    .testimonials__list.is-multi::-webkit-scrollbar { display: none; }
    .is-multi .testimonial { padding: 22px 20px; }
    .is-multi .testimonial blockquote { font-size: 17px; }

    /* Pasos: número a la izquierda y texto a la derecha, más compacto */
    .steps { gap: 12px; }
    .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 18px 18px 20px; }
    .step__num { grid-row: 1 / span 2; margin: 0; }
    .step h3 { margin-bottom: 2px; line-height: 28px; }

    /* CTA */
    .cta { padding: 48px 20px 64px; }
    .cta p { margin-bottom: 22px; }
    .cta__shape--a { width: 110px; height: 60px; }
    .cta__shape--b { width: 130px; height: 70px; }

    /* Footer en celular: marca arriba, Productos y Empresa lado a lado, Oficinas abajo */
    .footer { margin-top: 64px; padding-top: 40px; }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .footer__brand { display: block; padding-bottom: 20px; }
    .footer__brand img { margin-bottom: 10px; }
    .footer .footer__contact { display: grid; }
    .footer__social { margin-top: 10px; }
    .footer__offices { grid-column: 1 / -1; }
    .footer__legal { margin-top: 28px; }
}
/* Planes en tablet: si el último plan queda solo en su fila, ocupa el ancho completo en dos columnas */
@media (min-width: 681px) and (max-width: 1020px) {
    .plan:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; grid-auto-flow: dense; column-gap: 32px; }
    .plan:last-child:nth-child(odd) > * { grid-column: 1; }
    .plan:last-child:nth-child(odd) .plan__list { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; }
    .plan:last-child:nth-child(odd) .btn { grid-row: 4; align-self: end; margin-top: 8px; }
}
/* Celular angosto: el formulario de la demo se apila (email arriba, botón abajo a todo el ancho) */
@media (max-width: 480px) {
    .cta { padding-bottom: 52px; }
    .cta .demo-form { flex-direction: column; align-items: stretch; gap: 10px; max-width: 400px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
    .cta .demo-form:focus-within, .cta .demo-form.is-error:focus-within { box-shadow: none; }
    .cta .demo-form::after { display: none; }
    .cta .demo-form input[type="email"] { flex: none; padding: 14px 18px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
    .cta .demo-form input[type="email"]:focus { box-shadow: 0 0 0 3px var(--green); }
    .cta .demo-form.is-error input[type="email"]:focus { box-shadow: 0 0 0 3px var(--error-ring); }
    .cta .demo-form .btn { width: 100%; padding: 14px 16px; }
    /* El mensaje va en el flujo (debajo del botón) para que un texto largo no quede cortado por el overflow del CTA */
    .cta .demo-form__msg { position: static; text-align: center; justify-content: center; }
}
/* Pantallas táctiles: sin zoom de iOS en el email y links del footer de al menos 44px de alto */
@media (max-width: 1020px), (pointer: coarse) {
    .cta .demo-form input[type="email"] { font-size: 16px; }
    .footer h2 { margin-bottom: 4px; }
    .footer ul:not(.footer__social) { row-gap: 0; }
    .footer ul:not(.footer__social) li { min-height: 44px; }
    .footer .footer__offices ul li { min-height: 32px; } /* las oficinas no son links: no necesitan área de toque */
    .footer li > a { min-height: 44px; }
    .footer__social a { width: 44px; height: 44px; }
}

/* ---------- Nav, hero y Soluciones en tablet y celular ---------- */
/* Desktop chico: la tarjeta flotante no se sale del margen de la página */
@media (max-width: 1199px) {
    .float-card--top { right: 0; }
}
@media (max-width: 1020px) {
    /* Menú abierto: si no entra en la pantalla (Productos desplegado) se desliza adentro, no queda cortado */
    .nav.is-open { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; overscroll-behavior: contain; }
    .tabs__tab { min-height: 44px; }
}
/* Tablet: hero apilado y centrado (texto, formulario e isotipo en un mismo eje) */
@media (min-width: 681px) and (max-width: 1020px) {
    .hero__body { gap: 60px; } /* deja lugar a la tarjeta "Factura emitida", que asoma por arriba de los mosaicos */
    .hero__copy { max-width: 640px; margin-inline: auto; text-align: center; }
    .hero__lead { margin-inline: auto; }
    /* Menú: los productos en dos columnas para que la lista no ocupe toda la pantalla */
    .dd__panel--wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
}
/* Tablet angosto: con muchas pestañas, una grilla pareja de 4 columnas en vez de filas cortadas */
@media (min-width: 681px) and (max-width: 900px) {
    .tabs:has(> .tabs__tab:nth-child(7)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-radius: 26px; }
    .tabs:has(> .tabs__tab:nth-child(7)) .tabs__tab { padding-inline: 10px; }
}
@media (max-width: 680px) {
    .hero { padding-bottom: 48px; }
    .hero__body { gap: 32px; }
    /* Pestañas de producto: una fila deslizable de borde a borde (main.js deja la elegida a la vista) */
    .tabs { position: relative; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; width: auto; max-width: none; margin: 0 -16px 22px; padding: 2px 16px 4px; border: 0; border-radius: 0; background: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs__tab { flex: none; padding: 10px 18px; background: var(--purple-50); font-size: 14.5px; scroll-snap-align: start; }
    /* Producto aliado: botones a todo el ancho */
    .ally { padding: 18px; }
    .ally__actions .btn { flex: 1 1 auto; min-height: 44px; }
}
/* Pantallas táctiles: pestañas con área de toque cómoda */
@media (max-width: 1020px), (pointer: coarse) {
    .tabs__tab { min-height: 44px; } /* también en iPad horizontal (1024px, táctil) */
}

/* ---------- Hero: mosaicos de rubros ---------- */
/* Flecha en la esquina de cada mosaico: indica que se puede tocar */
.tile__go { position: absolute; top: 24px; right: 30px; opacity: .75; transition: transform .2s var(--ease-out), opacity .2s ease; }
.tile:hover .tile__go, .tile:focus-visible .tile__go { opacity: 1; transform: translateX(4px); }
/* El formulario enviado se oculta (la confirmación ocupa su lugar) */
.demo-form[hidden] { display: none; }
@media (max-width: 680px) {
    .tile__go { top: 18px; right: 24px; }
    .float-card--top { display: none; } /* en celular taparía los mosaicos de arriba */
}

/* ---------- Formulario final: lo que eligió el visitante (producto, plan, rubro) ---------- */
.cta .demo-ctx {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px;
    width: fit-content; max-width: 100%; margin: -6px auto 18px; padding: 5px 5px 5px 16px;
    border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; line-height: 1.3;
    animation: msgIn .4s var(--ease-out);
}
.cta .demo-ctx[hidden] { display: none; }
.demo-ctx > span { opacity: .8; }
.demo-ctx button { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; }
.demo-ctx button:hover { background: rgba(255, 255, 255, .3); }
.demo-ctx button::before { content: ""; position: absolute; inset: -7px; } /* área de toque de 44px */

/* ---------- Confirmación del pedido de demo (reemplaza al formulario) ---------- */
.demo-done {
    position: relative; display: grid; justify-items: center; gap: 6px; max-width: 470px; margin-inline: auto; padding: 22px 20px 12px;
    border-radius: var(--radius-lg); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
    color: #fff; text-align: center; animation: msgIn .45s var(--ease-out);
}
.demo-done:focus { outline: none; }
.demo-done__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 50%; background: var(--green); color: var(--ink); animation: popIn .45s var(--ease-spring) .1s backwards; }
.demo-done > p { margin: 0; max-width: none; color: rgba(255, 255, 255, .9); font-size: 15px; }
.demo-done > .demo-done__title { color: #fff; font-size: 19px; font-weight: 800; }
.demo-done strong { color: #fff; overflow-wrap: anywhere; }
.demo-done > .demo-done__alt { margin-top: 4px; font-size: 14.5px; }
.demo-done__alt a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-done__again { min-height: 44px; padding: 0 12px; border: 0; background: none; color: rgba(255, 255, 255, .78); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-done__again:hover { color: #fff; }

/* ---------- Capturas: botón "Ampliar" en la barra de la ventana ---------- */
.window:has(> .window__zoom) { position: relative; }
.window:has(> .window__zoom) .window__bar span { margin-right: 92px; }
.window:has(> .window__zoom) .window__body img { cursor: zoom-in; }
.window__zoom {
    position: absolute; z-index: 2; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 14px 0 12px; border: 0; border-left: 1px solid var(--line); border-top-right-radius: 13px;
    background: transparent; color: var(--purple-800); font: inherit; font-size: 12.5px; font-weight: 700; cursor: zoom-in;
    transition: background-color .2s ease, color .2s ease;
}
.window__zoom::before { content: ""; position: absolute; inset: -3px 0; } /* área de toque de 44px */
.window__zoom:hover { background: var(--purple-50); color: var(--purple); }
.window__zoom:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; }
.window__prod { font-weight: inherit; }

@media (max-width: 680px) {
    /* en celular el rubro ya está en el acordeón: la barra muestra solo la funcionalidad */
    .window__prod { display: none; }
    .window:has(> .window__zoom) .window__bar span { margin-right: 84px; }
    .window__zoom { padding-inline: 10px 12px; }
}

/* ---------- Visor de capturas a pantalla completa ---------- */
.zoom {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: #110d1c; color: #fff; overflow: hidden;
}
.zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .25s ease; }
.zoom::backdrop { background: #110d1c; }
html:has(.zoom[open]) { overflow: hidden; }

.zoom__top {
    display: flex; align-items: center; gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
}
.zoom__head { flex: 1; min-width: 0; margin: 0; line-height: 1.25; }
.zoom__product, .zoom__title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom__product { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.zoom__title { font-size: 16px; font-weight: 800; }
.zoom__count { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zoom__count:empty { display: none; }
.zoom__btn {
    position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s ease;
}
.zoom__btn:hover { background: rgba(255, 255, 255, .22); }
.zoom__btn:focus-visible, .zoom__nav:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Escenario: la captura entera, centrada; zoom y arrastre con transform (main.js) */
.zoom__stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.zoom.is-zoomed .zoom__stage { cursor: grab; }
.zoom.is-dragging .zoom__stage { cursor: grabbing; }
.zoom.no-zoom .zoom__stage { cursor: default; }
.zoom__img {
    position: absolute; left: 50%; top: 50%; max-width: none; border-radius: 8px; background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55); transform-origin: center;
    transition: transform .3s var(--ease-out), opacity .25s ease;
    -webkit-user-drag: none; -webkit-touch-callout: none;
}
.zoom.is-zoomed .zoom__img { border-radius: 0; }
.zoom.is-gesture .zoom__img { transition: opacity .25s ease; }
.zoom.is-loading .zoom__img { opacity: 0; }
.zoom__spin {
    position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; opacity: 0; pointer-events: none;
    animation: spin .8s linear infinite; transition: opacity .2s ease;
}
.zoom.is-loading .zoom__spin { opacity: 1; transition-delay: .15s; }
.zoom__nav {
    position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px;
    padding: 0; border: 0; border-radius: 50%; background: rgba(17, 13, 28, .62); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    transition: opacity .2s ease, background-color .2s ease;
}
.zoom__nav:hover { background: var(--purple); }
.zoom__nav--prev { left: max(10px, env(safe-area-inset-left)); }
.zoom__nav--next { right: max(10px, env(safe-area-inset-right)); }
.zoom__nav[hidden] { display: none; }
.zoom.is-zoomed .zoom__nav { opacity: 0; pointer-events: none; }

/* Pie: descripción de la funcionalidad, ayuda y botón de zoom */
.zoom__foot { padding: 12px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.zoom__desc { max-width: 46em; margin: 0 auto 10px; font-size: 15px; line-height: 1.45; text-align: center; color: rgba(255, 255, 255, .9); }
.zoom__desc:empty { display: none; }
.zoom__tools { display: flex; align-items: center; justify-content: center; gap: 14px; }
.zoom__hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .62); }
.zoom__rotate { display: none; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.zoom__out { display: none; }
.zoom.is-zoomed .zoom__in { display: none; }
.zoom.is-zoomed .zoom__out { display: grid; }
.zoom__in, .zoom__out { place-items: center; }
.zoom__in { display: grid; }
.zoom.no-zoom .zoom__btn--zoom, .zoom.no-zoom .zoom__tip { display: none; }
/* Celular vertical con una captura apaisada: sugerir girarlo (ahí se ve más grande) */
@media (orientation: portrait) and (max-width: 680px) {
    .zoom.is-wide .zoom__rotate { display: inline-flex; }
    .zoom.is-wide .zoom__tip { display: none; }
    /* las flechas van abajo, donde sobra lugar, para no tapar los bordes de la captura */
    .zoom__nav { top: auto; bottom: 14px; margin-top: 0; }
}
/* Celular horizontal: barra de título finita arriba y la captura con todo el resto del alto */
@media (orientation: landscape) and (max-height: 520px) {
    .zoom[open] { grid-template-rows: auto minmax(0, 1fr); }
    .zoom__top { padding-block: max(4px, env(safe-area-inset-top)) 4px; }
    .zoom__product { display: none; }
    .zoom__title { font-size: 14.5px; }
    .zoom__top .zoom__btn { width: 40px; height: 40px; }
    .zoom__foot { position: absolute; z-index: 3; right: 0; bottom: 0; padding: 0 max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) 0; }
    .zoom__desc, .zoom__hint { display: none; }
}

/* ---------- Soluciones en celular: acordeón de rubros (en tablet y desktop siguen las pestañas) ---------- */
.acc__head { display: none; }
@media (max-width: 680px) {
    #soluciones .tabs { display: none; }
    .sol-item { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s ease, box-shadow .25s ease; }
    .sol-item.is-open { border-color: var(--purple-100); box-shadow: var(--shadow-sm); }
    .acc__head {
        display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 14px;
        width: 100%; min-height: 72px; padding: 14px 16px 14px 14px; scroll-margin-top: 12px;
        border: 0; border-radius: inherit; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
    }
    .acc__head:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; }
    .acc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--purple-50); color: var(--purple); transition: background-color .25s ease, color .25s ease; }
    .acc__text strong { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.25; }
    .acc__text small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
    .acc__chev { color: var(--muted); transition: transform .3s var(--ease-out); }
    .acc__head[aria-expanded="true"] .acc__chev { transform: rotate(180deg); color: var(--purple); }
    .acc__head[aria-expanded="true"] .acc__icon { background: var(--purple); color: #fff; }
    /* Contenido del rubro abierto, dentro de la tarjeta */
    .sol-item .tabs__panel { padding: 0 12px 14px; }
    .sol-item:not(.is-open) .tabs__panel { display: none; }
    .sol-item .showcase__list { margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
    .sol-item .ally { margin-bottom: 14px; }
}

/* ---------- Celular y tablet: barra fija con "Pedir demo" (reemplaza a los botones flotantes) ---------- */
.mbar { display: none; }
@media (max-width: 1020px) {
    .js .mbar {
        position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
        padding: 10px 16px max(10px, env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(29, 23, 54, .1);
        transform: translateY(110%); visibility: hidden;
        transition: transform .35s var(--ease-out), visibility 0s linear .35s;
    }
    .js .mbar[hidden] { display: none; }
    .js .mbar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
    .mbar__demo { flex: 1; min-width: 0; min-height: 48px; }
    .mbar__demo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mbar__quick { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
    .mbar__quick:hover { border-color: var(--purple); color: var(--purple-600); }
    .js .wa, .js .mbar ~ .to-top { display: none; }
}
@media (min-width: 681px) and (max-width: 1020px) {
    .js .mbar { justify-content: center; }
    .mbar__demo { flex: 0 1 360px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .marquee { mask-image: none; -webkit-mask-image: none; }
    .marquee__track { flex-wrap: wrap; justify-content: center; min-width: 0; flex: 1; padding: 0 16px; }
    .marquee__track[aria-hidden] { display: none; }
    .marquee-toggle { display: none !important; }
}
