/* ============================================================
   MZ STUDIO — Entregables (Cuaderno de anteproyecto + Legajo municipal)
   ============================================================ */

:root {
  --paper:   #ebe8e2;
  --paper-2: #e2ded6;
  --ink:     #1a1918;
  --ink-2:   #5f5a53;
  --ink-3:   rgba(26,25,24,0.14);
}

/* --- Hero ------------------------------------------------- */
.en-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: calc(var(--nav-h) + 48px) clamp(24px, 4vw, 64px) 80px;
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
}
.en-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.en-hero-title {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 1.8rem 0 2rem;
}
.en-hero-title em { font-style: normal; color: var(--accent); }
.en-hero-sub {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--accent-2);
  max-width: 500px;
}
.en-hero-vols {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.en-hero-vol {
  border-top: 1px solid var(--border-hover);
  padding-top: 1rem;
  min-width: 190px;
  transition: border-color .4s var(--ease);
}
.en-hero-vol:hover { border-color: var(--text); }
.en-hero-vol b {
  display: block;
  font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .5rem;
}
.en-hero-vol span { font-size: 15px; font-weight: 300; color: var(--text); }

/* Libros 3D */
.en-books {
  position: relative;
  height: min(72vh, 640px);
  perspective: 1800px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.en-books-stage {
  position: relative;
  width: min(34vw, 420px);
  aspect-ratio: 0.72;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-24deg);
  transition: transform 1.2s var(--ease);
}
.en-book {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
}
.en-book--2 { transform: translate3d(22%, 9%, -70px); }
.en-book--1 { transform: translate3d(-4%, -3%, 30px); }
.en-books:hover .en-book--1 { transform: translate3d(-14%, -6%, 60px) rotateY(-6deg); }
.en-books:hover .en-book--2 { transform: translate3d(30%, 11%, -80px) rotateY(4deg); }
.en-book-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
  backface-visibility: hidden;
}
.en-book-spine {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 100%;
  transform-origin: left center;
  transform: rotateY(-90deg);
  background: #0a0a0a;
}
.en-book-page-edge {
  position: absolute;
  top: 1.5%; right: 0;
  width: 26px; height: 97%;
  transform-origin: right center;
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #d9d5cd 0 1px, #c9c4bb 1px 2px);
}
.en-cover-1 { background: #0b0b0b; }
.en-cover-1 img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 38% center;
  opacity: .78;
}
.en-cover-1::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.75) 0%, rgba(5,5,5,0) 38%, rgba(5,5,5,0) 55%, rgba(5,5,5,.9) 100%);
}
.en-cover-2 { background: #101314; }
.en-cover-2 svg { position: absolute; inset: 10% 8% 22%; width: 84%; height: 68%; opacity: .55; }
.en-cover-txt {
  position: absolute;
  left: 8%; right: 8%;
  z-index: 2;
  color: var(--text);
}
.en-cover-txt--top { top: 7%; }
.en-cover-txt--bot { bottom: 7%; }
.en-cover-txt small {
  display: block;
  font-size: 8px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(240,237,232,.6);
}
.en-cover-txt strong {
  display: block;
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 200; letter-spacing: -.01em; line-height: 1.15;
  margin-top: .6rem;
}
.en-cover-rule { width: 28px; height: 1px; background: rgba(240,237,232,.4); margin: .9rem 0; }

.en-scroll-hint {
  position: absolute;
  left: clamp(24px, 4vw, 64px);
  bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2);
}
.en-scroll-hint i {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: en-drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes en-drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* --- Proceso ---------------------------------------------- */
.en-proceso {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--border);
}
.en-proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.en-paso {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.en-paso + .en-paso { padding-left: 1.5rem; }
.en-paso:last-child { border-right: 0; }
.en-paso-n { font-size: 10px; letter-spacing: .2em; color: var(--accent-2); }
.en-paso h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 200; margin: 1.2rem 0 .8rem; line-height: 1.25; }
.en-paso p { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--accent-2); }
.en-paso-tag {
  display: inline-block; margin-top: 1.2rem;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--border-hover); padding: 6px 10px; color: var(--text);
}
.en-paso--on::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--text);
}
.en-paso + .en-paso.en-paso--on::before { left: 0; }

/* --- Section heads ---------------------------------------- */
.en-vol-head {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 150px) clamp(24px, 4vw, 64px) clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  border-top: 1px solid var(--border);
}
.en-vol-num {
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 200;
  line-height: .85;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,237,232,.22);
}
.en-vol-title { font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 200; line-height: 1.1; letter-spacing: -.02em; margin: 1.2rem 0 1.4rem; }
.en-vol-body { font-size: clamp(13px, 1.2vw, 15px); font-weight: 300; line-height: 1.8; color: var(--accent-2); max-width: 520px; }

/* --- Visor horizontal (Vol. 01) ---------------------------- */
.en-hscroll { position: relative; }
.en-hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.en-track {
  display: flex;
  gap: clamp(28px, 3vw, 56px);
  padding: 0 clamp(24px, 6vw, 110px);
  will-change: transform;
}
.en-hud {
  position: absolute;
  left: clamp(24px, 4vw, 64px);
  right: clamp(24px, 4vw, 64px);
  bottom: 28px;
  display: flex; align-items: center; gap: 20px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2);
}
.en-hud-bar { flex: 1; height: 1px; background: var(--border-hover); position: relative; }
.en-hud-bar i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--text); }
.en-hud-count { color: var(--text); font-variant-numeric: tabular-nums; min-width: 64px; }
.en-hud-name { min-width: 220px; text-align: right; }

/* --- Lámina (sheet) --------------------------------------- */
.sheet {
  --h: min(70vh, 640px);
  flex: 0 0 auto;
  height: var(--h);
  aspect-ratio: 1.414;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  container-type: size;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
  overflow: hidden;
  cursor: none;
  transition: transform .6s var(--ease);
}
.en-track .sheet:hover { transform: translateY(-6px); }
.sheet::before { /* grano de papel */
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
}
.sh-in {
  position: absolute;
  inset: 3.2cqh 2.4cqw 11.5cqh;
  display: grid;
}
.sh-rotulo {
  position: absolute;
  left: 2.4cqw; right: 2.4cqw; bottom: 2.8cqh;
  height: 6.4cqh;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1.3fr 2fr 1.6fr .7fr .7fr .9fr;
  font-size: 1.05cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sh-rotulo > div { padding: 1.1cqh 1cqw 0; border-left: 1px solid var(--ink-3); line-height: 1.35; }
.sh-rotulo > div:first-child { border-left: 0; padding-left: 0; font-weight: 500; letter-spacing: .2em; }
.sh-rotulo small { display: block; font-size: .72cqw; color: var(--ink-2); letter-spacing: .16em; }
.sh-rotulo .big { font-size: 1.9cqw; letter-spacing: 0; font-weight: 300; }

.sh-k { font-size: .95cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.sh-h { font-size: 3.6cqw; font-weight: 200; letter-spacing: -.02em; line-height: 1.05; margin: 1.4cqh 0 2cqh; }
.sh-p { font-size: 1.2cqw; font-weight: 300; line-height: 1.75; color: #3a3733; }
.sh-p + .sh-p { margin-top: 1.4cqh; }
.sh-num { font-size: 10cqw; font-weight: 200; letter-spacing: -.05em; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: .35; }

.sh-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-img--plan { object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.05); }
.sh-cap { font-size: .9cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: 1cqh; }

/* Portada */
.sheet--cover { background: #0a0a0a; color: var(--text); }
.sheet--cover::before { opacity: .4; mix-blend-mode: screen; }
.sheet--cover .cov-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.sheet--cover .cov-grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.55) 42%, rgba(5,5,5,0) 70%); }
.sheet--cover .cov-txt { position: absolute; left: 5cqw; top: 8cqh; bottom: 8cqh; display: flex; flex-direction: column; justify-content: space-between; }
.sheet--cover .cov-logo { height: 7cqh; width: auto; mix-blend-mode: screen; align-self: flex-start; }
.sheet--cover h2 { font-size: 5.2cqw; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.sheet--cover .cov-k { font-size: .95cqw; letter-spacing: .3em; text-transform: uppercase; color: rgba(240,237,232,.6); }
.sheet--cover .cov-meta { display: flex; gap: 3cqw; font-size: .95cqw; letter-spacing: .16em; text-transform: uppercase; color: rgba(240,237,232,.7); }
.sheet--cover .cov-meta b { display: block; font-weight: 400; color: var(--text); margin-top: .6cqh; letter-spacing: .08em; }

/* Índice */
.idx-list { counter-reset: none; }
.idx-row { display: grid; grid-template-columns: 5cqw 1fr auto; align-items: baseline; padding: 1.15cqh 0; border-bottom: 1px solid var(--ink-3); font-size: 1.25cqw; font-weight: 300; }
.idx-row b { font-weight: 400; font-size: .95cqw; letter-spacing: .14em; color: var(--ink-2); }
.idx-row span:last-child { font-size: .9cqw; letter-spacing: .14em; color: var(--ink-2); }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqh 2cqw; margin-top: 3cqh; }
.ficha div { border-top: 1px solid var(--ink); padding-top: 1cqh; }
.ficha small { display: block; font-size: .8cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.ficha span { display: block; font-size: 1.35cqw; font-weight: 300; margin-top: .6cqh; }

/* Tablas de lámina */
.sh-table { width: 100%; border-collapse: collapse; font-size: 1.05cqw; font-weight: 300; }
.sh-table th { text-align: left; font-weight: 400; font-size: .8cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 0 1cqw 1cqh 0; border-bottom: 1px solid var(--ink); }
.sh-table td { padding: .95cqh 1cqw .95cqh 0; border-bottom: 1px solid var(--ink-3); vertical-align: top; }
.sh-table td.n, .sh-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.sh-table tr.tot td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 400; }
.sh-table .sub td { color: var(--ink-2); font-size: .85cqw; letter-spacing: .14em; text-transform: uppercase; padding-top: 1.8cqh; border-bottom: 1px solid var(--ink-3); }

/* Moodboard */
.mood { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.2cqw; height: 100%; }
.mood > * { position: relative; overflow: hidden; min-height: 0; }
.mood .m-big { grid-row: span 2; }
.mood img { width: 100%; height: 100%; object-fit: cover; }
.mood .sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqw; }
.sw { position: relative; }
.sw i { display: block; width: 100%; aspect-ratio: 1; }
.sw b { display: block; font-size: .78cqw; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-top: .8cqh; line-height: 1.3; }
.sw small { display: block; font-size: .72cqw; color: var(--ink-2); letter-spacing: .08em; margin-top: .3cqh; }
.tx-hormigon { background:
  repeating-linear-gradient(0deg, transparent 0 18%, rgba(0,0,0,.07) 18% 19%),
  radial-gradient(circle at 30% 40%, rgba(255,255,255,.25), transparent 50%),
  #a9a49c; }
.tx-acero { background: linear-gradient(135deg, #2a2a2a, #121212 55%, #262626); }
.tx-nogal { background:
  repeating-linear-gradient(92deg, rgba(0,0,0,.18) 0 1px, transparent 1px 7px),
  repeating-linear-gradient(88deg, rgba(255,255,255,.05) 0 2px, transparent 2px 13px),
  linear-gradient(180deg, #6b4a33, #4a3222); }
.tx-piedra { background:
  radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 8%, transparent 9%),
  radial-gradient(circle at 70% 65%, rgba(0,0,0,.2) 0 12%, transparent 13%),
  radial-gradient(circle at 60% 20%, rgba(255,255,255,.1) 0 10%, transparent 11%),
  linear-gradient(160deg, #6f716f, #54575a); }
.tx-marmol { background:
  linear-gradient(118deg, transparent 46%, rgba(230,200,160,.55) 47%, transparent 48.5%),
  linear-gradient(64deg, transparent 60%, rgba(230,200,160,.35) 61%, transparent 62%),
  linear-gradient(140deg, transparent 20%, rgba(255,255,255,.2) 21%, transparent 22%),
  #141312; }
.tx-vidrio { background: linear-gradient(135deg, rgba(160,190,195,.55), rgba(90,120,125,.35) 50%, rgba(200,220,222,.5)); outline: 1px solid rgba(0,0,0,.2); outline-offset: -1px; }
.paleta { display: flex; margin-top: 1.4cqh; }
.paleta span { flex: 1; height: 3.2cqh; }

/* Diagramas partido */
.part-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; align-items: end; }
.part-grid figure svg { width: 100%; height: auto; overflow: visible; }
.part-grid figcaption { border-top: 1px solid var(--ink); padding-top: 1cqh; margin-top: 1.4cqh; font-size: 1cqw; font-weight: 300; line-height: 1.5; }
.part-grid figcaption b { display: block; font-size: .78cqw; font-weight: 400; letter-spacing: .2em; color: var(--ink-2); margin-bottom: .4cqh; }
.quote { font-size: 2.6cqw; font-weight: 200; letter-spacing: -.02em; line-height: 1.15; }

/* Gantt */
.gantt { display: grid; grid-template-columns: 17cqw repeat(12, 1fr); font-size: .9cqw; align-items: center; row-gap: 1.1cqh; }
.gantt .g-h { font-size: .72cqw; letter-spacing: .14em; color: var(--ink-2); text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: .8cqh; }
.gantt .g-h:first-child { text-align: left; }
.gantt .g-l { font-weight: 300; }
.gantt .g-b { height: 1.5cqh; background: var(--ink); }
.gantt .g-b.soft { background: var(--ink-2); opacity: .55; }

/* Visor lightbox */
.en-lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(5,5,5,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.en-lightbox.open { opacity: 1; visibility: visible; }
.en-lightbox .sheet { --h: min(88vh, calc(92vw / 1.414)); transform: scale(.94); transition: transform .6s var(--ease); }
.en-lightbox.open .sheet { transform: scale(1); }
.en-lb-close, .en-lb-nav {
  position: absolute;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-hover);
  padding: 10px 16px;
  transition: background .3s, color .3s;
}
.en-lb-close:hover, .en-lb-nav:hover { background: var(--text); color: var(--bg); }
.en-lb-close { top: 24px; right: 24px; }
.en-lb-nav--prev { left: 24px; top: 50%; }
.en-lb-nav--next { right: 24px; top: 50%; }

/* --- Legajo municipal (Vol. 02) --------------------------- */
.legajo {
  --lg-paper: #ebe8e2;
  --lg-ink:   #1a1918;
  --lg-soft:  rgba(26,25,24,.45);
  --lg-fill:  rgba(26,25,24,.08);
  --lg-accent:#8a3b2b;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) clamp(80px, 12vh, 140px);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.legajo[data-mode="blueprint"] { --lg-paper: #0f2a45; --lg-ink: #dbe7f3; --lg-soft: rgba(219,231,243,.5); --lg-fill: rgba(219,231,243,.1); --lg-accent: #ffd27a; }
.legajo[data-mode="mz"]        { --lg-paper: #0d0d0d; --lg-ink: #d8d2c8; --lg-soft: rgba(216,210,200,.45); --lg-fill: rgba(216,210,200,.07); --lg-accent: #bfb8ad; }

.lg-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.lg-modes { display: flex; border: 1px solid var(--border-hover); margin-bottom: 2rem; }
.lg-modes button {
  flex: 1; padding: 10px 0;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
  transition: background .3s, color .3s;
}
.lg-modes button + button { border-left: 1px solid var(--border-hover); }
.lg-modes button.on { background: var(--text); color: var(--bg); }
.lg-list li { border-top: 1px solid var(--border); }
.lg-list li:last-child { border-bottom: 1px solid var(--border); }
.lg-list button {
  width: 100%; display: grid; grid-template-columns: 52px 1fr; align-items: baseline;
  text-align: left; padding: 14px 0;
  color: var(--accent-2);
  transition: color .3s, padding .4s var(--ease);
}
.lg-list button b { font-size: 10px; font-weight: 400; letter-spacing: .16em; }
.lg-list button span { font-size: 14px; font-weight: 300; }
.lg-list button:hover { color: var(--text); }
.lg-list button.on { color: var(--text); padding-left: 10px; }
.lg-list button.on b::before { content: '— '; }

.lg-stage { position: relative; }
.lg-sheet-wrap { width: 100%; aspect-ratio: 1.414; }
.sheet-m {
  --h: 100%;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  background: var(--lg-paper);
  color: var(--lg-ink);
  transition: background .6s var(--ease), color .6s var(--ease);
}
.sheet-m::before { opacity: .6; }
.legajo[data-mode="blueprint"] .sheet-m::before,
.legajo[data-mode="mz"] .sheet-m::before { mix-blend-mode: screen; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); }
.legajo[data-mode="blueprint"] .sheet-m {
  background-image: linear-gradient(rgba(219,231,243,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(219,231,243,.06) 1px, transparent 1px);
  background-size: 2.5cqw 2.5cqw;
  background-color: var(--lg-paper);
}
.sheet-m .sh-rotulo { border-color: var(--lg-ink); }
.sheet-m .sh-rotulo > div { border-color: var(--lg-soft); }
.sheet-m .sh-rotulo small, .sheet-m .sh-k { color: var(--lg-soft); }
.sheet-m .sh-marco { position: absolute; inset: 1.6cqh 1.2cqw; border: 1px solid var(--lg-ink); pointer-events: none; opacity: .6; }

/* Dibujo SVG */
.dw { width: 100%; height: 100%; overflow: visible; }
.dw * { vector-effect: non-scaling-stroke; }
.dw .w   { stroke: var(--lg-ink); stroke-width: 2.6; fill: none; stroke-linecap: square; }
.dw .wi  { stroke: var(--lg-ink); stroke-width: 1.4; fill: none; }
.dw .gl  { stroke: var(--lg-ink); stroke-width: .7; fill: none; }
.dw .th  { stroke: var(--lg-ink); stroke-width: .6; fill: none; }
.dw .fx  { stroke: var(--lg-soft); stroke-width: .6; fill: none; }
.dw .ds  { stroke: var(--lg-soft); stroke-width: .7; fill: none; stroke-dasharray: 4 3; }
.dw .ax  { stroke: var(--lg-soft); stroke-width: .5; fill: none; stroke-dasharray: 10 3 2 3; }
.dw .ac  { stroke: var(--lg-accent); stroke-width: 1.4; fill: none; }
.dw .acd { stroke: var(--lg-accent); stroke-width: 1.2; fill: none; stroke-dasharray: 5 3; }
.dw .fl  { fill: var(--lg-fill); stroke: none; }
.dw .fk  { fill: var(--lg-ink); stroke: none; }
.dw .ht  { stroke: none; }
.dw .hs  { vector-effect: none; stroke: var(--lg-ink); opacity: .55; }
.dw .bx  { fill: var(--lg-paper); stroke: none; }
.dw .ar  { fill: var(--lg-accent); stroke: none; }

/* Notas laterales de lámina */
.lg-notes { display: flex; flex-direction: column; gap: 2.2cqh; font-size: .92cqw; font-weight: 300; line-height: 1.55; }
.lg-notes .sh-k { margin-bottom: .6cqh; }
.lg-notes ul li { display: grid; grid-template-columns: 3cqw 1fr; gap: .8cqw; align-items: center; padding: .5cqh 0; }
.lg-notes .sym { height: 1.4cqh; display: block; }
.lg-notes .sym.w  { border-top: 3px solid var(--lg-ink); height: 0; }
.lg-notes .sym.gl { border-top: 1px solid var(--lg-ink); border-bottom: 1px solid var(--lg-ink); height: 4px; }
.lg-notes .sym.ds { border-top: 1px dashed var(--lg-soft); height: 0; }
.lg-notes .sym.ac { border-top: 2px solid var(--lg-accent); height: 0; }
.lg-notes .sym.acd{ border-top: 2px dashed var(--lg-accent); height: 0; }
.lg-notes .sym.fk { background: var(--lg-ink); width: 1.2cqh; height: 1.2cqh; }
.lg-notes .sym.ht { background: repeating-linear-gradient(45deg, var(--lg-soft) 0 1px, transparent 1px 4px); outline: 1px solid var(--lg-ink); }
.lg-notes p { color: var(--lg-ink); opacity: .8; }
.dw text { fill: var(--lg-ink); font-family: var(--font); font-weight: 300; }
.dw .t-s { fill: var(--lg-soft); }
.dw .t-a { fill: var(--lg-accent); }

/* animación: barrido de plotter + aparición escalonada de trazos */
.drawing .dw { animation: en-wipe 1.8s var(--ease) both; }
.drawing .dw > *, .drawing .dw g > * { opacity: 0; animation: en-fade .9s ease forwards; animation-delay: calc(var(--d, 0) * .8ms); }
.paused .dw { animation-play-state: paused !important; }
@keyframes en-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .drawing .dw, .drawing .dw * { animation: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* Contención de contenido dentro de cada lámina */
.sh-in { grid-template-rows: minmax(0, 1fr); }
.sh-in > * { min-width: 0; min-height: 0; }
.sw i { aspect-ratio: auto; height: 7cqh; }
.mood { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.gantt .g-l { grid-column: 1; }
.en-cover-2 svg { inset: 14% 8% 36%; height: 50%; }
.sheet .car { gap: 1.4cqw; font-size: .85cqw; grid-template-rows: minmax(0, 1fr); }
.sheet .car-box, .sheet .car-right { min-height: 0; overflow: hidden; }
.sheet .car-row { padding: .45cqh .7cqw; grid-template-columns: 10cqw 1fr; }
.sheet .car-head { padding: .7cqh .7cqw; }
.sheet .car-head b { font-size: 1.1cqw; }
.sheet .car .sh-table { font-size: .8cqw; }
.sheet .car .sh-table th { padding-bottom: .5cqh; }
.sheet .car .sh-table td { padding: .38cqh 1cqw .38cqh 0; }
.sheet .car-sellos div { height: 6.5cqh; }

/* Láminas del Vol. 01 usan la misma tinta que el modo papel */
.en-track .sheet, .en-lightbox .sheet { --lg-paper: var(--paper); --lg-ink: var(--ink); --lg-soft: rgba(26,25,24,.45); --lg-fill: rgba(26,25,24,.08); --lg-accent: #8a3b2b; }
.en-cover-2 .dw { --lg-ink: #bfb8ad; --lg-soft: rgba(191,184,173,.5); --lg-fill: rgba(191,184,173,.08); }

/* Botones CTA */
.en-btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.en-btn:hover { background: transparent; color: var(--text); }
.en-btn--ghost { background: transparent; color: var(--text); }
.en-btn--ghost:hover { background: var(--text); color: var(--bg); }
.paused .dw * { animation-play-state: paused !important; }
@keyframes en-draw { to { stroke-dashoffset: 0; } }
@keyframes en-fade { to { opacity: 1; } }

/* Carátula */
.car { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6cqw; height: 100%; font-size: .95cqw; }
.car-box { border: 1px solid var(--lg-ink); display: grid; }
.car-row { border-top: 1px solid var(--lg-soft); padding: .9cqh .8cqw; display: grid; grid-template-columns: 11cqw 1fr; gap: .8cqw; align-items: baseline; }
.car-row:first-child { border-top: 0; }
.car-row small { font-size: .7cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--lg-soft); }
.car-row span { font-weight: 300; line-height: 1.35; }
.car-head { padding: 1.4cqh .8cqw; text-align: center; border-bottom: 1px solid var(--lg-ink); }
.car-head b { display: block; font-size: 1.3cqw; font-weight: 400; letter-spacing: .22em; }
.car-head small { font-size: .75cqw; letter-spacing: .2em; color: var(--lg-soft); }
.car-sellos { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--lg-ink); }
.car-sellos div { height: 11cqh; border-left: 1px solid var(--lg-soft); padding: .6cqh .6cqw; font-size: .68cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-soft); }
.car-sellos div:first-child { border-left: 0; }
.car .sh-table { font-size: .9cqw; }
.car .sh-table th { color: var(--lg-soft); border-color: var(--lg-ink); font-size: .7cqw; }
.car .sh-table td { border-color: var(--lg-soft); }
.car .sh-table tr.tot td { border-color: var(--lg-ink); }
.car-right { display: grid; grid-template-rows: auto 1fr 1fr; gap: 1.4cqh; min-height: 0; }
.car-fig { border: 1px solid var(--lg-ink); position: relative; min-height: 0; padding: 1cqh .8cqw; display: flex; flex-direction: column; }
.car-fig > small { font-size: .7cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--lg-soft); }
.car-fig svg { flex: 1; min-height: 0; }
.sheet-m .sh-table th { color: var(--lg-soft); border-color: var(--lg-ink); }
.sheet-m .sh-table td { border-color: var(--lg-soft); }

/* Documentación + trámite */
.lg-docs {
  max-width: 1380px; margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) clamp(80px, 12vh, 140px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px);
}
.lg-docs h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 200; margin: 1.2rem 0 2rem; }
.doc-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14px; font-weight: 300; }
.doc-item:last-child { border-bottom: 1px solid var(--border); }
.doc-item i { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--accent-2); }
.doc-item em { font-style: normal; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); border: 1px solid var(--border-hover); padding: 4px 8px; white-space: nowrap; }
.doc-item em.mz { color: var(--text); border-color: var(--text); }
.tram { position: relative; padding-left: 28px; }
.tram::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--border-hover); }
.tram-step { position: relative; padding: 0 0 26px; }
.tram-step::before { content: ''; position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border: 1px solid var(--accent); background: var(--bg); }
.tram-step b { display: block; font-size: 10px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.tram-step span { display: block; font-size: 15px; font-weight: 300; margin-top: 6px; }
.tram-step p { font-size: 13px; font-weight: 300; color: var(--accent-2); line-height: 1.7; margin-top: 4px; max-width: 420px; }

/* Nota + CTA */
.en-nota {
  max-width: 1380px; margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) 40px;
  font-size: 11px; font-weight: 300; line-height: 1.7; color: var(--accent-2);
}
.en-cta { border-top: 1px solid var(--border); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1100px) {
  .legajo { grid-template-columns: 1fr; }
  .lg-side { position: relative; top: 0; }
  .lg-list { display: flex; overflow-x: auto; gap: 0; }
  .lg-list li { border-top: 0; border-left: 1px solid var(--border); flex: 0 0 auto; }
  .lg-list li:last-child { border-bottom: 0; }
  .lg-list button { grid-template-columns: auto; padding: 12px 16px; gap: 4px; }
  .lg-list button.on { padding-left: 16px; }
}
@media (max-width: 900px) {
  .en-hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 32px); }
  .en-books { height: 58vh; order: -1; }
  .en-books-stage { width: 56vw; }
  .en-scroll-hint { display: none; }
  .en-proceso-grid { grid-template-columns: 1fr 1fr; }
  .en-paso:nth-child(2) { border-right: 0; }
  .en-paso:nth-child(3) { padding-left: 0; }
  .en-vol-head { grid-template-columns: 1fr; }
  .lg-docs { grid-template-columns: 1fr; }
  /* visor: scroll nativo */
  .en-hscroll { height: auto !important; }
  .en-hscroll-sticky { position: relative; height: auto; padding: 20px 0 70px; }
  .en-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 12px; }
  .en-track .sheet { --h: min(56vw, 60vh); scroll-snap-align: center; }
  .en-hud-name { display: none; }
}
@media (max-width: 560px) {
  .en-proceso-grid { grid-template-columns: 1fr; }
  .en-paso, .en-paso + .en-paso { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--border); }
  .en-track .sheet { --h: 62vw; }
}
@media (prefers-reduced-motion: reduce) {
  .drawing .dw [pathLength], .drawing .dw text, .drawing .dw .fl, .drawing .dw .fk, .drawing .dw .ht { animation: none; stroke-dashoffset: 0; opacity: 1; stroke-dasharray: none; }
}
