/* ───────────────────────── Fuente (OFL, alojada localmente) ───────────────────────── */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
}

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --paper: #e3e6e5;
  --white: #fff;
  --black: #000;
  --red: #e3151d;
  --red-deep: #b30e15;
  --grey: #474c50;
  --rule: #c3c8c7;
  --on-black: #c4c7c9;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 1640px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --section-y: clamp(88px, 11vw, 176px);
  --header-h: 72px;
  --sheet-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 14px 22px -10px rgba(0, 0, 0, 0.28), 0 44px 70px -32px rgba(0, 0, 0, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ───────────────────────── Tipografía ───────────────────────── */
.poster,
.display-1,
.display-2,
.display-3 {
  font-stretch: 62%;
  font-weight: 800;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

.poster {
  font-size: clamp(3.3rem, min(9.5vw, 18svh), 10.6rem);
  line-height: 0.93;
}

.poster span {
  display: block;
}

.display-1 {
  font-size: clamp(3rem, 7.4vw, 8rem);
  line-height: 0.95;
}

.display-2 {
  font-size: clamp(2.9rem, 7vw, 7.6rem);
  line-height: 0.96;
}

.display-3 {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

.lead {
  max-width: 38em;
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.section-lead {
  margin-top: clamp(20px, 2.6vw, 36px);
}

.prose {
  max-width: 41em;
}

.prose > * + * {
  margin-top: 1em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 1.5em;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.02;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.25rem;
  font-weight: 700;
}

.prose ul li {
  position: relative;
  padding-left: 1.2em;
}

.prose ul li + li {
  margin-top: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.6em;
  height: 3px;
  background: var(--red);
}

.prose a {
  color: var(--red-deep);
  font-weight: 600;
}

.prose .numbered {
  counter-reset: item;
}

.prose .numbered li {
  counter-increment: item;
  position: relative;
  padding-left: 1.5em;
}

.prose .numbered li + li {
  margin-top: 0.5em;
}

.prose .numbered li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: -0.14em;
  color: var(--red);
  font-size: 1.45em;
  font-stretch: 62%;
  font-weight: 800;
}

/* ───────────────────────── Botones y enlaces ───────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 5px;
  font: 700 1.1rem/1.15 var(--font);
  font-stretch: 92%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--black);
}

.button-ghost {
  border-color: var(--black);
  color: var(--black);
}

.button-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.button-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1rem;
}

.text-link {
  display: inline-block;
  color: var(--red-deep);
  font-weight: 700;
}

.cross-link {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 44em;
}

.cross-link a {
  color: var(--red-deep);
  font-weight: 700;
}

/* ───────────────────────── Cabecera ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  font-size: 1.7rem;
  font-stretch: 62%;
  font-weight: 800;
  text-decoration: none;
}

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

.nav a:not(.button) {
  font-weight: 500;
  text-decoration: none;
}

.nav a:not(.button):hover,
.nav a[aria-current="page"]:not(.button) {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--black);
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span:first-child {
  top: 15px;
}

.menu-toggle span:last-child {
  top: 26px;
}

.menu-open .menu-toggle span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 3px solid var(--black);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
  }

  .menu-open .nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.15s ease;
  }

  .nav a:not(.button) {
    padding: 12px 0;
    font-size: 1.7rem;
    font-stretch: 62%;
    font-weight: 800;
  }

  .nav .button {
    margin-top: 16px;
    min-height: 56px;
  }
}

/* ───────────────────────── Migas ───────────────────────── */
.breadcrumbs {
  padding-top: 16px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--grey);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
}

/* ───────────────────────── Secciones ───────────────────────── */
.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-top: clamp(48px, 6vw, 80px);
}

.section-white,
.section-tinted {
  background: var(--white);
}

.section-black {
  background: var(--black);
  color: var(--white);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.section-red .button-primary {
  background: var(--black);
}

.section-red .button-primary:hover {
  background: var(--white);
  color: var(--black);
}

.section-red .button-ghost {
  border-color: var(--white);
  color: var(--white);
}

.section-red .button-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.section-red :focus-visible,
.section-black :focus-visible {
  outline-color: var(--white);
}

/* ───────────────────────── Hero: el nudo ───────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(12px, 2vw, 32px);
  overflow: clip;
}

.thread-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero-foot {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(16px, 2vw, 28px);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-knot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: clamp(220px, 20vw, 340px);
  margin-top: clamp(-36px, -1.4vw, -8px);
}

.hero-knot p {
  max-width: 11em;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.98;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

.hero.is-landing .hero-knot p {
  opacity: 1;
}

.thread-tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.thread-tags li {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 10px 6px;
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.14), 0 6px 10px -4px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thread-tags li.is-on {
  opacity: 1;
}

.thread-grip {
  position: absolute;
  top: -24px;
  left: 0;
  z-index: 4;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  background: var(--black);
  color: var(--white);
  font: 700 1.05rem/1 var(--font);
  font-stretch: 92%;
  white-space: nowrap;
  cursor: grab;
  touch-action: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.15s ease;
}

.hero.is-ready .thread-grip {
  opacity: 1;
}

.thread-grip:hover,
.is-pulling .thread-grip {
  background: var(--red);
}

.is-pulling {
  user-select: none;
}

.is-pulling .thread-grip {
  cursor: grabbing;
}

.thread-grip[hidden] {
  display: none;
}

.thread-line {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  height: 40px;
  margin-block: clamp(10px, 1.2vw, 16px);
  padding-inline: var(--gutter);
}

.thread-line li {
  align-self: center;
  padding: 5px 12px 6px;
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.14), 0 6px 10px -4px rgba(0, 0, 0, 0.3);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero.is-landing .thread-line li {
  opacity: 1;
}

.hero.is-landing .thread-line li:nth-child(2) {
  transition-delay: 0.12s;
}

.hero.is-landing .thread-line li:nth-child(3) {
  transition-delay: 0.24s;
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
  }

  .hero-foot {
    display: block;
  }

  .hero-knot {
    justify-content: flex-start;
    height: 300px;
    min-height: 0;
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .thread-tags li:nth-child(n + 7) {
    display: none;
  }

  .thread-tags li {
    font-size: 0.85rem;
  }

  .thread-line {
    padding-inline: 8px;
  }

  .thread-line li {
    padding-inline: 7px;
    font-size: 0.78rem;
  }
}

/* ───────────────────────── Miro: la hoja de observación ───────────────────────── */
.observe {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 64px);
}

.observe-copy > * + * {
  margin-top: 1em;
}

.observe-note {
  padding-top: 1em;
  font-weight: 700;
}

.sheet {
  padding: clamp(20px, 3vw, 44px);
  background: var(--white);
  box-shadow: var(--sheet-shadow);
  transform: rotate(-0.9deg);
}

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 24px;
  padding-bottom: 14px;
  border-bottom: 4px solid var(--black);
}

.sheet-head strong {
  font-size: 1.5rem;
  font-stretch: 62%;
  font-weight: 800;
}

.sheet-head span {
  align-self: end;
  color: var(--grey);
  font-size: 1rem;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
}

.sheet th,
.sheet td {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.sheet th {
  width: 4.2em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--grey);
}

.sheet em {
  display: block;
  color: var(--red-deep);
  font-style: normal;
  font-weight: 700;
}

.sheet .waste span {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

.sheet .waste em {
  margin-top: 4px;
}

.sheet-foot {
  margin-top: 18px;
  font-size: 1.45rem;
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1.12;
}

@media (max-width: 960px) {
  .observe {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────── Encuentro: el 80/20 ───────────────────────── */
#miro {
  padding-bottom: calc(var(--section-y) * 0.6);
}

#encuentro {
  padding-top: calc(var(--section-y) * 0.6);
}

.pareto {
  margin-top: clamp(40px, 5vw, 72px);
}

.pareto-labels {
  display: grid;
  gap: 8px;
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
}

.pareto-labels-top {
  grid-template-columns: 20fr 80fr;
  margin-bottom: 10px;
}

.pareto-labels-bottom {
  grid-template-columns: 80fr 20fr;
  margin-top: 10px;
}

.pareto-labels p:first-child {
  color: var(--red-deep);
}

.pareto-labels p:last-child {
  color: var(--grey);
}

.pareto-svg {
  width: 100%;
  height: clamp(240px, 32vw, 460px);
}

.pareto-svg .vital {
  fill: var(--red);
}

.pareto-svg .rest {
  fill: #7d8386;
}

.pareto-svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.pareto-svg .vital-threads {
  stroke: var(--red);
  stroke-width: 2;
}

.pareto-svg .rest-threads {
  stroke: #7d8386;
  stroke-width: 1;
}

.after-pareto {
  max-width: 38em;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
}

/* ───────────────────────── Quito: lo que puedo hacer ───────────────────────── */
.fix-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: baseline;
  margin-top: clamp(24px, 3vw, 44px);
}

.offers-heading {
  margin-top: clamp(64px, 8vw, 120px);
}

.offers-hint {
  margin-top: 10px;
  font-size: 1.25rem;
}

.offers {
  margin-top: clamp(28px, 3.4vw, 48px);
}

.offer-group {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 8fr);
  gap: 20px clamp(20px, 3vw, 48px);
  padding-block: clamp(24px, 3vw, 40px);
  border-top: 5px solid var(--black);
}

.offer-title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px) clamp(24px, 3.4vw, 56px);
}

.offer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  column-gap: 14px;
  cursor: pointer;
}

.offer input {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin: 1px 0 0;
  border: 3px solid var(--black);
  border-radius: 3px;
  background: var(--white);
  appearance: none;
  cursor: pointer;
}

.offer input:checked {
  border-color: var(--red);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.6 4.6L19 7' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.offer-pain {
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.offer:hover .offer-pain,
.offer input:checked ~ .offer-pain {
  color: var(--red-deep);
}

.offer-fix {
  margin-top: 5px;
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.42;
}

.offers-more {
  padding-top: 24px;
  border-top: 5px solid var(--black);
  font-size: 1.25rem;
}

.offers-more a {
  color: var(--red-deep);
  font-weight: 700;
}

.service-links {
  margin-top: clamp(48px, 6vw, 80px);
}

.service-links h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}

.service-links ul {
  margin-top: 14px;
  border-top: 5px solid var(--black);
}

.service-links li {
  border-bottom: 2px solid var(--black);
}

.service-links a {
  display: block;
  padding-block: 12px;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 700;
  text-decoration: none;
}

.service-links a:hover {
  color: var(--red-deep);
}

.tray {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: var(--black);
  color: var(--white);
}

.tray[hidden] {
  display: none;
}

.tray-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 12px;
}

.tray .button-primary:hover {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 860px) {
  .fix-intro,
  .offer-group,
  .offer-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .tray-inner {
    flex-direction: column;
    align-items: stretch;
    font-size: 1rem;
  }
}

/* ───────────────────────── La cuenta ───────────────────────── */
.calc-title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}

.calc {
  margin-top: 18px;
}

.calc-sentence {
  max-width: 19em;
  font-size: clamp(2.5rem, 6vw, 6.6rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.08;
}

.calc input {
  width: 2em;
  height: 1em;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-stretch: 62%;
  line-height: 1;
  text-align: center;
  vertical-align: 0.02em;
  appearance: textfield;
}

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

.calc-result {
  margin-top: clamp(24px, 3vw, 44px);
  color: var(--black);
  font-size: clamp(3rem, 7.8vw, 8.8rem);
  text-wrap: balance;
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.96;
}

.calc-note {
  max-width: 38em;
  margin-top: 16px;
  font-size: 1.15rem;
}

/* ───────────────────────── Antes se llamaba consultoría ───────────────────────── */
.manifesto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(32px, 4vw, 64px);
}

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

.statement {
  max-width: 17em;
  margin-top: clamp(56px, 8vw, 120px);
  padding-left: clamp(18px, 2.4vw, 36px);
  border-left: 5px solid var(--red);
  font-size: clamp(2.3rem, 5.2vw, 5.6rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.02;
}

@media (max-width: 860px) {
  .manifesto {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────── Conexiones ───────────────────────── */
.links {
  margin-top: clamp(40px, 5vw, 72px);
}

.links-wall {
  position: relative;
}

.links-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.02em 0.42em;
  font-size: clamp(2.5rem, 6.9vw, 7.4rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.1;
}

.links-words span {
  transition: color 0.2s ease;
}

.links-words span.is-linked {
  color: var(--red);
}

.links-thread {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.links-thread path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  filter: drop-shadow(1px 4px 2px rgba(0, 0, 0, 0.22));
}

.links-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(16px, 2vw, 32px);
  margin-top: clamp(32px, 4vw, 56px);
}

.links-picks button {
  display: block;
  align-self: start;
  height: 100%;
  padding: 14px 0 0;
  border: 0;
  border-top: 5px solid var(--black);
  background: none;
  color: var(--grey);
  font: 400 1.05rem/1.4 var(--font);
  text-align: left;
  cursor: pointer;
}

.links-picks strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.links-picks button:hover strong,
.links-picks button[aria-pressed="true"] strong {
  color: var(--red-deep);
}

.links-picks button[aria-pressed="true"] {
  border-top-color: var(--red);
  color: var(--black);
}

.whoami {
  max-width: 38em;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
}

.whoami a {
  color: var(--red-deep);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .links-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .links-picks {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────── La factura que se lee sola ───────────────────────── */
.reader {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 9vw, 150px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

.reader-threads {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.reader-threads path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  filter: drop-shadow(1px 3px 1.5px rgba(0, 0, 0, 0.22));
}

.invoice {
  padding: clamp(20px, 2.6vw, 36px);
  background: var(--white);
  box-shadow: var(--sheet-shadow);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transform: rotate(-0.7deg);
}

.invoice-seller {
  margin-top: 14px;
}

.invoice-word {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}

.invoice-meta {
  margin-top: 24px;
}

.invoice-meta div,
.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 3px;
}

.invoice-meta dt,
.invoice-totals dt {
  color: var(--grey);
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-block: 12px;
  border-block: 2px solid var(--black);
}

.invoice-totals {
  margin-top: 12px;
}

.invoice-total {
  font-size: 1.2rem;
  font-weight: 700;
}

.invoice-total dt {
  color: var(--black);
}

.invoice .is-read {
  background: rgba(227, 21, 29, 0.14);
  box-shadow: 0 0 0 3px rgba(227, 21, 29, 0.14);
}

.reader-fields div {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 12px;
  padding-block: 5px;
  border-bottom: 1px solid var(--rule);
}

.reader-fields dt {
  color: var(--grey);
}

.reader-fields dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.reader-checks {
  margin-top: 20px;
  font-weight: 600;
}

.reader-checks li {
  position: relative;
  padding-left: 1.2em;
}

.reader-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.6em;
  height: 3px;
  background: var(--black);
}

.reader-checks .is-review {
  color: var(--red-deep);
}

.reader-checks .is-review::before {
  background: var(--red);
}

.reader-entry {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.reader-entry caption {
  padding-bottom: 6px;
  font-size: 1.5rem;
  font-stretch: 62%;
  font-weight: 800;
  text-align: left;
}

.reader-entry th {
  border-bottom: 4px solid var(--black);
  font-weight: 700;
  text-align: right;
}

.reader-entry th:first-child,
.reader-entry td:first-child {
  text-align: left;
}

.reader-entry td {
  padding-block: 5px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
}

.reader-output .button {
  margin-top: 20px;
}

/* Solo con JavaScript: lo que aún no se ha leído queda oculto. */
.reader.is-live [data-row]:not(.is-read) dd {
  visibility: hidden;
}

.reader.is-live [data-step]:not(.is-on) {
  visibility: hidden;
}

.reader-note {
  max-width: 44em;
  margin-top: 28px;
  color: var(--grey);
}

.reader-note a {
  color: var(--red-deep);
  font-weight: 700;
}

.ai-uses {
  margin-top: clamp(48px, 6vw, 88px);
}

@media (max-width: 860px) {
  .reader {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .reader-threads {
    display: none;
  }
}

/* ───────────────────────── Si no puedo, te busco a quien pueda ───────────────────────── */
.bridge {
  margin-top: clamp(64px, 8vw, 120px);
}

.bridge .lead {
  margin-top: 16px;
}

.bridge-line {
  position: relative;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-inline: var(--gutter);
}

.bridge-line::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 5px;
  margin-top: -2.5px;
  background: var(--red);
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.2);
}

.bridge-line li {
  position: relative;
  padding: 7px 14px 8px;
  border-radius: 2px;
  background: var(--black);
  color: var(--white);
  font-size: clamp(0.8rem, 1.5vw, 1.15rem);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .bridge-line li {
    padding-inline: 9px;
  }
}

/* ───────────────────────── Proyectos ───────────────────────── */
.case-list {
  margin-top: clamp(40px, 5vw, 72px);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(24px, 4vw, 72px);
  padding-block: clamp(24px, 3vw, 44px);
  border-top: 5px solid var(--black);
}

.case h3 {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}

.case h3 a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: transparent;
  text-underline-offset: 0.12em;
  transition: text-decoration-color 0.15s ease;
}

.case h3 a:hover {
  text-decoration-color: var(--red);
}

.case-context {
  margin-top: 10px;
  color: var(--grey);
}

.case-facts {
  display: grid;
  gap: 12px;
}

.case-facts div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 16px;
}

.case-facts dt {
  font-weight: 700;
}

@media (max-width: 860px) {
  .case {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .case-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ───────────────────────── Pasos ───────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 72px);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: clamp(4.4rem, 8vw, 8rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.9;
  color: var(--red);
}

.steps h3 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.02;
}

.steps p {
  margin-top: 8px;
  color: var(--grey);
}

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

@media (max-width: 520px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.engagements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 48px);
}

.engagement {
  padding-top: 16px;
  border-top: 5px solid var(--black);
}

.engagement h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.02;
}

.engagement > p {
  margin-top: 10px;
}

.engagement .engagement-out {
  color: var(--grey);
}

@media (max-width: 860px) {
  .engagements {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────── Preguntas ───────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.faq details {
  border-bottom: 2px solid var(--black);
}

.faq details:first-child {
  border-top: 5px solid var(--black);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 44px 18px 0;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--red), var(--red)) center / 16px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 16px no-repeat;
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  max-width: 40em;
  padding-bottom: 22px;
}

@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────── Cierre ───────────────────────── */
.poster-final {
  font-size: clamp(3.3rem, 11vw, 12.4rem);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 64px);
}

.promises li {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.promises li + li {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .final-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────── Páginas interiores ───────────────────────── */
.page-hero {
  padding-top: clamp(32px, 5vw, 72px);
}

.page-hero::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--red);
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.2);
}

.page-hero .lead {
  margin-top: 24px;
}

.block-title {
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}

.split-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}

.split-aside-static {
  position: static;
}

.aside-card {
  padding: 24px;
  background: var(--white);
  box-shadow: var(--sheet-shadow);
}

.aside-label {
  font-size: 1rem;
  font-weight: 700;
}

.aside-card h2,
.aside-card h3 {
  margin-top: 4px;
  font-size: 1.7rem;
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.05;
}

.aside-card p:not(.aside-label) {
  margin-top: 10px;
}

.aside-card .button {
  margin-top: 18px;
  width: 100%;
}

.aside-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 8px;
}

.aside-card-dark {
  background: var(--black);
  color: var(--white);
}

.aside-card-dark .button-primary:hover {
  background: var(--white);
  color: var(--black);
}

.aside-card-dark :focus-visible {
  outline-color: var(--white);
}

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

  .split-aside {
    position: static;
  }
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 24px;
  margin-top: 32px;
}

.fact-row dt {
  font-weight: 700;
}

.fact-row dd {
  color: var(--grey);
}

.note-box {
  padding-left: 16px;
  border-left: 5px solid var(--red);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.about-grid:has(.portrait) {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.portrait img {
  width: 100%;
  height: auto;
}

/* Filas de servicios */
.service-rows {
  border-top: 5px solid var(--black);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 20px clamp(24px, 4vw, 72px);
  padding-block: clamp(24px, 3vw, 40px);
  border-bottom: 2px solid var(--black);
}

.service-main h3 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1.02;
}

.service-main > p {
  margin-top: 10px;
  max-width: 36em;
}

.service-main .service-examples {
  color: var(--grey);
}

.service-deliverable p:last-child {
  margin-top: 2px;
}

@media (max-width: 860px) {
  .service-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contacto */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact-form {
  position: relative;
  display: grid;
  gap: clamp(26px, 3vw, 36px);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 60px);
  background: var(--white);
  box-shadow: var(--sheet-shadow);
}

/* El hilo avanza según se rellena el formulario. */
.form-thread {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--red);
  transform: scaleY(var(--filled, 0));
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  .form-thread {
    transition: transform 0.35s ease;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 1.5rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.1;
}

.field-hint,
.field-error,
.form-status {
  font-size: 1rem;
}

.field-hint {
  color: var(--grey);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 13px 14px;
  border: 2px solid var(--black);
  border-radius: 5px;
  background: var(--white);
  color: var(--black);
  font: inherit;
}

.field textarea {
  min-height: 11em;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--red-deep);
}

.field-error {
  color: var(--red-deep);
  font-weight: 700;
}

/* Campo trampa: las personas no lo ven. */
.field-trap {
  position: absolute;
  left: -100vw;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.form-actions .button:disabled {
  background: var(--grey);
  cursor: progress;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--red-deep);
  font-weight: 700;
}

.picked {
  padding-bottom: clamp(22px, 3vw, 30px);
  border-bottom: 2px solid var(--black);
}

.picked h2 {
  font-size: 1.5rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.1;
}

.picked-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--rule);
}

.picked-list button {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red-deep);
  font: 700 1rem/1.3 var(--font);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.picked-hours {
  margin-top: 12px;
  color: var(--grey);
  font-size: 1rem;
}

.form-fallback {
  font-size: 1rem;
  color: var(--grey);
}

.next-steps-light {
  counter-reset: next;
  margin-top: 12px;
}

.next-steps-light li {
  counter-increment: next;
  position: relative;
  padding-left: 30px;
}

.next-steps-light li + li {
  margin-top: 12px;
}

.next-steps-light li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -3px;
  color: var(--red);
  font-size: 1.7rem;
  font-stretch: 62%;
  font-weight: 800;
}

.next-steps-light p {
  color: var(--grey);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.aside-note {
  max-width: 44em;
  margin-top: clamp(32px, 4vw, 56px);
}

.not-found {
  min-height: 60vh;
}

.not-found-lead {
  margin-top: 20px;
}

/* ───────────────────────── Pie ───────────────────────── */
.site-footer {
  padding-top: clamp(48px, 6vw, 80px);
  background: var(--black);
  color: var(--on-black);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
  gap: 32px;
  padding-bottom: 48px;
}

.footer-name {
  color: var(--white);
  font-size: 2.2rem;
  font-stretch: 62%;
  font-weight: 800;
  line-height: 1;
}

.footer-brand p + p {
  margin-top: 8px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 2px solid #3a3d40;
  font-size: 0.95rem;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

/* ───────────────────────── Movimiento reducido ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
