/* Vertex Logic landing — estructura tipo suite SaaS, marca propia (sin púrpura) */
:root {
  --lp-ink: #0b1a2e;
  --lp-ink-soft: #1e3044;
  --lp-muted: #3d5166;
  --lp-paper: #f5f7fa;
  --lp-paper-2: #eef2f6;
  --lp-white: #ffffff;
  --lp-dark: #071018;
  --lp-dark-2: #0c1824;
  --lp-line: rgba(11, 26, 46, 0.1);
  --lp-line-dark: rgba(180, 210, 230, 0.22);
  --lp-accent: #d4a85c;
  --lp-accent-2: #1f6f8b;
  --lp-ok: #2f7d62;
  --lp-bad: #b84a4a;
  --lp-font-display: "Syne", system-ui, sans-serif;
  --lp-font: "Manrope", system-ui, sans-serif;
  /* texto sobre fondos oscuros — contraste WCAG alto */
  --lp-on-dark: #ffffff;
  --lp-on-dark-soft: #e8eef4;
  --lp-on-dark-muted: #c5d4e2;
  --lp-safe-top: env(safe-area-inset-top, 0px);
  --lp-safe-right: env(safe-area-inset-right, 0px);
  --lp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --lp-safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.lp {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--lp-ink);
  background: var(--lp-white);
  font-family: var(--lp-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: var(--lp-safe-left);
  padding-right: var(--lp-safe-right);
}

a { color: var(--lp-accent-2); text-underline-offset: 3px; }
a:hover { color: #155a72; }

.lp-skip {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: #000; padding: 8px 12px; z-index: 100;
}
.lp-skip:focus { left: 12px; top: 12px; }

.lp-announce {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: center;
  padding: 10px 16px;
  padding-top: max(10px, var(--lp-safe-top));
  background: var(--lp-dark);
  color: var(--lp-on-dark-soft);
  font-size: 0.9rem; font-weight: 600;
  text-align: center;
}
.lp-announce a {
  color: #f0d59a;
  text-decoration: none;
  border: 1px solid rgba(240, 213, 154, 0.55);
  padding: 6px 14px; border-radius: 999px;
  min-height: 36px;
  display: inline-flex; align-items: center;
}
.lp-announce a:hover { background: rgba(201, 149, 69, 0.18); color: #ffe6b0; }

.lp-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--lp-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lp-mark img { display: block; height: 30px; width: auto; }
.lp-nav { display: none; gap: 22px; margin-left: 8px; }
.lp-nav a {
  color: var(--lp-ink-soft); text-decoration: none;
  font-size: 0.92rem; font-weight: 650;
}
.lp-nav a:hover { color: var(--lp-ink); }
@media (min-width: 920px) { .lp-nav { display: flex; } }

.lp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-link-demo {
  display: none; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: var(--lp-ink);
  padding: 8px 12px;
}
@media (min-width: 720px) { .lp-link-demo { display: inline; } }

.lp-access { position: relative; }
.lp-access-toggle {
  appearance: none; cursor: pointer;
  border: 1px solid var(--lp-line);
  background: var(--lp-ink); color: #fff;
  font: 650 0.88rem var(--lp-font);
  padding: 8px 14px; border-radius: 999px;
}
.lp-access-toggle:hover,
.lp-access-toggle[aria-expanded="true"] { background: #13263a; }
.lp-access-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(260px, 86vw); padding: 14px;
  border-radius: 14px; border: 1px solid var(--lp-line);
  background: #fff; box-shadow: 0 18px 40px rgba(11, 26, 46, 0.16);
  display: grid; gap: 8px;
}
.lp-access-panel[hidden] { display: none !important; }
.lp-access-label {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lp-muted);
}
.lp-access-go {
  display: block; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, #c99545, #a8742e);
  color: #14100a !important; font-weight: 700;
  padding: 10px 12px; border-radius: 10px;
}
.lp-access-soft { display: block; text-align: center; color: var(--lp-muted); font-size: 0.85rem; }

/* Hero */
.lp-hero {
  position: relative;
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
  display: grid; align-items: end;
  padding: clamp(72px, 12vh, 120px) clamp(16px, 5vw, 56px) clamp(48px, 8vh, 88px);
  overflow: hidden; color: var(--lp-on-dark);
}
.lp-hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(14, 165, 233, 0.18), transparent 46%),
    radial-gradient(ellipse at 12% 88%, rgba(201, 149, 69, 0.14), transparent 42%),
    #071018;
}
.lp-hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.04);
  animation: lpKen 28s ease-in-out infinite alternate;
}
@keyframes lpKen {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.lp-hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5, 12, 18, 0.78) 0%, rgba(5, 12, 18, 0.4) 34%, rgba(5, 12, 18, 0.08) 68%);
}
.lp-hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 182, 201, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 182, 201, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  opacity: 0.22;
  animation: lpGrid 18s linear infinite;
}
@keyframes lpGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 36px, 36px 72px; }
}
.lp-hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 1; pointer-events: none;
}
.lp-hero-copy { position: relative; z-index: 1; max-width: 740px; }
.lp-brand {
  margin: 0 0 14px;
  font-family: var(--lp-font-display); font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  letter-spacing: -0.03em; line-height: 0.95; color: #ffffff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
.lp-hero h1 {
  margin: 0 0 16px;
  font-family: var(--lp-font-display); font-weight: 700;
  font-size: clamp(1.35rem, 4.2vw, 2.25rem);
  letter-spacing: -0.02em; line-height: 1.2; color: #f0f6fb;
  max-width: 18ch;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.lp-hero .lp-lead {
  margin: 0 0 28px; max-width: 42ch;
  color: var(--lp-on-dark-soft);
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer;
  font: 700 0.95rem var(--lp-font);
  padding: 12px 18px; border-radius: 999px;
  min-height: 44px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary {
  background: linear-gradient(135deg, #d4a35a, #b7833a);
  color: #16110a;
}
.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.1); color: #ffffff;
  border: 1px solid rgba(232, 238, 244, 0.55);
}
.lp-btn-dark {
  background: var(--lp-ink); color: #fff;
}
.lp-btn-dark:hover { background: #13263a; }

.lp-block { padding: clamp(64px, 10vh, 110px) clamp(16px, 5vw, 56px); background: var(--lp-dark); color: var(--lp-on-dark); }
.lp-light { background: var(--lp-paper); color: var(--lp-ink); }
.lp-block-alt {
  background:
    radial-gradient(900px 420px at 80% 0%, rgba(31, 111, 139, 0.18), transparent 60%),
    var(--lp-dark-2);
  color: var(--lp-on-dark);
}
.lp-block-inner { max-width: 1100px; margin: 0 auto; }

.lp-kicker {
  margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lp-accent); font-weight: 700;
}
.lp-block h2, .lp-light h2 {
  margin: 0 0 16px;
  font-family: var(--lp-font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.15; max-width: 20ch;
}
.lp-text { margin: 0 0 28px; max-width: 62ch; }
.lp-light .lp-text { color: var(--lp-muted); }
.lp-block:not(.lp-light) .lp-text { color: var(--lp-on-dark-muted); }
.lp-block:not(.lp-light) .lp-lead {
  color: var(--lp-on-dark-soft);
}
.lp-block:not(.lp-light) .lp-lead strong {
  color: #ffffff;
  font-weight: 700;
}
.lp-block:not(.lp-light) h2 {
  color: #ffffff;
}
.lp-block:not(.lp-light) .lp-aud {
  color: var(--lp-on-dark-soft);
}

.lp-tabs, .lp-audience {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 28px; padding: 6px;
  border-radius: 999px; background: rgba(11, 26, 46, 0.06);
  width: fit-content; max-width: 100%;
}
.lp-block:not(.lp-light) .lp-audience { background: rgba(255, 255, 255, 0.06); }
.lp-tab, .lp-aud {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: inherit;
  font: 700 0.88rem var(--lp-font);
  padding: 10px 16px; border-radius: 999px;
}
.lp-tab.is-on, .lp-aud.is-on {
  background: var(--lp-white); color: var(--lp-ink);
  box-shadow: 0 6px 18px rgba(11, 26, 46, 0.1);
}
.lp-block:not(.lp-light) .lp-aud.is-on {
  background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none;
}

.lp-tab-panel[hidden], .lp-aud-panel[hidden] { display: none !important; }
.lp-mod {
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) {
  .lp-mod { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}
.lp-mod-name {
  margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lp-accent); font-weight: 700;
}
.lp-mod h3 {
  margin: 0 0 12px;
  font-family: var(--lp-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em; line-height: 1.2;
}
.lp-mod p { color: var(--lp-muted); margin: 0 0 16px; }

.lp-bullets { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.lp-bullets li { position: relative; padding-left: 18px; }
.lp-light .lp-bullets li { color: var(--lp-ink-soft); }
.lp-block:not(.lp-light) .lp-bullets li { color: var(--lp-on-dark-soft); }
.lp-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent);
}

.lp-figure {
  margin: 0; overflow: hidden; border: 1px solid var(--lp-line);
  background: #0a1520; border-radius: 4px;
}
.lp-figure img {
  display: block; width: 100%; height: auto;
  animation: lpFloat 12s ease-in-out infinite alternate;
}
@keyframes lpFloat {
  from { transform: scale(1.01); }
  to { transform: scale(1.04) translateY(-1%); }
}

.lp-aud-panel h3 {
  margin: 0 0 10px; font-family: var(--lp-font-display); font-size: 1.4rem;
  color: var(--lp-on-dark);
}
.lp-aud-panel p { color: var(--lp-on-dark-muted); max-width: 58ch; }

.lp-steps {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 18px;
}
@media (min-width: 860px) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.lp-step {
  padding: 8px 0 0; border-top: 1px solid var(--lp-line-dark);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lp-step.is-in { opacity: 1; transform: none; }
.lp-step-n {
  display: block; margin: 14px 0 10px;
  font-family: var(--lp-font-display); font-size: 1.35rem; color: #9ed0e0;
}
.lp-step h3 { margin: 0 0 8px; font-family: var(--lp-font-display); font-size: 1.25rem; color: var(--lp-on-dark); }
.lp-step p { margin: 0; color: var(--lp-on-dark-muted); font-size: 1rem; }

.lp-cta-band {
  background: linear-gradient(120deg, #0b1a2e 0%, #12324a 55%, #1f6f8b 130%);
  text-align: center;
}
.lp-cta-band-inner { max-width: 720px; }
.lp-cta-band h2 {
  max-width: none; margin-left: auto; margin-right: auto;
  color: #fff;
}
.lp-cta-band p { color: var(--lp-on-dark-soft); margin: 0 0 22px; font-size: 1.05rem; }

.lp-contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .lp-contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}
.lp-mail { font-weight: 700; }
.lp-meta { margin: 28px 0 0; display: grid; gap: 14px; }
.lp-meta div {
  display: grid; gap: 2px; padding-top: 10px;
  border-top: 1px solid var(--lp-line);
}
.lp-meta dt {
  font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lp-muted);
}
.lp-meta dd { margin: 0; font-weight: 600; }
.lp-meta a { color: var(--lp-ink); text-decoration: none; }
.lp-meta a:hover { color: var(--lp-accent-2); }

.lp-form {
  display: grid; gap: 12px; padding: 22px;
  border: 1px solid var(--lp-line); background: var(--lp-white);
  box-shadow: 0 16px 40px rgba(11, 26, 46, 0.06);
}
.lp-form label {
  display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--lp-ink-soft);
}
.lp-form input, .lp-form textarea, .lp-form select {
  width: 100%; border: 1px solid var(--lp-line);
  background: var(--lp-paper); color: var(--lp-ink);
  border-radius: 10px; padding: 11px 12px;
  font: 500 0.95rem var(--lp-font);
}
.lp-form input:focus, .lp-form textarea:focus, .lp-form select:focus {
  outline: 2px solid rgba(201, 149, 69, 0.45); border-color: transparent;
}
.lp-hp { position: absolute !important; left: -9999px !important; height: 0 !important; overflow: hidden !important; }
.lp-fine { margin: 4px 0 0; font-size: 0.8rem; color: var(--lp-muted); }
.lp-flash { padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.lp-flash.success { background: rgba(47, 125, 98, 0.12); color: var(--lp-ok); }
.lp-flash.error { background: rgba(184, 74, 74, 0.12); color: var(--lp-bad); }

.lp-foot {
  border-top: 1px solid var(--lp-line);
  padding: 36px clamp(16px, 5vw, 56px) 28px;
  background: var(--lp-white); color: var(--lp-muted); font-size: 0.9rem;
}
.lp-foot-inner {
  max-width: 1100px; margin: 0 auto 28px;
  display: grid; gap: 28px;
}
@media (min-width: 800px) {
  .lp-foot-inner { grid-template-columns: 1.2fr 2fr; }
}
.lp-foot-brand img { display: block; height: 28px; width: auto; margin-bottom: 10px; }
.lp-foot-brand p { margin: 0; max-width: 28ch; }
.lp-foot-cols {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.lp-foot-cols strong {
  display: block; margin-bottom: 8px; color: var(--lp-ink); font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.lp-foot-cols a {
  display: block; color: var(--lp-muted); text-decoration: none; margin: 6px 0;
}
.lp-foot-cols a:hover { color: var(--lp-ink); }
.lp-foot-base {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--lp-line);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-img, .lp-hero-grid, .lp-figure img { animation: none !important; }
  .lp-step { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ——— Móvil / iPhone / tablets pequeñas ——— */
@media (max-width: 920px) {
  body.lp { font-size: 16px; }
  .lp-top {
    padding-left: max(14px, var(--lp-safe-left));
    padding-right: max(14px, var(--lp-safe-right));
  }
  .lp-access-toggle {
    min-height: 44px;
    padding: 10px 14px;
  }
  .lp-hero {
    min-height: auto;
    align-items: end;
    padding: 88px max(16px, var(--lp-safe-left)) 40px max(16px, var(--lp-safe-right));
  }
  .lp-hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 12, 18, 0.08) 0%, rgba(5, 12, 18, 0.28) 100%);
  }
  .lp-hero-net { opacity: 1; }
  .lp-hero-grid { opacity: 0.25; }
  .lp-brand { font-size: clamp(2rem, 11vw, 3rem); }
  .lp-hero h1 { font-size: clamp(1.28rem, 5.5vw, 1.75rem); max-width: none; }
  .lp-hero .lp-lead { max-width: none; font-size: 1.02rem; }
  .lp-cta { width: 100%; }
  .lp-cta .lp-btn { flex: 1 1 100%; width: 100%; }
  .lp-block {
    padding: 48px max(16px, var(--lp-safe-left)) 48px max(16px, var(--lp-safe-right));
  }
  .lp-block h2, .lp-light h2 { max-width: none; font-size: clamp(1.55rem, 6vw, 2rem); }
  .lp-tabs, .lp-audience {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }
  .lp-tab, .lp-aud {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    font-size: 0.86rem;
  }
  .lp-mod h3 { font-size: clamp(1.25rem, 5vw, 1.55rem); }
  .lp-aud-panel h3 { font-size: 1.25rem; }
  .lp-step h3 { font-size: 1.15rem; }
  .lp-form {
    padding: 18px;
  }
  .lp-form input,
  .lp-form select,
  .lp-form textarea {
    font-size: 16px; /* evita zoom automático en iOS */
    min-height: 44px;
  }
  .lp-form textarea { min-height: 120px; }
  .lp-foot-cols {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .lp-announce {
    font-size: 0.84rem;
    padding: 10px 12px;
    padding-top: max(10px, var(--lp-safe-top));
  }
  .lp-announce span { line-height: 1.35; }
  .lp-mark img { height: 26px; }
  .lp-hero { padding-top: 72px; padding-bottom: 36px; }
  .lp-block { padding-top: 40px; padding-bottom: 40px; }
  .lp-text { font-size: 1rem; }
  .lp-cta-band .lp-btn { width: 100%; }
  .lp-meta { gap: 10px; font-size: 0.9rem; }
  .lp-foot-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* pantallas muy angostas (iPhone SE / mini) */
@media (max-width: 390px) {
  body.lp { font-size: 15.5px; }
  .lp-brand { letter-spacing: -0.04em; }
  .lp-hero h1 { font-size: 1.22rem; }
  .lp-btn { font-size: 0.9rem; padding: 12px 14px; }
}

/* landscape móvil: hero más compacto */
@media (max-height: 500px) and (orientation: landscape) {
  .lp-hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 28px;
  }
  .lp-brand { font-size: 1.8rem; }
  .lp-hero h1 { font-size: 1.15rem; margin-bottom: 8px; }
  .lp-hero .lp-lead { margin-bottom: 14px; font-size: 0.95rem; }
}
