/* MADRE · madre.run · docs.css
   Los diagramas de las páginas de documentación (Cambios, Seguridad, Por dentro, SDK y Continuidad), con la
   guía Porcelana (2026-11-17): blanco, banda #f4f6f5, tinta #111511 y un solo acento esmeralda. Se carga
   después de styles.css y solo en esas páginas; todo va bajo clases dz-* (o .doc) para no tocar lo común.
   Los colores de las IAs viven solo en lo que es de cada IA (.ai-* de styles.css).
   Sin JavaScript, o con «reducir movimiento», cada diagrama se dibuja en su estado final y se lee igual. */

.ai-local { --ai: #d6dad6; }  /* la IA de tu computadora: sin marca, en el gris claro de la tinta sobre el espacio */

/* Un rótulo vacío sobre un título no se dibuja: las secciones de estas páginas van sin rótulo. */
.doc .head .label:empty, .doc .doc-callout .label:empty { display: none; }

.dz { position: relative; margin: 0; }
.dz code { font-size: .875em; }
.dz-hint { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text-3); }

/* Los botones de un diagrama: ver otra vez, pausar. Solo existen cuando hay animación que controlar. */
.dz-replay, .dz-pause {
  display: none; align-items: center; justify-content: center; justify-self: start;
  min-height: 2.75rem; padding: 0 1.15rem; border: 0; border-radius: var(--pill);
  background: var(--card-2); color: var(--text); font: 500 .9375rem/1 var(--font); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.dz-replay:hover, .dz-pause:hover { background: #dde3df; }
.is-scene > .dz-replay, .is-anim > .dz-pause { display: inline-flex; }
.dz-pause--dark { background: rgba(255, 255, 255, .1); color: #f2f3ef; }
.dz-pause--dark:hover { background: rgba(255, 255, 255, .18); }
.dz-pause--dark:focus-visible { outline-color: #6ee7b7; }

/* Los pasos de una escena: una secuencia de verdad, así que van numerados. */
.dz-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: dz-step; }
.dz-steps li { position: relative; padding-top: 2.5rem; font-size: .9375rem; line-height: 1.5; color: var(--text-2); counter-increment: dz-step; transition: color .4s var(--ease); }
.dz-steps li::before {
  content: counter(dz-step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--card-2);
  font: 600 .875rem/1 var(--font); color: var(--text-2); transition: background-color .4s var(--ease), color .4s var(--ease);
}
.dz-steps li.is-now { color: var(--text); }
.dz-steps li.is-now::before { background: var(--phosphor); color: #fff; }
@media (max-width: 52rem) {
  .dz-steps { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .dz-steps li { padding: .2rem 0 0 2.75rem; }
}

/* Una grabación real de MADRE App en su ventana (la .h-window de la portada). */
.dz-rec { display: grid; gap: .9rem; margin: 0; }
.dz-rec__cap { margin: 0; max-width: 44rem; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.dz-rec--wide { max-width: 60rem; margin-inline: auto; }
.dz-rec--wide .dz-rec__cap { margin-inline: auto; text-align: center; }

.dz-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.dz-facts { display: grid; gap: 1.5rem; margin: 0; }
.dz-facts dt { font-weight: 600; color: var(--text); }
.dz-facts dd { margin: .35rem 0 0; color: var(--text-2); line-height: 1.55; }
@media (max-width: 56rem) { .dz-split { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================================== Cambios: la línea de tiempo
   La lista de versiones de build.mjs (releasesBlock) sobre un riel: cada versión es un punto; la actual late.
   El riel se llena hasta donde vas leyendo (docs.js, --fill) y cada punto se enciende al pasar. */
.doc .releases { position: relative; padding-left: 2.25rem; }
.doc .releases::before, .doc .releases::after { content: ""; position: absolute; left: .4rem; top: .9rem; width: 2px; border-radius: 2px; }
.doc .releases::before { bottom: 1rem; background: var(--hair); }
.doc .releases::after { height: var(--fill, 0px); max-height: calc(100% - 1.9rem); background: var(--phosphor); }
.doc .release { --pad: clamp(2.5rem, 4vw, 3.5rem); padding-block: var(--pad); border-top: 0; }
.doc .release:first-child { padding-top: 0; }
.doc .release--folded { --pad: 1.4rem; }
.doc .release + .release { box-shadow: 0 -1px 0 var(--line); }
.doc .release::before {
  content: ""; position: absolute; z-index: 1; left: calc(-2.25rem + .4rem + 1px - .45rem); top: calc(var(--pad) + .45rem);
  width: .9rem; height: .9rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.doc .release:first-child::before { top: .45rem; }
.doc .release.is-past::before { background: #a7e3c6; box-shadow: inset 0 0 0 2px var(--phosphor); }
.doc .release--latest::before { width: 1.15rem; height: 1.15rem; left: calc(-2.25rem + .4rem + 1px - .575rem); top: .3rem; background: var(--emerald-dot); box-shadow: 0 0 0 4px #fff, 0 0 0 0 rgba(16, 185, 129, .45); animation: dz-beat 3.2s var(--ease-out) infinite; }
@keyframes dz-beat { 0%, 70%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 4px rgba(16, 185, 129, 0); } 78% { box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(16, 185, 129, .22); } }
.doc .release__date { margin: 0; font: 500 .8125rem/1.3 var(--mono); letter-spacing: 0; color: var(--text-3); }
.doc .release--latest .release__date { color: var(--phosphor); }
.doc .release--folded .release__v { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.doc .release--folded .release__meta { position: static; }
.doc .release--folded .release__sum { font-size: 1rem; }
.doc .release--latest .release__body h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); letter-spacing: -.03em; }
@media (max-width: 40rem) {
  .doc .releases { padding-left: 1.75rem; }
  .doc .release::before { left: calc(-1.75rem + .4rem + 1px - .45rem); }
  .doc .release--latest::before { left: calc(-1.75rem + .4rem + 1px - .575rem); }
}

/* ===================================================================== Seguridad: los cinco permisos
   Una tabla de verdad: las celdas encendidas dibujan una escalera que sube hacia #4. Cada columna es un
   botón que dice qué deja hacer ese permiso. */
.dz-perm { display: grid; gap: 1.25rem; }
.dz-perm__table-wrap { padding: clamp(.75rem, 2vw, 1.5rem); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 50px -30px rgba(17, 21, 17, .25); }
.dz-perm__table { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; }
.dz-perm__table th[scope="row"] { width: 32%; padding: .4rem 1rem .4rem .25rem; text-align: left; font-size: .9375rem; font-weight: 500; line-height: 1.3; color: var(--text); }
.dz-perm__sub { display: block; margin-top: .15rem; font-size: .8125rem; font-weight: 400; color: var(--text-3); }
.dz-perm__table thead th { padding: 0 0 .25rem; font-weight: inherit; }
.dz-perm__mode {
  display: grid; gap: .3rem; align-content: center; width: 100%; min-height: 3.6rem; padding: .55rem .4rem;
  border: 0; border-radius: 14px; background: var(--band); color: var(--text); font: inherit; text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.dz-perm__mode:hover { background: var(--card-2); }
.dz-perm__mode[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dz-perm__n { font: 600 .8125rem/1 var(--mono); color: var(--text-3); }
.dz-perm__mode[aria-pressed="true"] .dz-perm__n { color: #6ee7b7; }
.dz-perm__name { font-size: .875rem; font-weight: 600; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.dz-perm__table td { position: relative; height: 2.75rem; border-radius: 10px; background: var(--band); transition: background-color .45s var(--ease); }
.dz-perm__table td::after { content: ""; position: absolute; inset: 0; margin: auto; transition: transform .45s var(--ease-out), background-color .3s var(--ease); }
.dz-perm__table td.yes { background: #e2f3ea; }
.dz-perm__table td.yes::after { width: .65rem; height: .65rem; border-radius: 50%; background: var(--phosphor); }
.dz-perm__table td.no::after { width: .8rem; height: 2px; border-radius: 2px; background: var(--line-2); }
.dz-perm__table td.is-col.yes { background: #bfe6d1; }
.dz-perm__table td.is-col.no { background: #e9edeb; }
.dz-perm__table td.dz-perm__keys, .dz-perm__table td.dz-perm__corner { background: transparent; height: auto; }
.dz-perm__table td.dz-perm__keys::after { content: none; }
.dz-perm__keys { text-align: center; color: var(--text-2); }
.dz-perm__keys.is-col { color: var(--text); }
.dz-key { display: inline-block; width: 1.2rem; height: 1.2rem; margin: 0 .05rem; vertical-align: middle; }
.dz-perm__confirm th[scope="row"] { color: var(--text-2); font-weight: 500; }
/* Al verse, la escalera se llena columna por columna. */
.dz-perm .c0 { --c: 0; } .dz-perm .c1 { --c: 1; } .dz-perm .c2 { --c: 2; } .dz-perm .c3 { --c: 3; } .dz-perm .c4 { --c: 4; }
.dz-perm.is-armed:not(.is-built) td.yes { background: var(--band); }
.dz-perm.is-armed:not(.is-built) td.yes::after { transform: scale(0); }
.dz-perm.is-building td.yes, .dz-perm.is-building td.yes::after { transition-delay: calc(var(--c) * 150ms); }
.dz-perm__notes { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.dz-perm__notes li { color: var(--text-2); line-height: 1.55; }
.dz-perm__notes strong { color: var(--text); }
.dz-perm.is-js .dz-perm__notes li:not(.is-on) { display: none; }
.dz-perm.is-js .dz-perm__notes li { padding: 1.1rem 1.3rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 1.0625rem; animation: dz-in .35s var(--ease-out); }
.dz-perm:not(.is-js) .dz-hint { display: none; }
@keyframes dz-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 40rem) {
  .dz-perm__table, .dz-perm__table thead, .dz-perm__table tbody, .dz-perm__table td, .dz-perm__table thead th { display: block; }
  .dz-perm__table tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
  .dz-perm__table th[scope="row"] { grid-column: 1 / -1; width: auto; padding: .7rem .1rem .25rem; }
  .dz-perm__corner { display: none !important; }
  .dz-perm__mode { min-height: 4rem; padding: .5rem .15rem; border-radius: 12px; }
  .dz-perm__name { font-size: .75rem; }
  .dz-perm__table td { height: 2.25rem; }
  .dz-perm__keys { padding-top: .3rem; }
  .dz-key { width: 1rem; height: 1rem; }
}

/* ===================================================================== Seguridad: Deshacer
   Cuatro pasos (docs.js pone s1…s4). Sin JavaScript se ve el final: los archivos de vuelta y lo que salió, fuera. */
.dz-undo { display: grid; gap: 1.5rem; }
.dz-undo__stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; }
.dz-undo__zone { display: grid; gap: .9rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.dz-undo__zone--out { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dz-undo__h { margin: 0; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.dz-undo__point, .dz-undo__gone { display: inline-flex; align-items: center; gap: .55rem; width: max-content; max-width: 100%; margin: 0; padding: .55rem .9rem; border-radius: var(--pill); background: var(--band); font-size: .9375rem; line-height: 1.3; }
.dz-undo__point svg, .dz-undo__gone svg { flex: none; width: 1.15rem; height: 1.15rem; color: var(--phosphor); }
.dz-undo__gone { width: auto; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.dz-undo__gone svg { color: var(--text-2); }
.dz-undo__stays { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.dz-undo__files { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.dz-undo__file { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .45rem .85rem; border-radius: 12px; background: var(--band); transition: background-color .45s var(--ease), opacity .45s var(--ease); }
.dz-undo__file code { padding: 0; background: none; font-size: .9rem; }
.dz-undo__tag { margin-left: auto; padding: .2rem .6rem; border-radius: var(--pill); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.dz-undo__tag--mod { display: none; background: #fdf0e1; color: #8a4b0f; }
.dz-undo__tag--back { background: #e2f3ea; color: var(--phosphor); }
.dz-undo__file--new code { color: var(--text-3); text-decoration: line-through; }
.dz-undo__card { display: grid; gap: .55rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.dz-undo__card-h { margin: 0; font-size: .8125rem; color: var(--text-3); }
.dz-undo__card-p { margin: 0; font-size: .9375rem; line-height: 1.45; }
.dz-undo__btns { display: flex; gap: .5rem; margin: .2rem 0 0; }
.dz-undo__btn { padding: .45rem .9rem; border-radius: 10px; background: #fff; font-size: .875rem; font-weight: 600; box-shadow: 0 0 0 1px var(--line); transition: background-color .3s var(--ease), color .3s var(--ease); }
.dz-undo__btn--undo { background: var(--ink); color: #fff; box-shadow: none; }
.dz-undo__point, .dz-undo__gone, .dz-undo__stays { transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
/* La escena, paso por paso. */
.dz-undo.is-scene:not(.s1) .dz-undo__point { opacity: 0; transform: translateY(6px); }
.dz-undo.is-scene:not(.s2) .dz-undo__file--new { opacity: 0; }
.dz-undo.is-scene.s2:not(.s4) .dz-undo__file { background: #fff6eb; opacity: 1; }
.dz-undo.is-scene.s2:not(.s4) .dz-undo__file--new code { text-decoration: none; }
.dz-undo.is-scene.s2:not(.s4) .dz-undo__tag--mod { display: inline-block; }
.dz-undo.is-scene:not(.s4) .dz-undo__tag--back { display: none; }
.dz-undo.is-scene:not(.s3) .dz-undo__card { opacity: 0; transform: translateY(8px); }
.dz-undo.is-scene:not(.s4) .dz-undo__btn--undo { background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.dz-undo.is-scene:not(.s2) .dz-undo__gone { opacity: 0; transform: translateY(6px); }
.dz-undo.is-scene:not(.s4) .dz-undo__stays { opacity: 0; }
@media (max-width: 52rem) { .dz-undo__stage { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================================== Seguridad: lo que sale
   Tu computadora a la izquierda (lo que se queda); a la derecha, por un riel, lo que sale y a dónde. */
.dz-out { display: grid; gap: 1rem; }
.dz-out__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
.dz-out__home { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 28px; background: var(--ink); color: #fff; }
.dz-out__home-h { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: 1.3125rem; font-weight: 600; letter-spacing: -.015em; }
.dz-out__home-h .dz-mark { flex: none; width: 2.1rem; height: auto; color: #fff; }
.dz-out__stay { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.dz-out__stay li { position: relative; padding-left: 1.15rem; color: rgba(255, 255, 255, .84); line-height: 1.4; }
.dz-out__stay li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--emerald-dot); }
.dz-out__note { margin: 0; font-size: .875rem; font-weight: 600; color: #6ee7b7; }
.dz-out__routes { position: relative; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.dz-out__routes::before { content: ""; position: absolute; left: 0; top: var(--bus-a, 1.75rem); bottom: var(--bus-b, 1.75rem); width: 2px; background: var(--line-2); }
.dz-out__route { display: grid; grid-template-columns: clamp(2.5rem, 6vw, 5.5rem) minmax(0, 1fr); align-items: start; }
.dz-out__wire { position: relative; height: 2px; margin-top: 1.75rem; background: var(--line-2); }
.dz-out__wire i { position: absolute; inset: 0; opacity: 0; }
.dz-out__wire i::before { content: ""; position: absolute; left: -.6rem; top: -4px; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ai, #9aa39a); }
.dz-out.is-live .dz-out__wire i { animation: dz-run 3s linear infinite; }
.dz-out.is-live .dz-out__route--run .dz-out__wire i { animation-duration: 5s; }
.dz-out.is-live .dz-out__route--in .dz-out__wire i { animation-direction: reverse; animation-duration: 4s; }
.dz-out__wire i:nth-child(2) { animation-delay: -.5s !important; } .dz-out__wire i:nth-child(3) { animation-delay: -1s !important; }
.dz-out__wire i:nth-child(4) { animation-delay: -1.5s !important; } .dz-out__wire i:nth-child(5) { animation-delay: -2s !important; }
.dz-out__wire i:nth-child(6) { animation-delay: -2.5s !important; }
.dz-out__route--run .dz-out__wire i:nth-child(2) { animation-delay: -2.5s !important; }
@keyframes dz-run { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(calc(100% + .6rem)); opacity: 0; } }
.dz-out__dest { display: grid; gap: .6rem; padding: 1.25rem 1.4rem; border-radius: 22px; background: var(--band); }
.dz-out__route--in .dz-out__dest { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dz-out__what { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.dz-out__how { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.dz-out__never { margin: 0; font-size: .875rem; font-weight: 600; color: var(--phosphor); }
.dz-out__ais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem 1rem; margin: 0; padding: 0; list-style: none; }
.dz-out__ais li { display: flex; align-items: baseline; gap: .45rem; font-size: .875rem; line-height: 1.35; color: var(--text-2); }
.dz-out__ais li > i { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ai); transform: translateY(-.05rem); }
.dz-out__ais b { font-weight: 600; color: var(--text); }
.dz-out > .dz-pause { justify-self: end; }
@media (max-width: 56rem) {
  .dz-out__grid { grid-template-columns: minmax(0, 1fr); }
  .dz-out__routes { padding-top: 1rem; }
  .dz-out__routes::before { top: 0; left: 1.5rem; }
  .dz-out__route { grid-template-columns: 1.5rem 1.75rem minmax(0, 1fr); }
  .dz-out__wire { grid-column: 2; }
  .dz-out__dest { grid-column: 3; padding: 1.1rem 1.15rem; }
  .dz-out__ais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===================================================================== Por dentro: el camino de un mensaje
   Seis paradas sobre un riel; la que está pasando se ilumina y el riel se llena hasta ahí. */
.dz-path { display: grid; gap: 1.25rem; }
/* Los puntos y su riel van por encima de las tarjetas, en su propio renglón: nunca cruzan el texto. */
.dz-path__stops { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 2.1rem 0 0; list-style: none; }
.dz-path__stop { position: relative; padding: 1.35rem 1.1rem 1.35rem; border-radius: 20px; background: var(--band); transition: background-color .45s var(--ease), box-shadow .45s var(--ease); }
.dz-path__stop--out { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dz-path__stop h3 { margin: 0; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.01em; }
.dz-path__stop p { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.dz-path__stop .dz-path__flag { margin: 0 0 .35rem; font-size: .75rem; font-weight: 600; line-height: 1.2; color: var(--phosphor); }
.dz-path__dot { position: absolute; z-index: 3; top: -1.95rem; left: 1.1rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.dz-path__rail { display: none; position: absolute; z-index: 2; background: var(--line-2); border-radius: 2px; pointer-events: none; }
.dz-path.is-js .dz-path__rail { display: block; }
.dz-path__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--phosphor); transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .7s var(--ease); }
.dz-path.is-v .dz-path__fill { transform: scaleY(var(--p, 0)); transform-origin: center top; }
.dz-path__stop.is-past .dz-path__dot { background: var(--phosphor); box-shadow: none; }
.dz-path__stop.is-at { background: #e2f3ea; }
.dz-path__stop--out.is-at { background: #fff; box-shadow: inset 0 0 0 1.5px var(--phosphor); }
.dz-path__stop.is-at .dz-path__dot { background: var(--emerald-dot); box-shadow: 0 0 0 5px rgba(16, 185, 129, .22); }
.dz-path:not(.is-js) .dz-path__dot { background: var(--phosphor); box-shadow: none; }
.dz-path > .dz-pause { justify-self: end; margin-top: -.5rem; }
@media (max-width: 64rem) {
  .dz-path__stops { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 0 0 0 2.1rem; }
  .dz-path__stop { padding: 1.05rem 1.15rem 1.15rem; }
  .dz-path__dot { top: 1.3rem; left: -1.75rem; }
}

/* ===================================================================== Por dentro: la memoria compartida
   La única pieza oscura de estas páginas, como el Mapa de memoria de la app: el núcleo al centro, cada IA en
   su color alrededor y las venas por donde viaja lo que se anota y lo que se recuerda. */
.dz-mem { isolation: isolate; display: grid; gap: 1rem; overflow: hidden; padding: clamp(1.25rem, 3.5vw, 2.75rem); border-radius: 28px; background: #0b0b0e; color: #f2f3ef; }
.dz-mem__smoke { z-index: -1; }
.dz-mem__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center; }
.dz-mem__svg { display: block; width: 100%; height: auto; overflow: visible; }
.dz-mem__vein { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.4; stroke-linecap: round; transition: stroke .5s var(--ease), stroke-width .5s var(--ease); }
.dz-mem__vein.is-hot { stroke: var(--ai); stroke-width: 2; stroke-dasharray: 2 7; animation: dz-flow 1s linear infinite; }
@keyframes dz-flow { to { stroke-dashoffset: -18; } }
/* Las órbitas y las notas que giran: verde decisión, azul hecho, ámbar preferencia, violeta pregunta. */
.dz-mem__orbit { fill: none; stroke: rgba(52, 211, 153, .16); stroke-width: 1; stroke-dasharray: 2 6; }
.dz-mem__orbit--2 { stroke: rgba(255, 255, 255, .08); }
.dz-mem__ring { transform-box: view-box; transform-origin: 320px 220px; }
.dz-mem.is-anim .dz-mem__ring--1 { animation: dz-spin 60s linear infinite; }
.dz-mem.is-anim .dz-mem__ring--2 { animation: dz-spin 90s linear infinite reverse; }
@keyframes dz-spin { to { transform: rotate(360deg); } }
.dz-mem__seed { opacity: .8; }
.dz-mem__seed--decision { fill: #34d399; } .dz-mem__seed--fact { fill: #60a5fa; } .dz-mem__seed--pref { fill: #fbbf24; } .dz-mem__seed--question { fill: #c084fc; }
.dz-mem:not(.is-on) .dz-mem__ring, .dz-mem:not(.is-on) .dz-mem__vein { animation-play-state: paused; }
.dz-mem__ball { fill: var(--ai); }
.dz-mem__halo { fill: var(--ai); opacity: 0; transition: opacity .6s var(--ease); }
.dz-mem__node.is-hot .dz-mem__halo { opacity: .3; }
.dz-mem__label { fill: #c9cec7; font: 500 15px var(--font); letter-spacing: -.01em; }
.dz-mem__node.is-hot .dz-mem__label { fill: #fff; }
.dz-mem__core { fill: #0e1d17; stroke: var(--emerald-dot); stroke-width: 1.5; }
.dz-mem__core-glow { fill: var(--emerald-dot); opacity: .1; transition: opacity .5s var(--ease); }
.dz-mem.is-pulse .dz-mem__core-glow { opacity: .32; }
.dz-mem__core-t { fill: #e9fbf2; font: 600 15px var(--font); letter-spacing: -.01em; }
.dz-mem__pulse { opacity: 0; transition: opacity .2s linear; }
.dz-mem__pulse.is-on { opacity: 1; }
.dz-mem__legend { display: none; flex-wrap: wrap; gap: .4rem .9rem; margin: .75rem 0 0; padding: 0; list-style: none; font-size: .8125rem; color: #c9cec7; }
.dz-mem__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.dz-mem__legend i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ai); }
.dz-mem__side { display: grid; gap: 1.25rem; }
.dz-mem__note { margin: 0; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 1.0625rem; line-height: 1.45; transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.dz-mem__kind { display: inline-block; margin-right: .35rem; padding: .15rem .55rem; border-radius: var(--pill); background: rgba(16, 185, 129, .2); font-size: .8125rem; font-weight: 600; color: #6ee7b7; }
.dz-mem.is-js .dz-mem__note:not(.is-on) { opacity: 0; transform: translateY(6px); }
.dz-mem__stories { display: grid; gap: 1.5rem; }
.dz-mem__story { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; counter-reset: dz-mem; }
.dz-mem__story li { position: relative; padding-left: 2.35rem; font-size: .9375rem; line-height: 1.5; color: #c9cec7; counter-increment: dz-mem; transition: color .4s var(--ease); }
.dz-mem__story li::before { content: counter(dz-mem); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font: 600 .8125rem/1 var(--font); color: #c9cec7; transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.dz-mem__story li.is-now { color: #fff; }
.dz-mem__story li.is-now::before { background: var(--emerald-dot); box-shadow: none; color: #0b0b0e; }
.dz-mem.is-js .dz-mem__story:not(.is-on) { display: none; }
.dz-mem > .dz-pause { justify-self: end; }
@media (max-width: 56rem) {
  .dz-mem__grid { grid-template-columns: minmax(0, 1fr); }
  .dz-mem__map { max-width: 34rem; margin-inline: auto; width: 100%; }
}
@media (max-width: 40rem) {
  .dz-mem__label { display: none; }
  .dz-mem__core-t { font-size: 18px; }
  .dz-mem__legend { display: flex; }
}

/* ===================================================================== SDK: una habilidad entra
   Tu mensaje, la habilidad cuyas palabras coinciden y las seis IAs que la siguen. */
.dz-skill { display: grid; gap: 1.5rem; }
.dz-skill__stage { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1.15fr) 2.5rem minmax(0, .95fr); align-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.dz-skill__msg { display: grid; gap: .35rem; padding: 1rem 1.15rem; border-radius: 18px 18px 6px 18px; background: #e2f3ea; transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.dz-skill__who { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--phosphor); }
.dz-skill__text { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.dz-skill mark { padding: 0 .15em; border-radius: 4px; background: #a7e8c8; color: inherit; transition: background-color .45s var(--ease); }
.dz-skill__link { position: relative; height: 2px; margin: 0 .35rem; background: var(--line-2); }
.dz-skill__link::after { content: ""; position: absolute; inset: 0; background: var(--phosphor); transform-origin: left center; transition: transform .6s var(--ease); }
.dz-skill__card { display: grid; gap: .55rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--band); }
.dz-skill__file { margin: 0; font: 500 .8125rem/1.3 var(--mono); color: var(--text-3); }
.dz-skill__when { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--text-2); }
.dz-skill__when code { padding: 0; background: none; color: var(--text-3); }
.dz-skill__pill { width: max-content; max-width: 100%; margin: .15rem 0 0; padding: .35rem .75rem; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 500; line-height: 1.3; transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.dz-skill__ais { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.dz-skill__ais li { display: flex; align-items: center; gap: .45rem; min-height: 2.25rem; padding: .3rem .7rem; border-radius: var(--pill); background: var(--band); font-size: .875rem; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--ai); transition: box-shadow .45s var(--ease); }
.dz-skill__ais i { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ai); transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.dz-skill__ais li:nth-child(2), .dz-skill__ais li:nth-child(2) i { transition-delay: .08s; } .dz-skill__ais li:nth-child(3), .dz-skill__ais li:nth-child(3) i { transition-delay: .16s; }
.dz-skill__ais li:nth-child(4), .dz-skill__ais li:nth-child(4) i { transition-delay: .24s; } .dz-skill__ais li:nth-child(5), .dz-skill__ais li:nth-child(5) i { transition-delay: .32s; }
.dz-skill__ais li:nth-child(6), .dz-skill__ais li:nth-child(6) i { transition-delay: .4s; }
.dz-skill.is-scene:not(.s1) .dz-skill__msg { opacity: 0; transform: translateY(8px); }
.dz-skill.is-scene:not(.s2) mark { background: transparent; }
.dz-skill.is-scene:not(.s2) .dz-skill__link:nth-of-type(1)::after { transform: scaleX(0); }
.dz-skill.is-scene:not(.s3) .dz-skill__pill { opacity: 0; transform: translateY(6px); }
.dz-skill.is-scene:not(.s4) .dz-skill__link:nth-of-type(2)::after { transform: scaleX(0); }
.dz-skill.is-scene:not(.s4) .dz-skill__ais li { box-shadow: inset 0 0 0 1.5px transparent; }
.dz-skill.is-scene:not(.s4) .dz-skill__ais i { opacity: .3; transform: scale(.6); }
@media (max-width: 56rem) {
  .dz-skill__stage { grid-template-columns: minmax(0, 1fr); }
  .dz-skill__link { width: 2px; height: 1.75rem; margin: .35rem 0 .35rem 1.5rem; }
  .dz-skill__link::after { transform-origin: center top; }
  .dz-skill.is-scene:not(.s2) .dz-skill__link:nth-of-type(1)::after, .dz-skill.is-scene:not(.s4) .dz-skill__link:nth-of-type(2)::after { transform: scaleY(0); }
  .dz-skill__ais { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 30rem) { .dz-skill__ais { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================================================================== SDK: los tres peldaños */
.dz-tiers__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.dz-tier { display: grid; gap: .8rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; background: #fff; }
.dz-tier--c { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dz-tier__meter { display: flex; align-items: center; gap: .75rem; margin: 0; }
.dz-tier__bars { display: inline-flex; gap: .3rem; }
.dz-tier__bars i { width: 1.5rem; height: .4rem; border-radius: var(--pill); background: var(--card-2); }
.dz-tier--a .dz-tier__bars i, .dz-tier--b .dz-tier__bars i:nth-child(-n+2) { background: var(--phosphor); }
.dz-tier__verdict { font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--phosphor); }
.dz-tier--c .dz-tier__verdict { color: var(--text-2); }
.dz-tier h3 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.1875rem; letter-spacing: -.012em; }
.dz-tier__level { display: inline-grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--band); font: 600 .8125rem/1 var(--mono); color: var(--text-2); }
.dz-tier--c .dz-tier__level { background: var(--card-2); }
.dz-tier > p:not(.dz-tier__meter) { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.dz-tier__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.dz-tier__chips li { padding: .3rem .7rem; border-radius: var(--pill); background: var(--band); font-size: .8125rem; color: var(--text-2); }
.dz-tier--c .dz-tier__chips li { background: var(--card-2); }
@media (max-width: 56rem) { .dz-tiers__list { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================================== Continuidad: un relevo comprobado */
.dz-relay { display: grid; gap: 1.5rem; }
.dz-relay__stage { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, .95fr) 2.5rem minmax(0, 1fr); align-items: center; }
.dz-relay__desk { display: grid; gap: .5rem; padding: 1.25rem 1.3rem; border-radius: 22px; background: var(--band); transition: box-shadow .45s var(--ease); }
.dz-relay__who { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.0625rem; font-weight: 600; }
.dz-relay__who i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ai); }
.dz-relay__where { margin: 0; font-size: .8125rem; color: var(--text-3); }
.dz-relay__act { margin: .2rem 0 0; font-size: .9375rem; line-height: 1.45; color: var(--text-2); transition: opacity .45s var(--ease); }
.dz-relay__repo { display: grid; gap: .7rem; padding: 1.25rem 1.3rem; border-radius: 22px; background: var(--ink); color: #fff; transition: box-shadow .45s var(--ease); }
.dz-relay__repo-h { margin: 0; font-size: .9375rem; font-weight: 600; }
.dz-relay__repo-h code { padding: .1rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; }
.dz-relay__repo ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.dz-relay__repo li { padding: .25rem .6rem; border-radius: var(--pill); background: rgba(255, 255, 255, .1); font-size: .8125rem; color: rgba(255, 255, 255, .86); }
.dz-relay__git { margin: 0; font-size: .8125rem; font-weight: 600; color: #6ee7b7; transition: opacity .45s var(--ease); }
.dz-relay__link { position: relative; height: 2px; margin: 0 .35rem; background: var(--line-2); }
.dz-relay__link::after { content: ""; position: absolute; inset: 0; background: var(--phosphor); transform-origin: left center; transition: transform .6s var(--ease); }
.dz-relay__checks { display: grid; gap: .3rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.dz-relay__checks li { display: flex; align-items: center; gap: .4rem; font-size: .9375rem; transition: opacity .35s var(--ease); }
.dz-relay__checks svg { flex: none; width: 1.1rem; height: 1.1rem; padding: .1rem; border-radius: 50%; background: var(--phosphor); color: #fff; }
.dz-relay__checks li:nth-child(2) { transition-delay: .25s; } .dz-relay__checks li:nth-child(3) { transition-delay: .5s; }
.dz-relay__ready { margin: .25rem 0 0; font-size: .875rem; font-weight: 500; line-height: 1.4; transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.dz-relay__ready code { margin-right: .3rem; padding: .15rem .45rem; border-radius: 6px; background: var(--phosphor); color: #fff; font-weight: 600; }
.dz-relay.is-scene:not(.s1) .dz-relay__act { opacity: .35; }
.dz-relay.is-scene:not(.s1) .dz-relay__link--a::after { transform: scaleX(0); }
.dz-relay.is-scene.s1:not(.s2) .dz-relay__desk--from { box-shadow: inset 0 0 0 1.5px var(--ai); }
.dz-relay.is-scene:not(.s2) .dz-relay__git { opacity: 0; }
.dz-relay.is-scene.s2:not(.s3) .dz-relay__repo { box-shadow: 0 0 0 4px rgba(16, 185, 129, .3); }
.dz-relay.is-scene:not(.s3) .dz-relay__link--b::after { transform: scaleX(0); }
.dz-relay.is-scene:not(.s3) .dz-relay__checks li { opacity: .25; }
.dz-relay.is-scene.s3 .dz-relay__desk--to { box-shadow: inset 0 0 0 1.5px var(--ai); }
.dz-relay.is-scene:not(.s4) .dz-relay__ready { opacity: 0; transform: translateY(6px); }
@media (max-width: 56rem) {
  .dz-relay__stage { grid-template-columns: minmax(0, 1fr); }
  .dz-relay__link { width: 2px; height: 1.75rem; margin: .35rem 0 .35rem 1.5rem; }
  .dz-relay__link::after { transform-origin: center top; }
  .dz-relay.is-scene:not(.s1) .dz-relay__link--a::after, .dz-relay.is-scene:not(.s3) .dz-relay__link--b::after { transform: scaleY(0); }
}

/* ===================================================================== Continuidad: la certeza de cada dato */
.dz-sure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.dz-sure__item { display: grid; gap: .35rem; align-content: start; padding: 1.15rem 1.25rem; border-radius: 18px; background: #fff; }
.dz-sure__item code { width: max-content; max-width: 100%; margin-bottom: .2rem; padding: .2rem .55rem; border-radius: var(--pill); font: 600 .75rem/1.2 var(--mono); }
.dz-sure__item--ok code { background: #e2f3ea; color: var(--phosphor); }
.dz-sure__item--mid code { background: var(--card-2); color: var(--text-2); }
.dz-sure__item--warn code { background: #fdf0e1; color: #8a4b0f; }
.dz-sure__item strong { font-size: 1.0625rem; }
.dz-sure__item span { font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
@media (max-width: 56rem) { .dz-sure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .dz-sure { grid-template-columns: minmax(0, 1fr); } }

/* Con «reducir movimiento», nada se desplaza ni late: cada diagrama queda en su estado final. */
@media (prefers-reduced-motion: reduce) {
  .doc .release--latest::before { animation: none; }
  .dz *, .dz *::before, .dz *::after { transition: none !important; animation: none !important; }
}

/* ===================================================================== Por dentro: la caja de cada IA
   Una tarjeta por IA con su logo (la IA local lleva la M de MADRE): qué puede para conversar y qué para crear. */
.dz-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.dz-box { display: grid; align-content: start; gap: .55rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: 22px; background: var(--card); }
.dz-box__mark { display: grid; place-items: center start; height: 2.25rem; color: var(--ai, var(--text)); }
.dz-box__mark svg { width: 2rem; height: 2rem; }
.dz-box h3 { margin: .35rem 0 0; font-size: 1.125rem; letter-spacing: -.01em; }
.dz-box p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.dz-box p b { color: var(--text); font-weight: 600; }

/* ===================================================================== Por dentro: el registro
   Una cinta que solo crece hacia abajo: cada línea es algo que pasó y nada se reescribe. Se mueve mientras se ve. */
.dz-log { position: relative; overflow: hidden; height: 15.5rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0 1.4rem; border-radius: 22px; background: #0f1311; color: #d6dad3; font: 500 .8125rem/1 var(--mono); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 82%, transparent 100%); }
.dz-log__tape { display: grid; margin: 0; padding: 1rem 0; list-style: none; }
.dz-log.is-anim .dz-log__tape { animation: dz-log 22s linear infinite; }
.dz-log:not(.is-on) .dz-log__tape { animation-play-state: paused; }
@keyframes dz-log { to { transform: translateY(-50%); } }
.dz-log__row { display: grid; grid-template-columns: 4.2rem .55rem minmax(0, 1fr); align-items: center; gap: .85rem; height: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.dz-log__n { color: #6b726c; }
.dz-log__who { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ai, #8a8f88); }
.dz-log__who.ai-you { --ai: #e7e9e4; } .dz-log__who.ai-madre { --ai: #34d399; }
.dz-log__row span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font); font-size: .875rem; color: #e7e9e4; }
