/* =============================================================================
   CIUDAD DEL VALLE — Propuesta "v2 · Inmersiva" (escenas a pantalla completa)
   Dirección: cinematográfica / marca premium · scroll por escenas (deck)
   Paleta: noir verdoso + marfil cálido + acento champaña/oro
   Tipografía: Instrument Serif (display) + Inter (UI/texto)
   ========================================================================== */

:root {
  --noir:    #0E120E;   /* fondo oscuro base */
  --noir-2:  #151B14;
  --ivory:   #F2EEE4;   /* texto/fondo claro cálido */
  --ivory-2: #E7E1D2;
  --dim:     rgba(242,238,228,.64);
  --gold:    #C7A86B;   /* acento champaña */
  --gold-2:  #DBC59A;
  --line:    rgba(242,238,228,.16);

  --display: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --topbar: 86px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
}

* , *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--noir);
  color: var(--ivory);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;            /* el scroll vive en .deck */
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--noir); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: -.005em; }
.display em { font-style: italic; color: var(--gold-2); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2.4rem, 6.5vw, 5.5rem); }
h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.04; }

.kicker {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: .9em;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .8; }
.kicker.bare::before { display: none; }
.body-lg { font-size: clamp(1.02rem, 1.3vw, 1.22rem); color: var(--dim); line-height: 1.55; max-width: 46ch; }
/* Bajadas destacadas (hero + concepto): más blancas y con más peso */
.hero .body-lg, .concepto .body-lg { color: var(--ivory); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ivory); --fg: var(--noir); --bd: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px; border-radius: 100px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: .9rem; font-weight: 540; letter-spacing: .01em;
  transition: transform .22s var(--ease-out), background .3s var(--ease-out), color .3s, border-color .3s, box-shadow .3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(0,0,0,.6); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-gold  { --bg: var(--gold); --fg: var(--noir); --bd: var(--gold); }
.btn-line  { --bg: transparent; --fg: var(--ivory); --bd: rgba(242,238,228,.4); }
.btn-line:hover { --bg: var(--ivory); --fg: var(--noir); --bd: var(--ivory); }
.btn-block { width: 100%; }

.tlink { display: inline-flex; align-items: center; gap: .5em; font-weight: 540; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: gap .3s var(--ease), border-color .3s; }
.tlink:hover { gap: .85em; border-color: currentColor; }

/* =============================================================================
   DECK · escenas con scroll-snap
   ========================================================================== */
.deck {
  height: 100svh; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.scene {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: var(--topbar) var(--gutter) clamp(40px, 7vh, 90px);
}
.scene-inner { width: min(100%, 1320px); margin-inline: auto; width: 100%; }
.scene .scene-inner { max-width: 1320px; }

/* capa de fondo (imagen/video) full-bleed + scrim */
.bg { position: absolute; inset: 0; z-index: -2; }
picture { display: contents; }   /* <picture> no afecta el layout: el <img> se comporta como hijo directo */
.bg img, .bg video { width: 100%; height: 100%; object-fit: cover; }
.bg.kenburns img { transform: scale(1.08); animation: ken 18s var(--ease) infinite alternate; }
@keyframes ken { to { transform: scale(1); } }
.scrim { position: absolute; inset: 0; z-index: -1; }
.scrim-b  { background: linear-gradient(180deg, rgba(8,10,8,.55) 0%, rgba(8,10,8,.1) 35%, rgba(8,10,8,.45) 70%, rgba(8,10,8,.92) 100%); }
.scrim-l  { background: linear-gradient(95deg, rgba(8,10,8,.9) 0%, rgba(8,10,8,.55) 42%, rgba(8,10,8,.08) 78%); }
.scrim-d  { background: rgba(10,13,10,.62); }
.scrim-hero {
  background:
    linear-gradient(180deg, rgba(8,10,8,.5) 0%, rgba(8,10,8,.06) 30%, rgba(8,10,8,.32) 62%, rgba(8,10,8,.94) 100%),
    linear-gradient(95deg, rgba(8,10,8,.62) 0%, rgba(8,10,8,.12) 52%, rgba(8,10,8,0) 80%);
}
/* Beneficios: velo más parejo para que las descripciones se lean sobre la foto clara */
.scrim-benes {
  background:
    linear-gradient(180deg, rgba(8,10,8,.64) 0%, rgba(8,10,8,.5) 32%, rgba(8,10,8,.62) 66%, rgba(8,10,8,.94) 100%);
}
/* Estilo de vida: texto centrado sobre foto clara → viñeta central + base oscura */
.scrim-life {
  background:
    linear-gradient(180deg, rgba(8,10,8,.55) 0%, rgba(8,10,8,.34) 30%, rgba(8,10,8,.4) 62%, rgba(8,10,8,.9) 100%),
    radial-gradient(78% 60% at 50% 50%, rgba(8,10,8,.55) 0%, rgba(8,10,8,0) 72%);
}

/* número/etiqueta de escena (esquina) */
.scene-tag {
  position: absolute; left: var(--gutter); bottom: clamp(26px, 4vh, 46px); z-index: 4;
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.scene-tag b { color: var(--gold); font-weight: 600; }

/* =============================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar); display: flex; align-items: center;
  padding-inline: var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s;
}
.topbar.solid { background: rgba(14,18,14,.72); backdrop-filter: blur(14px) saturate(1.3); }
.topbar-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-iso { display: inline-flex; }
.brand-iso svg { height: 34px; width: auto; display: block; }
.brand-iso svg path { transform-box: fill-box; transform-origin: center bottom; }
.brand-word { height: 19px; width: auto; display: block; }
@media (max-width: 560px) { .brand-iso svg { height: 30px; } .brand-word { height: 17px; } }
.topbar .btn { padding: 11px 22px; font-size: .82rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

/* progreso de scroll */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: 60; transition: width .15s linear; }

/* =============================================================================
   NAV LATERAL (puntos por escena)
   ========================================================================== */
.sidenav { position: fixed; right: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 16px; }
.sidenav a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.sidenav .lbl {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory);
  opacity: 0; transform: translateX(6px); transition: opacity .35s, transform .35s;
  white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.sidenav .pt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(242,238,228,.55); transition: background .35s, border-color .35s, transform .35s; }
.sidenav a:hover .lbl { opacity: 1; transform: none; }
.sidenav a:hover .pt { border-color: var(--ivory); }
.sidenav a.active .pt { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.sidenav a.active .lbl { color: var(--gold-2); }  /* la etiqueta solo aparece al pasar el mouse */

/* indicación de scroll (escena inicial) */
.scrollcue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.scrollcue .line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scrollcue .line::after { content:""; position: absolute; inset: 0; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

/* =============================================================================
   ESCENA 00 · APERTURA (hero con parallax SVG)
   ========================================================================== */
.hero .scene-inner { position: relative; z-index: 3; }
.hero h1 { max-width: none; margin: 22px 0 26px; min-height: 2em; }
.h1-type { font-style: italic; color: var(--gold-2); }
.h1-caret { display: inline-block; width: .055em; height: .82em; background: var(--gold); margin-left: .06em; transform: translateY(.1em); animation: caret-blink 1.05s step-end infinite; }
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero .body-lg { max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

/* parallax: silueta de primer plano (arboleda + casas) sobre la foto — SVG propio, placeholder */
.parallax { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.player { position: absolute; left: 0; right: 0; width: 100%; will-change: transform; }
.player svg { width: 100%; height: auto; }
.player.houses   { bottom: 3%;  z-index: 1; }
.player.trees    { bottom: 0;   z-index: 2; }
.player.fog      { bottom: 0;   z-index: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(8,10,8,.7) 62%, var(--noir)); }

/* =============================================================================
   ESCENA 01 · CONCEPTO (video + frase)
   ========================================================================== */
.concepto .scene-inner { position: relative; z-index: 3; max-width: 1100px; }
.concepto h2 { max-width: 18ch; margin: 20px 0 24px; }
.concepto h2 em { color: var(--gold-2); font-style: italic; }
.facts { display: flex; flex-wrap: wrap; gap: clamp(26px, 5vw, 64px); margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.fact .n { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }
.fact .t { font-size: .82rem; letter-spacing: .04em; color: var(--dim); margin-top: 6px; }
.play-pill { position: absolute; right: var(--gutter); top: calc(var(--topbar) + 24px); z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 100px; background: rgba(14,18,14,.5); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: .78rem; }
.play-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(199,168,107,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(199,168,107,0);} 100% { box-shadow: 0 0 0 0 rgba(199,168,107,0);} }

/* =============================================================================
   ESCENA 02 · BENEFICIOS (lista cinematográfica sobre imagen)
   ========================================================================== */
.benes .scene-inner { position: relative; z-index: 3; }
.benes-head { max-width: 22ch; margin-bottom: clamp(20px, 2.8vh, 36px); transform: translateY(-3.5vh); }
.benes-head h2 { margin-top: 0; font-size: clamp(2rem, 4.4vw, 3.6rem); }
.bene-rows { border-top: 1px solid var(--line); max-width: 980px; }
.bene {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(12px, 1.7vh, 20px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background .4s;
}
.bene:hover { padding-left: 14px; }
.bene .idx { font-size: .74rem; color: var(--gold); letter-spacing: .1em; transition: color .4s; }
.bene .bt { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); transition: color .4s; }
.bene .bd { font-size: .92rem; color: var(--dim); max-width: 34ch; justify-self: end; text-align: right; transition: color .4s; }
.bene.is-active .bt { color: var(--gold-2); }
.bene.is-active .bd { color: var(--ivory); }
/* slider de fondo: cruce suave entre la imagen de cada beneficio */
.benes-bg .bene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); filter: blur(8px); transition: opacity 1s var(--ease), transform 7s linear, filter 1s var(--ease); }
.benes-bg .bene-img.active { opacity: 1; transform: scale(1); filter: blur(0); }

/* =============================================================================
   ESCENA 03 · DESARROLLOS (riel horizontal)
   ========================================================================== */
.devs { padding-bottom: 0; }
.devs .scene-head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.devs .scene-head h2 { max-width: 16ch; }
.devs-hint { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.devcard {
  position: relative; flex: 0 0 auto; width: min(78vw, 440px); aspect-ratio: 3/4.1; max-height: 62vh;
  border-radius: 16px; overflow: hidden; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; transition: transform .5s var(--ease);
}
.devcard:hover { transform: translateY(-6px); }
.devcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.devcard::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,10,8,.1) 30%, rgba(8,10,8,.86) 100%); }
.devcard:hover img { transform: scale(1.06); }
.devcard .body { padding: 26px; }
.devcard .dtype { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.devcard .dname { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; }
.devcard .dstate { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .84rem; color: var(--ivory); }
.devcard .dstate .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.devcard.is-venta { outline: 1px solid rgba(199,168,107,.5); outline-offset: -1px; }

/* =============================================================================
   ESCENA 04 · MODELOS (escenario tipo showroom)
   ========================================================================== */
.models { background: var(--noir-2); }
.models .scene-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 4.5vw, 72px); align-items: center; }
/* Escenario horizontal: el video vertical se muestra completo y centrado, con fondo difuminado a los lados */
.stage { position: relative; aspect-ratio: 16/9; height: auto; width: min(58vw, 820px); max-height: 72vh; border-radius: 18px; overflow: hidden; background: #0a0c08; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.stage-blur { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(34px) brightness(.42) saturate(1.2); transform: scale(1.25); }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .6s var(--ease); }
.stage video.show { opacity: 1; }
.stage::after { content:""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(8,10,8,0) 55%, rgba(8,10,8,.7)); pointer-events: none; }
.stage .open-full { position: absolute; right: 16px; top: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(14,18,14,.5); backdrop-filter: blur(6px); border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, transform .3s; }
.stage .open-full:hover { background: var(--gold); color: var(--noir); transform: scale(1.06); }
.stage .open-full svg { width: 18px; height: 18px; }
.stage .stage-name { position: absolute; left: 22px; bottom: 20px; z-index: 3; }
.stage .stage-name .lv { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.stage .stage-name b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1; }

.models-side h2 { margin: 16px 0 18px; }
.modfilter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; border: 1px solid var(--line); margin-bottom: 22px; }
.modfilter .chip { padding: 9px 18px; border-radius: 100px; font-size: .82rem; color: var(--dim); transition: background .35s, color .35s; }
.modfilter .chip.active { background: var(--ivory); color: var(--noir); }
.spec-row { display: flex; gap: 30px; margin: 4px 0 22px; }
.spec-row .s b { font-family: var(--display); font-size: 1.8rem; display: block; line-height: 1; }
.spec-row .s span { font-size: .76rem; color: var(--dim); letter-spacing: .04em; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; opacity: .55; cursor: pointer; border: 1px solid transparent; transition: opacity .3s, border-color .3s, transform .3s; }
.thumb:hover { opacity: .85; transform: translateY(-2px); }
.thumb.active { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.hide { display: none; }
.thumb span { position: absolute; inset: auto 0 0 0; font-size: .56rem; text-align: center; padding: 3px 2px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }

/* =============================================================================
   ESCENA 05 · AMENIDADES (muro a pantalla completa)
   ========================================================================== */
.amen { justify-content: flex-start; }
.amen-head { order: -1; padding-bottom: clamp(18px, 2.4vh, 30px); }
.amen-head h2 { margin-top: 0; }
.wall { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; border-radius: 16px; overflow: hidden; }
.wall .cell { position: relative; overflow: hidden; }
.wall .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wall .cell::after { content:""; position: absolute; inset: 0; background: rgba(10,13,10,.34); transition: background .4s; }
.wall .cell:hover img { transform: scale(1.07); }
.wall .cell:hover::after { background: rgba(10,13,10,.1); }
.wall .cell span { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--display); font-size: 1.25rem; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.amen .wall-scrim { display: none; }

/* =============================================================================
   ESCENA 06 · ESTILO DE VIDA (calma, full-bleed)
   ========================================================================== */
.life .scene-inner { position: relative; z-index: 3; text-align: center; max-width: 980px; }
.life h2 { margin: 20px auto 0; max-width: 20ch; }
.life-moments { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; margin-top: 40px; }
.moment { cursor: pointer; padding: 11px 22px; border: 1px solid var(--line); border-radius: 100px; font-size: .96rem; color: var(--ivory); background: rgba(8,10,8,.18); backdrop-filter: blur(2px); transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }
.moment:hover { border-color: rgba(242,238,228,.6); }
.moment.active { background: var(--gold); color: var(--noir); border-color: var(--gold); }
/* slider de fondo: cruce suave entre las imágenes de cada momento */
.life-bg .life-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); filter: blur(8px); transition: opacity 1s var(--ease), transform 7s linear, filter 1s var(--ease); }
.life-bg .life-img.active { opacity: 1; transform: scale(1); filter: blur(0); }

/* =============================================================================
   ESCENA 07 · CONTACTO (cierre)
   ========================================================================== */
.contact { background: var(--noir-2); justify-content: space-between; }
.contact .scene-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; flex: 1; }
.contact h2 { margin: 16px 0 22px; }
.crows { display: grid; gap: 2px; margin-top: 26px; max-width: 440px; }
.crow { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.crow:hover { padding-left: 8px; }
.crow .ic { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.crow .ic svg { width: 18px; height: 18px; }
.crow b { display: block; font-weight: 540; overflow-wrap: anywhere; }
.crow small { color: var(--dim); font-size: .82rem; }
.crow span.txt { min-width: 0; }

.fcard { background: rgba(242,238,228,.04); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 38px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; color: var(--dim); margin-bottom: 7px; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .95rem;
  background: rgba(14,18,14,.5); border: 1px solid var(--line); border-radius: 10px; color: var(--ivory);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242,238,228,.52); }
.field select { color: var(--ivory); }
.field select option { background: var(--noir); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,168,107,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input[type="date"] { color-scheme: dark; }
.field .opt { color: var(--dim); font-weight: 400; font-size: .82em; letter-spacing: 0; }
.field-hint { font-size: .76rem; color: var(--dim); margin: -2px 0 9px; }
.fnote { font-size: .76rem; color: var(--dim); margin-top: 12px; text-align: center; }
/* control segmentado (chips de opción) */
.seg { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: .86rem; color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
.seg-opt input:checked + span { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
/* lista de radios: cada opción es una fila seleccionable con borde */
.radio-list { display: grid; gap: 8px; }
.field .radio { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; color: var(--ivory); padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(14,18,14,.4); transition: border-color .25s, background .25s; }
.radio:hover { border-color: rgba(242,238,228,.4); }
.radio:has(input:checked) { border-color: var(--gold); background: rgba(199,168,107,.12); }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(242,238,228,.55); position: relative; transition: border-color .25s; }
.radio input:checked + .dot { border-color: var(--gold); }
.radio input:checked + .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.radio input:focus-visible + .dot { outline: 2px solid var(--gold); outline-offset: 2px; }

.foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); }
.foot-by { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-by img { height: 14px; width: auto; opacity: .82; }
.foot-by .sep { opacity: .45; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ivory); transition: background .3s, color .3s, border-color .3s; }
.foot-social a:hover { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.foot-social svg { width: 17px; height: 17px; }

/* =============================================================================
   LIGHTBOX MODELOS
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); background: rgba(8,10,8,.86); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-inner { width: min(420px, 92vw); background: var(--noir-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 50px 120px -30px rgba(0,0,0,.8); transform: translateY(14px) scale(.98); transition: transform .5s var(--ease); }
.lightbox.open .lb-inner { transform: none; }
.lb-video { position: relative; aspect-ratio: 3/4; background: #000; }
.lb-video video { width: 100%; height: 100%; object-fit: cover; }
.lb-body { padding: 22px 24px 26px; }
.lb-body .lv { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lb-body h3 { margin: 4px 0 6px; }
.lb-body p { color: var(--dim); font-size: .94rem; }
.lb-specs { display: flex; gap: 22px; margin: 16px 0 20px; }
.lb-specs b { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.lb-specs span { color: var(--dim); font-size: .74rem; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; background: rgba(14,18,14,.55); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .3s; }
.lb-nav:hover { background: var(--gold); color: var(--noir); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }

/* =============================================================================
   MENÚ MÓVIL · WHATSAPP flotante
   ========================================================================== */
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ivory); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--noir); display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: calc(var(--topbar) + 8px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .55s var(--ease), opacity .35s var(--ease), visibility .55s; }
body.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: clamp(1.5rem, 6.5vw, 2.4rem); line-height: 1.18; padding: 4px 0; color: var(--dim); transition: color .3s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ivory); }
/* centra el bloque cuando sobra espacio; si no cabe, arranca arriba y hace scroll (sin recortar) */
.mobile-menu a[data-mob]:first-of-type { margin-top: auto; }
.mobile-menu a.btn { margin: 26px 0 auto; align-self: flex-start; color: var(--noir); font-family: var(--sans); font-size: .95rem; font-weight: 560; line-height: 1; letter-spacing: .01em; padding: 14px 26px; gap: .55em; flex: none; }
.mobile-menu a.btn .btn-ic { width: 18px; height: 18px; display: inline-flex; }
.mobile-menu a.btn .btn-ic svg { width: 100%; height: 100%; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); transition: transform .4s var(--ease), opacity .4s, visibility .4s; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.85); }
body.past-hero .wa-float { opacity: 1; visibility: visible; transform: none; }
body.menu-open .wa-float { opacity: 0; visibility: hidden; transform: translateY(10px) scale(.85); }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }

/* =============================================================================
   REVEAL
   ========================================================================== */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-io), transform .7s var(--ease-io); }
.scene.in .rv { opacity: 1; transform: none; }
.scene.in .rv.d1 { transition-delay: .1s; }
.scene.in .rv.d2 { transition-delay: .2s; }
.scene.in .rv.d3 { transition-delay: .3s; }
.scene.in .rv.d4 { transition-delay: .4s; }
.scene.in .rv.d5 { transition-delay: .5s; }
html:not(.js) .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-snap-type: none; scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; }
  .bg.kenburns img, .player { animation: none !important; transform: none !important; }
  .life-bg .life-img, .benes-bg .bene-img { transition: opacity .3s ease; transform: none !important; }
  .h1-caret { animation: none; }
  .scrollcue .line::after { animation: none; }
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .models .scene-inner { grid-template-columns: 1fr; gap: 24px; }
  .stage { height: auto; width: 100%; max-height: 46vh; aspect-ratio: 16/10; }
  .stage video { object-fit: cover; }
  .stage-blur { display: none; }
  .contact .scene-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidenav { display: none; }
  .topbar-actions .btn { display: none; }
  .burger { display: flex; }
  .bene { grid-template-columns: auto 1fr; }
  .bene .bd { display: none; }
  /* Amenidades: en móvil el título va en banda propia y el muro llena el resto */
  .amen-head h2 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .wall { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, minmax(115px, 1fr)); border-radius: 14px; }
  .scene { padding-inline: var(--gutter); }
  .facts { gap: 22px 30px; }
  .field-row { grid-template-columns: 1fr; }
  .contact { justify-content: flex-start; }
}
@media (max-width: 760px) and (min-height: 720px) {
  .scene { min-height: 100svh; }
}

/* =============================================================================
   TÁCTIL: neutraliza los hovers con transform/posición para que no se "peguen"
   al tocar en celular/tablet (en escritorio con mouse, los hovers funcionan).
   ========================================================================== */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .btn:hover .arw { transform: none; }
  .devcard:hover { transform: none; }
  .devcard:hover img { transform: none; }
  .wall .cell:hover img { transform: none; }
  .wall .cell:hover::after { background: rgba(10,13,10,.34); }
  .thumb:hover { transform: none; }
  .bene:hover { padding-left: 0; }
  .crow:hover { padding-left: 0; }
}
