/* ============================================================
   YISUS D NEXUS — Landing Page · styles.css
   Sistema visual propio · sin dependencias externas
   ========================================================== */
:root {
  --brand-700: #1d4ed8;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;
  --ink-950: #0b1526;
  --ink-900: #111f38;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e5eaf3;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.06), 0 4px 14px rgba(11, 21, 38, 0.06);
  --shadow-md: 0 2px 6px rgba(11, 21, 38, 0.08), 0 18px 44px -18px rgba(37, 99, 235, 0.28);
  --shadow-lg: 0 30px 70px -24px rgba(11, 21, 38, 0.35);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink-950);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); }
section { scroll-margin-top: 76px; }
::selection { background: var(--brand-600); color: #fff; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink-950);
  color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center;
  justify-content: center; background: radial-gradient(1200px 600px at 50% -10%, #1e3a8a 0%, var(--ink-950) 60%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; color: #fff; animation: loaderIn 0.7s ease both; }
.loader-logo { width: 120px; margin: 0 auto 14px; filter: drop-shadow(0 12px 30px rgba(59, 130, 246, 0.45)); }
.loader-logo img { border-radius: 22px; }
.loader-name { font-size: 13px; letter-spacing: 0.42em; font-weight: 700; color: #bfdbfe; }
.loader-title { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: 0.06em; margin: 2px 0 18px; }
.loader-title span { color: var(--brand-500); }
.loader-bar { width: 230px; height: 5px; margin: 0 auto; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 30%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), #22d3ee); animation: load 1.1s ease-in-out infinite; }
.loader-sub { margin-top: 12px; font-size: 12.5px; color: #93c5fd; min-height: 20px; }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.nav-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.nav.scrolled { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -18px rgba(11, 21, 38, 0.35); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink-950); margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand b { font-size: 16.5px; letter-spacing: 0.01em; display: block; line-height: 1.15; }
.brand small { font-size: 11px; color: var(--ink-500); letter-spacing: 0.14em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-700); font-size: 14.5px; font-weight: 600; padding: 9px 13px; border-radius: 10px; transition: 0.2s; }
.nav-links a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-links a.active { color: var(--brand-700); background: var(--brand-100); }
.nav-links a, .nav-cta, .brand small { white-space: nowrap; }
.nav-cta { flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 14px; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(37, 99, 235, 0.7); }
.btn-ghost { background: #fff; color: var(--ink-950); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-500); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-w { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline-w:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.burger { display: none; background: #fff; border: 1px solid var(--line); border-radius: 11px; width: 44px; height: 44px; cursor: pointer; box-shadow: var(--shadow-sm); }
.burger span { display: block; width: 20px; height: 2.5px; margin: 4.5px auto; background: var(--ink-950); border-radius: 2px; transition: 0.25s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 70px; overflow: clip;
  background: radial-gradient(900px 420px at 85% -5%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(700px 380px at 5% 20%, rgba(34, 211, 238, 0.12), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--brand-700); background: #fff; border: 1px solid var(--brand-100);
  padding: 7px 14px; border-radius: 99px; box-shadow: var(--shadow-sm); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.02em; margin: 20px 0 16px; }
.hero h1 .grad { background: linear-gradient(92deg, var(--brand-600), #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-700); max-width: 34rem; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 13.5px; color: var(--ink-500); margin: 0 0 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; justify-content: start; }
.hstat b { font-size: 23px; display: block; letter-spacing: -0.01em; }
.hstat span { font-size: 12.5px; color: var(--ink-500); font-weight: 600; }

/* Mockup del software (se reemplaza por captura real: ver README) */
.hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.views-card { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--brand-100); border-radius: 99px;
  padding: 7px 15px; box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--brand-700); }
.views-eye { font-size: 15px; }
.views-num { font: 800 15px var(--mono); font-variant-numeric: tabular-nums; }
.views-card.bump .views-num { animation: pop 0.5s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
.views-label { font-size: 12.5px; font-weight: 700; color: var(--ink-500); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  display: inline-block; margin-left: 2px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }
.mock { position: relative; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mock-window { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ink-950); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #93c5fd; font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-side { background: var(--ink-900); color: #cbd5e1; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; }
.mock-side .ms-logo { display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 10px; }
.mock-side .ms-logo img { width: 26px; height: 26px; border-radius: 7px; }
.mock-side span { padding: 8px 10px; border-radius: 9px; }
.mock-side span.on { background: rgba(59, 130, 246, 0.25); color: #fff; }
.mock-main { padding: 18px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: linear-gradient(180deg, #fff, var(--brand-50)); }
.mcard small { font-size: 11px; color: var(--ink-500); font-weight: 700; }
.mcard b { font-size: 18px; display: block; }
.mcard b.up { color: var(--ok); }
.mock-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.mock-table div { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 9px 12px; }
.mock-table span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-row > span:last-child { min-width: 0; }
.c-row, .demo-creds, .mock-bar em { overflow-wrap: anywhere; }
.mock-table div:nth-child(odd) { background: #f8fafc; }
.mock-table .mh { background: var(--ink-950) !important; color: #fff; font-weight: 700; }
.tag { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--brand-100); color: var(--brand-700); }
.tag.ok { background: #dcfce7; color: #15803d; }
.mock-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 10px 14px; font-size: 13px; font-weight: 700; display: flex; gap: 9px; align-items: center; }
.mock-float small { display: block; font-weight: 600; color: var(--ink-500); font-size: 11.5px; }
.mf-1 { right: -14px; top: 64px; animation: float 6s ease-in-out infinite reverse; }
.mf-2 { left: -16px; bottom: 42px; animation: float 8s ease-in-out infinite; }
.mock-shot { display: none; }
.mock-shot img { width: 100%; border-radius: 0; }
/* Cuando haya captura real, app.js agrega .has-shot y muestra la foto */
.mock-window.has-shot .mock-body, .mock-window.has-shot + .mock-float { display: none; }
.mock-window.has-shot .mock-shot { display: block; }

/* ---------- Tira de confianza ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; gap: 10px 34px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 18px 0; font-size: 14px; font-weight: 700; color: var(--ink-500); }
.trust-inner b { color: var(--ink-950); }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
h2.sec-title { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 12px; }
.sec-sub { color: var(--ink-700); font-size: 17px; max-width: 44rem; margin: 0 0 44px; }
.center { text-align: center; } .center .sec-sub { margin-inline: auto; }

/* Problema / solución */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.vs-card.bad { border-top: 4px solid #f59e0b; } .vs-card.good { border-top: 4px solid var(--ok); }
.vs-card h3 { margin: 0 0 16px; font-size: 19px; }
.vs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink-700); }
.vs-card li { display: flex; gap: 10px; align-items: flex-start; }
.vs-card li i { font-style: normal; flex-shrink: 0; }
.audience { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.audience span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* Módulos */
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; position: relative; overflow: hidden; }
.mod::after { content: ""; position: absolute; inset: auto -30% -55% auto; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.25s; }
.mod:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--brand-500); }
.mod:hover::after { opacity: 1; }
.mod-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(140deg, var(--brand-600), #0891b2); margin-bottom: 16px; transition: transform 0.22s; }
.mod:hover .mod-ico { transform: scale(1.08) rotate(-4deg); }
.mod-ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mod h3 { margin: 0 0 8px; font-size: 16.5px; }
.mod p { margin: 0; font-size: 14px; color: var(--ink-500); }
.mod.more { display: flex; flex-direction: column; justify-content: center; background: var(--ink-950); color: #fff; border-color: var(--ink-950); }
.mod.more p { color: #93c5fd; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bcell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: 0.22s; }
.bcell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcell h3 { margin: 0 0 8px; font-size: 18px; } .bcell p { margin: 0; font-size: 14.5px; color: var(--ink-500); }
.bcell .big { font-size: 40px; margin-bottom: 12px; display: block; }
.b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; } .b-4 { grid-column: span 4; }
.b-dark { background: linear-gradient(150deg, var(--ink-950), #1e3a8a); color: #fff; border-color: transparent; }
.b-dark p { color: #bfdbfe; }
.bcode { font-family: var(--mono); font-size: 13px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 12px 14px; margin-top: 14px; color: #dbeafe; }

/* Galería / preview — fotos reales del programa */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin: 0; transition: 0.22s; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shot img { width: 100%; display: block; }
.shot figcaption { padding: 16px 20px; font-size: 14px; color: var(--ink-700); }
.shot figcaption strong { display: block; color: var(--ink-950); font-size: 15.5px; }
.shot code { font-family: var(--mono); font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; }

/* Página legal (legal.html) */
.legal-top { background: var(--ink-950); color: #fff; padding: 26px 0; }
.legal-top a { color: #93c5fd; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.legal-top a:hover { color: #fff; }
.legal-body { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; }
.legal-body h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 14px 0 6px; }
.legal-body .ver { color: var(--ink-500); font-size: 14.5px; margin: 0 0 22px; }
.legal-notice { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px;
  padding: 18px 22px; font-size: 14.5px; color: var(--ink-700); margin-bottom: 30px; }
.legal-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.legal-sec h2 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal-sec h3 { font-size: 16.5px; margin: 24px 0 8px; color: var(--brand-700); }
.legal-sec p, .legal-sec li { font-size: 14.5px; color: var(--ink-700); }
.legal-sec p { margin: 0 0 10px; }
.blank { background: #fef3c7; border: 1px dashed var(--warn); border-radius: 6px;
  padding: 0 8px; font-weight: 700; color: #92400e; white-space: nowrap; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow-sm); position: relative; transition: 0.22s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step b.num { font-size: 13px; font-weight: 800; color: var(--brand-700); background: var(--brand-50);
  border-radius: 99px; padding: 4px 12px; letter-spacing: 0.08em; }
.step h3 { margin: 12px 0 8px; font-size: 16px; } .step p { margin: 0; font-size: 13.5px; color: var(--ink-500); }

/* Demo */
.demo { background: radial-gradient(800px 400px at 50% 0%, #1e40af 0%, var(--ink-950) 65%); color: #fff; border-radius: 26px; padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 60px); box-shadow: var(--shadow-lg); max-width: 920px; margin-inline: auto; text-align: center; }
.demo h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; }
.demo p { color: #bfdbfe; margin: 0 auto 24px; max-width: 40rem; }
.demo-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.demo small.note { display: block; margin-top: 14px; color: #93c5fd; font-size: 13px; }
.demo-creds { display: inline-block; margin-top: 18px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; padding: 11px 18px; font-size: 14.5px; }
.demo-creds code { font-family: var(--mono); background: rgba(0, 0, 0, 0.35); padding: 2px 10px;
  border-radius: 7px; color: #fff; font-size: 14px; }
/* (Video demo retirado: se agregará cuando exista captures/demo.mp4) */

/* Versus cuaderno vs Nexus */
.vs-arena { display: grid; gap: 14px; }
.vs-head { display: grid; grid-template-columns: 1fr 64px 1fr; font-size: 12.5px;
  font-weight: 800; letter-spacing: 0.14em; color: var(--ink-500); padding: 0 6px; }
.vs-row { display: grid; grid-template-columns: 1fr 64px 1fr; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.vs-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vs-cell { padding: 22px 24px; }
.vs-cell h4 { margin: 0 0 6px; font-size: 15.5px; }
.vs-cell p { margin: 0; font-size: 14px; color: var(--ink-500); }
.vs-bad h4 { color: #92400e; }
.vs-good { background: linear-gradient(180deg, #fff, var(--brand-50)); border-left: 3px solid var(--brand-500); }
.vs-good h4 { color: var(--brand-700); }
.vs-mid { display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(180deg, #f1f5f9 0 8px, #e2e8f0 8px 16px); }
.vs-chip { width: 46px; height: 46px; border-radius: 50%; background: var(--ink-950); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform 0.22s; }
.vs-row:hover .vs-chip { transform: rotate(-8deg) scale(1.08); }
.verdict { text-align: center; margin-top: 34px; }
.verdict h3 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; margin: 0 0 20px; }

/* Planes */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: 0.22s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-500); }
.price-card h3 { margin: 0; font-size: 21px; }
.price-card .p-sub { color: var(--ink-500); font-size: 14.5px; margin: 6px 0 22px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-700); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li i { color: var(--ok); font-style: normal; font-weight: 800; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--ink-500); font-size: 13.5px; margin: 24px 0 0; }

/* CTA final */
.cta-final { background: linear-gradient(120deg, var(--brand-700), #0891b2); border-radius: 26px; color: #fff;
  text-align: center; padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 60px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%); top: -220px; right: -140px; }
.cta-final h2 { font-size: clamp(28px, 4vw, 46px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-final p { color: #dbeafe; max-width: 36rem; margin: 0 auto 28px; font-size: 17px; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: 0.2s; }
.faq-item.open { border-color: var(--brand-500); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; text-align: left; font: 700 15.5px var(--font); color: var(--ink-950); padding: 19px 22px; }
.faq-q .x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50);
  color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: 0.25s; }
.faq-item.open .x { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-700); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin: 0 0 18px; }
.c-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 13px; margin-bottom: 12px; text-decoration: none; color: var(--ink-950); font-weight: 600; font-size: 15px; transition: 0.2s; }
.c-row:hover { border-color: var(--brand-500); transform: translateX(4px); }
.c-row .ci { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); display: flex;
  align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.c-row small { display: block; font-weight: 500; color: var(--ink-500); font-size: 13px; }
.c-row.pending { opacity: 0.75; border-style: dashed; }
.sys-card { background: var(--ink-950); color: #fff; border-radius: var(--radius); padding: 32px; }
.sys-card h3 { margin: 0 0 6px; } .sys-card > p { color: #93c5fd; font-size: 14.5px; margin: 0 0 18px; }
.sys-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.sys-card li { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); padding: 11px 14px; border-radius: 11px; }

/* Footer */
footer { background: var(--ink-950); color: #cbd5e1; padding: 60px 0 0; margin-top: 92px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.foot-brand img { width: 38px; height: 38px; border-radius: 10px; }
footer p { font-size: 14px; margin: 0 0 16px; }
footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.12em; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
footer ul a { color: #cbd5e1; text-decoration: none; } footer ul a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; display: flex; gap: 12px;
  flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: #64748b; }

/* ---------- Animación por scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* Toast demo */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 90px); background: var(--ink-950);
  color: #fff; padding: 14px 22px; border-radius: 13px; font-size: 14px; font-weight: 600; z-index: 90;
  transition: transform 0.35s ease; box-shadow: var(--shadow-lg); max-width: min(520px, 90vw); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Botones flotantes + chat ---------- */
.float-stack { position: fixed; right: 20px; bottom: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lang-btn { border: 1px solid var(--line); background: #fff; color: var(--ink-950);
  font: 800 12.5px var(--font); border-radius: 99px; padding: 8px 15px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.18s; white-space: nowrap; }
.lang-btn:hover { transform: scale(1.07); border-color: var(--brand-500); }
.wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #22c55e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 27px; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(34, 197, 94, 0.7); transition: transform 0.18s; }
.wa-btn:hover { transform: scale(1.07); }
.chat-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(140deg, var(--brand-600), #0891b2); color: #fff;
  font: 800 24px var(--font); position: relative;
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.7); transition: transform 0.18s; }
.chat-btn:hover { transform: scale(1.07); }
.chat-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.chat-btn i { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; font-style: normal; }
.chat-panel { position: fixed; right: 20px; bottom: 92px; z-index: 81; width: 344px;
  max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(520px, calc(100vh - 130px)); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  background: var(--ink-950); color: #fff; }
.chat-ava { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; display: block; }
.chat-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { color: #4ade80; font-size: 11.5px; font-weight: 700; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #94a3b8;
  font-size: 24px; cursor: pointer; line-height: 1; }
.chat-head button:hover { color: #fff; }
.chat-msgs { padding: 16px 14px; overflow-y: auto; display: flex; flex-direction: column;
  gap: 9px; flex: 1 1 auto; min-height: 80px; background: #f8fafc; }
.chat-head, .chat-quick, .chat-human, .chat-input { flex-shrink: 0; }
.cm { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.cm small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ink-500); margin-bottom: 3px; }
.cm-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cm-bot a { color: var(--brand-700); font-weight: 700; }
.cm-me { background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cm-owner { background: var(--ink-950); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cm-owner small { color: #fbbf24; }
.cm-sys { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  border-bottom-left-radius: 4px; align-self: flex-start; max-width: 85%;
  padding: 9px 13px; font-size: 13.5px; line-height: 1.45; }
.cm-sys small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ink-500); margin-bottom: 3px; }
.chat-quick { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-quick button { border: 1px solid var(--brand-500); background: var(--brand-50); color: var(--brand-700);
  font: 700 12.5px var(--font); border-radius: 99px; padding: 7px 13px; cursor: pointer; }
.chat-quick button:hover { background: var(--brand-600); color: #fff; }
.chat-human { padding: 12px 14px; border-top: 1px solid var(--line); background: #fff8eb; }
.chat-human p { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.chat-human input { width: 100%; margin-bottom: 8px; font: 500 13.5px var(--font);
  padding: 10px 12px; border: 1px solid var(--ink-300); border-radius: 10px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; font: 500 13.5px var(--font);
  padding: 11px 13px; border: 1px solid var(--ink-300); border-radius: 99px; }
.chat-input button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-size: 17px; cursor: pointer; }

/* ---------- Resumen owner ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px 14px;
  text-align: center; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit;
  color: var(--ink-950); transition: transform 0.2s, box-shadow 0.2s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-500); }
.stat b { display: block; font-size: 31px; letter-spacing: -0.02em; }
.stat span { font-size: 13px; font-weight: 700; color: var(--ink-500); }
div.stat { cursor: default; }
div.stat:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.linkrow { display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 10px 4px; cursor: pointer;
  font: 600 14px var(--font); color: var(--ink-950); }
.linkrow:last-child { border-bottom: 0; }
.linkrow:hover { color: var(--brand-700); }
.linkrow small { display: block; font-weight: 500; color: var(--ink-500); font-size: 12px; margin-top: 2px; }

/* ---------- Barra de subida premium ---------- */
.upbar { background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.upbar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.upbar-top strong { font-size: 14.5px; }
.upbar-top b { font: 800 23px var(--mono); color: var(--brand-700); }
.upbar-track { height: 13px; border-radius: 99px; background: #e8eef7; overflow: hidden; }
.upbar-track i { display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-600), #0891b2);
  transition: width 0.25s ease; position: relative; overflow: hidden; }
.upbar-track i::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.35) 0 10px, transparent 10px 20px);
  animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }
.upbar.busy .upbar-track i { width: 35% !important; animation: slidebar 1.2s ease-in-out infinite; }
.upbar.busy .upbar-track i::after { animation: none; }
@keyframes slidebar { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.upbar p.muted { margin: 10px 0 0; font-size: 12.5px; }

/* ---------- Conversación (panel owner) ---------- */
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.chat-list { display: flex; flex-direction: column; gap: 9px; max-height: 520px; overflow-y: auto; }
.chat-item { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 15px; cursor: pointer; font: 600 13.5px var(--font); color: var(--ink-950); }
.chat-item small { display: block; font-weight: 500; color: var(--ink-500); font-size: 12px; margin-top: 3px; }
.chat-item.on { border-color: var(--brand-500); box-shadow: var(--shadow-sm); }
.chat-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; min-height: 420px; max-height: 560px; }
.chat-thread .chat-msgs { flex: 1; max-height: none; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .b-3, .b-2, .b-4 { grid-column: span 6; }
  .b-2.half { grid-column: span 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
  .demo { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 68px 16px auto 16px; background: #fff; border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch;
    padding: 10px; gap: 0; opacity: 0; visibility: hidden; transform: translateY(-12px) scale(0.99); transition: 0.28s;
    max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links li { list-style: none; }
  .nav-links li + li { border-top: 1px solid #f1f5f9; }
  .nav-links a { display: flex; align-items: center; min-height: 50px; padding: 12px 16px;
    font-size: 16px; border-radius: 13px; }
  .nav-links a.active { background: var(--brand-600); color: #fff; }
  .burger { display: block; }
  .nav-cta { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 1021px) {
  .nav-links [data-nav-m] { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: min(var(--max), 100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-cta .btn, .demo-cta .btn { flex: 1 1 100%; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-card, .bcell, .step, .contact-card, .sys-card { padding: 22px; }
  .mod-grid { grid-template-columns: 1fr; }
  .b-2.half { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; flex-wrap: wrap; }
  .mock-cards { grid-template-columns: 1fr; }
  .mock-table { font-size: 12px; }
  .mock-float { display: none; }
  .views-card { align-self: stretch; justify-content: center; }
  .vs-row, .vs-head { grid-template-columns: 1fr; }
  .vs-head span:nth-child(2) { display: none; }
  .vs-head { gap: 6px; text-align: center; }
  .vs-mid { padding: 8px; }
  .vs-good { border-left: 0; border-top: 3px solid var(--brand-500); }
  .news-strip { flex-direction: column; align-items: flex-start; }
  .chat-wrap { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .float-stack { right: 14px; bottom: 16px; }
  .chat-panel { right: 12px; bottom: 86px; }
  .demo-creds { display: block; line-height: 2; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 30px; }
  .btn { padding: 12px 18px; font-size: 14.5px; }
  .hstat b { font-size: 20px; }
  .brand small { display: none; }
  .faq-q { font-size: 14.5px; padding: 16px 18px; }
}

/* Tira de novedades en el hero */
.news-strip { display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px;
  box-shadow: var(--shadow-sm); margin-top: 40px; }
.news-strip p { margin: 0; flex: 1; font-size: 14.5px; color: var(--ink-700); }
.news-strip .btn { flex-shrink: 0; }
/* ---------- Cuenta / panel / descargas ---------- */
.page-narrow { max-width: 760px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px 22px; font: 700 15px var(--font); color: var(--ink-700); cursor: pointer; transition: 0.2s; }
.tab.active { background: var(--ink-950); color: #fff; border-color: var(--ink-950); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 32px); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.form-card h3 { font-size: 18px; }
.field { display: block; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; font: 500 15px var(--font);
  padding: 12px 14px; border: 1px solid var(--ink-300); border-radius: 11px; background: #f8fafc; color: var(--ink-950); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-600); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { border-radius: 13px; padding: 15px 20px; font-size: 14.5px; margin-bottom: 18px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-900); }
.alert.ok { background: #dcfce7; border-color: #86efac; color: #14532d; }
.alert.err { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
.alert.info { background: var(--brand-50); }
.muted { color: var(--ink-500); font-size: 14px; }
.mono, code { font-family: var(--mono); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.admin th, table.admin td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin th { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-500); background: #f8fafc; }
table.admin tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 99px;
  background: var(--brand-100); color: var(--brand-700); }
.badge.ok { background: #dcfce7; color: #15803d; }
.badge.off { background: #f1f5f9; color: var(--ink-500); }
.badge.owner { background: #fef3c7; color: #92400e; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
pre.code { font-family: var(--mono); font-size: 12.5px; background: var(--ink-950); color: #dbeafe;
  border-radius: 12px; padding: 18px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  table.admin { min-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .mock { animation: none; }
}
