/* KaizenTrick v5.1 — corrección visual basada en la dirección black-washi. */
:root {
  --kt-h1: clamp(3.55rem, 5.15vw, 5.45rem);
  --kt-h2: clamp(2.35rem, 3.7vw, 4.15rem);
  --kt-h3: clamp(1.4rem, 1.35rem + 0.7vw, 2rem);
  --kt-text-lead: clamp(1.05rem, 0.98rem + 0.32vw, 1.23rem);
  --kt-header-height: 75px;
  --container-max: 1320px;
  --gutter: clamp(22px, 3.7vw, 54px);
}

html {
  scroll-padding-top: calc(var(--kt-header-height) + 22px);
}

body {
  overflow-x: clip;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(245, 245, 242, 0.012) 8% 8.06%, transparent 8.06% 91%, rgba(245, 245, 242, 0.01) 91% 91.06%, transparent 91.06%),
    var(--kt-ink-1100);
}

body::before {
  z-index: 0;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(6deg, transparent 0 12px, rgba(245, 245, 242, 0.014) 13px, transparent 14px 28px),
    repeating-linear-gradient(92deg, transparent 0 19px, rgba(245, 245, 242, 0.009) 20px, transparent 21px 41px);
}

.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.container,
.header-inner {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 6, 7, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) auto;
  gap: clamp(18px, 2vw, 30px);
  min-height: 74px;
}

.brand-link {
  width: auto;
  min-width: 0;
  gap: 14px;
  text-decoration: none;
}

.brand-link img {
  width: clamp(172px, 16vw, 218px);
  min-width: 0;
  height: auto;
}

.brand-seal {
  display: inline-flex;
  width: 26px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kt-vermilion-700);
  color: var(--kt-vermilion-400);
  font-family: serif;
  font-size: 0.66rem;
  line-height: 1;
  writing-mode: vertical-rl;
}

.primary-nav ul {
  gap: clamp(14px, 1.65vw, 27px);
}

.primary-nav a,
.header-action,
.menu-toggle {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.header-action {
  min-height: 46px;
  padding: 11px 17px;
  border-color: rgba(245, 245, 242, 0.36);
  background: rgba(17, 32, 28, 0.44);
  font-size: 0.72rem;
}

.header-action::after,
.button::after {
  margin-left: 14px;
  color: var(--kt-jade-200);
  content: "→";
  font-size: 1rem;
  font-weight: 400;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-action:hover::after,
.header-action:focus-visible::after,
.button:hover::after,
.button:focus-visible::after,
.service-index a:hover > span:last-child,
.service-index a:focus-visible > span:last-child {
  transform: translateX(4px);
}

.button.quiet::after {
  margin-left: 10px;
}

.button.primary {
  border-color: var(--kt-jade-button-edge);
  background: var(--kt-jade-button);
  color: var(--kt-paper-50);
}

.header-action:hover,
.button.primary:hover {
  border-color: var(--kt-jade-500);
  background: var(--kt-jade-button-hover);
  color: var(--kt-paper-50);
}

.breadcrumb {
  position: relative;
  z-index: 4;
  padding-top: 18px;
  font-size: 0.66rem;
}

.hero {
  min-height: 610px;
  border-bottom-color: var(--kt-line-medium);
}

.hero-inner {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-height: inherit;
  padding-block: clamp(52px, 6.4vw, 86px);
}

.hero-copy,
.hero-copy.narrow {
  grid-column: 1 / span 7;
  min-width: 0;
}

.hero h1 {
  max-width: 12ch;
  font-weight: 500;
  line-height: 0.91;
}

.hero--home h1 {
  max-width: 15ch;
}

.hero-lead {
  max-width: 55ch;
  margin-top: 24px;
  line-height: 1.5;
}

.hero-actions {
  gap: 20px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  grid-column: 8 / -1;
  min-width: 0;
  min-height: 540px;
  overflow: hidden;
  border-left: 1px solid var(--kt-line-medium);
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  opacity: 0.72;
  filter: contrast(1.14) brightness(0.73) saturate(0.62);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, var(--kt-ink-1100), transparent 35% 82%, rgba(5, 6, 7, 0.7));
}

.hero-visual-label {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 2;
  margin: 0;
  color: var(--kt-mist-200);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.journey {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--kt-line-medium);
  list-style: none;
}

.journey li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--kt-line-soft);
}

.journey li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.journey li span {
  position: static;
  padding: 0;
  color: var(--kt-vermilion-400);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.journey li span::after {
  content: none !important;
}

.journey li strong {
  color: var(--kt-paper-50);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.hero-motif {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48vw, 760px);
  pointer-events: none;
  opacity: 0.44;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 92%, transparent);
}

.hero-motif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(0.63) saturate(0.55);
}

.hero-motif--enso img {
  object-position: center;
  filter: contrast(1.1) brightness(1.08) saturate(0.4);
}

.hero-motif--enso {
  opacity: 0.62;
}

.hero--servicios .hero-copy,
.hero--direccion-creativa-contenido .hero-copy,
.hero--web-conversion .hero-copy,
.hero--datos-software .hero-copy {
  grid-column: 1 / span 8;
}

.hero--plan-scale .hero-copy {
  grid-column: 1 / span 7;
}

.hero-commerce {
  position: relative;
  z-index: 3;
  grid-column: 9 / -1;
  align-self: end;
  padding: 24px 0 26px;
  border-block: 1px solid var(--kt-line-medium);
}

.hero-commerce .price-line {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.hero-commerce .microcopy {
  color: var(--kt-mist-200);
}

.hero--produccion-audiovisual .hero-copy,
.hero--crm-automatizacion .hero-copy {
  grid-column: 4 / -1;
  padding-left: 42px;
  border-left: 1px solid var(--kt-line-medium);
}

.hero--paid-media-medicion .hero-copy {
  grid-column: 2 / span 8;
}

.hero--filosofia .hero-copy {
  grid-column: 1 / span 7;
}

.hero--contacto .hero-copy {
  grid-column: 1 / span 7;
}

.hero--sistema-kaizen {
  --system-header-extent: 75px;
  min-height: calc(100vh - var(--system-header-extent));
  min-height: max(410px, calc(100dvh - var(--system-header-extent)));
  background:
    radial-gradient(circle at 66% 48%, rgba(245, 245, 242, 0.018), transparent 31%),
    var(--kt-ink-1100);
}

.system-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(425px, 0.58fr) minmax(0, 1fr);
  column-gap: clamp(30px, 2.5vw, 38px);
  align-items: center;
  min-height: inherit;
  width: auto;
  max-width: none;
  margin-right: clamp(20px, 2vw, 28px);
  margin-left: clamp(48px, 5vw, 64px);
  padding-block: clamp(42px, 7vh, 76px);
}

.system-hero-copy,
.system-cycle-stage {
  min-width: 0;
}

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

.system-hero-kicker {
  margin: 0 0 17px;
  color: var(--kt-jade-500);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1;
  text-transform: uppercase;
}

.hero--sistema-kaizen .system-hero-title {
  max-width: none;
  color: #e5e4e0;
  font-size: clamp(3.15rem, 4.1vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.88;
}

.system-title-line {
  display: block;
}

.system-title-line:nth-child(1),
.system-title-line:nth-child(2) {
  width: max-content;
  transform: scaleX(0.9);
  transform-origin: left center;
  white-space: nowrap;
}

.system-title-line:last-child::after {
  display: inline-block;
  width: 0.12em;
  height: 0.12em;
  margin-left: -0.11em;
  border-radius: 50%;
  content: "";
  transform: translateY(0.03em);
  background: var(--kt-vermilion-400);
}

.system-hero-rule {
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 24px;
  background: rgba(110, 143, 131, 0.48);
}

.system-hero-lead {
  max-width: 100%;
  margin: 16px 0 0;
  color: rgba(184, 190, 194, 0.8);
  font-size: clamp(0.875rem, 0.82rem + 0.12vw, 0.95rem);
  line-height: 1.55;
}

.system-hero-copy .hero-actions {
  width: max-content;
  max-width: calc(100vw - 96px);
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 24px;
}

.system-hero-copy .button {
  min-height: 48px;
  padding: 9px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.055em;
}

.system-hero-copy .button::after {
  margin-left: 10px;
  font-size: 0.85rem;
}

.system-hero-copy .button.quiet {
  padding-inline: 0;
  border-bottom: 1px solid rgba(110, 143, 131, 0.38);
}

.system-cycle-stage {
  position: relative;
  z-index: 1;
  min-height: 400px;
  margin: 0;
}

.system-cycle-enso {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(52%, 380px);
  height: auto;
  pointer-events: none;
  opacity: 0.5;
  transform: translate(-50%, -51%);
  filter: grayscale(1) brightness(1.48) contrast(1.12);
  -webkit-mask-image: radial-gradient(circle, #000 0 46%, rgba(0, 0, 0, 0.92) 52%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0 46%, rgba(0, 0, 0, 0.92) 52%, transparent 68%);
  mix-blend-mode: screen;
}

.system-cycle-list {
  position: absolute;
  top: 131px;
  right: -2px;
  left: -11px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, 84px);
  justify-content: space-between;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.system-cycle-item {
  position: relative;
  min-width: 0;
  padding-inline: 2px;
  text-align: center;
}

.system-cycle-item:not(:last-child)::after {
  position: absolute;
  top: 64px;
  left: calc(50% + 40px);
  width: 20px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(184, 190, 194, 0.58), rgba(184, 190, 194, 0.36));
}

.system-cycle-index,
.system-cycle-item > strong {
  display: block;
  line-height: 1;
  text-transform: uppercase;
}

.system-cycle-index {
  color: var(--kt-jade-500);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.system-cycle-item > strong {
  margin-top: 6px;
  color: rgba(245, 245, 242, 0.82);
  font-size: clamp(0.7rem, 0.68rem + 0.03vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.system-cycle-icon {
  position: relative;
  display: block;
  width: 56px;
  height: 52px;
  margin: 13px auto 0;
}

.system-cycle-icon i {
  position: absolute;
  display: block;
}

.system-cycle-icon--entender::before,
.system-cycle-icon--entender::after,
.system-cycle-icon--diagnosticar::before,
.system-cycle-icon--diagnosticar::after,
.system-cycle-icon--implementar::before,
.system-cycle-icon--implementar::after,
.system-cycle-icon--medir::before,
.system-cycle-icon--mejorar::before,
.system-cycle-icon--mejorar::after {
  position: absolute;
  content: "";
}

.system-cycle-icon--entender::before {
  top: 8px;
  left: 6px;
  width: 44px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(from 12deg, transparent 0 18deg, rgba(245, 245, 242, 0.96) 27deg 84deg, rgba(245, 245, 242, 0.78) 103deg 206deg, rgba(245, 245, 242, 0.95) 222deg 298deg, rgba(184, 190, 194, 0.48) 320deg 344deg, transparent 350deg);
  filter: drop-shadow(-2px 2px 0 rgba(184, 190, 194, 0.2));
  -webkit-mask: radial-gradient(circle, transparent 0 51%, #000 55% 72%, transparent 77%);
  mask: radial-gradient(circle, transparent 0 51%, #000 55% 72%, transparent 77%);
  transform: rotate(-8deg) scaleX(0.95);
}

.system-cycle-icon--entender::after {
  top: 10px;
  left: 9px;
  width: 39px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from -4deg, transparent 0 26deg, rgba(245, 245, 242, 0.34) 35deg 164deg, transparent 178deg 208deg, rgba(245, 245, 242, 0.48) 218deg 325deg, transparent 340deg);
  -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 63% 68%, transparent 72%);
  mask: radial-gradient(circle, transparent 0 60%, #000 63% 68%, transparent 72%);
  transform: rotate(10deg);
}

.system-cycle-icon--entender i {
  height: 2px;
  border-radius: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 242, 0.68), transparent);
}

.system-cycle-icon--entender i:nth-child(1) {
  top: 12px;
  left: 7px;
  width: 17px;
  transform: rotate(-23deg);
}

.system-cycle-icon--entender i:nth-child(2) {
  right: 4px;
  bottom: 5px;
  width: 14px;
  transform: rotate(-54deg);
}

.system-cycle-icon--entender i:nth-child(3) {
  bottom: 1px;
  left: 15px;
  width: 19px;
  opacity: 0.42;
  transform: rotate(4deg);
}

.system-cycle-icon--diagnosticar::before {
  top: 9px;
  left: 11px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(110, 143, 131, 0.84);
  border-radius: 50%;
  box-shadow:
    inset 2px -1px 0 rgba(175, 199, 188, 0.12),
    0 0 0 1px rgba(175, 199, 188, 0.08);
  transform: rotate(-9deg) scaleX(0.98);
}

.system-cycle-icon--diagnosticar::after {
  top: 36px;
  left: 42px;
  width: 18px;
  height: 4px;
  border-radius: 0 100% 100% 0;
  background: linear-gradient(90deg, rgba(110, 143, 131, 0.84), rgba(175, 199, 188, 0.34) 76%, transparent);
  transform: rotate(48deg);
  transform-origin: left center;
}

.system-cycle-icon--diagnosticar i:nth-child(1) {
  top: 12px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-top: 1px solid rgba(175, 199, 188, 0.38);
  border-radius: 50%;
  transform: rotate(22deg);
}

.system-cycle-icon--diagnosticar i:nth-child(2) {
  top: 38px;
  left: 41px;
  width: 12px;
  height: 1px;
  background: rgba(245, 245, 242, 0.2);
  transform: rotate(48deg);
  transform-origin: left;
}

.system-cycle-icon--diagnosticar i:nth-child(3) {
  display: none;
}

.system-cycle-icon--priorizar i {
  height: 4px;
  border-radius: 45% 55% 50% 42%;
  background:
    linear-gradient(180deg, transparent, rgba(175, 199, 188, 0.26) 24%, transparent 84%),
    linear-gradient(90deg, transparent, rgba(110, 143, 131, 0.92) 11%, rgba(175, 199, 188, 0.7) 72%, transparent 100%);
  box-shadow: 0 2px 0 rgba(31, 56, 52, 0.2);
}

.system-cycle-icon--priorizar i:nth-child(1) {
  top: 20px;
  left: 7px;
  width: 43px;
  transform: rotate(1deg) skewX(-11deg);
}

.system-cycle-icon--priorizar i:nth-child(2) {
  top: 29px;
  left: 11px;
  width: 40px;
  transform: rotate(-1deg) skewX(9deg);
}

.system-cycle-icon--priorizar i:nth-child(3) {
  top: 38px;
  left: 14px;
  width: 37px;
  transform: rotate(1deg) skewX(-7deg);
}

.system-cycle-icon--implementar::before {
  top: 10px;
  left: 29px;
  width: 9px;
  height: 42px;
  border-radius: 60% 36% 55% 42%;
  background: linear-gradient(180deg, transparent, rgba(245, 245, 242, 0.94) 12% 65%, rgba(184, 190, 194, 0.5) 82%, transparent 97%);
  clip-path: polygon(32% 0, 89% 4%, 62% 78%, 23% 100%, 0 96%, 36% 70%);
  transform: rotate(38deg);
}

.system-cycle-icon--implementar::after {
  top: 10px;
  left: 23px;
  width: 2px;
  height: 41px;
  background: linear-gradient(180deg, transparent, rgba(245, 245, 242, 0.42) 18% 78%, transparent);
  transform: rotate(38deg);
}

.system-cycle-icon--implementar i:nth-child(1),
.system-cycle-icon--implementar i:nth-child(2),
.system-cycle-icon--implementar i:nth-child(3) {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(175, 199, 188, 0.38), transparent);
  transform: rotate(38deg);
}

.system-cycle-icon--implementar i:nth-child(1) {
  top: 13px;
  left: 19px;
  height: 34px;
  opacity: 0.2;
}

.system-cycle-icon--implementar i:nth-child(2) {
  display: none;
}

.system-cycle-icon--implementar i:nth-child(3) {
  display: none;
}

.system-cycle-icon--construir::before,
.system-cycle-icon--construir::after {
  position: absolute;
  inset: 5px 8px;
  content: "";
}

.system-cycle-icon--construir::before {
  inset: auto;
  top: 11px;
  left: 8px;
  width: 44px;
  height: 38px;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(184, 190, 194, 0.58) 10px 11px),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(184, 190, 194, 0.5) 10px 11px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.system-cycle-icon--construir::after {
  inset: auto;
  top: 16px;
  left: 15px;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(245, 245, 242, 0.44);
  box-shadow:
    3px 2px 0 -2px rgba(245, 245, 242, 0.3),
    -3px -2px 0 -2px rgba(110, 143, 131, 0.3);
  transform: rotate(1deg);
}

.system-cycle-icon--construir i:nth-child(1) {
  top: 8px;
  left: 27px;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, rgba(245, 245, 242, 0.65) 18% 83%, transparent);
  transform: rotate(2deg);
}

.system-cycle-icon--construir i:nth-child(2) {
  top: 29px;
  left: 6px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 242, 0.62) 18% 83%, transparent);
  transform: rotate(-2deg);
}

.system-cycle-icon--construir i:nth-child(3) {
  top: 12px;
  left: 14px;
  width: 1px;
  height: 34px;
  background: rgba(110, 143, 131, 0.34);
  transform: rotate(-2deg);
}

.system-cycle-icon--medir i {
  bottom: 5px;
  width: 8px;
  background:
    linear-gradient(90deg, rgba(31, 56, 52, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(175, 199, 188, 0.8), rgba(31, 56, 52, 0.65));
  clip-path: polygon(7% 6%, 86% 0, 100% 94%, 17% 100%);
  box-shadow: 2px 0 0 rgba(175, 199, 188, 0.08);
}

.system-cycle-icon--medir::before {
  display: none;
}

.system-cycle-icon--medir i:nth-child(1) {
  left: 9px;
  height: 14px;
}

.system-cycle-icon--medir i:nth-child(2) {
  left: 25px;
  height: 26px;
}

.system-cycle-icon--medir i:nth-child(3) {
  left: 41px;
  height: 39px;
}

.system-cycle-icon--mejorar::before {
  top: 16px;
  left: -2px;
  width: 48px;
  height: 27px;
  border-top: 7px solid rgba(110, 143, 131, 0.9);
  border-radius: 58% 86% 0 0;
  transform: rotate(-34deg) skewX(-7deg);
}

.system-cycle-icon--mejorar::after {
  top: 10px;
  right: 0;
  width: 17px;
  height: 17px;
  border-top: 6px solid rgba(110, 143, 131, 0.9);
  border-right: 6px solid rgba(110, 143, 131, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 68% 100%, 68% 34%, 0 34%);
  transform: rotate(-3deg) skew(-7deg);
}

.system-cycle-icon--mejorar i:nth-child(1) {
  top: 32px;
  left: 1px;
  width: 34px;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(175, 199, 188, 0.35), transparent);
  transform: rotate(-34deg);
}

.system-cycle-icon--mejorar i:nth-child(2),
.system-cycle-icon--mejorar i:nth-child(3) {
  display: none;
}

.system-cycle-item > p {
  max-width: 15ch;
  margin: 12px auto 0;
  color: rgba(184, 190, 194, 0.72);
  font-size: clamp(0.72rem, 0.69rem + 0.05vw, 0.78rem);
  line-height: 1.45;
}

.system-cycle-return {
  position: absolute;
  right: 4.5%;
  bottom: 10px;
  left: 6%;
  z-index: 2;
  height: 35px;
  border-bottom: 1px dashed rgba(110, 143, 131, 0.54);
}

.system-cycle-return::before,
.system-cycle-return::after {
  position: absolute;
  bottom: 0;
  width: 7px;
  height: 36px;
  content: "";
  border-top: 1px solid rgba(110, 143, 131, 0.58);
}

.system-cycle-return::before {
  left: 0;
  border-left: 1px dashed rgba(110, 143, 131, 0.54);
  transform: skewY(-42deg);
  transform-origin: left top;
}

.system-cycle-return::after {
  right: 0;
  border-right: 1px dashed rgba(110, 143, 131, 0.54);
  transform: skewY(42deg);
  transform-origin: right top;
}

.system-cycle-return span {
  position: absolute;
  bottom: -3px;
  left: 50%;
  padding-inline: 16px;
  transform: translateX(-50%);
  background: var(--kt-ink-1100);
  color: rgba(175, 199, 188, 0.64);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.section {
  padding-block: clamp(88px, 8vw, 120px);
}

.section.washi-zone {
  background:
    linear-gradient(90deg, rgba(31, 38, 43, 0.54), transparent 68%),
    repeating-linear-gradient(4deg, rgba(245, 245, 242, 0.013) 0 1px, transparent 1px 7px);
}

.section-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.section-heading,
.section-body,
.footer-lead > *,
.footer-bottom > * {
  min-width: 0;
}

.section-heading {
  grid-column: 1 / span 5;
}

.section-body {
  grid-column: 6 / -1;
}

.section-grid--body-only .section-body {
  grid-column: 1 / -1;
  margin-top: 0;
}

.section-body > * + * {
  margin-top: clamp(32px, 3vw, 48px);
}

.list-heading {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.45rem);
  line-height: 1.18;
}

.list-block > .index-lines {
  margin-top: 0;
}

.section h2 {
  max-width: 16ch;
  line-height: 0.98;
}

.section-body > .prose p,
.section-body > p {
  line-height: 1.62;
}

.section--problema .section-heading {
  grid-column: 1 / span 6;
}

.section--problema .section-body {
  grid-column: 8 / -1;
  padding-top: clamp(12px, 1.5vw, 20px);
}

.section--plan-scale .section-heading,
.section--capacidades .section-heading {
  grid-column: 1 / span 5;
}

.section--plan-scale .section-body,
.section--capacidades .section-body {
  grid-column: 7 / -1;
}

.chapter {
  grid-template-columns: 70px minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(22px, 3vw, 46px);
  padding-block: clamp(26px, 3.3vw, 42px);
}

#sistema-kaizentrick > .container > .lead {
  margin-top: 30px;
}

#sistema-kaizentrick > .container > .lead p {
  margin: 0;
}

#sistema-kaizentrick > .container > .chapter-run {
  margin-top: 44px;
}

#sistema-kaizentrick > .container > .microcopy {
  margin-top: 32px;
}

#cierre .pull-quote + .prose {
  margin-top: 32px;
}

#cierre .section-actions + .footer-signature {
  margin-top: 40px;
}

.chapter-number,
.sequence li::before {
  color: var(--kt-vermilion-400);
}

.index-lines li,
.signal-list li,
.principles li {
  padding-block: 13px;
}

.pull-quote {
  max-width: 22ch;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.media-spread {
  width: min(calc(100% - (2 * var(--gutter))), var(--container-max));
  margin: 54px auto 0;
}

.media-spread figure,
.media-spread figure.offset {
  grid-column: 3 / -1;
}

.media-spread img,
.media-spread video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-spread img {
  filter: contrast(1.08) brightness(0.82) saturate(0.68);
}

.media-spread video {
  object-fit: contain;
  background: var(--kt-ink-1100);
}

.media-spread--produccion-audiovisual figure,
.media-spread--web-conversion figure {
  grid-column: 1 / span 10;
}

.media-spread--paid-media-medicion figure,
.media-spread--datos-software figure {
  grid-column: 4 / -1;
}

figcaption {
  padding-top: 10px;
  border-top: 1px solid var(--kt-line-soft);
}

.home-cases-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px;
  align-items: end;
  margin-bottom: 54px;
}

.home-cases-intro h2 {
  grid-column: 1 / span 6;
}

.home-cases-intro .prose {
  grid-column: 8 / -1;
}

.home-case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
  padding-block: 46px;
  border-top: 1px solid var(--kt-line-medium);
}

.home-case:last-child {
  border-bottom: 1px solid var(--kt-line-medium);
}

.home-case-copy {
  grid-column: 1 / span 5;
}

.home-case-copy > span {
  display: block;
  margin-bottom: 16px;
  color: var(--kt-vermilion-400);
  font-family: var(--serif);
  font-size: 2rem;
}

.home-case-copy h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
}

.home-case-copy h3 a {
  color: inherit;
  background-image: linear-gradient(var(--kt-jade-500), var(--kt-jade-500));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0 1px;
  text-decoration: none;
  transition: color 240ms ease, background-size 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-case-copy h3 a:hover,
.home-case-copy h3 a:focus-visible {
  color: var(--kt-paper-50);
  background-size: 100% 1px;
}

.home-case-copy p {
  color: var(--kt-mist-200);
}

.home-case figure {
  grid-column: 7 / -1;
  margin: 0;
}

.home-case:nth-child(even) .home-case-copy {
  grid-column: 8 / -1;
  order: 2;
}

.home-case:nth-child(even) figure {
  grid-column: 1 / span 6;
  order: 1;
}

.home-case img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.8) saturate(0.68);
}

.service-families {
  border-top: 1px solid var(--kt-line-medium);
}

.service-family {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.55fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--kt-line-medium);
}

.service-family-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.service-family-heading > span {
  color: var(--kt-vermilion-400);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.service-family-heading h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
}

.service-family .service-index {
  border-top: 0;
}

.service-index a {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding-block: 20px;
}

.service-index a strong {
  font-size: clamp(1.45rem, 2.2vw, 2.3rem);
}

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

.terms-ledger p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin: 0;
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--kt-line-soft);
  color: var(--kt-mist-200);
}

.terms-ledger p span {
  color: var(--kt-vermilion-400);
  font-family: var(--serif);
}

.timeline-line {
  position: relative;
  border-top: 1px solid var(--kt-jade-500);
}

.timeline-line::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--kt-jade-200);
}

.timeline-line article {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1.65fr);
  gap: clamp(24px, 4vw, 58px);
  padding-block: 44px;
  border-bottom: 1px solid var(--kt-line-medium);
}

.timeline-line article > span {
  color: var(--kt-vermilion-400);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.8;
}

.timeline-line article h2 {
  max-width: 18ch;
  margin-bottom: 24px;
}

.case-study {
  padding-block: clamp(72px, 8vw, 112px);
}

.case-study .case-intro {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(42px, 7vw, 112px);
}

.case-study .case-media-spread {
  width: 100%;
  margin: clamp(42px, 5vw, 64px) 0 0;
}

.case-media-spread .case-media--medisa-americas {
  grid-column: 1 / -1;
}

.case-media-spread .case-media--legalnet {
  grid-column: 3 / -1;
}

.case-media-spread .case-media--retail-activo {
  grid-column: 1 / span 10;
}

.case-media img {
  object-fit: contain;
  background: var(--kt-ink-1100);
}

.case-study:nth-of-type(even) .case-intro > div:first-child {
  order: 2;
}

.case-study:nth-of-type(even) .case-intro > div:last-child {
  order: 1;
}

.case-intro > div:last-child > .prose + .prose {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--kt-line-soft);
}

.enso-stage img {
  filter: contrast(1.18) brightness(0.78) saturate(0.5);
}

.contact-form-stage {
  padding-block: clamp(92px, 9vw, 138px);
}

.form-layout {
  grid-template-columns: minmax(260px, 0.66fr) minmax(620px, 1.34fr);
  gap: clamp(72px, 8vw, 112px);
}

.form-intro {
  position: sticky;
  top: calc(var(--kt-header-height) + 32px);
}

.form-intro h2 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 4.2vw, 4.15rem);
  line-height: 0.96;
}

.form-intro .lead {
  max-width: 29ch;
  margin: 28px 0 0;
  color: var(--kt-mist-200);
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
  line-height: 1.62;
}

.form-content {
  min-width: 0;
}

.diagnostic-form {
  border-top: 0;
}

.form-section {
  min-inline-size: 0;
  margin: 0;
  padding: clamp(30px, 3vw, 40px) 0 clamp(38px, 4vw, 54px);
  border: 0;
  border-top: 1px solid var(--kt-line-medium);
}

.form-section:last-of-type {
  border-bottom: 1px solid var(--kt-line-medium);
}

.form-section-title {
  display: flex;
  float: left;
  width: 100%;
  gap: 18px;
  align-items: baseline;
  margin: 0;
  padding: 0 0 clamp(24px, 2.5vw, 32px);
  color: var(--kt-paper-50);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.35rem + 0.75vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.form-section-number {
  color: var(--kt-vermilion-400);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.form-section-fields {
  display: grid;
  clear: both;
  gap: clamp(28px, 3vw, 38px);
}

.form-row {
  gap: clamp(20px, 2.2vw, 30px);
  padding-block: 0;
  border-bottom: 0;
}

.form-contact-choice {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-contact-choice > legend {
  padding: 0;
  color: var(--kt-paper-50);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.form-help,
.field-help {
  color: var(--kt-mist-400);
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-help {
  max-width: 58ch;
  margin: 7px 0 18px;
}

.field {
  gap: 10px;
}

.field-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.field .field-heading label {
  color: var(--kt-paper-50);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.field-status {
  flex: 0 0 auto;
  color: var(--kt-jade-200);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--kt-field-border);
  background: rgba(14, 17, 20, 0.42);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  line-height: 1.55;
}

.field--problema textarea {
  min-height: 180px;
}

.field--funcionando textarea {
  min-height: 128px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--kt-field-border-hover);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--kt-jade-200);
  background: rgba(21, 26, 30, 0.58);
  box-shadow: inset 0 0 0 1px var(--kt-jade-200);
}

.field [aria-invalid="true"] {
  border-color: var(--kt-vermilion-400);
  box-shadow: inset 0 0 0 1px var(--kt-vermilion-400);
}

.field-help {
  display: block;
  max-width: 76ch;
}

.consent {
  max-width: 72ch;
  color: var(--kt-mist-200);
  font-size: 0.96rem;
  line-height: 1.55;
}

.consent input[aria-invalid="true"] {
  outline: 2px solid var(--kt-vermilion-400);
  outline-offset: 3px;
}

.form-submit {
  display: flex;
  padding-top: clamp(34px, 4vw, 48px);
}

.error-summary {
  margin: 0 0 30px;
}

.form-success {
  padding-block: clamp(44px, 6vw, 72px);
}

.form-layout[data-form-state="success"] {
  grid-template-columns: 1fr;
}

.form-layout[data-form-state="success"] .form-intro {
  display: none;
}

.form-layout[data-form-state="success"] .form-content {
  width: min(100%, 860px);
}

.site-footer {
  padding-block: 44px 20px;
}

.footer-lead {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
  padding-bottom: 32px;
}

.footer-wordmark {
  width: clamp(236px, 17vw, 280px);
  height: auto;
}

.footer-signature {
  max-width: 22ch;
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  line-height: 1.02;
}

.footer-bottom {
  gap: clamp(28px, 2.5vw, 36px);
  padding-top: 20px;
}

.footer-nav {
  gap: 10px 22px;
}

.footer-legal {
  gap: 2px 18px;
  font-size: 0.64rem;
}

.legal-hero {
  border-bottom: 1px solid var(--kt-line-medium);
}

.legal-hero-inner {
  padding-block: clamp(64px, 7vw, 96px) clamp(56px, 6vw, 80px);
}

.legal-switcher ul,
.legal-index-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal-switcher ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(38px, 5vw, 64px);
}

.legal-switcher a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--kt-mist-400);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-switcher a:hover,
.legal-switcher a:focus-visible,
.legal-switcher a[aria-current="page"] {
  color: var(--kt-paper-50);
}

.legal-switcher a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--kt-jade-500);
  text-underline-offset: 0.55em;
}

.legal-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--kt-paper-50);
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.legal-updated {
  margin: 28px 0 0;
  color: var(--kt-mist-400);
  font-size: 0.78rem;
}

.legal-main {
  padding-block: clamp(72px, 9vw, 128px) clamp(96px, 11vw, 152px);
}

.legal-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.legal-index--desktop {
  position: sticky;
  top: calc(var(--kt-header-height) + 34px);
  grid-column: 1 / span 3;
  max-height: calc(100dvh - var(--kt-header-height) - 68px);
  padding-top: 14px;
  overflow: auto;
  border-top: 1px solid var(--kt-line-medium);
  scrollbar-width: thin;
}

.legal-index-list {
  counter-reset: legal-index;
}

.legal-index-list li {
  counter-increment: legal-index;
}

.legal-index-list a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  min-height: 36px;
  align-items: start;
  padding-block: 8px;
  color: var(--kt-mist-400);
  font-size: 0.72rem;
  line-height: 1.4;
  text-decoration: none;
}

.legal-index-list a::before {
  color: var(--kt-vermilion-400);
  content: counter(legal-index, decimal-leading-zero);
  font-family: var(--serif);
}

.legal-index-list a:hover,
.legal-index-list a:focus-visible {
  color: var(--kt-paper-50);
}

.legal-index-mobile {
  display: none;
}

.legal-document {
  grid-column: 5 / span 7;
  min-width: 0;
  max-width: 76ch;
  color: var(--kt-mist-200);
  font-size: clamp(1rem, 0.98rem + 0.16vw, 1.08rem);
  line-height: 1.72;
}

.legal-section {
  scroll-margin-top: calc(var(--kt-header-height) + 28px);
}

.legal-section + .legal-section {
  padding-top: clamp(38px, 4vw, 54px);
  margin-top: clamp(42px, 5vw, 68px);
  border-top: 1px solid var(--kt-line-soft);
}

.legal-section h2 {
  max-width: 24ch;
  margin: 0 0 24px;
  color: var(--kt-paper-50);
  font-size: clamp(1.85rem, 2.2vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.legal-section h3 {
  max-width: 32ch;
  margin: 38px 0 16px;
  color: var(--kt-paper-50);
  font-size: clamp(1.3rem, 1.5vw, 1.55rem);
  font-weight: 550;
  line-height: 1.15;
}

.legal-document p {
  margin: 0 0 20px;
}

.legal-document ul {
  padding-left: 1.2rem;
  margin: 24px 0 30px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document li::marker {
  color: var(--kt-jade-500);
}

.legal-document strong {
  color: var(--kt-paper-50);
  font-weight: 650;
}

.legal-document a {
  color: var(--kt-paper-50);
  overflow-wrap: anywhere;
  text-decoration-color: rgba(175, 199, 188, 0.65);
}

.legal-document a:hover,
.legal-document a:focus-visible {
  color: var(--kt-jade-200);
  text-decoration-color: currentColor;
}

.legal-document code {
  color: var(--kt-jade-200);
  font-family: var(--sans);
  font-size: 0.92em;
}

.legal-document blockquote {
  padding: 4px 0 4px 24px;
  margin: 34px 0 0;
  border-left: 2px solid var(--kt-vermilion-700);
}

.legal-document blockquote p {
  margin: 0;
  color: var(--kt-paper-50);
  font-family: var(--serif);
  font-size: 1.2em;
  line-height: 1.45;
}

.legal-divider {
  margin: clamp(64px, 7vw, 92px) 0 0;
  border: 0;
  border-top: 1px solid var(--kt-vermilion-700);
}

.legal-divider + .legal-section {
  padding-top: clamp(38px, 4vw, 54px);
  margin-top: 0;
  border-top: 0;
}

.legal-table-scroll {
  width: 100%;
  margin: 34px 0 42px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.legal-table-scroll:focus-visible {
  outline-offset: 6px;
}

.legal-table-scroll table {
  width: max(100%, 50rem);
  border-collapse: collapse;
}

.legal-table-scroll th,
.legal-table-scroll td {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--kt-line-soft);
  text-align: left;
  vertical-align: top;
}

.legal-table-scroll th {
  color: var(--kt-paper-50);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.legal-table-scroll td {
  color: var(--kt-mist-200);
  font-size: 0.94rem;
  line-height: 1.5;
}

.no-script-nav {
  display: none;
}

html[data-motion-ready="true"] [data-reveal] {
  opacity: 1;
  transform: none;
  transition-property: opacity, transform;
  transition-delay: 0ms;
}

html[data-motion-ready="true"] [data-reveal]:not(.is-revealed) {
  opacity: 0;
  will-change: opacity, transform;
}

html[data-motion-ready="true"] [data-reveal="title"] {
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-motion-ready="true"] [data-reveal="title"]:not(.is-revealed) {
  transform: translateY(18px);
}

html[data-motion-ready="true"] [data-reveal="soft"] {
  transition-duration: 480ms;
  transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}

html[data-motion-ready="true"] [data-reveal="line"] {
  transition-duration: 540ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-motion-ready="true"] [data-reveal="line"]:not(.is-revealed) {
  transform: translateX(-12px);
}

html[data-motion-ready="true"] [data-reveal="media"] {
  transform-origin: center;
  transition-duration: 780ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-motion-ready="true"] [data-reveal="media"]:not(.is-revealed) {
  transform: scale(0.985);
}

html[data-motion-ready="true"] [data-reveal="cycle"] {
  transition-duration: 440ms;
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

html[data-motion-ready="true"] [data-reveal="cycle"]:not(.is-revealed) {
  transform: translateY(8px);
}

.reveal-delay-1 { transition-delay: 60ms !important; }
.reveal-delay-2 { transition-delay: 120ms !important; }
.reveal-delay-3 { transition-delay: 180ms !important; }
.reveal-delay-4 { transition-delay: 240ms !important; }
.reveal-delay-5 { transition-delay: 300ms !important; }
.reveal-delay-6 { transition-delay: 360ms !important; }

@media (max-width: 1280px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-action {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: fixed;
    inset: 74px 0 0;
    display: none;
    min-height: calc(100dvh - 74px);
    padding: 28px var(--gutter) 48px;
    overflow-y: auto;
    border-bottom: 0;
    background: rgba(5, 6, 7, 0.98);
  }

  .primary-nav[data-open="true"] {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    justify-content: stretch;
  }

  .primary-nav a {
    display: block;
    padding-block: 14px;
    border-bottom: 1px solid var(--kt-line-soft);
    font-family: var(--serif);
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  .primary-nav a::after {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .no-script-nav {
    display: block;
    grid-column: 1 / -1;
    padding: 0 0 20px;
    border-top: 1px solid var(--kt-line-soft);
  }

  .no-script-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    padding: 14px 0 0;
    margin: 0;
    list-style: none;
  }

  .no-script-nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    color: var(--kt-mist-200);
  }

  .hero-copy,
  .hero-copy.narrow {
    grid-column: 1 / span 7;
  }

  .hero-visual {
    grid-column: 8 / -1;
  }

  .hero--produccion-audiovisual .hero-copy,
  .hero--crm-automatizacion .hero-copy {
    grid-column: 3 / -1;
  }
}

@media (max-width: 1179px) {
  .footer-lead {
    grid-template-columns: minmax(220px, 1fr) minmax(250px, 0.9fr);
    gap: 36px;
  }

  .footer-wordmark {
    width: min(250px, 32vw);
  }

  .footer-signature {
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .form-intro {
    position: static;
    top: auto;
    max-width: 650px;
  }

  .form-intro h2 {
    max-width: 12ch;
  }

  .form-content {
    width: min(100%, 900px);
    margin-left: auto;
  }

  .hero--sistema-kaizen {
    min-height: calc(100vh - var(--system-header-extent));
    min-height: max(410px, calc(100dvh - var(--system-header-extent)));
  }

  .system-hero-inner {
    grid-template-columns: 1fr;
    row-gap: 46px;
    align-content: center;
    padding-block: 52px 48px;
  }

  .system-hero-copy {
    max-width: 640px;
    transform: none;
  }

  .system-title-line:nth-child(1),
  .system-title-line:nth-child(2) {
    width: auto;
    transform: none;
    white-space: normal;
  }

  .system-cycle-stage {
    width: min(100%, 760px);
    min-height: 390px;
    margin-inline: auto;
  }

  .system-cycle-list {
    top: 121px;
  }

  .system-cycle-enso {
    width: min(46%, 350px);
  }
}

@media (max-width: 900px) {
  :root {
    --kt-h1: clamp(3.1rem, 8.5vw, 4.6rem);
  }

  .hero-inner {
    display: block;
    padding-block: 52px 64px;
  }

  .hero:not(.hero--sistema-kaizen) {
    min-height: auto;
  }

  .hero-copy,
  .hero-copy.narrow,
  .hero--produccion-audiovisual .hero-copy,
  .hero--crm-automatizacion .hero-copy {
    max-width: 720px;
    padding-left: 0;
    border-left: 0;
  }

  .hero-visual {
    min-height: 400px;
    margin-top: 42px;
    border-left: 0;
    border-top: 1px solid var(--kt-line-medium);
  }

  .hero-commerce {
    margin-top: 34px;
  }

  .hero-motif {
    top: auto;
    width: 58%;
    height: 52%;
  }

  .section-grid,
  .home-cases-intro,
  .home-case,
  .service-family,
  .case-study .case-intro,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .case-study:nth-of-type(even) .case-intro > div:first-child,
  .case-study:nth-of-type(even) .case-intro > div:last-child {
    order: initial;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    row-gap: 16px;
  }

  .footer-bottom > p {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-meta {
    grid-column: 2;
    grid-row: 1;
  }

  .section-heading,
  .section-body,
  .section--problema .section-heading,
  .section--problema .section-body,
  .section--plan-scale .section-heading,
  .section--plan-scale .section-body,
  .section--capacidades .section-heading,
  .section--capacidades .section-body,
  .home-cases-intro h2,
  .home-cases-intro .prose,
  .home-case-copy,
  .home-case figure,
  .home-case:nth-child(even) .home-case-copy,
  .home-case:nth-child(even) figure {
    grid-column: 1;
  }

  .section-body,
  .section--problema .section-body {
    margin-top: 32px;
    padding-top: 0;
  }

  .section-grid--body-only .section-body {
    margin-top: 0;
  }

  .home-case-copy,
  .home-case figure,
  .home-case:nth-child(even) .home-case-copy,
  .home-case:nth-child(even) figure {
    order: initial;
  }

  .home-case figure {
    margin: 22px 0 0;
  }

  .service-family {
    gap: 22px;
  }

  .terms-ledger {
    grid-template-columns: 1fr;
  }

  .chapter {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .chapter p {
    grid-column: 2;
  }

  .timeline-line article {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .legal-hero-inner {
    padding-block: 54px 58px;
  }

  .legal-switcher ul {
    margin-bottom: 38px;
  }

  .legal-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.65rem, 11vw, 3.8rem);
  }

  .legal-main {
    padding-block: 56px 88px;
  }

  .legal-layout {
    display: block;
  }

  .legal-index--desktop {
    display: none;
  }

  .legal-index-mobile {
    display: block;
    margin-bottom: 56px;
    border-block: 1px solid var(--kt-line-medium);
  }

  .legal-index-mobile summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    color: var(--kt-paper-50);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    list-style-position: inside;
    text-transform: uppercase;
  }

  .legal-index-mobile nav {
    padding-bottom: 18px;
  }

  .legal-index-mobile .legal-index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .legal-document {
    max-width: 72ch;
  }

  .legal-section + .legal-section {
    padding-top: 38px;
    margin-top: 44px;
  }

  .legal-divider {
    margin-top: 58px;
  }

  .legal-divider + .legal-section {
    padding-top: 38px;
  }
}

@media (max-width: 760px) {
  :root {
    --kt-h1: clamp(2.8rem, 12vw, 3.45rem);
    --kt-h2: clamp(2.15rem, 9.5vw, 3.1rem);
    --kt-header-height: 67px;
    --gutter: 20px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-link img {
    width: 142px;
  }

  .brand-seal {
    width: 22px;
    height: 29px;
    font-size: 0.58rem;
  }

  .primary-nav {
    inset: 66px 0 0;
    min-height: calc(100dvh - 66px);
  }

  .breadcrumb {
    display: none;
  }

  .hero-inner {
    padding-block: 46px 54px;
  }

  .hero h1 {
    max-width: 11ch;
    line-height: 0.93;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-visual {
    min-height: 310px;
    margin-top: 38px;
  }

  .hero-visual-label {
    top: 18px;
    right: 18px;
  }

  .journey {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .journey li {
    grid-template-columns: 24px minmax(0, 1fr);
    padding-block: 8px;
  }

  .hero-motif {
    right: -12%;
    width: 86%;
    height: 42%;
    opacity: 0.25;
  }

  .hero--sistema-kaizen {
    --system-header-extent: 67px;
    min-height: calc(100vh - var(--system-header-extent));
    min-height: max(410px, calc(100dvh - var(--system-header-extent)));
  }

  .system-hero-inner {
    width: calc(100% - 40px);
    margin-inline: auto;
    row-gap: 54px;
    align-content: start;
    padding-block: 46px 72px;
  }

  .system-hero-kicker {
    margin-bottom: 16px;
    font-size: 0.64rem;
  }

  .hero--sistema-kaizen .system-hero-title {
    max-width: 8.7em;
    font-size: clamp(2.75rem, 12vw, 3.15rem);
    line-height: 0.9;
  }

  .system-hero-rule {
    margin-top: 22px;
  }

  .system-hero-lead {
    max-width: 100%;
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .system-hero-copy .hero-actions {
    width: auto;
    max-width: none;
    flex-wrap: wrap;
    margin-top: 26px;
  }

  .system-hero-copy .button {
    min-height: 50px;
    padding: 12px 16px;
    font-size: var(--kt-text-xs);
  }

  .system-cycle-stage {
    min-height: auto;
  }

  .system-cycle-enso {
    top: 112px;
    right: -172px;
    left: auto;
    width: 380px;
    opacity: 0.2;
    transform: none;
  }

  .system-cycle-list {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .system-cycle-item {
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    min-height: 92px;
    padding: 18px 0;
    border-top: 1px solid var(--kt-line-soft);
    text-align: left;
  }

  .system-cycle-item:last-child {
    border-bottom: 1px solid var(--kt-line-soft);
  }

  .system-cycle-item:not(:last-child)::after {
    top: 70px;
    left: 68px;
    width: 1px;
    height: calc(100% - 45px);
    background: linear-gradient(180deg, rgba(110, 143, 131, 0.48), rgba(184, 190, 194, 0.16));
    clip-path: none;
  }

  .system-cycle-index {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 4px;
    font-size: 0.68rem;
  }

  .system-cycle-item > strong {
    grid-column: 3;
    grid-row: 1;
    margin-top: 2px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .system-cycle-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 54px;
    margin: 0;
    align-self: center;
  }

  .system-cycle-item > p {
    grid-column: 3;
    grid-row: 2;
    max-width: 39ch;
    margin: 8px 0 0;
    color: var(--kt-mist-400);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .system-cycle-return {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    height: auto;
    margin: 25px 0 0 42px;
    padding-top: 13px;
    border-top: 1px dashed rgba(110, 143, 131, 0.5);
    border-bottom: 0;
  }

  .system-cycle-return::before,
  .system-cycle-return::after {
    display: none;
  }

  .system-cycle-return span {
    position: static;
    display: block;
    padding: 0;
    transform: none;
    background: transparent;
    font-size: 0.64rem;
  }

  .section {
    padding-block: 72px;
  }

  .section-body > * + * {
    margin-top: 32px;
  }

  .section h2 {
    max-width: 18ch;
  }

  .pull-quote {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
  }

  .chapter,
  .sequence li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .media-spread {
    width: calc(100% - (2 * var(--gutter)));
    margin-top: 34px;
  }

  .case-study .case-media-spread {
    width: 100%;
    margin: 34px 0 0;
  }

  .media-spread figure,
  .media-spread figure.offset {
    margin: 0;
  }

  .case-media-spread .case-media--medisa-americas,
  .case-media-spread .case-media--legalnet,
  .case-media-spread .case-media--retail-activo {
    width: 100%;
    margin: 0;
  }

  .home-cases-intro {
    gap: 28px;
    margin-bottom: 32px;
  }

  .home-case {
    gap: 0;
    padding-block: 34px;
  }

  .home-case-copy > span {
    font-size: 1.5rem;
  }

  .home-case-copy h3 {
    font-size: 1.75rem;
  }

  .service-family-heading {
    grid-template-columns: 34px 1fr;
  }

  .service-index a {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .timeline-line article {
    grid-template-columns: 1fr;
  }

  .timeline-line article > span {
    font-size: 4rem;
  }

  .case-study {
    padding-block: 66px;
  }

  .case-study .case-intro {
    gap: 32px;
  }

  .case-intro > div:last-child > .prose + .prose {
    margin-top: 36px;
    padding-top: 28px;
  }

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

  .contact-form-stage {
    padding-block: 72px 84px;
  }

  .form-intro {
    position: static;
    margin-bottom: 0;
  }

  .form-intro h2 {
    font-size: clamp(2.75rem, 13vw, 3.4rem);
  }

  .form-section {
    padding-block: 28px 36px;
  }

  .form-section-title {
    gap: 14px;
    padding-bottom: 24px;
    font-size: 1.55rem;
  }

  .form-section-fields {
    gap: 26px;
  }

  .field-heading {
    align-items: flex-start;
  }

  .field input,
  .field select,
  .field textarea {
    padding-inline: 13px;
  }

  .enso-stage {
    min-height: 560px;
  }

  .site-footer {
    padding-block: 34px 18px;
  }

  .footer-lead {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 24px;
  }

  .footer-wordmark {
    width: min(200px, 64vw);
  }

  .footer-signature {
    max-width: 100%;
    font-size: 1.375rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 18px;
  }

  .footer-bottom > p,
  .footer-navigation,
  .footer-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-meta {
    gap: 10px;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .footer-nav {
    gap: 8px 18px;
    line-height: 1.3;
  }

  .footer-legal {
    gap: 2px 16px;
  }
}

@media (max-width: 420px) {
  .legal-index-mobile .legal-index-list {
    grid-template-columns: 1fr;
  }

  .legal-table-scroll {
    width: calc(100% + 20px);
    padding-right: 20px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 16px;
    letter-spacing: 0.07em;
  }

  .button::after {
    margin-left: 10px;
  }

  .button.quiet {
    width: auto;
    justify-content: flex-start;
  }

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