/*
 * Landing pública de dmaAgent.
 *
 * Identidad de movimiento (perfil «Premium», sin rebote):
 * - Curva propia: --ease (0.2, 0, 0, 1) para casi todo; las entradas usan --ease-enter (0.05, 0.7, 0.1, 1)
 *   y las salidas --ease-exit (0.3, 0, 1, 1).
 * - Tres duraciones: --t-quick 160ms (respuesta), --t-base 320ms (tarjetas, estados), --t-slow 560ms (revelados).
 * - Entrada común: sube 16px y aparece. Escalonado de 60ms con un máximo de 420ms por grupo.
 * - Capas: principal (lo que se revela), secundaria (sombras e iconos que llegan después),
 *   ambiental (orbes, cinta de formatos, latidos).
 * Con prefers-reduced-motion todo queda en su estado final y los bucles se detienen.
 */

:root {
    --app-primary: #E83E65;
    --app-primary-rgb: 232, 62, 101;
    --app-primary-hover: #C53556;
    --app-primary-dark: #A22B47;
    --app-primary-light: #F18BA3;

    --lp-ink: #0f172a;
    --lp-muted: #5b6577;
    --lp-line: #ece6e8;
    --lp-bg: #ffffff;
    --lp-tint: #fbf6f7;
    --lp-night: #1c0810;
    --lp-night-2: #3a0f1c;
    --lp-on-dark: #f8f1f3;
    --lp-on-dark-muted: rgba(248, 241, 243, .72);
    --lp-ok: #16a34a;
    --lp-warn: #d97706;

    --ease: cubic-bezier(0.2, 0, 0, 1);
    --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
    --ease-exit: cubic-bezier(0.3, 0, 1, 1);
    --ease-ambient: cubic-bezier(0.45, 0, 0.55, 1);
    --t-quick: 160ms;
    --t-base: 320ms;
    --t-slow: 560ms;

    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
    --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 22px 48px rgba(var(--app-primary-rgb), .14);
}

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

/* overflow-x en body no impide el scroll lateral en iOS; clip en html sí, y sin crear contenedor de scroll */
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body.landing {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Reset con :where() (especificidad 0): así los márgenes y colores de cada clase (.lp-lead, .lp-hero-title…) sí se aplican */
:where(.landing) h1, :where(.landing) h2, :where(.landing) h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
:where(.landing) p { margin: 0; }
:where(.landing) a { color: inherit; text-decoration: none; }
:where(.landing) ul, :where(.landing) ol { list-style: none; margin: 0; padding: 0; }
.landing em { font-style: normal; color: var(--app-primary-light); }

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Botones ─────────────────────────────────────────────── */

.lp-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: transform var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease),
                box-shadow var(--t-base) var(--ease) 40ms, border-color var(--t-quick) var(--ease);
}
.lp-btn i { font-size: .85em; transition: transform var(--t-base) var(--ease); }
.lp-btn:hover i { transform: translateX(3px); }
.lp-btn:active { transform: scale(.97); transition-duration: 120ms; }
.lp-btn:focus-visible { outline: 3px solid rgba(var(--app-primary-rgb), .5); outline-offset: 3px; }

.lp-btn-primary { background: var(--app-primary); color: #fff; box-shadow: 0 8px 22px rgba(var(--app-primary-rgb), .35); }
.lp-btn-primary:hover { background: var(--app-primary-hover); box-shadow: 0 12px 30px rgba(var(--app-primary-rgb), .45); }
.landing .lp-btn-primary, .landing .lp-btn-primary:hover, .landing .lp-btn-primary:focus-visible { color: #fff; }
.lp-btn-glass { background: rgba(255, 255, 255, .08); color: var(--lp-on-dark); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.lp-btn-glass:hover { background: rgba(255, 255, 255, .16); }
.lp-btn-ghost { color: inherit; border-color: currentColor; background: transparent; }
.lp-btn-ghost:hover { background: rgba(var(--app-primary-rgb), .12); }
.lp-btn-sm { padding: 10px 16px; font-size: 14px; }
.lp-btn-lg { padding: 18px 30px; font-size: 16px; }

/* ── Navegación ─────────────────────────────────────────── */

.lp-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--lp-on-dark);
    transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.lp-nav.is-solid { background: rgba(255, 255, 255, .9); color: var(--lp-ink); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--lp-line); }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: .6rem; }
/* Misma marca que el backoffice (.dma-logo-mark y .dma-brand-text en styles.css). */
.lp-logo-mark { position: relative; flex: 0 0 auto; width: 34px; height: 34px; }
.lp-logo-mark::before, .lp-logo-mark::after {
    content: ""; position: absolute; left: 3px; top: 7px; width: 25px; height: 11px;
    border-radius: 999px 4px 999px 4px;
    background: linear-gradient(135deg, var(--mark-from, var(--app-primary)), var(--mark-to, var(--app-primary-light)));
    box-shadow: 0 .45rem .85rem rgba(var(--mark-rgb, var(--app-primary-rgb)), .22);
    transform: rotate(-28deg);
}
.lp-logo-mark::after { left: 8px; top: 18px; width: 21px; height: 10px; opacity: .68; transform: rotate(28deg); }
.lp-wordmark { display: inline-flex; font-size: 21px; line-height: 1; letter-spacing: -.01em; }
.lp-wordmark b { font-weight: 800; }
.lp-wordmark-agent { color: var(--mark-ink, var(--app-primary)); }
.lp-nav-actions { display: flex; align-items: center; gap: 18px; }
.lp-nav-login { white-space: nowrap; font-size: 14.5px; font-weight: 600; opacity: .85; transition: opacity var(--t-quick) var(--ease); }
.lp-nav-login:hover { opacity: 1; }
/* Desplegables de la cabecera: selector de idioma y menú «Soluciones» (.lp-drop, landing.js) */
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-drop { position: relative; }
.lp-lang-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
    background: transparent; color: inherit; font: 600 14px/1 inherit; font-family: inherit;
    transition: background-color var(--t-quick) var(--ease);
}
.lp-lang-btn:hover, .lp-drop.is-open .lp-lang-btn { background: rgba(255, 255, 255, .12); }
.lp-nav.is-solid .lp-lang-btn:hover, .lp-nav.is-solid .lp-drop.is-open .lp-lang-btn { background: rgba(15, 23, 42, .06); }
.lp-lang-btn:focus-visible { outline: 3px solid rgba(var(--app-primary-rgb), .5); outline-offset: 2px; }
.lp-caret { font-size: 10px; transition: transform var(--t-base) var(--ease); }
.lp-drop.is-open .lp-caret { transform: rotate(180deg); }
.lp-lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px; border-radius: 14px;
    background: #fff; color: var(--lp-ink); border: 1px solid var(--lp-line); box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity 120ms var(--ease-exit), transform 120ms var(--ease-exit), visibility 0s 120ms;
}
.lp-drop.is-open .lp-lang-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--t-quick) var(--ease-enter), transform 220ms var(--ease-enter), visibility 0s;
}
.lp-lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: #334155; transition: background-color var(--t-quick) var(--ease);
}
.lp-lang-menu a:hover, .lp-lang-menu a:focus-visible { background: var(--lp-tint); outline: 0; }
.lp-lang-menu a[aria-current] { color: var(--app-primary); font-weight: 700; }
.lp-lang-menu i { font-size: 12px; }

/* Menú «Soluciones»: icono, nombre y resumen de cada solución sectorial */
.lp-sol [data-current] { box-shadow: inset 0 -2px 0 var(--app-primary); border-radius: 999px 999px 8px 8px; }
.lp-sol-menu { left: 50%; right: auto; width: 340px; transform: translate(-50%, -6px) scale(.98); transform-origin: top center; }
.lp-drop.is-open .lp-sol-menu { transform: translateX(-50%); }
.lp-sol-menu a { justify-content: flex-start; gap: 12px; align-items: flex-start; padding: 10px 12px; }
.lp-sol-menu b { display: block; font-size: 14px; font-weight: 650; color: var(--lp-ink); }
.lp-sol-menu small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--lp-muted); }
.lp-sol-menu a[aria-current] b { color: var(--app-primary); }
.lp-sol-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--app-primary); background: rgba(var(--app-primary-rgb), .1); }
.lp-sol-menu .lp-sol-ico i { font-size: 14px; }
/* Solo en desarrollo: solución en borrador (no se ve en producción) */
.landing .lp-sol-draft { margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; font-style: normal; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; color: #92400e; background: #fef3c7; }

.lp-nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.lp-nav-links a { position: relative; opacity: .82; transition: opacity var(--t-quick) var(--ease); }
.lp-nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: var(--app-primary); transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-base) var(--ease);
}
.lp-nav-links a:hover { opacity: 1; }
.lp-nav-links a:hover::after { transform: scaleX(1); }

/* ── Capa ambiental ─────────────────────────────────────── */

/* Los orbes son más grandes que la pantalla a propósito y se recortan aquí. overflow:hidden no basta en Safari/iOS
   con capas animadas y con blur: clip-path y contain:paint fuerzan el recorte. */
.lp-ambient { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0); contain: paint; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb-a { width: 520px; height: 520px; left: 52%; top: -140px; background: rgba(var(--app-primary-rgb), .55); animation: drift-a 22s var(--ease-ambient) infinite alternate; }
.orb-b { width: 420px; height: 420px; left: -120px; bottom: -160px; background: rgba(241, 139, 163, .35); animation: drift-b 26s var(--ease-ambient) infinite alternate; }
.orb-c { width: 300px; height: 300px; right: -80px; bottom: 10%; background: rgba(162, 43, 71, .6); animation: drift-c 18s var(--ease-ambient) infinite alternate; }
.lp-grid {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
@keyframes drift-a { to { transform: translate(-90px, 70px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(110px, -60px) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-60px, -80px) scale(.92); } }

.live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d399; position: relative; flex: none;
}
.live-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
    animation: breathe 2.4s var(--ease-ambient) infinite;
}
@keyframes breathe { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }

/* ── Hero ───────────────────────────────────────────────── */

.lp-hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: var(--lp-on-dark);
    background: radial-gradient(circle at 75% 20%, rgba(var(--app-primary-rgb), .25), transparent 32rem),
                linear-gradient(140deg, var(--lp-night) 0%, #4a1322 65%, var(--app-primary-dark) 100%);
    padding: 140px 0 0;
}
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }

.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--app-primary);
    margin-bottom: 18px;
}
.lp-eyebrow-dark { color: var(--app-primary-light); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }

.lp-hero-title { font-size: clamp(38px, 5vw, 60px); font-weight: 750; margin-bottom: 22px; }
.lp-hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.lp-hero-title .line > span { display: inline-block; }
.lp-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--lp-on-dark-muted); max-width: 540px; margin-bottom: 32px; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.lp-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--lp-on-dark-muted); }
.lp-hero-points i { color: var(--app-primary-light); margin-right: 8px; }

/* Entrada del hero: líneas que suben desde su máscara y el resto con la entrada común */
.js [data-hero] { opacity: 0; transform: translateY(16px); }
.js .lp-hero-title [data-hero] { opacity: 1; transform: translateY(105%); }
.js .lp-chat[data-hero] { transform: translateY(28px) scale(.98); }
.js.is-ready [data-hero], .js.is-ready .lp-hero-title [data-hero], .js.is-ready .lp-chat[data-hero] {
    opacity: 1; transform: none;
    transition: opacity var(--t-slow) var(--ease-enter), transform 760ms var(--ease-enter);
    transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
[data-hero="1"] { --i: 0; } [data-hero="0"] { --i: 0; } [data-hero="2"] { --i: 1; }
[data-hero="3"] { --i: 2; } [data-hero="4"] { --i: 3; } [data-hero="5"] { --i: 4; }
[data-hero="6"] { --i: 2.5; }

/* ── Chat simulado (capa principal del hero) ────────────── */

.lp-chat {
    position: relative; border-radius: 24px; overflow: hidden; color: var(--lp-ink);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .2);
}
.lp-chat::before {
    /* Brillo que recorre el borde: ambiental, muy lento */
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(var(--app-primary-rgb), .7) 85%, transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: rim 8s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rim { to { --a: 360deg; } }

.lp-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--lp-line); }
.lp-chat-head strong { display: block; font-size: 15px; }
.lp-chat-head small { display: inline-flex; align-items: center; gap: 7px; color: var(--lp-muted); font-size: 12.5px; }
.lp-chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--app-primary-light), var(--app-primary)); }
.lp-chat-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; min-height: 360px; }
.lp-chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 16px 16px; padding: 12px 16px; border-radius: 14px; background: #f5f2f3; color: #9aa3b2; font-size: 14px; }
.lp-chat-input i { color: var(--app-primary); }

.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg-user { align-self: flex-end; background: var(--app-primary-dark); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; width: 88%; background: #f5f2f3; border-bottom-left-radius: 4px; }
.msg-bot p { min-height: 1.5em; }
.msg-bot p.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--app-primary); animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.lp-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-steps li {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 500; color: var(--lp-muted); background: #fff; border: 1px solid var(--lp-line);
    transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.lp-steps li i { color: #b3bac6; transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.lp-steps li.is-done { color: var(--lp-ink); border-color: rgba(var(--app-primary-rgb), .3); }
.lp-steps li.is-done i { color: var(--app-primary); }
.lp-steps li.is-strong.is-done { background: rgba(22, 163, 74, .08); border-color: rgba(22, 163, 74, .35); }
.lp-steps li.is-strong.is-done i { color: var(--lp-ok); }
.lp-steps li.is-busy i { animation: spin-soft 900ms linear infinite; }
@keyframes spin-soft { to { transform: rotate(360deg); } }

.lp-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cite { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 500; background: #fff; border: 1px solid var(--lp-line); color: var(--lp-muted); }
.cite i { color: var(--app-primary); }

.lp-feedback { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--lp-muted); }
.thumb { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--lp-line); transition: all var(--t-base) var(--ease); }
.thumb.is-pressed { background: var(--app-primary); border-color: var(--app-primary); color: #fff; transform: scale(1.08); }

/* Estados de la secuencia del chat: cada paso entra con la entrada común; al reiniciar sale más rápido */
.js [data-chat-step], .js [data-pipe], .js [data-cite] { opacity: 0; transform: translateY(10px); }
.js [data-chat-step].is-in, .js [data-pipe].is-in, .js [data-cite].is-in {
    opacity: 1; transform: none;
    transition: opacity var(--t-base) var(--ease-enter), transform var(--t-slow) var(--ease-enter);
}
.js .msg-user[data-chat-step] { transform: translateY(10px) scale(.96); transform-origin: bottom right; }
.js .msg-user[data-chat-step].is-in { transform: none; }
.lp-chat-body.is-leaving > * { opacity: 0 !important; transform: translateY(-8px) !important; transition: opacity 200ms var(--ease-exit), transform 200ms var(--ease-exit) !important; }

/* ── Cinta de formatos (ambiental: lineal está permitido en bucles continuos) ── */

.lp-marquee { position: relative; z-index: 1; margin-top: 88px; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.lp-marquee-title { text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-on-dark-muted); margin-bottom: 16px; }
.lp-marquee-track {
    display: flex; width: max-content; animation: marquee 48s linear infinite;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
.lp-marquee-group { display: flex; gap: 12px; padding-right: 12px; }
.lp-marquee-group li {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; white-space: nowrap;
    font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.lp-marquee-group i { color: var(--app-primary-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Secciones ──────────────────────────────────────────── */

.lp-section { position: relative; padding: 120px 0; }
.lp-section-tint { background: var(--lp-tint); }
.lp-section-dark { isolation: isolate; overflow: hidden; color: var(--lp-on-dark); background: linear-gradient(160deg, var(--lp-night) 0%, var(--lp-night-2) 100%); }
.lp-section-dark .lp-wrap { position: relative; z-index: 1; }
.lp-head { max-width: 720px; margin-bottom: 64px; }
.lp-head h2, .lp-split h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 720; margin-bottom: 16px; }
.lp-sub { font-size: 17px; color: var(--lp-muted); max-width: 620px; }
.lp-section-dark .lp-sub { color: var(--lp-on-dark-muted); }

/* Entrada común al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity var(--t-slow) var(--ease-enter), transform var(--t-slow) var(--ease-enter);
    transition-delay: var(--delay, 0ms);
}

/* ── Cómo funciona ──────────────────────────────────────── */

.lp-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-timeline-rail { position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--lp-line); border-radius: 2px; overflow: hidden; }
.lp-timeline-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--app-primary-light), var(--app-primary)); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 120ms linear; }
.lp-step { position: relative; }
.lp-step-dot {
    position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; margin-bottom: 22px;
    background: #fff; color: var(--app-primary); border: 1px solid var(--lp-line); box-shadow: var(--shadow-sm); font-size: 18px;
    transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease) 60ms;
}
.lp-step.is-reached .lp-step-dot { background: var(--app-primary); color: #fff; border-color: var(--app-primary); box-shadow: 0 10px 24px rgba(var(--app-primary-rgb), .35); }
.lp-step-num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--app-primary); margin-bottom: 6px; }
.lp-step h3 { font-size: 20px; margin-bottom: 10px; }
.lp-step p { color: var(--lp-muted); font-size: 15px; }

/* ── Funciones ──────────────────────────────────────────── */

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card {
    position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--lp-line);
    box-shadow: var(--shadow-sm);
}
.lp-card::after {
    /* Sombra que llega después de la tarjeta: seguimiento */
    content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
    transition: opacity var(--t-base) var(--ease) 50ms;
}
.js .lp-card[data-reveal].is-in { transition: opacity var(--t-slow) var(--ease-enter) var(--delay, 0ms), transform var(--t-slow) var(--ease-enter) var(--delay, 0ms), border-color var(--t-quick) var(--ease); }
.js .lp-card[data-reveal].is-in.is-settled { transition: transform var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease); }
.lp-card.is-in:hover { transform: translateY(-4px); }
.lp-card:hover { border-color: rgba(var(--app-primary-rgb), .25); }
.lp-card:hover::after { opacity: 1; }
.lp-card-icon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 20px; font-size: 18px;
    color: var(--app-primary); background: rgba(var(--app-primary-rgb), .1);
    transition: transform var(--t-base) var(--ease) 40ms, background-color var(--t-base) var(--ease);
}
.lp-card:hover .lp-card-icon { transform: rotate(-6deg) scale(1.06); background: rgba(var(--app-primary-rgb), .16); }
.lp-card h3 { font-size: 18px; margin-bottom: 10px; }
.lp-card p { font-size: 15px; color: var(--lp-muted); }

/* ── Bloques partidos ───────────────────────────────────── */

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
/* Las columnas de grid no pueden encoger por debajo de su contenido más largo (el <script> del xat web no se parte):
   min-width: 0 deja que encojan y que el código haga scroll dentro de su caja. */
.lp-split > *, .lp-hero-inner > *, .lp-demo > * { min-width: 0; }
.landing .lp-checks { display: grid; gap: 12px; margin-top: 28px; }
.lp-checks li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.lp-checks i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: #fff; background: var(--app-primary); transform: translateY(3px); }
.lp-checks-dark li { color: var(--lp-on-dark); }

/* Medidor de evidencia */
.lp-meter { position: relative; padding: 28px; border-radius: 24px; background: var(--lp-tint); border: 1px solid var(--lp-line); display: grid; gap: 12px; }
.lp-meter-scale {
    position: relative; height: 10px; border-radius: 999px; margin: 4px 6px 18px;
    background: linear-gradient(90deg, var(--lp-ok), #84cc16 30%, var(--lp-warn) 60%, #94a3b8);
}
.lp-meter-needle {
    position: absolute; top: 50%; left: var(--needle, 12%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    background: #fff; border: 3px solid var(--lp-ink); box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
    transition: left 900ms var(--ease);
}
.lp-level {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--lp-line);
    opacity: .55; transform: scale(.985);
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease) 50ms;
}
.lp-level i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 17px; }
.lp-level strong { display: block; font-size: 15.5px; }
.lp-level span { font-size: 14px; color: var(--lp-muted); }
.lp-level-strong i { color: var(--lp-ok); background: rgba(22, 163, 74, .1); }
.lp-level-weak i { color: var(--lp-warn); background: rgba(217, 119, 6, .1); }
.lp-level-none i { color: #64748b; background: rgba(100, 116, 139, .12); }
.lp-level.is-active { opacity: 1; transform: none; border-color: rgba(var(--app-primary-rgb), .3); box-shadow: var(--shadow-lg); }

/* Código del widget */
.lp-code {
    display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 12px 12px 12px 18px; border-radius: 14px;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12);
}
.lp-code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--app-primary-light); scrollbar-width: none; }
.lp-copy {
    display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border-radius: 10px; border: 0; cursor: pointer;
    font: 600 13px/1 inherit; font-family: inherit; color: var(--lp-ink); background: #fff;
    transition: transform 120ms var(--ease), background-color var(--t-quick) var(--ease);
}
.lp-copy:active { transform: scale(.95); }
.lp-copy.is-done { background: #bbf7d0; }
.lp-copy.is-done i { animation: pop var(--t-base) var(--ease-enter); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

/* Navegador simulado con el widget */
.lp-browser { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.lp-browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1edee; }
.lp-browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d9d2d4; }
.lp-browser-bar em { margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: #fff; color: var(--lp-muted); font-size: 12.5px; }
.lp-browser-page { position: relative; min-height: 400px; padding: 30px; }
.sk { display: block; height: 12px; border-radius: 6px; background: #f0ebec; margin-bottom: 12px; width: 70%; }
.sk-title { height: 22px; width: 50%; margin-bottom: 18px; }
.sk-short { width: 40%; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.sk-cards i { height: 90px; border-radius: 12px; background: #f6f2f3; }
.lp-widget-launcher {
    position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    color: #fff; font-size: 22px; background: var(--app-primary); box-shadow: 0 10px 26px rgba(var(--app-primary-rgb), .5);
}
.lp-widget-launcher::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: breathe 2.6s var(--ease-ambient) infinite; z-index: -1; }
.lp-widget-panel {
    position: absolute; right: 22px; bottom: 92px; width: min(270px, 80%); padding: 0 0 14px; border-radius: 16px; overflow: hidden;
    background: #fff; color: var(--lp-ink); box-shadow: 0 18px 50px rgba(15, 23, 42, .22); display: grid; gap: 12px;
    transform-origin: bottom right;
}
.lp-widget-head { padding: 12px 16px; color: #fff; font-weight: 600; font-size: 14px; background: var(--app-primary); }
.lp-widget-panel .msg { margin: 0 14px; font-size: 13.5px; }
.lp-widget-panel small { margin: 0 16px; font-size: 11.5px; color: var(--lp-muted); }
.js [data-widget-panel] { opacity: 0; transform: translateY(12px) scale(.9); }
.js [data-browser].is-open [data-widget-panel] {
    opacity: 1; transform: none;
    transition: opacity var(--t-base) var(--ease-enter) 380ms, transform 420ms var(--ease-enter) 380ms;
}
.js [data-browser].is-open [data-widget-launcher] { animation: press 360ms var(--ease) 200ms; }
@keyframes press { 40% { transform: scale(.9); } 100% { transform: scale(1); } }

/* ── Control ────────────────────────────────────────────── */

.lp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.lp-trust-item { display: flex; gap: 18px; }
.lp-trust-item > i {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 17px;
    color: var(--app-primary); border: 1px solid rgba(var(--app-primary-rgb), .25); background: rgba(var(--app-primary-rgb), .06);
}
.lp-trust-item h3 { font-size: 17px; margin-bottom: 6px; }
.lp-trust-item p { font-size: 15px; color: var(--lp-muted); }

/* ── Pedir una demo ─────────────────────────────────────── */

.lp-cta {
    position: relative; isolation: isolate; overflow: hidden; padding: 120px 0;
    color: var(--lp-on-dark); background: linear-gradient(140deg, var(--lp-night) 0%, #4a1322 60%, var(--app-primary-dark) 100%);
}
.lp-cta .lp-wrap { position: relative; z-index: 1; }
.lp-cta h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 750; margin-bottom: 18px; }
.lp-demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-demo-copy > p { font-size: 18px; color: var(--lp-on-dark-muted); max-width: 460px; }
.lp-demo-login { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14.5px; font-weight: 600; color: var(--app-primary-light); }
.lp-demo-login i { font-size: .8em; transition: transform var(--t-base) var(--ease); }
.lp-demo-login:hover i { transform: translateX(3px); }

.lp-demo-card {
    display: grid; min-height: 470px; padding: clamp(20px, 3vw, 32px); border-radius: 24px;
    background: #fff; color: var(--lp-ink); box-shadow: 0 40px 90px rgba(0, 0, 0, .4);
}
.lp-demo-form { display: grid; gap: 16px; transition: opacity 220ms var(--ease-exit), transform 220ms var(--ease-exit); }
.lp-demo-form[hidden] { display: none; }
.lp-demo-form.is-leaving { opacity: 0; transform: translateY(-12px); }
.lp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 13px; font-weight: 600; color: #334155; }
.lp-field legend { padding: 0; margin-bottom: 8px; }
.lp-field small { font-weight: 500; color: #94a3b8; }
.lp-field-full { grid-column: 1 / -1; }
.lp-field input, .lp-field textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lp-line); background: #fcfafa;
    font: 500 15px/1.4 inherit; font-family: inherit; color: var(--lp-ink);
    transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease);
}
.lp-field textarea { resize: vertical; min-height: 88px; }
.lp-field input:focus, .lp-field textarea:focus { outline: 0; background: #fff; border-color: var(--app-primary); box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb), .14); }
.lp-field.is-invalid input { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }

.lp-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-pick label { position: relative; cursor: pointer; }
.lp-pick input { position: absolute; opacity: 0; pointer-events: none; }
.lp-pick span {
    display: inline-flex; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #334155;
    box-shadow: inset 0 0 0 1.5px var(--lp-line);
    transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), transform 120ms var(--ease);
}
.lp-pick label:hover span { box-shadow: inset 0 0 0 1.5px rgba(var(--app-primary-rgb), .45); }
.lp-pick label:active span { transform: scale(.95); }
.lp-pick input:checked + span { background: var(--app-primary); color: #fff; box-shadow: none; animation: chip var(--t-base) var(--ease-enter); }
.lp-pick input:focus-visible + span { outline: 3px solid rgba(var(--app-primary-rgb), .45); outline-offset: 2px; }
@keyframes chip { from { transform: scale(.92); } to { transform: scale(1); } }

.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-demo-submit { justify-content: center; width: 100%; margin-top: 2px; }
.lp-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin-soft 700ms linear infinite; }
.lp-demo-submit.is-loading .lp-spin { display: block; }
.lp-demo-submit.is-loading i { display: none; }
.lp-demo-submit[disabled] { cursor: progress; opacity: .85; }
/* Casilla de privacidad: el texto se alinea con la primera línea y el enlace va subrayado */
.lp-field.lp-privacy-check { grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; color: #475569; cursor: pointer; }
.lp-field.lp-privacy-check input { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-width: 18px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 4px; background: none; box-shadow: none; accent-color: var(--app-primary); cursor: pointer; }
.lp-field.lp-privacy-check input:focus { box-shadow: none; }
.lp-field.lp-privacy-check input:focus-visible { outline: 3px solid rgba(var(--app-primary-rgb), .45); outline-offset: 2px; }
.lp-privacy-check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lp-privacy-check a:hover { color: var(--app-primary); }
.lp-field.lp-privacy-check.is-invalid input { outline: 2px solid #dc2626; outline-offset: 2px; box-shadow: none; }
.lp-form-error { display: none; padding: 10px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; font-weight: 600; }
.lp-form-error.is-on { display: block; animation: rise var(--t-base) var(--ease-enter); }
.lp-shake { animation: shake 360ms ease-in-out; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(2px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Éxito: el formulario sale (220ms, acelera) → la insignia aparece → se dibuja el check → onda → textos */
.lp-demo-done { display: none; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; }
.lp-demo-done.is-on { display: grid; }
.lp-badge { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--lp-ok); background: #dcfce7; transform: scale(0); animation: badge 480ms var(--ease-enter) 60ms forwards; }
.lp-badge::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #86efac; opacity: 0; animation: ripple 900ms var(--ease) 320ms; }
.lp-badge svg { width: 42px; height: 42px; }
.lp-badge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 420ms var(--ease) 380ms forwards; }
.lp-demo-done h3 { font-size: 24px; opacity: 0; animation: rise 420ms var(--ease-enter) 520ms forwards; }
.lp-demo-done p { max-width: 340px; color: var(--lp-muted); opacity: 0; animation: rise 420ms var(--ease-enter) 600ms forwards; }
@keyframes badge { 0% { transform: scale(0); } 70% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* ── Footer ─────────────────────────────────────────────
 * Claro a propósito: el bloque de demo de encima ya es oscuro.
 * Misma estructura que el resto de la suite dma (marca, Producto, Ecosistema DMA, Tridenia, legal + idiomas). */

.lp-footer { padding: 72px 0 32px; background: var(--lp-tint); color: var(--lp-muted); font-size: 15px; }
.lp-footer h2 { margin-bottom: 18px; font-size: 18px; font-weight: 750; color: var(--lp-ink); letter-spacing: -.01em; }
.lp-footer a { transition: color var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease); }

.lp-foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--lp-line); }
.lp-foot-id p { margin-top: 12px; font-size: 17px; }
/* .lp-footer delante para ganar a «.landing a { color: inherit }» */
.lp-footer .lp-brand-lg { color: var(--lp-ink); }
.lp-brand-lg .lp-wordmark { font-size: 35px; }
.lp-brand-lg .lp-logo-mark { transform: scale(1.4); transform-origin: left center; margin-right: 14px; }
/* Tridenia: frase y botón en horizontal, para que la fila superior no crezca */
.lp-foot-tri { display: flex; align-items: center; gap: 24px; }
.lp-foot-tri p { max-width: 300px; font-size: 14px; line-height: 1.5; }
.lp-foot-tri strong { display: block; color: var(--lp-ink); font-size: 15px; }
.lp-foot-tri .lp-btn { flex: none; }

/* Soluciones sectoriales: en móvil es el acceso a ellas (la cabecera no tiene sitio para el menú) */
/* Título y lista en la misma fila (como en dmaPlaces); si no caben, la lista se parte en dos líneas a su derecha */
.lp-foot-eco.lp-foot-sols { flex-wrap: nowrap; align-items: baseline; column-gap: 28px; border-bottom: 1px solid var(--lp-line); }
.lp-foot-sols h2 { flex: none; }
.lp-foot-sol-list { display: flex; flex-wrap: wrap; gap: 10px 26px; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.lp-foot-sol-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--lp-ink); white-space: nowrap; }
.lp-foot-sol-list a:hover { color: var(--app-primary); }
.lp-foot-sol-list i { color: var(--app-primary); font-size: 14px; }
.landing .lp-foot-sol-list a[aria-current] { color: var(--app-primary); }

/* Ecosistema en una sola línea: título + los cuatro productos */
.lp-foot-eco { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 40px; padding: 28px 0; }
.lp-footer .lp-foot-eco h2 { margin: 0; font-size: 16px; }
.lp-foot-suite, .lp-foot-legal { margin: 0; padding: 0; list-style: none; }
/* Productos de la suite en fila (el menú de secciones ya está en la cabecera fija) */
.lp-foot-suite { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.lp-foot-suite .lp-brand { color: var(--lp-ink); }
.lp-foot-suite .lp-wordmark { font-size: 19px; }
.lp-foot-suite .lp-brand:hover { opacity: .75; }

/* Colores de cada producto de la suite (isotipo y segunda parte del nombre) */
.lp-suite-places  { --mark-from: #2f7bff; --mark-to: #6aa8ff; --mark-rgb: 47, 123, 255; --mark-ink: #1d64d8; }
.lp-suite-message { --mark-from: #10b98f; --mark-to: #5ee0bf; --mark-rgb: 16, 185, 143; --mark-ink: #0b8a6b; }
.lp-suite-board   { --mark-from: #8b5cf6; --mark-to: #c4a8ff; --mark-rgb: 139, 92, 246; --mark-ink: #7442e8; }
.lp-suite-pulse   { --mark-from: #f5b62a; --mark-to: #fcd767; --mark-rgb: 245, 182, 42; --mark-ink: #b77905; }

.lp-btn-ink { background: var(--lp-ink); color: #fff; }
.lp-btn-ink:hover { background: #1e293b; }
.landing .lp-btn-ink, .landing .lp-btn-ink:hover { color: #fff; }
.lp-btn-ink:hover i { transform: translate(2px, -2px); }

.lp-foot-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--lp-line); font-size: 14px; }
.lp-foot-legal { display: flex; flex-wrap: wrap; justify-content: center; }
.lp-foot-legal li + li::before { content: "·"; margin: 0 10px; }
.lp-foot-legal a:hover, .lp-foot-langs a:hover { color: var(--lp-ink); }
.lp-foot-langs { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.lp-foot-langs a + a::before { content: "|"; margin: 0 12px; color: var(--lp-line); }
.lp-foot-langs a[aria-current] { color: var(--app-primary); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1180px) {
    .lp-nav-links { gap: 20px; font-size: 14px; }
}

@media (max-width: 1080px) {
    .lp-nav-links { display: none; }
}

/* Con el menú «Soluciones» la cabecera necesita más sitio: los anclajes de secciones son lo primero que se oculta;
   «Soluciones» y el CTA se mantienen hasta móvil, donde se llega a las soluciones desde el footer. */
@media (max-width: 1240px) {
    .lp-nav-links:has(~ .lp-nav-actions .lp-sol) { display: none; }
}

@media (max-width: 760px) {
}

@media (max-width: 560px) {
    /* Móvil: solo cabe un botón. Mientras el CTA de demo del hero está en pantalla, la cabecera ofrece «Acceder»;
       al pasarlo, vuelve «Pedir una demo» (landing.js pone .is-hero-cta en la cabecera). */
    .lp-nav-login { display: none; }
    .lp-nav.is-hero-cta .lp-nav-login {
        display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; opacity: 1;
        border: 1px solid currentColor; font-size: 14px; animation: rise var(--t-base) var(--ease-enter);
    }
    .lp-nav.is-hero-cta .lp-btn-sm { display: none; }
}

@media (max-width: 980px) {
    .lp-foot-bottom { grid-template-columns: 1fr; justify-items: start; }
    .lp-foot-legal, .lp-foot-langs { justify-content: flex-start; }
    .lp-hero { padding-top: 112px; }
    .lp-hero-title { margin-bottom: 18px; }
    .lp-lead { margin-bottom: 28px; }
    .lp-hero-actions { margin-bottom: 28px; }
    .lp-hero-inner, .lp-split, .lp-demo { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .lp-features, .lp-trust { grid-template-columns: repeat(2, 1fr); }
    .lp-timeline { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
    .lp-timeline-rail { display: none; }
    .lp-section { padding: 88px 0; }
}

@media (max-width: 620px) {
    .lp-wrap { padding: 0 16px; }
    .lp-features, .lp-trust, .lp-timeline { grid-template-columns: 1fr; }
    .lp-chat-body { min-height: 340px; padding: 18px 16px; }
    .lp-browser-page { min-height: 360px; padding: 22px; }
    .lp-head { margin-bottom: 44px; }
    .lp-marquee { margin-top: 64px; }
    .lp-code { flex-direction: column; align-items: stretch; }
    .lp-btn-sm { padding: 9px 13px; }
    .lp-nav-actions { gap: 8px; }
    /* En móvil el idioma se cambia desde el footer: la cabecera deja sitio al nombre del producto */
    .lp-nav .lp-lang, .lp-nav .lp-sol { display: none; }
    .lp-fields { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .lp-nav-inner { gap: 12px; }
    .lp-nav .lp-wordmark { font-size: 18px; }
    .lp-nav .lp-btn-sm { padding: 9px 12px; font-size: 13.5px; }
    .lp-nav .lp-btn-sm i { display: none; }
}

/* ── Movimiento reducido: estado final, sin bucles ─────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
    .js [data-hero], .js [data-reveal], .js [data-chat-step], .js [data-pipe], .js [data-cite], .js [data-widget-panel],
    .js .lp-hero-title [data-hero] { opacity: 1 !important; transform: none !important; }
    .lp-marquee-track { width: auto; flex-wrap: wrap; justify-content: center; mask-image: none; }
    .lp-marquee-group { flex-wrap: wrap; justify-content: center; }
    .lp-marquee-group[aria-hidden="true"] { display: none; }
    .lp-badge, .lp-badge path, .lp-demo-done h3, .lp-demo-done p { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* Footer en móvil: va al final para imponerse a las reglas de 980px */
@media (max-width: 560px) {
    .lp-foot-top { flex-direction: column; align-items: flex-start; }
    .lp-foot-tri { flex-direction: column; align-items: flex-start; gap: 14px; }
    .lp-brand-lg .lp-wordmark { font-size: 28px; }
    .lp-foot-suite { gap: 10px 24px; }
    .lp-foot-eco.lp-foot-sols { flex-wrap: wrap; }
    .lp-foot-sol-list a { white-space: normal; }
}

/* ── Páginas legales ────────────────────────────────────── */

.lp-legal { padding: 132px 0 96px; }
.lp-legal-wrap { max-width: 860px; }
.lp-legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--app-primary); }
.lp-legal-back i { font-size: .8em; transition: transform var(--t-base) var(--ease); }
.lp-legal-back:hover i { transform: translateX(-3px); }
.lp-legal-head h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 750; }
.lp-legal-date { margin-top: 10px; font-size: 14px; color: var(--lp-muted); }
.lp-legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--lp-line); }
.lp-legal-tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--lp-muted); box-shadow: inset 0 0 0 1.5px var(--lp-line); transition: color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease); }
.lp-legal-tabs a:hover { color: var(--lp-ink); box-shadow: inset 0 0 0 1.5px rgba(var(--app-primary-rgb), .45); }
.landing .lp-legal-tabs a[aria-current] { color: #fff; background: var(--app-primary); box-shadow: none; }

.lp-legal-body { color: #334155; font-size: 16px; line-height: 1.7; }
.lp-legal-body h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 720; color: var(--lp-ink); }
.lp-legal-body h2:first-child { margin-top: 0; }
.lp-legal-body h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; color: var(--lp-ink); }
.lp-legal-body p, .lp-legal-body ul { margin: 0 0 14px; }
.landing .lp-legal-body ul { padding-left: 1.3em; list-style: disc; }
.lp-legal-body li { margin-bottom: 6px; }
.lp-legal-body li::marker { color: var(--app-primary); }
.lp-legal-body strong { color: var(--lp-ink); }
.landing .lp-legal-body a { color: var(--app-primary); text-decoration: underline; text-underline-offset: 2px; }
.lp-legal-body code { padding: 2px 6px; border-radius: 6px; background: var(--lp-tint); font-size: .9em; color: var(--lp-ink); }
.lp-legal-table { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--lp-line); border-radius: 14px; }
.lp-legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.lp-legal-table th, .lp-legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lp-line); }
.lp-legal-table th { font-size: 13px; font-weight: 700; color: var(--lp-ink); background: var(--lp-tint); }
.lp-legal-table tr:last-child td { border-bottom: 0; }
.lp-legal-inline-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--app-primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Enlace «Configurar cookies» del footer: botón con aspecto de enlace */
.lp-foot-link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; transition: color var(--t-quick) var(--ease); }
.lp-foot-link-btn:hover { color: var(--lp-ink); }
.landing .lp-foot-legal a[aria-current] { color: var(--lp-ink); font-weight: 600; }

/* ── Aviso de cookies ───────────────────────────────────────
 * Tarjeta abajo a la izquierda, sin bloquear la página. Aceptar y rechazar con el mismo peso visual. */

.lp-consent {
    position: fixed; z-index: 60; left: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px));
    display: grid; gap: 16px; padding: 22px; border-radius: 20px; background: #fff; color: var(--lp-ink);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08), 0 24px 60px rgba(15, 23, 42, .22);
    opacity: 0; transform: translateY(16px);
    transition: opacity 220ms var(--ease-exit), transform 220ms var(--ease-exit);
}
.lp-consent[hidden] { display: none; }
.lp-consent.is-in { opacity: 1; transform: none; transition: opacity var(--t-base) var(--ease-enter), transform var(--t-base) var(--ease-enter); }
.lp-consent h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; font-weight: 720; }
.lp-consent h2 i { color: var(--app-primary); }
.lp-consent p { font-size: 14px; line-height: 1.55; color: var(--lp-muted); }
.landing .lp-consent p a { color: var(--app-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.lp-consent-prefs { display: grid; gap: 8px; }
.lp-consent-prefs[hidden] { display: none; }
.lp-consent-opt[hidden] { display: none; }
.lp-consent-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; background: var(--lp-tint); cursor: pointer; }
.lp-consent-opt strong { display: block; font-size: 14px; }
.lp-consent-opt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--lp-muted); }
.lp-consent-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lp-switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #cbd5e1; transition: background-color var(--t-quick) var(--ease); }
.lp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform var(--t-base) var(--ease); }
.lp-consent-opt input:checked + .lp-switch { background: var(--app-primary); }
.lp-consent-opt input:checked + .lp-switch::after { transform: translateX(16px); }
.lp-consent-opt input:disabled + .lp-switch { opacity: .55; }
.lp-consent-opt:has(input:disabled) { cursor: default; }
.lp-consent-opt input:focus-visible + .lp-switch { outline: 3px solid rgba(var(--app-primary-rgb), .45); outline-offset: 2px; }

.lp-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lp-consent-actions .lp-btn { font-family: inherit; }
.lp-consent-actions [hidden] { display: none; }
.lp-btn-line { background: #fff; color: var(--lp-ink); border-color: var(--lp-line); }
.lp-btn-line:hover { border-color: rgba(var(--app-primary-rgb), .45); }
.lp-consent-actions [data-consent-toggle] { margin-right: auto; padding-left: 4px; padding-right: 4px; border-color: transparent; color: var(--lp-muted); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
    .lp-legal { padding: 108px 0 72px; }
    .lp-consent { left: 16px; bottom: 16px; padding: 18px; }
    .lp-consent-actions .lp-btn:not([data-consent-toggle]) { flex: 1; justify-content: center; }
}

/* Footer en móvil: «Configurar cookies» en su propia línea, sin separador colgando al principio */
@media (max-width: 980px) {
    .lp-foot-legal li:last-child { flex-basis: 100%; margin-top: 4px; }
    .lp-foot-legal li:last-child::before { content: none; }
}
