soulmate-mobile-benefits {
  --benefits-card-width: clamp(250px, 78vw, 310px);
  --benefits-card-height: 454px;
  --benefits-radius: 20px;
  --benefits-flip-duration: 700ms;
  --benefits-opacity: 1;
  --benefits-entry-y: 0px;
  display: block;
  position: relative;
  isolation: isolate;
  padding: 22px 0 72px;
  overflow: clip;
  color: #f8f1f6;
}
soulmate-mobile-benefits *,
soulmate-mobile-benefits *::before,
soulmate-mobile-benefits *::after { box-sizing: border-box; }
.sm-benefits-surface {
  width: 100%;
  opacity: var(--benefits-opacity);
  transform: translateY(var(--benefits-entry-y));
}
.sm-benefits-heading {
  width: min(100% - 48px, 420px);
  margin: 0 auto 30px;
}
.sm-benefits-heading h2 {
  margin: 0;
  font: 800 clamp(2rem, 8.8vw, 3rem)/1.05 var(--font-primary);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.sm-benefits-heading h2 span { color: #e5bed4; }
.sm-benefits-heading > p {
  margin: 22px 0 0;
  color: #beb4c6;
  font: 400 1rem/1.6 var(--font-primary);
}
.sm-benefits-list {
  position: relative;
  width: 100%;
  height: calc(var(--benefits-card-height) + 146px);
  padding: 0;
  margin: 0;
  list-style: none;
  isolation: isolate;
}
.sm-benefits-list::before {
  content: '';
  position: absolute;
  inset: 20% 0 8%;
  background: radial-gradient(ellipse, #a3628a12, transparent 65%);
  pointer-events: none;
}
.sm-benefits-item {
  position: absolute;
  width: var(--benefits-card-width);
  height: var(--benefits-card-height);
  left: calc(50% - var(--benefits-card-width) / 2);
  top: 28px;
  transform-origin: center;
  will-change: transform;
}
.sm-benefit-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--benefits-radius);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1200px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.sm-benefit-rotor {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition:
  transform var(--benefits-flip-duration) cubic-bezier(.22, .72, .15, 1);
}
.sm-benefits-item[data-flipped] .sm-benefit-rotor { transform: rotateY(180deg); }
.sm-benefit-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #ffffff45;
  border-radius: var(--benefits-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #29232e;
  box-shadow: 0 24px 48px #0008, 0 3px 9px #0006;
  transition: border-color 350ms ease, box-shadow 350ms ease;
}
.sm-benefits-item[data-active][data-flipped] .sm-benefit-back {
  border-color: rgba(255, 79, 163, 0.25);
  box-shadow:
    0 0 6px rgba(255, 79, 163, 0.40),
    0 0 14px rgba(255, 79, 163, 0.22),
    0 0 26px rgba(99, 231, 255, 0.12),
    0 24px 48px #0008;
}
.sm-benefits-item[data-active][data-flipped] .sm-benefit-rotor {
  transform: rotateY(180deg) scale(1.025);
}
.sm-benefit-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65);
}
.sm-benefit-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.sm-benefit-front::after { background: linear-gradient(180deg, #0000 38%, #0b081125 62%, #0b0811ed 100%); }
.sm-benefit-category {
  position: absolute;
  z-index: 1;
  bottom: 26px;
  left: 18px;
  right: 18px;
  font: 800 clamp(1.55rem, 6.5vw, 2rem)/1 var(--font-primary);
  letter-spacing: -.035em;
  transition: opacity 220ms ease;
 }
.sm-benefits-item[data-flipped] .sm-benefit-category {
  opacity: 0;
}
[data-key='acompanamiento'] .sm-benefit-category { font-size: clamp(1.25rem, 5.2vw, 1.65rem); }
.sm-benefit-back { transform: rotateY(180deg); }
.sm-benefit-back .sm-benefit-photo {
  filter: blur(7px) saturate(.45) brightness(.48);
  transform: scale(1.12);
}
.sm-benefit-back::after {
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 79, 163, 0.16),
      transparent 38%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(99, 231, 255, 0.10),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      rgba(25, 16, 32, 0.88),
      rgba(9, 9, 16, 0.92)
    );
} 
.sm-benefit-back-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 22px;
}
.sm-benefit-title {
  position: relative;
  display: block;
  width: 100%;

  margin: 0 0 18px;
  padding-bottom: 16px;

  color: #e7bfd7;

  font: 500 1.55rem/1.15 var(--font-primary);
  letter-spacing: -.025em;

  text-wrap: balance;
  text-align: center;

  text-shadow:
    0 0 16px rgba(255, 79, 163, 0.12);
}
.sm-benefit-title::after {
  content: '';

  position: absolute;
  left: 50%;
  bottom: 0;

  width: 110px;
  height: 1px;

  transform: translateX(-50%);

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 121, 198, 0.85),
    rgba(99, 231, 255, 0.65),
    transparent
  );
}
.sm-benefit-copy {
  max-width: 250px;

  margin: 0 auto;

  color: rgba(245, 247, 251, 0.88);

  font: 400 1rem/1.58 var(--font-primary);

  text-align: center;
}
.sm-benefit-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ffffff30;
  text-align: center;
}
.sm-benefit-partner {
  font: 600 .875rem/1.35 var(--font-primary);
  color: #e5d8e9;
  text-align: center;
}
.sm-benefit-partner img { display: block; max-width: 130px; height: 30px; object-fit: contain; }
.sm-benefit-card:focus-visible {
  outline: 2px solid #edbddc;
  outline-offset: 5px;
}
.sm-benefits-surface:has(:focus-visible) { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sm-benefits-surface { opacity: 1; transform: none; }
  .sm-benefit-rotor { transition: none; }
  .sm-benefits-item { will-change: auto; }
}

@media (min-width: 1024px) {
  soulmate-mobile-benefits {
    --benefits-card-width: clamp(170px, 14vw, 250px);
    --benefits-card-height: calc(var(--benefits-card-width) * 1.65);
    --benefits-fan-rotation: 6.5;
    --benefits-scroll-travel: 380;
    min-height: calc(var(--benefits-card-height) + 580px);
    padding-block: 28px 0;
    overflow-x: clip;
    overflow-y: visible;
    scroll-margin-top: 112px;
  }

  .sm-benefits-surface {
    position: sticky;
    top: 100px;
    transform: none;
  }

  .sm-benefits-heading {
    width: min(100% - 80px, 1040px);
    margin-bottom: 22px;
    text-align: center;
    opacity: var(--benefits-heading-opacity, 1);
    transform: translateY(var(--benefits-heading-y, 0px));
    pointer-events: none;
  }

  .sm-benefits-heading h2 {
    max-width: 900px;
    margin-inline: auto;
    font-size: clamp(32px, 2.7vw, 44px);
    line-height: 1.08;
  }

  .sm-benefits-heading > p {
    max-width: 660px;
    margin: 14px auto 0;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.5;
  }

  .sm-benefits-list {
    width: 100%;
    height: calc(var(--benefits-card-height) + 80px);
    margin-inline: auto;
  }

  .sm-benefits-item { top: 24px; }
  /* Both images share the same slot and crop. Only their content changes. */
  .sm-benefit-incoming {
    display: contents;
    pointer-events: none;
  }
  .sm-benefit-incoming > .sm-benefit-photo { opacity: var(--benefit-handoff, 0); }
  .sm-benefit-front > .sm-benefit-category {
    opacity: calc(1 - var(--benefit-handoff, 0));
  }
  .sm-benefit-incoming .sm-benefit-category {
    opacity: var(--benefit-handoff, 0);
  }
  .sm-benefit-front .sm-benefit-category { transition: none; }
  .sm-benefits-item[data-flipped] .sm-benefit-category { opacity: 0; }
  .sm-benefits-item .sm-benefit-front {
    filter: brightness(calc(1 - var(--benefit-echo, 0) * .08))
      saturate(calc(1 - var(--benefit-echo, 0) * .14))
      blur(calc(var(--benefit-echo, 0) * .3px));
  }
  .sm-benefits-item[data-echo] .sm-benefit-front::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(130deg, #65dbe90a, #b75bce0c, #ec77b00a);
  }
  .sm-benefit-category {
    bottom: 20px;
    left: 14px;
    right: 14px;
    font-size: clamp(21px, 1.7vw, 26px);
  }
  .sm-benefits-item .sm-benefit-category { font-size: clamp(21px, 1.7vw, 26px); }
  .sm-benefits-item .sm-benefit-category[data-key='acompanamiento'] { font-size: clamp(16px, 1.3vw, 20px); }
  .sm-benefit-back-copy { padding: clamp(16px, 1.4vw, 22px); }
  .sm-benefit-title {
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.2;
  }
  .sm-benefit-title::after { width: 80px; }
  .sm-benefit-copy {
    max-width: 28ch;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.48;
  }

  /* Shared composition only on desktop. Welcome keeps its own video, scroll
     subscription, dialog, typography and dimensions; only its flow overlaps. */
  soulmate-mobile-benefits + soulmate-mobile-welcome {
    --benefits-welcome-overlap: 180px;
    margin-top: calc(-1 * var(--benefits-welcome-overlap));
    z-index: 2;
    pointer-events: none;
  }
  soulmate-mobile-benefits + soulmate-mobile-welcome :is(.sm-welcome-content, .sm-welcome-dialog) {
    pointer-events: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    soulmate-mobile-benefits { min-height: 0; padding-bottom: 100px; }
    .sm-benefits-surface { position: relative; top: auto; }
    .sm-benefits-heading { opacity: 1; transform: none; }
    soulmate-mobile-benefits + soulmate-mobile-welcome { margin-top: 0; }
  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .sm-benefits-item:not([data-active]) .sm-benefit-card:hover .sm-benefit-front {
    border-color: rgb(255 255 255 / .7);
  }
}

