/* Editorial UI shared by landing, wiki, and legal pages. */
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); }
:root {
  --bg: #f6f7f4; --paper: #fff; --panel: #eef1ed; --line: #d8ddd7;
  --line-strong: #b9c1ba; --text: #202621; --muted: #647068;
  --brand: #286548; --brand-dark: #174a34; --brand-soft: #e4f0e8;
  --warning: #fff6d9; --font: "Bricolage Grotesque Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --radius: 5px; --gutter: clamp(18px, 4vw, 32px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9cc2ad; outline-offset: 3px; }
img, svg { max-width: 100%; }
button, input { font-family: var(--font); }
html[lang="es"] [lang="en"], html[lang="en"] [lang="es"] { display: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

header.site { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgb(0 0 0 / 6%); background: rgb(255 255 255 / 80%); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 12px rgb(31 45 36 / 4%); }
header.site .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 750 18px/1 var(--font); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; display: block; flex: 0 0 32px; border: 0; border-radius: 9px; background: url("brand-icon.png") center / cover no-repeat; font-size: 0; }
nav.site { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.site a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font: 550 14px/1.2 var(--font); text-decoration: none; transition: background .15s, color .15s; }
nav.site a:hover { background: var(--panel); color: var(--text); }
nav.site a.nav-login { margin-left: 6px; padding: 9px 20px; background: var(--brand); color: #fff; font-weight: 700; }
nav.site a.nav-login:hover { background: var(--brand-dark); color: #fff; }
.lang { display: flex; margin-left: 8px; padding: 3px; border-radius: 999px; background: var(--panel); }
.lang button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 5px 11px; font-size: 12px; font-weight: 750; cursor: pointer; transition: background .15s, color .15s; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--brand-dark); box-shadow: 0 1px 3px rgb(31 45 36 / 14%); }

.hero { padding: clamp(68px, 10vw, 120px) 0 72px; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero .wrap { max-width: 880px; }
.hero h1 { max-width: 780px; margin: 0 0 20px; font-size: clamp(38px, 7vw, 68px); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.hero p.lead { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: #fff; font: 700 14px/1 var(--font); text-decoration: none; }
.button:hover { background: var(--brand-dark); color: #fff; }
.button.ghost { background: var(--paper); color: var(--brand); border-color: var(--line-strong); }
.button[aria-disabled="true"] { opacity: .62; pointer-events: none; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
section h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); font-weight: 500; line-height: 1.2; }
section p.sub { max-width: 680px; margin: 0 0 28px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.card { min-height: 190px; background: var(--paper); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { margin-bottom: 16px; font-size: 22px; filter: grayscale(1); }
.product-preview { background: var(--paper); }
.product-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: clamp(24px, 6vw, 72px); margin-top: 34px; }
.product-shots figure { margin: 0; }
.product-shots img { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 18px 50px rgb(31 45 36 / 14%); }
.product-shots figcaption { margin-top: 12px; color: var(--muted); font: 700 14px/1.4 var(--font); text-align: center; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 16px; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 14px; color: var(--brand); font: 750 12px/1 var(--font); }
.steps strong { display: block; margin-bottom: 6px; font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { max-width: 760px; margin: 10px 0 0; color: var(--muted); }
footer.site { margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font: 13px/1.6 var(--font); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

main.legal { max-width: 780px; padding: 54px var(--gutter); }
main.legal h1, .wiki-content h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
main.legal h2, .wiki-content h2 { margin: 46px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 25px; font-weight: 600; line-height: 1.25; }
main.legal ul, main.legal ol, .wiki-content ul, .wiki-content ol { padding-left: 24px; }
main.legal li, .wiki-content li { margin-bottom: 8px; }
main.legal .meta, .wiki-content .meta { margin-bottom: 34px; color: var(--muted); font: 14px/1.6 var(--font); }
main.legal .callout, .wiki-content .callout { margin: 22px 0; padding: 16px 18px; border: 1px solid #c6d9cc; border-left: 4px solid var(--brand); background: var(--brand-soft); }
.callout.warning { border-color: #e6d18a; border-left-color: #a66b00; background: var(--warning); }
main.legal table, .wiki-content table { width: 100%; margin: 18px 0 30px; border-collapse: collapse; font-size: 15px; }
main.legal th, main.legal td, .wiki-content th, .wiki-content td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
main.legal th, .wiki-content th { background: var(--panel); font-family: var(--font); font-size: 13px; }
.wiki-content table tr:hover td { background: #fafbf9; }

.wiki-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: clamp(36px, 6vw, 72px); padding-top: 48px; padding-bottom: 64px; }
.wiki-nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 18px; border-right: 1px solid var(--line); font-family: var(--font); }
.wiki-search { width: 100%; margin-bottom: 24px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--text); font-size: 13px; }
.wiki-search:focus { outline: 2px solid #9cc2ad; outline-offset: 1px; }
.wiki-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.wiki-group-label { margin: 0 0 5px; color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.wiki-nav a { margin-left: -9px; padding: 5px 8px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.wiki-nav a:hover { color: var(--text); }
.wiki-nav a.active { border-left-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.wiki-content { min-width: 0; }
.wiki-content h2 { scroll-margin-top: 88px; }
.wiki-content h2:first-of-type { border-top: 0; }
.wiki-content h3 { margin: 28px 0 8px; font: 700 17px/1.4 var(--font); }
.wiki-content code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); font-size: .86em; }
.doc-hero { margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--brand); font: 800 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 32px; }
.quick-card { display: block; padding: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--text); text-decoration: none; }
.quick-card:hover { border-color: var(--brand); color: var(--brand-dark); }
.quick-card strong { display: block; font: 700 14px/1.3 var(--font); }
.quick-card small { display: block; margin-top: 4px; color: var(--muted); font: 12px/1.4 var(--font); }
.guide-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 22px 0; }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font: 750 13px/1 var(--font); }
.guide-step h3 { margin: 2px 0 5px; }
.guide-step p { margin: 0; }
.mockup { margin: 18px 0 28px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); box-shadow: 0 10px 28px rgb(31 45 36 / 8%); font-family: var(--font); }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 11px; }
.mockup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mockup-body { display: grid; grid-template-columns: 128px 1fr; min-height: 190px; }
.mockup-menu { padding: 16px 10px; border-right: 1px solid var(--line); background: #fafbf9; color: var(--muted); font-size: 11px; }
.mockup-menu span { display: block; padding: 6px 7px; }
.mockup-menu .selected { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.mockup-panel { padding: 22px; }
.mockup-title { margin-bottom: 18px; font-size: 18px; font-weight: 750; }
.fake-field { height: 34px; margin: 7px 0 15px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); }
.fake-button { display: inline-block; padding: 8px 12px; border-radius: 3px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 750; }
.status-list { display: grid; gap: 1px; margin: 20px 0; border: 1px solid var(--line); background: var(--line); }
.status-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 13px 15px; background: var(--paper); }
.status-row strong { font: 750 12px/1.4 var(--font); }
.status-row span { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  header.site .wrap { min-height: 58px; }
  nav.site > a:not(.nav-login) { display: none; }
  nav.site a.nav-login { margin-left: 0; padding: 8px 16px; }
  .hero { padding-top: 54px; }
  section { padding: 48px 0; }
  .wiki-layout { display: block; padding-top: 20px; }
  .wiki-nav { position: static; max-height: none; display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 34px; padding: 0 var(--gutter) 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wiki-search { flex: 0 0 180px; align-self: flex-start; margin: 0; }
  .wiki-group { flex: 0 0 170px; margin: 0; }
  .wiki-nav a { margin-left: 0; }
  .wiki-content table { display: block; overflow-x: auto; }
  .quick-grid { grid-template-columns: 1fr; }
  .product-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .actions .button { width: 100%; }
  footer.site .wrap { flex-direction: column; }
  .mockup-body { grid-template-columns: 92px 1fr; }
  .mockup-panel { padding: 16px; }
  .status-row { grid-template-columns: 1fr; gap: 4px; }
  .product-shots { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
}

/* Product-docs polish: stronger hierarchy and a real app-like shell. */
:root {
  --bg: #121217; --paper: #181820; --panel: #282834; --line: #343441;
  --line-strong: #55556b; --text: #ecebf2; --muted: #a3a2b2;
  --brand: #ff5d73; --brand-dark: #d94a5f; --brand-soft: #3a292d;
  --warning: #3b3221; --radius: 10px;
}
body {
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.72;
}
header.site { border-bottom-color: var(--line); background: rgb(24 24 32 / 94%); box-shadow: 0 1px 12px rgb(0 0 0 / 18%); }
.brand { font-size: 17px; letter-spacing: -.02em; }
.brand .mark { border: 0; border-radius: 9px; background: url("brand-icon.png") center / cover no-repeat; }
nav.site a { font-size: 14px; font-weight: 600; }
.lang { border-left: 0; padding: 3px; border-radius: 8px; background: var(--panel); }
.lang button[aria-pressed="true"] { background: var(--line); color: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 20%); }
.wiki-layout { grid-template-columns: 248px minmax(0, 800px); gap: clamp(40px, 6vw, 84px); padding-top: 40px; }
.wiki-nav {
  top: 84px;
  padding: 14px 20px 20px 4px;
  border-right: 1px solid var(--line);
}
.wiki-search {
  height: 40px;
  margin-bottom: 28px;
  padding-left: 34px;
  border-color: var(--line);
  border-radius: 9px;
  background:
    linear-gradient(45deg, transparent 48%, var(--muted) 49% 55%, transparent 56%) 15px 23px / 6px 6px no-repeat,
    radial-gradient(circle, transparent 45%, var(--muted) 47% 57%, transparent 59%) 10px 10px / 12px 12px no-repeat,
    var(--paper);
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
}
.wiki-group-label { padding-left: 9px; color: #8d8d8d; font-size: 10px; letter-spacing: .11em; }
.wiki-nav a { margin: 1px 0; padding: 7px 10px; border: 0; border-radius: 7px; font-size: 13px; font-weight: 520; }
.wiki-nav a:hover { background: var(--panel); color: var(--text); }
.wiki-nav a.active { border: 0; background: var(--brand-soft); color: #ff8898; font-weight: 700; }
.wiki-content { padding-bottom: 40px; }
.doc-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 42px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #54383e;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgb(255 93 115 / 12%), transparent 15rem),
    linear-gradient(145deg, #30272a, #292526);
  box-shadow: 0 18px 45px rgb(0 0 0 / 22%);
}
.doc-hero::after {
  content: "?";
  position: absolute;
  right: -16px;
  top: -68px;
  color: rgb(255 93 115 / 8%);
  font-size: 260px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.doc-hero > * { position: relative; z-index: 1; }
.eyebrow { color: #ff7c8e; }
.wiki-content h1 { max-width: 590px; font-family: inherit; font-weight: 800; letter-spacing: -.025em; }
.wiki-content h2 { margin-top: 54px; padding-top: 28px; font-family: inherit; font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.wiki-content h3 { color: #ecebf2; }
.wiki-content .meta { max-width: 600px; margin: 14px 0 0; font-size: 15px; }
.quick-grid { position: relative; z-index: 2; margin: 30px 0 0; }
.quick-card {
  border-color: #4d3b3e;
  border-radius: 11px;
  background: rgb(40 40 52 / 78%);
  box-shadow: 0 5px 16px rgb(0 0 0 / 16%);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.quick-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 24px rgb(0 0 0 / 24%); }
.quick-card strong { color: #fff; }
.guide-step { margin: 30px 0 18px; }
.step-number { background: linear-gradient(145deg, #ff7184, #e24d62); box-shadow: 0 5px 12px rgb(255 93 115 / 22%); }
.mockup {
  border-color: #d7dce5;
  border-radius: 13px;
  box-shadow: 0 18px 40px rgb(15 23 42 / 12%);
}
.mockup-bar { background: #20263a; color: #aeb7ca; border-color: #30384f; }
.mockup-dot:nth-child(1) { background: #ff6b6b; }
.mockup-dot:nth-child(2) { background: #ffd166; }
.mockup-dot:nth-child(3) { background: #61d095; }
.mockup-menu { border-color: #2f3850; background: #262d43; color: #99a4ba; }
.mockup-menu .selected { border-radius: 5px; background: var(--brand); color: #fff; }
.mockup-panel { background: #1f1f29; }
.fake-button { border-radius: 6px; background: var(--brand); }
.fake-field { background: #121217; }
main.legal .callout, .wiki-content .callout { border: 0; border-left: 4px solid var(--brand); border-radius: 9px; background: var(--brand-soft); }
.callout.warning { border-left-color: #d18b00; background: var(--warning); }
.status-list { overflow: hidden; border-radius: 10px; box-shadow: 0 5px 18px rgb(0 0 0 / 18%); }
.status-row strong { color: #ff7c8e; }
.wiki-content table { overflow: hidden; border-radius: 9px; box-shadow: 0 4px 16px rgb(0 0 0 / 18%); }
.wiki-content th { background: #282834; color: #ecebf2; }
.wiki-content table tr:hover td { background: #1f1f29; }
.wiki-content code { border: 0; background: #282834; color: #ff8797; }

@media (max-width: 760px) {
  .wiki-nav { padding-top: 0; background: transparent; }
  .doc-hero { border-radius: 15px; padding: 26px 22px; }
  .doc-hero::after { font-size: 190px; }
}
