/* ============================================================
   DELANO — EXPERIENCIA COMPLETA (rama de prueba)
   Prestige Noir design system. Scoped to this page only.
   Progressive enhancement: hidden/animated states only apply
   under html.js (set by an inline script at the very top of
   <head>). No-JS visitors see everything, already in place.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:root {
  --dx-gold:       #c4a46b;
  --dx-gold-light: #e0c898;
  --dx-gold-deep:  #a8893d;
  --dx-noir:       #0c0a08;
  --dx-noir-2:     #0c0a08;
  --dx-cream:      #f5f0e8;
  --dx-ink:        #252119;
  --dx-white:      #fdfaf5;
  --dx-muted:      #9a8e80;
  --dx-hairline:   rgba(196,164,107,.22);
}

/* ---------- Grain overlay (shared) ---------- */
.dx-hero__bg::after,
.dx-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hairline draw-in ---------- */
.dx-hairline {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--dx-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(.22,1,.36,1);
}
.dx-reveal-line.is-in .dx-hairline,
html:not(.js) .dx-hairline { transform: scaleX(1); }

.dx-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dx-gold);
}
.dx-num { color: var(--dx-gold-light); }

/* ---------- Generic reveal (fade+rise), gated behind html.js ---------- */
html.js .dx-reveal,
html.js .dx-reveal-line {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1);
}
html.js .dx-reveal.is-in,
html.js .dx-reveal-line.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .dx-reveal, html.js .dx-reveal-line { transition-duration: 0.2s; }
}

/* ---------- Line-split title reveal ---------- */
.dx-h2, .dx-hero__title, .dx-capitulo__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--dx-ink);
}
.dx-h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
.dx-h2--light { color: var(--dx-cream); }
.dx-h2--outline { color: transparent; -webkit-text-stroke: 1.5px var(--dx-gold); text-stroke: 1.5px var(--dx-gold); }
[data-split-lines].dx-h2--outline .dx-line span { color: transparent; -webkit-text-stroke: 1.5px var(--dx-gold); }

.dx-fineprint { margin-top: 2rem; font-size: 0.72rem; color: rgba(253,250,245,0.4); max-width: 42ch; line-height: 1.6; }
.dx-duo-section .dx-fineprint, .dx-gallery__intro .dx-fineprint { color: rgba(37,33,25,0.45); }
.dx-h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); color: var(--dx-cream); margin-bottom: 0.75rem; }

[data-split-lines] .dx-line { overflow: hidden; display: block; }
[data-split-lines] .dx-line span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(.22,1,.36,1);
}
[data-split-lines].is-in .dx-line span { transform: translateY(0); }
html:not(.js) [data-split-lines] .dx-line span { transform: none; }
[data-split-lines] .dx-line:nth-child(2) span { transition-delay: 0.12s; }
[data-split-lines] .dx-line:nth-child(3) span { transition-delay: 0.24s; }
[data-split-lines] .dx-line:nth-child(4) span { transition-delay: 0.36s; }

/* ---------- Drop cap ---------- */
.dx-dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--dx-gold-deep);
}

/* ---------- Pull quote ---------- */
.dx-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--dx-ink);
  border-left: 2px solid var(--dx-gold);
  padding-left: 1.5rem;
  margin-block: 2rem;
}
.dx-pullquote::before { content: '“'; color: var(--dx-gold); }
.dx-pullquote::after { content: '”'; color: var(--dx-gold); }

/* ---------- Buttons: metallic gold sheen + magnetic (JS adds transform) ---------- */
.dx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--dx-gold);
  background: none;
  color: var(--dx-gold-light);
  overflow: hidden;
  isolation: isolate;
}
/* Primary: brushed-metal gold gradient with subtle volume (Jessica's
   preference from the first preview, reinstated over the flat-gold R3
   treatment). */
.dx-btn--gold {
  color: var(--dx-noir);
  font-weight: 600; letter-spacing: 0.14em;
  border-color: var(--dx-gold-light);
  background:
    repeating-linear-gradient(0deg, rgba(253,250,245,0.06) 0px, rgba(253,250,245,0.06) 1px, transparent 1px, transparent 3px),
    linear-gradient(100deg, var(--dx-gold-deep) 0%, var(--dx-gold) 45%, var(--dx-gold-light) 100%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 0%;
  box-shadow:
    inset 0 1px 0 rgba(253,250,245,0.45),
    inset 0 -1px 0 rgba(12,10,8,0.25),
    0 10px 24px -12px rgba(196,164,107,0.45);
  transition: transform 0.2s ease, background-position 0.55s ease, box-shadow 0.2s ease;
}
.dx-btn--gold::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 0%, rgba(253,250,245,0.35) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}
.dx-btn--gold:hover {
  transform: translateY(-1px);
  background-position: 0 0, 100% 0%;
}
.dx-btn--gold:hover::after { transform: translateX(130%); }
.dx-btn--ghost {
  color: var(--dx-gold-light);
  border-style: solid; border-width: 1px; border-color: var(--dx-gold);
  border-image: linear-gradient(100deg, var(--dx-gold-deep), var(--dx-gold-light)) 1;
}
.dx-btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--dx-gold-deep), var(--dx-gold) 45%, var(--dx-gold-light) 100%);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.dx-btn--ghost:hover { color: var(--dx-noir); }
.dx-btn--ghost:hover::before { transform: translateY(0); }
.dx-btn__arrow { transition: transform 0.3s ease; }
.dx-btn:hover .dx-btn__arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
/* #site-header reserves 80px of normal flow for the fixed nav on most pages;
   this page wants the hero to render behind it instead, so the reservation is
   neutralized here rather than cancelled with a negative margin — a negative
   margin gets silently clipped on mobile, where a global rule makes <main>
   an overflow-clipping container and cuts off anything above its own top edge. */
#site-header { height: 0 !important; }

.dx-hero {
  position: relative;
  min-height: 100svh;
  padding-top: 80px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dx-noir);
}

/* Header: transparent over the hero, solid Prestige Noir once scrolled. */
.nav { background-color: transparent; border-bottom: 1px solid transparent; transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; }
.nav.nav--scrolled { background-color: rgba(12,10,8,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--dx-hairline); }
.dx-hero__bg { position: absolute; inset: 0; z-index: 0; }
.dx-hero__bg picture, .dx-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Video: fades in over the poster once it can play; poster + crop stay the
   permanent view under prefers-reduced-motion / save-data / autoplay failure. */
.dx-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
html.js .dx-hero__video.is-ready { opacity: 1; }
html.js .dx-hero__video.is-ready { animation: dx-hero-dolly 20s ease-in-out infinite; }
@keyframes dx-hero-dolly { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Sun-position lens glow, breathing gently in sync with the video loop. */
.dx-hero__glow {
  position: absolute; left: 44%; top: 56%; width: 240px; height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224,200,152,0.85) 0%, rgba(196,164,107,0.35) 42%, transparent 72%);
  mix-blend-mode: screen; pointer-events: none; z-index: 1;
  opacity: 0.25;
}
html.js .dx-hero__glow { animation: dx-glow-breathe 6s ease-in-out infinite; }
@keyframes dx-glow-breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.45; } }

/* Tower sits in the left third of the supplied render (fixed camera, not
   re-croppable); the text column and its darkening gradient mirror R2's
   spec to the right side instead of flipping the footage. R3: single clean
   ramp, no stacked stops ("sin bandas ni bordes visibles"). */
.dx-hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent 45%, rgba(12,10,8,0.75) 100%),
    linear-gradient(to top, rgba(12,10,8,0.9) 0%, rgba(12,10,8,0.35) 45%, rgba(12,10,8,0.08) 75%, rgba(12,10,8,0.3) 100%),
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(12,10,8,0.4) 100%);
}
.dx-hero__content {
  position: relative; z-index: 2; padding-block: 4.5rem 4rem; padding-inline: 0;
  max-width: 620px; margin-inline: auto max(8vw, 2rem);
}
.dx-hero__title { font-size: clamp(2rem, 3.4vw, 3.6rem); color: var(--dx-cream); letter-spacing: -0.01em; margin-block: 1rem 1.25rem; }
.dx-hero__subtitle { max-width: 54ch; color: rgba(253,250,245,0.8); font-size: var(--text-md); line-height: 1.6; }
.dx-hero__credential { margin-top: 0.6rem; color: rgba(253,250,245,0.55); font-size: var(--text-sm); }
html.js #dx-hero-subtitle.dx-reveal-line,
html.js .dx-hero__credential.dx-reveal-line { transform: none; transition: opacity 0.4s ease; }
.dx-hero__ctas { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }

@media (min-width: 1600px) {
  .dx-hero__bg::after { opacity: 0.08; }
}
.dx-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(253,250,245,0.6);
}
.dx-hero__scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--dx-gold), transparent); overflow: hidden; position: relative; }
html.js .dx-hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--dx-gold-light); animation: dx-drip 1.8s ease-in-out infinite;
}
@keyframes dx-drip { 0% { top: -100%; } 100% { top: 100%; } }

/* ---------- Hero opening: "Destello sobre el cristal" ----------
   R3 replacement for the curtain/veil effect (removed — it rendered as
   torn-paper edges and a grey band). First-visit only (sessionStorage);
   skipped under reduced motion; fast-forwarded the moment the visitor
   scrolls. A horizontal hairline draws at the horizon (600ms), then the
   scene opens via clip-path both upward and downward at once (900ms) —
   straight clean edges, no texture. */
.dx-hero__opening { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--dx-noir); }
.dx-hero__opening-line {
  position: absolute; left: 0; top: 50%; width: 0; height: 1px;
  background: var(--dx-gold); transform: translateY(-50%);
  transition: width 0.6s ease;
}
.dx-hero__opening.is-drawing .dx-hero__opening-line,
.dx-hero__opening.is-opening .dx-hero__opening-line { width: 100%; }
.dx-hero__opening.is-opening {
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 0.9s cubic-bezier(.22,1,.36,1);
}
.dx-hero__opening.is-open { clip-path: inset(0 0 0 0); opacity: 0; transition: opacity 0.3s ease; }
html.js .dx-hero__opening:not(.is-drawing):not(.is-opening):not(.is-open) { clip-path: inset(0 0 0 0); }
html:not(.js) .dx-hero__opening { display: none; }

/* Tower-glass glint: a diagonal band of light clipped to the tower's
   silhouette (hand-traced from the fixed-camera render, since the pixel-
   perfect tower cutout from R2 was intentionally skipped — see delivery
   notes), sweeping bottom-to-top through a tall repeated gradient. */
.dx-hero__glint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: soft-light; opacity: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(253,250,245,0.95) 50%, transparent 58%);
  background-size: 100% 320%;
  background-position: 0% 130%;
  clip-path: polygon(21.9% 18.75%, 23.4% 20.8%, 24.8% 24.3%, 23.4% 27.1%, 25.8% 29.9%, 28.5% 33.3%, 30.9% 37.5%, 32.4% 43.1%, 33.6% 50%, 34.4% 58.3%, 34.6% 68.1%, 34.4% 77.8%, 33.75% 87.5%, 32.8% 100%, 14.1% 100%, 14.3% 83.3%, 14.7% 69.4%, 15.2% 56.9%, 16% 45.8%, 17.2% 36.1%, 18.75% 27.8%, 19.9% 22.2%);
}
.dx-hero__glint.is-sweeping { animation: dx-glint-move 1.4s cubic-bezier(.3,0,.2,1); }
.dx-hero__glint.is-hovering { opacity: 0.4; }
@keyframes dx-glint-move {
  0% { background-position: 0% 130%; opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { background-position: 0% -30%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-hero__glint { display: none; }
}
@media (max-width: 767px) {
  .dx-hero__glint {
    clip-path: polygon(38.6% 20.9%, 41.7% 22.7%, 44.4% 25.8%, 41.7% 27.7%, 48.6% 30.9%, 55.6% 34.4%, 59.7% 38.3%, 62.5% 43.75%, 64.6% 50.8%, 66% 58.6%, 66.7% 66.4%, 66.4% 74.2%, 65.3% 82%, 63.2% 89.8%, 61.1% 100%, 22.9% 100%, 21.5% 91.4%, 20.8% 82.8%, 20.6% 74.2%, 20.8% 65.6%, 21.5% 57%, 22.9% 48.4%, 25% 40.6%, 27.8% 33.6%, 31.25% 28.1%, 35.4% 23.4%);
  }
}

/* ============================================================
   DATOS CLAVE
   ============================================================ */
.dx-datos { background: var(--dx-noir); padding-block: 3.5rem; border-bottom: 1px solid var(--dx-hairline); }
.dx-datos__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.dx-datos__item { padding-inline: 1.5rem; border-left: 1px solid var(--dx-hairline); display: flex; flex-direction: column; gap: 0.4rem; }
.dx-datos__item:first-child { border-left: none; padding-left: 0; }
.dx-datos__num { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: clamp(2rem, 4vw, 3rem); color: var(--dx-gold-light); line-height: 1; }
.dx-datos__label { font-family: var(--font-body); font-size: 0.78rem; color: rgba(253,250,245,0.6); line-height: 1.4; }
.dx-datos__note { margin-top: 2rem; max-width: 70ch; font-size: var(--text-sm); color: rgba(253,250,245,0.5); line-height: 1.7; }

@media (max-width: 767px) {
  .dx-datos__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .dx-datos__item { border-left: none; padding-left: 0; border-top: 1px solid var(--dx-hairline); padding-top: 1rem; }
}

/* ============================================================
   01 LEGADO — sticky giant year + timeline
   ============================================================ */
.dx-legado { background: var(--dx-cream); display: grid; grid-template-columns: 0.9fr 1.1fr; }
.dx-legado__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
}
.dx-legado__year-wrap { height: clamp(8rem, 16vw, 14rem); overflow: hidden; margin-bottom: 2rem; }
.dx-legado__year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--dx-gold-deep);
}
.dx-legado__timeline { list-style: none; border-left: 1px solid var(--dx-hairline); }
.dx-legado__timeline li { padding: 0 0 1.75rem 1.5rem; opacity: 0.35; transition: opacity 0.4s ease; }
.dx-legado__timeline li.is-current { opacity: 1; }
.dx-legado__timeline li:last-child { padding-bottom: 0; }
.dx-legado__timeline time { display: block; font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--dx-gold-deep); }
.dx-legado__timeline p { font-size: var(--text-sm); color: var(--dx-ink); opacity: 0.75; margin-top: 0.25rem; }

.dx-legado__text { padding: 8rem clamp(1.5rem, 5vw, 4rem); max-width: 680px; }
.dx-legado__text .dx-prose { color: rgba(37,33,25,0.75); line-height: 1.9; font-size: var(--text-md); margin-top: 2rem; }
.dx-legado__text .dx-prose p { margin-bottom: 1.75rem; }

@media (max-width: 1023px) {
  .dx-legado { grid-template-columns: 1fr; }
  .dx-legado__sticky { position: static; height: auto; padding-block: 3rem; }
  .dx-legado__year-wrap { height: auto; margin-bottom: 2.5rem; }
  .dx-legado__year { font-size: clamp(4rem, 18vw, 7rem); }
  .dx-legado__timeline li { opacity: 1; }
  .dx-legado__text { padding: 2rem clamp(1.5rem, 5vw, 2rem) 5rem; }
}

/* ============================================================
   02 NUEVO CAPÍTULO
   ============================================================ */
.dx-capitulo {
  position: relative; overflow: hidden;
  background: var(--dx-noir-2);
  background-image: radial-gradient(ellipse 65% 55% at 12% 100%, rgba(196,164,107,0.1) 0%, transparent 60%),
                     radial-gradient(ellipse 55% 50% at 100% 0%, rgba(196,164,107,0.07) 0%, transparent 60%);
  padding-block: 10rem;
  min-height: 95vh;
  display: flex; align-items: center;
}
.dx-capitulo__bg {
  position: absolute; inset: -6% -6%; width: 112%; height: 112%; object-fit: cover;
  opacity: 0.18; z-index: 0; pointer-events: none; will-change: transform;
}
.dx-capitulo::before {
  content: '02';
  position: absolute;
  top: 50%; right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(14rem, 34vw, 32rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196,164,107,0.14);
  pointer-events: none;
  z-index: 0;
}
.dx-capitulo::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dx-capitulo > .container { position: relative; z-index: 1; }
.dx-capitulo__title { position: relative; min-height: 4.2em; margin-bottom: 3rem; }
.dx-capitulo__phrase { display: block; font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.12; }
.dx-capitulo__phrase--out { color: var(--dx-muted); position: relative; }
.dx-capitulo__phrase--out::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px;
  background: var(--dx-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.65,0,.35,1);
}
html.js .dx-capitulo.is-switched .dx-capitulo__phrase--out::after { transform: scaleX(1); }
.dx-capitulo__phrase--in { color: var(--dx-gold-light); }
.dx-capitulo .dx-prose { color: rgba(253,250,245,0.7); line-height: 1.9; font-size: var(--text-md); max-width: 64ch; }
.dx-capitulo .dx-prose p { margin-bottom: 1.5rem; }
.dx-capitulo .dx-prose p:first-child {
  border-left: 2px solid var(--dx-gold);
  padding-left: 1.5rem;
}

/* ============================================================
   03 LA TORRE
   ============================================================ */
.dx-torre { background: var(--dx-noir); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.dx-torre__spec { padding: 6rem clamp(1.5rem, 5vw, 4rem); }
.dx-torre__spec > p { color: rgba(253,250,245,0.7); font-size: var(--text-md); line-height: 1.8; max-width: 56ch; margin-block: 1.5rem 2.5rem; }
.dx-specsheet { max-width: 560px; }
.dx-specsheet__row {
  display: grid; grid-template-columns: 26% 74%; column-gap: 1.25rem; align-items: baseline;
  padding-block: 1.1rem; border-bottom: 1px solid var(--dx-hairline);
}
.dx-specsheet__row:first-child { border-top: 1px solid var(--dx-hairline); }
.dx-specsheet dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dx-gold); }
.dx-specsheet dd {
  font-family: var(--font-display); font-variant-numeric: lining-nums;
  font-size: clamp(1rem, 1.6vw, 1.6rem); color: var(--dx-cream);
  text-wrap: pretty; overflow-wrap: break-word;
}

.dx-torre__visual { position: relative; min-height: 70vh; overflow: hidden; }
.dx-torre__fillbar { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--dx-hairline); z-index: 2; }
.dx-torre__fillbar span { display: block; width: 100%; height: var(--fillpx, 0px); background: var(--dx-gold); transition: height 0.2s linear; }
.dx-torre__level { position: absolute; left: 2rem; bottom: 2rem; z-index: 2; font-family: var(--font-display); font-size: var(--text-xl); color: var(--dx-gold-light); }
.dx-torre__level-max { color: rgba(253,250,245,0.4); font-size: var(--text-sm); }
.dx-torre__visual.is-lit .dx-depth__img,
.dx-torre__visual.is-lit .dx-depth__canvas { filter: brightness(1.2); }

@media (max-width: 1023px) {
  .dx-torre { grid-template-columns: 1fr; }
  .dx-torre__visual { min-height: 50vh; }
}

/* ---------- Hero atmosphere: slow Ken Burns zoom + drifting cloud light (no WebGL) ---------- */
.dx-atmos { position: absolute; inset: 0; overflow: hidden; }
.dx-atmos__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1.1s cubic-bezier(.22,1,.36,1);
  animation: dx-kenburns 14s ease-in-out infinite alternate;
}
html.js .dx-atmos__img.dx-pre-reveal { clip-path: inset(0 0 100% 0); }
@keyframes dx-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.dx-atmos__clouds {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(ellipse 40% 25% at 20% 25%, rgba(253,250,245,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 75% 15%, rgba(253,250,245,0.12) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: dx-clouddrift 22s ease-in-out infinite;
}
@keyframes dx-clouddrift {
  0%   { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(-6%) translateY(3%); }
  100% { transform: translateX(0) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dx-atmos__img { animation: none; }
  .dx-atmos__clouds { animation: none; }
}

/* ---------- Depth parallax component (shared: hero + torre) ---------- */
.dx-depth { position: absolute; inset: 0; overflow: hidden; }
.dx-depth__img { width: 100%; height: 100%; object-fit: cover; display: block; clip-path: inset(0 0 0% 0); transition: clip-path 1.1s cubic-bezier(.22,1,.36,1), opacity 0.4s ease; }
html.js .dx-depth__img.dx-pre-reveal { clip-path: inset(0 0 100% 0); }
.dx-depth__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.dx-depth.is-webgl-active .dx-depth__canvas { opacity: 1; }
.dx-depth.is-webgl-active .dx-depth__img { opacity: 0; }

/* ============================================================
   PROPIEDAD — Dos formas de ser dueño (duo cards)
   ============================================================ */
.dx-duo-section { background: var(--dx-cream); padding-block: 7rem; }
.dx-duo-section .dx-h2 { color: var(--dx-ink); margin-bottom: 1.5rem; }
.dx-duo-section > .container > p { color: rgba(37,33,25,0.75); font-size: var(--text-md); line-height: 1.8; max-width: 62ch; margin-bottom: 2.5rem; }
.dx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.dx-duo__card { border-left: 2px solid var(--dx-gold); padding-left: 1.5rem; }
.dx-duo__card h3 { font-family: var(--font-display); font-size: var(--text-xl); color: var(--dx-gold-deep); font-weight: 400; margin-bottom: 0.4rem; }
.dx-duo__floors { color: rgba(37,33,25,0.5); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.dx-duo__card p:not(.dx-duo__floors) { color: rgba(37,33,25,0.7); font-size: var(--text-sm); line-height: 1.75; }

@media (max-width: 767px) {
  .dx-duo { grid-template-columns: 1fr; }
}

/* ============================================================
   RESIDENCIAS / DISEÑO — horizontal pinned gallery
   ============================================================ */
.dx-gallery { background: var(--dx-noir-2); }
.dx-gallery__intro { padding-block: 6rem 3rem; }
.dx-gallery__intro .dx-h2 { color: var(--dx-cream); margin-bottom: 1.5rem; }
.dx-gallery__intro p { color: rgba(253,250,245,0.7); font-size: var(--text-md); line-height: 1.85; max-width: 64ch; margin-bottom: 1.25rem; }
.dx-gallery__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.dx-gallery__track { display: flex; gap: 2rem; padding-inline: clamp(1.5rem, 5vw, 4rem); will-change: transform; }
.dx-gallery__item { flex: none; width: min(70vw, 560px); position: relative; }
.dx-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: opacity 0.4s ease, transform 0.4s ease; }
.dx-gallery__item figcaption { margin-top: 1rem; }
.dx-gallery__n { font-family: var(--font-display); font-size: var(--text-lg); color: var(--dx-gold); margin-right: 0.75rem; }
.dx-gallery__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--dx-cream); }
.dx-gallery__item p { color: rgba(253,250,245,0.6); font-size: var(--text-sm); margin-top: 0.4rem; max-width: 42ch; }
.dx-gallery__credit { display: block; margin-top: 0.4rem; font-size: 0.65rem; color: rgba(196,164,107,0.7); }
html.js .dx-gallery:not(.dx-gallery--horizontal-off) .dx-gallery__item:not(.is-active) img { opacity: 0.55; transform: scale(0.97); }
.dx-gallery__progress { height: 2px; background: var(--dx-hairline); margin: 2rem clamp(1.5rem, 5vw, 4rem) 0; }
.dx-gallery__progress span { display: block; height: 100%; width: 0%; background: var(--dx-gold); }

@media (max-width: 1023px) {
  .dx-gallery__pin { height: auto; padding-block: 4rem; }
  .dx-gallery__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .dx-gallery__item { width: 82vw; scroll-snap-align: center; }
}

/* ============================================================
   EXPERIENCIA — stacked cards
   ============================================================ */
.dx-stack { position: relative; background: var(--dx-noir); }
.dx-stack__card {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.dx-stack__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dx-stack__card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,0.9) 0%, rgba(12,10,8,0.3) 50%, rgba(12,10,8,0.1) 100%);
}
.dx-stack__content { position: relative; z-index: 1; padding: 4rem clamp(1.5rem, 5vw, 4rem); max-width: 620px; }
.dx-stack__index { display: block; font-family: var(--font-display); font-style: italic; font-size: var(--text-sm); color: var(--dx-gold-light); letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.dx-stack__content p { color: rgba(253,250,245,0.78); font-size: var(--text-md); line-height: 1.8; }

@media (max-width: 767px) {
  .dx-stack__card { height: 85vh; }
}

/* ============================================================
   SER PROPIETARIO — day/night comparator
   ============================================================ */
.dx-owner {
  position: relative; overflow: hidden;
  background: var(--dx-noir);
  background-image: radial-gradient(ellipse 60% 50% at 90% 0%, rgba(196,164,107,0.09) 0%, transparent 60%);
  padding-top: 7rem;
}
.dx-owner > .container { position: relative; z-index: 1; }
.dx-owner__text { max-width: 820px; margin-bottom: 3rem; }
.dx-owner__text > p { color: rgba(253,250,245,0.7); font-size: var(--text-md); line-height: 1.85; margin-top: 1.5rem; }
.dx-owner__benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; margin-top: 2.5rem; }
.dx-owner__benefits > div { padding-top: 1.5rem; border-top: 1px solid var(--dx-hairline); }
.dx-owner__icon { width: 28px; height: 28px; color: var(--dx-gold); margin-bottom: 0.75rem; }
.dx-owner__benefits h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-md); color: var(--dx-gold); margin-bottom: 0.5rem; }
.dx-owner__benefits p { color: rgba(253,250,245,0.6); font-size: var(--text-sm); line-height: 1.75; }

@media (max-width: 767px) {
  .dx-owner__benefits { grid-template-columns: 1fr; }
}

.dx-compare__intro {
  text-align: center; font-family: var(--font-display); font-style: italic;
  font-size: var(--text-md); color: var(--dx-gold-light);
  max-width: 1400px; margin: 0 auto 1.25rem; padding-inline: 1.5rem;
}
.dx-compare { position: relative; width: 100%; max-width: 1400px; margin-inline: auto; cursor: ew-resize; user-select: none; touch-action: none; }
.dx-compare__frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.dx-compare__img { position: absolute; inset: 0; }
.dx-compare__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-compare__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.dx-compare__clip .dx-compare__img { width: 100vw; max-width: 1400px; }
.dx-compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--dx-gold);
  transform: translateX(-50%);
}
.dx-compare__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: var(--dx-noir); border: 1px solid var(--dx-gold);
}
.dx-compare__handle span::before, .dx-compare__handle span::after {
  content: ''; position: absolute; top: 50%; width: 6px; height: 6px; border-top: 1px solid var(--dx-gold-light); border-right: 1px solid var(--dx-gold-light);
}
.dx-compare__handle span::before { left: 14px; transform: translateY(-50%) rotate(-135deg); }
.dx-compare__handle span::after { right: 14px; transform: translateY(-50%) rotate(45deg); }
.dx-compare__label {
  position: absolute; top: 1.25rem; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.08em;
  color: rgba(253,250,245,0.85); background: rgba(12,10,8,0.5); padding: 0.4rem 0.75rem; transition: opacity 0.3s ease;
}
.dx-compare__label--left { left: 1.25rem; }
.dx-compare__label--right { right: 1.25rem; }

@media (max-width: 767px) {
  .dx-compare__frame { aspect-ratio: 4/5; }
}

/* ============================================================
   UBICACIÓN
   ============================================================ */
/* ---------- Full-bleed break (restored from production) ---------- */
.dx-frame { position: relative; width: 100%; height: 78vh; min-height: 420px; max-height: 760px; overflow: hidden; }
.dx-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.js .dx-frame img { animation: dx-hero-dolly 20s ease-in-out infinite; }
.dx-frame__caption {
  position: absolute; left: 2rem; right: 2rem; bottom: 2rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  font-family: var(--font-body); color: rgba(253,250,245,0.85);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.dx-frame__caption::before {
  content: ''; position: absolute; inset: -40% 0 0 0;
  background: linear-gradient(to top, rgba(12,10,8,0.65), transparent);
  z-index: 0; pointer-events: none;
}
.dx-frame__caption span { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .dx-frame { height: 52vh; min-height: 320px; }
  .dx-frame__caption { left: 1.5rem; right: 1.5rem; bottom: 1.5rem; font-size: 0.68rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

.dx-location { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; }
.dx-location__bg { position: absolute; inset: 0; z-index: 0; }
.dx-location__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-location::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,10,8,0.92) 0%, rgba(12,10,8,0.45) 55%, rgba(12,10,8,0.1) 100%); }
.dx-location .container { position: relative; z-index: 1; padding-block: 4rem; }
.dx-location__text { max-width: 60ch; color: rgba(253,250,245,0.78); font-size: var(--text-md); line-height: 1.85; margin-top: 1.5rem; }
.dx-location__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.dx-num-sm { display: block; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--dx-gold-light); }
.dx-location__stats p { font-size: var(--text-xs); color: rgba(253,250,245,0.55); margin-top: 0.25rem; }

@media (max-width: 767px) {
  .dx-location__stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MÉXICO Y LATAM
   ============================================================ */
.dx-mexico { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--dx-cream); min-height: 80vh; }
.dx-mexico__media { position: relative; overflow: hidden; }
.dx-mexico__media img { width: 100%; height: 100%; object-fit: cover; display: block; clip-path: inset(0 0 0% 0); transition: clip-path 1.1s cubic-bezier(.22,1,.36,1); }
html.js .dx-mexico__media.dx-pre-reveal img { clip-path: inset(0 0 100% 0); }
.dx-mexico__tag {
  position: absolute; bottom: 1.5rem; left: 1.5rem; background: rgba(12,10,8,0.75); border: 1px solid var(--dx-hairline);
  color: var(--dx-gold-light); font-size: 0.72rem; letter-spacing: 0.06em; padding: 0.6rem 1rem; backdrop-filter: blur(4px);
}
.dx-mexico__text { display: flex; flex-direction: column; justify-content: center; padding: 4rem clamp(1.5rem, 4vw, 4rem); }
.dx-mexico__text p { color: rgba(37,33,25,0.75); font-size: var(--text-md); line-height: 1.85; margin-top: 1.5rem; }

@media (max-width: 1023px) {
  .dx-mexico { grid-template-columns: 1fr; }
  .dx-mexico__media { aspect-ratio: 4/3; }
}

/* ============================================================
   CÓMO COMPRAR — sticky image + filling line
   ============================================================ */
.dx-steps { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--dx-noir-2); }
.dx-steps__sticky { position: sticky; top: 0; height: 100vh; padding: 6rem clamp(1.5rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.dx-steps__sticky img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-top: 2rem; }
.dx-steps__list { padding: 6rem clamp(1.5rem, 4vw, 4rem) 6rem clamp(1.5rem, 4vw, 2rem); }
.dx-steps__timeline { list-style: none; border-left: 1px solid var(--dx-hairline); position: relative; margin-top: 2.5rem; }
.dx-steps__timeline::before {
  content: ''; position: absolute; left: -1px; top: 0; width: 1px; height: var(--fillpx, 0px); background: var(--dx-gold);
  transition: height 0.2s linear;
}
.dx-steps__timeline li { padding: 0 0 2rem 1.75rem; opacity: 0.4; transition: opacity 0.4s ease; }
.dx-steps__timeline li.is-current { opacity: 1; }
.dx-steps__timeline li:last-child { padding-bottom: 0; }
.dx-steps__timeline time { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--dx-gold-deep); }
.dx-steps__timeline h4 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); color: var(--dx-cream); margin-top: 0.25rem; }
.dx-steps__timeline p { font-size: var(--text-sm); color: rgba(253,250,245,0.6); margin-top: 0.25rem; }
.dx-steps__disclaimer { font-size: var(--text-xs); color: rgba(253,250,245,0.45); margin-top: 2.5rem; max-width: 62ch; line-height: 1.7; }
.dx-steps__disclaimer a { color: var(--dx-gold); }
.dx-related-guides { font-size: 0.78rem; color: rgba(253,250,245,0.45); margin-top: 1.5rem; max-width: 62ch; line-height: 1.7; }
.dx-related-guides span { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; color: var(--dx-gold); margin-right: 0.4rem; }
.dx-related-guides a { color: rgba(253,250,245,0.7); text-decoration: underline; text-decoration-color: rgba(196,164,107,0.4); text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .dx-steps { grid-template-columns: 1fr; }
  .dx-steps__sticky { position: static; height: auto; padding-bottom: 2rem; }
}

/* ============================================================
   QUIÉN TE ACOMPAÑA
   ============================================================ */
.dx-broker { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--dx-noir-2); align-items: stretch; }
.dx-broker__media { position: relative; min-height: 70vh; }
.dx-broker__frame { position: absolute; top: 24px; left: 24px; right: -24px; bottom: -24px; border: 1px solid var(--dx-gold); z-index: 0; }
.dx-broker__clip { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; }
.dx-broker__clip img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 22%; display: block; filter: sepia(0.12) saturate(1.05);
  clip-path: inset(0 0 0% 0); transition: clip-path 1.1s cubic-bezier(.22,1,.36,1);
}
html.js .dx-broker__clip.dx-pre-reveal img { clip-path: inset(0 0 100% 0); }
.dx-broker__text { padding: 6rem clamp(1.5rem, 4vw, 4rem); max-width: 620px; }
.dx-broker__credential { color: rgba(253,250,245,0.6); font-size: var(--text-sm); margin-top: 0.5rem; margin-bottom: 1.5rem; }
.dx-broker__stats { display: flex; gap: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--dx-hairline); border-bottom: 1px solid var(--dx-hairline); margin-bottom: 1.5rem; }
.dx-broker__stats .dx-num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--dx-gold-light); display: block; }
.dx-broker__stats p { font-size: 0.78rem; color: rgba(253,250,245,0.55); margin-top: 0.25rem; max-width: 18ch; }
.dx-broker .dx-prose + p, .dx-broker__text > p { color: rgba(253,250,245,0.72); font-size: var(--text-md); line-height: 1.85; margin-bottom: 1.5rem; }
.dx-notice { display: flex; gap: 1rem; border: 1px solid var(--dx-hairline); padding: 1.1rem 1.4rem; margin-bottom: 1.5rem; }
.dx-notice svg { flex: none; width: 20px; height: 20px; color: var(--dx-gold); margin-top: 2px; }
.dx-notice p { font-size: var(--text-sm); color: rgba(253,250,245,0.6); line-height: 1.7; }
.dx-broker__ctas { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 1023px) {
  .dx-broker { grid-template-columns: 1fr; }
  .dx-broker__media { min-height: 50vh; }
  .dx-broker__frame { top: 14px; left: 14px; right: -14px; bottom: -14px; }
}

/* ============================================================
   FAQ — CSS-only gold radial on noir, no image
   ============================================================ */
.dx-faq {
  position: relative;
  background: var(--dx-noir);
  background-image: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(196,164,107,0.08) 0%, transparent 60%);
  padding-block: 7rem;
  overflow: hidden;
}
.dx-faq .dx-h2 { margin-bottom: 2.5rem; }
.dx-faq__list { border-top: 1px solid var(--dx-hairline); }
.dx-faq__item { border-bottom: 1px solid var(--dx-hairline); position: relative; z-index: 1; }
.dx-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; font-family: var(--font-display); font-size: var(--text-lg); color: var(--dx-cream);
  cursor: pointer; list-style: none;
}
.dx-faq__item summary::-webkit-details-marker { display: none; }
.dx-faq__item summary::after {
  content: '+'; flex: none; width: 26px; height: 26px; border: 1px solid var(--dx-hairline);
  display: flex; align-items: center; justify-content: center; color: var(--dx-gold); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.dx-faq__item[open] summary::after { content: '×'; transform: rotate(0deg); background: var(--dx-gold); color: var(--dx-noir); }
.dx-faq__item summary:hover { color: var(--dx-gold); }
.dx-faq__item > div { padding-bottom: 1.5rem; max-width: 68ch; position: relative; }
.dx-faq__item > div::before { content: ''; display: block; width: 0; height: 1px; background: var(--dx-gold); margin-bottom: 1rem; transition: width 0.6s ease; }
.dx-faq__item[open] > div::before { width: 60px; }
.dx-faq__item p { color: rgba(253,250,245,0.62); font-size: var(--text-sm); line-height: 1.8; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.dx-final { position: relative; overflow: hidden; background: var(--dx-noir-2); padding-block: 9rem; text-align: center; }
.dx-final__bg {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; z-index: 0;
}
html.js .dx-final__bg { animation: dx-hero-dolly 24s ease-in-out infinite; }
.dx-final__scrim { position: absolute; inset: 0; z-index: 0; background: rgba(12,10,8,0.7); }
.dx-final__glint { z-index: 1; }
.dx-final > .container { position: relative; z-index: 2; }
.dx-final .dx-h2 { margin-inline: auto; max-width: 20ch; }
.dx-final p { max-width: 56ch; margin: 1.5rem auto 0; color: rgba(253,250,245,0.7); font-size: var(--text-md); line-height: 1.8; }
.dx-final__ctas { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }

/* ---------- Official developer legal disclosure (verbatim, R3 point 3) ---------- */
/* The dark background is full-bleed on the <aside> itself (padding, not
   margin, carries the 64px clearance so it stays continuous with the CTA
   final section above — a margin would show the body's cream background
   through, same bug the hero's #site-header fix addressed); the 1100px
   measure is applied to an inner wrapper instead. */
.legal-disclosure {
  display: block; width: 100%; background: var(--dx-noir);
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--dx-hairline);
  font-family: var(--font-body); font-size: 10.5px; line-height: 1.6; letter-spacing: 0.02em;
  color: var(--dx-muted);
}
.legal-disclosure__inner { max-width: 1100px; margin-inline: auto; }
.legal-disclosure p { margin-bottom: 1em; }
.legal-disclosure p:last-child { margin-bottom: 0; }

/* ============================================================
   GLOBAL ELEMENTS
   ============================================================ */

/* reading progress */
.dx-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--dx-gold); z-index: 9999; }

/* side index nav (desktop only) */
.dx-sidenav {
  position: fixed; right: 1.75rem; top: 50%; transform: translateY(-50%); z-index: 50;
  display: none; flex-direction: column; gap: 0.65rem; align-items: flex-end;
  /* starts hidden — JS reveals it once scrolled past the hero, so there's
     no flash-of-visible-nav before the first scroll check runs */
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
html:not(.js) .dx-sidenav { opacity: 1; pointer-events: auto; }
.dx-sidenav.is-past-hero { opacity: 1; pointer-events: auto; }
.dx-sidenav a {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-body); text-decoration: none;
  border-right: 1px solid transparent; padding-right: 0.65rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.dx-sidenav__n { font-size: 0.62rem; color: rgba(253,250,245,0.3); }
.dx-sidenav__t { font-size: 0.68rem; letter-spacing: 0.04em; color: rgba(253,250,245,0.45); white-space: nowrap; }
.dx-sidenav a.is-active { border-color: var(--dx-gold); }
.dx-sidenav a.is-active .dx-sidenav__n { color: var(--dx-gold); }
.dx-sidenav a.is-active .dx-sidenav__t { color: var(--dx-gold-light); }
.dx-sidenav a:hover .dx-sidenav__t { color: var(--dx-gold-light); }
@media (min-width: 1280px) { .dx-sidenav { display: flex; } }

/* custom cursor (desktop, fine pointer only — toggled via JS) */
.dx-cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.dx-cursor.is-active { opacity: 1; }
.dx-cursor.is-idle { opacity: 0; }
.dx-cursor__dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--dx-gold); }
.dx-cursor__ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 1px solid var(--dx-gold);
  display: flex; align-items: center; justify-content: center; transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease;
}
.dx-cursor.is-hover .dx-cursor__ring { width: 64px; height: 64px; margin: -32px; background: rgba(196,164,107,0.1); }
.dx-cursor__label { font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dx-gold-light); opacity: 0; transition: opacity 0.2s ease; }
.dx-cursor.is-hover .dx-cursor__label { opacity: 1; }

/* WhatsApp float (custom, replaces main.js's green one on this page) */
#dx-wa {
  position: fixed; right: 2rem; bottom: 2rem; z-index: 9000;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
#dx-wa a {
  display: flex; align-items: center; gap: 0.75rem; padding: 1.15rem 1.75rem;
  background: var(--dx-noir); border: 1px solid var(--dx-gold); color: var(--dx-gold-light);
  text-decoration: none; font-size: 0.92rem; box-shadow: 0 8px 28px rgba(12,10,8,0.45);
}
#dx-wa svg { width: 26px; height: 26px; }
#dx-wa.is-compact a span { display: none; }
#dx-wa.is-compact a { padding: 1.1rem; }
#dx-wa a { padding-bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px)); }

/* cookie banner — nudge main.js's inline-styled banner to match tokens exactly */
#cookie-banner { background: rgba(12,10,8,0.97) !important; border-color: var(--dx-hairline) !important; max-width: 480px !important; }
#cookie-accept { background: var(--dx-gold) !important; color: var(--dx-noir) !important; }

@media (max-width: 767px) {
  /* compact fixed bar, capped so it never covers the hero CTAs */
  #cookie-banner {
    bottom: 0.75rem !important; left: 0.75rem !important; right: 0.75rem !important;
    padding: 0.85rem 1rem !important; gap: 0.6rem !important;
    max-height: 25vh !important; overflow-y: auto !important;
  }
  #cookie-banner p { font-size: 0.74rem !important; line-height: 1.5 !important; min-width: 0 !important; }
  #cookie-accept { padding: 0.5rem 1rem !important; font-size: 0.72rem !important; }
  /* extra clearance so the fixed bar never overlaps the bottom-anchored hero CTAs */
  .dx-hero__content { padding-block: 6rem 9rem; padding-inline: 1.5rem; max-width: none; margin-inline: 0; }
  /* mobile render is already tower-centered/upper-frame; drop the desktop
     side-gradient so the full width reads evenly, keep only the bottom one.
     The frozen hero copy (eyebrow + 2-line H1 + subtitle + credential + two
     buttons) runs tall at phone width — bottom-anchored, it actually occupies
     most of the viewport, not just a neat bottom 45% — so the dark zone has
     to extend nearly the full height for every line to stay legible over the
     glass tower; only the crown at the very top is left clear. */
  .dx-hero__vignette {
    background:
      linear-gradient(to bottom, rgba(12,10,8,0.3) 0%, rgba(12,10,8,0) 12%),
      linear-gradient(to top, rgba(12,10,8,0.88) 0%, rgba(12,10,8,0.66) 30%, rgba(12,10,8,0.38) 52%, rgba(12,10,8,0.12) 70%, rgba(12,10,8,0) 85%);
  }
  /* Video/foto sin zoom en móvil: encuadre completo de la torre, sin Ken Burns ni dolly */
  .dx-atmos__img { animation: none; }
  html.js .dx-hero__video.is-ready { animation: none; }
  .dx-hero__video, .dx-hero__bg img { object-position: 50% 30%; }
  .dx-hero__content { text-shadow: 0 1px 3px rgba(12,10,8,0.6), 0 2px 18px rgba(12,10,8,0.9); }
  .dx-hero__content .dx-btn { text-shadow: none; }
  .dx-hero__glow { left: 72%; top: 58%; width: 150px; height: 150px; }
}

/* hide main.js's default green WhatsApp float on this page — #dx-wa replaces it */
.wa-float { display: none !important; }

/* ---------- Drawer (price request form) ---------- */
.dx-drawer { position: fixed; inset: 0; z-index: 9500; visibility: hidden; }
.dx-drawer__backdrop { position: absolute; inset: 0; background: rgba(12,10,8,0.6); opacity: 0; transition: opacity 0.4s ease; }
.dx-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--dx-noir); border-left: 1px solid var(--dx-hairline);
  padding: 4rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.1rem;
  transform: translateX(100%); transition: transform 0.5s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.dx-drawer.is-open { visibility: visible; }
.dx-drawer.is-open .dx-drawer__backdrop { opacity: 1; }
.dx-drawer.is-open .dx-drawer__panel { transform: translateX(0); }
.dx-drawer__close { position: absolute; top: 1.5rem; right: 1.5rem; width: 36px; height: 36px; border: 1px solid var(--dx-hairline); background: none; color: var(--dx-cream); font-size: 1.3rem; cursor: pointer; }
.dx-drawer__panel h3 { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--dx-cream); }
.dx-drawer__sub { font-size: var(--text-sm); color: rgba(253,250,245,0.55); line-height: 1.6; }
.dx-drawer__panel label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(253,250,245,0.6); }
.dx-drawer__panel input, .dx-drawer__panel select {
  background: var(--dx-noir-2); border: 1px solid var(--dx-hairline); color: var(--dx-cream);
  padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 0.9rem;
}
.dx-drawer__panel input:focus, .dx-drawer__panel select:focus, .dx-drawer__panel button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--dx-gold-light); outline-offset: 2px;
}

/* ---------- Contrast on cream sections: use gold-deep for small text ---------- */
.dx-legado, .dx-mexico { color: var(--dx-ink); }
.dx-legado .dx-num, .dx-mexico .dx-num { color: var(--dx-gold-deep); }

/* ---------- Desktop-only magnetic cursor target affordance ---------- */
@media (pointer: fine) {
  .dx-magnetic { will-change: transform; }
}
