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

.zw-proceso--has-armado {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.zw-proceso__armado {
  --zw-armado-stage: min(38vh, 320px);
  height: var(--zw-armado-stage);
  /* Sobre la cuña blanca del hero; z-index de la sección evita que la diagonal tape el techo. */
  margin-top: clamp(-48px, -6vw, -24px);
}

.zw-proceso__armado-pin {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.zw-proceso__armado-stage {
  position: relative;
  width: min(100%, calc(var(--zw-armado-stage) * 768 / 408));
  max-width: 720px;
  height: 100%;
}

.zw-proceso__armado-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.zw-proceso--has-armado .zw-proceso__head {
  margin-top: 0;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.zw-proceso__head {
  max-width: 52rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.zw-proceso__title {
  margin: 0;
  font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.zw-proceso__title-accent,
.zw-proceso__title-main {
  display: block;
}

.zw-proceso__title-accent {
  color: var(--zw-orange);
}

.zw-proceso__title-main {
  color: var(--zw-dark);
}

.zw-proceso__rule {
  display: block;
  width: min(100%, 22rem);
  height: 3px;
  margin: 0.85rem auto 1.35rem;
  background: var(--zw-orange);
  border-radius: 2px;
}

.zw-proceso__intro {
  margin: 0 auto;
  max-width: 46rem;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.55;
  color: #7a7a7a;
}

.zw-proceso__gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
}

.zw-proceso__carousel-controls {
  display: none;
}

.zw-proceso__carousel-dot {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.zw-proceso__carousel-dot:focus-visible,
.zw-proceso__gallery:focus-visible {
  outline: 2px solid var(--zw-orange);
  outline-offset: 3px;
}

.zw-proceso__card {
  margin: 0;
  min-width: 0;
}

.zw-proceso__media {
  position: relative;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: #ececec;
}

.zw-proceso__photo,
.zw-proceso__photo-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms var(--zw-ease);
}

@keyframes zw-proceso-photo-whoosh {
  0% {
    transform: translateX(-22%);
    filter: blur(14px);
    opacity: 0.4;
  }
  58% {
    transform: translateX(4%);
    filter: blur(5px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    filter: blur(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .zw-proceso__card.is-whoosh .zw-proceso__photo,
  .zw-proceso__card.is-whoosh .zw-proceso__photo-fallback {
    animation: zw-proceso-photo-whoosh 720ms var(--zw-ease) both;
    transition: none;
    will-change: transform, filter;
    backface-visibility: hidden;
  }
}

.zw-proceso__photo-fallback {
  background: linear-gradient(160deg, #ddd 0%, #c8c8c8 100%);
}

.zw-proceso__overlay {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(
    180deg,
    rgba(242, 107, 33, 0) 0%,
    rgba(242, 107, 33, 0.55) 38%,
    var(--zw-orange) 100%
  );
  pointer-events: none;
  transition: height 420ms var(--zw-ease);
}

.zw-proceso__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.85rem, 2vw, 1.15rem);
  margin: 0;
  padding: 0 0.65rem;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.15;
  text-align: center;
  color: var(--zw-white);
  text-transform: lowercase;
  z-index: 1;
  transform: translateY(0);
  transition: transform 420ms var(--zw-ease);
}

.zw-proceso__card:hover .zw-proceso__label,
.zw-proceso__card:focus-within .zw-proceso__label {
  transform: translateY(-1.15rem);
}

.zw-proceso__card:hover .zw-proceso__overlay,
.zw-proceso__card:focus-within .zw-proceso__overlay {
  height: 68%;
}

.zw-proceso__card:hover:not(.is-whoosh) .zw-proceso__photo,
.zw-proceso__card:focus-within:not(.is-whoosh) .zw-proceso__photo {
  transform: scale(1.04);
}

@media (min-width: 960px) {
  .zw-proceso__armado {
    --zw-armado-stage: min(42vh, 380px);
    margin-top: clamp(-56px, -5vw, -32px);
  }
}

@media (max-width: 959px) {
  .zw-proceso__carousel {
    margin-inline: -1rem;
  }

  .zw-proceso__gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    padding-inline: 1rem;
    scrollbar-width: none;
  }

  .zw-proceso__gallery::-webkit-scrollbar {
    display: none;
  }

  .zw-proceso__carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
  }

  .zw-proceso__carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .zw-proceso__carousel-dot {
    width: 0.52rem;
    height: 0.52rem;
    padding: 0;
    border-radius: 50%;
    background: #d2d2d2;
    transition: transform 220ms var(--zw-ease), background-color 220ms var(--zw-ease);
  }

  .zw-proceso__carousel-dot.is-active {
    background: var(--zw-orange);
    transform: scale(1.35);
  }

  .zw-proceso__card {
    flex: 0 0 min(42vw, 11.5rem);
    scroll-snap-align: start;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .zw-proceso__card {
    flex-basis: min(28vw, 10.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zw-proceso__gallery {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .zw-proceso__photo,
  .zw-proceso__overlay,
  .zw-proceso__label,
  .zw-proceso__carousel-dot {
    transition: none;
    animation: none;
    filter: none;
  }

  .zw-proceso__card:hover .zw-proceso__label,
  .zw-proceso__card:focus-within .zw-proceso__label {
    transform: none;
  }

  .zw-proceso__card:hover .zw-proceso__photo,
  .zw-proceso__card:focus-within .zw-proceso__photo {
    transform: none;
  }
}
