/* =============================================================================
   Lexiius — Landing page styles
   Tokens + las 11 secciones. Sin librerías. Inter + JetBrains Mono.
   ============================================================================= */

:root{
  --accent:#1e4d8c;
  --accent-hover:#163a6b;
  --accent-light:#e8eef8;
  --accent-border:#c5d5ed;

  --text:#0f172a;
  --text-2:#475569;
  --text-3:#94a3b8;

  --bg:#ffffff;
  --bg-alt:#f8fafc;
  --border:#e2e8f0;

  --error:#dc2626;
  --success:#16a34a;

  --redact:#cbd5e1;

  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono','Fira Code',monospace;

  --r-card:8px;
  --r-btn:6px;
  --r-input:4px;

  --shadow-card:0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover:0 4px 12px rgba(0,0,0,.10), 0 12px 32px rgba(0,0,0,.06);
  --shadow-pop:0 12px 28px rgba(15,23,42,.12);

  --maxw:1160px;
  --gutter:24px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--font); color:var(--text); background:var(--bg);
  line-height:1.65; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{ font-weight:700; letter-spacing:-.03em; line-height:1.15; margin:0; color:var(--text); }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
svg{ display:block; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.eyebrow{
  font-size:.8125rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent); margin-bottom:14px;
}
.section{ padding:96px 0; }
.section--alt{ background:var(--bg-alt); }
.section-head{ max-width:720px; margin:0 auto 56px; text-align:center; }
.section-head h2{ font-size:2.25rem; }
.section-head p{ margin-top:14px; font-size:1.0625rem; color:var(--text-2); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font); font-weight:600; font-size:.9375rem; cursor:pointer;
  border-radius:var(--r-btn); border:1px solid transparent; padding:0 20px; height:44px;
  transition:background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  white-space:nowrap;
}
.btn svg{ width:16px; height:16px; }
.btn--primary{ background:var(--accent); color:#fff; }
.btn--primary:hover{ background:var(--accent-hover); }
.btn--ghost{ background:transparent; color:var(--text-2); }
.btn--ghost:hover{ color:var(--text); }
.btn--outline{ background:transparent; border-color:var(--border); color:var(--text); }
.btn--outline:hover{ background:var(--bg-alt); border-color:var(--accent-border); }
.btn--lg{ height:52px; padding:0 26px; font-size:1rem; }
.btn--link{ background:none; color:var(--accent); padding:0; height:auto; }
.btn--link:hover{ color:var(--accent-hover); }

/* =============================================================================
   NAVBAR
   ============================================================================= */
.nav{
  position:sticky; top:0; z-index:50; background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid transparent; transition:border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled{ border-bottom-color:var(--border); box-shadow:0 1px 0 rgba(0,0,0,.02); }
.nav-inner{ display:flex; align-items:center; gap:20px; height:66px; }
.brand{ font-weight:700; font-size:1.25rem; letter-spacing:-.02em; color:var(--accent); }
.nav-spacer{ flex:1; }
.nav-actions{ display:flex; align-items:center; gap:8px; }

/* Language switcher */
.lang{ display:flex; align-items:center; gap:2px; background:var(--bg-alt); border:1px solid var(--border); border-radius:999px; padding:3px; margin-right:6px; }
.lang button{
  position:relative; display:flex; align-items:center; gap:6px; cursor:pointer;
  font-family:var(--font); font-size:.8125rem; font-weight:600; color:var(--text-2);
  border:0; background:transparent; padding:5px 10px; border-radius:999px;
}
.lang button .flag{ width:18px; height:13px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,.06); flex:none; }
.lang button.is-on{ background:#fff; color:var(--text); box-shadow:var(--shadow-card); }
.lang button .lbl{ display:none; }
.lang button.is-on .lbl{ display:inline; }
.lang button .tip{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(4px);
  background:var(--text); color:#fff; font-size:.6875rem; font-weight:500; padding:4px 8px; border-radius:5px;
  white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease;
}
.lang button:hover .tip{ opacity:1; transform:translateX(-50%) translateY(0); }

/* =============================================================================
   HERO
   ============================================================================= */
.hero{ padding:84px 0 72px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero h1{ font-size:3.5rem; }
.hero .lede{ margin-top:22px; font-size:1.25rem; color:var(--text-2); max-width:540px; }
.hero-cta{ display:flex; align-items:center; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-stats{
  display:flex; flex-wrap:wrap; gap:10px 0; margin-top:40px; padding-top:26px;
  border-top:1px solid var(--border); color:var(--text-2); font-size:.8125rem; font-weight:500;
}
.hero-stats span{ padding:0 18px; border-right:1px solid var(--border); }
.hero-stats span:first-child{ padding-left:0; }
.hero-stats span:last-child{ border-right:0; }

/* Hero mockup */
.mock{
  background:#0f172a; border-radius:14px; box-shadow:var(--shadow-pop); overflow:hidden;
  font-family:var(--mono); font-size:.8125rem; line-height:1.7;
}
.mock-bar{ display:flex; align-items:center; gap:7px; padding:12px 16px; background:#1e293b; border-bottom:1px solid #334155; }
.mock-bar i{ width:11px; height:11px; border-radius:50%; display:block; }
.mock-bar i:nth-child(1){ background:#ef4444; } .mock-bar i:nth-child(2){ background:#eab308; } .mock-bar i:nth-child(3){ background:#22c55e; }
.mock-bar .mock-file{ margin-left:10px; color:#94a3b8; font-size:.75rem; }
.mock-body{ padding:20px 22px; color:#cbd5e1; }
.mock-label{ font-family:var(--font); font-size:.6875rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#64748b; margin-bottom:8px; }
.mock-sensitive b{ color:#fca5a5; font-weight:600; }
.mock-arrow{ display:flex; align-items:center; gap:10px; margin:18px 0; color:#475569; }
.mock-arrow .line{ flex:1; height:1px; background:#334155; }
.mock-arrow svg{ width:20px; height:20px; color:#3b82f6; animation:bobV 1.8s ease-in-out infinite; }
@keyframes bobV{ 0%,100%{ transform:translateY(-2px);} 50%{ transform:translateY(3px);} }
.mock-var{ color:#7dd3fc; background:rgba(59,130,246,.14); padding:1px 5px; border-radius:4px; font-weight:500; }

/* =============================================================================
   PROBLEMA (3 cards)
   ============================================================================= */
.cards-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card{
  background:var(--bg); border:1px solid var(--border); border-radius:var(--r-card);
  padding:28px; box-shadow:var(--shadow-card); transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow:var(--shadow-hover); transform:translateY(-3px); }
.card-ico{
  width:44px; height:44px; border-radius:10px; background:var(--accent-light); color:var(--accent);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card-ico svg{ width:22px; height:22px; }
.card-ico--danger{ background:#fef2f2; color:var(--error); }
.card h3{ font-size:1.125rem; margin-bottom:10px; }
.card .kicker{ font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); margin-bottom:8px; }
.card p{ color:var(--text-2); font-size:.9375rem; }

/* =============================================================================
   CÓMO FUNCIONA (3 pasos)
   ============================================================================= */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative; }
.step{ padding:0 28px; text-align:center; position:relative; }
.step:not(:last-child)::after{
  content:""; position:absolute; top:26px; right:-1px; width:100%; height:2px;
  background:linear-gradient(90deg, var(--accent-border), var(--border)); z-index:0;
}
.step-num{
  position:relative; z-index:1; width:54px; height:54px; margin:0 auto 20px; border-radius:50%;
  background:#fff; border:2px solid var(--accent); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.25rem;
}
.step-ico{ color:var(--accent); margin:0 auto 14px; width:26px; height:26px; }
.step-ico svg{ width:26px; height:26px; }
.step h3{ font-size:1.125rem; margin-bottom:10px; }
.step p{ color:var(--text-2); font-size:.9375rem; max-width:300px; margin:0 auto; }

/* =============================================================================
   FEATURES (3x2)
   ============================================================================= */
.cards-6{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.feature{ padding:26px; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-card); transition:box-shadow .2s ease, transform .2s ease; }
.feature:hover{ box-shadow:var(--shadow-hover); transform:translateY(-3px); }
.feature .card-ico{ background:var(--accent-light); color:var(--accent); }
.feature h3{ font-size:1.0625rem; margin-bottom:8px; }
.feature p{ color:var(--text-2); font-size:.9rem; }

/* =============================================================================
   VERTICALES (4 cards)
   ============================================================================= */
.cards-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.vert{ padding:26px; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-card); box-shadow:var(--shadow-card); }
.vert .card-ico{ width:40px; height:40px; border-radius:9px; }
.vert h3{ font-size:1rem; margin-bottom:14px; }
.vert ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.vert li{ position:relative; padding-left:20px; font-size:.875rem; color:var(--text-2); line-height:1.45; }
.vert li::before{
  content:""; position:absolute; left:0; top:7px; width:7px; height:7px; border-radius:2px;
  background:var(--accent-border);
}

/* =============================================================================
   REPORTE (tabla mono)
   ============================================================================= */
.report{
  max-width:860px; margin:0 auto; background:#0f172a; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-pop); font-family:var(--mono);
}
.report-head{
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:16px 22px; background:#1e293b; border-bottom:1px solid #334155;
  font-size:.8125rem; color:#cbd5e1;
}
.report-head .muted{ color:#64748b; }
.report-table{ width:100%; border-collapse:collapse; font-size:.8125rem; }
.report-table th, .report-table td{ text-align:left; padding:11px 22px; }
.report-table thead th{ color:#64748b; font-weight:500; font-size:.6875rem; letter-spacing:.05em; text-transform:uppercase; border-bottom:1px solid #334155; }
.report-table tbody tr{ border-bottom:1px solid rgba(51,65,85,.5); }
.report-table tbody tr:last-child{ border-bottom:0; }
.report-table .var{ color:#7dd3fc; }
.report-table .type{ color:#cbd5e1; }
.report-table .redacted{ color:var(--redact); letter-spacing:.5px; }
.report-table .conf{ color:#86efac; }
.report-foot{ padding:14px 22px; background:#1e293b; border-top:1px solid #334155; color:#cbd5e1; font-size:.8125rem; }
.report-foot b{ color:#fff; }
.report-note{ text-align:center; max-width:620px; margin:24px auto 0; color:var(--text-2); font-size:.9375rem; }

/* =============================================================================
   PRICING (3 cards)
   ============================================================================= */
.pricing{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:start; }
.plan{ position:relative; padding:32px 28px; background:var(--bg); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-card); }
.plan--featured{ border-color:var(--accent); box-shadow:var(--shadow-hover); transform:translateY(-8px); }
.plan-badge{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:var(--accent); color:#fff; font-size:.6875rem; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; padding:5px 14px; border-radius:999px; display:flex; align-items:center; gap:5px;
}
.plan-badge svg{ width:12px; height:12px; }
.plan-name{ font-size:.8125rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.plan-price{ margin:12px 0 4px; font-size:2.5rem; font-weight:700; letter-spacing:-.03em; }
.plan-price .per{ font-size:.9375rem; font-weight:500; color:var(--text-3); letter-spacing:0; }
.plan-tag{ color:var(--text-2); font-size:.875rem; min-height:22px; }
.plan ul{ list-style:none; margin:22px 0; padding:22px 0 0; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:12px; }
.plan li{ position:relative; padding-left:26px; font-size:.9rem; color:var(--text-2); }
.plan li svg{ position:absolute; left:0; top:2px; width:16px; height:16px; }
.plan li.yes svg{ color:var(--success); }
.plan li.no{ color:var(--text-3); }
.plan li.no svg{ color:var(--text-3); }
.plan .btn{ width:100%; }
.pricing-note{ text-align:center; margin-top:32px; color:var(--text-2); font-size:.9375rem; }

/* =============================================================================
   FAQ (accordion)
   ============================================================================= */
.faq{ max-width:760px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:none; border:0; cursor:pointer; font-family:var(--font);
  padding:22px 4px; text-align:left; font-size:1.0625rem; font-weight:600; color:var(--text);
}
.faq-q .chev{ flex:none; width:20px; height:20px; color:var(--text-3); transition:transform .25s ease, color .2s ease; }
.faq-item.is-open .faq-q .chev{ transform:rotate(180deg); color:var(--accent); }
.faq-a{ overflow:hidden; max-height:0; transition:max-height .3s ease; }
.faq-a-inner{ padding:0 4px 22px; color:var(--text-2); font-size:.9375rem; max-width:640px; }

/* =============================================================================
   CTA FINAL
   ============================================================================= */
.cta{ background:var(--accent); color:#fff; text-align:center; padding:84px 0; }
.cta h2{ color:#fff; font-size:2.25rem; max-width:680px; margin:0 auto; }
.cta p{ margin-top:0; }
.cta .btn{ margin-top:32px; background:transparent; border:1px solid rgba(255,255,255,.7); color:#fff; }
.cta .btn:hover{ background:#fff; color:var(--accent); border-color:#fff; }

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer{ background:var(--bg-alt); border-top:1px solid var(--border); padding:56px 0 32px; }
.footer-top{ display:flex; justify-content:space-between; align-items:center; gap:20px; padding-bottom:36px; border-bottom:1px solid var(--border); }
.footer-cols{ display:grid; grid-template-columns:repeat(3,minmax(0,180px)); gap:40px; padding:36px 0; }
.footer-col h4{ font-size:.75rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--text-3); margin-bottom:14px; }
.footer-col a{ display:block; color:var(--text-2); font-size:.9rem; padding:5px 0; }
.footer-col a:hover{ color:var(--accent); }
.footer-bottom{ color:var(--text-3); font-size:.8125rem; padding-top:24px; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
  .hero h1{ font-size:2.75rem; }
  .cards-3,.cards-6,.steps{ grid-template-columns:1fr; gap:24px; }
  .step:not(:last-child)::after{ display:none; }
  .cards-4{ grid-template-columns:repeat(2,1fr); }
  .pricing{ grid-template-columns:1fr; }
  .plan--featured{ transform:none; }
  .footer-top{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:560px){
  .section{ padding:64px 0; }
  .hero h1{ font-size:2.25rem; }
  .section-head h2,.cta h2{ font-size:1.75rem; }
  .cards-4{ grid-template-columns:1fr; }
  .nav-actions .btn--ghost{ display:none; }
  .hero-stats span{ border-right:0; padding-left:0; }
  .footer-cols{ grid-template-columns:1fr 1fr; }
  .report-table th:nth-child(4),.report-table td:nth-child(4){ display:none; }
}

/* ===== CONNECTOR SECTION ===== */
.conn-sec-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;}
@media(max-width:860px){.conn-sec-grid{grid-template-columns:1fr;gap:40px;}}
.conn-sec-comparison{display:flex;align-items:flex-start;gap:20px;margin-bottom:32px;}
.conn-sec-col{flex:1;}
.conn-sec-col-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-2,#475569);margin-bottom:12px;}
.conn-sec-col-label--accent{color:var(--accent,#1e4d8c);}
.conn-sec-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;}
.conn-sec-col li{display:flex;align-items:center;gap:8px;font-size:13px;}
.conn-sec-col li svg{width:14px;height:14px;flex-shrink:0;}
.conn-sec-col li.yes{color:var(--text,#0f172a);}
.conn-sec-col li.no{color:var(--text-2,#475569);}
.conn-sec-col li.no svg{stroke:#dc2626;}
.conn-sec-col li.yes svg{stroke:#16a34a;}
.conn-sec-arrow{color:var(--text-3,#94a3b8);font-size:24px;padding-top:20px;flex-shrink:0;}
.conn-sec-cta{display:flex;flex-direction:column;gap:8px;}
.conn-sec-cta .btn{align-self:flex-start;}
.conn-sec-note{font-size:12px;color:var(--text-3,#94a3b8);}
/* Mock */
.conn-sec-right{display:flex;flex-direction:column;align-items:center;gap:12px;}
.conn-sec-mock{background:var(--bg,#fff);border:1px solid var(--border,#e2e8f0);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,.08);width:100%;max-width:340px;}
.conn-sec-mock-bar{background:var(--bg-alt,#f8fafc);border-bottom:1px solid var(--border,#e2e8f0);padding:10px 14px;display:flex;align-items:center;gap:6px;}
.conn-sec-mock-dot{width:10px;height:10px;border-radius:50%;background:#e2e8f0;}
.conn-sec-mock-title{margin-left:8px;font-size:12px;font-weight:600;color:var(--accent,#1e4d8c);}
.conn-sec-mock-body{padding:20px 18px;display:flex;flex-direction:column;gap:12px;}
.conn-sec-mock-step{display:flex;align-items:center;gap:10px;}
.conn-sec-mock-num{width:22px;height:22px;border-radius:50%;background:var(--accent,#1e4d8c);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.conn-sec-mock-text{font-size:12px;color:var(--text,#0f172a);}
.conn-sec-mock-arrow-v{text-align:center;color:var(--text-3,#94a3b8);font-size:16px;}
.conn-sec-mock-badge{display:flex;align-items:center;gap:6px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:500;color:#16a34a;}
.conn-sec-mock-success{display:flex;align-items:center;gap:6px;background:var(--accent,#1e4d8c);border-radius:6px;padding:8px 10px;font-size:12px;font-weight:600;color:#fff;}
.conn-sec-mock-success svg{stroke:#fff;}
.conn-sec-compatible{font-size:12px;color:var(--text-3,#94a3b8);text-align:center;}
