/* ==========================================================================
   Public pages: the landing page (templates/core/home.html) and «Software a
   medida» (templates/core/software.html). Built on the app tokens in app.css,
   so they follow light/dark mode; brand colour only as accent.
   ========================================================================== */

.lp { --lp-max: 1160px; --lp-grad: linear-gradient(120deg, var(--brand-from), var(--brand-to));
  font-size: 15px; color: var(--ink); overflow-x: hidden; scroll-behavior: smooth; }
html:has(.lp) { scroll-behavior: smooth; scroll-padding-top: 72px; }
/* app.css gives body the screen's height (the app scrolls inside it). Here the page grows with its
   content: with a fixed height the sticky header only stayed up for the first screen of scrolling. */
body.lp { height: auto; min-height: 100%; }
.lp h1, .lp h2, .lp h3 { color: var(--ink-strong); letter-spacing: -0.02em; margin: 0; }
.lp p { margin: 0; }
.lp a { text-decoration: none; }
.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }
.lp-grad { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.lp-nav { position: sticky; top: 0; z-index: 50; transition: background 0.2s, box-shadow 0.2s; }
/* Pages without landing.js (the demo form) always carry the background: the header stays up. */
.lp-nav.scrolled, .lp-nav:not([id]) { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; }
.lp-logo .vl-logo { height: 26px; }
.lp-nav-links { position: relative; display: flex; gap: 2px; margin-left: 4px; }
.lp-nav-links a { position: relative; z-index: 1; white-space: nowrap; padding: 6px 10px; border-radius: 999px;
  color: var(--ink-muted); font-size: 14px; transition: color 0.3s; }
.lp-nav-links a:hover { color: var(--ink-strong); background: color-mix(in srgb, var(--ink-strong) 5%, transparent); }
.lp-nav-links a[aria-current] { color: var(--ink-strong); }
/* The section you are reading: a soft blue glow behind its link that glides from link to link as the
   page scrolls (landing.js places it with --x/--w). Hidden above the first section. */
.lp-nav-spot { position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); border-radius: 999px;
  transform: translateX(var(--x, 0)); opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    0 4px 18px -4px color-mix(in srgb, var(--accent) 45%, transparent); }
.lp-nav-spot.on { opacity: 1; }
.lp-nav-spot.glide { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
  width 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s; }
/* Where the section links do not fit, a thin glowing line along the bottom of the bar shows how far
   down the page you are instead. The browser moves it with the scroll on its own where it can
   (scroll-driven animation, nothing to compute per frame); elsewhere landing.js sets its scaleX. */
.lp-nav-progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--lp-grad); transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; transition: opacity 0.3s;
  pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .lp-nav-progress { animation: lp-nav-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes lp-nav-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-nav.scrolled .lp-nav-progress { opacity: 1; }
.lp-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp-nav .vl-btn:not(.icon) { height: 34px; padding: 0 14px; }
.lp-show-sm { display: none; }
.lp-demo-line { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 20px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink-muted); font-size: 14px; line-height: 1.45;
  background: color-mix(in srgb, var(--bg) 70%, transparent); transition: border-color 0.15s, color 0.15s; }
.lp-demo-line strong { color: var(--ink-strong); font-weight: 600; }
.lp-demo-line > .vl-icon:first-child { color: var(--accent-ink); flex-shrink: 0; }
.lp-demo-line > .vl-icon:last-child { margin-left: auto; flex-shrink: 0; }
.lp-demo-line:hover { border-color: var(--accent); color: var(--ink); }
html[data-theme="dark"] .lp-sun, html[data-theme="light"] .lp-moon { display: none; }
.lp-sun, .lp-moon { display: inline-flex; }

/* ── Switching between the public pages ──────────────────────────────────
   Going from one public page to another (portada ⇄ «Software a medida») is a cross-document view
   transition: the header stays where it is (logo and theme button do not move, the links and buttons
   cross-fade), the glow on the clicked link fades out and the page underneath fades and slides in.
   Browsers without it (Firefox) just load the page as before; reduced motion switches it off. */
@view-transition { navigation: auto; }
.lp-nav { view-transition-name: lp-nav; }
.lp-nav .lp-logo { view-transition-name: lp-logo; }
#lp-theme { view-transition-name: lp-theme; }
.lp-nav-spot.on { view-transition-name: lp-spot; }
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root) { animation: lp-page-out 0.22s ease-in both; }
::view-transition-new(root) { animation: lp-page-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes lp-page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes lp-page-in { from { opacity: 0; transform: translateY(18px); } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: 56px 0 72px; }
.lp-glow { position: absolute; inset: -64px 0 -80px; pointer-events: none; z-index: -1; overflow: hidden;
  mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.lp-glow::before, .lp-glow::after { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  filter: blur(90px); opacity: 0.22; animation: lp-float 14s ease-in-out infinite alternate; }
.lp-glow::before { background: var(--brand-from); top: -160px; left: -120px; }
.lp-glow::after { background: var(--brand-to); top: 40px; right: -180px; animation-delay: -7s; }
html[data-theme="dark"] .lp-glow::before, html[data-theme="dark"] .lp-glow::after { opacity: 0.16; }
@keyframes lp-float { to { transform: translate(80px, 60px) scale(1.1); } }

.lp-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px;
  color: var(--ink); background: color-mix(in srgb, var(--brand-to) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--brand-to) 28%, var(--bg)); }
.lp-chip .vl-icon { color: var(--brand-to); }
.lp-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; font-weight: 750; margin: 20px 0 20px; }
#lp-rotate { display: inline-block; transition: opacity 0.35s, transform 0.35s; }
#lp-rotate.out { opacity: 0; transform: translateY(10px); }
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--ink-muted); max-width: 540px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lp .vl-btn.lg { height: 46px; padding: 0 20px; font-size: 15px; font-weight: 500; border-radius: 10px; }
.lp .vl-btn.solid.lg { box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--brand-to) 70%, transparent); }
.lp .vl-btn.solid .vl-icon { transition: transform 0.15s; }
.lp .vl-btn.solid:hover .vl-icon { transform: translateX(3px); }
.lp-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-muted); }
.lp-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-ticks .vl-icon { color: var(--c-green); }

/* App mock */
.lp-mock { position: relative; padding: 0 0 40px 0; }
.lp-mock-win { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg),
  0 40px 80px -40px color-mix(in srgb, var(--brand-to) 45%, transparent); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform 0.6s; }
.lp-mock:hover .lp-mock-win { transform: perspective(1400px) rotateY(0) rotateX(0); }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--gray-50); border-bottom: 1px solid var(--line); }
.lp-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.lp-mock-bar span { margin-left: 12px; font-size: 11px; color: var(--ink-muted); background: var(--gray-100); padding: 3px 10px; border-radius: 6px; }
.lp-mock-body { display: flex; min-height: 320px; }
.lp-mock-side { width: 52px; background: var(--gray-50); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.lp-mock-side .sb-logo { width: 28px; height: 28px; margin-bottom: 6px; }
.lp-mock-side b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--gray-600); }
.lp-mock-side b.on { background: var(--bg); color: var(--ink-strong); box-shadow: var(--shadow-sm); }
.lp-mock-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lp-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; }
.lp-mock-kpis div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lp-mock-kpis div + div { border-left: 1px solid var(--line); }
.lp-mock small { font-size: 11px; color: var(--ink-muted); }
.lp-mock-kpis strong { font-size: 20px; font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.lp-mock-chart { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 8px; }
.lp-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--viz-1);
  transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.lp-bars span:nth-child(even) { background: color-mix(in srgb, var(--viz-1) 55%, var(--bg)); }
.lp-mock.in .lp-bars span { transform: scaleY(1); }
.lp-bars span:nth-child(2) { transition-delay: 0.06s; } .lp-bars span:nth-child(3) { transition-delay: 0.12s; }
.lp-bars span:nth-child(4) { transition-delay: 0.18s; } .lp-bars span:nth-child(5) { transition-delay: 0.24s; }
.lp-bars span:nth-child(6) { transition-delay: 0.3s; } .lp-bars span:nth-child(7) { transition-delay: 0.36s; }
.lp-bars span:nth-child(8) { transition-delay: 0.42s; }
.lp-mock-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.lp-mock-rows div { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; }
.lp-mock-rows div + div { border-top: 1px solid var(--line); }
.lp-mock-rows span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-strong); }
.lp-mock-rows em { font-style: normal; color: var(--ink-muted); font-size: 11px; }
.lp-mock .d { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lp-mock .d.g { background: var(--c-green); } .lp-mock .d.b { background: var(--c-blue); } .lp-mock .d.o { background: var(--c-orange); }

.lp-phone { position: absolute; right: -14px; bottom: 0; width: 190px; padding: 12px; border-radius: 22px; background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 10px;
  animation: lp-bob 5s ease-in-out infinite; }
@keyframes lp-bob { 50% { transform: translateY(-10px); } }
.lp-phone-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-strong); }
.lp-phone-card { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; background: var(--gray-50); font-size: 12px; }
.lp-phone-card b { color: var(--ink-strong); font-weight: 600; }
.lp-phone-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--c-green); font-size: 11px; margin-top: 4px; }
.lp-phone-scan { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px;
  background: var(--lp-grad); color: #fff; font-size: 12px; font-weight: 600; }

/* ── Sectors marquee ───────────────────────────────────────────────────── */
.lp-sectors { padding: 8px 0 40px; text-align: center; }
.lp-sectors p { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.lp-marquee { 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-track { display: flex; width: max-content; animation: lp-marquee 40s linear infinite; }
.lp-marquee-track span { padding: 0 28px; font-size: 18px; font-weight: 600; color: var(--gray-500); white-space: nowrap; }
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.lp-sec { padding: 96px 0; }
.lp-alt { background: var(--gray-50); border-block: 1px solid var(--line); }
.lp-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.lp-head h2, .lp-calc h2, .lp-final h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; }
.lp-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-muted); }

/* Goals */
.lp-goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-goal { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.lp-goal:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.lp-goal h3 { font-size: 17px; font-weight: 650; margin: 16px 0 8px; }
.lp-goal p { color: var(--ink-muted); line-height: 1.55; font-size: 14px; }
.lp-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.lp-ic .vl-icon { width: 20px; height: 20px; }
.lp-ic.c1 { color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 13%, var(--bg)); }
.lp-ic.c2 { color: var(--c-orange); background: color-mix(in srgb, var(--c-orange) 13%, var(--bg)); }
.lp-ic.c3 { color: var(--c-green); background: color-mix(in srgb, var(--c-green) 13%, var(--bg)); }
.lp-ic.c4 { color: var(--c-teal); background: color-mix(in srgb, var(--c-teal) 13%, var(--bg)); }
.lp-ic.c5 { color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 13%, var(--bg)); }
.lp-ic.c6 { color: var(--c-pink); background: color-mix(in srgb, var(--c-pink) 13%, var(--bg)); }
.lp-goals-3 { grid-template-columns: repeat(3, 1fr); }

/* Feature tabs */
.lp-feat { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
.lp-feat-list { display: flex; flex-direction: column; gap: 6px; }
.lp-feat-list button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border: 1px solid transparent;
  border-radius: 12px; background: transparent; color: var(--ink); position: relative; overflow: hidden; }
.lp-feat-list button > .vl-icon { width: 20px; height: 20px; color: var(--gray-500); transition: color 0.2s; }
.lp-feat-list button span { display: flex; flex-direction: column; gap: 2px; }
.lp-feat-list b { font-weight: 600; color: var(--ink-strong); font-size: 15px; }
.lp-feat-list small { color: var(--ink-muted); font-size: 13px; }
.lp-feat-list button:hover { background: var(--gray-100); }
.lp-feat-list button[aria-selected="true"] { background: var(--bg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.lp-feat-list button[aria-selected="true"] > .vl-icon { color: var(--brand-to); }
/* Progress bar for the auto-advancing tab */
.lp-feat-list button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--lp-grad); transform-origin: left; animation: lp-progress var(--lp-tab-ms, 6000ms) linear forwards; }
.lp-feat.paused .lp-feat-list button::after { animation-play-state: paused; }
.lp-feat.stopped .lp-feat-list button::after { display: none; }
@keyframes lp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-feat-panels { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 40px; overflow: hidden; min-height: 320px; }
.lp-feat-panels::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -120px; border-radius: 50%;
  background: var(--lp-grad); opacity: 0.12; filter: blur(60px); }
.lp-panel { display: none; position: relative; }
.lp-panel.on { display: block; animation: lp-in 0.45s ease; }
@keyframes lp-in { from { opacity: 0; transform: translateY(12px); } }
.lp-panel h3 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.lp-panel p { font-size: 16px; line-height: 1.65; color: var(--ink-muted); max-width: 560px; }
.lp-panel ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.lp-panel li { display: flex; align-items: center; gap: 10px; color: var(--ink-strong); }
.lp-panel li .vl-icon { color: var(--on-solid); background: var(--lp-grad); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
html[data-theme="dark"] .lp-panel li .vl-icon { color: #fff; }

.lp-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.lp-mini > div { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.lp-mini .vl-icon { width: 20px; height: 20px; color: var(--brand-to); margin-bottom: 6px; }
.lp-mini b { color: var(--ink-strong); font-weight: 600; }
.lp-mini span { color: var(--ink-muted); font-size: 13px; }

/* Steps */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.lp-steps::before { content: ""; position: absolute; top: 23px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.lp-steps::after { content: ""; position: absolute; top: 23px; left: 12%; right: 12%; height: 2px; background: var(--lp-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s ease 0.3s; }
.lp-steps.in::after { transform: scaleX(1); }
.lp-steps li { position: relative; z-index: 1; text-align: center; }
.lp-num { width: 48px; height: 48px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-weight: 700;
  font-size: 18px; color: #fff; background: var(--lp-grad); box-shadow: 0 0 0 8px var(--bg); }
.lp-steps h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.lp-steps p { color: var(--ink-muted); font-size: 14px; line-height: 1.55; max-width: 240px; margin: 0 auto; }

/* Savings calculator */
.lp-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-calc-copy p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.lp-calc-copy .lp-note { font-size: 13px; color: var(--gray-500); }
.lp-calc-box { padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 22px; }
.lp-calc-box label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink); }
.lp-calc-box output { font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.lp-calc-box input[type="range"] { width: 100%; accent-color: var(--brand-to); }
.lp-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-calc-out > div { padding: 14px 16px; border-radius: 12px; background: var(--gray-50); display: flex; flex-direction: column; gap: 4px; }
.lp-calc-out small { font-size: 12px; color: var(--ink-muted); }
.lp-calc-out strong { font-size: 28px; font-weight: 750; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Before / after */
.lp-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.lp-vs-col { padding: 28px; border-radius: 16px; border: 1px solid var(--line); }
.lp-vs-col h3 { font-size: 18px; font-weight: 650; margin-bottom: 18px; }
.lp-vs-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-vs-col li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.lp-vs-col li .vl-icon { margin-top: 3px; }
.lp-before { background: var(--gray-50); color: var(--ink-muted); }
.lp-before .vl-icon { color: var(--c-red); }
.lp-after { position: relative; background: var(--bg); border-color: transparent;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--brand-to) 55%, transparent), var(--shadow-lg); }
.lp-after li { color: var(--ink-strong); }
.lp-after .vl-icon { color: var(--c-green); }

/* FAQ */
.lp-faq { max-width: 760px; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--ink-strong); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .vl-icon { transition: transform 0.2s; color: var(--ink-muted); }
.lp-faq details[open] summary .vl-icon { transform: rotate(180deg); }
.lp-faq details p { padding: 0 0 20px; color: var(--ink-muted); line-height: 1.65; }

/* Final CTA: always brand gradient with white text in both themes. */
.lp-final { padding: 96px 0; text-align: center; color: #fff; background: var(--lp-grad); position: relative; overflow: hidden; }
.lp-final::before { content: ""; position: absolute; inset: 0; opacity: 0.25;
  background: radial-gradient(circle at 20% 20%, #fff 0, transparent 40%), radial-gradient(circle at 80% 90%, #000 0, transparent 45%); }
.lp-final .lp-wrap { position: relative; }
.lp-final h2 { color: #fff; max-width: 720px; margin: 0 auto; }
.lp-final p { margin: 16px auto 0; font-size: 17px; opacity: 0.9; max-width: 560px; }
.lp-final .lp-cta { justify-content: center; }
.lp .lp-btn-light { background: #fff; color: #171717; }
.lp .lp-btn-light:hover { background: #f3f3f3; color: #171717; }
.lp .lp-btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.lp .lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* «Software a medida» band on the front page */
.lp-more-sec { padding-top: 0; }
.lp-more { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 40px 44px; border-radius: 20px;
  background: color-mix(in srgb, var(--brand-to) 6%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand-to) 24%, var(--line)); }
.lp-more h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; }
.lp-more-copy p { margin: 12px 0 24px; font-size: 16px; line-height: 1.6; color: var(--ink-muted); max-width: 480px; }
.lp-more-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-more-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); font-weight: 550; color: var(--ink-strong); }
.lp-more-list .lp-ic { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.lp-more-list .lp-ic .vl-icon { width: 18px; height: 18px; }

/* ── «Software a medida» page ─────────────────────────────────────────── */
/* Hero: an automation whose steps tick one after the other. */
.lp-flow-steps { list-style: none; margin: 0; padding: 6px 0; }
.lp-flow-steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.lp-flow-steps li + li { border-top: 1px solid var(--line-soft); }
.lp-flow-steps li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-flow-steps b { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.lp-flow-steps small { font-size: 12px; color: var(--ink-muted); }
.lp-flow-steps .lp-ic { flex-shrink: 0; }
.lp-flow-steps li > .vl-icon:last-child { width: 20px; height: 20px; flex-shrink: 0; color: var(--c-green);
  opacity: 0; transform: scale(0.5); transition: opacity 0.35s, transform 0.35s cubic-bezier(.2, 1.6, .4, 1); }
.lp-mock.in .lp-flow-steps li > .vl-icon:last-child,
html:not(.lp-js) .lp-flow-steps li > .vl-icon:last-child { opacity: 1; transform: none; }
.lp-flow-steps li:nth-child(1) > .vl-icon:last-child { transition-delay: 0.5s; }
.lp-flow-steps li:nth-child(2) > .vl-icon:last-child { transition-delay: 1.1s; }
.lp-flow-steps li:nth-child(3) > .vl-icon:last-child { transition-delay: 1.7s; }
.lp-flow-steps li:nth-child(4) > .vl-icon:last-child { transition-delay: 2.3s; }
.lp-flow { padding-bottom: 136px; }
.lp-flow .lp-mock-win { margin-right: 40px; }
.lp-flow-note { width: 220px; right: 0; bottom: 0; }
.lp-flow-note .lp-phone-card b { font-weight: 500; }

/* Examples: what a customer says → what we build. */
.lp-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-case { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.lp-case-q { font-size: 16px; line-height: 1.5; font-weight: 550; color: var(--ink-strong); }
.lp-case-a { display: flex; gap: 8px; align-items: flex-start; margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.lp-case-a .vl-icon { color: var(--c-green); margin-top: 2px; flex-shrink: 0; }

/* Our own product as proof. */
.lp-proof { list-style: none; margin: 0; padding: 6px 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.lp-proof li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.lp-proof li + li { border-top: 1px solid var(--line-soft); }
.lp-proof li > .vl-icon { width: 20px; height: 20px; color: var(--brand-to); flex-shrink: 0; margin-top: 1px; }
.lp-proof b { display: block; color: var(--ink-strong); font-weight: 600; font-size: 15px; }
.lp .lp-final-mail { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.lp-foot { padding: 48px 0 40px; }
.lp-foot-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lp-foot p { color: var(--ink-muted); font-size: 14px; }
.lp-foot .vl-legal-links { margin-top: 4px; font-size: 13px; }
.lp-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; }
.lp-foot-links a { color: var(--ink); font-weight: 500; }
.lp-foot-links a:hover { color: var(--accent-ink); }
.lp-foot small { color: var(--gray-500); font-size: 12px; }

/* ── Scroll reveal (only when JS runs) ─────────────────────────────────── */
.lp-js .lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.lp-js .lp-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .lp-js .lp-reveal { opacity: 1; transform: none; }
  .lp-bars span, .lp-steps::after { transform: none; }
  .lp-flow-steps li > .vl-icon:last-child { opacity: 1; transform: none; }
  html:has(.lp) { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
/* The section links need the full width: below it the header keeps only the logo and the buttons. */
@media (max-width: 1259.98px) {
  .lp-nav-links { display: none; }
  .lp-nav-progress { display: block; }
}
@media (max-width: 991.98px) {
  .lp-hero-in, .lp-calc { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero { padding-top: 32px; }
  .lp-goals, .lp-mini, .lp-cases { grid-template-columns: 1fr 1fr; }
  .lp-more { grid-template-columns: 1fr; gap: 28px; }
  .lp-feat { grid-template-columns: 1fr; }
  .lp-feat-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 4px; }
  .lp-feat-list button { flex-shrink: 0; }
  .lp-feat-list small { display: none; }
  .lp-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .lp-steps::before, .lp-steps::after { display: none; }
  .lp-mock-win { transform: none; }
}
@media (max-width: 575.98px) {
  .lp-wrap { padding: 0 16px; }
  .lp-hide-sm { display: none !important; }
  .lp-show-sm { display: inline; }
  .lp-nav-in { gap: 8px; }
  .lp-logo .vl-logo { height: 20px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-lead { font-size: 16px; }
  .lp-cta .vl-btn { width: 100%; }
  .lp-sec, .lp-final { padding: 64px 0; }
  .lp-goals, .lp-mini, .lp-steps, .lp-vs, .lp-calc-out, .lp-cases { grid-template-columns: 1fr; }
  .lp-more { padding: 24px 20px; }
  .lp-flow { padding-bottom: 150px; }
  .lp-flow .lp-mock-win { margin-right: 0; }
  .lp-flow-steps li { padding: 14px 16px; gap: 12px; }
  .lp-flow-note { width: 180px; right: 4px; }
  .lp-proof { padding: 4px 18px; }
  .lp-feat-list { margin: 0 -16px; padding: 0 16px 4px; }
  .lp-feat-panels { padding: 24px; min-height: 0; }
  .lp-panel h3 { font-size: 21px; }
  .lp-mock-side { display: none; }
  .lp-mock-kpis strong { font-size: 16px; }
  .lp-phone { right: 4px; width: 160px; }
  .lp-calc-box { padding: 20px; }
  .lp-head { margin-bottom: 32px; }
}
