/* Shared private surfaces: the same fonts, tokens and spacing as the landing. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: white; color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
.shell { max-width: 1368px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 13px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.brand-ai { color: var(--muted); font-weight: 400; }
.brand-dot { color: var(--accent); }
.badge,.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: var(--testing-ink); background: var(--testing-bg); }
.eyebrow { color: var(--muted); margin: 0 0 16px; }
main { min-height: 72vh; padding-block: clamp(36px, 5vw, 72px); }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
h1 { max-width: 850px; margin: 0 0 24px; font-size: clamp(34px, 3.9vw, 58px); }
h2 { font-size: clamp(26px, 2.5vw, 36px); margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 14px; }
.accent { color: var(--accent); font-family: var(--font-accent); font-style: italic; font-weight: 400; }
p { color: var(--ink-2); margin: 0 0 18px; }
.lead { max-width: 760px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button,.button,a.download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; border: 1px solid transparent; border-radius: 14px; padding: 12px 20px; background: var(--ink); color: white; font: 500 15px/1.4 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; }
button:hover,.button:hover,a.download:hover { background: var(--ink-2); }
button:disabled { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }
.secondary { color: var(--ink); background: white; border-color: #9BA5B5; }
.secondary:hover { background: var(--surface); }
button.danger { color: #9f241d; background: white; border-color: #9f241d; }
button.danger:hover { background: #fff1ef; }
input,select { display: block; min-width: 0; width: 100%; max-width: 100%; min-height: 48px; border: 1px solid #8D98AA; border-radius: 12px; padding: 12px; background: white; color: var(--ink); font: 16px/1.4 var(--font-body); }
input::placeholder { color: var(--muted); opacity: 1; }
label { display: grid; align-content: start; gap: 8px; min-width: min(180px, 100%); flex: 1; color: var(--ink-2); font-size: 14px; }
form,.actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
form h3 { flex-basis: 100%; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-card); background: white; padding: clamp(20px, 3vw, 36px); min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }
code,.code { font-family: var(--font-mono); overflow-wrap: anywhere; }
summary { display: list-item; min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--ink); }
details { margin-block: 20px; }
details p { margin-top: 12px; }
li { margin-bottom: 12px; }
li a { display: inline-block; min-height: 44px; padding-block: 10px; }
#notice { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-item); background: var(--surface); white-space: pre-line; overflow-wrap: anywhere; }
#notice:empty { display: none; }
.error { color: #9f241d !important; }
footer { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
@media (max-width: 600px) { form > label,form > button { flex-basis: 100%; } .site-header .badge { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Copia explícita de códigos, enlaces y referencias, también en móvil. */
.copy-control { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; min-width: 0; vertical-align: middle; }
.copy-control button { min-height: 44px; white-space: normal; margin-block: 6px; }
.copy-status { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.copy-status:empty { display: none; }
.copy-manual { flex-basis: 100%; width: 100%; max-width: 100%; min-width: 0; resize: vertical; font-family: var(--font-mono); }
.copy-manual[hidden] { display: none; }
.code-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.code-copy-row .code { margin-bottom: 0; }
