html,
body { overflow-x: clip; }

.proof-section {
  --d4-paper: #ffffff;
  --d4-ink: #111111;
  --d4-muted: #6f7068;
  --d4-line: #d7d6bd;
  --d4-accent: #ff675b;
  --d4-accent-dark: #b64238;
  --d4-green: #063f38;
  --d4-warm: #9c7b56;
  --d4-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  width: 100%;
  overflow: visible;
  color: var(--d4-ink);
  background: var(--d4-paper);
  font-family: 'Inter', system-ui, sans-serif;
}

.proof-section *,
.proof-section *::before,
.proof-section *::after { box-sizing: border-box; }

.d4-story {
  height: 420vh;
  position: relative;
  background: var(--d4-paper);
}

.d4-story-sticky {
  min-height: 100vh;
  padding: 34px 28px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.d4-ambient-line {
  width: 68vw;
  height: 34vw;
  min-height: 340px;
  position: absolute;
  z-index: -1;
  border: clamp(42px, 6vw, 86px) solid rgba(164, 164, 126, .11);
  border-radius: 50%;
  pointer-events: none;
}

.d4-ambient-line.is-one { left: -27vw; bottom: -9vw; transform: rotate(18deg); }
.d4-ambient-line.is-two { right: -28vw; top: 2vw; transform: rotate(-16deg); }

.d4-story-grid {
  width: min(1420px, 100%);
  min-height: min(760px, calc(100vh - 68px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(440px, 560px) minmax(270px, 370px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 74px);
}

.d4-step-nav {
  padding-left: 24px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
}

.d4-step-rail {
  width: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  border-radius: 99px;
  background: var(--d4-line);
}

.d4-step-indicator {
  width: 5px;
  height: 54px;
  position: absolute;
  top: 0;
  left: -1px;
  border-radius: 99px;
  background: var(--d4-accent);
  transform: translateY(0);
  transition: transform .65s var(--d4-ease), height .45s var(--d4-ease);
  box-shadow: 0 8px 24px rgba(255, 103, 91, .24);
}

.d4-step-button {
  min-height: 54px;
  padding: 0 5px;
  border: 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  color: #919187;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .35s ease, transform .35s var(--d4-ease);
}

.d4-step-button:hover { color: #505148; }
.d4-step-button.is-active { color: var(--d4-ink); transform: translateX(3px); }

.d4-step-number {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.d4-step-label {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(21px, 1.85vw, 29px);
  line-height: .95;
}

.d4-visual-stage {
  height: clamp(520px, 69vh, 670px);
  position: relative;
  overflow: visible;
  border-radius: 38px;
}

.d4-stage-shell {
  position: absolute;
  inset: 0;
  overflow: visible;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 38px;
  background: #e7e7d4;
  box-shadow: 0 30px 70px rgba(60, 59, 40, .14);
}

.d4-stage-status {
  position: absolute;
  z-index: 12;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.d4-stage-status__brand,
.d4-stage-status__count {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.d4-stage-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.975);
  transition: opacity .48s ease, transform .72s var(--d4-ease), visibility .48s;
}

.d4-stage-panel.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.d4-panel-one { overflow: visible; background: var(--d4-green); }

.d4-meeting-surface {
  padding: 34px 34px 72px;
  position: absolute;
  inset: 116px 62px 70px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  color: #fff;
  background: #06352f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.d4-surface-kicker {
  margin-bottom: 24px;
  color: #9fc9bf;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.d4-message { margin-bottom: 16px; }
.d4-message:last-child { margin-bottom: 0; }

.d4-message__name {
  margin: 0 0 6px 4px;
  display: block;
  color: #ffc45e;
  font-size: 11px;
  font-weight: 750;
}

.d4-message:nth-of-type(3) .d4-message__name { color: #ef8fbc; }
.d4-message:nth-of-type(4) .d4-message__name { color: #b7a2ff; }

.d4-message__bubble {
  max-width: 94%;
  padding: 11px 14px;
  display: inline-block;
  border-radius: 13px;
  color: #edf7f3;
  background: rgba(255, 255, 255, .075);
  font-size: 12px;
  line-height: 1.4;
}

.d4-audio-pill {
  width: 92px;
  height: 38px;
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  color: #5de0bc;
  background: #101b19;
  transform: translateX(-50%);
}

.d4-audio-pill i {
  width: 3px;
  height: 11px;
  border-radius: 99px;
  background: currentColor;
  animation: d4-wave .85s ease-in-out infinite alternate;
}

.d4-audio-pill i:nth-child(2) { height: 18px; animation-delay: -.25s; }
.d4-audio-pill i:nth-child(3) { height: 8px; animation-delay: -.5s; }
.d4-audio-pill i:nth-child(4) { height: 15px; animation-delay: -.7s; }
.d4-audio-pill i:nth-child(5) { height: 10px; animation-delay: -.15s; }

@keyframes d4-wave { to { transform: scaleY(.35); opacity: .55; } }

.d4-portrait {
  --d4-photo-x: 0px;
  --d4-photo-y: 0px;
  --d4-shine-x: 50%;
  --d4-shine-y: 50%;
  width: 116px;
  aspect-ratio: 1;
  margin: 0;
  position: absolute;
  z-index: 7;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid #ff8c78;
  border-radius: 25px;
  background: #ddd;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
  transition: box-shadow .38s ease, filter .38s ease;
}

.d4-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translate3d(var(--d4-photo-x), var(--d4-photo-y), 0) scale(1.09);
  transition: transform .2s var(--d4-ease), filter .38s ease;
  will-change: transform;
}

.d4-portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--d4-shine-x) var(--d4-shine-y), rgba(255, 255, 255, .58), rgba(255, 255, 255, .12) 22%, transparent 52%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;
}

@media (hover: hover) and (pointer: fine) {
  .d4-portrait:hover {
    filter: saturate(1.06) contrast(1.02);
    box-shadow: 0 25px 48px rgba(0, 0, 0, .25);
  }

  .d4-portrait:hover::after { opacity: .58; }
}

.d4-portrait figcaption {
  min-width: 58px;
  padding: 5px 9px;
  position: absolute;
  z-index: 3;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  color: #111;
  background: #f5d9ff;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(245, 217, 255, .98);
}

.d4-portrait.is-marta { top: -50px; left: 50%; transform: translateX(-50%) rotate(2deg); }
.d4-portrait.is-leo { right: -58px; bottom: -38px; transform: rotate(-2deg); }
.d4-portrait.is-nora { left: -58px; bottom: 70px; transform: rotate(1.5deg); }
.d4-portrait.is-leo figcaption { color: #fff; background: #9c1e3c; box-shadow: 0 0 0 3px #9c1e3c; }
.d4-portrait.is-nora figcaption { background: #ffba4f; box-shadow: 0 0 0 3px #ffba4f; }

.d4-panel-two { color: var(--d4-ink); background: #e2e2cf; }

.d4-translate-surface {
  position: absolute;
  inset: 72px 44px 44px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.d4-translate-heading {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.04em;
  text-align: center;
}

.d4-translate-heading em { color: var(--d4-warm); font-weight: 400; }

.d4-source-card,
.d4-language-output {
  border: 1px solid rgba(17, 17, 17, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 24px rgba(61, 60, 42, .07);
}

.d4-source-card { padding: 16px 18px; }

.d4-source-meta,
.d4-output-meta {
  display: flex;
  justify-content: space-between;
  color: #74756b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.d4-source-card p {
  margin: 10px 0 0;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 21px;
}

.d4-language-output {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  transform: translateX(var(--d4-shift, 0));
}

.d4-language-output strong {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--d4-green);
  font-size: 11px;
  letter-spacing: .08em;
}

.d4-language-output p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; }

.d4-panel-three,
.d4-panel-four { background-position: center; background-size: cover; }

.d4-panel-three { background-image: linear-gradient(rgba(2, 18, 18, .44), rgba(2, 18, 18, .66)), url("../images/section4/contexto.webp"); }
.d4-panel-four { background-image: linear-gradient(rgba(17, 12, 7, .28), rgba(17, 12, 7, .56)), url("../images/section4/resumen.webp"); }

.d4-emotion-card,
.d4-result-card {
  width: min(78%, 410px);
  padding: 24px;
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 24px;
  color: #fff;
  background: rgba(8, 19, 20, .66);
  backdrop-filter: blur(15px);
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

.d4-card-topline {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.d4-live-dot { display: inline-flex; align-items: center; gap: 7px; color: #8bf0d1; }

.d4-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(139, 240, 209, .12);
}

.d4-emotion-card blockquote {
  margin: 0 0 26px;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(27px, 3vw, 39px);
  line-height: .98;
}

.d4-metric {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 78px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
}

.d4-metric__bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
}

.d4-metric__bar span {
  width: var(--d4-score);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #55d7b4, #d3ffef);
  transform-origin: left;
}

.d4-result-card {
  width: min(82%, 430px);
  color: var(--d4-ink);
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .9);
}

.d4-result-card .d4-card-topline { color: #66675e; }

.d4-result-title {
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(31px, 3.4vw, 45px);
  font-weight: 500;
  line-height: .95;
}

.d4-result-title em { color: var(--d4-warm); font-weight: 400; }

.d4-result-row {
  padding: 12px 0;
  border-top: 1px solid rgba(17, 17, 17, .09);
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 680;
}

.d4-result-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--d4-green);
  font-size: 10px;
}

.d4-result-ok {
  color: #187a65;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.d4-copy-panel { min-height: 390px; position: relative; }

.d4-copy-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity .42s ease, transform .68s var(--d4-ease), visibility .42s;
}

.d4-copy-card.is-active { opacity: 1; visibility: visible; transform: none; }

.d4-copy-index {
  margin-bottom: 20px;
  color: var(--d4-accent-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.d4-copy-card h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(45px, 4.45vw, 70px);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.045em;
}

.d4-copy-card h3 em { color: var(--d4-warm); font-weight: 400; }

.d4-copy-card p {
  max-width: 34em;
  margin: 30px 0 0;
  color: #4d4e47;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
}

.d4-copy-chip {
  align-self: flex-start;
  margin-top: 24px;
  padding: 8px 11px;
  border: 1px solid rgba(17, 17, 17, .13);
  border-radius: 999px;
  color: #484941;
  background: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.d4-mobile-story { display: none; }

.d4-stage-panel.is-active .d4-message,
.d4-stage-panel.is-active .d4-source-card,
.d4-stage-panel.is-active .d4-language-output,
.d4-stage-panel.is-active .d4-emotion-card,
.d4-stage-panel.is-active .d4-result-card,
.d4-stage-panel.is-active .d4-portrait {
  animation: d4-rise-in .72s var(--d4-ease) both;
  animation-delay: var(--d4-delay, 0ms);
}

@keyframes d4-rise-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; }
}

.d4-stage-panel.is-active .d4-portrait.is-marta { animation-name: d4-portrait-marta; }
.d4-stage-panel.is-active .d4-portrait.is-leo { animation-name: d4-portrait-leo; }
.d4-stage-panel.is-active .d4-portrait.is-nora { animation-name: d4-portrait-nora; }

@keyframes d4-portrait-marta {
  from { opacity: 0; transform: translate(18px, -18px) rotate(7deg) scale(.86); }
  to { opacity: 1; transform: translateX(-50%) rotate(2deg); }
}

@keyframes d4-portrait-leo {
  from { opacity: 0; transform: translate(24px, 14px) rotate(-7deg) scale(.86); }
  to { opacity: 1; transform: rotate(-2deg); }
}

@keyframes d4-portrait-nora {
  from { opacity: 0; transform: translate(-22px, 16px) rotate(7deg) scale(.86); }
  to { opacity: 1; transform: rotate(1.5deg); }
}

@media (max-width: 1080px) {
  .d4-story-grid { grid-template-columns: 160px minmax(410px, 520px) minmax(240px, 320px); gap: 26px; }
  .d4-meeting-surface { inset-inline: 44px; }
  .d4-copy-card h3 { font-size: 48px; }
}

@media (max-width: 820px) {
  .d4-story { height: auto; padding: 18px 14px 72px; }
  .d4-story-sticky { display: none; }
  .d4-mobile-story { display: grid; gap: 26px; }
  .d4-mobile-step {
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, .1);
    border-radius: 28px;
    background: rgba(255, 255, 255, .35);
    box-shadow: 0 20px 42px rgba(60, 59, 40, .08);
  }
  .d4-mobile-step__header { padding: 22px 22px 16px; }
  .d4-mobile-step__number { color: var(--d4-accent-dark); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
  .d4-mobile-step__label { margin: 7px 0 0; font-family: 'Cormorant Garamond', 'Playfair Display', serif; font-size: 31px; font-weight: 500; }
  .d4-mobile-visual { height: min(128vw, 560px); position: relative; overflow: hidden; background: #e3e3d1; }
  .d4-mobile-visual .d4-stage-panel { position: absolute; opacity: 1; visibility: visible; transform: none; }
  .d4-mobile-copy { padding: 26px 22px 30px; }
  .d4-mobile-copy .d4-copy-card { position: relative; opacity: 1; visibility: visible; transform: none; }
  .d4-mobile-copy .d4-copy-index,
  .d4-mobile-copy .d4-copy-chip { display: none; }
  .d4-mobile-copy .d4-copy-card h3 { font-size: clamp(42px, 12vw, 60px); }
  .d4-mobile-copy .d4-copy-card p { margin-top: 20px; font-size: 15px; }
  .d4-meeting-surface { inset: 105px 34px 64px; padding-inline: 25px; }
  .d4-mobile-visual .d4-portrait { width: 94px; border-radius: 21px; animation: none !important; }
  .d4-mobile-visual .d4-portrait.is-marta { top: 48px; right: 22px; left: auto; transform: rotate(2deg); }
  .d4-mobile-visual .d4-portrait.is-leo { top: auto; right: 2px; bottom: 76px; transform: rotate(-2deg); }
  .d4-mobile-visual .d4-portrait.is-nora { left: 4px; bottom: 28px; transform: rotate(1.5deg); }
  .d4-translate-surface { inset: 66px 24px 32px; }
  .d4-language-output { grid-template-columns: 52px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-section *,
  .proof-section *::before,
  .proof-section *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
