/* Landing pública de BioManga.
   Los tokens de marca (--app-*) y el lockup vienen de /assets/brand/brand.css.
   Los acentos de abajo (--site-*) son propios de la landing: no se usan en el
   panel ni en el login. Los colores por actividad repiten los de la app. */

:root {
    --site-night: #06120c;
    --site-night-2: #0b1d14;
    --site-night-3: #12291d;
    --site-on-night: #eaf4ed;
    --site-muted-on-night: #9db2a6;
    --site-line-on-night: rgb(255 255 255 / 10%);
    --site-lime: #c8f560;
    --site-mint: #4fe3a1;
    --site-sky: #58c7ff;
    --site-amber: #ffb84d;
    --site-coral: #ff7b6b;
    --site-violet: #a892ff;
    --site-tint: #f2f8f4;
    --site-radius: 20px;
    --site-ease: cubic-bezier(.2, .8, .2, 1);

    --activity-ingreso: #1f8f46;
    --activity-pesaje: #16648a;
    --activity-movimiento: #3a4046;
    --activity-egreso: #5f6f82;
    --activity-muerto: #c63f3f;
    --activity-conteo: #0f5f9e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--app-font-sans); color: var(--app-color-text); background: var(--app-color-surface); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { flex-shrink: 0; }
img { max-width: 100%; }
.icon { width: 21px; height: 21px; vertical-align: middle; }
p, h1, h2, h3, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 720; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 680; letter-spacing: -.035em; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
p { color: var(--app-color-text-secondary); text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--site-mint); outline-offset: 4px; border-radius: 6px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.line-breaks { white-space: pre-line; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 16px; background: var(--site-lime); color: var(--site-night); border-radius: 8px; z-index: 60; font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--app-color-primary); }
.lead { font-size: 18px; line-height: 1.7; }

.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section-tint { background: var(--site-tint); }
.section-night { background: var(--site-night); color: var(--site-on-night); overflow: hidden; isolation: isolate; }
/* En los bloques oscuros el fondo va espejado, para que no repita el de la portada. */
.section-night > .backdrop-aurora { transform: scaleX(-1); }
.section-night p { color: var(--site-muted-on-night); }
.section-night .eyebrow { color: var(--site-lime); }
.section-night > .container { position: relative; }
.section-heading { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-heading p { margin-top: 20px; font-size: 17px; line-height: 1.7; }
.section-heading-center { margin-inline: auto; text-align: center; }

.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; min-height: 48px; background: var(--site-lime); border: 1px solid var(--site-lime); color: var(--site-night); font-size: 15px; font-weight: 650; border-radius: 999px; white-space: nowrap; transition: transform .25s var(--site-ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s; }
.button .icon { width: 18px; height: 18px; transition: transform .25s var(--site-ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgb(200 245 96 / 32%); }
.button:hover .icon { transform: translateX(3px); }
.button-large { min-height: 56px; padding-inline: 28px; font-size: 16px; }
.button-small { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.button-ghost { background: rgb(255 255 255 / 6%); border-color: var(--site-line-on-night); color: var(--site-on-night); }
.button-ghost:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 28%); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--site-on-night); opacity: .82; transition: opacity .2s; }
.text-link:hover { opacity: 1; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; color: var(--app-color-primary); background: var(--app-color-primary-soft); }
.section-night .icon-tile { color: var(--site-lime); background: rgb(200 245 96 / 12%); }

/* Aparición al hacer scroll. Sin JavaScript todo queda visible. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--site-ease) var(--reveal-delay, 0ms), transform .8s var(--site-ease) var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Luz que sigue al puntero en las tarjetas (solo con mouse). */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgb(79 227 161 / 16%)), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: -1; }
[data-spotlight]:hover::after { opacity: 1; }

/* Encabezado */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--site-mint), var(--site-lime), var(--site-amber)); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgb(6 18 12 / 78%); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--site-line-on-night); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
/* El logo va siempre con sus colores de marca (verde y grafito, como en la app).
   Sobre el fondo oscuro se apoya en una pastilla blanca para no cambiarlos. */
.brand { display: inline-flex; align-items: center; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / 22%); }
.brand .bm-logo { font-size: 21px; }
.hero .eyebrow { color: var(--site-lime); }
.main-nav { display: flex; gap: 6px; align-items: center; padding: 5px; border-radius: 999px; border: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 4%); }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--site-muted-on-night); font-size: 14px; font-weight: 550; white-space: nowrap; transition: color .2s, background-color .2s; }
.main-nav a:hover, .main-nav a.is-current { color: var(--site-on-night); background: rgb(255 255 255 / 9%); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button-ghost .icon, .mobile-menu-actions .button-ghost .icon { color: var(--site-lime); transition: transform .35s var(--site-ease); }
.header-actions .button-ghost:hover .icon { transform: rotate(-18deg) scale(1.1); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--site-on-night); border: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 6%); }
.mobile-menu, .mobile-cta { display: none; }

/* Portada */
.hero { position: relative; padding-block: clamp(120px, 14vw, 176px) clamp(64px, 8vw, 110px); background: var(--site-night); color: var(--site-on-night); overflow: hidden; isolation: isolate; }
/* Fondo de la portada (manchas de color y red de puntos): lo comparten los bloques oscuros. */
.backdrop-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.backdrop-aurora { position: absolute; inset: -20% -10%; z-index: -2; filter: blur(90px); }
.backdrop-aurora i { position: absolute; border-radius: 50%; opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.backdrop-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -6vw; background: #0f6b41; }
.backdrop-aurora i:nth-child(2) { width: 34vw; height: 34vw; right: -4vw; top: 8vw; background: #0e5a78; animation-duration: 24s; animation-delay: -6s; }
.backdrop-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 34vw; bottom: -10vw; background: #6a7d12; animation-duration: 21s; animation-delay: -11s; }
/* Filmación de fondo en la portada: bien atrás, debajo de las manchas y de la red. */
.hero > .scene-video { z-index: -3; opacity: .3; }
.hero > .scene-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 18 12 / 55%), transparent 30%, transparent 70%, var(--site-night)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { background: linear-gradient(180deg, #fff 30%, #b9d6c5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-rotating { margin-top: 22px; font-size: clamp(19px, 2.1vw, 26px); font-weight: 600; letter-spacing: -.02em; color: var(--site-on-night); display: flex; flex-wrap: wrap; gap: 0 .4em; }
.rotator { position: relative; display: inline-block; min-height: 1.6em; }
.rotator b { display: inline-block; font-weight: 650; background: linear-gradient(90deg, var(--site-lime), var(--site-mint) 55%, var(--site-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator b.is-leaving { animation: word-out .35s var(--site-ease) forwards; }
.rotator b.is-entering { animation: word-in .5s var(--site-ease) forwards; }
.hero .lead { margin-top: 20px; max-width: 540px; color: var(--site-muted-on-night); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 4%); font-size: 13px; font-weight: 550; color: var(--site-on-night); }
.hero-badges .icon { width: 16px; height: 16px; color: var(--site-lime); }

/* Páginas por tema: portada más baja, a una columna, con el mismo fondo. */
.page-hero { padding-block: clamp(124px, 13vw, 172px) clamp(64px, 8vw, 104px); }
.page-hero h1 { max-width: 900px; font-size: clamp(36px, 4.8vw, 64px); }
.page-hero .lead { max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13.5px; font-weight: 550; color: var(--site-muted-on-night); }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--site-on-night); }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--site-on-night); }
.prose { display: grid; gap: 18px; align-content: start; }
.prose p { font-size: 17.5px; line-height: 1.75; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-card { --spot: rgba(var(--app-color-primary-rgb), .1); display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 84px; padding: 20px 22px; border-radius: var(--site-radius); border: 1px solid var(--app-color-border); background: var(--app-color-surface); font-size: 17px; font-weight: 650; letter-spacing: -.01em; overflow: hidden; transition: transform .35s var(--site-ease), border-color .3s, box-shadow .3s; }
.link-card .icon { width: 18px; height: 18px; color: var(--app-color-primary); transition: transform .25s var(--site-ease); }
.link-card:hover { transform: translateY(-4px); border-color: var(--app-color-primary-border); box-shadow: 0 18px 40px rgba(var(--app-color-primary-rgb), .12); }
.link-card:hover .icon { transform: translateX(4px); }

/* Teléfono con la simulación */
.demo { position: relative; display: grid; justify-items: center; padding-block: 12px 0; }
.demo-orbit { position: absolute; left: 50%; top: 46%; width: 0; height: 0; }
.demo-orbit i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgb(200 245 96 / 16%); transform: translate(-50%, -50%); animation: orbit-pulse 6s ease-in-out infinite; }
.demo-orbit i:nth-child(1) { width: 360px; height: 360px; }
.demo-orbit i:nth-child(2) { width: 500px; height: 500px; animation-delay: -2s; }
.demo-orbit i:nth-child(3) { width: 640px; height: 640px; animation-delay: -4s; }
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 300 / 600; padding: 10px; border-radius: 44px; background: linear-gradient(160deg, #2c3a32, #0d1711); box-shadow: 0 0 0 1px rgb(255 255 255 / 12%), 0 40px 90px rgb(0 0 0 / 55%), 0 0 90px rgb(79 227 161 / 18%); transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .35s var(--site-ease); will-change: transform; }
.phone-notch { position: absolute; left: 50%; top: 18px; width: 86px; height: 22px; border-radius: 999px; background: #05100a; transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 35px; background: #f4f7f5; color: var(--app-color-text); overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.phone-status { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 46px 12px 8px; font-size: 10.5px; font-weight: 600; color: #1f7a51; background: #e6f4ec; transition: background-color .4s, color .4s; }
.phone-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.phone-status.is-offline { color: #a4531a; background: #fdf0e1; }
.phone-status.is-syncing .phone-status-dot { animation: pulse-dot 1s infinite; }
.phone-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; }
.phone-activity { padding: 4px 10px; border-radius: 999px; background: var(--activity-pesaje); color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: .02em; }
.phone-head strong { font-size: 13px; }
.phone-reader { position: relative; margin: 0 12px; padding: 14px 14px 16px; border-radius: 20px; background: #fff; border: 1px solid #e3e9e5; text-align: center; overflow: hidden; }
.phone-rings { position: relative; width: 54px; height: 54px; margin: 0 auto 8px; display: grid; place-items: center; color: var(--app-color-primary); }
.phone-rings .bm-icon { height: 28px; width: auto; position: relative; }
.phone-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(27 94 58 / 35%); opacity: 0; }
.is-reading .phone-rings i { animation: ring 1.1s ease-out infinite; }
.is-reading .phone-rings i:nth-child(2) { animation-delay: .3s; }
.is-reading .phone-rings i:nth-child(3) { animation-delay: .6s; }
.phone-step { display: block; font-size: 10.5px; color: var(--app-color-text-muted); min-height: 16px; }
.phone-tag { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-height: 22px; }
.phone-detail { display: block; font-size: 11px; color: var(--app-color-text-muted); min-height: 17px; transition: opacity .3s; }
.phone-weight { margin-top: 8px; display: flex; align-items: baseline; justify-content: center; gap: 5px; color: var(--activity-pesaje); transition: color .3s; }
.phone-weight b { font-size: 44px; line-height: 1; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.phone-weight span { font-size: 15px; font-weight: 650; }
.is-stable .phone-weight { color: var(--app-color-primary); }
.phone-saved { position: absolute; inset: auto 12px 10px auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--app-color-primary); color: #fff; font-size: 10px; font-weight: 650; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s, transform .4s var(--site-ease); }
.phone-saved .icon { width: 12px; height: 12px; }
.is-saved .phone-saved { opacity: 1; transform: none; }
.phone-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px; }
.phone-stats div { padding: 8px 6px; border-radius: 12px; background: #fff; border: 1px solid #e3e9e5; text-align: center; }
.phone-stats span { display: block; font-size: 9px; color: var(--app-color-text-muted); }
.phone-stats b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.phone-stats i { font-style: normal; }
.phone-list { flex: 1; min-height: 0; margin: 0 12px 12px; padding: 10px 12px 4px; border-radius: 16px; background: #fff; border: 1px solid #e3e9e5; overflow: hidden; }
.phone-list-title { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--app-color-text-muted); margin-bottom: 4px; }
.phone-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 7px; border-top: 1px solid #eef2f0; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.phone-list li:first-child { border-top: 0; }
.phone-list li.is-new { animation: row-in .5s var(--site-ease); }
.phone-list li span { font-weight: 600; min-width: 0; }
.phone-list small { display: block; font-weight: 400; color: var(--app-color-text-muted); font-size: 9.5px; }
.phone-list b { white-space: nowrap; }
.demo-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--site-line-on-night); background: rgb(11 29 20 / 72%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px rgb(0 0 0 / 35%); animation: float 7s ease-in-out infinite; white-space: nowrap; }
.demo-card strong, .demo-card small { display: block; }
.demo-card strong { font-size: 13px; }
.demo-card small { font-size: 11.5px; color: var(--site-muted-on-night); }
.demo-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.demo-card-icon .icon { width: 18px; height: 18px; }
.demo-card-1 { left: -20%; top: 12%; }
.demo-card-1 .demo-card-icon { background: rgb(88 199 255 / 16%); color: var(--site-sky); }
.demo-card-2 { right: -16%; top: 46%; animation-delay: -2.4s; }
.demo-card-2 .demo-card-icon { background: rgb(255 184 77 / 16%); color: var(--site-amber); }
.demo-card-3 { left: -14%; bottom: 12%; animation-delay: -4.6s; }
.demo-card-3 .demo-card-icon { background: rgb(200 245 96 / 16%); color: var(--site-lime); }

/* Cinta de marcas */
.brand-strip { background: var(--site-night-2); border-block: 1px solid var(--site-line-on-night); padding-block: 22px; overflow: hidden; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; padding-inline: 44px; color: var(--site-on-night); white-space: nowrap; opacity: .82; transition: opacity .25s, color .25s; }
a.marquee-item:hover { opacity: 1; color: var(--site-lime); }
.marquee-item b { font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
.marquee-item img { height: 30px; width: auto; align-self: center; filter: brightness(0) invert(1); opacity: .9; }

/* Qué hace */
.stepper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.stepper-list { display: grid; gap: 12px; align-content: center; }
.stepper-step { position: relative; display: flex; gap: 18px; width: 100%; padding: 22px 24px 26px; text-align: left; border-radius: var(--site-radius); border: 1px solid var(--app-color-border); background: var(--app-color-surface); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s var(--site-ease); }
.stepper-step:hover { transform: translateX(4px); }
.stepper-step.is-active { border-color: var(--app-color-primary-border); box-shadow: 0 18px 44px rgb(27 94 58 / 12%); }
.stepper-number { font-size: 13px; font-weight: 700; color: var(--app-color-text-muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.stepper-step.is-active .stepper-number { color: var(--app-color-primary); }
.stepper-text strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.stepper-text span { display: block; margin-top: 8px; font-size: 15px; color: var(--app-color-text-secondary); }
.stepper-bar { position: absolute; inset: auto 0 0; height: 3px; background: transparent; }
.stepper-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--app-color-primary), var(--site-mint)); }
.stepper-step.is-active .stepper-bar i { animation: fill var(--step-duration, 5s) linear forwards; }
.stepper.is-paused .stepper-step.is-active .stepper-bar i { animation-play-state: paused; }
.stepper-stage { position: relative; min-height: 380px; border-radius: 28px; background: var(--site-night); overflow: hidden; isolation: isolate; }
.stepper-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 70% 20%, rgb(79 227 161 / 24%), transparent 70%); z-index: -1; transition: background .6s; }
/* Video ilustrado de la manga, de fondo en el recuadro. Es decorativo. */
.scene-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scene-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stepper-stage .scene-video { inset: 0 0 30%; z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.stepper-stage .scene-video video { object-position: 50% 80%; }
.stepper-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; padding: clamp(24px, 4vw, 44px); color: var(--site-on-night); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s, transform .6s var(--site-ease); pointer-events: none; }
.stepper-panel.is-active { opacity: 1; transform: none; }
.stepper-icon { position: absolute; right: clamp(24px, 4vw, 44px); top: clamp(24px, 4vw, 44px); display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: rgb(255 255 255 / 8%); border: 1px solid var(--site-line-on-night); color: var(--site-lime); }
.stepper-icon .icon { width: 38px; height: 38px; }
.stepper-panel-2 .stepper-icon { color: var(--site-sky); }
.stepper-panel-3 .stepper-icon { color: var(--site-amber); }
.stepper-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--site-muted-on-night); }
.stepper-panel strong { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stepper-detail { font-size: 15px; color: var(--site-muted-on-night); }
.stepper-pulse { position: absolute; left: clamp(24px, 4vw, 44px); top: clamp(30px, 4.4vw, 50px); display: flex; gap: 6px; }
.stepper-pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--site-mint); animation: blink 1.2s infinite; }
.stepper-pulse i:nth-child(2) { animation-delay: .2s; }
.stepper-pulse i:nth-child(3) { animation-delay: .4s; }

/* Para quién es */
.fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 28px; }
.fields > span { font-size: 13px; font-weight: 650; color: var(--app-color-text-muted); }
.fields ul { display: flex; flex-wrap: wrap; gap: 8px; }
.fields li { padding: 8px 15px; border-radius: 999px; background: var(--site-night); color: var(--site-on-night); font-size: 14px; font-weight: 600; white-space: nowrap; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.role-card { --tone: var(--app-color-primary); --spot: color-mix(in srgb, var(--tone) 12%, transparent); display: flex; flex-direction: column; padding: clamp(24px, 3vw, 38px); border-radius: 26px; background: var(--app-color-surface); border: 1px solid var(--app-color-border); transition: transform .35s var(--site-ease), box-shadow .3s, border-color .3s; }
.role-card[data-tone="amber"] { --tone: #b86a00; }
.role-card[data-tone="sky"] { --tone: var(--activity-pesaje); }
.role-card[data-tone="coral"] { --tone: #c2452f; }
.role-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 40%, var(--app-color-border)); box-shadow: 0 24px 56px color-mix(in srgb, var(--tone) 14%, transparent); }
.role-head { display: flex; align-items: center; gap: 14px; }
.role-card .icon-tile { color: var(--tone); background: color-mix(in srgb, var(--tone) 11%, transparent); }
.role-name { font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--tone); }
.role-card h3 { margin-top: 22px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -.03em; }
.role-card ul { display: grid; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--app-color-border); }
.role-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; font-weight: 550; color: var(--app-color-text-secondary); }
.role-card li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--tone); }

/* Con señal o sin señal */
/* La tarjeta usa un fondo liso y opaco a propósito: con un degradado translúcido,
   algunos Android la dibujaban partida en dos franjas. */
.offline-grid, .devices-grid, .tasks-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.offline-grid .section-heading, .devices-grid .section-heading, .tasks-grid .section-heading { margin-bottom: 30px; }
.check-list { display: grid; gap: 18px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; color: var(--site-muted-on-night); }
.check-list strong { display: block; font-size: 16.5px; color: var(--site-on-night); margin-bottom: 2px; }
.check-list-light li { color: var(--app-color-text-secondary); }
.check-list-light strong { color: var(--app-color-text); }
.sync { padding: clamp(20px, 3vw, 32px); border-radius: 28px; border: 1px solid var(--site-line-on-night); background: #14251c; }
.sync-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: rgb(0 0 0 / 30%); }
.sync-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 650; color: var(--site-muted-on-night); transition: background-color .3s, color .3s; }
.sync-switch button .icon { width: 18px; height: 18px; }
.sync-switch button.is-active[data-sync-mode="offline"] { background: var(--site-amber); color: var(--site-night); }
.sync-switch button.is-active[data-sync-mode="online"] { background: var(--site-lime); color: var(--site-night); }
.sync-stage { display: grid; grid-template-columns: 1fr minmax(48px, .5fr) 1fr; align-items: center; gap: 10px; margin-top: 24px; }
.sync-node { padding: 20px 14px; border-radius: 20px; border: 1px solid var(--site-line-on-night); background: rgb(0 0 0 / 22%); text-align: center; transition: border-color .4s, box-shadow .4s; }
.sync-node-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgb(255 255 255 / 8%); margin-bottom: 10px; }
.sync-node small { display: block; font-size: 12px; color: var(--site-muted-on-night); }
.sync-node strong { display: block; font-size: clamp(36px, 5vw, 54px); line-height: 1.1; font-weight: 740; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sync-node > span:last-child { display: block; font-size: 12.5px; color: var(--site-muted-on-night); }
.sync-device strong { color: var(--site-amber); }
.sync-cloud strong { color: var(--site-lime); }
.sync.is-online .sync-cloud { border-color: rgb(200 245 96 / 45%); box-shadow: 0 0 44px rgb(200 245 96 / 14%); }
.sync:not(.is-online) .sync-device { border-color: rgb(255 184 77 / 45%); box-shadow: 0 0 44px rgb(255 184 77 / 12%); }
.sync-wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 22%) 0 6px, transparent 6px 12px); }
.sync-wire i { position: absolute; inset: -4px 0; }
.sync-wire i b { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--site-lime); box-shadow: 0 0 12px var(--site-lime); animation: packet .7s var(--site-ease) forwards; }
.sync-hint { margin-top: 20px; text-align: center; font-size: 14px; }

/* Actividades */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.activity-card { --tone: var(--app-color-primary); --spot: color-mix(in srgb, var(--tone) 14%, transparent); padding: 26px; border-radius: var(--site-radius); border: 1px solid var(--app-color-border); background: var(--app-color-surface); overflow: hidden; transition: transform .35s var(--site-ease), border-color .3s, box-shadow .3s; }
.activity-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); transform: scaleX(.22); transform-origin: 0 50%; transition: transform .5s var(--site-ease); }
.activity-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 40%, var(--app-color-border)); box-shadow: 0 22px 50px color-mix(in srgb, var(--tone) 16%, transparent); }
.activity-card:hover::before { transform: none; }
.activity-card[data-activity="ingreso"] { --tone: var(--activity-ingreso); }
.activity-card[data-activity="pesaje"] { --tone: var(--activity-pesaje); }
.activity-card[data-activity="movimiento"] { --tone: var(--activity-movimiento); }
.activity-card[data-activity="egreso"] { --tone: var(--activity-egreso); }
.activity-card[data-activity="muerto"] { --tone: var(--activity-muerto); }
.activity-card[data-activity="conteo"] { --tone: var(--activity-conteo); }
.activity-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--tone); color: #fff; transition: transform .4s var(--site-ease); }
.activity-card:hover .activity-icon { transform: rotate(-8deg) scale(1.08); }
.activity-card h3 { margin-top: 20px; }
.activity-card p { margin-top: 10px; font-size: 15px; }

/* Dispositivos y marcas */
/* En escritorio la ilustración va a la izquierda, para alternar con el bloque anterior. */
@media (min-width: 861px) { .devices-grid .brand-board { order: -1; } }
.brand-board { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--site-night); color: var(--site-on-night); }
.brand-board-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--site-lime); margin-bottom: 18px; }
.brand-board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand-card { --spot: rgb(200 245 96 / 18%); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 128px; padding: 20px; border-radius: 20px; border: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 4%); overflow: hidden; transition: transform .35s var(--site-ease), border-color .3s; }
.brand-card b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 760; letter-spacing: -.035em; }
.brand-card img { height: 36px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.brand-card small { font-size: 13px; color: var(--site-muted-on-night); }
.brand-card > .icon { position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; color: var(--site-muted-on-night); transform: rotate(-45deg); transition: transform .3s var(--site-ease), color .3s; }
a.brand-card:hover { transform: translateY(-4px); border-color: rgb(200 245 96 / 45%); }
a.brand-card:hover > .icon { transform: rotate(-45deg) translateX(4px); color: var(--site-lime); }
.brand-board-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 15px 18px; border-radius: 16px; background: rgb(200 245 96 / 10%); color: var(--site-lime); font-size: 15px; font-weight: 600; transition: background-color .25s; }
.brand-board-note:hover { background: rgb(200 245 96 / 18%); }

/* Tareas */
.task-board { padding: clamp(20px, 3vw, 30px); border-radius: 28px; background: var(--site-tint); border: 1px solid var(--app-color-border); }
.task-board-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--app-color-text-muted); margin-bottom: 14px; }
.task, .task-comment { display: flex; align-items: center; gap: 14px; padding: 15px 16px; margin-top: 10px; border-radius: 16px; background: var(--app-color-surface); border: 1px solid var(--app-color-border); }
.js .task, .js .task-comment { opacity: 0; transform: translateX(-24px); transition: opacity .6s var(--site-ease) var(--task-delay, 0ms), transform .6s var(--site-ease) var(--task-delay, 0ms); }
.js .is-visible .task, .js .is-visible .task-comment { opacity: 1; transform: none; }
.task-check { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--app-color-border); color: transparent; }
.task-check .icon { width: 14px; height: 14px; }
.task.is-done .task-check { background: var(--app-color-primary); border-color: var(--app-color-primary); color: #fff; }
.task-text { min-width: 0; flex: 1; }
.task-text strong { display: block; font-size: 15px; font-weight: 620; }
.task.is-done .task-text strong { text-decoration: line-through; color: var(--app-color-text-muted); }
.task-text small { font-size: 12.5px; color: var(--app-color-text-muted); }
.task-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #fdf0e1; color: #a4531a; white-space: nowrap; }
.task.is-done .task-status { background: var(--app-color-primary-soft); color: var(--app-color-primary); }
.task-comment { align-items: flex-start; margin-left: 40px; background: var(--site-night); border-color: var(--site-night); color: var(--site-on-night); font-size: 14px; }
.task-comment .icon { color: var(--site-lime); margin-top: 2px; }
.task-comment strong { display: block; font-size: 12.5px; color: var(--site-lime); }
.tick-list { display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 550; }
.tick-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--app-color-primary); }

/* Integraciones */
.hub { position: relative; }
.hub-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 132px; height: 132px; margin: 0 auto 44px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #1f7a4b, #0b2a1b); box-shadow: 0 0 0 1px rgb(255 255 255 / 14%), 0 0 0 14px rgb(79 227 161 / 7%), 0 0 0 30px rgb(79 227 161 / 4%), 0 0 90px rgb(79 227 161 / 30%); font-size: 13px; font-weight: 700; animation: breathe 4.5s ease-in-out infinite; }
.hub-core .bm-icon { height: 46px; width: auto; color: var(--site-lime); }
.hub-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hub-grid::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: -22px; height: 2px; background: linear-gradient(90deg, var(--site-lime), var(--site-sky), var(--site-amber), var(--site-coral)); opacity: .7; }
.hub-grid::after { content: ""; position: absolute; left: calc(50% - 1px); top: -44px; width: 2px; height: 22px; background: var(--site-mint); }
.hub-card { --tone: var(--site-lime); --spot: color-mix(in srgb, var(--tone) 16%, transparent); padding: 26px 22px; border-radius: var(--site-radius); border: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 4%); transition: transform .35s var(--site-ease), border-color .3s; }
.hub-card[data-tone="sky"] { --tone: var(--site-sky); }
.hub-card[data-tone="amber"] { --tone: var(--site-amber); }
.hub-card[data-tone="coral"] { --tone: var(--site-coral); }
.hub-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.hub-card .icon-tile { color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.hub-line { position: absolute; left: calc(50% - 1px); bottom: 100%; width: 2px; height: 22px; background: linear-gradient(180deg, transparent, var(--tone)); overflow: hidden; }
.hub-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: travel 2.4s linear infinite; }
.hub-card:nth-child(2) .hub-line::after { animation-delay: -.6s; }
.hub-card:nth-child(3) .hub-line::after { animation-delay: -1.2s; }
.hub-card:nth-child(4) .hub-line::after { animation-delay: -1.8s; }
.hub-tag { display: block; width: fit-content; margin-top: 18px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); }
.hub-card h3 { margin-top: 12px; }
.hub-card p { margin-top: 10px; font-size: 14.5px; }

/* La nube */
.cloud { --step-duration: 5200ms; border-radius: 26px; background: var(--site-night); color: var(--site-on-night); overflow: hidden; box-shadow: 0 40px 90px rgb(6 18 12 / 28%), 0 0 0 1px rgb(255 255 255 / 6%) inset; }
.cloud-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 3%); }
.cloud-dots { display: flex; gap: 6px; }
.cloud-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 16%); }
.cloud-address { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgb(0 0 0 / 28%); font-size: 13px; font-weight: 600; color: var(--site-muted-on-night); }
.cloud-address .icon { width: 16px; height: 16px; color: var(--site-sky); }
.cloud-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--site-lime); }
.cloud-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--site-lime); }
.cloud-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 440px; }
.cloud-menu { display: flex; flex-direction: column; gap: 4px; padding: 22px 14px; border-right: 1px solid var(--site-line-on-night); background: rgb(0 0 0 / 18%); }
.cloud-mark { height: 34px; width: auto; align-self: flex-start; margin: 0 0 18px 10px; color: var(--site-lime); }
.cloud-tab { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 12px; border-radius: 12px; text-align: left; font-size: 15px; font-weight: 600; color: var(--site-muted-on-night); overflow: hidden; transition: background-color .25s, color .25s; }
.cloud-tab .icon { width: 18px; height: 18px; }
.cloud-tab:hover { color: var(--site-on-night); background: rgb(255 255 255 / 5%); }
.cloud-tab.is-active { color: var(--site-night); background: var(--site-lime); }
.cloud-tab-bar { position: absolute; inset: auto 0 0; height: 3px; }
.cloud-tab-bar i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: rgb(6 18 12 / 35%); }
.cloud-tab.is-active .cloud-tab-bar i { animation: fill var(--step-duration) linear forwards; }
.cloud.is-paused .cloud-tab.is-active .cloud-tab-bar i { animation-play-state: paused; }
.cloud-stage { position: relative; isolation: isolate; }
.cloud-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 0%, rgb(88 199 255 / 14%), transparent 70%), radial-gradient(50% 60% at 10% 100%, rgb(79 227 161 / 12%), transparent 70%); z-index: -1; }
.cloud-panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 44px); opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .55s var(--site-ease); pointer-events: none; }
.cloud-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.cloud-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--site-sky); }
.cloud-panel h3 { margin-top: 10px; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.03em; }
.cloud-panel p { margin-top: 12px; max-width: 620px; font-size: 16px; color: var(--site-muted-on-night); }
.cloud-rows { display: grid; gap: 8px; margin-top: auto; padding-top: 24px; }
.cloud-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--site-line-on-night); background: rgb(255 255 255 / 5%); opacity: 0; transform: translateX(18px); }
.cloud-panel.is-active .cloud-rows li { animation: row-slide .5s var(--site-ease) var(--row-delay, 0ms) forwards; }
.cloud-rows strong { display: block; font-size: 15px; font-weight: 620; font-variant-numeric: tabular-nums; }
.cloud-rows small { display: block; font-size: 12.5px; color: var(--site-muted-on-night); font-variant-numeric: tabular-nums; }
.cloud-rows b { font-size: 15px; font-weight: 700; color: var(--site-lime); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cloud-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14.5px; }
.cloud-footnote .icon { width: 18px; height: 18px; color: var(--app-color-primary); }

/* Implementación */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; right: -20px; top: 12px; height: 2px; background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-border)); }
.timeline li:last-child::before { right: 0; }
.timeline-number { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--app-color-primary); color: #fff; font-size: 11px; font-weight: 700; }
.timeline h3 { font-size: 19px; }
.timeline p { margin-top: 10px; font-size: 15px; }

/* Preguntas */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); }
.faq-list details { border-bottom: 1px solid var(--app-color-border); }
.faq-list details:first-child { border-top: 1px solid var(--app-color-border); }
.faq-list summary { position: relative; display: block; cursor: pointer; padding: 22px 44px 22px 0; font-size: 17px; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--app-color-primary); border-bottom: 2px solid var(--app-color-primary); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--site-ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list details p { padding: 0 44px 24px 0; font-size: 16px; animation: panel-in .4s var(--site-ease); }

/* Contacto y pie */
.contact-section { position: relative; padding-block: clamp(80px, 10vw, 140px); background: var(--site-night); color: var(--site-on-night); text-align: center; overflow: hidden; isolation: isolate; }
.contact-glow { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, rgb(79 227 161 / 30%), rgb(88 199 255 / 22%), rgb(200 245 96 / 26%), rgb(255 184 77 / 18%), rgb(79 227 161 / 30%)); border-radius: 50%; filter: blur(90px); z-index: -1; animation: spin 26s linear infinite; }
.contact-inner { max-width: 780px; }
.contact-inner .eyebrow { color: var(--site-lime); }
.contact-inner h2 { font-size: clamp(34px, 5vw, 64px); }
.contact-inner p { margin-top: 20px; font-size: 18px; color: var(--site-muted-on-night); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; margin-top: 36px; }
.site-footer { padding-block: 40px; background: var(--site-night); color: var(--site-muted-on-night); border-top: 1px solid var(--site-line-on-night); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-inner p { margin-top: 12px; font-size: 13px; color: var(--site-muted-on-night); }
/* Enlaces del pie en dos renglones: tres arriba y dos abajo, centrados. */
.footer-inner nav { display: flex; flex: 0 1 560px; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 18px; font-size: 14.5px; padding-top: 8px; }
.footer-inner nav a { flex: 0 0 33.333%; text-align: center; transition: color .2s; }
.footer-inner nav a:hover, .footer-meta a:hover { color: var(--site-on-night); }
.footer-meta { display: grid; gap: 8px; justify-items: end; font-size: 13px; padding-top: 6px; }
.developer-link { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
/* Rojo de Carbini Dev: el mismo del pie del panel. */
.developer-icon { display: block; height: 24px; width: auto; color: #ef4444; margin-right: -2px; }
.developer-logo { display: block; height: 15px; width: auto; }

/* Animaciones */
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgb(200 245 96 / 55%); } 70%, 100% { box-shadow: 0 0 0 9px rgb(200 245 96 / 0%); } }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes orbit-pulse { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); } }
@keyframes ring { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.9); } }
@keyframes row-in { from { opacity: 0; transform: translateY(-14px); background: #e6f4ec; } to { opacity: 1; transform: none; } }
@keyframes word-out { to { opacity: 0; transform: translateY(-60%); filter: blur(6px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(60%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes marquee { to { transform: translateX(-25%); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes row-slide { to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes packet { from { left: 0; opacity: 1; } to { left: calc(100% - 10px); opacity: .2; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes travel { to { top: 100%; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Tablet */
@media (max-width: 1080px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .hub-grid { grid-template-columns: repeat(2, 1fr); }
    .hub-line, .hub-grid::before, .hub-grid::after { display: none; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .footer-inner { flex-wrap: wrap; }
    .footer-inner nav { order: 3; flex: 1 1 100%; }
    .link-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline li:nth-child(2n)::before { right: 0; }
    .demo-card-1 { left: -6%; }
    .demo-card-2 { right: -4%; }
    .demo-card-3 { left: -4%; }
}

/* Móvil: una columna, carruseles con el dedo, menú a pantalla completa y barra de acción fija. */
@media (max-width: 860px) {
    html { scroll-padding-top: 76px; }
    .container { width: calc(100% - 40px); }
    .header-inner { min-height: 64px; gap: 10px; }
    .header-contact { display: none; }
    .header-actions { gap: 8px; }
    .header-actions .button-ghost { min-height: 44px; padding: 0 14px; gap: 7px; font-size: 13.5px; }
    .brand { padding: 7px 14px 7px 10px; }
    .brand .bm-logo { font-size: 19px; }

    .mobile-menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; padding: 10px 20px 28px; background: var(--site-night); color: var(--site-on-night); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .4s var(--site-ease), visibility .3s; }
    .mobile-menu[hidden] { display: none; }
    .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
    .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
    .mobile-menu nav { display: grid; margin-top: 18px; }
    .mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; padding-block: 17px; border-bottom: 1px solid var(--site-line-on-night); font-size: 28px; font-weight: 680; letter-spacing: -.03em; }
    .mobile-menu nav a span { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--site-lime); font-variant-numeric: tabular-nums; }
    .mobile-menu-actions { display: grid; gap: 10px; margin-top: auto; }
    .mobile-menu-actions .button { min-height: 54px; }
    body.menu-open { overflow: hidden; }

    .mobile-cta { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 35; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgb(6 18 12 / 86%); border: 1px solid var(--site-line-on-night); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgb(0 0 0 / 35%); transform: translateY(140%); transition: transform .45s var(--site-ease); }
    .mobile-cta.is-visible { transform: none; }
    .mobile-cta .button { min-height: 46px; padding-inline: 16px; font-size: 14px; }
    .site-footer { padding-bottom: 104px; }

    .hero { padding-block: 104px 56px; }
    .hero .eyebrow { font-size: 11px; letter-spacing: .07em; white-space: nowrap; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .hero-copy { text-align: left; }
    .button-row .button { flex: 1 1 100%; }
    .hero-badges { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
    .hero-badges::-webkit-scrollbar { display: none; }
    .hero-badges li { flex-shrink: 0; }
    .backdrop-canvas { opacity: .45; }
    .demo-card { display: none; }
    .demo-orbit i:nth-child(3) { display: none; }
    .phone { width: min(280px, 76vw); }

    .marquee-item { padding-inline: 26px; }
    .marquee-item b { font-size: 20px; }

    .stepper { grid-template-columns: minmax(0, 1fr); }
    .stepper-stage { order: -1; min-height: 250px; border-radius: 22px; }
    .stepper-icon { width: 60px; height: 60px; border-radius: 18px; }
    .stepper-icon .icon { width: 28px; height: 28px; }
    .stepper-step { padding: 18px 18px 22px; }
    .stepper-step:not(.is-active) .stepper-text span { display: none; }
    .stepper-step:hover { transform: none; }


    .fields { flex-direction: column; align-items: flex-start; }
    .fields ul { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 40px); margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
    .fields ul::-webkit-scrollbar { display: none; }

    .offline-grid, .devices-grid, .tasks-grid, .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .tasks-grid .task-board { order: 2; }
    .sync-node { padding: 16px 8px; }
    .task-comment { margin-left: 18px; }
    .task-status { display: none; }

    .cloud { border-radius: 20px; }
    .cloud-bar { padding: 12px 14px; gap: 10px; }
    .cloud-dots { display: none; }
    .cloud-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .cloud-menu { flex-direction: row; gap: 6px; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--site-line-on-night); scrollbar-width: none; }
    .cloud-menu::-webkit-scrollbar { display: none; }
    .cloud-mark { display: none; }
    .cloud-tab { width: auto; flex-shrink: 0; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
    .cloud-panel { position: relative; display: none; padding: 22px 18px; }
    .cloud-panel.is-active { display: flex; animation: panel-in .45s var(--site-ease); }
    .cloud-rows li { padding: 12px 14px; }
    .cloud-footnote { align-items: flex-start; justify-content: flex-start; }

    /* Carruseles: se deslizan con el dedo y asoma la tarjeta siguiente. */
    [data-carousel] { display: flex; gap: 12px; overflow-x: auto; margin-inline: -20px; padding: 6px 20px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    [data-carousel]::-webkit-scrollbar { display: none; }
    [data-carousel] > * { flex: 0 0 82%; scroll-snap-align: center; }
    .js [data-carousel] [data-reveal] { opacity: 1; transform: none; }
    .carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
    .carousel-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--app-color-border); transition: width .3s var(--site-ease), background-color .3s; }
    .carousel-dots i.is-active { width: 22px; background: var(--app-color-primary); }

    .hub-core { width: 108px; height: 108px; margin-bottom: 30px; }
    .hub-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .brand-board-grid { gap: 10px; }
    .brand-card { min-height: 108px; padding: 16px; }
    .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .timeline li { padding: 0 0 28px 44px; }
    .timeline li::before { left: 12px; right: auto; top: 26px; bottom: 0; width: 2px; height: auto; background: var(--app-color-primary-border); }
    .timeline li:last-child::before { display: none; }
    .faq-list summary { font-size: 16px; }
    .contact-actions { flex-direction: column; }
    .contact-actions .button { width: 100%; }
    .footer-inner { flex-direction: column; }
    .footer-inner nav { order: 0; flex: none; flex-direction: column; flex-wrap: nowrap; row-gap: 14px; }
    .footer-inner nav a { flex: none; text-align: left; }
    .link-grid { grid-template-columns: minmax(0, 1fr); }
    .page-hero { padding-block: 104px 56px; }
    .footer-meta { justify-items: start; }
}

@media (min-width: 861px) {
    .carousel-dots { display: none; }
}

/* Teléfonos muy angostos: el botón Clientes se queda solo con la palabra. */
@media (max-width: 350px) {
    .header-actions .button-ghost { padding: 0 11px; font-size: 13px; }
    .header-actions .button-ghost .icon { display: none; }
    .brand { padding: 6px 11px 6px 8px; }
    .brand .bm-logo { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal], .js .task, .js .task-comment, .cloud-rows li { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .backdrop-canvas { display: none; }
}
