.phase-two {
  --phase-teal: #087e82;
  --phase-rule: #dcecef;
  --phase-shadow: 0 20px 42px #073b6312, 0 3px 9px #073b6308;
  position: relative;
  isolation: isolate;
  padding: 18px 0 clamp(52px, 6vw, 96px);
  background:
    radial-gradient(ellipse at 94% 92%, #def5f5 0%, transparent 46%),
    linear-gradient(180deg, #eaf7f8 0%, #f7fbfd 180px, #fff 56%, #f8fcfd 100%);
}

.phase-two::before {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: clamp(76px, 14vw, 190px);
  content: "";
  background: radial-gradient(ellipse at 92% 138%, #13b5b52e 0 49%, transparent 50%);
  pointer-events: none;
}

.phase-two .benefits {
  position: relative;
  scroll-margin-top: 24px;
  padding: 23px clamp(20px, 2.5vw, 38px);
  border: 1px solid #e5f1f3;
  border-radius: 29px;
  background: #fff;
  box-shadow: var(--phase-shadow);
}

.phase-two .benefit-list,
.phase-two .advice-service-list,
.phase-two .chat-messages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-two .benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phase-two .benefit-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.55vw, 23px);
  padding: 2px clamp(12px, 1.75vw, 28px);
}

.phase-two .benefit-item:first-child { padding-inline-start: 0; }
.phase-two .benefit-item:last-child { padding-inline-end: 0; }
.phase-two .benefit-item + .benefit-item { border-inline-start: 1px solid var(--phase-rule); }

.phase-two .benefit-icon,
.phase-two .service-icon {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--phase-teal);
}

.phase-two .benefit-icon .icon {
  width: clamp(30px, 3.15vw, 46px);
  height: clamp(30px, 3.15vw, 46px);
  stroke-width: 1.6;
}

.phase-two .benefit-item strong {
  display: block;
  font-size: clamp(16px, 1.48vw, 21px);
  line-height: 1.24;
  letter-spacing: -.027em;
}

.phase-two .benefit-item p,
.phase-two .advice-service-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.phase-two .benefit-item p { font-size: clamp(13px, 1.05vw, 15px); }

.phase-two .advice { padding-top: clamp(42px, 4.6vw, 68px); }

.phase-two .advice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17.5rem, .92fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(20px, 2.8vw, 44px);
}

.phase-two .advice-services { min-width: 0; }

.phase-two .advice-kicker,
.phase-two .savings-kicker {
  margin: 0 0 14px;
  color: var(--phase-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.phase-two .advice-heading {
  margin: 0 0 32px;
  font-size: clamp(31px, 3.25vw, 49px);
  font-weight: 800;
  letter-spacing: -.053em;
  line-height: 1.04;
  text-wrap: balance;
}

.phase-two .advice-emphasis {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.phase-two .advice-emphasis::after {
  position: absolute;
  inset: auto -7px -6px -7px;
  height: 6px;
  content: "";
  border-radius: 70% 90% 35% 45%;
  background: var(--turquoise);
  transform: rotate(-5deg);
}

.phase-two .advice-service-list { display: grid; gap: 14px; }

.phase-two .advice-service-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.phase-two .service-icon {
  width: clamp(42px, 4.1vw, 58px);
  height: clamp(42px, 4.1vw, 58px);
  border: 1px solid #e5f0f1;
  border-radius: 15px;
  background: linear-gradient(150deg, #fff 45%, #f4fbfb);
  box-shadow: 0 5px 12px #073b6310;
}

.phase-two .service-icon .icon {
  width: clamp(22px, 2vw, 29px);
  height: clamp(22px, 2vw, 29px);
}

.phase-two .advice-service-list strong {
  display: block;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -.022em;
  line-height: 1.22;
}

.phase-two .advice-service-list p { font-size: clamp(13px, 1.12vw, 16px); }

.phase-two .chat-stage {
  justify-self: center;
  width: min(100%, 324px);
  min-width: 0;
}

.phase-two .chat-demo {
  position: relative;
  width: 100%;
  margin: 0;
}

.phase-two .chat-demo::before,
.phase-two .chat-demo::after {
  position: absolute;
  z-index: -1;
  width: 18px;
  height: 4px;
  content: "";
  border-radius: 5px;
  background: var(--turquoise);
  pointer-events: none;
}

.phase-two .chat-demo::before {
  top: 0;
  right: -5px;
  background: var(--phase-teal);
  transform: rotate(-53deg);
}

.phase-two .chat-demo::after {
  top: 13px;
  right: -14px;
  transform: rotate(-27deg);
}

.phase-two .phone-shell {
  position: relative;
  padding: 7px;
  border: 1px solid #8b9aa4;
  border-radius: 39px;
  background: linear-gradient(136deg, #526776 0%, #172d39 12%, #0b1720 45%, #122935 76%, #657984 100%);
  box-shadow: 0 22px 44px #073b6333, 0 5px 12px #073b631d, inset 0 0 0 2px #ffffff24;
}

.phase-two.story-ready .phone-shell {
  opacity: var(--phone-progress, 1);
  transform: translateY(calc(10px * (1 - var(--phone-progress, 1))));
}

.phase-two .phone-shell::before,
.phase-two .phone-shell::after {
  position: absolute;
  width: 3px;
  content: "";
  border-radius: 3px;
  background: #354c58;
}

.phase-two .phone-shell::before {
  top: 82px;
  left: -3px;
  height: 26px;
  box-shadow: 0 36px 0 #354c58;
}

.phase-two .phone-shell::after { top: 102px; right: -3px; height: 49px; }

.phase-two .phone-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 31px;
  background: #faf9f7;
}

.phase-two .phone-screen::after {
  align-self: center;
  width: 92px;
  height: 3px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: #212728;
  content: "";
}

.phase-two .phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 31px;
  padding: 5px 17px 3px;
  color: #193547;
  font-size: 10px;
  font-weight: 800;
}

.phase-two .phone-island {
  position: relative;
  width: 68px;
  height: 17px;
  border-radius: 14px;
  background: #101c24;
}

.phase-two .phone-island::after {
  position: absolute;
  inset: 6px 8px auto auto;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #324e63;
}

.phase-two .phone-status-icons {
  justify-self: end;
  width: 38px;
  height: 12px;
}

.phase-two .phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 5px 11px 8px;
  border-bottom: 1px solid #e5e1da;
}

.phase-two .phone-back {
  flex: none;
  width: 16px;
  height: 16px;
  color: #087568;
}

.phase-two .phone-back .icon { width: 100%; height: 100%; }

.phase-two .phone-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid #c9e8e6;
  border-radius: 50%;
  background: #e1f4f3;
  object-fit: cover;
  object-position: center 17%;
}

.phase-two .phone-contact {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  line-height: 1.18;
}

.phase-two .phone-contact strong {
  overflow: hidden;
  color: #172522;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-two .phone-presence { color: #0b6f5f; font-size: 11px; }

.phase-two .phone-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  color: #087568;
}

.phase-two .phone-tools .icon { width: 17px; height: 17px; }
.phase-two .phone-tools .icon:last-child { width: 14px; }

.phase-two .chat-messages {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 13px;
  background: #f1ebe3 url("assets/brand/chat-pattern.svg") 0 0 / 170px auto;
}

.phase-two .chat-message {
  --bubble-background: #fff;
  --bubble-shift: -15px;
  position: relative;
  min-width: 0;
  font-size: clamp(13px, 1.08vw, 14px);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.phase-two .chat-message--nicole {
  --bubble-background: #d9f7cf;
  --bubble-shift: 15px;
}

.phase-two .chat-bubble {
  position: relative;
  width: fit-content;
  max-width: 90%;
  padding: 7px 9px 5px;
  border-radius: 10px 10px 10px 4px;
  background: var(--bubble-background);
  color: #172722;
  box-shadow: 0 1px 2px #1c34251c;
}

.phase-two .chat-bubble::before {
  position: absolute;
  inset: auto auto 0 -5px;
  width: 7px;
  height: 8px;
  background: var(--bubble-background);
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 0 100%, 47% 73%);
  content: "";
}

.phase-two .chat-message--nicole .chat-bubble {
  margin-inline-start: auto;
  border-radius: 10px 10px 4px 10px;
}

.phase-two .chat-message--nicole .chat-bubble::before {
  inset: auto -5px 0 auto;
  transform: scaleX(-1);
}

.phase-two.story-ready .chat-bubble {
  opacity: var(--bubble-progress, 0);
  transform: translateX(calc(var(--bubble-shift) * (1 - var(--bubble-progress, 0))));
}

.phase-two .chat-message p { margin: 0; }

.phase-two .chat-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  color: #536159;
  font-size: 10px;
  line-height: 1;
}

.phase-two .chat-time .icon { width: 14px; height: 11px; color: #168ab8; }

.phase-two .chat-typing {
  position: absolute;
  inset: 0 auto auto 0;
  display: none;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 13px 13px 13px 5px;
  background: #fff;
  box-shadow: 0 1px 2px #1c34251c;
}

.phase-two.story-ready .chat-message.is-typing .chat-typing { display: inline-flex; }

.phase-two .chat-typing > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #74827d;
  animation: phase-typing 1.05s ease-in-out 4;
}

.phase-two .chat-typing > span:nth-child(2) { animation-delay: .12s; }
.phase-two .chat-typing > span:nth-child(3) { animation-delay: .24s; }

@keyframes phase-typing {
  0%, 60%, 100% { opacity: .55; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

.phase-two .phone-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-top: 1px solid #e5e1da;
}

.phase-two .phone-composer {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 33px;
  padding: 4px 8px;
  border: 1px solid #e1dfd9;
  border-radius: 18px;
  background: #fff;
  color: #52635c;
  font-size: 11px;
}

.phase-two .phone-composer > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-two .phone-composer .icon { width: 15px; height: 15px; }

.phase-two .phone-mic {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #008176;
  color: #fff;
}

.phase-two .phone-mic .icon { width: 17px; height: 17px; }

.phase-two .chat-caption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  text-align: center;
}

.phase-two .savings-card {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid #e1eff2;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--phase-shadow);
}

.phase-two.story-ready .savings-card.is-saving {
  border-color: #b9e5e1;
  box-shadow: var(--phase-shadow), 0 0 0 3px #13b5b51a;
}

.phase-two .savings-card::after {
  position: absolute;
  top: -10px;
  right: 3px;
  width: 16px;
  height: 3px;
  content: "";
  border-radius: 4px;
  background: var(--turquoise);
  box-shadow: 6px 8px 0 -0.3px var(--phase-teal);
  transform: rotate(-41deg);
}

.phase-two .savings-kicker { margin-bottom: 7px; font-size: 10px; }

.phase-two .savings-heading {
  margin: 0 0 19px;
  font-size: clamp(25px, 2.45vw, 35px);
  font-weight: 800;
  letter-spacing: -.047em;
  line-height: 1.06;
}

.phase-two .savings-values { display: grid; gap: 11px; margin: 0; }

.phase-two .savings-value {
  position: relative;
  padding: 13px 10px 13px clamp(48px, 4.6vw, 68px);
  border: 1px solid #dfefef;
  border-radius: 17px;
  background: linear-gradient(140deg, #edf8f6, #e4f4f1);
}

.phase-two .savings-value:nth-child(2) {
  background: linear-gradient(145deg, #eaf7f6, #dcf1f0);
}

.phase-two .savings-value dt {
  font-size: clamp(13px, 1.14vw, 17px);
  font-weight: 700;
  line-height: 1.25;
}

.phase-two .savings-value dt .icon {
  position: absolute;
  top: 50%;
  left: clamp(12px, 1.2vw, 19px);
  width: clamp(22px, 2.15vw, 32px);
  height: clamp(22px, 2.15vw, 32px);
  color: #076d78;
  transform: translateY(-50%);
}

.phase-two .savings-value dd {
  margin: 4px 0 0;
  color: #086c78;
  font-size: clamp(29px, 3.1vw, 44px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.phase-two.story-ready [data-savings-value] {
  display: inline-block;
  opacity: var(--savings-progress, 0);
  transform: translateY(calc(4px * (1 - var(--savings-progress, 0))));
}

.phase-two .savings-disclaimer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 13px;
  background: #eef5f8;
  color: var(--ink-soft);
}

.phase-two .savings-disclaimer p { margin: 0; font-size: 12px; line-height: 1.43; }
.phase-two .savings-disclaimer .icon { width: 16px; height: 16px; color: #087685; }

.phase-two [data-phase-reveal] {
  transition: opacity .48s var(--ease), transform .62s var(--ease);
}

.phase-two [data-phase-reveal].phase-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}

@media (max-width: 1000px) {
  .phase-two .advice-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 37px;
  }

  .phase-two .advice-services { width: min(100%, 560px); }
  .phase-two .advice-heading { max-width: 17ch; }
  .phase-two .savings-card { width: min(100%, 400px); }
}

@media (max-width: 700px) {
  .phase-two { padding-top: 14px; }

  .phase-two .benefits {
    padding: 6px 17px;
    border-radius: 23px;
  }

  .phase-two .benefit-list { grid-template-columns: minmax(0, 1fr); }
  .phase-two .benefit-item { gap: 13px; padding: 13px 0; }

  .phase-two .benefit-item + .benefit-item {
    border-inline-start: 0;
    border-block-start: 1px solid var(--phase-rule);
  }

  .phase-two .advice-heading { margin-bottom: 28px; }
  .phase-two .advice-service-list { gap: 13px; }
  .phase-two .chat-message { font-size: 14px; }
  .phase-two .savings-card { border-radius: 23px; }
}

@media (max-width: 1000px) and (max-height: 740px) {
  .phase-two .phone-status { min-height: 27px; padding-block: 4px 2px; }
  .phase-two .phone-header { min-height: 44px; padding-block: 3px 5px; }
  .phase-two .phone-avatar { width: 32px; height: 32px; }
  .phase-two .chat-messages { gap: 6px; padding-block: 9px; }
  .phase-two .chat-message { font-size: 13.5px; line-height: 1.27; }
  .phase-two .chat-bubble { padding-block: 5px 4px; }
  .phase-two .chat-time { margin-top: 2px; }
  .phase-two .phone-footer { padding-block: 4px; }
  .phase-two .phone-screen::after { margin-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .phase-two [data-phase-reveal].phase-pending,
  .phase-two.story-ready .phone-shell,
  .phase-two.story-ready .chat-bubble,
  .phase-two.story-ready [data-savings-value] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phase-two.story-ready .chat-message.is-typing .chat-typing { display: none; }
}

/* The spacer gives the sticky stage a finite path in the document flow. */
.phase-two {
  --story-top: 122px;
}

.phase-two .chat-track {
  display: contents;
}

.phase-two .story-scroll-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 17px;
  margin-top: 3px;
  visibility: hidden;
  color: var(--phase-teal);
  font-size: 11px;
}

.phase-two .story-scroll-hint .icon {
  width: 14px;
  height: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .phase-two.story-ready .chat-history-window {
    max-height: var(--history-height, 370px);
    overflow: hidden;
    overflow: clip;
  }

  .phase-two.story-ready .advice-grid {
    position: sticky;
    top: var(--story-top);
  }

  .phase-two.story-ready .advice-story::after {
    display: block;
    height: 150vh;
    height: 150svh;
    content: "";
  }

  .phase-two.story-ready .story-scroll-hint {
    visibility: visible;
  }
}

@media (max-width: 1000px) {
  .phase-two {
    --story-top: 104px;
  }

  /* Referencia sin flujo para medir la altura con la barra del navegador visible. */
  .phase-two::after {
    position: absolute;
    inset: 0 auto auto 0;
    width: 0;
    height: 100svh;
    visibility: hidden;
    pointer-events: none;
    content: "";
  }

  .phase-two .chat-track {
    display: block;
    width: min(100%, 324px);
    min-width: 0;
  }
}

@media (max-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .phase-two.story-ready .advice-grid {
    position: static;
  }

  .phase-two.story-ready .advice-story::after {
    display: none;
  }

  .phase-two.story-ready .chat-stage {
    position: sticky;
    top: var(--story-top);
  }

  .phase-two.story-ready .chat-track::after {
    display: block;
    height: 88vh;
    height: 88svh;
    content: "";
  }

  .phase-two.story-ready .chat-typing {
    opacity: var(--typing-progress, 1);
    transform: translateY(calc(3px * (1 - var(--typing-progress, 1))));
  }
}

@media (max-width: 700px) {
  .phase-two {
    --story-top: 96px;
  }
}

.phase-two .chat-story-cta {
  margin-top: 9px;
  text-align: center;
}

.phase-two .chat-story-question {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.phase-two .chat-story-button {
  width: 100%;
  min-height: 44px;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
}

.phase-two .chat-story-button .icon {
  width: 21px;
  height: 21px;
}

.phase-two .chat-contact-status {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.phase-two.story-ready .chat-story-cta {
  opacity: var(--cta-progress, 0);
  transform: translateY(calc(8px * (1 - var(--cta-progress, 0))));
}

.phase-two.story-ready .chat-story-cta:not(.is-cta-visible) {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .phase-two.story-ready .chat-story-cta {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
