/* ==========================================================================
   Landing page — WhiteCloud
   Rediseño: una sola vista continua (scroll, sin otras páginas), capitulada
   tipo alternancia clara/oscura, sin fotografía de stock. La firma visual es
   la "constelación" (red de nodos = los 6 productos convergiendo en un nodo
   central "WhiteCloud"), 100% código (SVG+CSS), coherente con el mismo motivo
   ya usado en los fondos del login. Paleta/tipografía son namespace propio
   (--lp-*), reutilizando tokens de color del DS (--wc-brand-*, --wc-space-*,
   --wc-page-gutter) donde tiene sentido, sin acoplarse a las clases de
   componentes del back-office (.wc-btn, .wc-card, etc.) — ver nota histórica
   sobre .landing-btn más abajo.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* Fuente de marca del logotipo oficial ("WhiteCloud" del lockup). Es el
   mismo alba.regular.ttf que autohospedaba el sitio WordPress viejo —
   solo para el wordmark, NUNCA para titulares/cuerpo. */
@font-face {
  font-family: 'Alba';
  src: url('../fonts/alba.regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ink/paper alternation (hero + contacto son "ink"; los capítulos de
     producto son "paper/surface") — deliberadamente NO todo-oscuro: la
     alternancia es lo que da el ritmo de "descubrimiento por scroll". */
  --lp-ink:          #070B1A;
  --lp-ink-soft:     #101A33;
  --lp-ink-border:   rgba(255, 255, 255, 0.10);
  --lp-paper:        #F7F8FC;
  --lp-surface:      #FFFFFF;
  --lp-border-soft:  rgba(7, 20, 55, 0.08);

  /* El azul de marca ya usado en portal/login, aquí como ACENTO (nunca
     fondo completo) — mantiene coherencia visual con el resto del producto. */
  --lp-signal:       var(--wc-brand-500);
  --lp-signal-strong: var(--wc-brand-600);
  --lp-signal-soft:  #7CB4FF;

  --lp-graphite:     #4B5675;
  --lp-graphite-soft:#8792AC;

  --lp-font-display: 'Space Grotesk', var(--wc-font-sans);
  --lp-font-body:    'IBM Plex Sans', var(--wc-font-sans);
}

[data-bs-theme="dark"] {
  --lp-paper:        #0E1526;
  --lp-surface:      #131B2E;
  --lp-border-soft:  rgba(255, 255, 255, 0.08);
  --lp-graphite:     #A9B4D0;
  --lp-graphite-soft:#7C88A8;
}

/* .wc-scope only sets font/color, not margin/background — reset here so the
   page isn't inset with the default 8px body margin (white border + a few
   extra px of scroll beyond the viewport). Same recurring bug already fixed
   in the portal shell and the login bare shell. */
body { margin: 0; background: var(--lp-paper); }

/* .wc-scope (DS) sets Inter as the base font-family; the landing marketing
   face intentionally diverges (Space Grotesk/IBM Plex) from the admin
   product's Inter, so override at the body element explicitly. */
body.wc-scope { font-family: var(--lp-font-body); color: var(--lp-graphite); line-height: 1.6; }

.wc-scope h1, .wc-scope h2, .wc-scope h3 {
  font-family: var(--lp-font-display);
  color: var(--lp-ink);
  letter-spacing: -0.01em;
  margin: 0;
}
[data-bs-theme="dark"] .wc-scope h1,
[data-bs-theme="dark"] .wc-scope h2,
[data-bs-theme="dark"] .wc-scope h3 { color: #F2F4FB; }

/* Skip-to-content: offscreen until focused (keyboard a11y). */
.lp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lp-signal);
  color: #fff;
  padding: var(--wc-space-2) var(--wc-space-4);
  border-radius: 0 0 var(--wc-radius-md) 0;
  z-index: 2000;
  text-decoration: none;
  font-family: var(--lp-font-body);
}
.lp-skip:focus { left: 0; }

/* Small mono utility label, used only for genuinely technical/eyebrow
   labeling (section eyebrows, scroll cue) — never as decorative numbering. */
.lp-eyebrow {
  font-family: var(--wc-font-mono);
  font-size: var(--wc-fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--wc-space-3);
}
.lp-eyebrow--dark { color: var(--lp-signal-strong); }
[data-bs-theme="dark"] .lp-eyebrow--dark { color: var(--lp-signal-soft); }

/* ---------- Nav --------------------------------------------------------- */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wc-space-3) var(--wc-space-4);
  padding: var(--wc-space-3) var(--wc-page-gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--wc-ease), border-color .25s var(--wc-ease), backdrop-filter .25s var(--wc-ease);
}
.lp-nav.is-condensed {
  background: rgba(7, 11, 26, 0.72);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--lp-ink-border);
}
/* Lockup horizontal del logo oficial: ícono nube (raster oficial) +
   "WhiteCloud" como texto vivo en Alba — mismo wordmark del lockup,
   nítido a cualquier DPI. El nav es siempre ink, así que blanco fijo. */
.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
}
.lp-logo__mark { width: 30px; height: 30px; display: block; }
.lp-logo__word {
  font-family: 'Alba', var(--lp-font-display), sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.lp-nav__links { display: flex; gap: var(--wc-space-5); margin-left: var(--wc-space-3); }
.lp-nav__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: var(--wc-fs-body);
  font-family: var(--lp-font-body);
}
.lp-nav__links a:hover { color: #fff; }
.lp-nav .landing-btn { margin-left: auto; }

/* Theme toggle (sun/moon icon button) */
.lp-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wc-control-h, 36px);
  height: var(--wc-control-h, 36px);
  border: 1px solid var(--lp-ink-border);
  border-radius: var(--wc-radius-md);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lp-theme-toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lp-theme-toggle svg { width: 18px; height: 18px; display: block; }
.lp-theme-toggle .wc-ic-sun { display: none; }
[data-bs-theme="dark"] .lp-theme-toggle .wc-ic-sun { display: block; }
[data-bs-theme="dark"] .lp-theme-toggle .wc-ic-moon { display: none; }

/* ---------- Hero (ink chapter, signature constellation) ------------------ */
.lp-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--lp-ink);
  color: #fff;
  padding: 96px var(--wc-page-gutter) 64px;
}
.lp-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.lp-constellation__lines path {
  fill: none;
  stroke: rgba(124, 180, 255, 0.28);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  animation: lp-flow 9s linear infinite;
}
@keyframes lp-flow { to { stroke-dashoffset: -100; } }
.lp-constellation__node circle { fill: var(--lp-signal-soft); }
.lp-constellation__node text {
  font-family: var(--wc-font-mono);
  font-size: 13px;
  fill: rgba(255, 255, 255, 0.55);
}
.lp-constellation__node { animation: lp-bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lp-constellation__node--1 { animation-duration: 6.5s; }
.lp-constellation__node--2 { animation-duration: 8s;   animation-delay: -1.2s; }
.lp-constellation__node--3 { animation-duration: 7.2s; animation-delay: -3.4s; }
.lp-constellation__node--4 { animation-duration: 9s;   animation-delay: -.6s; }
.lp-constellation__node--5 { animation-duration: 6.8s; animation-delay: -2.1s; }
.lp-constellation__node--6 { animation-duration: 7.6s; animation-delay: -4.3s; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lp-constellation__glow { fill: var(--lp-signal); opacity: 0.25; filter: blur(14px); }
.lp-constellation__center { fill: var(--lp-signal); }
.lp-constellation--echo { opacity: 0.5; }
.lp-constellation--echo .lp-constellation__node,
.lp-constellation--echo .lp-constellation__glow,
.lp-constellation--echo .lp-constellation__center { display: none; }

.lp-hero > *:not(.lp-constellation) { position: relative; z-index: 1; }
.lp-hero h1 {
  /* Explicit, theme-independent: .lp-hero is always an "ink" chapter (both
     themes), so this must not depend on the .wc-scope h1 base rule (which
     targets the paper chapters) or the dark-mode override happening to
     also work here — it accidentally did, in light mode it did not. */
  color: #fff;
  font-size: clamp(34px, 3vw + 22px, 60px);
  font-weight: 600;
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 0 var(--wc-space-4);
}
.lp-hero__lede {
  max-width: 46ch;
  margin: 0 auto var(--wc-space-6);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.lp-hero__cta { display: flex; gap: var(--wc-space-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--wc-space-8); }

.lp-scrollcue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-family: var(--wc-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-scrollcue svg { animation: lp-cue 1.8s ease-in-out infinite; }
@keyframes lp-cue { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---------- Chapters / product beats ------------------------------------- */
.lp-chapter {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px var(--wc-page-gutter);
}
.lp-chapter--paper { background: var(--lp-surface); max-width: none; }
.lp-chapter--paper > * { max-width: 980px; margin-left: auto; margin-right: auto; }

.lp-chapter__intro {
  font-size: clamp(24px, 1.6vw + 18px, 34px);
  font-weight: 600;
  max-width: 20ch;
  margin-bottom: var(--wc-space-8);
}

.lp-beats { display: flex; flex-direction: column; gap: 56px; }
.lp-beat {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: var(--wc-space-5);
  align-items: start;
  max-width: 640px;
}
.lp-beat h3 { font-size: 22px; font-weight: 600; margin-bottom: var(--wc-space-2); grid-column: 2; }
.lp-beat p { grid-column: 2; margin: 0; font-size: 16px; }
/* Trust chip (e.g. "Meta Tech Provider oficial") — scoped as .lp-beat
   descendant so it out-specifies the .lp-beat p base rule above. */
.lp-beat .lp-beat__tag {
  justify-self: start;
  margin-top: var(--wc-space-3);
  padding: 4px 10px;
  border: 1px solid var(--lp-signal-strong);
  border-radius: var(--wc-radius-pill);
  font-family: var(--wc-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-signal-strong);
}
[data-bs-theme="dark"] .lp-beat .lp-beat__tag { color: var(--lp-signal-soft); border-color: var(--lp-signal-soft); }
.lp-glyph { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 40px; color: var(--lp-graphite-soft); }

/* Glyphs — bespoke per product, coded (no stock icon font, no raster images) */
.lp-glyph__path { fill: none; stroke: var(--lp-border-soft); stroke-width: 2; }
.lp-glyph__dot--route {
  fill: var(--lp-signal);
  offset-path: path('M4 30 C 16 30, 18 10, 30 10 S 46 30, 60 18');
  animation: lp-route 3.4s var(--wc-ease) infinite;
}
@keyframes lp-route { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.lp-glyph__bubble { fill: none; stroke: var(--lp-border-soft); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.lp-glyph__bubble--a { animation: lp-ping 2.6s ease-in-out infinite; }
.lp-glyph__bubble--b { animation: lp-ping 2.6s ease-in-out infinite; animation-delay: 1.3s; }
@keyframes lp-ping { 0%, 100% { stroke: var(--lp-border-soft); } 50% { stroke: var(--lp-signal-soft); } }

.lp-glyph__bar { fill: var(--lp-border-soft); transform-box: fill-box; transform-origin: bottom; animation: lp-wave 1.6s ease-in-out infinite; }
.lp-glyph__bar:nth-child(1) { animation-delay: -1.2s; }
.lp-glyph__bar:nth-child(2) { animation-delay: -0.9s; }
.lp-glyph__bar:nth-child(3) { animation-delay: -0.6s; }
.lp-glyph__bar:nth-child(4) { animation-delay: -0.3s; }
.lp-glyph__bar:nth-child(5) { animation-delay: 0s; }
@keyframes lp-wave { 0%, 100% { transform: scaleY(0.55); fill: var(--lp-border-soft); } 50% { transform: scaleY(1); fill: var(--lp-signal-soft); } }

.lp-glyph__ticket { fill: none; stroke: var(--lp-border-soft); stroke-width: 2; }
.lp-glyph__perf { stroke: var(--lp-signal-soft); stroke-width: 2; animation: lp-perf 3s ease-in-out infinite; }
@keyframes lp-perf { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.lp-glyph__bracket { fill: none; stroke: var(--lp-border-soft); stroke-width: 2; }
.lp-glyph__cursor { fill: var(--lp-signal); animation: lp-blink 1s step-end infinite; }
@keyframes lp-blink { 50% { opacity: 0; } }

.lp-glyph__cloud { fill: none; stroke: var(--lp-border-soft); stroke-width: 2; stroke-linejoin: round; }
.lp-glyph__uptime { fill: var(--lp-signal); }
.lp-glyph__uptime-ring { fill: none; stroke: var(--lp-signal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: lp-ring 2.2s ease-out infinite; }
@keyframes lp-ring { 0% { transform: scale(0.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Certificación de transporte (Resolución 6225) ----------------
   Sub-bloque del beat "Apps de transporte": taxi line-art + modalidades +
   sello-enlace a la Resolución 6225 de Mintransporte (PDF oficial). El sello
   es SVG recreado (no raster) para mantener el lenguaje gráfico de la página. */
.lp-beat--cert { max-width: 760px; }
.lp-cert {
  grid-column: 1 / -1;
  margin-top: var(--wc-space-5);
  padding: var(--wc-space-5);
  border: 1px solid var(--lp-border-soft);
  border-radius: var(--wc-radius-lg);
  background: var(--lp-surface);
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: var(--wc-space-5);
  align-items: center;
}
.lp-cert__taxi { width: 150px; height: 78px; }
.lp-cert__taxi-body, .lp-cert__taxi-window { fill: none; stroke: var(--lp-graphite-soft); stroke-width: 2; stroke-linecap: round; }
.lp-cert__taxi-sign { fill: var(--lp-signal); }
.lp-cert__taxi-checkers rect { fill: var(--lp-border-soft); }
.lp-cert__taxi-checkers rect:nth-child(odd) { fill: var(--lp-signal-soft); }
.lp-cert__taxi-wheel { fill: var(--lp-surface); stroke: var(--lp-graphite-soft); stroke-width: 2; }
.lp-cert__taxi-road { stroke: var(--lp-border-soft); stroke-width: 2; stroke-dasharray: 6 8; }

.lp-cert__body h4 {
  font-family: var(--lp-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-ink);
  margin: 0 0 var(--wc-space-2);
}
[data-bs-theme="dark"] .lp-cert__body h4 { color: #F2F4FB; }
.lp-cert__body ul { margin: 0 0 var(--wc-space-2); padding-left: var(--wc-space-5); font-size: 14px; }
.lp-cert__body li { margin-bottom: 2px; }
.lp-cert__note { margin: 0; font-size: 13px; color: var(--lp-graphite-soft); }

.lp-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wc-space-2);
  text-decoration: none;
  color: var(--lp-graphite);
  font-family: var(--wc-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 150px;
  transition: transform .18s var(--wc-ease);
}
.lp-seal:hover { transform: rotate(-3deg) scale(1.04); }
.lp-seal svg { width: 104px; height: 104px; }
.lp-seal__edge { fill: none; stroke: var(--lp-graphite-soft); stroke-width: 2.5; stroke-dasharray: 2.5 3.5; }
.lp-seal__ring { fill: none; stroke: var(--lp-graphite-soft); stroke-width: 1.6; }
.lp-seal__word { font-family: var(--wc-font-mono); font-size: 12.5px; letter-spacing: 0.22em; fill: var(--lp-graphite); }
.lp-seal__num { font-family: var(--wc-font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0.18em; fill: var(--lp-graphite); }
.lp-seal__check { fill: none; stroke: var(--wc-success-500); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.lp-seal__star { fill: var(--lp-graphite-soft); }
.lp-seal span { text-decoration: underline; text-decoration-color: var(--lp-border-soft); text-underline-offset: 3px; }
.lp-seal:hover span { color: var(--lp-signal-strong); text-decoration-color: currentColor; }
[data-bs-theme="dark"] .lp-seal:hover span { color: var(--lp-signal-soft); }

/* ---------- Equipo -------------------------------------------------------- */
.lp-team__lede { max-width: 56ch; margin: 0 0 var(--wc-space-8); font-size: 16px; }
.lp-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wc-space-6); }
.lp-team__member h3 { font-size: 19px; font-weight: 600; margin: var(--wc-space-3) 0 2px; }
.lp-team__role {
  font-family: var(--wc-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-signal-strong);
  margin: 0 0 var(--wc-space-2);
}
[data-bs-theme="dark"] .lp-team__role { color: var(--lp-signal-soft); }
.lp-team__member > p:last-child { margin: 0; font-size: 15px; }
.lp-team__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lp-ink);
  color: var(--lp-signal-soft);
  font-family: var(--wc-font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
}
[data-bs-theme="dark"] .lp-team__avatar { background: var(--lp-signal-strong); color: #fff; }

/* ---------- FAQ (native details/summary, sin JS) --------------------------- */
.lp-faq { max-width: 640px; display: flex; flex-direction: column; gap: var(--wc-space-3); }
.lp-faq__item {
  border: 1px solid var(--lp-border-soft);
  border-radius: var(--wc-radius-lg);
  background: var(--lp-paper);
  padding: 0;
}
.lp-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--wc-space-4) var(--wc-space-5);
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--lp-ink);
  position: relative;
  padding-right: 44px;
}
[data-bs-theme="dark"] .lp-faq__item summary { color: #F2F4FB; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after {
  content: '+';
  position: absolute;
  right: var(--wc-space-5);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--wc-font-mono);
  font-size: 18px;
  color: var(--lp-signal-strong);
  transition: transform .2s var(--wc-ease);
}
[data-bs-theme="dark"] .lp-faq__item summary::after { color: var(--lp-signal-soft); }
.lp-faq__item[open] summary::after { content: '−'; }
.lp-faq__item > p { margin: 0; padding: 0 var(--wc-space-5) var(--wc-space-4); font-size: 15px; }
.lp-faq__item a { color: var(--lp-signal-strong); }
[data-bs-theme="dark"] .lp-faq__item a { color: var(--lp-signal-soft); }

/* ---------- Document pages (privacidad.html) ------------------------------
   Reading-column layout for legal/document pages. The nav is hardcoded
   is-condensed + data-static (solid ink bar, no hero to be transparent
   over; landing.js skips the scroll logic for it). */
.lp-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 130px var(--wc-page-gutter) 72px;
}
.lp-doc h1 {
  font-size: clamp(26px, 1.8vw + 18px, 36px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--wc-space-2);
}
.lp-doc__updated {
  font-family: var(--wc-font-mono);
  font-size: 12px;
  color: var(--lp-graphite-soft);
  margin: 0 0 var(--wc-space-8);
}
.lp-doc h2 {
  font-size: 20px;
  font-weight: 600;
  margin: var(--wc-space-8) 0 var(--wc-space-3);
}
.lp-doc p { margin: 0 0 var(--wc-space-4); font-size: 15.5px; }
.lp-doc ul { margin: 0 0 var(--wc-space-4); padding-left: var(--wc-space-6); font-size: 15.5px; }
.lp-doc li { margin-bottom: var(--wc-space-2); }
.lp-doc a { color: var(--lp-signal-strong); }
[data-bs-theme="dark"] .lp-doc a { color: var(--lp-signal-soft); }

/* ---------- Why WhiteCloud ------------------------------------------------ */
.lp-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wc-space-6); }
.lp-reason h3 { font-size: 19px; font-weight: 600; margin-bottom: var(--wc-space-2); }
.lp-reason p { margin: 0; font-size: 15px; }

/* ---------- Clients marquee (real app icons, curated in data/clientes.json) */
.lp-marquee {
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-marquee__track {
  display: flex;
  align-items: center;
  gap: var(--wc-space-5);
  flex-shrink: 0;
  padding-right: var(--wc-space-5);
  animation: lp-marquee 42s linear infinite;
}
@keyframes lp-marquee { to { transform: translateX(-100%); } }
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
.lp-logo-img {
  width: 56px;
  height: 56px;
  border-radius: var(--wc-radius-lg);
  border: 1px solid var(--lp-border-soft);
  background: var(--lp-surface);
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- Contact (ink, bookend of the hero) ---------------------------- */
.lp-contact {
  position: relative;
  overflow: hidden;
  background: var(--lp-ink);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 96px var(--wc-page-gutter);
}
/* :not() keeps the echo constellation out of this rule — same specificity,
   later in the file, so a bare `> *` would override the svg's
   position:absolute and drop it into flow (~800px of empty space). */
.lp-contact > *:not(.lp-constellation) { position: relative; z-index: 1; }
.lp-contact h2 { color: #fff; font-size: clamp(28px, 2vw + 20px, 42px); margin-bottom: var(--wc-space-4); }
.lp-contact__lede { font-size: 17px; margin: 0 0 var(--wc-space-5); }
.lp-contact__lede a { color: var(--lp-signal-soft); }
.lp-contact__addr {
  margin: var(--wc-space-6) 0 0;
  font-family: var(--wc-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
.lp-contact .lp-constellation--echo { top: -20%; }

/* ---------- Footer ---------------------------------------------------- */
.lp-footer {
  text-align: center;
  padding: var(--wc-space-5) var(--wc-page-gutter);
  /* Fixed dark navy bar regardless of theme (like the hero) — NOT
     var(--wc-gray-900)/var(--wc-gray-400): the DS inverts those scale tokens
     in dark mode (so semantic aliases like --text-strong flip), which would
     turn this "always dark" footer light in dark theme. */
  background: #071437;
  color: #B5B5C3;
  font-size: var(--wc-fs-caption);
  font-family: var(--lp-font-body);
}
.lp-footer a { color: var(--lp-signal-soft); }
/* Lockup oficial completo (nube + wordmark + tagline) sobre el navy del
   footer — la versión blanca del sitio viejo, a resolución web. */
.lp-footer__logo { display: block; width: 132px; height: auto; margin: 0 auto var(--wc-space-4); opacity: 0.92; }

/* ---------- Botones de landing (namespace propio) -----------------------
   El DS real no garantiza fallback inline (asume que sus tokens siempre
   estan disponibles bajo .wc-scope), asi que aqui si se agregan valores
   hex de respaldo por seguridad, iguales a los reales del DS.
   -------------------------------------------------------------------- */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wc-space-2, 8px);
  height: 44px;
  padding: 0 var(--wc-space-5, 20px);
  border-radius: var(--wc-radius-pill, 999px);
  border: 1px solid transparent;
  font-family: var(--lp-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.landing-btn:active { transform: scale(0.98); }

.landing-btn--primary {
  background: var(--lp-signal, #1B84FF);
  color: #fff;
  border-color: var(--lp-signal, #1B84FF);
}
.landing-btn--primary:hover { background: var(--lp-signal-strong, #056EE9); border-color: var(--lp-signal-strong, #056EE9); }

.landing-btn--light {
  background: #fff;
  color: var(--lp-signal-strong, #056EE9);
  border-color: #fff;
}
.landing-btn--light:hover { background: var(--wc-brand-50, #E9F3FF); }

.landing-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.landing-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Scroll reveal -------------------------------------------------
   [data-reveal] elements fade+rise into place once scrolled into view
   (landing.js toggles .is-visible via IntersectionObserver). Staggered
   within a beat/reason group via nth-child so a chapter cascades in. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--wc-ease), transform .6s var(--wc-ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.lp-beats .lp-beat:nth-child(2) { transition-delay: .05s; }
.lp-beats .lp-beat:nth-child(3) { transition-delay: .1s; }
.lp-beats .lp-beat:nth-child(4) { transition-delay: .05s; }
.lp-beats .lp-beat:nth-child(5) { transition-delay: .1s; }
.lp-beats .lp-beat:nth-child(6) { transition-delay: .05s; }
.lp-reasons .lp-reason:nth-child(2) { transition-delay: .08s; }
.lp-reasons .lp-reason:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .lp-constellation__lines path,
  .lp-constellation__node,
  .lp-scrollcue svg,
  .lp-glyph__dot--route,
  .lp-glyph__bubble--a,
  .lp-glyph__bubble--b,
  .lp-glyph__bar,
  .lp-glyph__perf,
  .lp-glyph__cursor,
  .lp-glyph__uptime-ring,
  .lp-marquee__track { animation: none !important; }
  .lp-marquee__track:last-child { display: none; }
  .lp-marquee { overflow-x: auto; }
  [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive (mobile-first overrides) --------------------------- */
@media (max-width: 640px) {
  .lp-nav { padding: var(--wc-space-3) var(--wc-page-gutter); }
  .lp-logo { order: 1; }
  .lp-nav .landing-btn { order: 2; margin-left: auto; height: 36px; padding: 0 var(--wc-space-4); font-size: 13px; }
  .lp-theme-toggle { order: 3; }
  .lp-nav__links {
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: center;
    gap: var(--wc-space-4);
  }
  .lp-hero { min-height: 88vh; padding-top: 72px; }
  .lp-hero h1 { font-size: 30px; }
  .lp-hero__cta .landing-btn { width: 100%; }
  .lp-constellation__node text { display: none; }
  .lp-beat { grid-template-columns: 48px 1fr; column-gap: var(--wc-space-4); }
  .lp-glyph { width: 48px; height: 32px; }
  .lp-reasons { grid-template-columns: 1fr; gap: var(--wc-space-5); }
  .lp-chapter { padding: 48px var(--wc-page-gutter); }
  /* Cert block: stacked and centered on mobile */
  .lp-cert { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lp-cert__body ul { text-align: left; }
  .lp-team { grid-template-columns: 1fr; }
}
