/* =========================================================
   MANUAL DE IMPRESIÓN 3D FDM
   Sistema visual: vacío, línea, tipografía y luz.
   ========================================================= */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/Unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/Unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --white: #ffffff;
  --fog: #f5f5f7;
  --ash: #cfcfcf;
  --carbon: #111111;
  --void: #000000;

  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.32);
  --line-3: rgba(255, 255, 255, 0.62);
  --cyan: #8df3ff;
  --cyan-soft: rgba(141, 243, 255, 0.16);

  --font: "Unbounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1480px;
  --read: 900px;
  --calc-max: 1480px;
  --taller-max: 1480px;
  --header: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-display: clamp(38px, 5.6vw, 74px);
  --fs-h2: clamp(30px, 3.4vw, 48px);
  --fs-h3: clamp(21px, 2.1vw, 27px);
  --fs-lead: clamp(18px, 1.7vw, 22px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-label: 11px;

  --tr-display: 0.055em;
  --tr-h2: 0.045em;
  --tr-label: 0.19em;
  --tr-body: 0.018em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--fog);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: var(--tr-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--white);
  color: var(--void);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border: 3px solid var(--void);
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: var(--tr-h2);
  text-transform: uppercase;
}

p {
  margin: 0 0 1.35em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: opacity 0.3s var(--ease);
}

a:hover {
  opacity: 0.68;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

strong,
b {
  font-weight: 600;
  color: var(--white);
}

em {
  font-style: normal;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.12em 0.45em;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

/* ---------- estructura ---------- */

.wrap {
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - (var(--gut) * 2), 1100px);
  margin-inline: auto;
}

.reading {
  width: min(100% - (var(--gut) * 2), var(--read));
  margin-inline: auto;
}

.section {
  padding: clamp(90px, 11vw, 150px) 0;
  position: relative;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--white);
  color: var(--void);
  border: 1px solid var(--white);
  text-transform: uppercase;
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  transform: translateY(-160%);
}
.skip:focus {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 5px;
}

/* ---------- progreso ---------- */

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
  pointer-events: none;
}

/* ---------- cabecera ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header);
  padding: 0 max(var(--gut), calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: var(--void);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--white);
}

.brand:hover {
  opacity: 1;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-text small {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.26em;
  color: var(--ash);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 38px);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-btn:hover {
  opacity: 0.66;
}

.nav-btn .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  width: 36px;
  height: 36px;
  padding: 9px 6px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}

.menu-toggle:hover span:nth-child(2) {
  width: 65%;
}

/* ---------- raíl de capítulos ---------- */

.chapter-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0;
}

.chapter-rail.is-on-light .rail-link::before {
  background: rgba(0, 0, 0, 0.28);
}

.chapter-rail.is-on-light .rail-link.is-active::before {
  background: #000;
}

.chapter-rail.is-on-light .rail-link span {
  color: #111;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 34px;
  height: 24px;
  text-decoration: none;
}

.rail-link::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.26);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.rail-link span {
  position: absolute;
  right: 44px;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.rail-link:hover span,
.rail-link:focus-visible span {
  opacity: 1;
  transform: none;
}

.rail-link.is-active::before {
  width: 34px;
  background: var(--white);
}

.rail-link.is-active span {
  color: var(--white);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header) + 34px) var(--gut) 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 46% at 50% 62%, rgba(141, 243, 255, 0.055), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(255, 255, 255, 0.035), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--tr-label);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0;
}

.hero .eyebrow {
  margin-bottom: 22px;
  animation: fade-up 1.1s var(--ease-out) both;
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--tr-display);
  animation: fade-up 1.1s 0.08s var(--ease-out) both;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
}

.hero-sub {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.085em;
  color: var(--ash);
  text-transform: none;
  animation: fade-up 1.1s 0.16s var(--ease-out) both;
}

.hero-sub strong {
  font-weight: 400;
  color: var(--fog);
}

/* cubo de capas */

.cube-wrap {
  --cube-size: clamp(180px, 26vw, 290px);
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  margin: clamp(24px, 4vh, 44px) auto calc(var(--cube-size) * 0.44);
  perspective: 1000px;
  z-index: 1;
  animation: fade-in 1.6s 0.3s var(--ease-out) both;
}

.cube-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.8s var(--ease);
}

.cube-reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(var(--cube-size) * 0.42);
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
  filter: blur(0.6px);
}

.cube-reflection-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--cube-size);
  transform: scaleY(-1);
  transform-origin: center center;
}

.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: cube-spin 42s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background:
    radial-gradient(circle at 50% 54%, rgba(141, 243, 255, 0.19), rgba(141, 243, 255, 0.035) 42%, transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.17) 0 1px, transparent 1px 8px),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    inset 0 0 34px rgba(141, 243, 255, 0.11),
    inset 0 0 90px rgba(0, 0, 0, 0.55);
  backface-visibility: visible;
}

.face--top,
.face--bottom {
  background:
    radial-gradient(circle at 50% 50%, rgba(141, 243, 255, 0.22), transparent 58%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 14px),
    rgba(255, 255, 255, 0.01);
}

.face--front  { transform: translateZ(calc(var(--cube-size) / 2)); }
.face--back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.face--right  { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.face--left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.face--top    { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

.cube-floor {
  position: absolute;
  left: 50%;
  bottom: calc(var(--cube-size) * -0.34);
  width: calc(var(--cube-size) * 1.8);
  height: calc(var(--cube-size) * 0.52);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, rgba(141, 243, 255, 0.2), rgba(141, 243, 255, 0.045) 42%, transparent 70%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

.cube-ring {
  position: absolute;
  left: 50%;
  bottom: calc(var(--cube-size) * -0.26);
  width: calc(var(--cube-size) * 1.5);
  height: calc(var(--cube-size) * 0.42);
  transform: translateX(-50%) rotateX(72deg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: fade-up 1.1s 0.24s var(--ease-out) both;
}

.hero-foot {
  width: 100%;
  max-width: var(--max);
  margin: clamp(34px, 5vh, 60px) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.hero-foot .scroll-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 15px 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 0.35s var(--ease), opacity 0.35s var(--ease);
}

.btn:hover {
  opacity: 1;
  border-color: var(--white);
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn--dim {
  border-color: var(--line-2);
  color: var(--ash);
}

.btn--dim:hover {
  border-color: var(--line-3);
}

.btn--calc {
  border-color: rgba(141, 243, 255, 0.42);
  color: var(--cyan);
}

.btn--calc:hover {
  border-color: var(--cyan);
  background: rgba(141, 243, 255, 0.07);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}

.link-arrow span {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover span {
  transform: translateX(5px);
}

/* ---------- manifiesto ---------- */

.statement {
  padding-top: clamp(100px, 13vw, 180px);
  padding-bottom: clamp(90px, 12vw, 160px);
  text-align: center;
  border-top: 1px solid var(--line);
}

.statement .eyebrow {
  margin-bottom: 44px;
}

.statement-text {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(30px, 4.8vw, 64px);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--white);
}

.statement-text .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
}

.statement-meta {
  max-width: 880px;
  margin: clamp(54px, 7vw, 88px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 28px 20px 26px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--white);
}

.stat span {
  display: block;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- índice ---------- */

.index-gallery {
  padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 12vw, 150px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.section-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.045em;
}

.section-head p {
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ash);
  letter-spacing: 0.05em;
}

.index-list {
  border-top: 1px solid var(--line-2);
}

.index-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 190px;
  gap: 26px;
  align-items: start;
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: opacity 0.3s var(--ease), padding 0.4s var(--ease);
}

.index-row:hover {
  opacity: 1;
  padding-left: 12px;
}

.index-num {
  padding-top: 5px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ash);
  transition: color 0.3s var(--ease);
}

.index-row:hover .index-num {
  color: var(--white);
}

.index-main h3 {
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: 0.035em;
  transition: transform 0.4s var(--ease);
}

.index-main p {
  max-width: 560px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.035em;
  color: var(--ash);
}

.index-meta {
  padding-top: 6px;
  text-align: right;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.index-meta span {
  display: block;
}

.index-meta .arrow {
  color: var(--white);
  font-size: 12px;
  transition: transform 0.4s var(--ease);
}

.index-row:hover .index-meta .arrow {
  transform: translate(3px, -3px);
}

/* ---------- capítulos ---------- */

.chapter {
  padding: clamp(100px, 13vw, 170px) 0 0;
  border-top: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 70px;
}

.chapter-head {
  width: min(100% - (var(--gut) * 2), var(--read));
  margin: 0 auto clamp(50px, 7vw, 80px);
  position: relative;
}

.chapter-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chapter-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--line-2);
}

.chapter-title-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 36px);
}

.chapter-num {
  flex: none;
  font-size: clamp(58px, 8.6vw, 112px);
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.chapter-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 720px;
}

.chapter-lead {
  margin: 28px 0 0;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.045em;
  color: var(--ash);
}

.reading > p,
.reading > ul,
.reading > ol,
.reading > blockquote,
.reading > .note,
.reading > .table-scroll,
.reading > .figure,
.reading > .photo,
.reading > .checklist,
.reading > .calc,
.reading > .chips,
.reading > .steps {
  margin-bottom: 26px;
}

.reading h3 {
  position: relative;
  margin: clamp(52px, 7vw, 78px) 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.reading h3:first-child {
  margin-top: 0;
}

.reading h3 .h3-idx {
  display: inline-block;
  min-width: 36px;
  margin-right: 10px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.17em;
  color: var(--ash);
  vertical-align: middle;
}

.reading h4 {
  margin: 38px 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.19em;
  color: var(--white);
}

.reading p {
  color: var(--fog);
}

.reading .lead {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
}

.reading a {
  color: var(--white);
}

.reading ul,
.reading ol {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.reading ul li,
.reading ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--fog);
}

.reading ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.reading ol {
  counter-reset: item;
}

.reading ol li {
  counter-increment: item;
  padding-left: 34px;
}

.reading ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ash);
}

.reading blockquote {
  margin: 42px 0;
  padding: 6px 0 6px 26px;
  border-left: 1px solid var(--white);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 200;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--white);
}

.reading blockquote p {
  margin: 0;
  color: inherit;
}

/* ---------- avisos ---------- */

.note {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  margin: 38px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.note-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 3px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--white);
}

.note-label::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border: 1px solid var(--white);
}

.note--warn .note-label::before {
  background: var(--white);
}

.note--advanced {
  border-top-style: dashed;
  border-bottom-style: dashed;
}

.note--advanced .note-label::before {
  border-radius: 50%;
}

.note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.025em;
  color: var(--ash);
}

.note p + p {
  margin-top: 10px;
}

/* ---------- tablas ---------- */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin: 36px 0;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  text-align: left;
}

.tbl caption {
  caption-side: top;
  padding: 0 0 16px;
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: left;
}

.tbl th {
  padding: 15px 14px;
  border-bottom: 1px solid var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--white);
  vertical-align: bottom;
  white-space: nowrap;
}

.tbl td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ash);
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl td:first-child,
.tbl th:first-child {
  padding-left: 0;
}

.tbl td:last-child,
.tbl th:last-child {
  padding-right: 0;
}

.tbl strong {
  color: var(--white);
  font-weight: 500;
}

.tbl .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tbl--light {
  color: var(--carbon);
}

.tbl--light th {
  border-bottom-color: var(--carbon);
  color: var(--carbon);
}

.tbl--light td {
  border-bottom-color: rgba(17, 17, 17, 0.18);
  color: #333;
}

.tbl--light strong {
  color: var(--carbon);
}

.tbl--light tr:last-child td {
  border-bottom: 0;
}

/* ---------- láminas claras ---------- */

.plate {
  width: calc(100vw - var(--sbw, 0px));
  margin: clamp(70px, 9vw, 110px) 0 clamp(70px, 9vw, 110px) calc(50% - (100vw - var(--sbw, 0px)) / 2);
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--fog);
  color: var(--carbon);
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  position: relative;
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px);
  background-size: 100% 28px;
  pointer-events: none;
}

.plate > * {
  position: relative;
}

.plate-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  color: #555;
}

.plate-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--carbon);
}

.plate h3 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--carbon);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: 0.035em;
}

.plate strong {
  color: var(--carbon);
}

.plate .plate-intro {
  max-width: 680px;
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: #444;
}

.plate .table-scroll {
  border-color: rgba(17, 17, 17, 0.35);
}

.plate-note {
  margin: 22px 0 0;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #666;
}

/* ---------- figuras ---------- */

.figure {
  margin: 48px 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(141, 243, 255, 0.035), transparent 55%),
    #050505;
  padding: clamp(14px, 2vw, 26px) clamp(12px, 2.4vw, 30px) 0;
  overflow: hidden;
}

.figure-canvas {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.figure-canvas::-webkit-scrollbar {
  height: 5px;
}

.figure-canvas::-webkit-scrollbar-track {
  background: transparent;
}

.figure-canvas::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}

.figure svg {
  width: 100%;
  min-width: 520px;
  height: auto;
  display: block;
}

.figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 8px;
  padding: 16px 0 17px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.07em;
  color: var(--ash);
}

.figure figcaption .fig-id {
  flex: none;
  margin-right: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.figure figcaption .fig-credit {
  color: rgba(255, 255, 255, 0.58);
}

.svg-label {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 1.15px;
  fill: #cfcfcf;
  text-transform: uppercase;
}

.svg-label--white {
  fill: #ffffff;
}

.svg-label--cyan {
  fill: #8df3ff;
}

.svg-label--dim {
  fill: rgba(255, 255, 255, 0.42);
}

.svg-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
}

.svg-line--strong {
  stroke: rgba(255, 255, 255, 0.9);
}

.svg-line--dim {
  stroke: rgba(255, 255, 255, 0.22);
}

.svg-line--dashed {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-dasharray: 3 4;
}

.svg-line--cyan {
  stroke: #8df3ff;
}

.svg-fill {
  fill: rgba(255, 255, 255, 0.035);
}

.svg-fill--cyan {
  fill: rgba(141, 243, 255, 0.1);
}

/* ---------- taller del slicer ---------- */

.slicer-toc {
  margin: 0 0 46px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slicer-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ash);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.slicer-toc a:nth-child(3n + 1) {
  padding-left: 0;
}

.slicer-toc a:nth-child(3n) {
  border-right: 0;
}

.slicer-toc a:nth-child(3n + 2),
.slicer-toc a:nth-child(3n) {
  border-left: 1px solid var(--line);
}

.slicer-toc a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  opacity: 1;
}

.slicer-toc .st-num {
  flex: none;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
}

.slicer-toc a:hover .st-num {
  color: var(--white);
}

.ui-figure {
  margin: 40px 0;
  border: 1px solid var(--line-2);
  background: #050505;
  position: relative;
}

.ui-figure--wide {
  width: min(1180px, calc(100vw - (var(--gut) * 2)));
  margin-left: calc(50% - (min(1180px, calc(100vw - (var(--gut) * 2))) / 2));
}

.ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.ui-label {
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

.ui-actions {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.ui-btn {
  padding: 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ash);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ui-btn:hover {
  color: var(--white);
  border-color: var(--white);
}

.ui-frame {
  position: relative;
  background: #101010;
  line-height: 0;
  overflow: visible;
}

.ui-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) hue-rotate(180deg) contrast(1.035) brightness(0.96);
}

.ui-figure.show-original .ui-shot,
.ui-figure.is-native .ui-shot {
  filter: none;
}

.ui-figure.is-native .ui-frame {
  background: #0b0b0b;
}

.ui-pin {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
  color: var(--white);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ui-pin:hover,
.ui-pin:focus-visible {
  background: var(--white);
  color: var(--void);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.ui-pin span {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  width: max-content;
  max-width: 210px;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  background: #000;
  color: var(--white);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.ui-pin:hover span,
.ui-pin:focus-visible span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ui-pin--right span {
  left: auto;
  right: 0;
  transform: translateY(3px);
  text-align: right;
}

.ui-pin--right:hover span,
.ui-pin--right:focus-visible span {
  transform: translateY(0);
}

.ui-pin--left span {
  left: 0;
  right: auto;
  transform: translateY(3px);
  text-align: left;
}

.ui-pin--left:hover span,
.ui-pin--left:focus-visible span {
  transform: translateY(0);
}

.ui-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  border-top: 1px solid var(--line);
}

.ui-legend li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--ash);
}

.ui-legend li::before {
  content: none;
}

.reading ol.ui-legend {
  counter-reset: none;
}

.reading ol.ui-legend li {
  counter-increment: none;
  padding: 12px 14px;
}

.reading ol.ui-legend li::before {
  content: none;
  display: none;
}

.ui-legend li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.ui-legend li b {
  color: var(--white);
  font-weight: 500;
}

.ui-legend a {
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ui-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 20px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--ash);
}

.ui-caption .ui-credit {
  color: rgba(255, 255, 255, 0.52);
}

.ui-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin: 36px 0;
}

.ui-grid .ui-figure {
  margin: 0;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0;
  border-top: 1px solid var(--line-2);
}

.param {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
}

.param:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}

.param:nth-child(even) {
  padding-left: 24px;
}

.param h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.035em;
  text-transform: none;
  color: var(--white);
}

.param .val {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ash);
  vertical-align: 2px;
  white-space: nowrap;
}

.param p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ash);
}

.param .cross {
  display: inline-block;
  margin-top: 9px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}

.param .cross:hover {
  border-bottom-color: var(--white);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0;
}

.shot {
  border: 1px solid var(--line);
  background: #050505;
  padding: 7px;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}

.shot figcaption {
  padding-top: 8px;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.shot figcaption b {
  display: block;
  color: var(--white);
  font-weight: 500;
}

.shot--dark img {
  filter: invert(1) hue-rotate(180deg) contrast(1.03) brightness(0.95);
  mix-blend-mode: normal;
}

.shot-row--light {
  background: var(--fog);
  border: 1px solid var(--white);
  padding: 18px;
}

.shot-row--light .shot {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.2);
}

.shot-row--light .shot img,
.shot-row--light .shot--dark img {
  filter: contrast(1.2) saturate(1.15);
  mix-blend-mode: normal;
}

.shot-row--light .shot figcaption {
  color: #555;
}

.shot-row--light .shot figcaption b {
  color: var(--carbon);
}

.layer-compare {
  margin: 38px 0;
  padding: 18px;
  background: var(--fog);
  color: var(--carbon);
  border: 1px solid var(--white);
}

.layer-compare img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.layer-compare figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.25);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #444;
}

.layer-compare figcaption b {
  color: var(--carbon);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.infill-gallery {
  margin: 36px 0 0;
}

.infill-gallery img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.infill-gallery figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(17, 17, 17, 0.28);
  font-size: 10px;
  line-height: 1.7;
  color: #444;
}

.infill-gallery figcaption b {
  color: var(--carbon);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.formula {
  margin: 32px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--fog);
}

.formula strong {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.03em;
  color: var(--white);
}

.formula .formula-note {
  flex-basis: 100%;
  font-family: var(--font);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ash);
}

.table-scroll--dict {
  width: min(1120px, calc(100vw - var(--gut) * 2));
  margin-left: 50%;
  transform: translateX(-50%);
}

.tbl--dict {
  min-width: 760px;
}

.tbl--dict th:nth-child(1) {
  width: 19%;
}

.tbl--dict th:nth-child(2) {
  width: 42%;
}

.tbl--dict th:nth-child(3) {
  width: 25%;
}

.tbl--dict th:nth-child(4) {
  width: 14%;
}

.tbl--dict td {
  font-size: 12px;
  line-height: 1.65;
}

.tbl--dict td:first-child strong {
  font-weight: 500;
}

.lvl {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ash);
}

.lvl--b {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.lvl--i {
  border-style: dashed;
}

.lvl--a {
  border-style: dotted;
  color: rgba(255, 255, 255, 0.55);
}

.dict-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 24px 0 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ash);
}

.dict-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cross-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  margin: 36px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
}

.cross-link span:first-child {
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.cross-link strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white);
}

.cross-link .cross-arrow {
  font-size: 18px;
  color: var(--white);
  transition: transform 0.3s var(--ease);
}

.cross-link:hover {
  opacity: 1;
}

.cross-link:hover .cross-arrow {
  transform: translateX(5px);
}

.index-row--feature {
  margin: 18px 0;
  padding: 30px 20px;
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  background: rgba(255, 255, 255, 0.018);
}

.index-row--feature:hover {
  padding-left: 26px;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line-3);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- fotos ---------- */

.photo {
  margin: 48px 0;
}

.photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  position: relative;
}

.photo-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease);
}

.photo-btn:hover img {
  transform: scale(1.025);
  filter: grayscale(1) contrast(1.08) brightness(1);
}

.photo-btn::after {
  content: "AMPLIAR";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.55);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.photo-btn:hover::after,
.photo-btn:focus-visible::after {
  opacity: 1;
}

.photo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 13px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.photo figcaption .fig-id {
  flex: none;
  margin-right: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.photo figcaption .fig-credit {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

.photo figcaption .fig-credit:hover {
  color: var(--ash);
  opacity: 1;
}

.photo-band {
  width: calc(100vw - var(--sbw, 0px));
  margin: clamp(60px, 8vw, 100px) 0 clamp(60px, 8vw, 100px) calc(50% - (100vw - var(--sbw, 0px)) / 2);
  position: relative;
}

.photo-band .photo-btn {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
}

.photo-band .photo-btn img {
  height: clamp(340px, 64vh, 680px);
  aspect-ratio: auto;
  object-fit: cover;
}

.photo-band .band-tag {
  position: absolute;
  top: 18px;
  left: var(--gut);
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.4);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
}

.photo-band figcaption {
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.photo-band figcaption .fig-id {
  flex: none;
  margin-right: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.photo-band figcaption .fig-credit {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

.photo-band figcaption .fig-credit:hover {
  color: var(--ash);
  opacity: 1;
}

/* ---------- pasos ---------- */

.steps {
  counter-reset: step;
  margin: 38px 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ash);
  padding-top: 4px;
}

.step h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ash);
}

/* ---------- acordeones de diagnóstico ---------- */

.trouble {
  border-bottom: 1px solid var(--line);
}

.trouble:first-of-type {
  border-top: 1px solid var(--line-2);
}

.trouble summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  transition: opacity 0.3s var(--ease), padding 0.4s var(--ease);
}

.trouble summary::-webkit-details-marker {
  display: none;
}

.trouble summary:hover {
  padding-left: 8px;
}

.trouble-num {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--ash);
}

.trouble-title {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.trouble-icon {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: end;
}

.trouble-icon::before,
.trouble-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease);
}

.trouble-icon::after {
  transform: rotate(90deg);
}

.trouble[open] .trouble-icon::after {
  transform: rotate(0deg);
}

.trouble-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 4px 0 32px 62px;
}

.trouble-body h4 {
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 0.19em;
  color: var(--ash);
}

.trouble-body p,
.trouble-body li {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ash);
}

.trouble-body ul,
.trouble-body ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trouble-body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.trouble-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- checklist ---------- */

.checklist {
  margin: 40px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.checklist-head > span {
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--white);
}

.checklist-reset {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--ash);
  transition: color 0.3s var(--ease);
}

.check:last-child {
  border-bottom: 0;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check .box {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.check input:checked + .box {
  background: var(--white);
  border-color: var(--white);
}

.check input:checked + .box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid var(--black, #000);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.check input:focus-visible + .box {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

.check input:checked ~ .check-text {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---------- calculadora ---------- */

.calc-shell {
  width: min(1120px, calc(100vw - var(--sbw, 0px) - (var(--gut) * 2)));
  margin: 44px 0 30px 50%;
  transform: translateX(-50%);
}

.calc-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.calc-toolbar-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.calc-toolbar-note {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.035em;
  color: var(--ash);
}

.calc-modes {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
}

.calc-mode {
  min-height: 36px;
  padding: 9px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ash);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.calc-mode:hover {
  color: var(--white);
}

.calc-mode.is-active {
  background: var(--white);
  color: var(--void);
}

.calc {
  margin: 0;
  border: 1px solid var(--line-2);
  border-top: 0;
  padding: clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%),
    rgba(255, 255, 255, 0.012);
}

.calc [hidden] {
  display: none !important;
}

.calc-fields {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.calc-group {
  min-width: 0;
  margin: 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.calc-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.calc-group legend {
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--white);
}

.calc-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 22px;
}

.calc-field {
  min-width: 0;
}

.calc-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ash);
}

.calc-field label span {
  color: #9a9a9a;
  letter-spacing: 0.06em;
}

.calc-field input,
.calc-field select {
  width: 100%;
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.calc-field input:hover,
.calc-field select:hover {
  border-bottom-color: var(--line-3);
}

.calc-field input:focus,
.calc-field select:focus {
  border-bottom-color: var(--cyan);
}

.calc-field input::placeholder {
  color: #666;
}

.calc-field select {
  padding-right: 20px;
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ash) 50%),
    linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position:
    calc(100% - 8px) calc(50% + 1px),
    calc(100% - 3px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.calc-field select option {
  background: #111;
  color: #fff;
}

.calc-field input::-webkit-outer-spin-button,
.calc-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-time {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.calc-time-part {
  display: flex;
  flex: 1 1 0;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.calc-time-part input {
  min-width: 0;
}

.calc-time-part span {
  flex-shrink: 0;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.calc-hint {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.025em;
  color: #9a9a9a;
}

.calc-simple-note {
  margin: -2px 0 0;
  padding: 14px 16px;
  border-left: 1px solid var(--cyan);
  background: rgba(141, 243, 255, 0.045);
  color: var(--ash);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.025em;
}

.calc-simple-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.calc-simple-head strong {
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calc-simple-note p {
  margin: 7px 0 12px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--ash);
}

.calc-assumptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(141, 243, 255, 0.16);
}

.calc-assumptions li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  line-height: 1.45;
}

.calc-assumptions li::before {
  content: none;
  display: none;
}

.calc-assumptions li span {
  color: var(--ash);
}

.calc-assumptions li b {
  flex-shrink: 0;
  color: var(--white);
  font-weight: 400;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calc-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.calc .calc-noscript {
  margin: 0;
  padding: 12px 14px;
  border-left: 1px solid #ffb37a;
  color: #ffd2ad;
  font-size: 10px;
}

.calc-summary {
  position: sticky;
  top: calc(var(--header) + 18px);
  max-height: calc(100svh - var(--header) - 36px);
  overflow-y: auto;
  padding: clamp(20px, 2.5vw, 26px);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--void);
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

.calc-summary::-webkit-scrollbar {
  width: 6px;
}

.calc-summary::-webkit-scrollbar-thumb {
  background: #3a3a3a;
}

.calc-result-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ash);
}

#calcTotal {
  display: block;
  margin: 10px 0 5px;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.calc-vat-line {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.035em;
  color: var(--cyan);
  white-space: pre-line;
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calc-kpis > div {
  min-width: 0;
  padding: 11px 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calc-kpis span {
  display: block;
  font-size: 7.5px;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ash);
}

.calc-kpis b {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc-summary .calc-kpi-note {
  margin: 8px 0 0;
  color: #9a9a9a;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.calc-bar {
  display: flex;
  height: 6px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.calc-bar > span {
  display: block;
  width: 0;
  height: 100%;
  flex-shrink: 0;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.55);
  transition: width 0.35s var(--ease);
}

.calc-bar [data-calc-bar="material"] { background: #ffffff; }
.calc-bar [data-calc-bar="energy"] { background: #b9f3ff; }
.calc-bar [data-calc-bar="machine"] { background: #8a8a8a; }
.calc-bar [data-calc-bar="labor"] { background: #d4d4d4; }
.calc-bar [data-calc-bar="extras"] { background: #686868; }
.calc-bar [data-calc-bar="failure"] { background: #484848; }
.calc-bar [data-calc-bar="commission"] { background: #2f7f8a; }
.calc-bar [data-calc-bar="profit"] { background: var(--cyan); }

ul.calc-breakdown {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.calc-breakdown li::before {
  content: none;
  display: none;
}

.calc-breakdown li span:first-child {
  color: var(--ash);
}

.calc-breakdown li span:last-child {
  flex-shrink: 0;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.calc-breakdown li.is-profit span {
  color: var(--cyan);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.calc-btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--void);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.calc-btn:hover {
  background: transparent;
  color: var(--white);
}

.calc-btn--ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ash);
}

.calc-btn--ghost:hover {
  border-color: var(--line-3);
  color: var(--white);
}

.calc-btn:focus-visible,
.calc-mode:focus-visible,
.calc-link:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

.calc-summary .calc-copy-note {
  margin: 8px 0 0;
  color: var(--cyan);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.calc-summary .calc-copy-note:empty {
  display: none;
}

.calc-summary .calc-warning {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid #ffb37a;
  background: rgba(255, 179, 122, 0.08);
  color: #ffd2ad;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

p.calc-footnote {
  margin-top: 18px;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--ash);
}

p.calc-print-only {
  display: none;
}

/* ---------- chips y filtros ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.chip {
  padding: 9px 13px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}

.chip.is-active {
  border-color: var(--carbon);
  background: var(--carbon);
  color: var(--fog);
}

.chips--dark .chip {
  border-color: var(--line-2);
  color: var(--ash);
}

.chips--dark .chip:hover {
  border-color: var(--white);
  color: var(--white);
}

.chips--dark .chip.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--void);
}

.filter-note {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #666;
  margin: 0 0 18px;
  text-transform: uppercase;
}

/* ---------- glosario ---------- */

.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.35);
}

.glossary-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 19px 24px 19px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.glossary-item:nth-child(odd) {
  border-right: 1px solid rgba(17, 17, 17, 0.18);
  padding-right: 30px;
}

.glossary-item:nth-child(even) {
  padding-left: 30px;
}

.glossary-letter {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #777;
  padding-top: 3px;
}

.glossary-item h4 {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--carbon);
  text-transform: none;
}

.glossary-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #444;
  letter-spacing: 0.02em;
}

/* ---------- apéndices ---------- */

.appendix {
  padding: clamp(100px, 13vw, 170px) 0 clamp(70px, 9vw, 110px);
  border-top: 1px solid var(--line);
}

.appendix-head {
  width: min(100% - (var(--gut) * 2), var(--read));
  margin: 0 auto clamp(50px, 7vw, 80px);
}

.appendix-head h2 {
  margin: 16px 0 22px;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.045em;
}

.appendix-head p {
  max-width: 620px;
  color: var(--ash);
  font-size: 16px;
  line-height: 1.7;
}

.credits-list {
  margin: 26px 0 34px !important;
  border-top: 1px solid var(--line);
}

.credits-list li {
  padding: 13px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--line);
  font-size: 12px !important;
  line-height: 1.7;
  color: var(--ash);
}

.credits-list li::before {
  display: none;
}

.credits-list a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credits-note {
  font-size: 11px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 84px) 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: clamp(36px, 5vw, 88px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.footer-lockup {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-lockup .brand-mark {
  width: 36px;
  height: 36px;
  margin-top: 3px;
}

.footer-title {
  max-width: 640px;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-title span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ash);
  margin-top: 8px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, auto));
  justify-self: end;
  gap: 12px clamp(28px, 3vw, 52px);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-nav a {
  text-decoration: none;
  color: var(--ash);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-nav button {
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ash);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-align: left;
}

.footer-nav button:hover {
  color: var(--white);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom a {
  color: var(--ash);
  text-decoration: none;
}

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--void);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay[hidden],
.lightbox[hidden] {
  display: none;
}

.overlay-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gut);
  background: var(--void);
  border-bottom: 1px solid var(--line);
}

.overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

.overlay-close:hover {
  color: var(--white);
  opacity: 1;
}

.overlay-close .esc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  border: 1px solid var(--line-2);
  font-size: 8px;
  color: var(--ash);
}

.search-inner {
  width: min(100% - (var(--gut) * 2), 900px);
  margin: clamp(40px, 8vh, 90px) auto 80px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--white);
  padding-bottom: 16px;
}

.search-field svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 200;
  letter-spacing: 0.02em;
  outline: none;
  padding: 0;
}

.search-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::-ms-clear {
  display: none;
}

.search-hint {
  margin: 18px 0 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.search-results {
  margin-top: 40px;
}

.search-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--fog);
}

.search-result:hover {
  opacity: 1;
  padding-left: 8px;
}

.search-result .sr-num {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ash);
  padding-top: 4px;
}

.search-result h4 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--white);
}

.search-result p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--ash);
}

.search-result mark {
  background: var(--white);
  color: var(--void);
  padding: 0 2px;
}

.search-empty {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ash);
  letter-spacing: 0.03em;
}

/* índice overlay */

.overlay-index-inner {
  width: min(100% - (var(--gut) * 2), var(--max));
  margin: clamp(40px, 7vh, 80px) auto 90px;
}

.overlay-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.overlay-index a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.overlay-index a:nth-child(odd) {
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.overlay-index a:nth-child(even) {
  padding-left: 30px;
}

.overlay-index .oi-num {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ash);
}

.overlay-index .oi-title {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
}

.overlay-index a:hover .oi-title {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.oi-note {
  display: flex;
  align-items: center;
  padding: 24px 0 24px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.oi-note kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin: 0 6px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--gut) 40px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: var(--gut);
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

.lightbox-close:hover {
  color: var(--white);
  opacity: 1;
}

.lightbox figure {
  margin: 0;
  width: min(100%, 1300px);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid var(--line-2);
}

.lightbox img.is-ui {
  filter: none;
}

.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--ash);
  text-align: left;
}

.lightbox figcaption a {
  color: var(--ash);
}

/* ---------- revelado ---------- */

.js .reveal {
  transform: translateY(18px);
  transition: transform 1s var(--ease-out);
}

.js .reveal.is-visible {
  transform: none;
}

.reading h3,
.reading h4,
.trouble,
.glossary-item,
.checklist,
.figure,
.photo {
  scroll-margin-top: 100px;
}

.is-target {
  animation: target-flash 1.8s var(--ease) both;
}

@keyframes target-flash {
  0%, 100% { background: transparent; }
  15% { background: rgba(255, 255, 255, 0.07); }
  70% { background: rgba(255, 255, 255, 0.03); }
}

/* ---------- impresión ---------- */

.print-cover {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 18mm 16mm 20mm;
  }

  :root {
    --white: #000;
    --fog: #111;
    --ash: #333;
    --line: rgba(0, 0, 0, 0.22);
    --line-2: rgba(0, 0, 0, 0.4);
    --line-3: rgba(0, 0, 0, 0.7);
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 9.5pt;
    line-height: 1.55;
    letter-spacing: 0.01em;
    overflow: visible;
  }

  .site-header,
  .chapter-rail,
  .progress,
  .hero,
  .skip,
  .overlay,
  .lightbox,
  .hero-actions,
  .checklist-reset,
  .no-print,
  .site-footer .footer-nav {
    display: none !important;
  }

  main {
    display: block;
  }

  .print-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250mm;
    padding: 20mm 0;
    break-after: page;
    border: 1px solid #000;
  }

  .print-cover .pc-inner {
    padding: 0 14mm;
  }

  .print-cover .pc-kicker {
    font-size: 8pt;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #444;
  }

  .print-cover h1 {
    margin: 14mm 0 5mm;
    font-size: 40pt;
    line-height: 1;
    color: #000;
  }

  .print-cover .pc-sub {
    max-width: 120mm;
    font-size: 11pt;
    line-height: 1.6;
    color: #333;
  }

  .print-cover .pc-meta {
    margin-top: 20mm;
    padding-top: 5mm;
    border-top: 1px solid #000;
    display: flex;
    justify-content: space-between;
    gap: 10mm;
    font-size: 7.5pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #444;
  }

  .print-cover .pc-foot {
    padding: 0 14mm;
    font-size: 7pt;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
  }

  .statement,
  .index-gallery,
  .chapter,
  .site-footer {
    width: 100%;
    padding: 0;
  }

  .statement {
    break-after: page;
  }

  .statement-text {
    font-size: 26pt;
    color: #000;
    -webkit-text-stroke: 0;
  }

  .statement-text .outline {
    color: #000;
    -webkit-text-stroke: 0;
  }

  .statement-meta {
    margin-top: 14mm;
  }

  .stat strong {
    color: #000;
  }

  .index-gallery {
    break-after: page;
  }

  .section-head h2 {
    color: #000;
    font-size: 22pt;
  }

  .index-row {
    grid-template-columns: 12mm 1fr 30mm;
    padding: 4mm 0;
    border-color: #bbb;
  }

  .index-main h3 {
    color: #000;
    font-size: 11pt;
  }

  .index-main p,
  .index-meta,
  .index-num,
  .section-head p {
    color: #444;
  }

  .chapter,
  .appendix {
    break-before: page;
  }

  .appendix {
    padding: 0;
    border-top: 0;
  }

  .appendix-head {
    width: 100%;
    margin-bottom: 8mm;
  }

  .appendix-head h2 {
    color: #000;
    font-size: 22pt;
  }

  .appendix-head p {
    color: #333;
  }

  .credits-list {
    border-top-color: #999;
  }

  .credits-list li {
    border-bottom-color: #ccc;
    color: #333;
  }

  .credits-note {
    color: #555;
  }

  .chapter-head,
  .reading {
    width: 100%;
    max-width: none;
  }

  .chapter-head {
    margin-bottom: 8mm;
  }

  .chapter-num {
    color: transparent;
    -webkit-text-stroke: 1px #777;
    font-size: 54pt;
  }

  .chapter-head h2 {
    color: #000;
    font-size: 22pt;
  }

  .chapter-lead,
  .reading p,
  .reading li {
    color: #222;
  }

  .chapter-lead {
    margin-top: 5mm;
    font-size: 11pt;
    line-height: 1.55;
    color: #333;
  }

  .reading .lead {
    font-size: 11pt;
    line-height: 1.6;
    color: #111;
  }

  .reading h3 {
    color: #000;
    font-size: 14pt;
    margin: 7mm 0 3mm;
    padding-top: 3mm;
    border-top-color: #999;
    break-after: avoid;
  }

  .reading h4 {
    color: #000;
  }

  .reading ul li::before {
    border-color: #000;
  }

  .reading ol li::before {
    color: #444;
  }

  .reading blockquote {
    border-left-color: #000;
    color: #000;
  }

  .note {
    border-color: #999;
    break-inside: avoid;
    padding: 4mm 0;
    margin: 5mm 0;
  }

  .note-label,
  .note-label::before {
    color: #000;
    border-color: #000;
  }

  .note p {
    color: #333;
  }

  .table-scroll {
    overflow: visible;
    border-color: #777;
    break-inside: avoid;
    margin: 5mm 0;
  }

  .tbl {
    min-width: 0;
    font-size: 7.5pt;
  }

  .tbl th {
    color: #000;
    border-bottom-color: #000;
    padding: 2.2mm 1.6mm;
  }

  .tbl td {
    color: #222;
    border-bottom-color: #ccc;
    padding: 2.2mm 1.6mm;
  }

  .tbl strong {
    color: #000;
  }

  .plate {
    width: 100%;
    margin: 6mm 0;
    padding: 6mm 0;
    background: #fff;
    color: #000;
    border-color: #000;
    break-inside: avoid;
  }

  .plate::before {
    display: none;
  }

  .plate h3,
  .plate .plate-intro,
  .plate .tbl th,
  .plate .tbl strong {
    color: #000;
  }

  .plate .plate-intro,
  .plate .tbl td,
  .plate-note {
    color: #333;
  }

  .plate .tbl td {
    border-bottom-color: #ccc;
  }

  .figure {
    border-color: #999;
    background: #fff;
    padding: 3mm 3mm 0;
    break-inside: avoid;
    margin: 5mm 0;
  }

  .figure svg {
    min-width: 0;
  }

  .figure figcaption,
  .photo figcaption {
    color: #333;
    border-top-color: #ccc;
  }

  .figure figcaption .fig-id,
  .photo figcaption .fig-id,
  .photo-band figcaption .fig-id {
    color: #000;
  }

  .figure svg .svg-label {
    fill: #444;
  }

  .figure svg .svg-label--white {
    fill: #000;
  }

  .figure svg .svg-label--dim {
    fill: #666;
  }

  .figure svg .svg-label--cyan {
    fill: #006d79;
  }

  .figure svg .svg-line {
    stroke: #666;
  }

  .figure svg .svg-line--strong {
    stroke: #000;
  }

  .figure svg .svg-line--dim {
    stroke: #aaa;
  }

  .figure svg .svg-line--dashed {
    stroke: #999;
  }

  .figure svg .svg-line--cyan {
    stroke: #006d79;
  }

  .figure svg .svg-fill {
    fill: #f1f1f1;
  }

  .figure svg .svg-fill--cyan {
    fill: #e4f7f9;
  }

  .figure svg [stroke^="rgba(255,255,255"] {
    stroke: #777 !important;
  }

  .figure svg [stroke^="rgba(141,243,255"] {
    stroke: #007a88 !important;
  }

  .figure svg [fill^="rgba(255,255,255"] {
    fill: #f3f3f3 !important;
  }

  .figure svg [fill^="rgba(141,243,255"] {
    fill: #e4f7f9 !important;
  }

  .photo,
  .photo-band {
    width: 100%;
    margin: 6mm 0;
    break-inside: avoid;
  }

  .photo-band {
    width: 100%;
    margin-left: 0;
  }

  .photo-band .photo-btn img,
  .photo-btn img {
    width: 100% !important;
    height: auto !important;
    max-height: 110mm !important;
    aspect-ratio: auto;
    object-fit: contain !important;
    background: #fff;
    filter: grayscale(1);
  }

  .photo-band .band-tag {
    display: none;
  }

  .photo-band figcaption {
    width: 100%;
    padding-top: 2mm;
  }

  .photo-btn::after {
    display: none;
  }

  .trouble {
    break-inside: avoid;
    border-color: #ccc;
  }

  .trouble summary {
    padding: 3mm 0;
  }

  .trouble-title {
    color: #000;
  }

  .trouble-num {
    color: #555;
  }

  .trouble-icon {
    display: none;
  }

  .trouble-body {
    display: block !important;
    padding: 0 0 4mm !important;
  }

  .trouble-body > div {
    margin-bottom: 3mm;
  }

  .trouble-body h4 {
    color: #555;
  }

  .trouble-body p,
  .trouble-body li {
    color: #222;
  }

  .trouble-body li::before {
    color: #777;
  }

  details > .trouble-body,
  details > div {
    display: block !important;
  }

  .checklist {
    border-color: #999;
    break-inside: avoid;
  }

  .checklist-head {
    border-bottom-color: #ccc;
  }

  .checklist-head > span,
  .checklist-reset,
  .check {
    color: #222;
  }

  .check {
    border-bottom-color: #ddd;
  }

  .check .box {
    border-color: #000;
  }

  .calc-shell {
    width: 100%;
    margin: 0 0 4mm;
    transform: none;
  }

  .calc-toolbar,
  .calc-modes,
  .calc-actions,
  .calc-copy-note,
  .calc-warning,
  .calc-simple-note,
  .calc-bar,
  .calc-noscript {
    display: none !important;
  }

  p.calc-print-only {
    display: block;
    margin: 2mm 0 0;
    color: #444;
    font-size: 8pt;
    line-height: 1.5;
  }

  .calc {
    display: block;
    padding: 5mm;
    border-color: #999;
    break-inside: auto;
  }

  .calc-fields {
    display: block;
  }

  .calc-group {
    padding: 3mm 0;
    border-top-color: #ccc;
    break-inside: avoid;
  }

  .calc-group:first-child {
    padding-top: 0;
  }

  .calc-group legend {
    margin-bottom: 2.5mm;
    color: #000;
    font-size: 8pt;
    letter-spacing: 0.12em;
  }

  .calc-grid {
    gap: 3mm 6mm;
  }

  .calc-field label {
    margin-bottom: 1mm;
    color: #444;
    font-size: 7pt;
    letter-spacing: 0.1em;
  }

  .calc-field input,
  .calc-field select {
    padding: 1mm 0 1.5mm;
    border-bottom: 0.5pt solid #999;
    color: #000;
    font-size: 13pt;
  }

  .calc-field select {
    background-image: none;
  }

  .calc-hint {
    margin-top: 1mm;
    color: #555;
    font-size: 7pt;
    line-height: 1.4;
  }

  .calc-time-part span {
    color: #555;
  }

  .calc-summary {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 4mm;
    padding: 4mm;
    border-color: #999;
    background: #fff;
    break-inside: avoid;
  }

  .calc-result-label {
    color: #555;
    font-size: 8pt;
  }

  #calcTotal {
    margin: 2mm 0;
    color: #000;
    font-size: 24pt;
  }

  .calc-vat-line {
    color: #333;
    font-size: 8pt;
  }

  .calc-kpis {
    margin-top: 4mm;
    border-color: #ccc;
  }

  .calc-kpis > div {
    padding: 2mm;
    border-color: #ccc;
  }

  .calc-kpis span {
    color: #555;
    font-size: 7pt;
  }

  .calc-kpis b {
    color: #000;
    font-size: 9pt;
  }

  .calc-kpi-note {
    color: #555;
    font-size: 7pt;
  }

  ul.calc-breakdown {
    margin-top: 3mm;
    border-top-color: #ccc;
  }

  .calc-breakdown li {
    padding: 1.2mm 0;
    border-bottom-color: #ddd;
    color: #444;
    font-size: 7.5pt;
  }

  .calc-breakdown li span:first-child {
    color: #444;
  }

  .calc-breakdown li span:last-child,
  .calc-breakdown li.is-profit span {
    color: #000;
  }

  p.calc-footnote {
    color: #444;
    font-size: 8pt;
  }

  .chips {
    display: none;
  }

  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-top-color: #000;
  }

  .glossary-item {
    border-bottom-color: #ccc;
    break-inside: avoid;
  }

  .tbl tr {
    break-inside: avoid;
  }

  .table-scroll--dict {
    break-inside: auto;
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .tbl--dict {
    min-width: 0;
    font-size: 7pt;
  }

  .tbl--dict td {
    font-size: 7pt;
    padding: 1.6mm 1.4mm;
  }

  .lvl {
    border-color: #999;
    color: #000;
    font-size: 6pt;
    padding: 1px 3px;
  }

  .lvl--a {
    color: #555;
  }

  .dict-note {
    border-color: #999;
    color: #444;
  }

  .reading h4 {
    break-after: avoid;
  }

  .glossary-item:nth-child(odd) {
    border-right: 1px solid #ccc !important;
    padding-right: 5mm !important;
  }

  .glossary-item:nth-child(even) {
    padding-left: 5mm !important;
  }

  .glossary-item h4 {
    color: #000;
  }

  .glossary-item p,
  .glossary-letter {
    color: #333;
  }

  .site-footer {
    margin-top: 10mm;
    padding-top: 8mm;
    border-top: 1px solid #000;
  }

  .footer-title,
  .footer-title span,
  .footer-bottom,
  .footer-bottom a {
    color: #222;
  }

  .site-footer .brand-mark g {
    stroke: #000;
  }

  .site-footer .brand-mark circle {
    fill: #000;
  }

  .footer-top {
    padding-bottom: 8mm;
  }

  .reveal,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  .ui-figure {
    border-color: #999;
    background: #fff;
    break-inside: avoid;
    margin: 5mm 0;
  }

  .ui-frame {
    background: #fff;
  }

  .ui-figure--wide {
    width: 100%;
    margin-left: 0;
  }

  .ui-grid {
    display: block;
  }

  .ui-grid .ui-figure {
    margin: 0 0 5mm;
  }

  .ui-grid .ui-figure .ui-shot {
    width: 82mm;
    margin: 0 auto;
  }

  .ui-figure--wide .ui-shot {
    width: 100%;
    margin: 0;
  }

  .ui-bar {
    border-bottom-color: #ccc;
  }

  .ui-actions,
  .ui-pin {
    display: none !important;
  }

  .ui-label,
  .ui-caption,
  .ui-credit,
  .ui-legend li,
  .ui-legend a {
    color: #333;
  }

  .ui-legend {
    border-top-color: #ccc;
  }

  .ui-legend li {
    border-bottom-color: #ccc;
  }

  .ui-legend li:nth-child(odd) {
    border-right-color: #ccc;
  }

  .ui-legend b {
    color: #000;
  }

  .ui-shot {
    filter: none !important;
  }

  .ui-figure.is-native .ui-shot {
    filter: invert(1) hue-rotate(180deg) contrast(0.95) !important;
  }

  .ui-caption {
    border-top-color: #ccc;
  }

  .slicer-toc {
    border-color: #999;
  }

  .slicer-toc a {
    color: #333;
    border-bottom-color: #ddd;
    border-left-color: #ddd;
  }

  .slicer-toc .st-num {
    color: #666;
  }

  .param-grid {
    border-top-color: #999;
  }

  .param {
    border-bottom-color: #ccc;
  }

  .param:nth-child(odd) {
    border-right-color: #ccc;
  }

  .param h4 {
    color: #000;
  }

  .param p {
    color: #333;
  }

  .param .val {
    color: #000;
    border-color: #999;
  }

  .param .cross {
    color: #000;
    border-bottom-color: #999;
  }

  .shot-row {
    break-inside: avoid;
  }

  .shot {
    border-color: #ccc;
    background: #fff;
  }

  .shot img {
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .shot figcaption {
    color: #666;
  }

  .shot figcaption b {
    color: #000;
  }

  .layer-compare {
    background: #fff;
    border-color: #000;
    break-inside: avoid;
  }

  .layer-compare figcaption {
    color: #333;
    border-top-color: #ccc;
  }

  .layer-compare figcaption b {
    color: #000;
  }

  .infill-gallery {
    break-inside: avoid;
  }

  .infill-gallery img {
    mix-blend-mode: normal !important;
    min-width: 0;
  }

  .infill-gallery figcaption {
    color: #333;
    border-top-color: #ccc;
  }

  .infill-gallery figcaption b {
    color: #000;
  }

  .formula {
    border-color: #999;
    color: #222;
  }

  .formula strong {
    color: #000;
  }

  .formula .formula-note {
    color: #444;
  }

  .cross-link {
    border-color: #999;
    color: #000;
  }

  .cross-link span:first-child {
    color: #444;
  }

  .cross-link strong,
  .cross-link .cross-arrow {
    color: #000;
  }

  .index-row--feature {
    border-color: #000;
    background: #fff;
  }

  .feature-tag {
    border-color: #000;
    color: #000;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .chapter-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 68px;
    --fs-body: 16px;
  }

  .slicer-toc {
    grid-template-columns: 1fr;
  }

  .slicer-toc a,
  .slicer-toc a:nth-child(3n + 1),
  .slicer-toc a:nth-child(3n + 2),
  .slicer-toc a:nth-child(3n) {
    padding-left: 0;
    border-left: 0;
    border-right: 0;
  }

  .ui-grid,
  .param-grid,
  .ui-legend {
    grid-template-columns: 1fr;
  }

  .ui-legend li:nth-child(odd),
  .param:nth-child(odd) {
    border-right: 0;
  }

  .param:nth-child(odd),
  .param:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .param {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .ui-bar {
    flex-wrap: wrap;
  }

  .ui-caption {
    display: block;
  }

  .ui-caption .ui-credit {
    display: block;
    margin-top: 6px;
  }

  .brand-text {
    font-size: 10px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 16px;
  }

  .index-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
  }

  .index-meta {
    grid-column: 2;
    padding-top: 0;
    text-align: left;
  }

  .index-meta span {
    display: inline;
    margin-right: 12px;
  }

  .index-meta span + span::before {
    content: "· ";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.3);
  }

  .trouble-body {
    grid-template-columns: 1fr;
    padding-left: 62px;
    gap: 20px;
  }

  .glossary {
    grid-template-columns: 1fr;
  }

  .glossary-item:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .glossary-item:nth-child(even) {
    padding-left: 0;
  }

  .footer-top {
    display: block;
  }

  .footer-nav {
    width: 100%;
    margin-top: 36px;
    grid-template-columns: repeat(2, minmax(0, 180px));
    justify-content: start;
    justify-self: stretch;
  }

  .overlay-index {
    grid-template-columns: 1fr;
  }

  .overlay-index a:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .overlay-index a:nth-child(even) {
    padding-left: 0;
  }

  .oi-note {
    padding-left: 0;
  }

  .calc {
    grid-template-columns: 1fr;
  }

  .calc-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  :root {
    --gut: 18px;
    --fs-body: 15.5px;
    --fs-h2: 27px;
    --fs-h3: 20px;
    --fs-lead: 18px;
    --tr-body: 0.015em;
  }

  .header-nav {
    gap: 16px;
  }

  .nav-btn--index {
    display: none;
  }

  .nav-btn .kbd {
    display: none;
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .brand-mark {
    width: 21px;
    height: 21px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header) + 54px);
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .hero-sub {
    font-size: 14px;
    letter-spacing: 0.06em;
    margin-top: 20px;
  }

  .cube-wrap {
    --cube-size: min(62vw, 210px);
    margin-top: 36px;
    margin-bottom: 42px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-foot {
    margin-top: 40px;
    font-size: 8px;
  }

  .hero-foot span:last-child {
    display: none;
  }

  .statement {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .statement-text {
    font-size: 27px;
  }

  .statement-meta {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .index-gallery {
    padding-top: 70px;
  }

  .index-row {
    padding: 24px 0;
  }

  .index-main h3 {
    font-size: 17px;
  }

  .index-main p {
    font-size: 12px;
  }

  .chapter {
    padding-top: 80px;
  }

  .chapter-title-row {
    display: block;
  }

  .chapter-num {
    display: block;
    font-size: 56px;
    margin-bottom: 18px;
  }

  .chapter-head {
    margin-bottom: 44px;
  }

  .chapter-lead {
    margin-top: 22px;
  }

  .reading h3 {
    margin-top: 52px;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .note-label::before {
    margin-top: 4px;
  }

  .figure {
    margin-left: calc(var(--gut) * -1);
    margin-right: calc(var(--gut) * -1);
    border-left: 0;
    border-right: 0;
    padding-left: var(--gut);
    padding-right: var(--gut);
  }

  .figure svg {
    min-width: 480px;
  }

  .photo-band .photo-btn img {
    height: 56vh;
  }

  .ui-pin {
    display: none;
  }

  .ui-pin span {
    max-width: 160px;
  }

  .shot-row {
    grid-template-columns: 1fr;
  }

  .infill-gallery {
    overflow-x: auto;
  }

  .infill-gallery img {
    min-width: 900px;
  }

  .slicer-toc a {
    font-size: 11px;
  }

  .photo figcaption,
  .photo-band figcaption,
  .figure figcaption {
    display: block;
  }

  .photo figcaption .fig-credit,
  .photo-band figcaption .fig-credit,
  .figure figcaption .fig-credit {
    display: block;
    margin-top: 5px;
  }

  .photo figcaption .fig-id,
  .photo-band figcaption .fig-id,
  .figure figcaption .fig-id {
    display: block;
    margin: 0 0 5px;
  }

  .trouble summary {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .trouble-body {
    padding-left: 46px;
  }

  .calc {
    gap: 26px;
    padding: 20px 16px;
  }

  .calc-shell {
    margin-top: 32px;
  }

  .calc-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .calc-modes {
    width: 100%;
  }

  .calc-mode {
    flex: 1;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calc-assumptions {
    grid-template-columns: 1fr;
  }

  .calc-simple-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .calc-group {
    padding-top: 20px;
  }

  .calc-summary {
    padding: 18px 16px;
  }

  #calcTotal {
    font-size: clamp(38px, 13vw, 52px);
  }

  .calc-kpis {
    margin-top: 18px;
  }

  .calc-actions {
    flex-direction: column;
  }

  .calc-btn {
    width: 100%;
  }

  p.calc-footnote {
    font-size: 9.5px;
  }

  .overlay-bar {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .search-inner {
    margin-top: 50px;
  }

  .lightbox {
    padding: 70px var(--gut) 30px;
  }

  .lightbox img {
    max-height: 65vh;
  }

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

  .footer-bottom {
    display: block;
  }

  .footer-bottom > span,
  .footer-bottom > a {
    display: block;
    margin-bottom: 8px;
  }
}

@media (max-width: 360px) {
  .nav-btn .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cube {
    animation: none;
    transform: rotateX(-18deg) rotateY(32deg);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-sub,
  .cube-wrap,
  .hero-actions {
    animation: none;
  }
}

/* =========================================================
   Calculadora 2 · presupuestos, G-code y Mi taller
   ========================================================= */

.calc-field--wide {
  grid-column: 1 / -1;
}

.calc-field textarea {
  width: 100%;
  margin: 0;
  padding: 9px 0 11px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}

.calc-field textarea:focus {
  border-bottom-color: var(--cyan);
}

.calc-gcode {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

label.calc-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line-3);
  color: var(--white);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

label.calc-file-btn:hover {
  background: var(--white);
  color: var(--void);
  border-color: var(--white);
}

.calc-gcode-status {
  flex: 1 1 260px;
  color: #9a9a9a;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.calc-quote-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.calc-quote-status .calc-link {
  font-size: 8px;
  white-space: nowrap;
}

.calc-actions {
  margin-top: 10px;
}

.calc-actions--secondary {
  margin-top: 8px;
}

.calc-actions--secondary .calc-btn {
  min-height: 34px;
  font-size: 7.5px;
}

.calc-save-defaults {
  display: block;
  margin-top: 12px;
  font-size: 8px;
  text-align: left;
}

.calc-btn--danger {
  border-color: rgba(255, 154, 122, 0.55);
  color: #ffb39d;
}

.calc-btn--danger:hover {
  background: #ffb39d;
  border-color: #ffb39d;
  color: var(--void);
}

/* ---------- diálogos nativos ---------- */

.app-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--void);
  color: var(--fog);
  overflow-y: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

.app-dialog[open] {
  animation: dialog-in 0.35s var(--ease-out) both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gut);
  border-bottom: 1px solid var(--line);
  background: var(--void);
}

.dialog-head h2 {
  margin-top: 6px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
}

.dialog-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ash);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--white);
}

.dialog-close .esc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  border: 1px solid var(--line-2);
  font-size: 8px;
}

.quote-form {
  width: min(100% - (var(--gut) * 2), 980px);
  margin: 34px auto 70px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.quote-dialog .calc-field input,
.quote-dialog .calc-field select,
.quote-dialog .calc-field textarea,
.workshop-dialog .calc-field input,
.workshop-dialog .calc-field select,
.workshop-dialog .calc-field textarea {
  font-size: 15px;
}

.quote-dialog .calc-field textarea,
.workshop-dialog .calc-field textarea {
  font-size: 13px;
}

.quote-company-note {
  margin: 20px 0 0;
  color: var(--ash);
  font-size: 9px;
  line-height: 1.6;
}

.quote-company-note strong {
  color: var(--white);
  font-weight: 400;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.dialog-actions .calc-btn {
  flex: 0 1 auto;
  min-width: 130px;
}

/* ---------- Mi taller ---------- */

.workshop-dialog {
  padding-bottom: 30px;
}

.workshop-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 var(--gut);
  border-bottom: 1px solid var(--line);
  background: var(--void);
  scrollbar-width: thin;
}

.workshop-tab {
  flex: 0 0 auto;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ash);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.workshop-tab:hover {
  color: var(--white);
}

.workshop-tab.is-active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.workshop-body {
  width: min(100% - (var(--gut) * 2), 1120px);
  margin: 32px auto 60px;
}

.ws-panel[hidden] {
  display: none !important;
}

.ws-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ws-panel-head h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  text-transform: none;
}

.ws-panel-head p {
  margin: 6px 0 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

.ws-form {
  margin-bottom: 28px;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.015);
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ws-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ws-form-actions .calc-btn {
  flex: 0 1 auto;
  min-width: 140px;
}

.ws-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  cursor: pointer;
}

.ws-list {
  display: grid;
  gap: 10px;
}

.ws-empty {
  margin: 18px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

.ws-empty[hidden] {
  display: none !important;
}

.ws-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.ws-card-main {
  min-width: 0;
}

.ws-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
}

.ws-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 7px;
  color: var(--ash);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.ws-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ws-card-total {
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ws-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin-top: 10px;
}

.ws-mini-btn {
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ash);
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.ws-mini-btn:hover {
  border-color: var(--line-3);
  color: var(--white);
}

.ws-mini-btn--danger {
  color: #ffb39d;
  border-color: rgba(255, 154, 122, 0.35);
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  color: var(--ash);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ws-badge--ok {
  border-color: rgba(141, 243, 255, 0.4);
  color: var(--cyan);
}

.ws-badge--warn {
  border-color: rgba(255, 179, 122, 0.55);
  color: #ffd2ad;
}

.ws-badge--danger {
  border-color: rgba(255, 120, 120, 0.55);
  color: #ffb0b0;
}

.ws-logo-preview {
  margin-top: 10px;
}

.ws-logo-preview img {
  display: block;
  max-width: 180px;
  max-height: 80px;
  padding: 5px;
  background: #fff;
  object-fit: contain;
}

.ws-backup {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ws-backup h3 {
  margin: 0;
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ws-backup p {
  margin: 8px 0 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

.ws-backup .ws-form-actions {
  margin-top: 18px;
}

/* ---------- búsqueda 2.0 ---------- */

.search-filters {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.search-filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.search-filter-label {
  width: 42px;
  flex: 0 0 42px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.search-filter {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ash);
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-filter:hover {
  border-color: var(--line-3);
  color: var(--white);
}

.search-filter.is-active {
  border-color: var(--white);
  background: var(--white);
  color: var(--void);
}

.search-recent {
  margin-top: 22px;
}

.search-recent[hidden] {
  display: none !important;
}

.search-recent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.search-recent-head span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.search-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-recent-list button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ash);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.search-recent-list button:hover {
  border-color: var(--line-3);
  color: var(--white);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.search-type,
.search-level {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.55);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-result.is-focused {
  background: rgba(255, 255, 255, 0.055);
  padding-left: 8px;
}

.search-result:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}

.search-count {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- diagnóstico guiado ---------- */

.diag-wizard {
  margin: 38px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(141, 243, 255, 0.035), transparent 35%),
    rgba(255, 255, 255, 0.012);
}

.diag-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.diag-head h4 {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diag-head p {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.diag-wizard .calc-field label {
  font-size: 8px;
}

.diag-wizard .calc-field input,
.diag-wizard .calc-field select {
  font-size: 15px;
  padding: 7px 0 9px;
}

.diag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.diag-results {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.diag-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  color: var(--ash);
  font-size: 9px;
  line-height: 1.5;
}

.diag-results-head strong {
  color: var(--white);
  font-weight: 400;
}

.diag-cards {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.diag-card {
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.diag-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.diag-card h5 {
  margin: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.diag-card p {
  margin: 7px 0 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

.diag-card a {
  display: inline-block;
  margin-top: 9px;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diag-card-num {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.diag-empty {
  margin: 16px 0 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.015em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--ash);
  font-size: 17px;
  font-weight: 200;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: -2px 0 18px;
  color: var(--ash);
  font-size: 12px;
  line-height: 1.75;
}

.faq-item p a {
  color: var(--white);
}

/* ---------- PWA ---------- */

.install-btn[hidden] {
  display: none !important;
}

/* ---------- presupuesto imprimible ---------- */

.quote-print {
  display: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .ws-card {
    grid-template-columns: 1fr;
  }

  .ws-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .calc-gcode {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .calc-file-btn {
    width: 100%;
  }

  .calc-gcode-status {
    flex-basis: auto;
  }

  .calc-quote-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .calc-quote-status .calc-link {
    white-space: normal;
  }

  .dialog-head {
    padding: 18px var(--gut);
  }

  .dialog-head h2 {
    font-size: 24px;
  }

  .dialog-head p {
    font-size: 9px;
  }

  .dialog-close .esc {
    display: none;
  }

  .quote-form {
    margin-top: 24px;
  }

  .quote-grid,
  .ws-grid,
  .diag-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions,
  .ws-form-actions {
    flex-direction: column;
  }

  .dialog-actions .calc-btn,
  .ws-form-actions .calc-btn,
  .ws-file-label {
    width: 100%;
  }

  .workshop-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 var(--gut);
  }

  .workshop-tab {
    flex: 1 0 auto;
    padding: 13px 11px;
    font-size: 7px;
  }

  .workshop-body {
    margin-top: 22px;
  }

  .ws-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ws-form {
    padding: 16px;
  }

  .ws-card {
    padding: 14px;
  }

  .ws-card-actions {
    gap: 4px;
  }

  .diag-head {
    display: block;
  }

  .search-filter-label {
    width: 100%;
    flex-basis: 100%;
  }
}

/* ---------- impresión del presupuesto ---------- */

@media print {
  .app-dialog,
  .quote-print {
    display: none !important;
  }

  body.is-printing-quote {
    background: #fff !important;
    color: #000 !important;
  }

  body.is-printing-quote > * {
    display: none !important;
  }

  body.is-printing-quote > .quote-print {
    display: block !important;
    width: 100%;
    color: #111;
    background: #fff;
  }

  body.is-printing-quote .quote-print {
    display: block !important;
  }

  .qp-sheet {
    width: 100%;
    max-width: 180mm;
    margin: 0 auto;
    color: #111;
    background: #fff;
    font-family: var(--font);
    font-size: 9pt;
    line-height: 1.5;
  }

  .qp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18mm;
    padding-bottom: 8mm;
    border-bottom: 1px solid #111;
  }

  .qp-company {
    display: flex;
    align-items: flex-start;
    gap: 5mm;
  }

  .qp-logo {
    width: 16mm;
    height: 16mm;
    flex: 0 0 16mm;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .qp-logo img,
  .qp-logo svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .qp-company-name {
    margin-bottom: 2mm;
    font-size: 13pt;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .qp-company p {
    margin: 0;
    color: #333;
    font-size: 8pt;
    line-height: 1.45;
  }

  .qp-title {
    flex-shrink: 0;
    text-align: right;
  }

  .qp-title span {
    display: block;
    color: #555;
    font-size: 7pt;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .qp-title strong {
    display: block;
    margin-top: 2mm;
    font-size: 18pt;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .qp-title p {
    margin: 2mm 0 0;
    color: #333;
    font-size: 8pt;
  }

  .qp-client {
    margin: 8mm 0;
    padding: 5mm 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
  }

  .qp-client span {
    display: block;
    color: #555;
    font-size: 7pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .qp-client strong {
    display: block;
    margin-top: 1.5mm;
    font-size: 12pt;
    font-weight: 500;
  }

  .qp-client p {
    margin: 1mm 0 0;
    color: #444;
    font-size: 9pt;
  }

  .qp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5mm;
  }

  .qp-table th,
  .qp-table td {
    padding: 3mm 2mm;
    border-bottom: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
    font-size: 8.5pt;
  }

  .qp-table th {
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    color: #555;
    font-size: 7pt;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .qp-table th:nth-child(2),
  .qp-table th:nth-child(3),
  .qp-table th:nth-child(4),
  .qp-table td:nth-child(2),
  .qp-table td:nth-child(3),
  .qp-table td:nth-child(4) {
    text-align: right;
    white-space: nowrap;
  }

  .qp-totals {
    width: 62mm;
    margin: 6mm 0 0 auto;
    border-top: 1px solid #111;
  }

  .qp-totals div {
    display: flex;
    justify-content: space-between;
    gap: 8mm;
    padding: 2mm 0;
    border-bottom: 1px solid #ddd;
    font-size: 8.5pt;
  }

  .qp-totals span {
    color: #555;
  }

  .qp-totals b {
    font-weight: 500;
  }

  .qp-totals .qp-total {
    border-top: 1px solid #111;
    border-bottom: 0;
    font-size: 11pt;
  }

  .qp-notes,
  .qp-conditions {
    margin-top: 9mm;
    break-inside: avoid;
  }

  .qp-notes h2,
  .qp-conditions h2 {
    margin: 0 0 2mm;
    color: #555;
    font-size: 7pt;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .qp-notes p,
  .qp-conditions p {
    margin: 0;
    color: #333;
    font-size: 8pt;
    line-height: 1.55;
    white-space: pre-line;
  }

  .qp-foot {
    display: flex;
    justify-content: space-between;
    gap: 10mm;
    margin-top: 12mm;
    padding-top: 4mm;
    border-top: 1px solid #ccc;
    color: #666;
    font-size: 7pt;
  }

  body.is-printing-quote .qp-sheet {
    break-inside: avoid;
  }
}

.ws-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.diag-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 1px solid var(--cyan);
  background: rgba(141, 243, 255, 0.045);
  color: var(--ash);
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .ws-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media print {
  .calc-field--gcode,
  .calc-quote-status,
  .calc-save-defaults,
  .diag-wizard {
    display: none !important;
  }
}

.workshop-head {
  position: relative;
}

/* ---------- acceso destacado a Mi taller ---------- */

.nav-btn--workshop {
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(141, 243, 255, 0.36);
  color: var(--cyan);
}

.nav-btn--workshop:hover {
  opacity: 1;
  border-color: var(--cyan);
  background: rgba(141, 243, 255, 0.07);
}

.nav-btn--workshop svg {
  width: 15px;
  height: 15px;
}

.calc-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-workshop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(141, 243, 255, 0.42);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.calc-workshop-btn:hover {
  border-color: var(--cyan);
  background: rgba(141, 243, 255, 0.08);
}

.calc-workshop-btn:focus-visible,
.nav-btn--workshop:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .nav-btn--workshop {
    gap: 6px;
    padding: 6px 7px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .nav-btn--workshop svg {
    width: 14px;
    height: 14px;
  }

  .calc-toolbar-right {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .calc-workshop-btn {
    width: 100%;
  }
}

/* =========================================================
   Página dedicada · Calculadora de presupuesto
   ========================================================= */

.calc-page-main {
  padding-top: calc(var(--header) + 36px);
}

.calc-page-hero {
  padding: 0 0 34px;
}

.calc-page-hero .wrap {
  margin-inline: auto;
}

.calc-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--ash);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.calc-page-back:hover {
  color: var(--white);
}

.calc-page-hero h1 {
  margin-top: 12px;
  font-size: clamp(42px, 6.4vw, 82px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--tr-display);
}

.calc-page-hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
}

.calc-page-hero .lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--fog);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.calc-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 900px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calc-page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.calc-page-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--cyan);
}

.calc-page-calculator {
  padding: 0 var(--gut) 28px;
}

.calc-page-calc {
  width: min(var(--calc-max), 100%);
  margin: 0 auto;
}

.calc-page .calc-shell {
  width: 100%;
  margin: 0;
  transform: none;
}

.calc-page-footnote {
  width: min(var(--calc-max), 100%);
  margin: 16px auto 0;
  color: var(--ash);
  font-size: 9.5px;
}

.calc-page-info {
  padding: 42px 0 90px;
}

.calc-page-info .reading {
  width: min(100% - (var(--gut) * 2), 1040px);
}

.calc-page-info h2 {
  margin: 54px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.calc-page-info h2:first-child {
  margin-top: 0;
}

.calc-page-info .calc-steps {
  margin-top: 20px;
}

.calc-page-info .calc-steps li {
  margin-bottom: 14px;
}

.calc-formula {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 1px solid var(--cyan);
  background: rgba(141, 243, 255, 0.045);
  color: var(--ash);
  font-size: 12px;
  line-height: 1.8;
}

.calc-formula strong {
  color: var(--white);
  font-weight: 400;
}

.calc-page-info .table-scroll {
  margin: 22px 0 30px;
}

.calc-page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 24px;
  border: 1px solid var(--line-2);
}

.calc-page-cta p {
  margin: 0;
  color: var(--ash);
  font-size: 12px;
  line-height: 1.65;
}

.calc-page-cta .btn {
  flex: 0 0 auto;
}

.calc-page .site-footer {
  border-top: 1px solid var(--line);
}

.calc-page .site-footer .wrap {
  width: min(100% - (var(--gut) * 2), var(--calc-max));
}

.anchor-target {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .calc-page-hero h1 {
    font-size: clamp(38px, 8vw, 64px);
  }

  .calc-page-hero .lead {
    max-width: 660px;
  }
}

@media (max-width: 640px) {
  .calc-page-main {
    padding-top: calc(var(--header) + 24px);
  }

  .calc-page-hero {
    padding-bottom: 24px;
  }

  .calc-page-back {
    margin-bottom: 22px;
  }

  .calc-page-hero h1 {
    font-size: clamp(26px, 7.6vw, 40px);
    letter-spacing: 0.025em;
  }

  .calc-page-hero .lead {
    font-size: 15px;
  }

  .calc-page-meta {
    font-size: 7.5px;
  }

  .calc-page-calculator {
    padding-bottom: 18px;
  }

  .calc-page-info {
    padding-top: 30px;
  }

  .calc-page-info h2 {
    margin-top: 42px;
    font-size: 24px;
  }

  .calc-page-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .calc-page-cta .btn {
    width: 100%;
  }
}

/* ---------- teaser de la calculadora en el manual ---------- */

.calc-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: stretch;
  margin: 36px 0 24px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(141, 243, 255, 0.035), transparent 45%),
    rgba(255, 255, 255, 0.012);
}

.calc-teaser-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--cyan);
}

.calc-teaser-copy h4 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.calc-teaser-copy p {
  margin: 15px 0 0;
  color: var(--ash);
  font-size: 12px;
  line-height: 1.75;
}

.calc-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.calc-teaser-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.calc-teaser-label {
  color: var(--ash);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calc-teaser-preview strong {
  display: block;
  margin: 10px 0 3px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.calc-teaser-vat {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.calc-teaser-preview ul {
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.calc-teaser-preview li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  line-height: 1.5;
  color: var(--ash);
}

.calc-teaser-preview li::before {
  content: none;
  display: none;
}

.calc-teaser-preview li b {
  color: var(--white);
  font-weight: 400;
  white-space: nowrap;
}

.calc-teaser-note {
  margin-top: 0;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.7;
}

.calc-teaser-note a {
  color: var(--white);
}

@media (max-width: 640px) {
  .calc-teaser {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .calc-teaser-actions {
    flex-direction: column;
  }

  .calc-teaser-actions .btn {
    width: 100%;
  }
}

@media print {
  .calc-teaser {
    break-inside: avoid;
  }
}

/* =========================================================
   Ajustes de lectura, taller independiente y presets
   ========================================================= */

.calc-page .calc-toolbar-note,
.taller-page .calc-toolbar-note {
  font-size: 11px;
}

.calc-page .calc-field label,
.taller-page .calc-field label {
  font-size: 10px;
  letter-spacing: 0.13em;
}

.calc-page .calc-field input,
.calc-page .calc-field select,
.taller-page .calc-field input,
.taller-page .calc-field select {
  font-size: clamp(21px, 2.1vw, 26px);
}

.calc-page .calc-field textarea,
.taller-page .calc-field textarea {
  font-size: 15px;
}

.calc-page .calc-hint,
.taller-page .calc-hint {
  font-size: 10.5px;
  line-height: 1.6;
}

.calc-page .calc-time-part span {
  font-size: 9px;
}

.calc-page .calc-simple-note p {
  font-size: 11.5px;
}

.calc-page .calc-assumptions li {
  font-size: 10px;
  padding: 8px 0;
}

.calc-page .calc-simple-head strong {
  font-size: 10px;
}

.calc-page .calc-link {
  font-size: 9.5px;
}

.calc-page .calc-mode {
  font-size: 9px;
}

.calc-page .calc-workshop-btn {
  font-size: 9px;
}

.calc-page .calc-result-label {
  font-size: 10px;
}

.calc-page .calc-vat-line {
  font-size: 11px;
}

.calc-page .calc-kpis span {
  font-size: 8.5px;
}

.calc-page .calc-kpis b {
  font-size: 13px;
}

.calc-page .calc-kpi-note {
  font-size: 9px;
}

.calc-page .calc-breakdown li {
  font-size: 10.5px;
  padding: 8px 0;
}

.calc-page .calc-quote-status {
  font-size: 10px;
}

.calc-page .calc-btn {
  font-size: 9px;
  min-height: 42px;
}

.calc-page .calc-actions--secondary .calc-btn {
  font-size: 8.5px;
  min-height: 36px;
}

.calc-page .calc-copy-note,
.calc-page .calc-warning {
  font-size: 10px;
}

.calc-page .calc-footnote {
  font-size: 10.5px;
}

.calc-page .calc-file-btn {
  font-size: 9px;
}

.calc-page .calc-gcode-status {
  font-size: 10px;
}

/* ---------- presets dentro de la calculadora ---------- */

.calc-presets {
  margin: -2px 0 0;
  padding: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.018);
}

.calc-presets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.calc-presets-label {
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calc-presets-note {
  margin: 6px 0 13px;
  color: var(--ash);
  font-size: 10.5px;
  line-height: 1.6;
}

.calc-presets-load,
.calc-presets-save {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.calc-presets-load[hidden] {
  display: none !important;
}

.calc-presets-load > label,
.calc-presets-save > label {
  color: var(--ash);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calc-presets-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.calc-presets-row select,
.calc-presets-row input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 10px 11px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 11px;
  outline: none;
}

.calc-presets-row select {
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ash) 50%),
    linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% + 1px),
    calc(100% - 11px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.calc-presets-row select option {
  background: #111;
  color: #fff;
}

.calc-presets-row select:focus,
.calc-presets-row input:focus {
  border-color: var(--cyan);
}

.calc-presets-row .calc-btn {
  flex: 0 0 auto;
  min-height: 40px;
  font-size: 8px;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--ash);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.calc-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

/* ---------- guía de campos ---------- */

.calc-field-guide {
  padding: 22px 0 80px;
}

.calc-field-guide .reading {
  width: min(100% - (var(--gut) * 2), 1200px);
}

.calc-field-guide h2 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.calc-field-guide > .reading > p {
  max-width: 960px;
  font-size: 14px;
  line-height: 1.8;
}

.calc-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.calc-guide-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.calc-guide-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.calc-guide-card h3 span {
  color: var(--ash);
  font-size: 9.5px;
  font-weight: 300;
}

.calc-guide-card p {
  margin: 0 0 10px;
  color: var(--ash);
  font-size: 12px;
  line-height: 1.7;
}

.calc-guide-card p:last-child {
  margin-bottom: 0;
}

.calc-guide-card strong {
  color: var(--white);
  font-weight: 400;
}

.calc-guide-example {
  padding: 10px 12px;
  border-left: 1px solid var(--cyan);
  background: rgba(141, 243, 255, 0.04);
}

.calc-guide-example span {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calc-guide-example strong {
  white-space: nowrap;
}

.calc-guide-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  color: var(--ash);
  font-size: 12.5px;
  line-height: 1.75;
}

.calc-guide-note strong {
  color: var(--white);
  font-weight: 400;
}

.calc-field-guide h3 {
  margin: 42px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
  text-transform: none;
}

.calc-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.calc-sources li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ash);
  font-size: 11.5px;
  line-height: 1.65;
}

.calc-sources li::before {
  content: none;
  display: none;
}

.calc-sources a {
  color: var(--white);
}

.calc-sources-date {
  margin-top: 14px;
  color: var(--ash);
  font-size: 9.5px;
}

/* ---------- página independiente de Mi taller ---------- */

.taller-main {
  padding-top: calc(var(--header) + 36px);
}

.taller-hero {
  padding: 0 0 30px;
}

.taller-hero h1 {
  margin-top: 12px;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tr-display);
}

.taller-hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
}

.taller-hero .lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--fog);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
}

.taller-page .workshop-page {
  width: min(100% - (var(--gut) * 2), var(--taller-max));
  margin: 0 auto 80px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.012);
}

.taller-page .workshop-tabs {
  position: sticky;
  top: var(--header);
  z-index: 3;
  padding: 0 22px;
  border-top: 0;
  background: var(--void);
}

.taller-page .workshop-body {
  width: 100%;
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
}

.taller-page .ws-panel {
  min-height: 180px;
}

.taller-page .ws-panel-head {
  margin-bottom: 24px;
}

.taller-page .ws-panel-head .calc-btn {
  flex: 0 0 auto;
  min-width: 180px;
  text-decoration: none;
}

.taller-page .workshop-tab {
  font-size: 8.5px;
}

.taller-page .ws-card {
  background: rgba(255, 255, 255, 0.018);
}

.taller-page .ws-form {
  background: rgba(255, 255, 255, 0.018);
}

.taller-page .ws-card-total {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
}

.taller-page .ws-price-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.taller-page .ws-price-line span {
  color: var(--ash);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.taller-page .ws-price-line b {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.taller-page .ws-price-line:first-child b {
  color: var(--ash);
  font-size: 13px;
}

.taller-page .ws-price-line--note b {
  color: var(--ash);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.taller-page .ws-mini-btn {
  font-size: 8px;
  text-decoration: none;
}

.taller-page .ws-backup {
  margin-top: 34px;
}

.taller-page .company-status,
.taller-page .ws-empty {
  font-size: 11px;
}

.taller-page .calc-copy-note {
  font-size: 10px;
}

.taller-page .calc-btn {
  font-size: 9px;
}

.taller-page .ws-file-label {
  text-decoration: none;
}

.taller-page .site-footer .wrap {
  width: min(100% - (var(--gut) * 2), var(--taller-max));
}

@media (max-width: 900px) {
  .calc-page .calc-field input,
  .calc-page .calc-field select,
  .taller-page .calc-field input,
  .taller-page .calc-field select {
    font-size: 20px;
  }

  .calc-guide-grid {
    grid-template-columns: 1fr;
  }

  .taller-page .workshop-tabs {
    top: var(--header);
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 16px;
  }

  .taller-page .workshop-tab {
    flex: 1 0 auto;
  }
}

@media (max-width: 640px) {
  .taller-page .brand-text {
    display: none;
  }

  .taller-page .header-nav {
    gap: 12px;
  }

  .taller-main {
    padding-top: calc(var(--header) + 24px);
  }

  .taller-hero {
    padding-bottom: 22px;
  }

  .taller-hero h1 {
    font-size: clamp(30px, 9vw, 44px);
    letter-spacing: 0.025em;
  }

  .taller-hero .lead {
    font-size: 15px;
  }

  .taller-page .workshop-page {
    width: calc(100% - (var(--gut) * 2));
    border-left: 0;
    border-right: 0;
  }

  .taller-page .workshop-tabs {
    padding: 0 var(--gut);
  }

  .taller-page .workshop-tab {
    padding: 11px 9px;
    font-size: 7.5px;
  }

  .taller-page .workshop-body {
    padding: 18px var(--gut);
  }

  .taller-page .ws-card {
    grid-template-columns: 1fr;
  }

  .taller-page .ws-card-total {
    align-items: flex-start;
    flex-direction: row;
    gap: 18px;
    margin-top: 8px;
  }

  .taller-page .ws-price-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .calc-presets-row {
    flex-direction: column;
  }

  .calc-presets-row .calc-btn {
    width: 100%;
  }

  .calc-field-guide {
    padding-bottom: 50px;
  }

  .calc-field-guide h2 {
    font-size: 25px;
  }

  .calc-guide-card {
    padding: 15px;
  }
}
