/*
 * Landing pública de dmaBoard (estructura y movimiento portados de la de dmaPulse).
 *
 * Identidad de movimiento (perfil «Premium», sin rebote: datos fiables: precisión antes que espectáculo):
 * - Curva propia: --ease (0.2, 0, 0, 1) para casi todo; entradas con --ease-enter (0.05, 0.7, 0.1, 1),
 *   salidas con --ease-exit (0.3, 0, 1, 1) y bucles ambientales con --ease-ambient (seno).
 * - Tres duraciones: --t-quick 160ms (respuesta), --t-base 320ms (tarjetas, escenas), --t-slow 560ms (revelados).
 *   Las salidas duran ~35% menos que las entradas.
 * - Entrada común: sube 16px y aparece. Escalonado de 60ms con tope de 420ms por grupo; el hero, 90ms por pieza.
 * - Capas: principal (lo que se revela o cambia), secundaria (barras, chips e iconos que llegan después) y
 *   ambiental (ondas del escenario, orbes, cinta de fuentes).
 * - Lineal solo en barras de progreso y en la cinta continua.
 * Con prefers-reduced-motion todo queda en su estado final y los bucles se detienen.
 */

:root {
    /* Marca dmaBoard — Violeta: principal #8655E8, secundario #B79AF5 (mismos valores que app.css). */
    --brand: #8655E8;
    --brand-light: #B79AF5;
    --brand-dark: #6334C4;
    --brand-ink: #140F2B;
    --brand-rgb: 134, 85, 232;
    --brand-gradient: linear-gradient(135deg, #9D74F0, var(--brand) 55%, var(--brand-dark));
    /* Acento frío para la capa ambiental y los datos secundarios. */
    --data-cyan-rgb: 56, 189, 248;

    --lp-ink: #1A1433;
    --lp-text: #3a3650;
    --lp-muted: #6b6785;
    --lp-line: #e9e6f2;
    --lp-bg: #ffffff;
    --lp-tint: #f8f7fc;
    --lp-night: #0c0819;
    --lp-night-2: #17112f;
    --lp-on-dark: #f5f3fc;
    --lp-on-dark-muted: rgba(245, 243, 252, .72);
    --lp-ok: #16a34a;

    --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(26, 20, 51, .06), 0 4px 14px rgba(26, 20, 51, .05);
    --shadow-lg: 0 2px 6px rgba(26, 20, 51, .08), 0 24px 52px rgba(26, 20, 51, .18);
    --shadow-brand: 0 10px 26px rgba(var(--brand-rgb), .34);
}

*, *::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-text);
    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 sin especificidad (:where) para que las clases de cada bloque manden. */
:where(.landing) :where(h1, h2, h3) { color: var(--lp-ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
:where(.landing) :where(p) { margin: 0; }
:where(.landing) :where(a) { color: inherit; }
:where(.landing) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-skip {
    position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 10px;
    background: var(--brand-ink); color: #fff; text-decoration: none; font-weight: 600;
    transition: top var(--t-quick) var(--ease);
}
.lp-skip:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .7); outline-offset: 3px; border-radius: 8px; }

/* ── Marca ─────────────────────────────────────────────── */
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-logo-mark { position: relative; width: 30px; height: 30px; flex: 0 0 30px; }
.lp-logo-mark::before, .lp-logo-mark::after {
    content: ""; position: absolute; left: 3px; width: 21px; height: 9px;
    border-radius: 999px 2px 999px 2px; background: var(--mark-gradient, var(--brand-gradient));
    box-shadow: 0 0 20px rgba(var(--mark-rgb, var(--brand-rgb)), .35);
}
.lp-logo-mark::before { top: 6px; transform: rotate(-28deg); }
.lp-logo-mark::after { top: 15px; opacity: .66; transform: rotate(28deg); }
.lp-wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.lp-wordmark b { font-weight: inherit; }
.lp-wordmark-dma { color: #fff; transition: color var(--t-base) var(--ease); }
/* El isotipo y el nombre aceptan --mark-gradient, --mark-rgb y --mark-ink: el mismo logo sirve para cada producto dma. */
.lp-wordmark-product { color: var(--mark-ink, var(--brand)); }
.lp-nav.is-solid .lp-wordmark-dma, .lp-footer .lp-wordmark-dma { color: var(--brand-ink); }

/* ── Botones ───────────────────────────────────────────── */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform var(--t-quick) var(--ease), box-shadow var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.lp-btn i { transition: transform var(--t-quick) var(--ease); }
.lp-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.lp-btn:active { transform: scale(.97); }
.lp-btn-brand { background: var(--brand-gradient); color: #fff !important; box-shadow: var(--shadow-brand); }
.lp-btn-brand:hover { box-shadow: 0 14px 32px rgba(var(--brand-rgb), .42); transform: translateY(-1px); }
.lp-btn-glass { background: rgba(255, 255, 255, .08); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.lp-btn-glass:hover { background: rgba(255, 255, 255, .14); }
.lp-btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

/* ── Navegación ────────────────────────────────────────── */
.lp-nav {
    position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 0;
    transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), padding var(--t-base) var(--ease);
}
.lp-nav.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--lp-line); padding: 10px 0; }
.lp-nav-inner { display: flex; align-items: center; gap: 28px; }
.lp-nav-links { display: flex; gap: 26px; margin-left: 12px; }
.lp-nav-links a, .lp-nav-login {
    position: relative; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14.5px; font-weight: 600;
    transition: color 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(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease);
}
.lp-nav-links a:hover::after { transform: scaleX(1); }
.lp-nav-links a:hover, .lp-nav-login:hover { color: #fff; }
.lp-nav.is-solid .lp-nav-links a, .lp-nav.is-solid .lp-nav-login { color: var(--lp-text); }
.lp-nav.is-solid .lp-nav-links a:hover, .lp-nav.is-solid .lp-nav-login:hover { color: var(--lp-ink); }
.lp-nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

/* Desplegables de la cabecera: idiomas y «Solucions» (.lp-drop, landing.js setupDropdowns) */
.lp-drop { position: relative; }
.lp-lang-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 0; border-radius: 10px;
    background: transparent; color: rgba(255, 255, 255, .82); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.lp-lang-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lp-nav.is-solid .lp-lang-btn { color: var(--lp-text); }
.lp-nav.is-solid .lp-lang-btn:hover { background: var(--lp-tint); }
.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% + 8px); min-width: 170px; padding: 6px; border-radius: 14px;
    background: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    transition: opacity var(--t-quick) var(--ease-exit), transform var(--t-quick) var(--ease-exit), visibility 0s linear var(--t-quick);
}
.lp-drop.is-open .lp-lang-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--t-base) var(--ease-enter), transform var(--t-base) var(--ease-enter), visibility 0s;
}
.lp-lang-menu a {
    display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px;
    color: var(--lp-text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.lp-lang-menu a:hover, .lp-lang-menu a:focus-visible { background: var(--lp-tint); color: var(--lp-ink); }
.lp-lang-menu a[aria-current] { color: var(--lp-ink); font-weight: 700; }
.lp-lang-menu .fa-check { color: var(--brand-dark); font-size: 12px; }

/* Menú «Solucions»: icono, nombre y resumen de cada solución sectorial */
.lp-sol [data-current] { box-shadow: inset 0 -2px 0 var(--brand-light); border-radius: 10px 10px 4px 4px; }
.lp-nav.is-solid .lp-sol [data-current] { box-shadow: inset 0 -2px 0 var(--brand); }
.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(--brand-dark); }
.lp-sol-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--brand-dark); background: rgba(var(--brand-rgb), .12); }
.lp-sol-menu .lp-sol-ico i { font-size: 14px; }

/* ── Hero ──────────────────────────────────────────────── */
.lp-hero {
    position: relative; overflow: hidden; padding: 138px 0 0; color: var(--lp-on-dark);
    background: radial-gradient(120% 90% at 85% 0%, #2b1f57 0%, var(--lp-night-2) 38%, var(--lp-night) 100%);
}
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
    color: var(--brand-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.lp-eyebrow-dark { color: var(--brand-light); }
.lp-hero .lp-eyebrow { padding: 7px 14px; border-radius: 999px; background: rgba(var(--brand-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .25); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.live-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand);
    animation: lp-ping 2.4s var(--ease-ambient) infinite;
}
.lp-hero-title { color: #fff !important; font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.lp-hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.lp-hero-title .line > span { display: inline-block; }
.lp-hero-title em, .lp-cta h2 em {
    font-style: normal; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Tendencia del hero: la línea se dibuja (1,1s) y el punto final aparece al terminar (secundaria). */
.lp-spark { display: block; width: 220px; height: 28px; margin: 18px 0 8px; overflow: visible; }
.lp-spark path {
    fill: none; stroke: var(--brand-light); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .7));
}
.lp-spark circle { fill: #fff; stroke: var(--brand-light); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
html.is-ready .lp-spark path { animation: lp-draw 1.1s var(--ease) .55s forwards; }
html.is-ready .lp-spark circle { animation: lp-dot 420ms var(--ease-enter) 1.6s forwards, lp-dot-glow 2.8s var(--ease-ambient) 2.1s infinite; }
.lp-lead { max-width: 540px; color: var(--lp-on-dark-muted); font-size: 18.5px; line-height: 1.6; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--lp-on-dark-muted); font-size: 14px; }
.lp-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero-points i { color: var(--brand); }

/* Entrada del hero: título por líneas (sube desde la máscara), el resto sube 16px. 90ms entre piezas. */
html.js [data-hero] {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--t-slow) var(--ease-enter), transform var(--t-slow) var(--ease-enter);
}
html.js .lp-hero-title [data-hero] { transform: translateY(105%); transition-duration: 720ms; }
html.js [data-hero="6"] { transform: translateY(24px) scale(.98); transition-duration: 760ms; }
html.is-ready [data-hero], html.is-ready .lp-hero-title [data-hero] { opacity: 1; transform: none; }
[data-hero="1"] { transition-delay: 90ms !important; }
[data-hero="2"] { transition-delay: 180ms !important; }
[data-hero="3"] { transition-delay: 270ms !important; }
[data-hero="4"] { transition-delay: 360ms !important; }
[data-hero="5"] { transition-delay: 450ms !important; }
[data-hero="6"] { transition-delay: 220ms !important; }

/* Capa ambiental */
/* Con capas animadas y con blur, overflow: hidden no recorta en Safari/iOS: clip-path y contain: paint lo fuerzan. */
.lp-ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; clip-path: inset(0); contain: paint; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: lp-float 16s var(--ease-ambient) infinite alternate; }
.orb-a { width: 460px; height: 460px; left: -140px; top: -120px; background: rgba(var(--brand-rgb), .28); }
.orb-b { width: 520px; height: 520px; right: -160px; bottom: -220px; background: rgba(var(--data-cyan-rgb), .22); animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; right: 10%; top: -160px; background: rgba(var(--brand-rgb), .2); animation-delay: -10s; }
.lp-grid {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 80%);
}

/* ── Escenario del hero ────────────────────────────────── */
.lp-stage { position: relative; }
.lp-stage-rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; }
.lp-stage-rings i {
    position: absolute; left: -330px; top: -330px; width: 660px; height: 660px; border-radius: 50%;
    border: 1.5px solid rgba(var(--brand-rgb), .35); opacity: 0;
    animation: lp-ring 6s var(--ease-ambient) infinite;
}
.lp-stage-rings i:nth-child(2) { animation-delay: 2s; }
.lp-stage-rings i:nth-child(3) { animation-delay: 4s; }
.lp-stage.is-paused .lp-stage-rings i { animation-play-state: paused; }

.lp-window {
    position: relative; z-index: 1; border-radius: 22px; background: #fff; color: var(--lp-text);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px rgba(8, 4, 20, .6);
    overflow: hidden;
}
.lp-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f4f2f9; border-bottom: 1px solid var(--lp-line); }
.lp-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dcd8e6; }
.lp-window-bar span:first-child { background: #f87171; }
.lp-window-bar span:nth-child(2) { background: #fbbf24; }
.lp-window-bar span:nth-child(3) { background: #34d399; }
.lp-window-bar em { margin-left: 12px; padding: 3px 12px; border-radius: 8px; background: #fff; color: var(--lp-muted); font-size: 12px; font-style: normal; }

.lp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--lp-line); }
.lp-tab {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 6px;
    border: 0; background: transparent; color: var(--lp-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: color var(--t-base) var(--ease), background-color var(--t-quick) var(--ease);
}
.lp-tab:hover { background: var(--lp-tint); }
.lp-tab i { font-size: 13px; transition: transform var(--t-base) var(--ease); }
.lp-tab[aria-selected="true"] { color: var(--lp-ink); }
.lp-tab[aria-selected="true"] i { color: var(--brand-dark); transform: scale(1.12); }
.lp-tab-bar { position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--lp-line); overflow: hidden; }
.lp-tab-bar::after { content: ""; position: absolute; inset: 0; background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; }
.lp-tab.is-done .lp-tab-bar::after { transform: scaleX(1); }
/* Progreso de la escena activa: lineal, es un tiempo. */
.lp-tab[aria-selected="true"] .lp-tab-bar::after { animation: lp-progress var(--scene-ms, 4200ms) linear forwards; }
.lp-stage.is-paused .lp-tab-bar::after, .lp-stage.is-manual .lp-tab-bar::after { animation-play-state: paused; }
.lp-stage.is-manual .lp-tab[aria-selected="true"] .lp-tab-bar::after { animation: none; transform: scaleX(1); }

.lp-scenes { position: relative; height: 352px; }
.lp-scene {
    position: absolute; inset: 0; padding: 22px 24px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 200ms var(--ease-exit), transform 200ms var(--ease-exit), visibility 0s linear 200ms;
}
.lp-scene.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--t-base) var(--ease-enter) 120ms, transform var(--t-base) var(--ease-enter) 120ms, visibility 0s;
}
.lp-scene-title { margin-bottom: 14px !important; color: var(--lp-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lp-scene-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; color: var(--lp-muted); font-size: 12.5px; }
.lp-scene-foot i { color: var(--brand-dark); }

/* Pasos de cada escena: entran en secuencia (los marca el JS). */
html.js .lp-scene [data-step] {
    opacity: 0; transform: translateY(10px);
    transition: opacity var(--t-base) var(--ease-enter), transform var(--t-base) var(--ease-enter);
}
html.js .lp-scene [data-step].is-in { opacity: 1; transform: none; }

/* 1 · Fuentes */
.lp-files { display: grid; gap: 10px; }
.lp-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; }
.lp-file-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; font-size: 16px; }
.lp-file-icon.is-red { background: #fee2e2; color: #dc2626; }
.lp-file-icon.is-blue { background: #dbeafe; color: #2563eb; }
.lp-file-icon.is-ink { background: #e2e8f0; color: var(--brand-ink); }
.lp-file-body { flex: 1; min-width: 0; }
.lp-file-body strong { display: block; color: var(--lp-ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-progress { display: block; height: 5px; margin-top: 7px; border-radius: 5px; background: #efedf6; overflow: hidden; }
.lp-progress i { display: block; height: 100%; background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.lp-file.is-in .lp-progress i { transform: scaleX(1); }
.lp-file-state {
    display: inline-flex; align-items: center; gap: 5px; color: var(--lp-ok); font-size: 12px; font-weight: 700;
    opacity: 0; transform: scale(.8); transition: opacity var(--t-base) var(--ease) 1s, transform var(--t-base) var(--ease-enter) 1s;
}
.lp-file.is-in .lp-file-state { opacity: 1; transform: none; }

/* 1 · Conectar: iconos de cada tipo de fuente */
.lp-file-icon.is-brand { background: rgba(var(--brand-rgb), .14); color: var(--brand-dark); }
.lp-file-icon.is-green { background: #dcfce7; color: #15803d; }
.lp-file-icon.is-amber { background: #fef3c7; color: #b45309; }

/* 2 · Preguntar: la pregunta se escribe, la respuesta llega con sus barras */
.lp-ask { display: flex; align-items: flex-start; gap: 10px; justify-content: flex-end; }
.lp-ask-avatar { order: 2; display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #efedf6; color: var(--lp-muted); font-size: 12px; }
.lp-ask-text {
    min-height: 44px; max-width: 84%; padding: 11px 14px; border-radius: 16px 16px 4px 16px;
    background: var(--brand-gradient); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45;
}
.lp-ask-text:empty::before { content: "\00a0"; }
.lp-ask-text.is-typing::after {
    content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px;
    background: #fff; animation: lp-blink .9s steps(2) infinite;
}
.lp-answer { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--lp-line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.lp-answer header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lp-answer header strong { color: var(--lp-ink); font-size: 13.5px; line-height: 1.35; }
.lp-kicon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; background: rgba(var(--brand-rgb), .14); color: var(--brand-dark); font-size: 13px; }
.lp-hbars { display: grid; gap: 7px; }
.lp-hbars li { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--lp-text); }
.lp-hbars b { display: block; height: 8px; border-radius: 8px; background: #efedf6; overflow: hidden; }
.lp-hbars b i { display: block; height: 100%; border-radius: 8px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.lp-hbars li:not(:first-child) b i { background: rgba(var(--brand-rgb), .35); }
.lp-hbars li.is-in b i { transform: scaleX(var(--k)); }
/* «Consulta validada» y el check verde (también en el aviso de visualizaciones y en «Gracias» de la demo). Portado de
   dmaPulse: el trazo del check se dibuja (lp-check) cuando su bloque aparece. */
.lp-verified {
    display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
    background: #ecfdf3; color: #14532d;
}
.lp-verified strong { display: block; font-size: 13.5px; }
.lp-verified small { color: #3f7a55; font-size: 12px; }
.lp-badge-ok { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--lp-ok); color: #fff; }
.lp-badge-ok svg { width: 18px; height: 18px; }
.lp-badge-ok path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lp-verified.is-in .lp-badge-ok path, .lp-demo-done.is-on .lp-badge-ok path { animation: lp-check 420ms var(--ease) 140ms both; }
.lp-verified.is-in .lp-badge-ok { animation: lp-pop 360ms var(--ease-enter) both; }
.lp-scene .lp-verified { margin-top: 12px; padding: 10px 14px; }

/* 3 · Dashboard: los widgets entran en cascada y cada uno «se rellena» (cifras, anillo, línea, columnas) */
.lp-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-widget { position: relative; min-width: 0; padding: 12px 14px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.lp-widget small { display: block; color: var(--lp-muted); font-size: 11.5px; font-weight: 600; }
.lp-kpi strong { display: block; margin-top: 4px; color: var(--lp-ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-kpi em { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11.5px; font-style: normal; font-weight: 700; }
.lp-kpi em.is-up { color: var(--lp-ok); }
.lp-kpi em i { font-size: 9px; }
.lp-donut { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.lp-donut .lp-ring { width: 56px; height: 56px; flex-basis: 56px; }
.lp-donut .lp-ring strong { font-size: 13px; }
.lp-line { grid-column: span 2; }
.lp-line svg { display: block; width: 100%; height: 96px; margin-top: 8px; overflow: visible; }
.lp-line .stroke { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-line .area { fill: rgba(var(--brand-rgb), .12); opacity: 0; transition: opacity var(--t-slow) var(--ease) 500ms; }
.lp-line.is-in .stroke { animation: lp-draw 1s var(--ease) 150ms forwards; }
.lp-line.is-in .area { opacity: 1; }
.lp-cols-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 8px; }
.lp-cols-bars i {
    flex: 1; height: 100%; border-radius: 5px 5px 2px 2px; background: rgba(var(--brand-rgb), .3);
    transform: scaleY(0); transform-origin: bottom; transition: transform 640ms var(--ease);
}
.lp-cols-bars i:nth-child(4) { background: var(--brand-gradient); }
.lp-cols-bars i:nth-child(2) { transition-delay: 40ms; }
.lp-cols-bars i:nth-child(3) { transition-delay: 80ms; }
.lp-cols-bars i:nth-child(4) { transition-delay: 120ms; }
.lp-cols-bars i:nth-child(5) { transition-delay: 160ms; }
.lp-cols-bars i:nth-child(6) { transition-delay: 200ms; }
.lp-cols.is-in .lp-cols-bars i { transform: scaleY(var(--k)); }

/* 4 · Predecir */
.lp-ocard { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--lp-line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.lp-ocard-body { min-width: 0; }
.lp-ocard-body strong { display: block; margin-top: 6px; color: var(--lp-ink); font-size: 14.5px; line-height: 1.3; }
.lp-ocard-body small { display: block; margin-top: 3px; color: var(--lp-muted); font-size: 12.5px; line-height: 1.4; }
.lp-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(var(--brand-rgb), .16); color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.lp-ring { position: relative; width: 70px; height: 70px; flex: 0 0 70px; --value: 0; }
.lp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke-width: 6; }
.lp-ring .track { stroke: #efedf6; }
.lp-ring .fill {
    stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 169.65;
    stroke-dashoffset: calc(169.65 * (1 - var(--value) / 100));
    transition: stroke-dashoffset 1.2s var(--ease);
}
.lp-ring strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lp-ink); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lp-criteria { display: grid; gap: 9px; margin-top: 14px; }
.lp-criteria li { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 12px; font-size: 12.5px; color: var(--lp-text); }
.lp-criteria b, .lp-bars b { display: block; height: 7px; border-radius: 7px; background: #efedf6; overflow: hidden; }
.lp-criteria b i, .lp-bars b i {
    display: block; height: 100%; border-radius: 7px; background: var(--brand-gradient);
    transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease);
}
[data-level="strong"] { --k: 1; }
[data-level="partial"] { --k: .6; }
[data-level="unknown"] { --k: 0; }
.lp-criteria li.is-in b i, .lp-match.is-in .lp-bars b i { transform: scaleX(var(--k)); }

/* ── Cinta de fuentes ──────────────────────────────────── */
.lp-marquee { position: relative; z-index: 1; margin-top: 84px; padding: 22px 0 34px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lp-marquee-title { margin-bottom: 16px !important; text-align: center; color: var(--lp-on-dark-muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lp-marquee-track {
    display: flex; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lp-marquee-group { display: flex; flex-shrink: 0; gap: 14px; padding-right: 14px; animation: lp-marquee 42s linear infinite; }
.lp-marquee-track:hover .lp-marquee-group { animation-play-state: paused; }
.lp-marquee-group li {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    color: var(--lp-on-dark); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.lp-marquee-group i { color: var(--brand); }

/* ── Secciones ─────────────────────────────────────────── */
.lp-section { position: relative; padding: 110px 0; }
.lp-section-tint { background: var(--lp-tint); }
.lp-section-dark { overflow: hidden; background: linear-gradient(160deg, var(--lp-night-2), var(--lp-night)); color: var(--lp-on-dark); }
.lp-section-dark h2 { color: #fff; }
.lp-section-dark .lp-sub { color: var(--lp-on-dark-muted); }
.lp-section-dark .lp-wrap { position: relative; z-index: 1; }
.lp-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.landing h2, .lp-cta h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.lp-sub { margin-top: 16px !important; color: var(--lp-muted); font-size: 17.5px; line-height: 1.65; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-split-reverse > :first-child { order: 2; }

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

/* Cuatro preguntas: línea que se llena con el scroll */
.lp-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-timeline-rail { position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 3px; border-radius: 3px; background: var(--lp-line); }
.lp-timeline-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--brand-gradient); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.lp-step { position: relative; text-align: center; }
.lp-step-dot {
    position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px;
    border-radius: 18px; background: #fff; color: var(--lp-muted); font-size: 20px; box-shadow: 0 0 0 1px var(--lp-line), var(--shadow-sm);
    transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.lp-step.is-reached .lp-step-dot { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-brand); transform: translateY(-2px); }
.lp-step-num { display: block; color: var(--brand-dark); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; }
.lp-step h3 { margin: 6px 0 10px; font-size: 20px; }
.lp-step p { color: var(--lp-muted); font-size: 15px; }

/* Listas de comprobación */
.lp-checks { display: grid; gap: 12px; margin-top: 26px !important; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.lp-checks i {
    display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; border-radius: 50%;
    background: rgba(var(--brand-rgb), .18); color: var(--brand-dark); font-size: 11px;
}
.lp-checks-dark li { color: var(--lp-on-dark); }
.lp-checks-dark i { background: rgba(var(--brand-rgb), .16); color: var(--brand-light); }

/* IA: conversación que se monta al entrar en pantalla (pregunta → respuesta → propuesta, 140ms entre piezas) */
.lp-chat { width: 100%; max-width: 520px; margin: 0 auto; padding: 22px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.lp-chat-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--lp-line); }
.lp-chat-bar strong { color: var(--lp-ink); font-size: 14.5px; }
.lp-chat-msg {
    opacity: 0; transform: translateY(12px);
    transition: opacity var(--t-slow) var(--ease-enter), transform var(--t-slow) var(--ease-enter);
}
.lp-chat.is-in .lp-chat-msg { opacity: 1; transform: none; }
.lp-chat.is-in .lp-chat-bot { transition-delay: 380ms; }
.lp-chat-user {
    width: fit-content; max-width: 86%; margin-left: auto; padding: 12px 16px; border-radius: 18px 18px 4px 18px;
    background: var(--brand-gradient); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.45;
}
.lp-chat-bot { margin-top: 14px; padding: 16px; border-radius: 18px 18px 18px 4px; background: var(--lp-tint); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-chat-bot > p { color: var(--lp-text); font-size: 14px; line-height: 1.5; }
.lp-proposal { display: grid; gap: 8px; margin-top: 12px !important; }
.lp-proposal li {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff;
    box-shadow: 0 0 0 1px var(--lp-line); color: var(--lp-ink); font-size: 13.5px; font-weight: 600;
    opacity: 0; transform: translateX(-10px);
    transition: opacity var(--t-base) var(--ease-enter), transform var(--t-base) var(--ease-enter);
}
.lp-proposal li i { width: 18px; color: var(--brand); text-align: center; }
.lp-proposal li em { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 11px; font-style: normal; font-weight: 700; }
.lp-chat.is-in .lp-proposal li { opacity: 1; transform: none; }
.lp-chat.is-in .lp-proposal li:nth-child(1) { transition-delay: 760ms; }
.lp-chat.is-in .lp-proposal li:nth-child(2) { transition-delay: 820ms; }
.lp-chat.is-in .lp-proposal li:nth-child(3) { transition-delay: 880ms; }
.lp-chat.is-in .lp-proposal li:nth-child(4) { transition-delay: 940ms; }
.lp-chat-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.lp-chat-actions b { padding: 8px 14px; border-radius: 10px; background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-brand); }
.lp-chat-actions span { color: var(--brand-dark); }
.lp-chat.is-applied .lp-chat-actions b { animation: lp-press 360ms var(--ease) both; }

/* Formatos */
.lp-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-card {
    padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--lp-line);
    transition: opacity var(--t-slow) var(--ease-enter) var(--delay, 0ms), transform var(--t-slow) var(--ease-enter) var(--delay, 0ms), box-shadow var(--t-base) var(--ease);
}
.lp-card.is-settled { transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.lp-card.is-settled:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .45), var(--shadow-lg); }
.lp-card-icon {
    display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px;
    background: rgba(var(--brand-rgb), .14); color: var(--brand-dark); font-size: 19px;
    transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.lp-card.is-settled:hover .lp-card-icon { transform: rotate(-6deg) scale(1.06); background: var(--brand-ink); color: var(--brand); }
.lp-card h3 { margin-bottom: 8px; font-size: 17px; }
.lp-card p { color: var(--lp-muted); font-size: 14.5px; line-height: 1.55; }
.lp-callout {
    display: flex; align-items: center; gap: 16px; max-width: 820px; margin: 40px auto 0; padding: 18px 22px;
    border-radius: 16px; background: #ecfdf3; color: #14532d; font-size: 15.5px;
}
.lp-callout strong { color: #14532d; }

/* Encaje de oportunidades */
.lp-match { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.lp-match-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.lp-match-head > div:last-child strong { display: block; color: #fff; font-size: 18px; }
.lp-match-head > div:last-child small { color: var(--lp-on-dark-muted); font-size: 13.5px; }
.lp-ring-lg { width: 92px; height: 92px; flex-basis: 92px; }
.lp-ring-lg strong { color: #fff; font-size: 22px; }
.lp-match .lp-ring .track { stroke: rgba(255, 255, 255, .12); }
.lp-bars { display: grid; gap: 14px; }
.lp-bars li { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4px 16px; color: var(--lp-on-dark); font-size: 14px; }
.lp-bars-title { margin-bottom: 14px !important; color: var(--lp-on-dark-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lp-bars b { background: rgba(255, 255, 255, .1); }
.lp-bars li:nth-child(2) b i { transition-delay: 60ms; }
.lp-bars li:nth-child(3) b i { transition-delay: 120ms; }
.lp-bars li:nth-child(4) b i { transition-delay: 180ms; }
.lp-bars li:nth-child(5) b i { transition-delay: 240ms; }
.lp-bars li:nth-child(6) b i { transition-delay: 300ms; }
.lp-bars li:nth-child(7) b i { transition-delay: 360ms; }

/* Confianza */
.lp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-trust-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--lp-tint); }
.lp-trust-item > i {
    display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
    background: var(--brand-ink); color: var(--brand); font-size: 17px;
}
.lp-trust-item h3 { margin-bottom: 6px; font-size: 16.5px; }
.lp-trust-item p { color: var(--lp-muted); font-size: 14.5px; line-height: 1.55; }

/* ── Pedir una demo ────────────────────────────────────── */
.lp-cta { position: relative; overflow: hidden; padding: 110px 0; background: radial-gradient(110% 90% at 0% 100%, #2b1f57, var(--lp-night-2) 45%, var(--lp-night)); color: var(--lp-on-dark); }
.lp-demo { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.lp-cta h2 { color: #fff; }
.lp-demo-copy > p { margin-top: 18px !important; color: var(--lp-on-dark-muted); font-size: 17px; }
.lp-demo-login { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--brand-light) !important; font-weight: 600; text-decoration: none; }
.lp-demo-login i { transition: transform var(--t-quick) var(--ease); }
.lp-demo-login:hover i { transform: translateX(3px); }
.lp-demo-card { position: relative; padding: 30px; border-radius: 24px; background: #fff; color: var(--lp-text); box-shadow: 0 40px 90px rgba(0, 0, 0, .4); }
.lp-demo-form { transition: opacity 220ms var(--ease-exit), transform 220ms var(--ease-exit); }
.lp-demo-form.is-leaving { opacity: 0; transform: translateY(-8px); }
.lp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-field { display: grid; gap: 7px; color: var(--lp-ink); font-size: 13.5px; font-weight: 600; min-width: 0; }
.lp-field small { color: var(--lp-muted); font-weight: 500; }
.lp-field-full { margin-top: 16px; }
fieldset.lp-field { margin-inline: 0; padding: 0; border: 0; }
fieldset.lp-field legend { padding: 0; margin-bottom: 7px; }
.lp-field input, .lp-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #dad6e6; border-radius: 12px; background: #fff;
    color: var(--lp-ink); font: inherit; font-size: 15px; font-weight: 400;
    transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.lp-field textarea { min-height: 96px; resize: vertical; }
.lp-field input:focus, .lp-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .2); }
.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-block; padding: 8px 14px; border-radius: 999px; background: var(--lp-tint); box-shadow: inset 0 0 0 1px #dad6e6;
    color: var(--lp-text); font-size: 13.5px; font-weight: 500;
    transition: background-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.lp-pick label:active span { transform: scale(.96); }
.lp-pick input:checked + span { background: rgba(var(--brand-rgb), .16); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--lp-ink); font-weight: 600; }
.lp-pick input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .6); outline-offset: 2px; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-error {
    display: none; margin-top: 16px; padding: 11px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 500;
}
.lp-form-error.is-on { display: block; animation: lp-rise var(--t-base) var(--ease-enter); }
.lp-demo-submit { width: 100%; margin-top: 20px; }
.lp-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: lp-spin .7s linear infinite; }
.lp-demo-submit.is-loading .lp-spin { display: inline-block; }
.lp-demo-submit.is-loading i { display: none; }
/* Casilla de privacidad (obligatoria) antes de enviar. */
.lp-field.lp-privacy-check { grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; color: var(--lp-text); font-size: 13px; font-weight: 500; line-height: 1.5; 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(--brand); 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(--brand-rgb), .45); outline-offset: 2px; }
.lp-privacy-check a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lp-field.lp-privacy-check.is-invalid input { outline: 2px solid #dc2626; outline-offset: 2px; box-shadow: none; }
.lp-shake { animation: lp-shake 360ms var(--ease) both; }
.lp-demo-done { display: none; padding: 40px 10px; text-align: center; }
.lp-demo-done.is-on { display: block; animation: lp-rise var(--t-slow) var(--ease-enter) both; }
.lp-badge-lg { width: 64px; height: 64px; margin: 0 auto 18px; }
.lp-badge-lg svg { width: 34px; height: 34px; }
.lp-demo-done.is-on .lp-badge-lg { animation: lp-pop 420ms var(--ease-enter) both; }
.lp-demo-done h3 { font-size: 24px; }
.lp-demo-done p { margin-top: 10px !important; color: var(--lp-muted); }

/* ── Pie ───────────────────────────────────────────────── */
.lp-footer { padding: 72px 0 32px; background: var(--lp-tint); color: var(--lp-muted); font-size: 15px; }
.lp-footer h2 { font-size: 16px; font-weight: 750; color: var(--lp-ink); letter-spacing: -.01em; }
.lp-footer a { text-decoration: none; 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-brand-lg .lp-wordmark { font-size: 35px; }
.lp-brand-lg .lp-logo-mark { transform: scale(1.4); transform-origin: left center; margin-right: 12px; }
.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: título y lista en la misma fila; en móvil es el acceso a ellas (la cabecera no tiene sitio). */
.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, .landing .lp-foot-sol-list a[aria-current] { color: var(--brand-dark); }
.lp-foot-sol-list i { color: var(--brand); font-size: 14px; }

/* Ecosistema DMA: título y los otros cuatro productos en una línea, cada uno con su color. */
.lp-foot-eco { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 40px; padding: 28px 0; }
.lp-foot-suite { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.lp-foot-suite .lp-wordmark { font-size: 19px; }
.lp-foot-suite .lp-brand:hover { opacity: .75; }
.lp-suite-places  { --mark-gradient: linear-gradient(135deg, #2f7bff, #6aa8ff); --mark-rgb: 47, 123, 255;  --mark-ink: #1d64d8; }
.lp-suite-message { --mark-gradient: linear-gradient(135deg, #10b98f, #5ee0bf); --mark-rgb: 16, 185, 143;  --mark-ink: #0b8a6b; }
.lp-suite-pulse   { --mark-gradient: linear-gradient(135deg, #FFD65A, #F4B400 55%, #D99400); --mark-rgb: 244, 180, 0;  --mark-ink: #D99400; }
.lp-suite-board   { --mark-gradient: var(--brand-gradient); --mark-rgb: var(--brand-rgb); --mark-ink: var(--brand-dark); }
.lp-suite-agent   { --mark-gradient: linear-gradient(135deg, #E83E65, #F18BA3); --mark-rgb: 232, 62, 101;  --mark-ink: #E83E65; }

.lp-btn-ink { background: var(--brand-ink); color: #fff !important; }
.lp-btn-ink:hover { background: #2b1f57; }
.lp-btn-ink:hover i { transform: translate(2px, -2px); }
.lp-btn-line { background: #fff; color: var(--lp-ink); box-shadow: inset 0 0 0 1.5px var(--lp-line); }
.lp-btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(var(--brand-rgb), .7); }

.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-legal a[aria-current] { color: var(--lp-ink); font-weight: 600; }
.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); }
.lp-foot-langs { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.lp-foot-langs a + a::before { content: "|"; margin: 0 12px; color: #d3cfe0; }
.lp-foot-langs a[aria-current] { color: var(--brand-dark); font-weight: 700; }

/* ── 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(--brand-dark); text-decoration: none; }
.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 !important; 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); text-decoration: none;
    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(--brand-rgb), .6); }
.lp-legal-tabs a[aria-current] { color: #fff; background: var(--brand-ink); box-shadow: none; }
.lp-legal-body { color: var(--lp-text); font-size: 16px; line-height: 1.7; }
.lp-legal-body h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 720; }
.lp-legal-body h2:first-child { margin-top: 0; }
.lp-legal-body h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; }
.lp-legal-body p, .lp-legal-body ul { margin: 0 0 14px; }
.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(--brand-dark); }
.lp-legal-body strong { color: var(--lp-ink); }
.lp-legal-body a { color: var(--brand-dark); 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(--brand-dark); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ── Aviso de cookies: abajo a la izquierda, sin bloquear ── */
.lp-consent {
    position: fixed; left: 24px; bottom: 24px; z-index: 60; display: grid; gap: 16px;
    width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: 20px; background: #fff; color: var(--lp-text);
    box-shadow: var(--shadow-lg); border: 1px solid var(--lp-line);
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--t-quick) var(--ease-exit), transform var(--t-quick) 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(--brand-dark); }
.lp-consent p { font-size: 14px; line-height: 1.55; color: var(--lp-muted); }
.lp-consent p a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lp-consent-prefs { display: grid; gap: 8px; }
.lp-consent-prefs[hidden], .lp-consent-opt[hidden], .lp-consent-actions [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; color: var(--lp-ink); 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: #d3cfe0; 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(26, 20, 51, .25); transition: transform var(--t-base) var(--ease); }
.lp-consent-opt input:checked + .lp-switch { background: var(--brand-ink); }
.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(--brand-rgb), .6); outline-offset: 2px; }
.lp-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lp-consent-actions [data-consent-toggle] { margin-right: auto; padding-left: 4px; padding-right: 4px; box-shadow: none; color: var(--lp-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ── Animaciones ───────────────────────────────────────── */
@keyframes lp-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes lp-ring { 0% { transform: scale(.55); opacity: 0; } 15% { opacity: .55; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes lp-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(40px, 30px, 0); } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-marquee { to { transform: translateX(-100%); } }
@keyframes lp-blink { 50% { opacity: 0; } }
@keyframes lp-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lp-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lp-dot { to { opacity: 1; transform: scale(1); } }
@keyframes lp-dot-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(var(--brand-rgb), 0)); } 50% { filter: drop-shadow(0 0 6px rgba(183, 154, 245, .9)); } }
@keyframes lp-press { 0% { transform: none; } 40% { transform: scale(.95); } 100% { transform: none; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }

/* ── Responsive ────────────────────────────────────────── */
/* Con el menú «Solucions» la cabecera necesita más sitio: los anclajes de secciones son lo primero que se oculta. */
@media (max-width: 1240px) {
    .lp-nav-links:has(~ .lp-nav-actions .lp-sol) { display: none; }
}

@media (max-width: 1080px) {
    .lp-nav-links { display: none; }
    .lp-hero-inner, .lp-split, .lp-demo { grid-template-columns: 1fr; gap: 48px; }
    .lp-split-reverse > :first-child { order: 0; }
    .lp-stage { max-width: 620px; width: 100%; margin: 0 auto; }
    .lp-formats { grid-template-columns: repeat(2, 1fr); }
    .lp-trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .lp-wrap { padding: 0 16px; }
    .lp-hero { padding-top: 112px; }
    .lp-lead { font-size: 17px; }
    .lp-section, .lp-cta { padding: 80px 0; }
    .lp-head { margin-bottom: 40px; }
    .lp-tab span { display: none; }
    .lp-tab i { font-size: 15px; }
    .lp-scenes { height: 372px; }
    .lp-scene { padding: 18px 16px; }
    .lp-stage-rings i { left: -220px; top: -220px; width: 440px; height: 440px; }
    .lp-timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 4px; }
    .lp-timeline-rail { left: 31px; right: auto; top: 28px; bottom: 28px; width: 3px; height: auto; }
    .lp-timeline-fill { transform: scaleY(var(--progress, 0)); transform-origin: top; }
    .lp-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; }
    .lp-step-dot { grid-row: span 3; margin: 0; }
    .lp-step h3 { margin-top: 2px; }
    .lp-formats, .lp-trust, .lp-fields { grid-template-columns: 1fr; }
    .lp-bars li, .lp-criteria li { grid-template-columns: 1fr; }
    .lp-dash { grid-template-columns: 1fr 1fr; }
    .lp-donut { display: none; }
    .lp-line { grid-column: span 2; }
    .lp-cols { display: none; }
    .lp-kpi strong { font-size: 19px; }
    .lp-chat { padding: 18px; }
    .lp-demo-card { padding: 22px 18px; }
}

@media (max-width: 980px) {
    .lp-foot-bottom { grid-template-columns: 1fr; justify-items: start; }
    .lp-foot-legal, .lp-foot-langs { justify-content: flex-start; }
    /* «Configura les galetes» en su propia línea, sin «·» delante. */
    .lp-foot-settings { flex-basis: 100%; margin-top: 6px; }
    .lp-foot-legal li.lp-foot-settings::before { content: none; }
}

/* Cabecera en móvil: por debajo de 620px el idioma se cambia desde el footer; por debajo de 560px solo cabe un botón. */
@media (max-width: 620px) {
    .lp-nav .lp-lang, .lp-nav .lp-sol { display: none; }
}
@media (max-width: 560px) {
    /* Mientras el CTA del hero se ve, «Acceder» (contorno) ocupa el sitio del botón de demo; al pasarlo, vuelve la 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: 12px; font-size: 14px;
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
    }
    .lp-nav.is-solid.is-hero-cta .lp-nav-login { box-shadow: inset 0 0 0 1.5px var(--lp-line); }
    .lp-nav.is-hero-cta .lp-btn-sm { display: none; }
    .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; }
    .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; }
}
@media (max-width: 460px) {
    .lp-nav .lp-wordmark { font-size: 18px; }
}

/* ── Movimiento reducido: estado final, sin bucles ─────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
    .lp-stage-rings, .orb, .live-dot::after { display: none; }
    .lp-spark path, .lp-line .stroke { stroke-dashoffset: 0; }
    .lp-spark circle { opacity: 1; transform: none; }
    .lp-marquee-group { animation: none; }
    .lp-marquee-track { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
    .lp-marquee-group[aria-hidden] { display: none; }
    .lp-marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
}

/* Por debajo de 460px la etiqueta del hero cabe en una línea con menos espaciado. */
@media (max-width: 460px) {
    .lp-hero .lp-eyebrow { font-size: 11px; letter-spacing: .1em; }
}
