/* Landing informativa (home.php). Usa las variables de style.css (--brand, etc.)
   y agrega las suyas propias para el tema oscuro del hero. */

:root {
  --lp-bg: #0b0b17;
  --lp-bg-soft: #12122a;
  --lp-ink: #f5f5fb;
  --lp-muted: #a7a7c2;
  --lp-brand: #6366f1;
  --lp-brand-2: #a855f7;
  --lp-brand-3: #22d3ee;
  --lp-card: #14142c;
  --lp-border: rgba(255, 255, 255, .08);
}

.lp body,
body.lp {
  background: var(--lp-bg);
}

.lp {
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  padding-bottom: 0;
}

.lp * { box-sizing: border-box; }
.lp a { text-decoration: none; color: inherit; }
.lp img { max-width: 100%; display: block; }
.lp section { position: relative; }

.lp ::selection { background: var(--lp-brand); color: #fff; }

/* ---------- Navbar ---------- */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}

.lp-nav.is-scrolled {
  background: rgba(11, 11, 23, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--lp-border);
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.lp-nav .brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.lp-nav .links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .92rem;
  color: var(--lp-muted);
}

.lp-nav .links a {
  position: relative;
  transition: color .2s ease;
}
.lp-nav .links a:hover { color: var(--lp-ink); }
.lp-nav .links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--lp-brand-3), var(--lp-brand-2));
  transition: width .25s ease;
}
.lp-nav .links a:hover::after { width: 100%; }

.lp-nav .cta {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.35rem;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.lp-btn:active { transform: translateY(1px) scale(.98); }

.lp-btn-ghost {
  background: transparent;
  border: 1px solid var(--lp-border);
  color: var(--lp-ink);
}
.lp-btn-ghost:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }

.lp-btn-solid {
  background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(99,102,241,.65);
}
.lp-btn-solid:hover { box-shadow: 0 10px 30px -6px rgba(99,102,241,.8); transform: translateY(-1px); }

.lp-btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.lp-btn-block { width: 100%; }

.lp-btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--lp-brand);
  color: var(--lp-ink);
}
.lp-btn-outline-brand:hover { background: rgba(99,102,241,.12); }

/* ---------- Hero ---------- */
.lp-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1rem, 4vw, 3rem) 4rem;
  position: relative;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(50% 45% at 90% 15%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(168,85,247,.25), transparent 60%),
    var(--lp-bg);
}

.lp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.lp-blob-1 { width: 480px; height: 480px; top: -120px; left: -140px; background: radial-gradient(circle, var(--lp-brand), transparent 70%); }
.lp-blob-2 { width: 420px; height: 420px; top: 30%; right: -160px; background: radial-gradient(circle, var(--lp-brand-3), transparent 70%); }
.lp-blob-3 { width: 380px; height: 380px; bottom: -160px; left: 30%; background: radial-gradient(circle, var(--lp-brand-2), transparent 70%); }

.lp-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 40%, transparent 100%);
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 960px) {
  .lp-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lp-hero-visual { order: -1; }
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.35);
  color: #c7d2fe;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.lp-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lp-brand-3);
  box-shadow: 0 0 0 4px rgba(34,211,238,.18);
  animation: lp-pulse 1.8s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .35; }
}

.lp-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.lp-hero h1 .grad {
  background: linear-gradient(135deg, #a5b4fc, var(--lp-brand-3) 60%, var(--lp-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--lp-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}
@media (max-width: 960px) { .lp-hero p.lead { margin-inline: auto; } }

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 960px) { .lp-hero-actions { justify-content: center; } }

.lp-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  color: var(--lp-muted);
  font-size: .85rem;
}
@media (max-width: 960px) { .lp-hero-trust { justify-content: center; } }
.lp-hero-trust span { display: flex; align-items: center; gap: .45rem; }
.lp-hero-trust i { color: var(--lp-brand-3); }

/* Mockup de navegador con "pantalla" del sistema, hecho 100% con CSS/HTML */
.lp-hero-visual { perspective: 1400px; }
.lp-mock {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .4s ease;
  will-change: transform;
}
.lp-hero-visual:hover .lp-mock { transform: rotateY(-2deg) rotateX(1deg); }

.lp-mock-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--lp-border);
}
.lp-mock-bar .dotb { width: 9px; height: 9px; border-radius: 50%; }
.lp-mock-bar .dotb:nth-child(1) { background: #ff5f57; }
.lp-mock-bar .dotb:nth-child(2) { background: #febc2e; }
.lp-mock-bar .dotb:nth-child(3) { background: #28c840; }
.lp-mock-bar .url {
  margin-left: .6rem;
  font-size: .72rem;
  color: var(--lp-muted);
  background: rgba(255,255,255,.05);
  padding: .2rem .7rem;
  border-radius: 999px;
}

.lp-mock-body { padding: 1.1rem; }
.lp-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.lp-mock-stat {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: .7rem .6rem;
}
.lp-mock-stat .n { font-weight: 800; font-size: 1.1rem; }
.lp-mock-stat .l { font-size: .68rem; color: var(--lp-muted); text-transform: uppercase; letter-spacing: .03em; }
.lp-mock-stat.brand .n { color: #a5b4fc; }
.lp-mock-stat.cyan .n { color: var(--lp-brand-3); }
.lp-mock-stat.pink .n { color: #f0abfc; }

.lp-mock-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .5rem;
  border-radius: 10px;
  font-size: .8rem;
}
.lp-mock-row + .lp-mock-row { margin-top: .3rem; }
.lp-mock-row:hover { background: rgba(255,255,255,.03); }
.lp-mock-thumb {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-3));
}
.lp-mock-row .name { font-weight: 600; }
.lp-mock-row .sub { color: var(--lp-muted); font-size: .72rem; }
.lp-mock-row .price { margin-left: auto; font-weight: 700; color: var(--lp-brand-3); }
.lp-mock-qr {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: rgba(34,211,238,.08);
  border: 1px dashed rgba(34,211,238,.4);
  border-radius: 10px;
  padding: .7rem;
  font-size: .74rem;
  color: #a5f3fc;
}
.lp-mock-qr .qr {
  width: 40px; height: 40px; border-radius: 6px; flex: none;
  background:
    conic-gradient(#0000 0 25%, #22d3ee 0 50%, #0000 0 75%, #22d3ee 0) 0 0/10px 10px,
    #0b0b17;
}

.lp-float-card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  animation: lp-float 4s ease-in-out infinite;
}
@media (max-width: 960px) { .lp-float-card { right: 8px; } }
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lp-float-card .ic {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.15); color: #4ade80; font-size: 1.05rem;
}
.lp-float-card .t1 { font-weight: 700; font-size: .82rem; }
.lp-float-card .t2 { font-size: .7rem; color: var(--lp-muted); }

.lp-scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--lp-muted);
  font-size: .72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  z-index: 1;
}
.lp-scroll-cue .line {
  width: 1px; height: 26px;
  background: linear-gradient(var(--lp-brand-3), transparent);
  animation: lp-scrolldown 1.6s ease-in-out infinite;
}
@keyframes lp-scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Secciones generales ---------- */
.lp-section {
  padding: 6.5rem clamp(1rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
}

.lp-kicker {
  color: var(--lp-brand-3);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .7rem;
  display: block;
}

.lp-section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .9rem;
}

.lp-section .sub {
  color: var(--lp-muted);
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.lp-center { text-align: center; }
.lp-center .sub { margin-inline: auto; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }
.reveal-delay-4.is-visible { transition-delay: .32s; }

/* ---------- Cómo funciona (steps) ---------- */
.lp-steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: lp-step;
}
@media (max-width: 900px) { .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-step {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 1.5rem 1.3rem;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.lp-step:hover { transform: translateY(-6px); border-color: rgba(99,102,241,.4); }
.lp-step .num {
  counter-increment: lp-step;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-2));
  font-weight: 800;
  margin-bottom: 1rem;
}
.lp-step .num::before { content: counter(lp-step); }
.lp-step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .5rem; }
.lp-step p { color: var(--lp-muted); font-size: .88rem; line-height: 1.55; margin: 0; }

/* ---------- Features grid ---------- */
.lp-features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
@media (max-width: 900px) { .lp-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lp-features { grid-template-columns: 1fr; } }

.lp-feature {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.lp-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.lp-feature .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: rgba(99,102,241,.14);
  color: #a5b4fc;
}
.lp-feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
.lp-feature p { color: var(--lp-muted); font-size: .87rem; line-height: 1.55; margin: 0; }

/* ---------- Pricing ---------- */
.lp-price-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.lp-price-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--lp-card);
  border-radius: 22px;
  padding: 2.3px;
  background: linear-gradient(140deg, var(--lp-brand), var(--lp-brand-3), var(--lp-brand-2));
}
.lp-price-inner {
  background: #0e0e22;
  border-radius: 20px;
  padding: 2.4rem 2.1rem;
}
.lp-price-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.35);
  color: #a5f3fc;
  font-size: .76rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.lp-price-plan { font-size: 1.05rem; color: var(--lp-muted); font-weight: 600; margin-bottom: .3rem; }
.lp-price-amount { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .3rem; }
.lp-price-amount .num { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; }
.lp-price-amount .cur { font-size: 1.1rem; color: var(--lp-muted); }
.lp-price-period { color: var(--lp-muted); font-size: .88rem; margin-bottom: 1.6rem; }

.lp-price-list { list-style: none; padding: 0; margin: 0 0 1.9rem; display: grid; gap: .7rem; }
.lp-price-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: #e5e7eb; }
.lp-price-list li i { color: #4ade80; margin-top: .18rem; }

.lp-price-foot { text-align: center; margin-top: 1rem; font-size: .78rem; color: var(--lp-muted); }
.lp-price-foot a { color: #a5b4fc; font-weight: 600; }

/* ---------- FAQ ---------- */
.lp-faq { margin-top: 3rem; display: grid; gap: .75rem; }
.lp-faq-item {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  overflow: hidden;
}
.lp-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--lp-ink);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  gap: 1rem;
}
.lp-faq-q i { transition: transform .25s ease; color: var(--lp-muted); flex: none; }
.lp-faq-item.open .lp-faq-q i { transform: rotate(180deg); color: var(--lp-brand-3); }
.lp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--lp-muted);
  font-size: .88rem;
  line-height: 1.6;
  padding: 0 1.3rem;
}
.lp-faq-item.open .lp-faq-a { max-height: 240px; padding: 0 1.3rem 1.1rem; }

/* ---------- CTA final ---------- */
.lp-cta-final {
  margin: 2rem clamp(1rem, 4vw, 3rem) 0;
  max-width: 1180px;
  margin-inline: auto;
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a3d, #12122a 60%);
  border: 1px solid var(--lp-border);
}
.lp-cta-final::before {
  content: '';
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.35), transparent 55%),
              radial-gradient(circle at 75% 70%, rgba(34,211,238,.25), transparent 55%);
  filter: blur(10px);
}
.lp-cta-final > * { position: relative; z-index: 1; }
.lp-cta-final h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: .8rem; }
.lp-cta-final p { color: var(--lp-muted); margin-bottom: 1.8rem; }
.lp-cta-final .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.lp-footer {
  padding: 3rem clamp(1rem, 4vw, 3rem) 2.2rem;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--lp-muted);
  font-size: .82rem;
  border-top: 1px solid var(--lp-border);
  margin-top: 3rem;
}
.lp-footer .brand { color: var(--lp-ink); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.lp-footer-links { display: flex; gap: 1.4rem; }
.lp-footer-links a:hover { color: var(--lp-ink); }

/* Floating WhatsApp */
.lp-wa-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.6);
  animation: lp-float 3.5s ease-in-out infinite;
}
.lp-wa-float:hover { transform: scale(1.06); }
