.ds-section {
  padding: 60px 5%;
}

.ds-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 640px;
  background-color: #F5ECE3;
  box-shadow: 0 20px 50px rgba(20, 20, 20, 0.25);
  display: flex;
  align-items: stretch;
}

.ds-bg-layer {
  position: absolute;
  inset: 0;
  display: none;
}

.ds-bg-image {
  position: absolute;
  inset: 0;
  background-color: #E8D9D0; /* placeholder cálido; luego será background-image: url(...) por servicio */
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: saturate(0.9) sepia(0.08) contrast(1.05);
}

.ds-bg-image.active {
  opacity: 1;
}

.ds-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(127, 113, 100, 0.88) 0%,
    rgba(183, 164, 156, 0.45) 40%,
    rgba(183, 164, 156, 0.05) 75%
  );
  display: none;
}

.ds-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 80px 48px 80px 64px;
  flex: 0 0 460px;
  box-sizing: border-box;
}

.ds-stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.ds-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(127, 113, 100, 0.4);
  color: #7F7164;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ds-step.active .ds-step-number {
  background-color: #7F7164;
  color: #FFFFFF;
  border-color: #7F7164;
}

.ds-step-line {
  width: 1.5px;
  height: 72px;
  background-color: rgba(127, 113, 100, 0.3);
  margin: 6px 0;
}

.ds-title {
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #141414;
}

.ds-desc {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: #7F7164;
  margin-bottom: 24px;
  max-width: 280px;
}

.ds-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(127, 113, 100, 0.2);
}

.ds-price {
  font-size: 1rem;
  font-weight: 600;
  color: #141414;
}

.ds-duration {
  font-size: 0.8rem;
  font-weight: 400;
  color: #B7A49C;
  letter-spacing: 0.02em;
}

.ds-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  background-color: #7F7164;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.ds-cta:hover {
  background-color: #141414;
  transform: translateY(-1px);
}

.ds-cards {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 80px 64px 64px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.ds-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s ease, opacity 0.4s ease;
  opacity: 0.55;
}

.ds-card.active {
  flex: 2.2;
  opacity: 1;
}

.ds-card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #D9C4B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ds-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(43, 36, 32, 0.85) 0%,
    rgba(43, 36, 32, 0.15) 45%,
    rgba(43, 36, 32, 0) 70%
  );
  pointer-events: none;
}


.ds-card-placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(127, 113, 100, 0.6);
  text-align: center;
}

.ds-card-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.ds-card-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
}

.ds-card-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.ds-card:not(.active):hover {
  opacity: 0.8;
}

/* --- Detalle 4: responsive/móvil --- */
@media (max-width: 900px) {
  .ds-frame {
    flex-direction: column;
    overflow: visible;
    height: auto;
  }

  .ds-content {
    flex: none;
    flex-direction: column;
    gap: 0;
    padding: 32px 24px 24px;
    width: 100%;
  }

  .ds-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    word-break: break-word;
  }

  .ds-desc {
    max-width: 100%;
  }

  .ds-stepper {
    flex-direction: row;
    padding-top: 0;
    margin-bottom: 24px;
    align-self: flex-start;
  }

  .ds-step {
    display: flex;
    align-items: center;
  }

  .ds-step-line {
    width: 32px;
    height: 1.5px;
    margin: 0 4px;
  }

  .ds-cards {
    flex-direction: column;
    flex: none;
    width: 100%; 
    height: auto;
    gap: 12px;
    padding: 0 20px 32px;
    align-items: stretch;
  }

  .ds-cards .ds-card {
    flex: none;
    height: 100px !important;
    transition: height 0.4s ease, opacity 0.4s ease;
  }

  .ds-cards .ds-card.active {
    flex: none;
    height: 260px !important;
  }

  .ds-card-name {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .ds-card-eyebrow {
    font-size: 0.7rem;
  }

  .ds-card-label {
    left: 16px;
    bottom: 16px;
    right: 16px;
  }
}