.zw-tec {
  background: var(--zw-white);
  color: var(--zw-dark);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.zw-tec__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}

/* Collage escalonado: piezas absolutas sobre un lienzo de proporción fija. */
.zw-tec__puzzle {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  aspect-ratio: 553 / 693;
  --zw-tec-gap: clamp(5px, 1.1vw, 9px);
}

.zw-tec__tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #ececec;
  box-shadow: 0 0 0 var(--zw-tec-gap) var(--zw-white);
}

.zw-tec__puzzle.is-ready .zw-tec__tile {
  opacity: 0;
  will-change: opacity, transform;
}

.zw-tec__puzzle.is-visible .zw-tec__tile {
  animation: zw-puzzle-in 720ms var(--zw-ease) both;
  animation-delay: var(--zw-puzzle-delay, 0ms);
}

@keyframes zw-puzzle-in {
  from {
    opacity: 0;
    transform: var(--zw-puzzle-from, translateY(1rem)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zw-tec__tile--1 {
  --zw-puzzle-from: translateY(-1.2rem) scale(0.985);
  --zw-puzzle-delay: 0ms;
  left: 23.7%;
  top: 0;
  width: 53%;
  height: 41.1%;
  z-index: 1;
}

.zw-tec__tile--2 {
  --zw-puzzle-from: translateX(-1.4rem) scale(0.985);
  --zw-puzzle-delay: 110ms;
  left: 5.6%;
  top: 26.4%;
  width: 50.5%;
  height: 37.1%;
  z-index: 3;
}

.zw-tec__tile--3 {
  --zw-puzzle-from: translateX(1.4rem) scale(0.985);
  --zw-puzzle-delay: 220ms;
  left: 42%;
  top: 41.4%;
  width: 53%;
  height: 40.8%;
  z-index: 2;
}

.zw-tec__tile--4 {
  --zw-puzzle-from: translateY(1.2rem) scale(0.985);
  --zw-puzzle-delay: 330ms;
  left: 11.2%;
  top: 70.7%;
  width: 44.8%;
  height: 29.3%;
  z-index: 4;
}

.zw-tec__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.zw-tec__copy {
  max-width: 32rem;
}

.zw-tec__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.35rem);
}

.zw-tec__eyebrow {
  margin: 0 0 0.35rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.3;
  color: #c73b2e;
}

.zw-tec__title {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--zw-dark);
}

.zw-tec__title-line {
  display: block;
}

.zw-tec__rule {
  display: block;
  width: 7.5rem;
  height: 4px;
  margin-top: 0.85rem;
  background: var(--zw-orange);
  border-radius: 2px;
}

.zw-tec__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.15rem, 2.5vw, 1.45rem);
}

.zw-tec__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
}

.zw-tec__num {
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--zw-orange);
  color: transparent;
  -webkit-text-stroke: 1.35px var(--zw-white);
  paint-order: stroke fill;
  font-family: var(--zw-font-numbers);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  transform-origin: center bottom;
}

@keyframes zw-tec-num-jump {
  0%,
  100% {
    transform: translateY(0);
  }
  32% {
    transform: translateY(-7px);
  }
  54% {
    transform: translateY(0);
  }
  72% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .zw-tec__step:hover .zw-tec__num,
  .zw-tec__step:focus-within .zw-tec__num {
    animation: zw-tec-num-jump 480ms var(--zw-ease);
  }
}

.zw-tec__step-title {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.2;
  color: var(--zw-dark);
}

.zw-tec__step-text {
  margin: 0;
  font-size: clamp(0.92rem, 1.8vw, 0.90rem);
  line-height: 1.45;
  color: #8e8e8e;
}

@media (min-width: 960px) {
  .zw-tec__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .zw-tec__puzzle {
    max-width: none;
  }

  .zw-tec__copy {
    padding-top: 0.35rem;
  }
}

@media (max-width: 959px) {
  .zw-tec__copy {
    max-width: none;
  }
}

@supports not (-webkit-text-stroke: 1px #fff) {
  .zw-tec__num {
    color: var(--zw-white);
    -webkit-text-stroke: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zw-tec__puzzle.is-ready .zw-tec__tile,
  .zw-tec__puzzle.is-visible .zw-tec__tile,
  .zw-tec__step:hover .zw-tec__num,
  .zw-tec__step:focus-within .zw-tec__num {
    animation: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
