/* Sitio público de Pyxis. Tokens tomados de ~/pyxis/packages/ui/theme.css (estilo perla). */
:root {
  --text: #1f2a24;
  --text-muted: #5b675f;
  --text-faint: #8f9a92;
  --border: #e0e7df;
  --brand-from: #3b8c68;
  --brand-to: #c9a443;
  --brand-strong: #5b6a3c;
  --gold-strong: #8a6d1f;
  --glint: inset 0 0 0 1px rgb(255 255 255 / 95%), inset 0 1.5px 0 #ffffff;
  --card: var(--glint), 0 0 0 1px rgb(36 48 40 / 7%), 0 2px 6px rgb(36 48 40 / 5%), 0 18px 44px rgb(36 48 40 / 10%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgb(255 255 255 / 95%) 0%, rgb(255 255 255 / 0%) 62%),
    radial-gradient(900px 600px at 100% 110%, rgb(201 164 67 / 7%) 0%, rgb(201 164 67 / 0%) 60%),
    linear-gradient(180deg, #f4f6f2 0%, #e9ece6 100%);
  background-attachment: fixed;
  background-color: #eef1ec;
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--brand-from); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 10px; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
code { font: 0.88em ui-monospace, "SF Mono", Menlo, monospace; background: rgb(36 48 40 / 6%); padding: 1px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Barra superior */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; margin: -3px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 70%); box-shadow: var(--glint), 0 0 0 1px rgb(36 48 40 / 9%); }

/* Portada */
.hero { text-align: center; padding: 56px 0 44px; }
.hero-mark { width: 112px; height: 112px; margin: 0 auto 22px; display: block; filter: drop-shadow(0 14px 26px rgb(59 140 104 / 22%)); }
.hero h1 { font-size: clamp(36px, 7vw, 58px); letter-spacing: -0.035em; margin-bottom: 18px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 26px; }
.gradient-text { background: linear-gradient(90deg, var(--brand-from), var(--brand-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { font-size: 13.5px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 66%); box-shadow: var(--glint), 0 0 0 1px rgb(36 48 40 / 8%); color: var(--text-muted); }

/* Paneles de vidrio */
.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / 78%) 0%, rgb(250 251 249 / 60%) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid #ffffff;
  border-radius: 24px;
  box-shadow: var(--card);
}
section { margin: 0 0 28px; }
.section-head { text-align: center; margin: 56px auto 22px; max-width: 640px; }
.section-head h2 { font-size: clamp(24px, 4vw, 32px); }
.section-head p { color: var(--text-muted); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-strong); margin-bottom: 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 24px 24px 12px; }
.card h3 { font-size: 18px; }
.card p { color: var(--text-muted); font-size: 15px; }
.icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 4px 12px rgb(59 140 104 / 22%); }
.icon svg { width: 20px; height: 20px; }

.flow { padding: 28px; }
.flow ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: s; }
.flow li { counter-increment: s; margin: 0; font-size: 15px; color: var(--text-muted); }
.flow li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--text); background: #fff; box-shadow: var(--glint), 0 0 0 1px rgb(36 48 40 / 10%); }
.flow li strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }

.callout { padding: 26px 28px; text-align: center; }
.callout p { color: var(--text-muted); margin: 0; }

/* Documentos legales */
.doc { padding: clamp(24px, 5vw, 48px); margin: 18px 0 40px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); }
.doc .meta { color: var(--text-faint); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-size: 21px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 16.5px; margin-top: 20px; }
.doc .summary { background: rgb(240 245 229 / 80%); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }
.doc .summary ul { margin: 0; }
.doc blockquote { margin: 16px 0; padding: 16px 20px; border-left: 3px solid var(--brand-from); background: rgb(255 255 255 / 70%); border-radius: 0 14px 14px 0; font-weight: 500; }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-muted); font-size: 13px; }
td:first-child { width: 36%; }
td code { white-space: nowrap; line-height: 2; }

/* Pie */
.foot { padding: 26px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-faint); border-top: 1px solid rgb(36 48 40 / 8%); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 560px) {
  .nav { gap: 12px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 32px; }
  .hero-mark { width: 88px; height: 88px; }
}
