/* ==========================================================================
   Landing Ads - estilos propios (complementa bootstrap.min.css + main.min.css)
   ========================================================================== */
:root {
  --lp-green: #12b58f;
  --lp-green-dark: #0e9474;
  --lp-navy: #162447;
  --lp-blue: #5864ff;
  --lp-wa: #25d366;
  --lp-wa-dark: #1ebe5a;
  --lp-muted: #5b657e;
  --lp-border: #dfe3ec;

  /* Tokens de tema (modo claro) */
  --lp-bg: #ffffff;
  --lp-surface: #ffffff;
  --lp-surface-2: #f6f8fc;
  --lp-text: #5b657e;
  --lp-heading: #162447;
  --lp-input-bg: #ffffff;
  --lp-input-text: #212529;
  --lp-placeholder: #8a93a8;
  --lp-link: #3b48e0;
  --lp-shadow: 0 8px 24px rgba(22, 36, 71, .06);
  --lp-offer-bg: #fff3e0;
  --lp-offer-text: #b45309;
  color-scheme: light;
}

/* Modo oscuro: elegido por el usuario, o por el sistema si no eligió (también sin JavaScript) */
:root[data-tema="oscuro"] {
  --lp-bg: #0d1322;
  --lp-surface: #161f33;
  --lp-surface-2: #1b2640;
  --lp-text: #b4bdd0;
  --lp-heading: #f1f4fb;
  --lp-muted: #a3adc2;
  --lp-border: #2b3856;
  --lp-input-bg: #0f1729;
  --lp-input-text: #eef1f8;
  --lp-placeholder: #7f8aa3;
  --lp-link: #9fa8ff;
  --lp-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --lp-offer-bg: rgba(245, 158, 11, .16);
  --lp-offer-text: #fbbf24;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema]) {
    --lp-bg: #0d1322;
    --lp-surface: #161f33;
    --lp-surface-2: #1b2640;
    --lp-text: #b4bdd0;
    --lp-heading: #f1f4fb;
    --lp-muted: #a3adc2;
    --lp-border: #2b3856;
    --lp-input-bg: #0f1729;
    --lp-input-text: #eef1f8;
    --lp-placeholder: #7f8aa3;
    --lp-link: #9fa8ff;
    --lp-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --lp-offer-bg: rgba(245, 158, 11, .16);
    --lp-offer-text: #fbbf24;
    color-scheme: dark;
  }
}

/* Colores base que dependen del tema */
body { background: var(--lp-bg); color: var(--lp-text); }
h1, h2, h3, h4, h5, h6 { color: var(--lp-heading); }
.about-section .about-content ul li { color: var(--lp-heading); }
.pricing-section .single-pricing {
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow);
}
.pricing-section .single-pricing .pricing-header { border-bottom-color: var(--lp-border); }
.pricing-section .single-pricing .content ul li { color: var(--lp-text); }

img { max-width: 100%; height: auto; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.lp-header .navbar { padding: 18px 0; }
.lp-header .navbar-brand img { width: 160px; max-width: 160px; }
.lp-header-cta {
  padding: 10px 22px;
  font-size: 15px;
  background: #fff;
  color: var(--lp-navy) !important;
}
.lp-header-cta:hover { background: #f2f4ff; }

/* ---------- Hero ---------- */
.lp-hero { padding: 100px 0 40px; }
.lp-hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  grid-template-areas: "text" "form" "img";
  align-items: start;
}
.lp-hero-text { grid-area: text; color: #fff; }
.lp-hero-form { grid-area: form; }
.lp-hero-img  { grid-area: img; }
@media (min-width: 992px) {
  .lp-hero { padding: 130px 0 60px; }
  .lp-hero-grid {
    grid-template-columns: 1.1fr .9fr;
    grid-template-areas: "text form" "img form";
    column-gap: 48px;
  }
}
.lp-eyebrow {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  opacity: .95;
}
.lp-hero-text h1 {
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 14px;
}
@media (min-width: 576px) { .lp-hero-text h1 { font-size: 36px; } }
@media (min-width: 1200px) { .lp-hero-text h1 { font-size: 44px; } }
.lp-hero-text .lp-lead {
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-trust li {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lp-trust svg { flex: 0 0 auto; }

/* ---------- Formulario ---------- */
.lp-form-card {
  background: var(--lp-surface);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 18px 40px rgba(22, 36, 71, .22);
}
@media (min-width: 576px) { .lp-form-card { padding: 30px 28px; } }
.lp-form-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 6px;
}
.lp-form-sub {
  text-align: center;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: var(--lp-muted);
  margin-bottom: 18px !important;
}
.lp-field { margin-bottom: 12px; }
.lp-field .form-control {
  height: 50px;
  font-size: 16px; /* evita zoom automático en iOS */
  border: 1px solid var(--lp-border);
  background: var(--lp-input-bg);
  color: var(--lp-input-text);
  border-radius: 8px;
  padding: 10px 14px;
}
.lp-field .form-control:focus {
  border-color: var(--lp-green);
  box-shadow: 0 0 0 3px rgba(18, 181, 143, .18);
}
.lp-field .form-control.is-invalid { border-color: #dc3545; }
.lp-error {
  display: block;
  min-height: 0;
  font-size: 13px;
  color: #c62828;
  margin-top: 4px;
}
.lp-error:empty { display: none; }
.lp-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lp-muted);
  margin: 4px 0 14px;
}
.lp-consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }
.lp-consent a { color: var(--lp-heading); text-decoration: underline; }
.lp-submit {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  border-radius: 10px;
  white-space: normal;
}
.lp-submit:hover { background: var(--lp-green-dark); }
.lp-submit[disabled] { opacity: .7; cursor: wait; }
.lp-form-note {
  text-align: center;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--lp-muted);
  margin-top: 10px !important;
}
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lp-alert { margin-top: 12px; font-size: 15px; }
.lp-alert[hidden] { display: none; }

/* ---------- Secciones ---------- */
.lp-section { padding: 60px 0; }
@media (max-width: 767px) { .lp-section { padding: 40px 0; } }
.lp-section-title { text-align: center; margin-bottom: 36px; }
.lp-section-title h2 { margin-bottom: 10px; }
.lp-section-title p { color: var(--lp-muted); }
.lp-accent { color: var(--lp-green); }

.lp-clients img { filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.lp-clients img:hover { filter: none; opacity: 1; }

/* ---------- Cifra destacada (clientes) ---------- */
.lp-stat {
  font-family: Arimo, Arial, sans-serif;
  font-size: 56px !important;
  line-height: 1 !important;
  font-weight: 700;
  color: var(--lp-green) !important;
  margin-bottom: 8px !important;
}
@media (max-width: 575px) { .lp-stat { font-size: 46px !important; } }

/* ---------- Registros SUNAT / INDECOPI ---------- */
.lp-cred {
  height: 100%;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--lp-shadow);
}
.lp-cred-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(18, 181, 143, .12);
  color: var(--lp-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.lp-cred h3 { font-size: 19px; margin-bottom: 8px; }
.lp-cred p { font-size: 15px; line-height: 1.55; color: var(--lp-muted); }
@media (max-width: 767px) {
  .lp-section-title h2 { font-size: 25px; }
  .lp-cred {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    padding: 18px 16px;
  }
  .lp-cred-icon { grid-row: span 2; margin-bottom: 0; }
  .lp-cred h3 { font-size: 17px; margin-bottom: 4px; }
  .lp-cred p { font-size: 14px; }
}

/* ---------- Precios ---------- */
.lp-offer-tag {
  display: inline-block;
  background: var(--lp-offer-bg);
  color: var(--lp-offer-text);
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 12px;
}
.lp-plan {
  position: relative;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}
.lp-plan .content { flex: 1 1 auto; }
.lp-plan--featured { border: 2px solid var(--lp-green); }
.lp-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.lp-plan .package-name { font-size: 22px; margin-bottom: 6px; }
.lp-plan-desc { font-size: 15px !important; color: var(--lp-muted); margin-bottom: 18px !important; }
.lp-price { font-size: 40px; font-weight: 700; color: var(--lp-green); line-height: 1.1; font-family: Arimo, Arial, sans-serif; }
.lp-price small { font-size: 16px; font-weight: 400; color: var(--lp-heading); }
.lp-price-year { font-size: 16px !important; color: var(--lp-heading); margin-top: 8px !important; }
.lp-save { color: #c62828; font-weight: 700; }
.lp-check { width: 20px; height: 20px; margin-right: 12px; flex: 0 0 auto; color: var(--lp-green); }
.pricing-section .single-pricing.lp-plan .pricing-header { margin-bottom: 28px; padding-bottom: 24px; }
.pricing-section .single-pricing.lp-plan .content ul li { font-size: 17px; }

/* ---------- Botones ---------- */
.lp-btn-wa {
  background: var(--lp-wa);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.lp-btn-wa:hover { background: var(--lp-wa-dark); }
.lp-btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

/* ---------- Banner Tienda virtual ---------- */
.lp-banner {
  background: var(--lp-green);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
}
.lp-banner h2 { color: #fff; margin-bottom: 4px; }
.lp-banner p { color: #fff; }

/* ---------- FAQ ---------- */
.lp-faq { max-width: 820px; margin: 0 auto; }
.lp-faq details {
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  background: var(--lp-surface);
  margin-bottom: 12px;
}
.lp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-weight: 700;
  font-size: 17px;
  color: var(--lp-heading);
  position: relative;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--lp-green);
}
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { padding: 0 20px 18px; font-size: 16px; line-height: 1.6; color: var(--lp-muted); }

/* ---------- CTA final ---------- */
.lp-final-cta {
  background: linear-gradient(135deg, #5864ff, #6a74ff);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: #fff;
}
.lp-final-cta h2 { color: #fff; margin-bottom: 10px; }
.lp-final-cta p { color: #fff; margin-bottom: 24px; }
.lp-final-cta .lp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.lp-footer { padding-bottom: 40px; }
.lp-footer a { color: #fff; text-decoration: underline; }
.lp-footer .desc { line-height: 1.9; }
.lp-copy { color: rgba(255, 255, 255, .8); font-size: 14px !important; margin-top: 20px !important; }

/* ---------- Botón flotante WhatsApp ---------- */
.lp-wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lp-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.lp-wa-float:hover { transform: scale(1.06); }
.lp-wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.lp-wa-float { transition: transform .2s, opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Tema: botón y ajustes de modo oscuro ---------- */
.lp-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lp-header .navbar { flex-wrap: nowrap; gap: 12px; }
@media (max-width: 575px) {
  .lp-header .navbar-brand img { width: 128px; max-width: 128px; }
  .lp-header-actions { gap: 8px; }
  .lp-header .lp-theme-toggle { width: 38px; height: 38px; }
  .lp-header-cta { padding: 9px 16px; font-size: 14px; }
}
.lp-theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex: 0 0 auto;
}
.lp-theme-toggle:hover { background: rgba(255, 255, 255, .26); }
.lp-theme-toggle--plain {
  border-color: var(--lp-border);
  background: var(--lp-surface-2);
  color: var(--lp-heading);
}
.lp-theme-toggle--plain:hover { background: var(--lp-surface); }
.lp-icon-sun { display: none; }
:root[data-tema="oscuro"] .lp-icon-sun { display: block; }
:root[data-tema="oscuro"] .lp-icon-moon { display: none; }

.lp-field .form-control::placeholder { color: var(--lp-placeholder); opacity: 1; }
.lp-field .form-control:focus { background: var(--lp-input-bg); color: var(--lp-input-text); }

/* Logos con fondo propio: en modo oscuro van sobre una "ficha" clara para que se lean */
:root[data-tema="oscuro"] .lp-clients picture,
:root[data-tema="oscuro"] .lp-logo-chip {
  display: inline-block;
  background: #f4f6fb;
  border-radius: 12px;
  padding: 10px 14px;
}
:root[data-tema="oscuro"] .lp-clients img { opacity: 1; }
:root[data-tema="oscuro"] .hero-section { background-color: transparent; }
:root[data-tema="oscuro"] .lp-plan--featured { border-color: var(--lp-green); }
:root[data-tema="oscuro"] .alert-success { background: rgba(18, 181, 143, .15); color: #8ff0d2; border-color: rgba(18, 181, 143, .35); }
:root[data-tema="oscuro"] .alert-danger { background: rgba(220, 53, 69, .15); color: #ffb3bb; border-color: rgba(220, 53, 69, .35); }
:root[data-tema="oscuro"] .alert-danger a, :root[data-tema="oscuro"] .alert-success a { color: #fff; }
:root[data-tema="oscuro"] .lp-error { color: #ff8a8a; }

/* ---------- Páginas legales (privacidad, términos) ---------- */
.lp-legal { max-width: 860px; margin: 0 auto; padding: 28px 16px 72px; }
.lp-legal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.lp-legal-top a { color: var(--lp-link); font-weight: 700; text-decoration: none; }
.lp-legal-top a:hover { text-decoration: underline; }
.lp-legal h1 { font-size: 32px; margin-bottom: 6px; }
.lp-legal h2 { font-size: 20px; margin: 30px 0 10px; }
.lp-legal p, .lp-legal li { font-size: 16px; line-height: 1.7; color: var(--lp-text); margin-bottom: 12px; }
.lp-legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.lp-legal a { color: var(--lp-link); }
.lp-legal .lp-muted-small { font-size: 14px; color: var(--lp-muted); }
.lp-legal-toc {
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 8px;
}
.lp-legal-toc summary { cursor: pointer; font-weight: 700; color: var(--lp-heading); }
.lp-legal-toc ol { margin: 12px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.lp-legal-toc li { font-size: 15px; margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 575px) { .lp-legal-toc ol { columns: 1; } }
.lp-promo { border-left: 3px solid var(--lp-green); padding-left: 14px; }
:root[data-tema="oscuro"] .lp-save { color: #ff8a8a; }
@media (prefers-color-scheme: dark) { :root:not([data-tema]) .lp-save { color: #ff8a8a; } }
