.yes-custom {
  --yes-custom-ink: #5C4336;
  --yes-custom-accent: #E8DBD1;
  --yes-custom-line: #B7A49C;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(56px, 7vw, 110px) clamp(18px, 4vw, 64px);
  color: var(--yes-custom-ink);
  background: #F9F5EF;
  font-family: var(--body-font, "Montserrat", sans-serif);
}

.yes-custom *,
.yes-custom *::before,
.yes-custom *::after { box-sizing: border-box; }

.yes-custom__inner {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  max-width: 1600px;
  margin: 0 auto;
}

.yes-custom__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
}

.yes-custom__title {
  max-width: 760px;
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 3.4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.yes-custom__header {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(20px, 4vw, 80px);
}

.yes-custom__lead {
  max-width: 38ch;
  margin: 0;
  padding-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.yes-custom__aside {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.yes-custom__nav { display: flex; gap: 12px; }

.yes-custom__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--yes-custom-line);
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: background-color .2s ease;
}

.yes-custom__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yes-custom__arrow:hover { background: var(--yes-custom-accent); }
.yes-custom__arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Carrusel de beneficios (Swiper) */
.yes-custom__carousel,
.yes-custom__feature,
.yes-custom__header { width: 100%; max-width: 100%; margin-right: 0; margin-left: 0; }

/* Aire para que la elevación y la sombra de las cards no se recorten */
.yes-custom__carousel { padding: 10px 0 30px; margin-bottom: -20px; }
.yes-custom .swiper-wrapper { align-items: stretch; }

.yes-custom__benefit {
  --yes-card-bg: #fff;
  --yes-card-badge: #F3EAE2;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: auto;
  min-height: clamp(190px, 15vw, 220px);
  padding: clamp(20px, 1.8vw, 26px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--yes-card-bg);
  box-shadow:
    0 1px 0 rgba(92, 67, 54, .06),
    0 18px 40px -30px rgba(92, 67, 54, .45);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

/* Línea de acento que crece al pasar el mouse */
.yes-custom__benefit::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: clamp(20px, 1.8vw, 26px);
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--yes-custom-line);
  transition: width .4s ease;
}

.yes-custom__benefit:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(92, 67, 54, .06),
    0 28px 50px -30px rgba(92, 67, 54, .55);
}

.yes-custom__benefit:hover::after { width: 56px; }

/* Card destacada: personalización, en el color de la marca */
.yes-custom__benefit--lead {
  --yes-card-bg: #5C4336;
  --yes-card-badge: rgba(249, 245, 239, .12);
  color: #F9F5EF;
}

.yes-custom__benefit--lead::after { background: #E8DBD1; }

.yes-custom__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Ícono dentro de un círculo */
.yes-custom__icon {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 12px;
  border-radius: 50%;
  background: var(--yes-card-badge);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color .3s ease, color .3s ease, transform .35s ease;
}

.yes-custom__benefit:not(.yes-custom__benefit--lead):hover .yes-custom__icon {
  color: #F9F5EF;
  background: var(--yes-custom-ink);
}

.yes-custom__benefit:hover .yes-custom__icon { transform: rotate(-6deg) scale(1.04); }

/* Número grande como marca de agua editorial */
.yes-custom__num {
  margin-top: -6px;
  font: 300 clamp(34px, 3vw, 44px)/1 var(--heading-font, "Montserrat", sans-serif);
  letter-spacing: -.02em;
  opacity: .16;
}

.yes-custom__benefit--lead .yes-custom__num { opacity: .3; }

.yes-custom__benefit h3 {
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.yes-custom__benefit p {
  max-width: 32ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  opacity: .78;
}

.yes-custom__benefit--lead p { opacity: .85; }

/* Bloque de personalización */
.yes-custom__feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
}

.yes-custom__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--yes-custom-accent);
}

.yes-custom__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider de imágenes (columna izquierda) */
.yes-custom__media {
  --yes-custom-autoplay: 4500ms;
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: clamp(36px, 5vw, 72px) 0 0 clamp(36px, 5vw, 72px);
  box-shadow: 0 24px 48px -28px rgba(92, 67, 54, .45);
  isolation: isolate;
}

.yes-custom__media .swiper-wrapper,
.yes-custom__media .swiper-slide { height: 100%; }

/* Degradado inferior para que los indicadores se lean sobre cualquier foto */
.yes-custom__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 26%;
  background: linear-gradient(0deg, rgba(40, 29, 23, .3), transparent);
  pointer-events: none;
}

/* Zoom lento en la foto activa */
.yes-custom__media img {
  transform: scale(1);
  transition: transform 7s ease-out;
}
.yes-custom__media .swiper-slide-active img { transform: scale(1.07); }

.yes-custom__counter {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
  z-index: 2;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-shadow: 0 1px 8px rgba(40, 29, 23, .45);
}

.yes-custom__dots {
  position: absolute;
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  left: clamp(18px, 2vw, 28px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Indicadores minimalistas: puntos pequeños, el activo se alarga */
.yes-custom__dots .swiper-pagination-bullet {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  opacity: 1;
  transition: width .35s ease, background-color .35s ease;
}

.yes-custom__dots .swiper-pagination-bullet:hover { background: rgba(255, 255, 255, .85); }

.yes-custom__dots .swiper-pagination-bullet-active {
  width: 22px;
  background: #fff;
}

.yes-custom__dots .swiper-pagination-bullet:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .yes-custom__media img { transition: none; }
  .yes-custom__media .swiper-slide-active img { transform: none; }
  .yes-custom__dots .swiper-pagination-bullet { transition: none; }
}

.yes-custom__headline {
  margin: 0 0 24px;
  color: inherit;
  font: 400 clamp(40px, 5.2vw, 84px)/.96 var(--heading-font, "Montserrat", sans-serif);
  letter-spacing: -.03em;
}

.yes-custom__text {
  max-width: 560px;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
}

.yes-custom__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 14px 28px;
  border: 1px solid var(--yes-custom-ink);
  border-radius: 999px;
  color: #F9F5EF;
  background: var(--yes-custom-ink);
  font: 600 13px/1 var(--body-font, "Montserrat", sans-serif);
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.yes-custom__cta:hover,
.yes-custom__cta:focus-visible {
  color: var(--yes-custom-ink);
  background: transparent;
  transform: translateY(-2px);
}

.yes-custom__cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 1023px) {
  .yes-custom__header { grid-template-columns: 1fr; align-items: start; }
  .yes-custom__aside { grid-template-columns: 1fr auto; align-items: end; justify-items: stretch; }
}

@media (max-width: 767px) {
  .yes-custom__aside { grid-template-columns: 1fr; justify-items: start; }
  .yes-custom__benefit { min-height: 170px; gap: 16px; border-radius: 20px; }
  .yes-custom__feature { grid-template-columns: minmax(0, 1fr); }
  .yes-custom__media { aspect-ratio: 1; }
  .yes-custom__cta { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .yes-custom__benefit:hover { transform: none; }
  .yes-custom__benefit,
  .yes-custom__benefit::after,
  .yes-custom__arrow,
  .yes-custom__icon,
    .yes-custom__cta { transition: none; }
}
