/* ==========================================================================
   Zenith DEV Solutions — Design System
   Dirección: "Old Guard / Terminal" (moderno en ejecución, vieja escuela en ADN)
   --------------------------------------------------------------------------
   Índice
   00. Tokens
   01. Reset & base
   02. Tipografía
   03. Layout
   04. Fondos y texturas
   05. Marca (logo / wordmark)
   06. Navegación
   07. Botones
   08. Etiquetas / badges / kbd
   09. Terminal & cursor
   10. Secciones & encabezados
   11. Cards & paneles
   12. Pipeline (ciclo de vida)
   13. Timeline
   14. Stats & progreso
   15. Utilidades
   16. Reveal / motion
   17. Accesibilidad & reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   00. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color — base oscura "CRT" */
  --ink: #0b0e0b;
  --ink-1: #0e120d;
  --ink-2: #131810;
  --panel: #10150e;
  --panel-2: #151b12;

  /* Color — acentos */
  --phosphor: #39ff14;
  --phosphor-soft: #8cfa6e;
  --phosphor-deep: #1f8a12;
  --amber: #ffb000;
  --danger: #ff5f56;

  /* Color — "papel" (secciones claras) */
  --paper: #cfc7b2;
  --paper-2: #c3b9a2;
  --paper-3: #b3a88e;

  /* Color — texto */
  --text: #c9d1c8;
  --text-dim: #8b978a;
  --text-faint: #5f6a5d;
  --on-paper: #1b201a;
  --on-paper-dim: #454b40;
  --link-paper: #1a5416;

  /* Color — líneas */
  --line: rgba(57, 255, 20, 0.14);
  --line-strong: rgba(57, 255, 20, 0.32);
  --line-paper: rgba(27, 32, 26, 0.16);
  --line-paper-strong: rgba(27, 32, 26, 0.4);

  /* Tipografía */
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "VT323", var(--mono);

  /* Escala tipográfica fluida */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  /* Espaciado */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Sombras */
  --glow-phosphor: 0 0 0 1px rgba(57, 255, 20, 0.25), 0 0 24px rgba(57, 255, 20, 0.18);
  --shadow-panel: 0 20px 50px -20px rgba(0, 0, 0, 0.85);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
  --dur: 220ms;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   01. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--phosphor);
  text-decoration: none;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--phosphor);
  color: var(--ink);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   02. Tipografía
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f2f5ef;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-3xl);
}
h2 {
  font-size: var(--fs-2xl);
}
h3 {
  font-size: var(--fs-xl);
}
h4 {
  font-size: var(--fs-lg);
}

p {
  text-wrap: pretty;
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
  font-size: 0.95em;
}

strong,
b {
  font-weight: 600;
  color: #eef2ea;
}

.mono {
  font-family: var(--mono);
}

.pixel {
  font-family: var(--pixel);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text);
  max-width: 62ch;
}

.dim {
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   03. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, var(--s-9));
}

.section--paper {
  background: var(--paper);
  color: var(--on-paper);
}

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 {
  color: var(--on-paper);
}

.section--paper .dim {
  color: var(--on-paper-dim);
}

.section--paper .lead {
  color: var(--on-paper);
}

.section--paper a {
  color: var(--link-paper);
  text-decoration: underline;
  text-decoration-color: rgba(26, 84, 22, 0.4);
}

.section--paper a:hover {
  color: var(--on-paper);
  text-decoration-color: var(--on-paper);
}

.section--ink-2 {
  background: var(--ink-1);
}

.grid {
  display: grid;
  gap: var(--s-5);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   04. Fondos y texturas
   -------------------------------------------------------------------------- */
.bg-grid {
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}

.bg-dots {
  background-image: radial-gradient(rgba(57, 255, 20, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bg-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 50% 0%,
    rgba(57, 255, 20, 0.09),
    transparent 70%
  );
}

/* Scanlines CRT muy sutiles (opcional) */
.scanlines {
  position: relative;
}

.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
  z-index: 1;
}

.section--paper .scanlines::after {
  display: none;
}

/* --------------------------------------------------------------------------
   05. Marca
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__word {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f2f5ef;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand__word small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-top: 0.22rem;
}

.section--paper .brand__word {
  color: var(--on-paper);
}

.brand__cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  background: var(--phosphor);
  transform: translateY(0.12em);
  animation: blink 1.15s steps(1) infinite;
}

/* --------------------------------------------------------------------------
   06. Navegación
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 14, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 68px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
}

.nav__links > li {
  flex: none;
}

.nav__links a {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav__links a::before {
  content: "~/";
  color: var(--phosphor-deep);
}

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--phosphor);
}

.nav .nav__toggle {
  display: none;
}

@media (max-width: 1120px) {
  .nav__links {
    display: none;
  }
  .nav .nav__toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .nav__inner {
    gap: var(--s-2);
  }
  .badge.nav__lang {
    display: none;
  }
  .nav .btn {
    padding: 0.6rem 0.8rem;
  }
  .brand__word {
    font-size: 0.95rem;
  }
  .brand__word small {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
  }
}

/* --------------------------------------------------------------------------
   07. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--phosphor);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.72rem 1.15rem;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn::before {
  content: "$";
  color: var(--phosphor-deep);
  font-weight: 400;
}

.btn--primary {
  --btn-bg: var(--phosphor);
  --btn-fg: var(--ink);
  --btn-bd: var(--phosphor);
  box-shadow: var(--glow-phosphor);
}

.btn--primary::before {
  content: "";
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.4), 0 0 34px rgba(57, 255, 20, 0.35);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
}

.btn--ghost:hover {
  --btn-fg: var(--phosphor);
  --btn-bd: var(--line-strong);
}

.btn--amber {
  --btn-bg: transparent;
  --btn-fg: var(--amber);
  --btn-bd: rgba(255, 176, 0, 0.35);
}

.btn--amber::before {
  content: ">";
  color: var(--amber);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   08. Etiquetas / badges / kbd
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.6em;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--phosphor-soft);
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.badge--amber {
  color: var(--amber);
  background: rgba(255, 176, 0, 0.07);
  border-color: rgba(255, 176, 0, 0.28);
}

.badge__dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
}

.section--paper .kbd {
  color: var(--on-paper);
  background: var(--paper-3);
  border-color: var(--line-paper);
}

/* --------------------------------------------------------------------------
   09. Terminal & cursor
   -------------------------------------------------------------------------- */
.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.terminal__dots {
  display: flex;
  gap: 0.4rem;
}

.terminal__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-faint);
}

.terminal__dots i:nth-child(1) {
  background: var(--danger);
}
.terminal__dots i:nth-child(2) {
  background: var(--amber);
}
.terminal__dots i:nth-child(3) {
  background: var(--phosphor);
}

.terminal__title {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-left: 0.35rem;
}

.terminal__body {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}

.prompt {
  color: var(--text-dim);
}

.prompt b {
  color: var(--phosphor);
  font-weight: 400;
}

.prompt .path {
  color: var(--amber);
}

.line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.line--indent {
  padding-left: 1.6em;
}

.line--ok {
  color: var(--phosphor-soft);
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.05em;
  margin-left: 1px;
  background: var(--phosphor);
  transform: translateY(0.16em);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   10. Secciones & encabezados
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: clamp(2rem, 5vw, var(--s-7));
  max-width: 70ch;
}

.section-index {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  color: var(--phosphor);
}

.section--paper .section-index {
  color: var(--phosphor-deep);
}

.ascii-rule {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--line-strong);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.section--paper .ascii-rule {
  color: var(--line-paper-strong);
}

/* --------------------------------------------------------------------------
   11. Cards & paneles
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-panel);
}

.card__num {
  font-family: var(--pixel);
  font-size: 1.6rem;
  color: var(--phosphor);
  opacity: 0.85;
}

.card__title {
  font-family: var(--mono);
  font-size: var(--fs-lg);
  margin-top: var(--s-2);
  color: #eef2ea;
}

.card__text {
  margin-top: var(--s-2);
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

.section--paper .card {
  background: var(--paper-2);
  border-color: var(--line-paper);
}

.section--paper .card__title {
  color: var(--on-paper);
}

.section--paper .card__text {
  color: var(--on-paper-dim);
}

/* --------------------------------------------------------------------------
   12. Pipeline (ciclo de vida)
   -------------------------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding-bottom: var(--s-3);
  scrollbar-width: thin;
}

.pipeline__step {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 1.4rem;
  border-left: 1px solid var(--line);
}

.pipeline__step:first-child {
  border-left: 0;
}

.pipeline__step::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--phosphor);
}

.pipeline__step:first-child::before {
  left: 4px;
}

.pipeline__id {
  font-family: var(--pixel);
  font-size: 1.35rem;
  color: var(--phosphor);
}

.pipeline__name {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: #eef2ea;
  margin-top: 0.15rem;
}

.pipeline__out {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--s-2);
}

/* --------------------------------------------------------------------------
   13. Timeline (clásico)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line-strong);
  display: grid;
  gap: var(--s-6);
}

.timeline__item {
  position: relative;
  padding-left: clamp(1.2rem, 4vw, 2.4rem);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1px - 6px);
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--phosphor);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
}

.timeline__when {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--phosphor);
}

.timeline__role {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: #eef2ea;
  margin-top: 0.15rem;
}

.timeline__org {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--amber);
  margin-top: 0.1rem;
}

.timeline__desc {
  margin-top: var(--s-2);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  max-width: 70ch;
}

.section--paper .timeline {
  border-left-color: var(--line-paper-strong);
}

.section--paper .timeline__item::before {
  background: var(--paper);
  border-color: var(--phosphor-deep);
  box-shadow: none;
}

.section--paper .timeline__when {
  color: var(--phosphor-deep);
}

.section--paper .timeline__role {
  color: var(--on-paper);
}

.section--paper .timeline__org {
  color: #8a5e00;
}

.section--paper .timeline__desc {
  color: var(--on-paper-dim);
}

/* --------------------------------------------------------------------------
   14. Stats & progreso
   -------------------------------------------------------------------------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat__value {
  font-family: var(--pixel);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1;
  color: var(--phosphor);
}

.stat__label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section--paper .stat__value {
  color: var(--phosphor-deep);
}

.progress {
  height: 8px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--phosphor-deep), var(--phosphor));
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

/* --------------------------------------------------------------------------
   15. Utilidades
   -------------------------------------------------------------------------- */
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.gap-2 {
  gap: var(--s-2);
}
.gap-3 {
  gap: var(--s-3);
}
.gap-4 {
  gap: var(--s-4);
}
.gap-5 {
  gap: var(--s-5);
}
.mt-4 {
  margin-top: var(--s-4);
}
.mt-5 {
  margin-top: var(--s-5);
}
.mt-6 {
  margin-top: var(--s-6);
}
.mb-4 {
  margin-bottom: var(--s-4);
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.phosphor {
  color: var(--phosphor);
}
.amber {
  color: var(--amber);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contenido enriquecido renderizado (.prose) ------------------------------ */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 0.9em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 1.2em 0 0.5em; line-height: 1.25; }
.prose h2 { font-size: 1.3em; }
.prose h3 { font-size: 1.15em; }
.prose h4 { font-size: 1.05em; }
.prose ul, .prose ol { margin: 0 0 0.9em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.25em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 0 0 0.9em; padding-left: 1em; border-left: 2px solid var(--line-strong); }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--ink-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8em 1em; overflow-x: auto; margin: 0 0 0.9em; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   16. Reveal / motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   17. Accesibilidad & reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .brand__cursor,
  .cursor {
    animation: none;
    opacity: 1;
  }
}
