/* ==========================================================================
   Vortex CRM — Landing (sistema visual unificado con el hero)
   Tipografía: Sora (display) + Plus Jakarta Sans (body)
   ========================================================================== */

.lp {
  --lp-max: 1100px;
  --lp-ink: #f4f5f8;
  --lp-muted: #9aa3b8;
  --lp-dim: #6b7289;
  --lp-line: rgba(255, 255, 255, 0.1);
  --lp-panel: rgba(255, 255, 255, 0.03);
  --lp-panel-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Sora', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;

  min-height: 100dvh;
  background: #03050a;
  color: var(--lp-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

.lp a { color: inherit; text-decoration: none; }

/* ---- Nav ---- */
.lp-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(3, 5, 10, 0.94), rgba(3, 5, 10, 0.4) 80%, transparent);
  backdrop-filter: blur(12px);
}

.lp-nav-logo {
  height: 34px;
  width: auto;
  max-width: min(40vw, 150px);
  object-fit: contain;
  display: block;
}

.lp-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lp-panel-border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.lp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e8eaf2;
  border-radius: 2px;
}

.lp-nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lp-muted);
}

.lp-nav-links a:hover { color: #fff; }

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lp-nav-user {
  font-size: 0.8125rem;
  color: var(--color-accent-lavender);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}

.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:focus-visible { outline: 2px solid var(--color-accent-lavender); outline-offset: 3px; }

.lp-btn-ghost {
  background: transparent;
  border-color: var(--lp-panel-border);
  color: #e8eaf2;
}

.lp-btn-ghost:hover { border-color: rgba(196, 181, 253, 0.45); }

.lp-btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(79, 125, 240, 0.28);
}

.lp-btn-primary:hover { box-shadow: var(--shadow-glow); filter: brightness(1.04); }

@media (max-width: 960px) {
  .lp-nav-toggle { display: inline-flex; }
  .lp-nav-panel {
    position: absolute;
    top: calc(100% - 0.2rem);
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(8, 10, 18, 0.97);
    border: 1px solid var(--lp-panel-border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .lp-nav-panel.is-open { display: flex; }
  .lp-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .lp-nav-actions .lp-btn { flex: 1; }
}

/* ---- Hero ---- */
.lp-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.25rem 4.5rem;
  overflow: hidden;
}

.lp-hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lp-hero-particles canvas { display: block !important; }

.lp-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 46rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-hero-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-lavender);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(14px);
}

.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
}

.lp-hero-spark-wrap {
  position: relative;
  width: min(36rem, 90vw);
  height: 7.5rem;
  margin-top: 0.35rem;
}

.lp-divider,
.lp-hero-line {
  position: absolute;
  left: 10%;
  top: 0;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7080f5, transparent);
}

.lp-hero-line.is-soft,
.lp-divider.is-soft {
  height: 4px;
  left: 34%;
  width: 32%;
  top: 0;
  background: linear-gradient(90deg, transparent, #4f7df0, transparent);
  filter: blur(3px);
  opacity: 0.9;
}

.lp-hero-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-hero-fade {
  position: absolute;
  inset: 0;
  background: #03050a;
  mask-image: radial-gradient(320px 180px at top, transparent 18%, black 78%);
  -webkit-mask-image: radial-gradient(320px 180px at top, transparent 18%, black 78%);
  pointer-events: none;
}

.lp-hero-lead {
  margin: 0.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--lp-muted);
  opacity: 0;
  transform: translateY(14px);
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(14px);
}

.lp-hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-dim);
  opacity: 0;
}

/* ---- Sections (mismo lenguaje visual, sin animación) ---- */
.lp-section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) clamp(1.15rem, 4vw, 2.5rem);
}

.lp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(79, 125, 240, 0.07), transparent 55%);
  pointer-events: none;
}

.lp-section.lp-band {
  background: #060912;
  border-block: 1px solid var(--lp-line);
}

.lp-section.lp-band::before {
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(109, 78, 242, 0.12), transparent 55%);
}

.lp-section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--lp-max));
  margin: 0 auto;
}

.lp-section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.lp-section-head.is-center {
  text-align: center;
  margin-inline: auto;
}

.lp-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-lavender);
  margin-bottom: 0.85rem;
}

.lp-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
  color: #fff;
}

.lp-section-rule {
  position: relative;
  width: min(16rem, 60%);
  height: 1.1rem;
  margin: 1.1rem 0 1.15rem;
}

.lp-section-head.is-center .lp-section-rule {
  margin-inline: auto;
}

.lp-section-rule .lp-divider {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 100%;
  height: 1px;
}

.lp-section-rule .lp-divider.is-soft {
  left: 18%;
  width: 45%;
  top: 0.2rem;
}

.lp-section-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--lp-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lp-section-head.is-center .lp-section-lead {
  margin-inline: auto;
}

/* ---- Paneles / cards unificados ---- */
.lp-panels {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .lp-panels.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .lp-panels.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .lp-panels.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .lp-panels.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.lp-panel {
  position: relative;
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: 18px;
  background: var(--lp-panel);
  border: 1px solid var(--lp-panel-border);
  overflow: hidden;
}

.lp-panel::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 128, 245, 0.55), transparent);
}

.lp-panel-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  color: var(--color-accent-lavender);
  opacity: 0.95;
}

.lp-panel h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  color: #fff;
}

.lp-panel p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.lp-step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.65rem;
}

/* ---- Compare ---- */
.lp-compare {
  margin-top: 0.5rem;
  border: 1px solid var(--lp-panel-border);
  border-radius: 18px;
  overflow: hidden;
  overflow-x: auto;
  background: var(--lp-panel);
}

.lp-compare-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.25fr) repeat(3, minmax(6.5rem, 1fr));
  gap: 0.5rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--lp-line);
  color: var(--lp-muted);
  min-width: 560px;
}

.lp-compare-row:first-child { border-top: 0; }

.lp-compare-head {
  background: rgba(255, 255, 255, 0.035);
  color: #e8eaf2;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-compare-row > span:first-child {
  color: #e8eaf2;
  font-weight: 500;
}

.lp-compare-row .is-accent {
  color: var(--color-accent-lavender);
  font-weight: 600;
}

/* ---- Trust ---- */
.lp-trust {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .lp-trust { grid-template-columns: repeat(2, 1fr); gap: 0.85rem 1.25rem; }
}

.lp-trust li {
  position: relative;
  padding: 1.05rem 1.15rem 1.05rem 2.5rem;
  border-radius: 14px;
  background: var(--lp-panel);
  border: 1px solid var(--lp-panel-border);
  color: #c5cbd8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.lp-trust li::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ---- FAQ ---- */
.lp-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 46rem;
}

.lp-faq-item {
  border: 1px solid var(--lp-panel-border);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  background: var(--lp-panel);
}

.lp-faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  list-style: none;
}

.lp-faq-item summary::-webkit-details-marker { display: none; }

.lp-faq-item summary::after {
  content: '+';
  float: right;
  color: var(--color-accent-lavender);
  font-weight: 500;
}

.lp-faq-item[open] summary::after { content: '–'; }

.lp-faq-item p {
  margin: 0.8rem 0 0.15rem;
  color: var(--lp-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---- CTA final ---- */
.lp-cta .lp-section-head { margin-bottom: 1.75rem; }
.lp-cta .lp-hero-cta {
  opacity: 1;
  transform: none;
  margin-top: 0;
}

/* ---- Footer ---- */
.lp-footer {
  padding: 2.5rem clamp(1.15rem, 4vw, 2.5rem) 2.75rem;
  border-top: 1px solid var(--lp-line);
  display: grid;
  gap: 1.35rem;
  color: var(--lp-dim);
  font-size: 0.875rem;
}

.lp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lp-footer-brand img {
  height: 26px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.9;
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-weight: 500;
}

.lp-footer-links a:hover { color: var(--color-accent-lavender); }

.lp-footer-copy { color: #4b5163; }

@media (prefers-reduced-motion: reduce) {
  .lp-btn:hover { transform: none; }
  .lp-hero-kicker,
  .lp-hero-title,
  .lp-hero-lead,
  .lp-hero-cta,
  .lp-hero-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
