/* VEAD — sitio público. Sin framework: este archivo + site.js son todo lo que carga. */
:root {
  --ink: #0e0c1d;
  --ink-2: #2a2742;
  --muted: #5d5a73;
  --line: #e6e4ef;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --soft: #f3f1fb;
  --brand: #2b0acc;
  --brand-ink: #1d0890;
  --brand-soft: #ebe7ff;
  --ok: #4fc400;
  --ok-ink: #2c7a00;
  --ok-soft: #ecfbe0;
  --warn-soft: #fff6e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 12, 29, .05), 0 8px 24px rgba(14, 12, 29, .06);
  --max: 1160px;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 108%; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--ok); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 253, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; color: var(--ink); }
.brand svg { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav .btn { margin-left: 6px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Secciones */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: #d9d6ea; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #b9acff; }
.dark a { color: #c9bfff; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .fine { font-size: .9rem; color: var(--muted); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Tarjeta de prueba (mock del verificador) */
.proof { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; font-size: .95rem; }
.proof-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.seal { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ok-soft); display: grid; place-items: center; }
.seal svg { width: 24px; height: 24px; }
.proof-head strong { display: block; font-size: 1.02rem; }
.proof-head small { color: var(--ok-ink); font-weight: 600; }
.proof dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.proof dt { color: var(--muted); }
.proof dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.proof .mono { font-family: var(--font-mono); font-size: .82rem; }
.proof-steps { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.proof-steps li { display: flex; gap: 10px; align-items: center; }
.proof-steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.proof-note { margin-top: 14px; font-size: .8rem; color: var(--muted); }

/* Verificador rápido */
.verify-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; box-shadow: var(--shadow); }
.verify-bar form { display: flex; gap: 10px; }
.verify-bar input { flex: 1; min-width: 0; }
.verify-bar .label strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.verify-bar .label span { font-size: .9rem; color: var(--muted); }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: #b42318; min-height: 0; }
.form-msg:empty { display: none; }
@media (max-width: 760px) { .verify-bar { grid-template-columns: 1fr; } .verify-bar form { flex-direction: column; } }

input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; min-height: 48px; padding: 10px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Hilo: tres usos, una prueba */
.thread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.use .tag { font: 600 .78rem/1 var(--font-body); color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.use h3 { font-size: 1.45rem; font-stretch: 108%; }
.use ul { margin: 14px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: .97rem; }
.use li { padding-left: 22px; position: relative; }
.use li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--brand); border-radius: 2px; }
.use .ends { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.use .ends b { color: var(--ok-ink); }
.converge { margin-top: 20px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.converge p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.converge .btn-primary { background: var(--ok); color: var(--ink); }
.converge .btn-primary:hover { background: #63de0d; color: var(--ink); }
@media (max-width: 920px) { .thread { grid-template-columns: 1fr; } }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 .95rem/1 var(--font-display); color: var(--brand); margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Evidencia */
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.evidence div { background: var(--surface); padding: 24px; }
.evidence h3 { font-size: 1.02rem; margin-bottom: 6px; }
.evidence p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .evidence { grid-template-columns: 1fr; } }

/* Honestidad: es / no es */
.isnot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.isnot > div { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.isnot .yes { border-top: 4px solid var(--ok); }
.isnot .no { border-top: 4px solid #d0cde0; }
.isnot ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
@media (max-width: 760px) { .isnot { grid-template-columns: 1fr; } }
.legal-note { margin-top: 20px; background: var(--warn-soft); border-radius: 12px; padding: 16px 20px; font-size: .93rem; color: var(--ink-2); }

/* Dos columnas genéricas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b0acc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.dark .checklist li::before { background-color: rgba(255,255,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fc400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Código */
.code { background: #15122b; color: #e6e1ff; border-radius: var(--radius); padding: 22px; font: 400 .85rem/1.7 var(--font-mono); overflow-x: auto; border: 1px solid #2c2850; }
.code .c { color: #8a84ad; }
.code .k { color: #b9acff; }
.code .s { color: #9be86b; }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { margin-bottom: 4px; }
.plan .price { font: 800 2rem/1.1 var(--font-display); margin: 14px 0 4px; }
.plan .price small { font: 500 .95rem var(--font-body); color: var(--muted); }
.plan ul { margin: 16px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .96rem; color: var(--ink-2); }
.plan ul li::before { content: "— "; color: var(--brand); }
.plan .btn { margin-top: auto; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--font-body); color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 12px; margin: 0; }

/* Registro */
.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.signup form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.signup label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.signup .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; flex: none; }
.signup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup .ok { color: var(--ok-ink); }
@media (max-width: 920px) { .signup { grid-template-columns: 1fr; } .signup .two { grid-template-columns: 1fr; } }

/* Pie */
footer { background: var(--ink); color: #a9a5c2; padding: 56px 0 32px; font-size: .93rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font: 700 .9rem var(--font-body); margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: #d6d2ea; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a2742; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* Página interior */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 32px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2.2em; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { background: var(--soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.signup form a { color: var(--brand); }

/* Compartir (enlaces directos, sin SDK de redes) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.share-label { width: 100%; font-size: .85rem; color: inherit; opacity: .8; }
.share a, .share button { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.share a:hover, .share button:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.share svg { width: 19px; height: 19px; }
.share .share-whatsapp:hover { background: #1fa855; border-color: #1fa855; }
.share .share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share .share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-msg { font-size: .85rem; color: var(--ok); }
.share-page { margin: 32px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.share-page .share-label { color: var(--ink); opacity: 1; font-weight: 600; font-size: .95rem; }
.share-page a, .share-page button { border-color: var(--line); background: var(--soft); color: var(--ink); }
.share-page a:hover, .share-page button:hover { background: var(--brand-soft); color: var(--brand); }
.share-page .share-whatsapp:hover, .share-page .share-facebook:hover, .share-page .share-linkedin:hover { color: #fff; }
.share-page .share-msg { color: var(--ok-ink); }
.isnot .where { border-top: 4px solid var(--brand); }
