/* Compramos Tu Casa Hoy — mismo sistema visual que opcionesdecredito.com */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0d1f3c;
  color: #1c1e21;
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Barra de navegación ─────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgba(13, 31, 60, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.lp-logo-mark {
  flex-shrink: 0;
  display: block;
}
.lp-wordmark {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.lp-wordmark-accent {
  color: #6ea8fe;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.lp-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #a8b8d0;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-nav-links a:hover {
  color: #ffffff;
}
.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background-color: #1877f2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
.lp-nav-cta:hover {
  background-color: #166fe5;
}
#oferta,
#como-funciona,
#preguntas {
  scroll-margin-top: 70px;
}

/* ─── Layout principal dos columnas ───────────────────────────────────── */
.lp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 57px);
}
.lp-col-image {
  position: sticky;
  top: 57px;
  height: calc(100vh - 57px);
  overflow: hidden;
  background-color: #0d1f3c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-hero-img {
  width: 100%;
  height: 100%;
  max-width: 640px;
  object-fit: contain;
  display: block;
}
.lp-col-content {
  background-color: #0d1f3c;
}
.lp-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.lp-hero {
  margin-bottom: 1.5rem;
}
.lp-hero h1 {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.lp-hero p {
  font-size: 15px;
  color: #a8b8d0;
  line-height: 1.6;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.lp-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #a8b8d0;
}
.lp-trust-item i {
  font-size: 15px;
  color: #42b72a;
}

/* ─── Tarjeta del formulario ──────────────────────────────────────────── */
.lp-card {
  background-color: #ffffff;
  border: 1px solid #dddfe2;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.45s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lp-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1c1e21;
  margin-bottom: 4px;
}
.lp-card-sub {
  font-size: 13px;
  color: #65676b;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.lp-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1877f2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.5rem;
  border-top: 1px solid #dddfe2;
  margin-top: 0.5rem;
  grid-column: 1 / -1;
}
.lp-section-title:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.lp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-field.full {
  grid-column: 1 / -1;
}
.lp-field label {
  font-size: 13px;
  color: #65676b;
  font-weight: 500;
}
.lp-field label .opt {
  font-weight: 400;
  color: #8a8d91;
}
.lp-field input,
.lp-field select {
  height: 40px;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  color: #1c1e21;
  background-color: #ffffff;
  width: 100%;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-field input:focus,
.lp-field select:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}
.lp-field input::placeholder {
  color: #bcc0c4;
}
.input-error {
  border-color: #fa3e3e !important;
  box-shadow: 0 0 0 3px rgba(250, 62, 62, 0.15) !important;
}
.error-msg {
  font-size: 12px;
  color: #fa3e3e;
  margin-top: 2px;
  display: none;
}
.lp-field.has-error .error-msg {
  display: block;
}
.lp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  color: #65676b;
  cursor: pointer;
  line-height: 1.55;
  background-color: #f8f9fa;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 1rem;
}
.lp-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #1877f2;
  flex-shrink: 0;
}
.lp-checkbox-label a {
  color: #1877f2;
}
.lp-checkbox-label.has-error {
  border-color: #fa3e3e;
  box-shadow: 0 0 0 3px rgba(250, 62, 62, 0.15);
}
.lp-btn {
  width: 100%;
  height: 44px;
  background-color: #1877f2;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s;
}
.lp-btn:hover {
  background-color: #166fe5;
}
.lp-btn:active {
  background-color: #1464d8;
}
.lp-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.lp-privacy-notice {
  font-size: 11px;
  color: #8a8d91;
  line-height: 1.55;
  margin-top: 0.75rem;
  text-align: center;
}
.lp-privacy-notice a {
  color: #1877f2;
  text-decoration: none;
}
.lp-privacy-notice a:hover {
  text-decoration: underline;
}
.lp-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: #e7f3ff;
  border: 1px solid #b3d4f7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #1a4a8a;
  line-height: 1.5;
}
.lp-info-box i {
  font-size: 15px;
  color: #1877f2;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp-success {
  text-align: center;
  padding: 0.5rem 0;
}
.lp-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #eaf4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.lp-success-icon i {
  font-size: 30px;
  color: #42b72a;
}
.lp-success p {
  font-size: 14px;
  color: #65676b;
  line-height: 1.6;
}

/* ─── Secciones blancas (cómo funciona, comparación, FAQ) ─────────────── */
.lp-howit-wrap {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #dddfe2;
  padding: 3rem 2rem;
}
.lp-howit-wrap.alt {
  background-color: #f8f9fa;
}
.lp-howit {
  max-width: 1100px;
  margin: 0 auto;
}
.lp-howit h2 {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1c1e21;
  margin-bottom: 1.75rem;
}
.lp-howit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2.25rem;
}
.lp-howit-step {
  background-color: #f8f9fa;
  border: 1px solid #dddfe2;
  border-radius: 12px;
  padding: 1.25rem;
}
.alt .lp-howit-step {
  background-color: #ffffff;
}
.lp-howit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #e7f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.lp-howit-icon i {
  color: #1877f2;
  font-size: 24px;
}
.lp-howit-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  margin-bottom: 4px;
}
.lp-howit-step p {
  font-size: 13px;
  color: #65676b;
  line-height: 1.6;
}
.lp-howit-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}
.lp-howit-lead {
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.lp-howit-cols p {
  font-size: 14px;
  color: #4b4f56;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.lp-req h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.lp-req ul {
  list-style: none;
}
.lp-req li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #4b4f56;
  line-height: 1.6;
  margin-bottom: 9px;
}
.lp-req li i {
  color: #42b72a;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.lp-req.muted li i {
  color: #8a8d91;
}

/* Situaciones */
.lp-situations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lp-situation {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #dddfe2;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1e21;
}
.lp-situation i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: #e7f3ff;
  color: #1877f2;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Preguntas frecuentes */
.lp-faq {
  max-width: 820px;
}
.lp-faq details {
  background-color: #f8f9fa;
  border: 1px solid #dddfe2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.lp-faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: "+";
  color: #1877f2;
  font-size: 20px;
  line-height: 1;
}
.lp-faq details[open] summary::after {
  content: "–";
}
.lp-faq details p {
  font-size: 14px;
  color: #4b4f56;
  line-height: 1.7;
  margin-top: 8px;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.lp-footer-wrap {
  width: 100%;
  background-color: #f5f4f0;
  padding: 1.5rem 2rem 3rem;
  border-top: 1px solid #dddfe2;
}
.lp-tcpa {
  font-size: 11px;
  color: #8a8d91;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.lp-footer {
  font-size: 11px;
  color: #8a8d91;
  text-align: center;
  margin-bottom: 1rem;
}
.lp-footer a {
  color: #1877f2;
  text-decoration: none;
}
.lp-footer a:hover {
  text-decoration: underline;
}
.lp-legal {
  font-size: 10px;
  color: #8a8d91;
  line-height: 1.6;
  padding-top: 0.75rem;
  border-top: 1px solid #dddfe2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-legal-title {
  font-weight: 700;
  color: #65676b;
}

/* ─── Página legal (privacidad) ───────────────────────────────────────── */
.legal {
  background: #ffffff;
  max-width: 860px;
  margin: 32px auto;
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid #dddfe2;
}
.legal h1 {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  margin-bottom: 0.5rem;
}
.legal h2 {
  font-size: 19px;
  margin: 1.5rem 0 0.5rem;
}
.legal p,
.legal li {
  font-size: 15px;
  color: #333d48;
  margin-bottom: 0.5rem;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal a {
  color: #1877f2;
}
.legal .fecha {
  color: #65676b;
  font-size: 14px;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lp-howit-steps,
  .lp-situations {
    grid-template-columns: 1fr 1fr;
  }
  .lp-howit-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .lp-howit-wrap {
    padding: 2rem 1rem;
  }
}
@media (max-width: 768px) {
  .lp-main {
    grid-template-columns: 1fr;
  }
  .lp-col-image {
    display: none;
  }
  .lp-footer-wrap {
    padding: 1.5rem 1rem 3rem;
  }
}
@media (max-width: 520px) {
  .lp-nav-links {
    display: none;
  }
  .lp-nav-inner {
    justify-content: space-between;
    padding: 10px 16px;
    gap: 10px;
  }
  .lp-wordmark {
    font-size: 14px;
  }
  .lp-nav-cta {
    padding: 0 12px;
    font-size: 13px;
  }
  .lp-howit-steps,
  .lp-situations {
    grid-template-columns: 1fr;
  }
  .legal {
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: 28px 16px;
  }
}
@media (max-width: 400px) {
  .lp-grid {
    grid-template-columns: 1fr;
  }
  .lp-trust {
    gap: 10px;
  }
}
