@font-face {
  font-family: "TT Octosquares";
  src: url("fonts/TTOctosquares-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060809;
  --panel: #0b0f12;
  --neon: #00ff84;
  --on-neon: #071009;
  --text: #eef2f0;
  --muted: rgba(238, 242, 240, 0.62);
  --faint: rgba(238, 242, 240, 0.34);
  --hair: rgba(238, 242, 240, 0.1);
  --hair-strong: rgba(238, 242, 240, 0.2);
  --display: "TT Octosquares", "Montserrat", sans-serif;
  --body: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --frame: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 430;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--neon); color: var(--on-neon); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a2126; border: 3px solid var(--bg); }
a:focus-visible { outline: 1px solid var(--neon); outline-offset: 4px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.frame-l, .frame-r {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hair);
  z-index: 45;
  pointer-events: none;
}
.frame-l { left: var(--frame); }
.frame-r { right: var(--frame); }
@media (max-width: 720px) { .frame-l, .frame-r { display: none; } }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: calc(var(--frame) + clamp(16px, 3vw, 40px));
  padding-right: calc(var(--frame) + clamp(16px, 3vw, 40px));
}

.micro {
  font-size: 10.5px;
  font-weight: 640;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.num { font-variant-numeric: tabular-nums; }

.mark {
  display: inline-block;
  border-radius: 26%;
  background: url("img/icon-256.png") center / cover no-repeat;
  border: 1px solid var(--hair-strong);
  overflow: hidden;
  flex: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(6, 8, 9, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; }
.brand span {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-back:hover { color: var(--text); border-bottom-color: var(--neon); }

/* ---------- document ---------- */
.doc { max-width: 900px; margin: 0 auto; padding: 150px 0 90px; }
.doc-head { margin-bottom: clamp(40px, 5vw, 60px); }
.rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hair-strong);
}
.rule .ix {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text);
}
.rule .ix i { font-style: normal; color: var(--neon); margin-right: 12px; }
.doc h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-top: 28px;
  text-wrap: balance;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.doc section { padding: clamp(28px, 4vw, 40px) 0 0; }
.doc h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.doc h2 i {
  font-style: normal;
  color: var(--neon);
  font-size: 12px;
  letter-spacing: 0.1em;
  flex: none;
}
.doc p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 74ch; }
.doc p strong, .doc li strong { color: var(--text); font-weight: 650; }
.doc ul { list-style: none; margin-top: 14px; }
.doc li {
  color: var(--muted);
  font-size: 14.5px;
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--hair);
  max-width: 74ch;
}
.doc li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--neon);
}
.doc li:last-child { border-bottom: 0; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--neon); text-underline-offset: 3px; }

/* placeholder pendiente de completar por la empresa */
.fill {
  color: var(--text);
  border-bottom: 1px dashed rgba(0, 255, 132, 0.55);
  padding: 0 2px;
}
/* valor rellenado desde site-config.js */
.filled {
  color: var(--text);
  font-weight: 600;
}

.notice {
  margin-top: 16px;
  border: 1px solid var(--hair);
  border-left: 2px solid var(--neon);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 74ch;
}

footer { border-top: 1px solid var(--hair); padding: 36px 0 42px; margin-top: 70px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.foot-brand .mark { width: 38px; height: 38px; }
.foot-brand .t { font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; color: var(--text); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--text); }
.foot .copy { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
