
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg:#fafafa; --panel:#fff; --border:#e9e9ec; --border-strong:#dcdce1; --text:#1a1a1f; --muted:#70707b; --primary:#3b5bfd; --primary-dark:#2a44d4; --primary-tint:#f0f3ff; --green:#16a34a; --amber:#d97706; --red:#dc2626; --radius:10px; --ease:cubic-bezier(0.25,0.1,0.25,1); }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 650; }
a { color: var(--primary); }
/* Prosa de las páginas estáticas */
.site-main { padding: 56px 0 24px; }
.site-prose { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.7; color: #2a2a31; }
.site-prose h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; margin-bottom: 14px; color: var(--text); }
.site-prose h2 { font-size: 24px; margin: 40px 0 12px; color: var(--text); }
.site-prose h3 { font-size: 18px; margin: 26px 0 8px; color: var(--text); }
.site-prose p, .site-prose ul, .site-prose ol { margin: 0 0 14px; }
.site-prose ul, .site-prose ol { padding-left: 22px; }
.site-prose li { margin: 6px 0; }
.site-prose .lead { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.site-prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.site-prose th, .site-prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.site-prose th { background: #f3f4f8; font-weight: 600; }
.site-prose .note { background: var(--primary-tint); border: 1px solid #d9e0ff; border-radius: var(--radius); padding: 14px 16px; font-size: 15px; margin: 22px 0; }
.site-prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.site-cta { text-align: center; margin: 44px 0 8px; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.site-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.site-card h3 { margin: 0 0 8px; font-size: 18px; }
.site-card p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.lp-nav-links a.lp-navlink, .lp-footer-links a.lp-navlink { text-decoration: none; }

/* ============================================================================
   Landing page — moderna y limpia, estilo SaaS. Todo con prefijo .lp para no
   chocar con los estilos de la app. Paleta propia (no depende del tema).
   ============================================================================ */

.lp {
  --lp-primary: #6366f1;
  --lp-primary-2: #8b5cf6;
  --lp-accent: #d946ef;
  --lp-ink: #0f172a;
  --lp-muted: #64748b;
  --lp-line: #e7e9f2;
  --lp-bg: #ffffff;
  --lp-bg-soft: #f7f8fc;
  --lp-radius: 16px;
  font-family: inherit;
  color: var(--lp-ink);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.lp * { box-sizing: border-box; }
.lp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(231,233,242,0.8);
}
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.lp-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.lp-logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent));
  box-shadow: 0 6px 18px rgba(139,92,246,0.35);
}
.lp-nav-links { display: flex; align-items: center; gap: 8px; }
.lp-navlink { color: var(--lp-muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 9px; background: none; border: none; cursor: pointer; }
.lp-navlink:hover { color: var(--lp-ink); }

.lp-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 15px; border-radius: 11px; padding: 11px 18px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s;
  text-decoration: none;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-primary { color: #fff; background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2)); box-shadow: 0 8px 22px rgba(99,102,241,0.35); }
.lp-btn-primary:hover { box-shadow: 0 12px 30px rgba(99,102,241,0.45); transform: translateY(-1px); }
.lp-btn-ghost { color: var(--lp-ink); background: #fff; border-color: var(--lp-line); }
.lp-btn-ghost:hover { border-color: #cfd3e6; }
.lp-btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 13px; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; padding: 96px 0 40px; text-align: center; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0; pointer-events: none; }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: lp-float 14s ease-in-out infinite; }
.lp-orb.o1 { width: 460px; height: 460px; left: 8%; top: 0; background: radial-gradient(circle, #818cf8, transparent 65%); }
.lp-orb.o2 { width: 420px; height: 420px; right: 6%; top: 40px; background: radial-gradient(circle, #e879f9, transparent 65%); animation-delay: -4s; }
.lp-orb.o3 { width: 380px; height: 380px; left: 42%; top: 120px; background: radial-gradient(circle, #22d3ee, transparent 65%); animation-delay: -8s; opacity: 0.35; }
@keyframes lp-float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(24px,-26px) scale(1.06); } 66% { transform: translate(-20px,18px) scale(0.96); } }

.lp-hero-inner { position: relative; z-index: 1; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #4f46e5;
  background: #eef0ff; border: 1px solid #e0e2ff; padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.lp-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.lp-h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 820;
  margin: 0 auto 20px; max-width: 900px;
}
.lp-h1 .grad {
  background: linear-gradient(120deg, var(--lp-primary), var(--lp-accent) 60%, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--lp-muted); max-width: 620px; margin: 0 auto 34px; line-height: 1.55; }
.lp-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta-note { margin-top: 16px; font-size: 13px; color: var(--lp-muted); }

/* ---------- Mockup del producto ---------- */
.lp-mock-wrap { position: relative; z-index: 1; margin: 56px auto 0; max-width: 940px; perspective: 1600px; }
.lp-mock {
  border-radius: 18px; border: 1px solid var(--lp-line); background: #fff; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(30,27,75,0.35), 0 12px 30px -12px rgba(30,27,75,0.2);
  transform: rotateX(6deg); transform-origin: top center;
}
.lp-mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--lp-line); background: #fbfbfe; }
.lp-mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e4ee; display: inline-block; }
.lp-mock-bar i:nth-child(1){ background:#ff5f57;} .lp-mock-bar i:nth-child(2){ background:#febc2e;} .lp-mock-bar i:nth-child(3){ background:#28c840;}
.lp-mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 340px; }
.lp-mock-side { border-right: 1px solid var(--lp-line); padding: 16px; background: #fafbff; }
.lp-mock-navitem { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--lp-muted); font-weight: 600; }
.lp-mock-navitem.active { background: #eef0ff; color: #4f46e5; }
.lp-mock-navitem .ic { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); opacity: .85; }
.lp-mock-main { padding: 20px; }
.lp-mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.lp-stat { border: 1px solid var(--lp-line); border-radius: 12px; padding: 12px 14px; }
.lp-stat .k { font-size: 11px; color: var(--lp-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lp-stat .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.lp-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 14px; border: 1px solid var(--lp-line); border-radius: 12px; }
.lp-chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--lp-primary), #a5b4fc); transform-origin: bottom; animation: lp-grow 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes lp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Secciones ---------- */
.lp-section { padding: 84px 0; }
.lp-section.soft { background: var(--lp-bg-soft); }
.lp-eyebrow { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-primary); }
.lp-h2 { text-align: center; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.025em; font-weight: 800; margin: 10px auto 14px; max-width: 720px; line-height: 1.1; }
.lp-lead { text-align: center; color: var(--lp-muted); max-width: 600px; margin: 0 auto 48px; font-size: 17px; line-height: 1.55; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-feature { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 26px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.lp-feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(30,27,75,0.35); border-color: #dfe2f2; }
.lp-feature-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--lp-primary); background: linear-gradient(135deg, #eef0ff, #f4ecff); }
.lp-feature h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.lp-feature p { color: var(--lp-muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* Cómo funciona */
.lp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.lp-step { position: relative; padding-top: 8px; }
.lp-step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); box-shadow: 0 10px 24px -8px rgba(139,92,246,0.5); }
.lp-step h3 { margin: 0 0 6px; font-size: 18px; }
.lp-step p { color: var(--lp-muted); margin: 0; line-height: 1.55; font-size: 15px; }

/* Bloque destacado del agente */
.lp-spot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.lp-spot h2 { text-align: left; font-size: clamp(26px,3.4vw,38px); letter-spacing:-0.025em; margin: 8px 0 14px; }
.lp-spot p { color: var(--lp-muted); font-size: 17px; line-height: 1.6; margin: 0 0 20px; }
.lp-check { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; }
.lp-check .tick { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 12px; background: linear-gradient(135deg,#22c55e,#16a34a); }
.lp-chatcard { background: #0f1021; border-radius: 18px; padding: 20px; color: #e2e8f0; box-shadow: 0 30px 70px -30px rgba(15,16,33,0.6); border: 1px solid #22243b; }
.lp-bubble { border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-size: 14px; line-height: 1.5; }
.lp-bubble.user { background: #6366f1; color:#fff; margin-left: 40px; }
.lp-bubble.bot { background: #1a1c30; border: 1px solid #262845; }
.lp-bubble.tool { background: transparent; color: #94a3b8; font-size: 13px; padding: 4px 6px; display: flex; align-items: center; gap: 8px; }
.lp-tdot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #6366f1, #22c55e); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

/* Precios */
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.lp-plan { position: relative; background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 28px 24px;
  transition: transform .18s ease, box-shadow .2s ease; }
.lp-plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(30,27,75,0.35); }
.lp-plan.featured { border-color: transparent; box-shadow: 0 24px 60px -24px rgba(99,102,241,0.5); background:
  linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg, var(--lp-primary), var(--lp-accent)) border-box;
  border: 2px solid transparent; transform: translateY(-6px); }
.lp-plan.featured:hover { transform: translateY(-10px); }
.lp-plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(139,92,246,0.6); white-space: nowrap; }
.lp-plan-name { font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--lp-primary); }
.lp-plan-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 4px; }
.lp-plan-price .amt { font-size: 44px; font-weight: 850; letter-spacing: -0.03em; }
.lp-plan-price .per { color: var(--lp-muted); font-weight: 600; }
.lp-plan-was { color: var(--lp-muted); text-decoration: line-through; font-weight: 600; font-size: 18px; margin-left: 4px; }
.lp-plan-billed { font-size: 13px; color: var(--lp-muted); margin-bottom: 14px; min-height: 18px; }
.lp-plan-billed strong { color: #16a34a; }
.lp-plan-desc { color: var(--lp-muted); font-size: 14px; margin-bottom: 18px; min-height: 40px; }

/* Toggle Mensual / Anual */
.lp-billing-toggle { display: flex; width: fit-content; gap: 4px; margin: 22px auto 30px; padding: 5px; border: 1px solid var(--lp-line);
  background: #fff; border-radius: 999px; }
.lp-billing-opt { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--lp-muted); padding: 9px 20px; border-radius: 999px; transition: all .18s ease; }
.lp-billing-opt.active { color: #fff; background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2)); box-shadow: 0 6px 16px rgba(99,102,241,0.32); }
.lp-billing-save { font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px;
  background: rgba(34,197,94,0.15); color: #16a34a; }
.lp-billing-opt.active .lp-billing-save { background: rgba(255,255,255,0.22); color: #fff; }
.lp-plan-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--lp-line); padding-top: 18px; }
.lp-plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin: 11px 0; color: #334155; }
.lp-li-tick { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a); margin-top: 1px; }

@media (max-width: 860px) { .lp-plans { grid-template-columns: 1fr; } .lp-plan.featured { transform: none; } }

/* CTA final */
.lp-final { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 72px 24px; margin: 0 auto;
  background: radial-gradient(1200px 400px at 50% -20%, #6366f1, #4338ca 40%, #1e1b4b); color: #fff; }
.lp-final h2 { color: #fff; text-align: center; }
.lp-final p { color: #c7d2fe; max-width: 540px; margin: 0 auto 28px; font-size: 18px; }
.lp-final .lp-btn-ghost { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color:#fff; }

/* Footer */
.lp-footer { padding: 40px 0; border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 14px; }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.lp-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Reveal on scroll */
.lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.lp-reveal.lp-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .lp-mock-body { grid-template-columns: 1fr; }
  .lp-mock-side { display: none; }
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-spot { grid-template-columns: 1fr; }
  .lp-nav-links .lp-navlink.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-orb, .lp-chart span { animation: none; }
  .lp-reveal { transition: none; opacity: 1; transform: none; }
}

/* FAQ (landing) */
.lp-faq { max-width: 760px; margin: 28px auto 0; }
.lp-faq-item { background: #fff; border: 1px solid var(--border, #e9e9ec); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.lp-faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: '+'; font-size: 20px; color: var(--muted, #70707b); flex-shrink: 0; }
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item summary h3 { font-size: 16px; margin: 0; font-weight: 600; }
.lp-faq-item p { margin: 10px 0 2px; color: #4a4a55; line-height: 1.6; font-size: 15px; }
.lp a.lp-btn, .lp a.lp-navlink { text-decoration: none; }
