/* =============================================================
   alquiler.css
   DESIGN_VARIANCE: 7 | MOTION_INTENSITY: 5 | VISUAL_DENSITY: 4
   ============================================================= */

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

.alq-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.alq-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.55) 55%, rgba(8,18,28,0.15) 100%),
    linear-gradient(105deg, rgba(8,18,28,0.45) 0%, transparent 60%);
}
.alq-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 10s var(--ease-soft);
}
.alq-hero:hover .alq-hero-bg img { transform: scale(1); }

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

.alq-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.alq-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;
  max-width: 680px;
}
.alq-hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

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

/* Audience cards */
.alq-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 680px;
}

.alq-audience-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: pointer;
}
.alq-audience-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,153,153,0.4);
  transform: translateY(-3px);
}

.aac-label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.alq-audience-card p {
  font-size: clamp(.85rem, 1.3vw, .95rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}

.aac-arrow {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.4);
  transition: color .25s, transform .25s;
  margin-top: auto;
}
.alq-audience-card:hover .aac-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ── PROPIETARIOS ── */
.alq-propietarios {
  background: var(--ink, #0a1520);
  position: relative;
  overflow-x: clip; /* clip horizontal pero deja crecer vertical (necesario para el pin) */
  padding-bottom: 0;
}
.alq-propietarios::before {
  content: "";
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse, rgba(0,153,153,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero intro propietarios */
.alq-prop-hero {
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative; z-index: 1;
}

.alq-prop-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.alq-prop-hero-text {
  display: flex; flex-direction: column;
  gap: 2rem;
}
.alq-prop-hero-text .section-label { color: var(--gold); }

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

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

/* Tarjetas de ventajas */
.alq-prop-cards {
  display: flex; flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.alq-prop-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(255,255,255,0.02);
  transition: background .3s;
  position: relative;
}
.alq-prop-card:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.alq-prop-card:hover {
  background: rgba(0,153,153,0.05);
}
.alq-prop-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .3s;
}
.alq-prop-card:hover::before { opacity: 1; }

.apc-num {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--gold);
}

.alq-prop-card h3 {
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.3;
}

.alq-prop-card p {
  font-size: clamp(.825rem, 1.2vw, .9rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0;
}

/* Proceso propietarios wrapper */
.alq-proceso-wrap {
  padding-bottom: 0;
  position: relative; z-index: 1;
}

/* Fondo oscuro: sobreescribir colores del proceso */
.alq-proceso-wrap .vproceso-heading { color: rgba(255,255,255,0.9); }
.alq-proceso-wrap .section-label { color: var(--gold); }
.alq-proceso-wrap .vproceso-title { color: rgba(255,255,255,0.92); }
.alq-proceso-wrap .vproceso-desc { color: rgba(255,255,255,0.55); }
.alq-proceso-wrap .vproceso-num { color: var(--gold); }

/* Centrado vertical: quitar padding top extra del stage */
.alq-proceso-wrap .vproceso-stage {
  padding-block: 4rem;
  align-items: center;
}
.alq-proceso-wrap .vproceso-images {
  align-self: center;
}
.alq-proceso-wrap .vproceso-scroll-track {
  height: 130vh;
}
/* Panel del proceso fijado (pin): fondo oscuro opaco para que no se vea
   la sección de inquilinos por detrás mientras está fijo. */
.alq-proceso-wrap .vproceso-sticky {
  background: var(--ink, #0a1520);
}

/* ── INQUILINOS ── */
.alq-inquilinos {
  background: var(--bg-2);
  overflow-x: clip; /* idem: permite que el pin reserve alto sin recortar */
  padding-top: 0;
}

.alq-inq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 2;
  background: var(--bg-2); /* opaco al fijarse (pin) */
}

/* Imagen lateral — sticky mientras scrollea el contenido */
.alq-inq-img {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  align-self: start;
}
.alq-inq-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.alq-inq-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg-2) 100%);
}

/* Contenido derecho — scroll track + sticky */
.alq-inq-content {
  position: relative;
}


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

.alq-inq-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem);
  gap: 2.5rem;
  overflow: hidden;
}

.alq-inq-header-block {
  display: flex; flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.alq-inq-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.alq-inq-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.alq-inq-lead {
  font-size: clamp(.875rem, 1.3vw, 1rem);
  color: var(--cream-2);
  line-height: 1.75;
  max-width: 44ch;
}

/* Pasos — apilados, solo el activo visible */
.alq-inq-pasos {
  position: relative;
  height: clamp(100px, 18vh, 160px);
  flex-shrink: 0;
}

.alq-inq-paso {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(32px);
  transition:
    transform .8s cubic-bezier(0.16,1,0.3,1),
    opacity .65s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.alq-inq-paso.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.alq-inq-paso.is-leaving {
  opacity: 0;
  transform: translateY(-32px);
  transition:
    transform .5s cubic-bezier(0.4,0,1,1),
    opacity .4s ease;
  pointer-events: none;
}

.aip-num {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--gold);
  padding-top: .3rem;
  flex-shrink: 0;
  min-width: 2rem;
}

.aip-body { display: flex; flex-direction: column; gap: .5rem; }

.alq-inq-paso h3 {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
  margin: 0;
}

.alq-inq-paso p {
  font-size: clamp(.875rem, 1.3vw, 1rem);
  color: var(--cream-2);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

/* Dots + CTA */
.alq-inq-footer {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.alq-inq-dots {
  display: flex;
  gap: .5rem;
}

.aid {
  width: 2rem;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  transition: background .4s, width .4s;
  cursor: pointer;
}
.aid.is-active {
  background: var(--gold);
  width: 3rem;
}

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

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

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

.alq-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;
}
.alq-cta-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

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

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

/* Testimonial card */
.alq-cta-card {
  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.25rem;
}
.alq-cta-card .section-label { color: var(--gold); }

.alq-cta-card > p {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

.alq-cta-author {
  display: flex; align-items: center; gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.alq-cta-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;
}

.alq-cta-name {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.alq-cta-role {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: .15rem 0 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .alq-prop-hero-inner {
    grid-template-columns: 1fr;
  }

  .alq-inq-split {
    grid-template-columns: 1fr;
  }
  .alq-inq-img {
    height: 45vh;
    position: relative;
  }
  .alq-inq-img img { position: absolute; }
  .alq-inq-img::after {
    background: linear-gradient(to bottom, transparent 60%, var(--bg-2) 100%);
  }

  /* Desactiva sticky en tablet/móvil — muestra pasos estáticos */
  .alq-inq-scroll-track { height: auto; }
  .alq-inq-sticky {
    position: static;
    height: auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  }
  .alq-inq-pasos {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .alq-inq-paso {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .alq-inq-paso.is-active,
  .alq-inq-paso.is-leaving {
    opacity: 1;
    transform: none;
  }
  .alq-inq-dots { display: none; }

  .alq-cta-inner {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

@media (max-width: 768px) {
  .alq-hero-cards {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .alq-cta-card { order: -1; }

  /* Las reglas de .alq-proceso-wrap tienen mayor especificidad que los
     estilos mobiles de venta.css y los sobreescriben. Se resetean aqui. */
  .alq-proceso-wrap .vproceso-scroll-track { height: auto; }
  .alq-proceso-wrap .vproceso-sticky {
    position: static;
    height: auto;
    padding: 3rem clamp(1.5rem, 6vw, 2.5rem);
    background: var(--ink, #0a1520);
  }
  .alq-proceso-wrap .vproceso-stage {
    padding-block: 0;
    padding-inline: 0;
  }
}
