/* ============================================================
   PAPÁS DE MICHOACÁN — styles.css
   Dirección "EXPEDIENTE". Ver tokens.css.
   Orden: reset · base · utilidades · header · hero · bitácora ·
          bandas · componentes · footer · responsive · a11y
   ============================================================ */

/* ─────────── RESET ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* ─────────── BASE / UTILIDADES ─────────── */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap--lectura { width: min(100% - 2.5rem, var(--maxw-lectura)); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sello);
  margin: 0 0 .9rem;
}

/* El SELLO: dispositivo estructural del sitio. Cada afirmación va
   estampada con el artículo que la sostiene. */
.sello {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sello);
  border: 2px solid var(--sello);
  border-radius: var(--r-sm);
  padding: .2em .5em .16em;
  transform: rotate(-1.4deg);
  white-space: nowrap;
}
.sello--inline { transform: rotate(-1deg); margin-left: .35em; font-size: .7rem; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: -.01em;
  text-decoration: none;
  padding: .82rem 1.5rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--expediente); color: var(--text-invert); }
.btn--primary:hover { background: var(--expediente-h); }
.btn--accent  { background: var(--ambar); color: var(--tinta); }
.btn--accent:hover { background: #F0AF52; }
.btn--ghost   { background: transparent; color: var(--expediente); border-color: var(--expediente); }
.btn--ghost:hover { background: var(--expediente); color: var(--text-invert); }
.btn--crisis  { background: var(--hoja); color: var(--tinta); }
.btn--crisis:hover { background: #fff; }

.sec-head { max-width: 62ch; margin-bottom: 2.6rem; }
.sec-h2 { font-size: var(--fs-h2); margin-bottom: .7rem; }
.sec-sub { color: var(--text-soft); margin: 0; }
.sec-head--invert .sec-sub { color: rgba(251,250,248,.72); }
.sec-h2--invert { color: var(--text-invert); }

.prosa p { max-width: var(--maxw-lectura); }
.prosa--invert p { color: rgba(251,250,248,.86); }

.cta-line { margin-top: 2rem; }

.fuente-nota {
  margin-top: 2.2rem;
  font-size: var(--fs-small);
  color: var(--text-soft);
  max-width: var(--maxw-lectura);
}
.fuente-nota a { color: var(--expediente); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--tinta); color: var(--text-invert);
  padding: .8rem 1.2rem; z-index: 200; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ─────────── HEADER ─────────── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(16,24,32,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(251,250,248,.12);
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.hdr.is-scrolled { background: rgba(16,24,32,.98); }
.hdr.is-scrolled .hdr__in { padding: .6rem 0; }

.mark { text-decoration: none; display: flex; align-items: baseline; gap: .5rem; color: var(--text-invert); }
.mark__name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; }
.mark__place {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ambar);
}

.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: 1.6rem; align-items: center; }
.nav__list a {
  font-family: var(--font-display); font-weight: 700; font-size: .93rem;
  color: rgba(251,250,248,.82); text-decoration: none;
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav__list a:hover { color: var(--text-invert); border-bottom-color: var(--ambar); }

.nav__btn {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 34px; padding: 6px 4px;
  flex-direction: column; justify-content: space-between;
}
.nav__btn span { display: block; height: 2px; background: var(--hoja); border-radius: 2px; transition: transform .22s var(--ease), opacity .22s var(--ease); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16,24,32,.6); opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ─────────── HERO ─────────── */
.hero {
  background: var(--tinta);
  color: var(--text-invert);
  padding: clamp(7rem, 14vw, 10.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
/* Cuadrícula tenue de papel milimétrico: guiño al expediente */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(251,250,248,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,250,248,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 20%, transparent 78%);
}
.hero__in {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start;
  position: relative; z-index: 1;
}
.hero .eyebrow { color: var(--ambar); }
.hero__h1 { font-size: var(--fs-hero); margin-bottom: 1.3rem; }
.hero__h1 em { font-style: normal; color: var(--ambar); }
.hero__lead { color: rgba(251,250,248,.84); max-width: 46ch; font-size: 1.08rem; }
.hero__lead strong { color: var(--text-invert); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn--ghost { color: var(--hoja); border-color: rgba(251,250,248,.45); }
.hero .btn--ghost:hover { background: var(--hoja); color: var(--tinta); border-color: var(--hoja); }

.cita {
  margin: 2rem 0 0; padding: 1.1rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--ambar);
}
.cita p { font-size: 1.04rem; font-style: italic; margin-bottom: .7rem; }
.cita cite {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-style: normal; font-family: var(--font-mono);
  font-size: var(--fs-micro); letter-spacing: .05em;
  color: rgba(251,250,248,.6);
}
.cita--hero .sello { color: var(--ambar); border-color: var(--ambar); }

/* ─────────── BITÁCORA (elemento firma) ─────────── */
.bitacora {
  margin: 0; background: var(--hoja); color: var(--tinta);
  border-radius: var(--r-md); padding: 1.3rem;
  box-shadow: var(--shadow-md);
  transform: rotate(.5deg);
}
.bitacora__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .95rem; }
.bitacora__label {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.bitacora__tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gris);
  border: 1px solid var(--margen); border-radius: var(--r-sm); padding: .15em .45em;
}
.bitacora__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.dia {
  aspect-ratio: 1; border-radius: 2px;
  background: var(--hoja-2); border: 1px solid var(--margen);
  position: relative;
}
.dia--ok { background: rgba(229,160,60,.22); border-color: rgba(229,160,60,.5); }
.dia--no { background: var(--sello); border-color: var(--sello); }
.dia--no::after {
  content: ""; position: absolute; inset: 22%;
  background:
    linear-gradient(45deg, transparent 44%, var(--hoja) 44%, var(--hoja) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--hoja) 44%, var(--hoja) 56%, transparent 56%);
}
.bitacora__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.bitacora__count { margin: 0; font-size: var(--fs-small); color: var(--gris); }
.bitacora__count strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.5rem; line-height: 1; color: var(--sello); letter-spacing: -.04em;
}
.bitacora__legend { margin: 0; font-family: var(--font-mono); font-size: .68rem; color: var(--gris); }
.k { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 .25em 0 .8em; vertical-align: baseline; }
.k--ok { background: rgba(229,160,60,.5); }
.k--no { background: var(--sello); }
.bitacora__cap {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--margen);
  font-size: var(--fs-small); color: var(--gris);
}
.bitacora__cap a { color: var(--expediente); font-weight: 600; white-space: nowrap; }

/* ─────────── BANDAS ─────────── */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band--paper { background: var(--hoja); }
.band--soft  { background: var(--hoja-2); }
.band--ink   { background: var(--tinta); color: var(--text-invert); }
.band--sello { background: var(--sello); color: var(--text-invert); }

/* ─────────── ARTÍCULOS ─────────── */
.arts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.art {
  background: var(--hoja-2); border: 1px solid var(--margen);
  border-radius: var(--r-md); padding: 1.6rem;
}
.art--fuerte { background: var(--hoja); border-color: var(--sello); border-width: 2px; }
.art__num { margin: 0 0 1rem; }
.art__h { font-size: var(--fs-h3); margin-bottom: .7rem; }
.art__t { font-size: 1rem; }
.art__t strong { background: rgba(229,160,60,.34); padding: 0 .15em; }
.art__note {
  margin: 0; padding-top: .85rem; border-top: 1px dashed var(--margen);
  font-size: var(--fs-small); color: var(--text-soft);
}

/* ─────────── CONCEPTOS ─────────── */
.conceptos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cpt {
  border: 1px solid rgba(251,250,248,.18); border-radius: var(--r-md);
  padding: 1.5rem; background: rgba(251,250,248,.035);
}
.cpt__h { font-size: var(--fs-h3); color: var(--ambar); margin-bottom: .8rem; }
.cpt__def { color: rgba(251,250,248,.8); font-size: .99rem; }
.cpt__key { color: var(--text-invert); font-size: .99rem; }
.cpt__art { margin: 1.1rem 0 0; }
.cpt__art .sello { color: var(--ambar); border-color: rgba(229,160,60,.6); }

.remate {
  margin-top: 2.4rem; padding: 1.5rem 1.7rem;
  border-left: 4px solid var(--ambar); background: rgba(251,250,248,.05);
}
.remate p { margin: 0; font-size: 1.12rem; color: var(--text-invert); }

/* ─────────── REFORMA NUEVA ─────────── */
.nuevo { display: grid; grid-template-columns: 190px 1fr; gap: 2.4rem; align-items: start; }
.nuevo__flag { position: sticky; top: 6rem; }
.nuevo__pill {
  display: inline-block; background: var(--ambar); color: var(--tinta);
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3em .7em; border-radius: var(--r-sm);
}
.nuevo__date { margin: .7rem 0 0; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-soft); }
.nuevo__body p { max-width: var(--maxw-lectura); }
.nuevo__body .sec-h2 { margin-bottom: 1rem; }
.nuevo__more a { color: var(--expediente); font-weight: 600; }

.aviso {
  border: 1px solid var(--margen); border-left: 4px solid var(--expediente);
  border-radius: var(--r-md); padding: 1.1rem 1.3rem; background: var(--hoja-2);
  margin: 1.6rem 0;
}
.aviso p { margin: 0; font-size: var(--fs-small); }
.aviso--check { border-left-color: var(--sello); }

/* ─────────── RUTAS ─────────── */
.rutas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ruta {
  display: block; text-decoration: none; background: var(--hoja);
  border: 1px solid var(--margen); border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ruta:hover { transform: translateY(-4px); border-color: var(--expediente); box-shadow: var(--shadow-md); }
.ruta__k {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  color: var(--sello); letter-spacing: .1em; margin: 0 0 1.4rem;
}
.ruta__h { font-size: 1.16rem; margin-bottom: .6rem; }
.ruta__t { font-size: var(--fs-small); color: var(--text-soft); }
.ruta__go { margin: 1.1rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--expediente); }

/* ─────────── OJO (advertencias) ─────────── */
.ojo { max-width: 78ch; }
.ojo__h { font-size: var(--fs-h2); color: var(--text-invert); margin-bottom: .8rem; }
.ojo__lead { color: rgba(251,250,248,.86); max-width: 56ch; }
.ojo__list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.ojo__list li {
  background: rgba(16,24,32,.24); border-radius: var(--r-md);
  padding: 1.3rem 1.5rem; border-left: 4px solid var(--tinta);
}
.ojo__list h3 { font-size: 1.1rem; color: var(--text-invert); margin-bottom: .5rem; }
.ojo__list p { margin: 0; color: rgba(251,250,248,.88); font-size: .99rem; }
.ojo__list .sello { color: var(--hoja); border-color: rgba(251,250,248,.7); }
.ojo__foot { margin: 2rem 0 0; }
.ojo__foot a { color: var(--text-invert); font-weight: 600; }

/* ─────────── FOOTER ─────────── */
.ftr { background: var(--tinta); color: var(--text-invert); padding: 0 0 3rem; }

.crisis {
  background: var(--expediente); border-radius: var(--r-md);
  padding: 1.8rem 2rem; margin-bottom: 3.5rem;
  transform: translateY(-2.2rem);
}
.crisis__h { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: .5rem; }
.crisis__t { color: rgba(251,250,248,.88); max-width: 58ch; font-size: .99rem; }
.crisis__cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 0; }
.crisis__alt { font-family: var(--font-mono); font-size: var(--fs-small); color: rgba(251,250,248,.8); }
.crisis__alt a { color: var(--hoja); }

.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(251,250,248,.14); }
.mark--ftr { display: flex; margin-bottom: .8rem; }
.ftr__blurb { color: rgba(251,250,248,.68); font-size: var(--fs-small); max-width: 44ch; margin: 0; }
.ftr__h { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ambar); margin-bottom: .9rem; }
.ftr__col ul { display: grid; gap: .5rem; }
.ftr__col a { color: rgba(251,250,248,.82); text-decoration: none; font-size: var(--fs-small); }
.ftr__col a:hover { color: var(--ambar); text-decoration: underline; }

.legal { padding-top: 2rem; }
.legal p { color: rgba(251,250,248,.62); font-size: var(--fs-small); max-width: 76ch; }
.legal strong { color: rgba(251,250,248,.9); }
.legal__meta { font-family: var(--font-mono); font-size: var(--fs-micro); color: rgba(251,250,248,.45); margin: 0; }

/* ============================================================
   PÁGINAS DE CONTENIDO
   ============================================================ */

/* ─────────── ENCABEZADO DE PÁGINA ─────────── */
.phead {
  background: var(--tinta); color: var(--text-invert);
  padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.phead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(251,250,248,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,250,248,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 80% at 20% 10%, #000 10%, transparent 75%);
}
.phead > .wrap { position: relative; z-index: 1; }
.phead .eyebrow { color: var(--ambar); }
.phead__h { font-size: var(--fs-h1); margin-bottom: 1.1rem; }
.phead__lead { color: rgba(251,250,248,.84); max-width: 58ch; }
.phead__lead strong { color: var(--text-invert); }
.phead__meta {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  color: rgba(251,250,248,.45); margin: 1.6rem 0 0;
}

/* ─────────── DOCUMENTO CON ÍNDICE ─────────── */
.doc { background: var(--hoja); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.doc__in { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.toc { position: sticky; top: 5.5rem; }
.toc__h {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sello);
  margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--margen);
}
.toc__list { display: grid; gap: .1rem; counter-reset: none; }
.toc__list a {
  display: block; text-decoration: none; font-size: var(--fs-small);
  color: var(--text-soft); padding: .38rem 0 .38rem .6rem;
  border-left: 2px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.toc__list a:hover { color: var(--expediente); border-left-color: var(--expediente); }

.doc__body { min-width: 0; }

.sx { margin-bottom: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 5.5rem; }
.sx__n {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; color: var(--sello); margin: 0 0 .5rem;
}
.sx__h { font-size: var(--fs-h2); margin-bottom: 1rem; max-width: 26ch; }
.sx > p { max-width: var(--maxw-lectura); }

/* ─────────── BLOQUE DE LEY ─────────── */
.ley {
  border: 1px solid var(--margen); border-radius: var(--r-md);
  background: var(--hoja-2); padding: 1.4rem 1.5rem; margin: 1.6rem 0;
}
.ley--clave { background: var(--hoja); border-color: var(--sello); border-width: 2px; }
.ley__cite { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem; }
.ley__flag {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--ambar); color: var(--tinta);
  padding: .22em .55em; border-radius: var(--r-sm);
}
.ley__q { margin: 0 0 1.1rem; padding-left: 1.1rem; border-left: 3px solid var(--expediente); }
.ley__q p { font-style: italic; font-size: .99rem; margin-bottom: .6rem; }
.ley__q p:last-child { margin-bottom: 0; }
.ley__h { font-size: 1.06rem; margin-bottom: .55rem; }
.sx__sub { font-size: 1.1rem; margin: 2.2rem 0 .8rem; }
.ley__x { margin: 0 0 .8rem; font-size: .99rem; }
.ley__x:last-child { margin-bottom: 0; }
.ley__x strong { color: var(--tinta); }

.lista { display: grid; gap: .6rem; margin: .9rem 0 0; }
.lista li { position: relative; padding-left: 1.2rem; font-size: .99rem; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; background: var(--sello); border-radius: 1px;
}

/* ─────────── SCJN ─────────── */
.scjn {
  background: var(--expediente); color: var(--text-invert);
  border-radius: var(--r-md); padding: 1.5rem 1.7rem; margin: 1.8rem 0;
}
.scjn__k {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ambar); margin-bottom: .8rem;
}
.scjn p { color: rgba(251,250,248,.9); font-size: .99rem; }
.scjn strong { color: var(--text-invert); }
.scjn__f { font-size: var(--fs-small); color: rgba(251,250,248,.62); margin: 0; }

/* ─────────── DOS COLUMNAS COMPARATIVAS ─────────── */
.dosfilas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.8rem 0; }
.dosfilas__col { border-radius: var(--r-md); padding: 1.4rem 1.5rem; border: 1px solid var(--margen); }
.dosfilas__col--riesgo { background: rgba(176,58,46,.06); border-color: rgba(176,58,46,.35); }
.dosfilas__col--tuyo   { background: rgba(14,75,84,.06);  border-color: rgba(14,75,84,.35); }
.dosfilas__h {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  margin-bottom: .8rem;
}
.dosfilas__col--riesgo .dosfilas__h { color: var(--sello); }
.dosfilas__col--tuyo .dosfilas__h { color: var(--expediente); }
.dosfilas__col p { font-size: .96rem; }
.dosfilas__col--tuyo .lista li::before { background: var(--expediente); }

/* ─────────── MITOS ─────────── */
.mitos { display: grid; gap: 1rem; margin: 1.6rem 0 0; }
.mito { border-left: 3px solid var(--margen); padding: .2rem 0 .2rem 1.2rem; }
.mito dt {
  font-family: var(--font-display); font-weight: 800; font-size: 1.04rem;
  color: var(--sello); margin-bottom: .45rem;
}
.mito dd { margin: 0; font-size: .99rem; color: var(--text); }

/* ─────────── CIERRE DE PÁGINA ─────────── */
.cierre {
  border-top: 2px solid var(--tinta); padding-top: 2rem; margin-top: 3rem;
}
.cierre__h { font-size: var(--fs-h3); margin-bottom: .7rem; }
.cierre p { max-width: var(--maxw-lectura); }
.cierre .btn { margin: .4rem .5rem .4rem 0; }

/* ─────────── BITÁCORA: HERRAMIENTA ─────────── */
.bit-app {
  background: var(--hoja); border: 2px solid var(--tinta);
  border-radius: var(--r-md); padding: clamp(1.3rem, 3vw, 2rem); margin: 2rem 0;
}
.bit-app__h { font-size: var(--fs-h3); margin-bottom: .6rem; }
.bit-app__t { font-size: .99rem; color: var(--text-soft); max-width: 62ch; }
.bit-privacidad {
  display: flex; gap: .7rem; align-items: flex-start;
  background: rgba(14,75,84,.07); border-radius: var(--r-md);
  padding: .85rem 1rem; margin: 1.2rem 0 1.6rem;
  font-size: var(--fs-small); color: var(--expediente);
}
.bit-privacidad strong { color: var(--expediente); }

.bit-form { display: grid; grid-template-columns: 150px 1fr auto; gap: .8rem; align-items: end; }
.campo { display: grid; gap: .35rem; min-width: 0; }
.campo--full { grid-column: 1 / -1; }
.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;
}
.campo label {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft);
}
.campo input, .campo select, .campo textarea {
  font-family: var(--font-body); font-size: .98rem; color: var(--text);
  background: var(--hoja); border: 1px solid var(--margen);
  border-radius: var(--r-sm); padding: .6rem .7rem; width: 100%;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--expediente); }
.bit-form .btn { padding: .68rem 1.2rem; }

.bit-msg { min-height: 1.4em; font-size: var(--fs-small); margin: .9rem 0 0; color: var(--text-soft); }
.bit-msg.is-ok  { color: var(--expediente); font-weight: 600; }
.bit-msg.is-err { color: var(--sello); font-weight: 600; }

.bit-count {
  display: flex; align-items: baseline; gap: .5rem;
  margin: 1.6rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--margen);
}
.bit-count strong {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: var(--sello); line-height: 1;
}
.bit-count span { font-size: var(--fs-small); color: var(--text-soft); }

.bit-list { display: grid; gap: .5rem; }
.reg {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: var(--hoja-2); border: 1px solid var(--margen);
  border-left: 3px solid var(--sello); border-radius: var(--r-sm);
  padding: .7rem .9rem;
}
.reg__info { min-width: 0; }
.reg__fecha { font-family: var(--font-mono); font-size: .88rem; font-weight: 600; margin: 0 0 .15rem; }
.reg__que { margin: 0; font-size: .95rem; }
.reg__nota { margin: .25rem 0 0; font-size: var(--fs-small); color: var(--text-soft); }
.reg__del {
  background: none; border: 1px solid var(--margen); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-soft);
  padding: .3rem .55rem; cursor: pointer; flex-shrink: 0;
}
.reg__del:hover { border-color: var(--sello); color: var(--sello); }

.bit-empty { font-size: var(--fs-small); color: var(--text-soft); font-style: italic; margin: 0; }
.bit-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.bit-out {
  width: 100%; min-height: 220px; margin-top: 1rem;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.6;
  border: 1px solid var(--margen); border-radius: var(--r-sm);
  padding: .9rem; background: var(--hoja-2); color: var(--text); resize: vertical;
}
.btn--mini {
  padding: .55rem 1rem; font-size: .86rem;
  background: transparent; border: 2px solid var(--margen); color: var(--text-soft);
}
.btn--mini:hover { border-color: var(--sello); color: var(--sello); }

/* ─────────── PASOS ─────────── */
.pasos { display: grid; gap: 1.1rem; margin: 1.8rem 0; counter-reset: paso; }
.paso {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: var(--hoja-2); border: 1px solid var(--margen);
  border-radius: var(--r-md); padding: 1.3rem 1.5rem;
}
.paso__n {
  font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem;
  color: var(--hoja); background: var(--expediente);
  width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm);
  display: grid; place-items: center; margin: 0;
}
.paso__h { font-size: 1.08rem; margin-bottom: .45rem; }
.paso__b p { font-size: .99rem; margin-bottom: .6rem; }
.paso__b p:last-child { margin-bottom: 0; }
.paso__b .lista { margin-top: .5rem; }

/* ─────────── TARJETAS DE CONTACTO ─────────── */
.contactos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 1.8rem 0; }
.ctc {
  border: 1px solid var(--margen); border-radius: var(--r-md);
  background: var(--hoja-2); padding: 1.4rem 1.5rem;
}
.ctc--destacado { background: var(--hoja); border-color: var(--expediente); border-width: 2px; }
.ctc__k {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sello); margin: 0 0 .6rem;
}
.ctc__h { font-size: 1.08rem; margin-bottom: .5rem; }
.ctc p { font-size: .96rem; margin-bottom: .5rem; }
.ctc__dato { font-family: var(--font-mono); font-size: .88rem; color: var(--expediente); }
.ctc a { color: var(--expediente); font-weight: 600; }
.ctc__pend {
  display: inline-block; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px dashed var(--sello); color: var(--sello);
  padding: .18em .5em; border-radius: var(--r-sm); margin-top: .4rem;
}

/* ─────────── MODELOS DE ESCRITOS (/formatos) ─────────── */
.fmt {
  border: 1px solid var(--margen); border-radius: var(--r-md);
  background: var(--hoja-2); padding: 1.4rem 1.5rem; margin: 1.6rem 0;
}
.fmt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .35rem; }
.fmt__h { font-size: var(--fs-h3); }
.fmt__for { font-size: var(--fs-small); color: var(--text-soft); margin: 0 0 1rem; max-width: 62ch; }
.fmt__doc {
  width: 100%; min-height: 260px; resize: vertical;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.65;
  color: var(--text); background: var(--hoja);
  border: 1px solid var(--margen); border-radius: var(--r-sm); padding: 1rem 1.1rem;
}
.fmt__doc:focus { border-color: var(--expediente); }
.fmt__bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }
.fmt__msg { min-height: 1.3em; font-size: var(--fs-small); color: var(--text-soft); margin: 0; }
.fmt__msg.is-ok { color: var(--expediente); font-weight: 600; }
.fmt__legend {
  font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-soft);
  margin: 0; letter-spacing: .04em;
}
.fmt__legend b { color: var(--sello); }

/* ─────────── FAQ POR SITUACIÓN (/preguntas) ─────────── */
.faq { display: grid; gap: .8rem; margin: 1.6rem 0; }
.faq__item {
  border: 1px solid var(--margen); border-radius: var(--r-md);
  background: var(--hoja-2); overflow: hidden;
}
.faq__item[open] { border-color: var(--expediente); background: var(--hoja); }
.faq__q {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.06rem;
  display: flex; align-items: center; gap: .9rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "+"; font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem;
  color: var(--sello); line-height: 1; width: 1rem; flex-shrink: 0;
}
.faq__item[open] .faq__q::before { content: "–"; color: var(--expediente); }
.faq__a { padding: 0 1.3rem 1.3rem 3.2rem; }
.faq__a p { font-size: .99rem; margin-bottom: .7rem; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a .lista { margin-top: .5rem; }
.faq__go { display: inline-block; margin-top: .3rem; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--expediente); }

/* ─────────── GLOSARIO ─────────── */
.glosario { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.6rem; margin: 1.6rem 0; }
.gl { border-left: 3px solid var(--margen); padding: .1rem 0 .1rem 1rem; }
.gl dt { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--expediente); margin-bottom: .3rem; }
.gl dd { margin: 0; font-size: .95rem; color: var(--text); }

/* ─────────── AVISO URGENTE (bloque sustracción) ─────────── */
.urgente {
  background: var(--sello); color: var(--text-invert);
  border-radius: var(--r-md); padding: 1.5rem 1.7rem; margin: 1.8rem 0;
}
.urgente__k {
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem;
  color: rgba(251,250,248,.85);
}
.urgente h3 { font-size: var(--fs-h3); margin-bottom: .6rem; color: var(--text-invert); }
.urgente p { color: rgba(251,250,248,.94); font-size: 1rem; }
.urgente .lista li::before { background: var(--hoja); }
.urgente strong { color: var(--text-invert); }
.urgente a { color: var(--hoja); font-weight: 600; }

/* ─────────── COMPARTIR (footer) ─────────── */
.share {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.4rem; flex-wrap: wrap;
  background: rgba(229,160,60,.10); border: 1px solid rgba(229,160,60,.35);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin-bottom: 2.4rem;
}
.share__t { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--hoja); max-width: 42ch; }
.share__btns { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.share__msg { font-size: var(--fs-small); color: var(--ambar); min-width: 6ch; }

/* ─────────── AVISO DE ÁMBITO (en bandas oscuras) ─────────── */
.ambito {
  display: flex; gap: .55rem; align-items: flex-start;
  border-left: 3px solid var(--ambar);
  background: rgba(251,250,248,.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .6rem .9rem; margin: 0 0 1.5rem; max-width: 72ch;
  font-size: var(--fs-small); color: rgba(251,250,248,.82);
}
.ambito strong { color: var(--hoja); }
.ambito a { color: var(--ambar); font-weight: 600; }

/* ─────────── DESCARGO ─────────── */
/* "Esto no es asesoría legal", en el primer pantallazo de las 8 páginas.
   Vive sobre fondo tinta (hero / phead), por eso el texto va en papel. */
.descargo {
  display: flex; gap: .6rem; align-items: flex-start;
  border-left: 3px solid var(--sello);
  background: rgba(176,58,46,.16);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .6rem .9rem; margin: 0 0 1.5rem; max-width: 72ch;
  font-size: var(--fs-small); color: rgba(251,250,248,.84);
}
.descargo__sello {
  flex: none; align-self: center;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--hoja);
  border: 1px solid rgba(214,106,92,.85); border-radius: var(--r-sm);
  padding: .1rem .42rem; transform: rotate(-2deg);
}
.descargo strong { color: var(--hoja); }
.descargo a { color: var(--ambar); font-weight: 600; }
@media (max-width: 520px) {
  .descargo { flex-direction: column; gap: .45rem; }
  .descargo__sello { align-self: flex-start; }
}

/* ─────────── NOTA DE PRIVACIDAD (footer) ─────────── */
.privacidad-nota { font-family: var(--font-mono); font-size: var(--fs-micro); color: rgba(251,250,248,.5); margin: .9rem 0 0; }

/* ─────────── TARJETA DE BOLSILLO ─────────── */
.tarjeta-cta {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center;
  background: var(--hoja-2); border: 1px solid var(--margen);
  border-radius: var(--r-md); padding: 1.4rem 1.5rem; margin: 1.8rem 0;
}
.tarjeta-cta__img { width: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.tarjeta-cta__body h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.tarjeta-cta__body p { font-size: .98rem; margin-bottom: .8rem; }
@media (max-width: 700px) { .tarjeta-cta { grid-template-columns: 1fr; } .tarjeta-cta__img { max-width: 260px; } }

/* ─────────── IMPRESIÓN ─────────── */
@media print {
  .hdr, .ftr, .nav, .nav__btn, .nav-scrim, .scroll-progress, .toc,
  .hero__cta, .cierre .btn, .bit-form, .bit-acciones, .bit-out, .fmt__bar,
  .tarjeta-cta, .ambito, .share { display: none !important; }
  .descargo { background: none !important; color: #000 !important; border-left-color: #000 !important; break-inside: avoid; }
  .descargo strong, .descargo a { color: #000 !important; }
  .descargo__sello { color: #000 !important; border-color: #000 !important; transform: none; }
  html, body { background: #fff !important; color: #000 !important; }
  .hero, .phead, .band, .band--ink, .band--sello, .band--paper, .band--soft, .doc {
    background: #fff !important; color: #000 !important; padding: 12px 0 !important;
  }
  .hero::before, .phead::before { display: none !important; }
  .hero__h1, .hero__lead, .phead__h, .phead__lead, .sec-h2, .sx__h, .sx__sub,
  .cita p, .cita cite, .cpt__h, .cpt__def, .cpt__key, .remate p, .ojo__h, .ojo__list h3,
  .ojo__list p, .prosa--invert p, .scjn p, .scjn strong, .dosfilas__col p { color: #000 !important; }
  .eyebrow, .sx__n, .toc__h { color: #444 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .ley, .art, .cpt, .paso, .gl, .faq__item, .mito, .dosfilas__col, .ctc, .scjn, .aviso { break-inside: avoid; page-break-inside: avoid; }
  .sello { color: #000 !important; border-color: #000 !important; background: transparent !important; }
  .wrap, .wrap--lectura, .doc__in { width: 100% !important; max-width: 100% !important; grid-template-columns: 1fr !important; }
  main { padding: 0 !important; }
}

/* ─────────── REVEAL ON SCROLL (solo con JS) ─────────── */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1000px) {
  .rutas { grid-template-columns: repeat(2, 1fr); }
  .conceptos { grid-template-columns: 1fr; }
  .hero__in { grid-template-columns: 1fr; }
  .bitacora { max-width: 460px; transform: none; }
  .nuevo { grid-template-columns: 1fr; gap: 1.4rem; }
  .nuevo__flag { position: static; display: flex; align-items: center; gap: 1rem; }
  .nuevo__date { margin: 0; }

  /* El índice deja de ser barra lateral y se vuelve un bloque plegable arriba */
  .doc__in { grid-template-columns: 1fr; }
  .toc {
    position: static; background: var(--hoja-2);
    border: 1px solid var(--margen); border-radius: var(--r-md);
    padding: 1.1rem 1.3rem; margin-bottom: 1rem;
  }
  .toc__list { grid-template-columns: repeat(2, 1fr); display: grid; gap: 0 1.2rem; }
  .dosfilas { grid-template-columns: 1fr; }
  .contactos { grid-template-columns: 1fr; }
  .glosario { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__btn { display: flex; }
  .nav__list {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); z-index: 95;
    background: var(--tinta); border-left: 1px solid rgba(251,250,248,.14);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: .4rem; padding: 5.5rem 1.8rem 2rem;
    transform: translateX(100%); transition: transform .28s var(--ease);
  }
  .nav__list.open { transform: none; }
  .nav__list a { font-size: 1.08rem; padding: .6rem 0; }
  body.nav-open .nav__btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-open .nav__btn span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (max-width: 700px) {
  .arts { grid-template-columns: 1fr; }
  .rutas { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; gap: 2rem; }
  .crisis { padding: 1.4rem 1.3rem; }
  .bitacora__count strong { font-size: 2.1rem; }
  .toc__list { grid-template-columns: 1fr; }
  .bit-form { grid-template-columns: 1fr; }
  .bit-form .btn { width: 100%; }
  .paso { grid-template-columns: 1fr; gap: .8rem; padding: 1.1rem 1.2rem; }
  .ley { padding: 1.1rem 1.1rem; }
  .sx__h { max-width: none; }
}

/* ─────────── ACCESIBILIDAD ─────────── */
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--ink :focus-visible, .hero :focus-visible, .ftr :focus-visible { outline-color: var(--ambar); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
