/* ============================================================
   lp.css — Estilos compartidos para landing pages
   hacerfacturagratis.com
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --i50:#EEF2FF; --i100:#E0E7FF; --i200:#C7D2FE; --i400:#818CF8;
  --i500:#6366F1; --i600:#4F46E5; --i700:#4338CA; --i800:#3730A3;
  --s50:#F8FAFC; --s100:#F1F5F9; --s200:#E2E8F0; --s300:#CBD5E1;
  --s400:#94A3B8; --s500:#64748B; --s600:#475569; --s700:#334155;
  --s800:#1E293B; --s900:#0F172A;
  --g500:#10B981; --r500:#EF4444;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --r:8px; --rl:14px; --sh:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
  --sh-xl:0 20px 25px -5px rgba(0,0,0,.12),0 8px 10px -6px rgba(0,0,0,.04);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--s800); background: white; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.lp-nav {
  height: 60px; background: white; border-bottom: 1px solid var(--s200);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; padding: 0 24px; gap: 12px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; }
.lp-brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.lp-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.lp-brand-top { font-size: 13px; font-weight: 800; color: var(--s900); letter-spacing: -.3px; }
.lp-brand-top em { font-style: normal; color: var(--i600); }
.lp-brand-sub { font-size: 9px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: var(--s400); }
.lp-nav-pill { padding: 2px 9px; background: var(--i50); border: 1px solid var(--i100); border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--i600); }
.lp-spacer { flex: 1; }
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: var(--i600); color: white;
  border-radius: var(--r); font-size: 13px; font-weight: 600;
  transition: background .15s; white-space: nowrap;
}
.btn-nav:hover { background: var(--i700); }
.btn-nav svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── HERO ── */
.lp-hero {
  background: linear-gradient(145deg, var(--i50) 0%, white 55%);
  border-bottom: 1px solid var(--s100);
  padding: 72px 0 60px; text-align: center;
}
.lp-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.lp-wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--i50); border: 1px solid var(--i100); color: var(--i600);
  border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600;
  margin-bottom: 22px;
}
.lp-hero h1 {
  font-size: 42px; font-weight: 800; color: var(--s900);
  letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 18px;
}
.lp-hero h1 em { font-style: normal; color: var(--i600); }
.lp-hero-lead {
  font-size: 17px; line-height: 1.8; color: var(--s600);
  max-width: 640px; margin: 0 auto 34px;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--i600) 0%, var(--i700) 100%);
  color: white; border-radius: var(--rl);
  font-size: 16px; font-weight: 700; letter-spacing: -.2px;
  box-shadow: 0 6px 20px rgba(79,70,229,.4); transition: all .2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(79,70,229,.45); }
.btn-hero svg { width: 18px; height: 18px; flex-shrink: 0; }
.lp-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; margin-top: 26px; flex-wrap: wrap;
}
.lp-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--s500);
}
.lp-trust-item svg { width: 14px; height: 14px; color: var(--g500); flex-shrink: 0; }

/* ── SECCIONES ── */
.lp-sec { padding: 64px 0; }
.lp-sec-alt { background: var(--s50); }
.lp-sec h2 {
  font-size: 27px; font-weight: 800; color: var(--s900);
  letter-spacing: -.8px; margin-bottom: 12px; line-height: 1.25;
}
.lp-sec-lead { font-size: 15.5px; line-height: 1.8; color: var(--s600); margin-bottom: 32px; max-width: 680px; }
.lp-sec-lead strong { color: var(--s800); }

/* ── CARDS ── */
.lp-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.lp-cards-2 { grid-template-columns: repeat(2,1fr); }
.lp-card {
  background: white; border: 1px solid var(--s200);
  border-radius: var(--rl); padding: 22px 24px;
}
.lp-card-blue { background: var(--i50); border-color: var(--i100); }
.lp-card-ico { font-size: 24px; margin-bottom: 10px; display: block; line-height: 1; }
.lp-card h3 { font-size: 14px; font-weight: 700; color: var(--s900); margin-bottom: 7px; }
.lp-card p  { font-size: 13px; line-height: 1.7; color: var(--s600); }

/* ── STEPS ── */
.lp-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.lp-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: white; border: 1px solid var(--s100);
  border-radius: var(--rl); padding: 18px 22px;
}
.lp-step-n {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--i600); color: white;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lp-step h3 { font-size: 14px; font-weight: 700; color: var(--s900); margin-bottom: 4px; }
.lp-step p  { font-size: 13px; line-height: 1.7; color: var(--s600); }

/* ── TABLA ── */
.lp-tbl { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 13.5px; border-radius: var(--rl); overflow: hidden; }
.lp-tbl thead tr { background: var(--i600); }
.lp-tbl th { padding: 11px 16px; text-align: left; color: white; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.lp-tbl td { padding: 10px 16px; border-bottom: 1px solid var(--s100); color: var(--s700); }
.lp-tbl tr:last-child td { border-bottom: none; }
.lp-tbl tr:nth-child(even) td { background: var(--s50); }
.lp-tbl td strong { color: var(--s900); }

/* ── FAQ ── */
.lp-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.lp-faq-item {
  background: var(--s50); border: 1px solid var(--s200);
  border-radius: var(--rl); padding: 20px 24px;
}
.lp-faq-item h3 { font-size: 14px; font-weight: 700; color: var(--s800); margin-bottom: 7px; line-height: 1.4; }
.lp-faq-item p  { font-size: 13.5px; line-height: 1.75; color: var(--s600); }
.lp-faq-item p strong { color: var(--s800); }

/* ── AVISO / ALERTA ── */
.lp-alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: var(--rl); padding: 16px 20px; margin-top: 20px;
  font-size: 13.5px; line-height: 1.7; color: #92400E;
}
.lp-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: #D97706; }

/* ── CTA FINAL ── */
.lp-cta {
  background: linear-gradient(135deg, var(--i600) 0%, var(--i800) 100%);
  padding: 72px 0; text-align: center;
}
.lp-cta h2 { font-size: 30px; font-weight: 800; color: white; letter-spacing: -1px; margin-bottom: 12px; }
.lp-cta p  { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 30px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; background: white; color: var(--i700);
  border-radius: var(--rl); font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); transition: all .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-white svg { width: 17px; height: 17px; }

/* ── RELACIONADAS ── */
.lp-related { padding: 36px 0; background: var(--s50); border-top: 1px solid var(--s100); }
.lp-related h2 { font-size: 14px; font-weight: 700; color: var(--s500); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.lp-rel-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.lp-rel-link {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: white; border: 1px solid var(--s200);
  border-radius: var(--r); font-size: 12.5px; font-weight: 500; color: var(--s600);
  transition: all .15s;
}
.lp-rel-link:hover { border-color: var(--i300,#A5B4FC); color: var(--i600); background: var(--i50); }
.lp-rel-link svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--i400); }

/* ── FOOTER ── */
.lp-footer {
  background: white; border-top: 1px solid var(--s200);
  padding: 18px 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--s400);
}
.lp-footer a { color: var(--s500); transition: color .15s; }
.lp-footer a:hover { color: var(--i600); }
.lp-footer-links { display: flex; gap: 16px; }

/* ── AD SLOTS ── */
.ad-unit {
  width: 100%; overflow: hidden; text-align: center;
  background: var(--s50);
  border-top: 1px solid var(--s100);
  border-bottom: 1px solid var(--s100);
  padding: 10px 16px 14px;
}
.ad-label {
  display: block; font-size: 9px; font-weight: 600;
  color: var(--s300); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 4px;
}
.ad-unit ins.adsbygoogle { display: block !important; min-height: 90px; background: var(--s100); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .lp-hero  { padding: 52px 0 44px; }
  .lp-hero h1 { font-size: 28px; letter-spacing: -1px; }
  .lp-hero-lead { font-size: 15px; }
  .btn-hero { padding: 13px 26px; font-size: 15px; }
  .lp-sec   { padding: 44px 0; }
  .lp-sec h2 { font-size: 22px; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-cards-2 { grid-template-columns: 1fr; }
  .lp-rel-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .lp-nav-pill { display: none; }
  .lp-btn-nav-txt { display: none; }
  .lp-rel-grid { grid-template-columns: 1fr; }
  .lp-footer { flex-direction: column; align-items: center; text-align: center; }
}
