/* =============================================================
   Velum — anonimización de documentos
   1. Tokens · 2. Base · 3. Utilidades · 4. Componentes
   5. Landing · 6. Acceso · 7. App · 8. Cuenta · 9. Legal · 10. Responsive
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --paper: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --ink: #141820;
  --ink-2: #353c49;
  --muted: #687080;
  --line: #e2e0d9;
  --line-2: #cfccc2;
  --accent: #1d3557;
  --accent-hover: #142740;
  --accent-soft: #e8edf4;
  --ok: #1d6f45;
  --ok-soft: #e6f2eb;
  --warn: #8a5300;
  --warn-soft: #fbf1df;
  --danger: #a12424;
  --danger-soft: #f8e7e7;
  --redact: #0a0a0b;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 32, .05), 0 4px 16px rgba(20, 24, 32, .05);
  --shadow-lg: 0 10px 40px rgba(20, 24, 32, .16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1160px;
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 3. Utilidades ----------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.hidden, [hidden] { display: none !important; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* 4. Componentes ---------------------------------------------- */
.demo-strip {
  background: var(--warn-soft);
  color: var(--warn);
  border-bottom: 1px solid #ecd7ae;
  font-size: 13.5px;
  text-align: center;
  padding: 7px 16px;
  font-weight: 500;
}
.demo-strip strong { letter-spacing: .04em; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warn-soft); color: var(--warn);
  border: 1px solid #ecd7ae; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; padding: 3px 10px; letter-spacing: .02em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 9px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2;
  transition: background .2s var(--ease-out), border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #e3bcbc; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--accent); }

.notice { border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; border: 1px solid; }
.notice-info { background: var(--accent-soft); border-color: #cdd8e6; color: var(--accent); }
.notice-warn { background: var(--warn-soft); border-color: #ecd7ae; color: var(--warn); }
.notice-ok { background: var(--ok-soft); border-color: #bfdcca; color: var(--ok); }
.notice-danger { background: var(--danger-soft); border-color: #e9c3c3; color: var(--danger); }
.notice strong { font-weight: 600; }

/* Cabecera */
.site-header { background: rgba(245, 244, 240, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
.nav .btn-ghost { color: var(--ink); }
.nav-links { display: flex; gap: 22px; }

/* Píldora de créditos */
.credits-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
  transition: background .4s, border-color .4s;
}
.credits-pill svg { width: 15px; height: 15px; color: var(--accent); }
.credits-pill.is-low { background: var(--warn-soft); border-color: #e4c690; color: var(--warn); }
.credits-pill.is-empty { background: var(--danger-soft); border-color: #e3b5b5; color: var(--danger); }
.credits-pill.bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.08); background: var(--accent-soft); } 100% { transform: scale(1); } }

/* Toast */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 300; max-width: min(420px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14.5px;
  box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease-out);
  display: flex; gap: 10px; align-items: flex-start;
}
.toast.err { background: #5c1414; }
.toast.ok { background: #164d31; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(15, 18, 24, .5); display: grid; place-items: center; padding: 16px; z-index: 200; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease-out); }
.modal-wide { width: min(860px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-head h2 { font-size: 23px; }
.modal-body { padding: 16px 24px 24px; }
.modal-x { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal-x:hover { background: var(--paper); color: var(--ink); }
.fake-card { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; background: var(--surface-2); display: grid; gap: 10px; margin: 14px 0; }
.fake-card .input { background: #f0efea; color: var(--muted); }
.fake-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-line:last-child { border-bottom: 0; }
.success-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 4px auto 14px; }
.success-mark svg { width: 28px; height: 28px; }

/* Precios */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; }
.plan { padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-tag { position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 19px; }
.plan .price { font-family: var(--serif); font-size: 42px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.plan .price span { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 9px; }
.plan li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan-credits { font-weight: 600; color: var(--ink); }
.plan-mini { padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; text-align: left; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.plan-mini:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-mini strong { font-size: 16px; }
.plan-mini .p { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.plan-mini-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 14px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 5. Landing --------------------------------------------------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); letter-spacing: -.025em; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); margin-top: 20px; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn { padding: 14px 22px; font-size: 16px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--ok); }

.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }
.center { text-align: center; margin-inline: auto; }

/* Documento simulado (antes/después) */
.doc-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg);
  padding: 28px 30px; font-size: 12.5px; line-height: 1.65; color: #23272f; font-family: var(--sans);
  aspect-ratio: 1 / 1.18; overflow: hidden; position: relative;
}
.doc-mock .dm-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #23272f; padding-bottom: 10px; margin-bottom: 14px; }
.doc-mock .dm-title { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.doc-mock .dm-co { text-align: right; font-size: 11px; color: #555; line-height: 1.45; }
.doc-mock .dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 14px; }
.doc-mock .dm-k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.doc-mock table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 6px; }
.doc-mock td, .doc-mock th { padding: 4px 0; border-bottom: 1px solid #eee; text-align: left; }
.doc-mock th { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #777; font-weight: 600; }
.doc-mock td:last-child, .doc-mock th:last-child { text-align: right; }
.doc-mock .dm-foot { margin-top: 14px; font-size: 11px; color: #444; }
.r { position: relative; white-space: nowrap; }
.is-after .r { color: transparent !important; user-select: none; }
.is-after .r::after { content: ""; position: absolute; inset: -1px -3px; background: var(--redact); border-radius: 1px; }

.ba { position: relative; }
.ba-stage { position: relative; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer.after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.ba-line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: var(--shadow); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.ba-pair { display: grid; gap: 28px; grid-template-columns: 1fr; }
.ba-pair figure { display: grid; gap: 12px; }
.ba-pair figcaption { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
.step { padding: 24px; }
.step-n { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--accent); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

.types { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.type { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 500; }
.type svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.type small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

.split { display: grid; gap: 40px; align-items: start; }
.compare { display: grid; gap: 14px; }
.compare-row { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.compare-row h4 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.compare-row p { font-size: 15px; color: var(--ink-2); }
.compare-row.bad h4 { color: var(--danger); }
.compare-row.good { border-color: #bfdcca; background: var(--ok-soft); }
.compare-row.good h4 { color: var(--ok); }
.facts { display: grid; gap: 14px; list-style: none; padding: 0; }
.facts li { display: flex; gap: 12px; color: var(--ink-2); }
.facts li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.facts strong { color: var(--ink); }

.audience { display: grid; gap: 18px; grid-template-columns: 1fr; }
.aud { padding: 26px; }
.aud svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.aud h3 { font-size: 18px; margin-bottom: 8px; }
.aud p { color: var(--ink-2); font-size: 15px; }

.pricing-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-size: 14px; color: var(--muted); }

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 17px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }

.cta-band { background: var(--accent); color: #fff; border-radius: 18px; padding: 48px 32px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-band p { color: #c9d3e1; margin: 12px auto 26px; max-width: 34em; }
.cta-band .btn { background: #fff; color: var(--accent); padding: 14px 24px; }

/* 6. Acceso ---------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); padding: 32px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin: 22px 0; }
.tabs button { padding: 9px; border-radius: 7px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.form-error { margin-bottom: 14px; }

/* 7. App ------------------------------------------------------- */
.app-body { background: #eeede8; }
.app-header .wrap { width: min(1440px, 100% - 32px); }
.app-main { width: min(1440px, 100% - 32px); margin: 24px auto 40px; }
.low-banner { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.drop {
  display: block;
  border: 2px dashed var(--line-2); border-radius: 18px; background: var(--surface);
  padding: 56px 24px; text-align: center; transition: border-color .2s, background .2s; cursor: pointer;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #f7f9fc; }
.drop-icon { width: 52px; height: 52px; margin: 0 auto 16px; color: var(--accent); }
.drop h2 { font-size: 26px; }
.drop p { color: var(--muted); margin-top: 8px; }
.drop .btn { margin-top: 20px; }
.drop-alt { margin-top: 14px; font-size: 14.5px; }
.drop-alt button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.limits { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }

.prep { padding: 26px; display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.prep-file { display: flex; gap: 14px; align-items: center; }
.file-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.file-ico svg { width: 24px; height: 24px; }
.prep-file strong { display: block; word-break: break-all; }
.cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cost div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cost b { display: block; font-size: 24px; font-family: var(--serif); font-variant-numeric: tabular-nums; }
.cost span { font-size: 13px; color: var(--muted); }
.prep-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.progress { padding: 26px; max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.bar { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease-out); }
.progress-log { font-size: 14px; color: var(--muted); display: grid; gap: 4px; max-height: 180px; overflow: auto; }

.workspace { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.viewer { display: grid; gap: 20px; justify-items: center; }
.page-wrap { width: 100%; max-width: 860px; }
.page-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.page { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); line-height: 0; }
.page canvas { width: 100%; height: auto; }
.overlay { position: absolute; inset: 0; }
.overlay.is-drawing { cursor: crosshair; touch-action: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.box { position: absolute; background: var(--redact); cursor: pointer; transition: background .15s, outline-color .15s; border-radius: 1px; }
.box.off { background: rgba(214, 120, 0, .10); outline: 1.5px dashed #c46f00; }
.box.hl { outline: 3px solid #3b82f6; outline-offset: 1px; }
.box.manual { background: var(--redact); }
.draft { position: absolute; border: 2px solid var(--accent); background: rgba(29, 53, 87, .18); pointer-events: none; }

.panel { padding: 0; position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
.panel-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 20px; }
.panel-stats { font-size: 14px; color: var(--muted); margin-top: 4px; }
.panel-tools { padding: 12px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.search-row { display: flex; gap: 8px; }
.search-row .input { padding: 8px 11px; font-size: 14px; }
.toggle-draw { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; background: var(--surface); }
.toggle-draw[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.toggle-draw svg { width: 17px; height: 17px; }
.det-list { overflow: auto; padding: 6px 0 10px; flex: 1; }
.det-group { padding: 8px 18px 4px; }
.det-group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 4px; }
.det-group-head h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.det-group-head button { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.det { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 9px; cursor: pointer; }
.det:hover, .det.hl { background: var(--paper); }
.det-text { font-size: 14.5px; word-break: break-word; line-height: 1.35; }
.det-meta { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.det.is-off .det-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.det.missing .det-meta { color: var(--warn); }
.det-actions { display: flex; gap: 2px; }
.icon-btn { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.switch { position: relative; width: 36px; height: 21px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfccc2; transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease-out); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--redact); }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:disabled + span { opacity: .45; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface-2); }
.panel-foot .small { line-height: 1.45; }
.empty-dets { padding: 22px 18px; color: var(--muted); font-size: 14.5px; }
.verify { padding: 16px 18px; border-radius: 12px; }
.page-fail { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }

/* 8. Cuenta ---------------------------------------------------- */
.account { width: min(980px, 100% - 32px); margin: 32px auto 40px; display: grid; gap: 20px; }
.account h1 { font-size: 32px; }
.acc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.acc-card { padding: 24px; }
.acc-card h2 { font-family: var(--sans); font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; }
.big-num { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; margin: 14px 0 8px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* 9. Legal ----------------------------------------------------- */
.legal { width: min(780px, 100% - 32px); margin: 48px auto; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.fill { background: #fff3c4; padding: 0 4px; border-radius: 3px; font-weight: 600; color: #6b4d00; }

/* 10. Responsive ---------------------------------------------- */
@media (max-width: 719px) {
  .nav-links { display: none; }
  .site-header .wrap { gap: 12px; }
  .nav { gap: 10px; }
  .cost { grid-template-columns: 1fr; }
  .doc-mock { padding: 18px; font-size: 10.5px; }
  .doc-mock .dm-title { font-size: 14px; }
  .fake-row { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; }
  .hide-sm { display: none !important; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-mini-grid { grid-template-columns: 1fr 1fr; }
  .ba-pair { grid-template-columns: 1fr 1fr; }
  .acc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 84px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (min-width: 1280px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 410px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .credits-pill.bump, .toast, .modal, .modal-back { animation: none; }
}
@media print {
  .site-header, .demo-strip, .site-footer { display: none; }
}
