/* Landing de campañas (/cotizar/) y páginas de sistema (/gracias/, /privacidad/).
   Se carga después de main.css y reutiliza sus tokens y componentes. */

/* ---------- Header simplificado ---------- */
.lp-header-link {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(74, 142, 247, 0.4);
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.lp-header-link:hover,
.lp-header-link:focus-visible { background: var(--accent); color: var(--bg); }

/* ---------- Hero con formulario ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  grid-template-areas: "copy form" "points form";
  grid-template-rows: auto 1fr;
  gap: 0 4rem;
  align-items: start;
  padding: 2.5rem 0 4.5rem;
}
.lp-hero-copy { grid-area: copy; }
.lp-form-card { grid-area: form; }
.lp-points { grid-area: points; }
.lp-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.lp-hero h1 { max-width: 13ch; }
.lp-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 50ch;
  margin-bottom: 2rem;
}
.lp-points { list-style: none; display: grid; gap: 0.9rem; max-width: 52ch; }
.lp-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-body);
}
.lp-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.lp-points strong { font-weight: 500; color: var(--text); }

.lp-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 1.5rem;
  scroll-margin-top: 5rem;
}
.lp-form-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.lp-form-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 1.25rem; }
.lp-form-card .cf-row input,
.lp-form-card .cf-row textarea,
.lp-form-card .cf-row select { background: var(--bg); }
.lp-form-card .cf-row textarea { min-height: 96px; }
.lp-form-card .cf-submit { width: 100%; justify-content: center; padding-block: 1rem; }

@media (max-width: 860px) {
  .lp-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "form" "points";
    grid-template-rows: auto;
    row-gap: 2rem;
    padding-top: 1.5rem;
  }
  .lp-lead { margin-bottom: 0; }
}

/* ---------- Campos extra del formulario ---------- */
.cf-optional { text-transform: none; letter-spacing: 0; color: var(--muted-dim); }
.cf-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem; }
@media (max-width: 420px) { .cf-row-pair { grid-template-columns: 1fr; } }
.cf-row select {
  width: 100%;
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f9d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.7rem center / 16px no-repeat;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: 'Noto Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  padding: 0.7rem 2.2rem 0.7rem 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s;
}
.lp-form-card .cf-row select { background-color: var(--bg); }
.cf-row select:focus { border-color: var(--accent); }
.cf-row select[aria-invalid="true"] { border-color: var(--danger); }
.cf-row select option { background: var(--surface); color: var(--text); }
.cf-row input::placeholder,
.cf-row textarea::placeholder { color: var(--muted-dim); opacity: 1; }

/* ---------- Proceso en lista liviana ---------- */
.lp-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.lp-steps li {
  counter-increment: step;
  border-top: 1px solid var(--border-strong);
  padding-top: 1rem;
}
.lp-steps li::before {
  content: '0' counter(step);
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.lp-steps h3 { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 19px; margin-bottom: 0.4rem; }
.lp-steps p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .lp-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; } }
@media (max-width: 520px) { .lp-steps { grid-template-columns: 1fr; } }

.lp .pf-featured { margin-top: 1.5rem; }
.lp-more { margin-top: 1.25rem; font-size: 15px; }
.lp-more a,
.lp-text a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(74, 142, 247, .35);
  text-underline-offset: 3px;
}
.lp-more a:hover,
.lp-text a:not(.btn):hover { text-decoration-color: currentColor; }

/* ---------- Cierre ---------- */
.lp-closing {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
  max-width: 60ch;
}
.lp-closing h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.lp-closing p { font-size: 16.5px; line-height: 1.65; color: var(--text-body); margin-bottom: 1.5rem; }

/* ---------- CTA fija en móvil ---------- */
.lp-sticky-cta { display: none; }
@media (max-width: 860px) {
  .lp-sticky-cta {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 70;
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background: var(--accent);
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .lp-sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ---------- Páginas de texto (gracias, privacidad) ---------- */
.lp-text { max-width: 68ch; padding: 3rem 0 2rem; }
.lp-text h1 { max-width: 20ch; }
.lp-text h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 21px;
  margin: 2.25rem 0 0.6rem;
}
.lp-text p,
.lp-text li { font-size: 16px; line-height: 1.7; color: var(--text-body); }
.lp-text p + p { margin-top: 0.9rem; }
.lp-text ul { padding-left: 1.2rem; margin-top: 0.6rem; display: grid; gap: 0.35rem; }
.lp-text .lp-meta { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted-dim); letter-spacing: 0.04em; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
