.buy-process,
.visit-scene {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  --parallax-offset: 0px;
}

.process-background,
.visit-panel > img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-offset), 0) scale(1.04);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 450ms ease;
  will-change: transform;
}

.process-background {
  z-index: 0;
  object-position: center 52%;
}

.process-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.54) 0%, rgba(8, 8, 8, 0.32) 27%, rgba(8, 8, 8, 0.62) 49%, rgba(8, 8, 8, 0.74) 100%),
    linear-gradient(90deg, rgba(52, 58, 77, 0.32), rgba(61, 59, 58, 0.08) 52%, rgba(52, 58, 77, 0.24));
  pointer-events: none;
}

.process-title {
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: 4;
  width: min(860px, calc(100% - 48px));
  margin: 0;
  color: var(--white);
  font-size: clamp(3.2rem, 5.2vw, 6.1rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: none;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.process-title strong { color: var(--cream); font-weight: 600; }
.process-title::after { width: 62px; height: 2px; display: block; margin: 22px auto 0; content: ""; background: var(--cream); }
.motion-ready .process-title[data-reveal] { transform: translate(-50%, calc(-50% + 32px)); }
.motion-ready .process-title[data-reveal].is-revealed { transform: translate(-50%, -50%); }

.process-steps {
  position: absolute;
  top: 58%;
  right: clamp(50px, 8vw, 130px);
  left: clamp(50px, 8vw, 130px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  min-height: 238px;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.process-steps li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: 152px;
  content: "";
  background: rgba(246, 240, 226, 0.72);
}

.step-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  font-size: 34px;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.step-number {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
}

.process-steps p {
  margin: 12px 16px 0;
  color: var(--white);
  font-size: clamp(0.88rem, 1.02vw, 1.08rem);
  line-height: 1.45;
}

.process-steps li:hover .step-icon { background: var(--cream); color: var(--slate); transform: translateY(-5px) scale(1.06); }

.visit-scene { display: grid; grid-template-columns: 1fr 1fr; }
.visit-panel { position: relative; z-index: 2; overflow: hidden; --parallax-offset: 0px; }
.visit-panel + .visit-panel { border-left: 1px solid rgba(246, 240, 226, 0.38); }
.showroom-panel > img { object-position: center; }
.store-panel > img { object-position: center 38%; filter: grayscale(0.25); }

.visit-scene > .scene-artwork img {
  object-position: center top;
  transform: translate3d(0, var(--parallax-offset, 0px), 0) scale(1);
}

.visit-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.22), transparent 40%, rgba(8, 8, 8, 0.68));
  transition: background 300ms ease;
}

.visit-card {
  position: absolute;
  right: clamp(24px, 4vw, 68px);
  bottom: clamp(44px, 7vh, 82px);
  left: clamp(24px, 4vw, 68px);
  z-index: 3;
  box-sizing: border-box;
  height: clamp(300px, 37vh, 340px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
  border: 1px solid rgba(240, 240, 240, 0.24);
  border-radius: 8px;
  background: rgba(22, 22, 22, 0.75);
  backdrop-filter: blur(9px);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.showroom-panel .visit-card {
  height: clamp(350px, 43vh, 400px);
}

.visit-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 12px 0; }
.visit-row + .visit-row { border-top: 1px solid rgba(246, 240, 226, 0.36); }
.visit-row .material-symbols-outlined { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--cream); border-radius: 50%; color: var(--cream); font-size: 21px; }
.visit-row p { margin: 0; }
.visit-row strong,
.visit-row small,
.visit-row em { display: block; }
.visit-row strong { color: var(--cream); font-size: 0.77rem; letter-spacing: 0.05em; text-transform: uppercase; }
.visit-row small { margin-top: 5px; color: var(--white); font-size: 0.69rem; font-style: normal; line-height: 1.6; }
.visit-row em { margin-top: 5px; color: var(--cream); font-size: 0.66rem; font-style: normal; }
.visit-row b { color: var(--white); font-size: clamp(0.9rem, 1.15vw, 1.15rem); font-weight: 600; line-height: 38px; }

.appointment-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.appointment-button .material-symbols-outlined { font-size: 18px; }
.appointment-button:hover,
.appointment-button:focus-visible { background: transparent; color: var(--cream); transform: translateY(-2px); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .buy-process:hover .process-background,
  .visit-panel:hover > img { transform: translate3d(0, var(--parallax-offset), 0) scale(1.085); filter: saturate(1.04); }
  .visit-panel:hover .visit-shade { background: linear-gradient(180deg, rgba(8, 8, 8, 0.14), transparent 38%, rgba(52, 58, 77, 0.72)); }
  .visit-panel:hover .visit-card { border-color: rgba(246, 240, 226, 0.72); background: rgba(52, 58, 77, 0.86); transform: translateY(-7px); }
  .uses-scene-artwork .visit-scene:has(.visit-panel:hover) { --artwork-scale: 1.035; }
}

@media (max-width: 800px) {
  .buy-process { min-height: 720px; }
  .process-background { object-position: 56% center; }
  .process-shade { background: linear-gradient(180deg, rgba(8, 8, 8, 0.56), rgba(8, 8, 8, 0.3) 30%, rgba(8, 8, 8, 0.68) 54%, rgba(8, 8, 8, 0.78)); }
  .process-title { top: 28%; font-size: clamp(2.25rem, 10vw, 3.15rem); line-height: 1.05; }
  .process-title::after { width: 44px; margin-top: 14px; }
  .process-steps { top: 49%; right: auto; left: 50%; width: min(286px, calc(100% - 64px)); display: grid; grid-template-columns: 1fr; gap: 6px; transform: translateX(-50%); }
  .motion-ready .process-steps[data-reveal] { transform: translate(-50%, 32px); }
  .motion-ready .process-steps[data-reveal].is-revealed { transform: translate(-50%, 0); }
  .process-steps li { min-height: 67px; grid-template-columns: 42px 26px 1fr; justify-items: start; align-items: center; align-content: center; text-align: left; }
  .process-steps li:not(:last-child)::after { top: 47px; left: 20px; width: 1px; height: 30px; }
  .step-icon { width: 40px; height: 40px; font-size: 21px; }
  .step-number { min-width: 19px; height: 19px; margin: 0 5px 0 -7px; font-size: 0.6rem; }
  .process-steps p { margin: 0 0 0 6px; font-size: 0.68rem; line-height: 1.4; }

  .visit-scene { height: auto; min-height: 100svh; display: block; }
  .visit-panel { height: 100svh; min-height: 640px; }
  .visit-panel + .visit-panel { border-top: 1px solid rgba(246, 240, 226, 0.38); border-left: 0; }
  .visit-scene > .scene-artwork { display: none; }
  .visit-panel {
    background-image: url("../assets/scenes/compra-presencial-mobile.webp");
    background-repeat: no-repeat;
    background-size: auto 200%;
  }
  .showroom-panel { background-position: center top; }
  .store-panel { background-position: center bottom; }
  .showroom-panel > img { object-position: center; }
  .store-panel > img { object-position: center top; }
  .visit-card { top: 50%; right: 20px; bottom: auto; left: 20px; height: auto; padding: 10px 16px; transform: translateY(-50%); }
  .showroom-panel .visit-card { height: auto; }
  .motion-ready .visit-card[data-reveal] { transform: translateY(calc(-50% + 32px)); }
  .motion-ready .visit-card[data-reveal].is-revealed { transform: translateY(-50%); }
  .appointment-button { min-height: 38px; margin-top: 10px; font-size: 0.62rem; }
  .visit-row { grid-template-columns: 38px 1fr; gap: 12px; padding: 9px 0; }
  .visit-row .material-symbols-outlined { width: 32px; height: 32px; font-size: 18px; }
  .visit-row strong { font-size: 0.64rem; }
  .visit-row small { font-size: 0.58rem; line-height: 1.45; }
  .visit-row em { font-size: 0.56rem; }
  .visit-row b { font-size: 0.83rem; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .process-background,
  .visit-panel > img { transform: none !important; }
  .motion-ready .process-title[data-reveal] { transform: translate(-50%, -50%) !important; }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .motion-ready .process-steps[data-reveal] { transform: translateX(-50%) !important; }
}
