/* Documentación y material comercial públicos. Todo cuelga de .docs / .mk para no afectar a la aplicación. */

/* ------------------------------------------------------------------ documentación */
.docs-top { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .75rem; height: 62px; padding: 0 1.25rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.docs-top .brand-link { display: flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.docs-top .brand-link small { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.docs-top .spacer { flex: 1; }
.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr) 210px; gap: 2.25rem; max-width: 1440px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.docs-nav { position: sticky; top: 82px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-nav .label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 .75rem .5rem; }
.docs-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 12px; color: var(--text); font-size: .92rem; font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.docs-nav a i { color: var(--muted); font-size: 1.05rem; width: 20px; text-align: center; }
.docs-nav a:hover { background: var(--surface-2, rgba(127,127,127,.08)); }
.docs-nav a.active { background: var(--grad-soft); color: var(--brand); font-weight: 700; }
.docs-nav a.active i { color: var(--brand); }
.docs-toc { position: sticky; top: 82px; align-self: start; font-size: .83rem; }
.docs-toc .label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.docs-toc a { display: block; padding: .28rem 0 .28rem .8rem; color: var(--muted); text-decoration: none; border-left: 2px solid var(--border); }
.docs-toc a:hover, .docs-toc a.on { color: var(--brand); border-left-color: var(--brand); }

.docs-article { min-width: 0; max-width: 860px; }
.docs-article .eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.docs-article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: .35rem 0 .6rem; }
.docs-article .lead { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 2rem; }
.docs-article h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 2.75rem 0 .75rem; padding-top: .5rem; scroll-margin-top: 80px; }
.docs-article h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .5rem; scroll-margin-top: 80px; }
.docs-article p, .docs-article li { line-height: 1.7; }
.docs-article ul, .docs-article ol { padding-left: 1.3rem; }
.docs-article li { margin-bottom: .3rem; }
.docs-article code { background: var(--surface-2, rgba(127,127,127,.12)); border: 1px solid var(--border); padding: .08rem .4rem; border-radius: 6px; font-size: .86em; color: inherit; }
.docs-article pre { background: #0f1226; color: #e6e8ff; border-radius: 14px; padding: 1rem 1.15rem; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 1rem 0 1.5rem; }
.docs-article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.docs-article kbd { background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: .05rem .4rem; font-size: .82em; color: var(--text); }
.docs-article hr { border-color: var(--border); margin: 2.5rem 0; }

.docs-shot { margin: 1.5rem 0 2rem; }
.docs-shot a { display: block; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.docs-shot img { display: block; width: 100%; height: auto; }
.docs-shot figcaption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.docs-phones { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.docs-phones figure { flex: 0 1 230px; margin: 0; }
.docs-phones a { display: block; border: 6px solid #181a33; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #181a33; }
.docs-phones img { display: block; width: 100%; height: auto; border-radius: 20px; }
.docs-phones figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .6rem; }

.callout { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: 16px; margin: 1.25rem 0; border: 1px solid var(--border); background: var(--surface); }
.callout > i { font-size: 1.25rem; line-height: 1.5; flex: none; }
.callout .t { font-weight: 700; margin-bottom: .15rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.tip { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); } .callout.tip > i { color: #10b981; }
.callout.note { background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.3); } .callout.note > i { color: #0ea5e9; }
.callout.warn { background: rgba(245,158,11,.09); border-color: rgba(245,158,11,.35); } .callout.warn > i { color: #f59e0b; }

ol.docs-steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.docs-steps > li { counter-increment: step; position: relative; padding: .15rem 0 .85rem 3rem; }
ol.docs-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 6px 14px -4px rgba(124,58,237,.6); }

.docs-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.25rem 0 1.75rem; font-size: .92rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.docs-table th { text-align: left; background: var(--surface-2, rgba(127,127,127,.08)); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .7rem .9rem; }
.docs-table td { padding: .7rem .9rem; border-top: 1px solid var(--border); vertical-align: top; }

.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.docs-cards a { display: block; padding: 1.15rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.docs-cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.docs-cards i { font-size: 1.4rem; color: var(--brand); }
.docs-cards b { display: block; margin: .5rem 0 .2rem; }
.docs-cards span { font-size: .86rem; color: var(--muted); line-height: 1.5; display: block; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.docs-pager a { padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); }
.docs-pager a:hover { border-color: var(--brand); }
.docs-pager small { display: block; color: var(--muted); }
.docs-pager .next { text-align: right; grid-column: 2; }

@media (max-width: 1199.98px) { .docs { grid-template-columns: 250px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 991.98px) {
  .docs { grid-template-columns: 1fr; padding-top: 1rem; }
  .docs-nav { position: static; max-height: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .75rem; display: none; }
  .docs-nav.open { display: block; }
}

/* ------------------------------------------------------------------ marketing */
.mk { background: var(--bg); color: var(--text); overflow-x: hidden; }
.mk-nav { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.mk-nav .links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.mk-nav .links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.mk-nav .links a:not(.btn):hover { color: var(--brand); }
.mk-section { padding: 5rem 1.5rem; }
.mk-wrap { max-width: 1180px; margin: 0 auto; }
.mk-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.mk h2.mk-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mk .mk-sub { font-size: 1.1rem; color: var(--muted); max-width: 680px; line-height: 1.6; }
.mk-hero { position: relative; background: var(--grad); color: #fff; padding: 5.5rem 1.5rem 0; overflow: hidden; isolation: isolate; }
.mk-hero::before { content: ''; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); z-index: -1; }
.mk-hero::after { content: ''; position: absolute; width: 560px; height: 560px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); z-index: -1; }
.mk-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.mk-hero .lead { font-size: 1.25rem; opacity: .9; max-width: 640px; line-height: 1.55; }
.mk-hero .btn-light { color: #4f46e5; font-weight: 700; }
.mk-hero .btn-outline-light { font-weight: 600; }
.mk-stage { position: relative; margin: 3.5rem auto 0; max-width: 1080px; }
.mk-stage .browser { border-radius: 18px 18px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.35); border-bottom: 0; box-shadow: 0 -10px 80px rgba(20,16,70,.45); background: #fff; }
.mk-stage .browser .bar { display: flex; gap: .4rem; padding: .65rem .9rem; background: #eceefb; }
.mk-stage .browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #c7cae6; }
.mk-stage .browser img { display: block; width: 100%; }
.mk-stage .phone { position: absolute; right: -2%; bottom: 0; width: 24%; min-width: 150px; border: 6px solid #181a33; border-bottom: 0; border-radius: 28px 28px 0 0; overflow: hidden; background: #181a33; box-shadow: 0 -10px 60px rgba(20,16,70,.5); }
.mk-stage .phone img { display: block; width: 100%; }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.mk-stat { text-align: center; padding: 1.4rem 1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.mk-stat b { display: block; font-size: 2rem; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-stat span { color: var(--muted); font-size: .9rem; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.mk-card { padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.mk-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -8px rgba(124,58,237,.7); margin-bottom: 1rem; }
.mk-card h3 { font-size: 1.12rem; font-weight: 700; }
.mk-card p { color: var(--muted); margin: 0; line-height: 1.6; font-size: .95rem; }
.mk-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.mk-feature.rev { grid-template-columns: 1.15fr 1fr; }
.mk-feature.rev .mk-copy { order: 2; }
.mk-feature ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.mk-feature li { display: flex; gap: .7rem; margin-bottom: .75rem; line-height: 1.55; }
.mk-feature li i { color: var(--ok); font-size: 1.15rem; flex: none; margin-top: .1rem; }
.mk-shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.mk-shot img { display: block; width: 100%; }
.mk-phones { display: flex; gap: 1.2rem; justify-content: center; align-items: flex-end; }
.mk-phones .p { flex: 0 1 240px; border: 7px solid #181a33; border-radius: 32px; overflow: hidden; background: #181a33; box-shadow: var(--shadow-lg); }
.mk-phones .p:nth-child(2) { margin-bottom: 2.5rem; }
.mk-phones img { display: block; width: 100%; border-radius: 24px; }
.mk-alt { background: var(--surface); border-block: 1px solid var(--border); }
.mk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; counter-reset: s; }
.mk-step { position: relative; padding: 1.5rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); counter-increment: s; }
.mk-step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.mk-step h3 { font-size: 1.05rem; font-weight: 700; } .mk-step p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.55; }
.mk-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-top: 2rem; }
.mk-table th, .mk-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.mk-table thead th { border-top: 0; background: var(--surface-2, rgba(127,127,127,.08)); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mk-table td:first-child { font-weight: 600; width: 32%; }
.mk-cta { background: var(--grad); color: #fff; border-radius: 32px; padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.mk-cta::before { content: ''; position: absolute; width: 480px; height: 480px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); z-index: -1; }
.mk-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.mk-footer { padding: 2rem 1.5rem 3rem; color: var(--muted); font-size: .88rem; text-align: center; }
.mk-footer a { color: var(--brand); }
@media (max-width: 991.98px) {
  .mk-feature, .mk-feature.rev { grid-template-columns: 1fr; gap: 2rem; }
  .mk-feature.rev .mk-copy { order: 0; }
  .mk-nav .links a.hide-sm { display: none; }
  .mk-section { padding: 3.5rem 1.25rem; }
  .mk-stage .phone { display: none; }
}
@media print { .mk-nav, .docs-top, .docs-nav, .docs-toc, .no-print { display: none !important; } }
