.zw-attr {
  --zw-attr-gap: clamp(0.55rem, 1.3vw, 0.95rem);
  --zw-attr-stagger: clamp(0.7rem, 1.6vw, 1.3rem);
  background: var(--zw-white);
  color: var(--zw-dark);
  padding: clamp(3rem, 7vw, 4.75rem) 0 clamp(2rem, 5vw, 3rem);
  overflow: hidden;
}

.zw-attr__head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.zw-attr__hero {
  display: block;
  width: min(100%, clamp(11rem, 24vw, 15.5rem));
  height: auto;
  margin: 0 auto clamp(0.5rem, 1.5vw, 0.9rem);
}

.zw-attr__eyebrow {
  margin: 0 0 0.3rem;
  font-size: clamp(0.8rem, 1.6vw, 0.92rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.35;
  color: var(--zw-dark);
}

.zw-attr__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  font-weight: var(--zw-weight-body);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #3d3d3d;
}

.zw-attr__title-inner {
  position: relative;
  display: inline-block;
  padding-bottom: 0.22em;
}

.zw-attr__title-inner::after {
  content: '';
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0;
  height: 3px;
  background: var(--zw-orange);
  border-radius: 2px;
}

.zw-attr__title-strong {
  font-weight: var(--zw-weight-title);
  color: var(--zw-dark);
}

/* Carrusel */

.zw-attr__carousel {
  position: relative;
  padding-inline: clamp(1.75rem, 4vw, 2.75rem);
}

.zw-attr__nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.75rem, 3.4vw, 2.25rem);
  height: clamp(1.75rem, 3.4vw, 2.25rem);
  padding: 0;
  border: 0;
  background: none;
  color: var(--zw-orange);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 220ms var(--zw-ease), transform 220ms var(--zw-ease);
}

.zw-attr__nav svg {
  width: 100%;
  height: 100%;
}

.zw-attr__nav--prev {
  left: 0;
}

.zw-attr__nav--next {
  right: 0;
}

.zw-attr__nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.12);
}

.zw-attr__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.zw-attr__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.zw-attr__track {
  display: flex;
  gap: var(--zw-attr-gap);
  margin: 0;
  padding: 0 0 var(--zw-attr-stagger);
  list-style: none;
}

.zw-attr__slide {
  flex: 0 0 calc((100% - 3 * var(--zw-attr-gap)) / 4);
  scroll-snap-align: start;
}

.zw-attr__slide:nth-child(odd) {
  padding-top: var(--zw-attr-stagger);
}

/* Tarjeta: panel gris y contenido comparten la misma celda para poder solaparse */

.zw-attr__card {
  display: grid;
  grid-template-areas: 'stack';
}

.zw-attr__panel,
.zw-attr__content {
  grid-area: stack;
}

.zw-attr__panel {
  width: 51%;
  aspect-ratio: 125 / 360;
  background: #e4e4e2;
}

.zw-attr--textured .zw-attr__panel {
  background-image: var(--zw-attr-texture);
  background-size: cover;
  background-position: center;
}

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

.zw-attr__photo {
  display: block;
  width: 67%;
  margin-left: 7.3%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.zw-attr__copy {
  width: 88%;
  margin-left: 9.4%;
  padding-top: clamp(0.9rem, 2.2vw, 1.6rem);
}

.zw-attr__card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.9vw, 1.85rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--zw-dark);
}

.zw-attr__card-text {
  margin: 0;
  font-size: clamp(0.72rem, 1.35vw, 0.85rem);
  font-weight: var(--zw-weight-body);
  line-height: 1.45;
  color: #9c9c9c;
}

@media (max-width: 1099px) {
  .zw-attr__slide {
    flex-basis: calc((100% - 2 * var(--zw-attr-gap)) / 3);
  }
}

@media (max-width: 819px) {
  .zw-attr__slide {
    flex-basis: calc((100% - var(--zw-attr-gap)) / 2);
  }
}

@media (max-width: 559px) {
  .zw-attr__carousel {
    padding-inline: 0;
  }

  .zw-attr__nav {
    display: none;
  }

  .zw-attr__viewport {
    scroll-snap-type: x proximity;
  }

  .zw-attr__slide {
    flex-basis: 72%;
  }

  .zw-attr__slide:nth-child(odd) {
    padding-top: 0;
  }

  .zw-attr__track {
    padding-bottom: 0;
  }
}

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

  .zw-attr__nav {
    transition: none;
  }

  .zw-attr__nav:hover:not(:disabled) {
    transform: translateY(-50%);
  }
}
