/* marca.dsix.es · el presskit, con el mismo lenguaje que las webs: papel, tinta y un acento por tema; Archivo variable */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

body, [data-theme="tokyo-night"] { --paper: #e9e9ec; --ink: #0f1016; --acc: #2f45ff; --on-acc: #f1f2f6; }
[data-theme="catppuccin"] { --paper: #eceaf1; --ink: #1a1625; --acc: #8f4dff; --on-acc: #f5f2fb; }
[data-theme="gruvbox"] { --paper: #e7e5df; --ink: #1c1a16; --acc: #ff5400; --on-acc: #fbf7ef; }
[data-theme="kanagawa"] { --paper: #e6e7e9; --ink: #15151c; --acc: #d1253c; --on-acc: #f6f3ef; }
[data-theme="rose-pine"] { --paper: #eee8ec; --ink: #1e1924; --acc: #e04477; --on-acc: #fbf4f7; }
[data-theme="nord"] { --paper: #e4e8ee; --ink: #232936; --acc: #0d9488; --on-acc: #eef6f5; }
[data-theme="everforest"] { --paper: #e7e9e2; --ink: #1c221e; --acc: #3d8b25; --on-acc: #f3f6ee; }
[data-theme="matte-black"] { --paper: #0e0e0e; --ink: #ececec; --acc: #ff4d00; --on-acc: #0e0e0e; }
body {
  --muted: color-mix(in srgb, var(--ink) 55%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 15%, transparent);
  --soft: color-mix(in srgb, var(--ink) 5%, var(--paper));
  --ok: #18a058; --bad: #e5383b;
  --pad: clamp(16px, 3vw, 40px); --r: clamp(18px, 2.4vw, 32px); --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper, #e9e9ec); color-scheme: light; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 "Archivo", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .6s, color .6s; }
::selection { background: var(--acc); color: var(--on-acc); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; }
code { font: .86em var(--mono); padding: .12em .4em; border-radius: 6px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: var(--pad); top: 10px; z-index: 60; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; transform: translateY(-160%); transition: transform .4s var(--ease); }
.skip:focus { transform: none; }

/* cabecera */
.hd { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); background: color-mix(in srgb, var(--paper) 93%, transparent); border-bottom: 1px solid transparent; transition: border-color .4s, background-color .6s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd-brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-size: 20px; letter-spacing: -.02em; }
.hd-brand b { font-weight: 800; font-stretch: 112%; }
.hd-brand span { font-weight: 400; font-stretch: 80%; color: var(--muted); }
.hd-nav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--soft); }
.hd-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s; }
.hd-nav a:hover { background: var(--ink); color: var(--paper); }
.hd-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.hd-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* portada */
.hero { padding: clamp(40px, 7vw, 100px) var(--pad) clamp(40px, 6vw, 80px); display: grid; gap: clamp(24px, 3vw, 44px); }
.hero-word { width: max-content; margin-left: -.04em; font-size: var(--fs, 22vw); line-height: .78; font-weight: 800; font-stretch: 118%; letter-spacing: -.055em; color: var(--ink); white-space: nowrap; }
.hero-word span { display: inline-block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 60px; padding-top: 22px; border-top: 1px solid var(--ink); }
.lead { max-width: 56ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; text-wrap: pretty; }
.hero-sym { width: clamp(96px, 12vw, 180px); height: auto; image-rendering: pixelated; border-radius: 0; }

/* bloques */
.blk { padding: clamp(56px, 7vw, 110px) var(--pad); display: grid; gap: clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--line); }
.blk-hd { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: end; gap: 10px 40px; }
.blk-hd h2 { font-size: clamp(40px, 6vw, 104px); line-height: .88; font-weight: 800; font-stretch: 76%; letter-spacing: -.045em; }
.blk-hd p { justify-self: end; max-width: 42ch; text-align: right; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.sub { font-size: clamp(22px, 2vw, 30px); line-height: 1.05; font-weight: 700; font-stretch: 86%; letter-spacing: -.025em; }
.note { color: var(--muted); font-size: 15px; max-width: 70ch; margin-top: -12px; }
.blk.dark { background: var(--ink); color: var(--paper); border-top: 0; border-radius: var(--r) var(--r) 0 0;
  --muted: color-mix(in srgb, var(--paper) 58%, var(--ink)); --line: color-mix(in srgb, var(--paper) 16%, transparent); --soft: color-mix(in srgb, var(--paper) 7%, var(--ink)); }
.blk.dark + .blk { border-top: 0; }
.blk.dark code { background: color-mix(in srgb, var(--paper) 12%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }

/* símbolo y retícula */
.sym { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: start; }
.grid-wrap { display: grid; gap: 14px; }
.grid { position: relative; display: grid; grid-template-columns: repeat(16, 1fr); aspect-ratio: 1; max-width: 100%; padding: 0; border-radius: 22px; overflow: hidden; background: var(--ink); }
.grid i { border-right: 1px solid color-mix(in srgb, var(--paper) 9%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--paper) 9%, transparent); transition: background-color .08s; }
.grid i.s1 { background: color-mix(in srgb, var(--paper) 30%, var(--ink)); }
.grid i.s2 { background: color-mix(in srgb, var(--paper) 58%, var(--ink)); }
.grid i.s3 { background: var(--paper); }
.grid-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.frames { display: flex; gap: 4px; }
.frames button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.frames button[aria-current="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.facts { display: grid; }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 3px; }

/* tarjetas de logos */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card { display: grid; grid-template-rows: auto auto 1fr auto; border-radius: 22px; overflow: hidden; background: var(--soft); }
.card.wide { grid-column: span 2; }
.card { min-width: 0; }
.card-art { display: block; aspect-ratio: 16 / 10; padding: 9%; min-width: 0; }
.card.wide .card-art { aspect-ratio: 32 / 10; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-art img.pix { image-rendering: pixelated; }
.rule-art img { width: 62%; height: auto; max-height: 70%; object-fit: contain; }
.card h3 { padding: 16px 18px 2px; font-size: 19px; line-height: 1.1; font-weight: 700; font-stretch: 88%; letter-spacing: -.015em; }
.card p { padding: 0 18px; font-size: 14px; color: var(--muted); }
.card .fmts { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 18px; }
.card .fmts a { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.group-title { grid-column: 1 / -1; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.group-title:first-child { margin-top: 0; }

/* reglas */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.rule { display: grid; gap: 14px; padding: 16px; border-radius: 22px; background: var(--soft); }
.rule-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; background: #e9e9ec; overflow: hidden; }
.rule-art img { width: 62%; height: auto; }
.rule figcaption { font-size: 14.5px; color: var(--muted); }
.rule figcaption b { color: var(--ink); }
.rule.ok figcaption b::before { content: "✓ "; color: var(--ok); }
.rule.no figcaption b::before { content: "✕ "; color: var(--bad); }
.rule.no .rule-art::after { content: ""; position: absolute; inset: 10px; border: 2px solid var(--bad); border-radius: 10px; opacity: .55; }
.space img { outline: 1px dashed #2f45ff; outline-offset: 0; }
.space .m { position: absolute; background: color-mix(in srgb, #2f45ff 20%, transparent); }
.space .m.t, .space .m.b { left: 19%; right: 19%; height: 5.4%; } .space .m.t { top: 20.6%; } .space .m.b { bottom: 20.6%; }
.space .m.l, .space .m.r { top: 20.6%; bottom: 20.6%; width: 3.3%; } .space .m.l { left: 19%; } .space .m.r { right: 19%; }
.sizes { grid-auto-flow: column; gap: 28px; }
.sizes .s16 { width: 16px; image-rendering: pixelated; } .sizes .s96 { width: 96px; }
.stretch { transform: scaleX(1.45) scaleY(.75); }
.rotate { transform: rotate(-14deg); }
.busy { background: repeating-linear-gradient(45deg, #2a2d3a 0 14px, #484c60 14px 28px) !important; }
.recolor { filter: hue-rotate(160deg) saturate(6) invert(.25); }

/* color */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.swatch { display: grid; grid-template-rows: 1fr auto; min-height: 220px; border-radius: 22px; overflow: hidden; text-align: left; background: var(--sw); color: var(--sw-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent); transition: transform .6s var(--ease); }
.swatch:hover { transform: translateY(-4px); }
.swatch b { padding: 18px 18px 0; font-size: 28px; line-height: 1; font-weight: 800; font-stretch: 82%; letter-spacing: -.03em; }
.swatch span { display: grid; gap: 2px; padding: 18px; font: 500 13px var(--mono); }
.swatch small { font: 400 13px "Archivo", sans-serif; opacity: .75; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.theme { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--t-paper); color: var(--t-ink); text-align: left; transition: transform .6s var(--ease); }
.theme:hover { transform: translateY(-3px); }
.theme b { font-size: 16px; font-weight: 700; }
.theme .dots { display: flex; gap: 6px; }
.theme .dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ink) 20%, transparent); }
.theme .dots i:nth-child(1) { background: var(--t-paper); } .theme .dots i:nth-child(2) { background: var(--t-ink); } .theme .dots i:nth-child(3) { background: var(--t-acc); }
.theme small { font: 500 11.5px var(--mono); opacity: .7; }

/* letra */
.type { display: grid; gap: 28px; }
.type-sample { font-size: clamp(44px, 7.4vw, 132px); line-height: .92; letter-spacing: -.04em; font-weight: var(--w, 800); font-stretch: var(--s, 80%); outline: none; text-wrap: balance; min-height: 1em; }
.type-sample:focus-visible { box-shadow: 0 2px 0 var(--acc); border-radius: 0; }
.type-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 20px; padding: 18px 20px; border-radius: 20px; background: var(--soft); }
.type-ctl label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.type-ctl output { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 6px; }
.type-ctl input { width: 100%; accent-color: var(--acc); }
.type-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type-uses div { display: grid; gap: 4px; padding: 18px; border-radius: 20px; background: var(--soft); }
.type-uses span { font-size: 56px; line-height: 1.05; margin-bottom: 8px; }
.u-big { font-weight: 800; font-stretch: 78%; letter-spacing: -.04em; }
.u-num { font-weight: 300; font-stretch: 118%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.u-txt { font-weight: 400; }
.u-logo { font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; }
.type-uses small { font-size: 13px; color: var(--muted); }

/* servidor */
.blk.dark .card { background: color-mix(in srgb, var(--paper) 7%, var(--ink)); }
.howto { display: grid; gap: 16px; padding: clamp(18px, 2vw, 28px); border-radius: 22px; background: color-mix(in srgb, var(--paper) 7%, var(--ink)); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { position: relative; padding: 14px 0 14px 48px; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-size: 13px; font-weight: 700; }

/* descargas */
.tscroll { overflow-x: auto; }
table.dl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.dl th, .dl td { padding: 14px 14px 14px 0; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.dl thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.dl td:first-child { font-weight: 600; }
.dl td:nth-child(2) { color: var(--muted); font-size: 14px; }
.dl .fmts { display: flex; flex-wrap: wrap; gap: 6px; }
.dl .fmts a { min-height: 30px; padding: 0 11px; font-size: 12.5px; }

.ft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 26px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 200%); opacity: 0; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; pointer-events: none; transition: transform .7s var(--ease), opacity .4s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1000px) {
  .sym, .hero-row { grid-template-columns: 1fr; }
  .type-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .hd { flex-wrap: wrap; }
  .hd-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .hd-btn { margin-left: auto; }
  .hd-btn span { display: none; }
  .blk-hd { grid-template-columns: 1fr; }
  .blk-hd p { justify-self: start; text-align: left; }
  .type-ctl { grid-template-columns: auto minmax(0, 1fr); }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
