/* Portada (/): rediseño 2026-09 con los tokens de la base común (principio de style.css).
   Todo cuelga de body.lp y de clases lp-*, así no depende de los estilos generales de style.css (salvo los tokens y el pie .foot). */

/* Letra de respaldo con las métricas de Inter: mientras llega Inter (font-display: swap) el texto ocupa lo mismo y no salta.
   size-adjust = anchura media de Inter frente a Arial; ascent/descent = métricas verticales de Inter / size-adjust. */
@font-face { font-family: "Inter LP Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Roboto"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.lp { --lp-gutter: 24px; margin: 0; background: #fff; color: var(--slate-900); font-family: "Inter", "Inter LP Fallback", var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lp :focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; box-shadow: none; }
.lp-main { display: block; padding: 0; min-height: 0; }
.lp-main :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.lp-main :where(ul, ol) { padding: 0; list-style: none; }
.lp-main :where(h1, h2, h3) { font-weight: 600; letter-spacing: -0.01em; color: var(--slate-900); }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--lp-gutter); }
@media (max-width: 599.98px) { .lp { --lp-gutter: 16px; } }
.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lp-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-skip { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--slate-900); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.lp-skip:focus { transform: none; color: #fff; }
.lp-link { color: var(--brand-700); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-link:hover { color: var(--brand-800); }

/* ---------- Botones ---------- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out; }
.lp-btn .lp-i { width: 18px; height: 18px; stroke-width: 2; }
.lp-btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-xs), inset 0 1px 0 rgb(255 255 255 / .12); }
.lp-btn-primary:hover { background: var(--brand-800); color: #fff; }
.lp-btn-primary:active { background: var(--brand-900); }
.lp-btn-secondary { background: #fff; color: var(--slate-900); border-color: var(--slate-300); box-shadow: var(--shadow-xs); }
.lp-btn-secondary:hover { background: var(--slate-50); border-color: var(--slate-400); color: var(--slate-900); }
.lp-btn-secondary:active { background: var(--slate-100); }
.lp-btn-ghost { background: transparent; color: var(--slate-700); }
.lp-btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }
.lp-btn-white { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.lp-btn-white:hover { background: var(--brand-50); color: var(--brand-900); }
.lp-btn-glass { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .4); }
.lp-btn-glass:hover { background: rgb(255 255 255 / .16); color: #fff; }
.lp-final .lp-btn:focus-visible { outline-color: #fff; }
.lp-btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.lp-btn-sm { height: 40px; padding: 0 12px; font-size: 14px; gap: 6px; }
.lp-btn-sm .lp-i { width: 16px; height: 16px; }
.lp-btn-go .lp-i, .lp-more .lp-i { transition: transform var(--dur-fast) ease-out; }
.lp-btn-go:hover .lp-i, .lp-seg:hover .lp-more .lp-i { transform: translateX(3px); }
.lp-mt { margin-top: 28px; }

/* ---------- Cabecera (igual que la del resto de páginas públicas) ---------- */
.lp-head { position: sticky; top: 0; z-index: 50; view-transition-name: site-head; background: rgb(255 255 255 / .85); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--slate-200); }
.lp-bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; border-radius: 6px; color: var(--slate-900); font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.lp-logo:hover { color: var(--slate-900); }
.lp-logo img { display: block; flex: none; width: 28px; height: 28px; border-radius: 7px; }
.lp-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--slate-600); font-size: 15px; font-weight: 500; text-decoration: none; transition: color var(--dur-fast) ease-out; }
.lp-nav a:hover { color: var(--slate-900); }
.lp-actions { display: flex; align-items: center; gap: 8px; }
.lp-menu-btn { display: none; }
@media (max-width: 899px) {
  .lp-bar { height: 56px; }
  .lp-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--slate-900); cursor: pointer; transition: background-color var(--dur-fast) ease-out; }
  .lp-menu-btn:hover { background: var(--slate-100); }
  .lp-i-close, .lp-menu-btn[aria-expanded="true"] .lp-i-open { display: none; }
  .lp-menu-btn[aria-expanded="true"] .lp-i-close { display: block; }
  /* Panel con los enlaces y los dos botones a ancho completo, bajo la barra (como #site-menu del resto de páginas) */
  .lp-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 8px var(--lp-gutter) max(16px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); background: #fff; box-shadow: var(--shadow-md); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med); }
  .lp-head.is-open .lp-menu { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility 0s; }
  .lp-nav { display: grid; gap: 0; }
  .lp-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--slate-100); border-radius: 0; color: var(--slate-900); font-size: 16px; font-weight: 500; }
  .lp-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding-top: 16px; }
  .lp-actions .lp-btn { width: 100%; height: var(--control-h); padding: 0 16px; font-size: 15px; }
  .lp-actions .lp-btn-ghost { border-color: var(--slate-300); background: #fff; color: var(--slate-900); box-shadow: var(--shadow-xs); }
  .lp-actions .lp-btn-ghost:hover { background: var(--slate-50); border-color: var(--slate-400); }
}

/* ---------- Héroe ---------- */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 88px; }
.lp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 18%, rgb(209 250 229 / .75), transparent 70%),
    radial-gradient(ellipse 75% 70% at 62% 28%, transparent 35%, #fff 78%),
    linear-gradient(to right, rgb(15 23 42 / .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgb(15 23 42 / .05) 1px, transparent 1px) 0 0 / 48px 48px,
    #fff; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; }
.lp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 24px !important; font-size: 14px; line-height: 20px; color: var(--slate-600); }
.lp-kicker b { font-weight: 600; color: var(--slate-800); }
/* contain: paint encierra la capa del pulso (el texto de alrededor no cambia de capa ni de suavizado) */
.lp-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border: 1px solid var(--brand-200); border-radius: var(--radius-full); background: var(--brand-50); color: var(--brand-800); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; contain: paint; }
.lp-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }
/* Las animaciones infinitas solo usan transform y opacity: las mueve el compositor, sin ocupar el hilo principal */
.lp-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-500); animation: lp-pulse 2.2s ease-out infinite; }
@keyframes lp-pulse { 0% { transform: scale(1); opacity: .55; } 75% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }
.lp-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.lp-hl { color: var(--brand-700); }
.lp-lead { margin-top: 20px !important; max-width: 34em; font-size: 18px; line-height: 28px; color: var(--slate-600); text-wrap: pretty; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-hero-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px !important; font-size: 14px; line-height: 20px; color: var(--slate-600); }
.lp-hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-checks .lp-i { width: 16px; height: 16px; color: var(--brand-600); stroke-width: 2.5; }

/* Maqueta del móvil con el DeCA */
.lp-hero-art { position: relative; display: flex; justify-content: flex-end; }
.lp-device { width: 300px; }
.lp-stage { position: relative; width: 300px; }
.lp-phone { position: relative; width: 300px; padding: 10px; border-radius: 48px; background: var(--slate-900); box-shadow: 0 0 0 1px rgb(15 23 42 / .06), 0 32px 64px -20px rgb(15 23 42 / .35), 0 18px 36px -18px rgb(15 23 42 / .3), inset 0 0 0 1.5px rgb(255 255 255 / .1); }
.lp-screen { position: relative; overflow: hidden; border-radius: 38px; background: var(--slate-100); color: var(--slate-900); padding-bottom: 14px; }
.lp-status { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 24px 0 30px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-island { position: absolute; top: 11px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 13px; background: var(--slate-900); }
.lp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.lp-bars i { width: 3px; border-radius: 1px; background: var(--slate-900); }
.lp-bars i:nth-child(1) { height: 5px; } .lp-bars i:nth-child(2) { height: 7px; } .lp-bars i:nth-child(3) { height: 10px; }
.lp-appbar { display: flex; justify-content: space-between; align-items: center; padding: 2px 18px 10px; font-size: 12px; font-weight: 600; color: var(--brand-700); }
.lp-appbar span:first-child { color: var(--slate-900); font-size: 15px; }
.lp-deca { margin: 0 12px; padding: 14px; border: 1px solid var(--slate-200); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.lp-deca-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; }
.lp-deca-k { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--slate-500); }
.lp-deca-n { grid-column: 1 / -1; font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-deca-qr { width: 152px; height: 152px; margin: 14px auto 12px; padding: 8px; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; }
.lp-deca-qr svg { display: block; width: 100%; height: 100%; }
.lp-deca-row, .lp-deca-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--slate-100); font-size: 12px; line-height: 16px; }
.lp-deca-row span { color: var(--slate-500); }
.lp-deca-row b, .lp-deca-route b { font-weight: 600; text-align: right; }
.lp-deca-route i { position: relative; flex: 1; height: 2px; margin: 0 4px; background: repeating-linear-gradient(90deg, var(--brand-600) 0 5px, transparent 5px 9px); }
.lp-deca-route i::before, .lp-deca-route i::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-600); box-sizing: border-box; }
.lp-deca-route i::before { left: -4px; } .lp-deca-route i::after { right: -4px; background: var(--brand-600); }
.lp-plate { display: inline-flex; align-items: center; height: 20px; padding: 0 6px 0 5px; border: 1px solid var(--slate-300); border-left: 6px solid var(--info); border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .04em; }
.lp-deca-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin-top: 10px; border-radius: 10px; background: var(--brand-700); color: #fff; font-size: 13px; font-weight: 600; }
.lp-deca-btn .lp-i { width: 15px; height: 15px; stroke-width: 2; }

/* Insignias de estado (punto + texto, nunca solo color) */
.lp-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--radius-full); font-size: 11px; font-style: normal; font-weight: 600; line-height: 1; white-space: nowrap; }
.lp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lp-badge-ok { background: var(--success-bg); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-border); }
.lp-badge-draft { background: var(--slate-100); color: var(--slate-700); box-shadow: inset 0 0 0 1px var(--slate-200); }

/* Avisos flotantes alrededor del móvil (entran una vez al cargar) */
.lp-toast { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--slate-200); border-radius: 12px; background: rgb(255 255 255 / .97); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 17px; white-space: nowrap; animation: lp-rise .6s var(--ease) .35s both; }
.lp-toast b { display: block; font-weight: 600; }
.lp-toast small { display: block; font-size: 12px; color: var(--slate-500); }
.lp-toast-i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); }
.lp-toast-i .lp-i { width: 18px; height: 18px; }
.lp-toast-wa { background: var(--brand-500); color: #fff; }
/* Solo tapan el marco y el margen de la pantalla (24-28 px), nunca los datos del DeCA */
.lp-toast-a { top: 108px; right: calc(100% - 24px); }
.lp-toast-c { top: 324px; right: calc(100% - 16px); animation-delay: .5s; }
.lp-toast-b { top: 470px; right: calc(100% - 28px); animation-delay: .65s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-scan-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px -48px 0 !important; font-size: 13px; color: var(--slate-500); }
.lp-scan-hint .lp-i { width: 16px; height: 16px; color: var(--slate-500); }

/* ---------- Banda de confianza: normativa y cifras ---------- */
.lp-trust { border-top: 1px solid var(--slate-200); background: #fff; }
.lp-trust-t { padding-top: 28px; font-size: 12px !important; line-height: 16px; font-weight: 600; letter-spacing: .08em !important; text-transform: uppercase; text-align: center; color: var(--slate-500) !important; }
.lp-laws, .lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-laws { gap: 16px 24px; padding: 20px 0 28px; }
.lp-laws li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 18px; color: var(--slate-600); }
.lp-laws li .lp-i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }
.lp-laws b { display: block; margin-bottom: 2px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--slate-900); }
.lp-stats { border-top: 1px solid var(--slate-200); }
.lp-stats li { padding: 28px 24px 32px; border-left: 1px solid var(--slate-200); }
.lp-stats li:first-child { padding-left: 0; border-left: 0; }
.lp-stats b { display: block; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--slate-900); }
.lp-stats .lp-stat-alert b { color: var(--danger-700); }
.lp-stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--slate-600); }

/* ---------- Secciones ---------- */
.lp-sec { padding: 96px 0; }
.lp-tint { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.lp-sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.lp-eyebrow { margin-bottom: 12px !important; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.lp-h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em !important; text-wrap: balance; }
.lp-sub { margin-top: 16px !important; font-size: 18px; line-height: 28px; color: var(--slate-600); text-wrap: pretty; }
.lp-fine { margin-top: 16px !important; font-size: 13px; line-height: 20px; color: var(--slate-600); }
.lp-note { margin-top: 32px !important; text-align: center; font-size: 15px; color: var(--slate-600); }
.lp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 24px; color: var(--slate-700); }
.lp-list li + li { margin-top: 10px; }
.lp-list .lp-i { width: 18px; height: 18px; margin-top: 3px; color: var(--brand-600); stroke-width: 2.25; }
.lp-list b { font-weight: 600; color: var(--slate-900); }
.lp-feat-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }

/* ---------- Cómo funciona ---------- */
.lp-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.lp-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px; padding-bottom: 32px; }
.lp-step:last-child { padding-bottom: 0; }
.lp-step::before { content: ""; position: absolute; top: 48px; bottom: 8px; left: 19.5px; width: 1px; background: var(--slate-300); }
.lp-step:last-child::before { display: none; }
.lp-step-n { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--slate-200); border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); color: var(--brand-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-step h3 { margin: 7px 0 8px !important; font-size: 18px; line-height: 26px; }
.lp-step p { font-size: 15px; line-height: 24px; color: var(--slate-600); }
.lp-step .lp-step-more { margin-top: 12px !important; font-size: 14px; line-height: 22px; color: var(--slate-600); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.lp-chips li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--slate-200); border-radius: var(--radius-full); background: #fff; font-size: 13px; font-weight: 500; color: var(--slate-700); }
.lp-chips .lp-i { width: 15px; height: 15px; color: var(--brand-700); }

/* Demostración del escáner: albarán → borrador del DeCA */
.lp-demo-wrap { position: relative; }
.lp-demo-tag { position: absolute; top: -14px; left: 24px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--brand-200); border-radius: var(--radius-full); background: var(--brand-50); color: var(--brand-800); font-size: 13px; font-weight: 600; }
.lp-demo-tag .lp-i { width: 15px; height: 15px; }
.lp-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: 16px; padding: 40px 28px 32px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.lp-alb { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--slate-25); box-shadow: 0 14px 28px -14px rgb(15 23 42 / .3); transform: rotate(-2.5deg); font-size: 11px; line-height: 15px; color: var(--slate-600); }
.lp-alb-head { margin-bottom: 8px; }
.lp-alb-head b { display: block; font-size: 12px; color: var(--slate-900); letter-spacing: .02em; }
.lp-alb-head span { display: block; margin-top: 1px; }
.lp-alb-kv { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 5px; }
.lp-alb-kv span { color: var(--slate-500); }
.lp-alb-kv b { font-weight: 600; color: var(--slate-800); }
.lp-alb-blank { flex: 1; max-width: 72px; height: 12px; border-bottom: 1px dashed var(--slate-400); }
.lp-alb-table + .lp-alb-kv { margin-top: 10px; }
.lp-alb-lines { margin: 12px 0; }
.lp-alb-lines i { display: block; height: 5px; margin: 7px 0; border-radius: 3px; background: var(--slate-200); }
.lp-alb-lines i:nth-child(1) { width: 82%; } .lp-alb-lines i:nth-child(2) { width: 64%; } .lp-alb-lines i:nth-child(3) { width: 90%; } .lp-alb-lines i:nth-child(4) { width: 46%; } .lp-alb-lines i:nth-child(5) { width: 72%; }
.lp-alb-table { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--slate-300); border-bottom: 1px solid var(--slate-300); font-weight: 600; color: var(--slate-800); }
.lp-alb-sign { margin-top: 10px; text-align: right; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 19px; color: var(--info); }
/* Franja del escáner: caja del alto del albarán (el 100% del translateY) */
.lp-scanline { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, rgb(16 185 129 / 0), rgb(16 185 129 / .14) 85%, rgb(16 185 129 / .75) 97%, rgb(16 185 129 / 0)) 0 0 / 100% 56px no-repeat; }
.lp-demo.play .lp-scanline { opacity: 1; animation: lp-scan 2.8s ease-in-out infinite; }
@keyframes lp-scan { 0% { transform: translateY(-56px); } 100% { transform: translateY(100%); } }
.lp-demo-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--brand-700); }
.lp-demo-arrow span { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: var(--radius-full); background: var(--brand-700); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 14px -6px rgb(4 120 87 / .6); }
.lp-demo-arrow span .lp-i { width: 14px; height: 14px; }
.lp-demo-arrow::after { content: "→"; font-size: 20px; line-height: 1; font-weight: 500; }
.lp-form { padding: 14px; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.lp-form-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--slate-100); font-size: 13px; }
.lp-form-head b { font-weight: 600; }
.lp-af { margin-top: 9px; }
.lp-af-l { display: block; margin-bottom: 3px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--slate-500); }
.lp-af-v { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 1px solid var(--slate-300); border-radius: 6px; background: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.lp-af-v > span { overflow: hidden; text-overflow: ellipsis; }
.lp-af-v .lp-i { width: 14px; height: 14px; margin-left: auto; color: var(--brand-600); stroke-width: 2.5; }
.lp-af-warn { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 9px; border: 1px solid var(--warning-border); border-radius: 6px; background: var(--warning-bg); color: var(--warning); font-size: 12px; line-height: 16px; font-weight: 500; }
.lp-af-warn .lp-i { width: 15px; height: 15px; }
/* Relleno automático al verse (landing.js añade .play); sin JS se ve el resultado final */
.lp-js .lp-demo .lp-af-v > span { clip-path: inset(0 100% 0 0); }
.lp-js .lp-demo .lp-af-v .lp-i, .lp-js .lp-demo .lp-af-warn { opacity: 0; }
.lp-js .lp-demo.play .lp-af-v > span { animation: lp-type .7s steps(18, end) var(--d, 0s) forwards; }
.lp-js .lp-demo.play .lp-af-v .lp-i { animation: lp-fade .3s ease-out calc(var(--d, 0s) + .7s) forwards; }
.lp-js .lp-demo.play .lp-af-warn { animation: lp-fade .4s ease-out 3.1s forwards; }
.lp-form > .lp-af:nth-child(2) { --d: .3s; } .lp-form > .lp-af:nth-child(3) { --d: .8s; } .lp-form > .lp-af:nth-child(4) { --d: 1.3s; }
.lp-form > .lp-af:nth-child(5) { --d: 1.8s; } .lp-form > .lp-af:nth-child(6) { --d: 2.3s; }
@keyframes lp-type { to { clip-path: inset(0 0 0 0); } }
@keyframes lp-fade { to { opacity: 1; } }

/* ---------- Conductores e inspección ---------- */
.lp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lp-panel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.lp-panel-art { display: grid; place-items: center; height: 376px; padding: 28px; overflow: hidden; border-bottom: 1px solid var(--slate-200);
  background: radial-gradient(circle at 1px 1px, rgb(15 23 42 / .07) 1px, transparent 0) 0 0 / 16px 16px, var(--slate-50); }
.lp-panel-body { padding: 28px 28px 32px; }
.lp-panel-body h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px !important; font-size: 18px; line-height: 26px; }
.lp-panel-body h3 .lp-i { width: 22px; height: 22px; color: var(--brand-700); }
.lp-specs { margin-top: 24px; padding: 28px 32px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); }
.lp-specs-t { margin-bottom: 20px !important; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em !important; text-transform: uppercase; color: var(--slate-600) !important; }
.lp-specs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.lp-specs li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 21px; color: var(--slate-600); }
.lp-specs li .lp-i { width: 20px; height: 20px; margin-top: 1px; color: var(--brand-700); }
.lp-specs b { font-weight: 600; color: var(--slate-900); }

/* Maqueta: portal del conductor */
.lp-driver { width: 100%; max-width: 330px; }
.lp-bubble { position: relative; margin: 0 0 14px 28px; padding: 10px 12px 18px; border: 1px solid var(--brand-200); border-radius: 12px 12px 12px 4px; background: var(--brand-50); box-shadow: var(--shadow-xs); font-size: 12.5px; line-height: 18px; color: var(--slate-800); }
.lp-bubble u { color: var(--brand-800); text-underline-offset: 2px; }
.lp-bubble-from { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 11px; font-weight: 600; color: var(--brand-800); }
.lp-bubble-from .lp-i { width: 13px; height: 13px; }
.lp-bubble small { position: absolute; right: 10px; bottom: 4px; font-size: 10px; color: var(--slate-500); }
.lp-portal { padding: 14px; border: 1px solid var(--slate-200); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
.lp-portal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.lp-portal-h b { font-weight: 600; }
.lp-portal-h span { font-size: 11px; color: var(--slate-500); }
.lp-portal-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--slate-100); font-size: 12.5px; }
.lp-portal-row b { display: block; font-weight: 600; }
.lp-portal-row small { display: block; font-size: 11px; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.lp-portal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lp-portal-btns span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 1px solid var(--slate-300); border-radius: 8px; font-size: 12px; font-weight: 600; }
.lp-portal-btns .lp-pb-main { border-color: var(--brand-700); background: var(--brand-700); color: #fff; }
.lp-portal-btns .lp-i { width: 15px; height: 15px; }

/* Maqueta: ficha de consulta en el navegador */
.lp-browser { width: 100%; max-width: 420px; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); font-size: 12.5px; }
.lp-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--slate-200); background: var(--slate-100); }
.lp-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.lp-url { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; margin-left: 8px; padding: 4px 10px; border-radius: 6px; background: #fff; color: var(--slate-600); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-url .lp-i { width: 12px; height: 12px; color: var(--success); stroke-width: 2.25; }
.lp-browser-body { padding: 16px 18px 12px; }
.lp-b-k { font-size: 11px; color: var(--slate-500); }
.lp-b-t { display: flex; align-items: center; gap: 8px; margin: 3px 0 12px !important; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-b-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--brand-700); color: #fff; font-size: 12px; font-weight: 600; }
.lp-b-btn .lp-i { width: 14px; height: 14px; }
.lp-b-hist { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--slate-100); }
.lp-b-hist b { display: block; font-weight: 600; }
.lp-b-hist > span { color: var(--slate-500); }
.lp-b-old b, .lp-b-old > span { color: var(--slate-500); }
.lp-b-diff { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 10px; border-radius: 6px; background: var(--slate-50); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; }
.lp-b-diff span { color: var(--slate-500); font-family: var(--font-sans); }
.lp-b-diff del { color: var(--danger-700); }
.lp-b-diff ins { color: var(--success); font-weight: 600; text-decoration: none; }

/* ---------- Funciones ---------- */
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-feat { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-xs); }
.lp-feat-wide { grid-column: span 2; }
.lp-feat .lp-feat-i { margin-bottom: 18px; }
.lp-feat h3 { margin-bottom: 6px !important; font-size: 17px; line-height: 24px; }
.lp-feat p { font-size: 15px; line-height: 24px; color: var(--slate-600); }
.lp-mini-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 600; }
.lp-mini-route span { padding: 5px 10px; border: 1px solid var(--slate-200); border-radius: var(--radius-full); background: var(--slate-50); }
.lp-mini-route i { flex: 1; min-width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-500) 0 5px, transparent 5px 9px); }
.lp-feat-code { background: var(--slate-900); border-color: var(--slate-900); }
.lp-feat-code h3 { color: #fff; }
.lp-feat-code p { color: var(--slate-300); }
.lp-feat-code .lp-feat-i { background: rgb(255 255 255 / .08); color: var(--brand-200); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.lp-feat-code pre { margin: 18px 0 0; padding: 14px 16px; overflow-x: auto; border: 1px solid rgb(255 255 255 / .08); border-radius: 10px; background: rgb(255 255 255 / .04); color: var(--slate-200); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; }
.lp-feat-code pre .k { color: var(--brand-200); font-weight: 600; }
.lp-feat-code pre .s { color: #bfdbfe; }
.lp-feat-code pre .ok { color: var(--brand-200); }
@media (min-width: 1024px) {
  .lp-feat-code { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .lp-feat-code pre { font-size: 12px; }
  .lp-feat-code > :not(pre) { grid-column: 1; }
  .lp-feat-code > pre { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
}

/* ---------- Equipo y app ---------- */
.lp-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-role { padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-xs); }
.lp-role .lp-feat-i { margin-bottom: 16px; }
.lp-role-tag { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); }
.lp-role h3 { margin: 4px 0 8px !important; font-size: 20px; line-height: 28px; }
.lp-role p:last-child { font-size: 15px; line-height: 24px; color: var(--slate-600); }
.lp-appcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: end; margin-top: 24px; padding: 0 48px; overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  background: radial-gradient(420px 300px at 85% 110%, rgb(209 250 229 / .9), transparent 70%), var(--slate-50); }
.lp-appcard-body { align-self: center; padding: 48px 0; }
.lp-appcard-body h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em !important; }
.lp-appcard-body > p:not(.lp-eyebrow) { margin-top: 12px !important; max-width: 36em; font-size: 16px; line-height: 26px; color: var(--slate-600); }
.lp-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 20px 0 28px !important; }
.lp-list-2 li + li { margin-top: 0; }
.lp-appcard-art { display: flex; justify-content: center; height: 400px; padding-top: 40px; overflow: hidden; }
.lp-phone-sm { width: 264px; height: max-content; padding: 9px; border-radius: 42px; }
.lp-phone-sm .lp-screen { border-radius: 34px; min-height: 520px; }
.lp-m { padding: 4px 14px 16px; }
.lp-m-title { margin-bottom: 12px !important; font-size: 17px; font-weight: 600; }
.lp-m-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px; border: 1.5px dashed var(--brand-500); border-radius: 14px; background: var(--brand-50); color: var(--brand-800); font-size: 13px; font-weight: 600; }
.lp-m-drop .lp-i { width: 30px; height: 30px; }
.lp-m-or { margin: 8px 0; text-align: center; font-size: 12px; color: var(--slate-600); }
.lp-m-voice { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 1px solid var(--slate-300); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; }
.lp-m-voice .lp-i { width: 16px; height: 16px; }
.lp-m-list { margin-top: 14px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; font-size: 12.5px; }
.lp-m-list b { display: block; margin-bottom: 4px; font-weight: 600; }
.lp-m-list span { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--slate-100); }

/* ---------- Para quién ---------- */
.lp-segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lp-seg { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-xs); color: var(--slate-900); text-decoration: none; transition: border-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out; }
.lp-seg:hover { border-color: var(--slate-300); box-shadow: var(--shadow-md); color: var(--slate-900); }
.lp-seg .lp-feat-i { margin-bottom: 18px; }
.lp-seg h3 { margin-bottom: 6px !important; font-size: 17px; line-height: 24px; }
.lp-seg p { flex: 1; margin-bottom: 16px !important; font-size: 15px; line-height: 24px; color: var(--slate-600); }
.lp-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-size: 14px; font-weight: 600; }
.lp-more .lp-i { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- Comprobador ---------- */
.lp-checker { padding: 48px; border: 1px solid var(--slate-200); border-radius: 24px; background: linear-gradient(170deg, var(--brand-50), #fff 45%); box-shadow: var(--shadow-sm); }
.lp-checker-intro { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.lp-qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.lp-check-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.lp-check-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--slate-200); }
.lp-check-go p { font-size: 15px; line-height: 24px; color: var(--slate-600); }
.lp-check-form legend { margin-bottom: 10px; padding: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--slate-900); }
.lp-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: #fff; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--slate-800); cursor: pointer; transition: border-color var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out; }
.lp-choice + .lp-choice { margin-top: 8px; }
.lp-choice:hover { border-color: var(--slate-300); background: var(--slate-50); }
.lp-choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-600); }
.lp-choice input { display: block; flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; accent-color: var(--brand-700); }
.lp-choice input:focus { outline: none; }
.lp-choice input:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.lp-result { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; margin-top: 20px; padding: 18px; border: 1px solid; border-radius: var(--radius-md); font-size: 15px; line-height: 24px; color: var(--slate-800); animation: lp-rise .3s var(--ease) both; }
.lp-result > .lp-i { width: 22px; height: 22px; margin-top: 1px; }
.lp-result strong { font-weight: 600; }
.lp-result .lp-btn { grid-column: 2; justify-self: start; margin-top: 12px; }
.lp-result.need { border-color: var(--warning-border); background: var(--warning-bg); }
.lp-result.need > .lp-i, .lp-result.need strong { color: var(--warning); }
.lp-result.ok { border-color: var(--success-border); background: var(--success-bg); }
.lp-result.ok > .lp-i, .lp-result.ok strong { color: var(--success); }

/* ---------- Tablas (comparativa y DeCA/CMR) ---------- */
.lp-table { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-xs); -webkit-overflow-scrolling: touch; }
.lp-table table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lp-cmp { min-width: 760px; }
.lp-mini { min-width: 480px; }
.lp-table th, .lp-table td { padding: 14px 16px; border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: middle; font-size: 15px; line-height: 22px; text-transform: none; letter-spacing: 0; color: var(--slate-700); background: #fff; }
.lp-table thead th { padding-top: 12px; padding-bottom: 12px; background: var(--slate-50); color: var(--slate-600); font-size: 13px; font-weight: 600; }
.lp-table tbody th { font-weight: 500; color: var(--slate-900); }
.lp-table tbody tr:last-child > * { border-bottom: 0; }
.lp-table tbody tr:hover > * { background: #fff; }
.lp-table .us { background: var(--brand-50); color: var(--slate-900); font-weight: 600; }
.lp-table tbody tr:hover > .us { background: var(--brand-50); }
.lp-table thead .us { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 3px 0 var(--brand-600); }
.lp-table .yes, .lp-table .no { white-space: nowrap; }
.lp-table .yes { color: var(--success); }
.lp-table .us.yes { color: var(--success); }
.lp-table .no { color: var(--slate-500); }
.lp-table td .lp-i { width: 16px; height: 16px; margin: -2px 6px 0 0; vertical-align: middle; stroke-width: 2.5; }
.lp-table b { font-weight: 600; }
.lp-swipe { display: none; }
@media (max-width: 859px) { .lp-swipe:not(.lp-swipe-mini) { display: flex; } }
@media (max-width: 559px) { .lp-swipe-mini { display: flex; } }
.lp-swipe { align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 10px !important; font-size: 13px; color: var(--slate-500); }
.lp-swipe .lp-i { width: 16px; height: 16px; }
/* Primera columna fija al desplazar la tabla en el móvil */
.lp-table tbody th, .lp-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.lp-table thead th:first-child { background: var(--slate-50); }

/* ---------- Precios ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.lp-plans-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.lp-plan-featured { border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600), var(--shadow-lg); }
.lp-plan-badge { position: absolute; top: -13px; left: 32px; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--radius-full); background: var(--brand-700); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.lp-plan h3 { font-size: 18px; line-height: 26px; }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; color: var(--slate-600); font-size: 15px; }
.lp-price b { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--slate-900); }
.lp-plan-sub { min-height: 48px; margin-top: 12px !important; font-size: 14px; line-height: 22px; color: var(--slate-600); }
.lp-plan > .lp-btn { width: 100%; margin: 24px 0; }
.lp-plan .lp-list { padding-top: 24px; border-top: 1px solid var(--slate-100); }
.lp-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; max-width: 960px; margin: 40px auto 0; padding: 32px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); }
.lp-calc label { display: block; margin: 0; font-size: 15px; font-weight: 600; color: var(--slate-700); }
.lp-calc-n { margin: 8px 0 16px; font-size: 18px; font-weight: 500; color: var(--slate-600); }
.lp-calc-n output { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--slate-900); }
.lp-calc input[type=range] { display: block; width: 100%; height: 28px; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--brand-700); cursor: pointer; }
.lp-calc-res { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.lp-calc-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: #fff; font-size: 15px; color: var(--slate-700); }
.lp-calc-line b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--slate-900); white-space: nowrap; }
.lp-calc-line.is-best { border-color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-600); }
.lp-calc-line.is-best span::after { content: "Tu mejor opción"; display: inline-block; white-space: nowrap; margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--brand-700); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.lp-calc-line.is-na, .lp-calc-line.is-na b { color: var(--slate-500); }

/* ---------- DeCA, carta de porte y CMR ---------- */
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }

/* ---------- Preguntas frecuentes ---------- */
.lp-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "intro list" "links list"; column-gap: 64px; align-items: start; }
.lp-faq-intro { grid-area: intro; }
.lp-faq-list { grid-area: list; }
.lp-faq-links { grid-area: links; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px !important; font-size: 15px; }
.lp-q { border-bottom: 1px solid var(--slate-200); }
.lp-q:first-child { border-top: 1px solid var(--slate-200); }
.lp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--slate-900); }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary:hover { color: var(--brand-800); }
.lp-q summary:focus-visible { outline-offset: 4px; border-radius: 4px; }
.lp-q summary .lp-i { color: var(--slate-500); transition: transform var(--dur-med) var(--ease); }
.lp-q[open] summary .lp-i { transform: rotate(180deg); }
.lp-q p { padding: 0 40px 22px 0; font-size: 15px; line-height: 25px; color: var(--slate-600); }
.lp-q[open] > p { animation: lp-drop var(--dur-med) var(--ease); }
@keyframes lp-drop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Llamada final ---------- */
.lp-final { padding: 0 0 96px; }
.lp-final-card { position: relative; isolation: isolate; overflow: hidden; padding: 72px 32px; border-radius: 24px; text-align: center; color: #fff;
  background: radial-gradient(640px 320px at 50% -10%, rgb(16 185 129 / .3), transparent 70%), linear-gradient(160deg, var(--brand-800), var(--brand-900)); }
.lp-final-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, transparent 30%, var(--brand-900) 85%), linear-gradient(to right, rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(to bottom, rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 40px 40px; }
.lp-final-count span { display: block; font-size: clamp(56px, 8vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-final-count small { display: block; margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--brand-100); }
.lp-final h2 { margin-top: 24px !important; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.lp-final-sub { margin-top: 12px !important; font-size: 18px; line-height: 28px; color: var(--brand-100); }
.lp-ctas-center { justify-content: center; }

/* ---------- Aparición al desplazarse (landing.js marca .rv-wait lo que aún no se ve y .in al llegar); solo transform y opacity ---------- */
/* La transición solo al aparecer (.in): ocultar lo que está fuera de la pantalla es instantáneo */
.rv-wait { opacity: 0; transform: translateY(16px); }
.rv-wait.in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--rvd, 0s), transform .6s var(--ease) var(--rvd, 0s), border-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out; }
.lp-steps > .rv:nth-child(2), .lp-duo > .rv:nth-child(2), .lp-roles > .rv:nth-child(2), .lp-plans > .rv:nth-child(2), .lp-feats > .rv:nth-child(3n+2), .lp-segs > .rv:nth-child(2) { --rvd: 80ms; }
.lp-steps > .rv:nth-child(3), .lp-roles > .rv:nth-child(3), .lp-plans > .rv:nth-child(3), .lp-feats > .rv:nth-child(3n), .lp-segs > .rv:nth-child(3) { --rvd: 160ms; }
.lp-segs > .rv:nth-child(4) { --rvd: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .rv-wait { opacity: 1; transform: none; transition: none; }
  .lp-dot::after, .lp-toast, .lp-result, .lp-q[open] > p { animation: none; }
  .lp-demo.play .lp-scanline { animation: none; opacity: 0; }
  .lp-js .lp-demo .lp-af-v > span { clip-path: none; animation: none !important; }
  .lp-js .lp-demo .lp-af-v .lp-i, .lp-js .lp-demo .lp-af-warn { opacity: 1; animation: none !important; }
  .lp-menu { transform: none !important; }
  .lp-btn-go:hover .lp-i, .lp-seg:hover .lp-more .lp-i, .lp-q[open] summary .lp-i { transition: none; }
}
@media print {
  .lp-head, .lp-skip { display: none; }
  .rv-wait { opacity: 1 !important; transform: none !important; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1199px) {
  .lp-scan-hint { margin: 20px 0 0 !important; text-align: center; }
  .lp-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; }
}
@media (min-width: 1024px) and (max-width: 1119px) {
  .lp-toast-a, .lp-toast-c { right: calc(100% - 32px); }
  .lp-toast-b { display: none; }
}
@media (max-width: 719px) { .lp-toast { display: none; } }
@media (max-width: 1023px) {
  .lp-sec { padding: 80px 0; }
  .lp-hero { padding-bottom: 0; }
  .lp-hero-grid, .lp-how, .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-grid { gap: 48px; }
  .lp-hero-copy { max-width: 680px; }
  /* El móvil asoma por abajo: se ven el DeCA y su QR sin alargar la portada */
  .lp-hero-art { justify-content: center; height: 440px; overflow: hidden; margin: 0 calc(-1 * var(--lp-gutter)); }
  .lp-hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to bottom, rgb(255 255 255 / 0), #fff); pointer-events: none; }
  .lp-device { margin: 0; }
  .lp-toast-a { top: 118px; }
  .lp-toast-c { top: 300px; }
  .lp-toast-b { top: 210px; right: auto; left: calc(100% - 24px); }
  .lp-scan-hint { display: none !important; }
  .lp-how { gap: 48px; }
  .lp-qs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-faq { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "list" "links"; row-gap: 32px; }
  .lp-faq-links { margin-top: 0 !important; }
  .lp-plan-sub { min-height: 0; }
  .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-specs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .lp-plans-single { max-width: none; }
  .lp-appcard { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); padding: 0 32px; }
}
@media (max-width: 899px) {
  .lp-laws, .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .lp-stats li:nth-child(n+3) { border-top: 1px solid var(--slate-200); }
  .lp-duo { grid-template-columns: minmax(0, 1fr); }
  .lp-roles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-role { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .lp-role > .lp-feat-i { grid-row: 1 / span 3; align-self: start; margin: 0; }
  .lp-role > :not(.lp-feat-i) { grid-column: 2; }
  .lp-role h3 { margin: 2px 0 6px !important; font-size: 18px; line-height: 26px; }
  .lp-appcard { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-appcard-body { padding: 40px 0 8px; }
  .lp-appcard-art { height: 340px; padding-top: 24px; }
  .lp-calc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 639px) {
  .lp-sec { padding: 64px 0; }
  .lp-sec-head { margin-bottom: 40px; }
  .lp-sub { font-size: 17px; line-height: 26px; }
  .lp-hero { padding-top: 40px; }
  .lp-kicker { margin-bottom: 20px !important; font-size: 13px; }
  .lp-lead { font-size: 17px; line-height: 26px; }
  .lp-ctas { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .lp-hero-checks { flex-direction: column; gap: 8px; }
  .lp-hero-grid { gap: 40px; }
  .lp-hero-art { height: 392px; }
  .lp-device, .lp-stage, .lp-phone { width: 284px; }
  .lp-deca { margin: 0 10px; padding: 12px; }
  .lp-deca-k { letter-spacing: .04em; }
  .lp-laws { gap: 20px 16px; padding: 16px 0 24px; }
  .lp-laws li { flex-direction: column; gap: 10px; }
  .lp-stats li { padding: 20px 16px 24px; }
  .lp-stats li:nth-child(odd) { padding-left: 0; }
  .lp-stats b { font-size: 24px; line-height: 32px; }
  .lp-stats span { font-size: 13px; line-height: 19px; }
  .lp-demo { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 36px 16px 20px; }
  .lp-alb { max-width: 280px; width: 100%; justify-self: center; }
  .lp-demo-arrow { flex-direction: row; justify-content: center; gap: 8px; }
  .lp-demo-arrow::after { content: "↓"; }
  .lp-demo-tag { left: 16px; }
  .lp-panel-art { height: auto; min-height: 260px; padding: 24px 16px; }
  .lp-panel-body { padding: 24px 20px 28px; }
  .lp-specs { padding: 24px 20px; }
  .lp-specs ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-feats, .lp-segs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-feat-wide { grid-column: auto; }
  .lp-feat, .lp-seg, .lp-role { padding: 20px; }
  .lp-seg { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .lp-seg > .lp-feat-i { grid-row: 1 / span 3; align-self: start; margin: 0; }
  .lp-seg > :not(.lp-feat-i) { grid-column: 2; }
  .lp-seg h3 { margin: 8px 0 4px !important; }
  .lp-seg p { margin-bottom: 10px !important; }
  .lp-feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; }
  .lp-feat .lp-feat-i { grid-row: span 2; margin: 0; }
  .lp-feat h3 { margin: 0 !important; align-self: center; }
  .lp-feat > p, .lp-feat > .lp-mini-route, .lp-feat > pre { grid-column: 2; }
  .lp-feat-code > pre { grid-column: 1 / -1; }
  .lp-appcard { padding: 0 20px; }
  .lp-appcard-body { padding-top: 32px; }
  .lp-list-2 { grid-template-columns: minmax(0, 1fr); }
  .lp-checker { padding: 28px 20px; border-radius: var(--radius-lg); }
  .lp-checker-intro { margin-bottom: 28px; }
  .lp-check-go .lp-btn { width: 100%; }
  .lp-table tbody th { min-width: 120px; }
  .lp-plan { padding: 28px 20px; }
  .lp-plan-badge { left: 20px; }
  .lp-calc { padding: 24px 20px; }
  .lp-q p { padding-right: 8px; }
  .lp-final { padding-bottom: 64px; }
  .lp-final-card { padding: 56px 20px; border-radius: var(--radius-lg); }
  .lp-final-sub { font-size: 17px; line-height: 26px; }
}
