/* =============================================================
   venta.css
   DESIGN_VARIANCE: 8 | MOTION_INTENSITY: 6 | VISUAL_DENSITY: 4
   ============================================================= */

/* ── HERO ── */
.venta-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.venta-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.venta-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,18,28,0.97) 0%, rgba(8,18,28,0.6) 50%, rgba(8,18,28,0.2) 100%),
    linear-gradient(105deg, rgba(8,18,28,0.5) 0%, transparent 60%);
}
.venta-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 10s var(--ease-soft);
}
.venta-hero:hover .venta-hero-bg img { transform: scale(1); }

.venta-hero-content {
  position: relative; z-index: 1;
  padding-top: 7rem;
  padding-bottom: clamp(4rem, 10vw, 9rem);
}

.venta-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.venta-hero-text {
  display: flex; flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}

.venta-hero-title {
  font-family: var(--sans);
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.venta-hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.venta-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  line-height: 1.75;
}

.venta-hero-actions {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 2rem;
  margin-top: .5rem;
}

.venta-hero-link {
  color: rgba(255,255,255,0.7);
  font-size: .875rem;
  letter-spacing: .04em;
  transition: color .25s;
}
.venta-hero-link:hover { color: #fff; }

/* Stats bar horizontal */
.venta-hero-stats {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(4rem, 10vw, 9rem);
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.75rem clamp(1.5rem, 4vw, 3rem);
  max-width: fit-content;
}
.vhs-item {
  display: flex; flex-direction: column; gap: .4rem;
  padding-inline: clamp(1.5rem, 3vw, 2.5rem);
}
.vhs-item:first-child { padding-left: 0; }
.vhs-item:last-child { padding-right: 0; }
.vhs-num {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.vhs-label {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  max-width: 16ch;
}
.vhs-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ── PROBLEMA ── */
.venta-problema {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.venta-problema-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.venta-problema-left .section-title {
  margin-top: .75rem;
}
.venta-problema-right {
  padding-top: 1rem;
}

.venta-problema-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.venta-problema-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.venta-problema-list li:hover { background: var(--bg-card); }

.vpl-icon {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(200, 30, 30, 0.12);
  color: #e05555;
  font-size: .75rem;
  font-weight: 700;
  margin-top: .15rem;
}
.venta-problema-list strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(.9rem, 1.3vw, 1rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: .4rem;
}
.venta-problema-list p {
  font-size: clamp(.825rem, 1.2vw, .9rem);
  color: var(--cream-2);
  line-height: 1.7;
  margin: 0;
}

/* ── PROPUESTA ── */
.venta-propuesta {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink, #0a1520);
  position: relative;
  overflow: hidden;
}
.venta-propuesta::before {
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse, rgba(0,153,153,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.venta-propuesta-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.venta-propuesta-text {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 7rem;
}
.venta-propuesta-text .section-label { color: var(--gold); }
.venta-propuesta-text .section-title { margin-top: .5rem; color: rgba(255,255,255,0.9); }
.venta-propuesta-text > p {
  font-size: clamp(.9rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 46ch;
}

.venta-propuesta-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
}

.vpf-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: border-color .3s, background .3s;
}
.vpf-item:hover {
  border-color: rgba(0,153,153,0.25);
  background: rgba(0,153,153,0.04);
}

.vpf-num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--gold);
  padding-top: .2rem;
  min-width: 2rem;
}
.vpf-item h3 {
  font-family: var(--sans);
  font-size: clamp(.875rem, 1.2vw, .95rem);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.vpf-item p {
  font-size: clamp(.8rem, 1.1vw, .875rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0;
}

/* ── PROCESO — sticky scroll ── */
.venta-proceso {
  background: var(--bg-2);
}

.vproceso-scroll-track {
  height: 130vh;
  position: relative;
}

/* El panel se pega y no se mueve */
.vproceso-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: 5rem;
  background: var(--bg-2); /* opaco: al fijarse (pin) no deja ver la sección de abajo por detrás */
  z-index: 2;
}

/* Cabecera */
.vproceso-header {
  position: absolute;
  top: clamp(2rem, 5vh, 4rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container, 1280px);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 2;
}
.vproceso-heading {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.vproceso-heading em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* Dots de progreso */
.vproceso-dots {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 2;
}
.vpd {
  width: 2rem;
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  transition: background .4s, width .4s;
}
.vpd.is-active {
  background: var(--gold);
  width: 3rem;
}

/* Stage: layout texto + imagen */
.vproceso-stage {
  container: stage / inline-size;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: var(--container, 1280px);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  height: 100%;
  padding-block: 8rem 5rem;
}

/* Columna textos: todos apilados, solo el activo visible */
.vproceso-texts {
  position: relative;
  height: clamp(200px, 35vh, 320px);
}
.vproceso-text-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  transform: translateX(-72px);
  transition:
    transform .9s cubic-bezier(0.16,1,0.3,1),
    opacity .7s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  will-change: transform, opacity;
}
.vproceso-text-item.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.vproceso-text-item.is-leaving {
  opacity: 0;
  transform: translateX(72px);
  transition:
    transform .6s cubic-bezier(0.4,0,1,1),
    opacity .45s ease;
  pointer-events: none;
}

.vproceso-num {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold);
}
.vproceso-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.vproceso-desc {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--cream-2);
  line-height: 1.8;
  max-width: 48ch;
}

/* Columna imágenes: todas apiladas, crossfade */
.vproceso-images {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 32px 80px -16px rgba(8,18,28,0.4);
}
.vproceso-img-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(72px);
  transition:
    transform .9s cubic-bezier(0.16,1,0.3,1),
    opacity .7s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}
.vproceso-img-item.is-active {
  opacity: 1;
  transform: translateX(0);
}
.vproceso-img-item.is-leaving {
  opacity: 0;
  transform: translateX(-72px);
  transition:
    transform .6s cubic-bezier(0.4,0,1,1),
    opacity .45s ease;
}
.vproceso-img-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(0.16,1,0.3,1);
}
.vproceso-img-item.is-active img {
  transform: scale(1);
}

/* ── RESULTADOS ── */
.venta-resultados {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--bg-2);
}
.venta-resultados-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.vr-nums {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.vr-num-item {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.vr-big {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  min-width: 6rem;
}
.vr-label {
  font-size: clamp(.85rem, 1.3vw, .95rem);
  color: var(--cream-2);
  line-height: 1.5;
}

.vr-quote {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  margin: 0;
}
.vr-quote-icon {
  width: 1.75rem; height: 1.75rem;
  color: var(--gold);
  opacity: 0.5;
}
.vr-quote blockquote {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--cream);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}
.vr-quote figcaption {
  display: flex; align-items: center; gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.vr-avatar {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: rgba(0,153,153,0.1);
  border: 1px solid rgba(0,153,153,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}
.vr-name {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--cream);
}
.vr-role {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-top: .15rem;
}

/* ── FAQ ── */
.venta-faq {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--bg-2);
}
.venta-faq-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(4rem, 10vw, 9rem);
  align-items: start;
}
.venta-faq .section-header {
  display: flex; flex-direction: column;
  align-items: flex-start; text-align: left;
  position: sticky; top: 7rem;
}
.venta-faq .section-header .section-title { margin-top: 1rem; }

/* ── CTA FINAL ── */
.venta-cta {
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--ink, #0a1520);
  position: relative;
  overflow: hidden;
}
.venta-cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0,153,153,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0,153,153,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.venta-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 8vw, 7rem);
  align-items: center;
  position: relative; z-index: 1;
}

.venta-cta-text {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.venta-cta-text .section-label { color: var(--gold); }

.venta-cta-title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.venta-cta-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.venta-cta-text > p {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 46ch;
}

.venta-cta-actions {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-top: .5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: border-color .25s, color .25s, background .25s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Quote card */
.venta-cta-quote {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}

.vcq-icon {
  width: 2rem; height: 2rem;
  color: var(--gold);
  opacity: 0.6;
}

.vcq-text {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  line-height: 1.7;
}

.vcq-author {
  display: flex; align-items: center; gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.vcq-avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(0,153,153,0.15);
  border: 1px solid rgba(0,153,153,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}
.vcq-name {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.vcq-role {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: .15rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .venta-propuesta-inner,
  .venta-problema-inner {
    grid-template-columns: 1fr;
  }
  .venta-propuesta-text { position: static; }
  .venta-propuesta-features { grid-template-columns: 1fr 1fr; }

  .venta-resultados-inner {
    grid-template-columns: 1fr;
  }

  /* Proceso sticky: columna única en tablet */
  .vproceso-stage {
    grid-template-columns: 1fr;
  }
  .vproceso-images {
    aspect-ratio: 16/7;
    max-height: 30vh;
  }
  .vproceso-texts {
    height: auto;
    min-height: clamp(160px, 25vh, 240px);
  }
}

@media (max-width: 768px) {
  .venta-hero-stats {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: none;
    width: calc(100% - clamp(3rem, 10vw, 8rem));
    margin: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 9rem);
  }
  .vhs-item { padding-inline: 0; }
  .vhs-divider { width: 100%; height: 1px; }

  .venta-propuesta-features { grid-template-columns: 1fr; }

  /* Proceso sticky desactivado en móvil → TODOS los pasos apilados y
     scrolleables (texto + su imagen interlazados). Sin pin, sin dots. */
  .vproceso-scroll-track { height: auto; }
  .vproceso-sticky {
    position: static;
    height: auto;
    padding: 3rem clamp(1.5rem, 6vw, 2.5rem);
  }
  .vproceso-header {
    position: static;
    transform: none;
    padding-inline: 0;
    margin-bottom: 2.5rem;
  }
  /* La rejilla 2-columnas se convierte en una pila vertical y los wrappers
     de texto/imagen se "disuelven" para poder interlazar paso a paso. */
  .vproceso-stage {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 0;
    padding-inline: 0;
    height: auto;
    max-width: none;
  }
  .vproceso-texts,
  .vproceso-images {
    display: contents;
  }
  /* Todos los pasos visibles, sin animación de entrada/salida */
  .vproceso-text-item,
  .vproceso-img-item {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
  .vproceso-text-item {
    display: flex;
    margin-top: 1.5rem;
  }
  .vproceso-text-item:first-child { margin-top: 0; }
  .vproceso-img-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 20px 50px -16px rgba(8,18,28,0.35);
  }
  .vproceso-img-item img { transform: none; }
  /* Interlazado: texto 0, imagen 0, texto 1, imagen 1, … (por data-step) */
  .vproceso-text-item[data-step="0"] { order: 0; }
  .vproceso-img-item[data-step="0"]  { order: 1; }
  .vproceso-text-item[data-step="1"] { order: 2; }
  .vproceso-img-item[data-step="1"]  { order: 3; }
  .vproceso-text-item[data-step="2"] { order: 4; }
  .vproceso-img-item[data-step="2"]  { order: 5; }
  .vproceso-text-item[data-step="3"] { order: 6; }
  .vproceso-img-item[data-step="3"]  { order: 7; }
  .vproceso-text-item[data-step="4"] { order: 8; }
  .vproceso-img-item[data-step="4"]  { order: 9; }
  .vproceso-text-item[data-step="5"] { order: 10; }
  .vproceso-img-item[data-step="5"]  { order: 11; }
  .vproceso-dots { display: none; }

  .venta-faq-inner,
  .venta-cta-inner {
    grid-template-columns: 1fr;
  }
  .venta-faq .section-header { position: static; }
  .venta-cta-quote { order: -1; }
}
