/* =========================================================
   NEWWEST — Componentes compartidos por todas las páginas
   ========================================================= */

/* ---------- Etiqueta de sección tipo plano: N° 01 | Nombre ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1;
}
.label { flex-wrap: wrap; row-gap: 8px; line-height: 1.4; }
.label__n { white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 14px; border-right: 1px solid currentColor; }

/* Etiqueta con líneas a ambos lados (eco del "PROPERTY" del logo) */
.label-lines {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
}
.label-lines::before, .label-lines::after { content: ""; width: clamp(28px, 5vw, 64px); height: 1px; background: currentColor; opacity: .7; }

/* ---------- Bienvenida (inicio del contenido de cada página, como en Costa Houses) ---------- */
.welcome {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.3;
}
.welcome::before { content: ""; flex: none; width: clamp(32px, 4vw, 56px); height: 1px; background: currentColor; opacity: .7; }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--taupe);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--paper); border-color: var(--taupe); }

.btn--light { color: var(--paper); }
.btn--light::before { background: var(--paper); }
.btn--light:hover { color: var(--taupe); border-color: var(--paper); }

.btn--solid { background: var(--taupe); color: var(--paper); border-color: var(--taupe); }
.btn--solid::before { background: var(--taupe-dark); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  transition: gap .45s var(--ease);
}
.link-arrow:hover { gap: 22px; }

/* ---------- Grilla arquitectónica visible ---------- */
.grid-lines {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  pointer-events: none;
}
.grid-lines i { border-left: 1px solid var(--line-light-soft); }
.grid-lines i:last-child { border-right: 1px solid var(--line-light-soft); }
.grid-lines--dark i { border-color: rgba(137, 107, 95, .1); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    height var(--t-header) var(--ease-in-out),
    background-color var(--t-header) var(--ease-in-out),
    color var(--t-header) var(--ease-in-out),
    border-color var(--t-header) var(--ease-in-out),
    transform var(--t-header) var(--ease-in-out);
}
.header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(255, 255, 255, .97);
  color: var(--taupe);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.header__nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.header__nav--right { justify-content: flex-end; }
.header__nav a { position: relative; padding: 8px 0; }
.header__nav a:not(.header__icon)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-light); border-radius: 50%; transition: background-color .4s, border-color .4s, transform .4s var(--ease); }
.header__icon svg { width: 16px; height: 16px; fill: currentColor; }
.header__icon:hover { background: rgba(255, 255, 255, .12); }
.header.is-scrolled .header__icon { border-color: var(--line); }
.header.is-scrolled .header__icon:hover { background: var(--marfil); }
.header__icon--wa, .header.is-scrolled .header__icon--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.header__icon--wa:hover, .header.is-scrolled .header__icon--wa:hover { background: var(--whatsapp); transform: scale(1.08); }

/* Coordenadas Santiago / Punta Cana */
.header__coords { display: grid; gap: 1px; font-size: .62rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; text-align: right; white-space: nowrap; }
.header__coords b { font-weight: 500; margin-right: 6px; }

/* Desplegable de Servicios */
.dropdown { position: relative; }
.dropdown__trigger { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; letter-spacing: inherit; text-transform: inherit; cursor: default; }
.dropdown__trigger[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; }
.dropdown__trigger::before {
  content: ""; order: 2; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); transition: transform .5s var(--ease), margin .5s var(--ease);
}
.dropdown:hover .dropdown__trigger::before, .dropdown:focus-within .dropdown__trigger::before { transform: rotate(225deg); margin-top: 3px; }
.dropdown__panel {
  position: absolute; top: 100%; left: -24px; z-index: 5;
  min-width: 230px; padding: 10px 24px;
  background: var(--paper); color: var(--taupe);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(59, 46, 40, .08);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.dropdown__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dropdown:hover .dropdown__panel, .dropdown:focus-within .dropdown__panel {
  opacity: 1; visibility: visible; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s;
}
.dropdown__panel li + li { border-top: 1px solid var(--line); }
.dropdown__panel a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0 !important; transition: padding .45s var(--ease); }
.dropdown__panel a::after { display: none; }
.dropdown__panel a:hover { padding-left: 8px !important; }
.dropdown__panel small { font-size: .58rem; letter-spacing: .2em; opacity: .7; }

.header__logo { position: relative; display: block; justify-self: center; }
.header__logo img { height: auto; transition: opacity var(--t-header) var(--ease-in-out); }
/* Logo completo sobre la foto (≈170 px) y wordmark en la barra blanca (≈220 px).
   max-width: none evita que el wordmark se achique al ancho del logo completo. */
.header__logo .logo-full { width: clamp(140px, 12.5vw, 190px); max-width: none; }
.header__logo .logo-compact { position: absolute; left: 50%; top: 50%; width: clamp(180px, 16vw, 240px); max-width: none; transform: translate(-50%, -50%); opacity: 0; }
.header.is-scrolled .logo-full { opacity: 0; }
.header.is-scrolled .logo-compact { opacity: 1; }

.burger { display: none; justify-self: end; width: 34px; height: 34px; position: relative; }
.burger span { position: absolute; left: 4px; right: 4px; height: 1px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 21px; }
.burger[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h-compact) + 32px) var(--gutter) 32px;
  background: var(--taupe); color: var(--paper);
}
.menu[hidden] { display: none; }
.menu li { border-top: 1px solid var(--line-light); }
.menu li:last-child { border-bottom: 1px solid var(--line-light); }
.menu > ul > li > a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 8vw, 2.8rem); text-transform: uppercase; line-height: 1.1; }
.menu__label { display: flex; align-items: baseline; gap: 18px; padding: 14px 0 8px; font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 8vw, 2.8rem); text-transform: uppercase; line-height: 1.1; }
.menu small { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; opacity: .7; }
.menu__sub { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0 0 16px 34px; }
.menu__sub li, .menu__sub li:last-child { border: 0; }
.menu .menu__sub a { padding: 2px 0; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.menu__foot { display: grid; gap: 6px; font-size: .85rem; }
.menu__coords { display: grid; gap: 2px; margin-bottom: 12px; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; color: var(--paper); border-color: transparent; }
body.menu-open .header .logo-full { opacity: 0; }
body.menu-open .header .logo-compact { opacity: 1; filter: brightness(0) invert(1); }
body.menu-open .whatsapp { opacity: 0; pointer-events: none; }

/* =========================================================
   BÚSQUEDA DE PROPIEDADES
   ========================================================= */
.search { width: 100%; color: var(--paper); }
.search__bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(59, 46, 40, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Bordes con border-*-width para que la versión clara solo cambie el color */
.search__field { position: relative; display: grid; padding: 9px 20px 7px; border: 0 solid rgba(255, 255, 255, .2); border-right-width: 1px; text-align: left; }
.search__field select:disabled { cursor: not-allowed; }
.search__field.is-locked { opacity: .55; }
.search__field.is-locked::after { display: none; }
.search__field label { font-size: .58rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .78; }
.search__field select, .search__field input {
  width: 100%; margin-top: 0; padding: 1px 22px 1px 0;
  background: transparent; border: 0; border-radius: 0; outline: none;
  font-family: var(--display); font-size: 1.04rem; font-weight: 400; color: inherit;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.search__field input::placeholder { color: inherit; opacity: .6; }
.search__field select option { color: var(--ink); }
.search__field--select::after {
  content: ""; position: absolute; right: 20px; bottom: 16px; width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; opacity: .8;
}
.search__field:focus-within { background: rgba(255, 255, 255, .06); }
.search__submit {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 30px;
  background: var(--paper); color: var(--taupe);
  font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  transition: background-color .4s, color .4s;
}
.search__submit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search__submit:hover { background: var(--taupe); color: var(--paper); }

.search__more { display: grid; justify-items: start; gap: 10px; margin-top: 14px; }

/* Valor de la UF y del dólar del día (Home, Propiedades y ficha) */
.indicadores { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.indicadores[hidden], .indicadores [hidden] { display: none; }
.indicadores > span { display: inline-flex; align-items: baseline; gap: 8px; }
.indicadores b { font-family: var(--display); font-size: 1.05rem; font-weight: 400; letter-spacing: .02em; text-transform: none; font-variant-numeric: lining-nums; }
.indicadores__fecha { font-weight: 400; letter-spacing: .14em; opacity: .7; }
.search__toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.search__toggle i { position: relative; width: 11px; height: 11px; }
.search__toggle i::before, .search__toggle i::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.search__toggle i::after { transform: rotate(90deg); }
.search__toggle[aria-expanded="true"] i::after { transform: rotate(0); }

.search__advanced {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid var(--line-light);
  background: rgba(59, 46, 40, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search__advanced[hidden] { display: none; }
.search__advanced .search__field { border-bottom-width: 1px; }
.search__advanced .search__field:nth-child(4n) { border-right-width: 0; }
.search__advanced .search__field:nth-last-child(-n+4) { border-bottom-width: 0; }
.search__field--action { display: flex; align-items: center; justify-content: center; }
.search__reset { display: inline-flex; align-items: center; gap: 10px; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .85; text-decoration: underline; text-underline-offset: 5px; }
.search__reset:hover { opacity: 1; }

/* =========================================================
   HERO DE PÁGINAS INTERIORES (Acerca de, Servicios, etc.)
   ========================================================= */
.page-hero {
  position: relative;
  height: 82vh; height: var(--page-hero-h);
  min-height: var(--page-hero-min-h);
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--paper);
  background: var(--taupe-deep);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: slowZoom 9s var(--ease) forwards; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59, 46, 40, .6) 0%, rgba(59, 46, 40, .25) 40%, rgba(59, 46, 40, .65) 100%), rgba(137, 107, 95, .14);
}
@keyframes slowZoom { to { transform: scale(1); } }
.page-hero__inner { position: relative; z-index: 2; align-self: center; display: grid; justify-items: center; text-align: center; padding-top: calc(var(--header-h) + 2vh); }
.page-hero__inner .label-lines { opacity: 0; animation: heroFade 1.2s .2s var(--ease) forwards; }
.page-hero__title { margin-top: clamp(14px, 3.4vh, 34px); max-width: 15em; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.page-hero__title .line > span { display: block; animation: heroLine 1.4s .35s var(--ease) both; }
.page-hero__title .line:nth-child(2) > span { animation-delay: .47s; }
.page-hero__title .line:nth-child(3) > span { animation-delay: .59s; }
.page-hero__sub { margin-top: clamp(8px, 1.8vh, 20px); max-width: 30em; opacity: 0; animation: heroFade 1.2s .8s var(--ease) forwards; }
.page-hero__foot { position: relative; z-index: 2; display: grid; justify-items: center; padding-bottom: clamp(16px, 3vh, 34px); }
@keyframes heroLine { from { transform: translateY(108%); } to { transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Flecha "sigue bajando" (compartida) */
.scroll-cue {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-light); border-radius: 50%;
  transition: background-color .4s, border-color .4s;
  animation: cueFloat 2.6s var(--ease-in-out) infinite;
}
.scroll-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.scroll-cue:hover { background: rgba(255, 255, 255, .12); border-color: var(--paper); }
@keyframes cueFloat { 50% { transform: translateY(6px); } }

/* =========================================================
   LISTA DE PRINCIPIOS / VALORES (numerada en romanos, en serif)
   ========================================================= */
.principles { border-top: 1px solid var(--line-strong); }
.principles__title { padding: 18px 0 8px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.principles li {
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: var(--fs-list); font-weight: 400; line-height: 1.3;
}
.principles__n { font-family: var(--display); font-style: italic; font-size: 1rem; opacity: .8; }

/* =========================================================
   BUSCADOR SOBRE FONDO CLARO (listado de propiedades)
   ========================================================= */
.search--light { color: var(--taupe); }
.search--light .search__bar, .search--light .search__advanced { border-color: var(--line-strong); background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.search--light .search__field { border-color: var(--line); }
.search--light .search__field:focus-within { background: var(--marfil); }
.search--light .search__submit { background: var(--taupe); color: var(--paper); }
.search--light .search__submit:hover { background: var(--taupe-dark); color: var(--paper); }

/* =========================================================
   TARJETA DE PROPIEDAD (listado, destacadas, similares)
   ========================================================= */
.prop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.prop-card__link { display: block; height: 100%; }
.prop-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--marfil-2); }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.prop-card__link:hover .prop-card__img img { transform: scale(1.05); }
.prop-card__badge {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 12px; background: var(--paper); color: var(--taupe);
  font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.prop-card__badge--estado { left: auto; right: 16px; background: var(--taupe); color: var(--paper); }
.prop-card__info { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--taupe); }
.prop-card__title { font-family: var(--display); font-size: var(--fs-list); font-weight: 400; line-height: 1.2; }
/* Atributos con ícono (dormitorios, baños, m² útiles, terreno) */
.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; font-variant-numeric: lining-nums; }
.specs li { display: inline-flex; align-items: center; gap: 8px; }
.specs .icon { opacity: .75; }
.prop-card__specs { margin-top: 2px; }
.prop-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.prop-card__price { font-family: var(--display); font-size: var(--fs-list); font-weight: 400; font-variant-numeric: lining-nums; white-space: nowrap; }
.prop-card__more { display: inline-flex; gap: 8px; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; transition: gap .45s var(--ease); }
.prop-card__link:hover .prop-card__more { gap: 16px; }
.prop-card__code { opacity: .7; }

/* Franja de búsqueda personalizada: cierra la grilla a todo el ancho, sin importar cuántas propiedades haya */
.prop-card--cta {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; align-items: center;
  gap: 24px clamp(32px, 5vw, 80px);
  padding: clamp(32px, 4vw, 56px);
  background: var(--taupe); color: var(--paper);
}
.prop-card--cta .label-lines { grid-column: 1 / -1; justify-content: flex-start; }
.prop-card--cta .label-lines::before { display: none; }
.prop-card--cta__title { font-family: var(--display); font-style: italic; font-weight: 300; font-size: var(--fs-subtitle); line-height: 1.1; }
.prop-card--cta .t-body { color: inherit; }

/* Atributos grandes (ficha de propiedad): ícono, cifra y nombre */
.specs--large { gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.specs--large li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 20px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.specs--large li:first-child { border-left: 0; padding-left: 0; }
.specs--large .icon { grid-row: 1 / span 2; width: 26px; height: 26px; stroke-width: 1.1; opacity: .9; }
.specs--large .specs__value { font-family: var(--display); font-size: var(--fs-list); line-height: 1.1; }
.specs--large .specs__label { font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }

/* =========================================================
   GALERÍA A PANTALLA COMPLETA (lightbox)
   ========================================================= */
/* Formato Costa Houses: fondo oscuro semitransparente, foto grande al centro con contador
   sobre la foto, flechas redondas a los lados y fila de miniaturas abajo, separada de la foto */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(24, 18, 15, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--paper);
  opacity: 0; transition: opacity .45s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.lightbox__title { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__frame { position: relative; display: inline-flex; max-width: 100%; max-height: 100%; }
.lightbox__count {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(24, 18, 15, .6); color: var(--paper);
  font-size: .66rem; font-weight: 500; letter-spacing: .18em; font-variant-numeric: tabular-nums;
}
.lightbox__close { justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--paper); font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.lightbox__close i { position: relative; width: 26px; height: 26px; }
.lightbox__close i::before, .lightbox__close i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 13px; height: 1px; background: currentColor; transform: rotate(45deg); }
.lightbox__close i::after { transform: rotate(-45deg); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; height: 100%; padding: 0 clamp(16px, 8vw, 120px); }
.lightbox__stage img { display: block; max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100svh - 210px); object-fit: contain; transition: opacity .35s var(--ease); }
.lightbox__stage img.is-fading { opacity: .2; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid var(--line-light); border-radius: 50%; color: var(--paper); font-size: 1.1rem;
  background: rgba(24, 18, 15, .45);
  transition: background-color .35s, border-color .35s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .1); border-color: var(--paper); }
.lightbox__nav--prev { left: clamp(10px, 2vw, 32px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 32px); }
/* Miniaturas: fila separada bajo la foto; las no seleccionadas con una capa oscura */
.lightbox__thumbs { display: flex; gap: 10px; padding: 18px var(--gutter) 24px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs button { position: relative; flex: none; width: 88px; height: 64px; outline-offset: 3px; }
.lightbox__thumbs button::after { content: ""; position: absolute; inset: 0; background: rgba(24, 18, 15, .6); transition: background-color .35s; }
.lightbox__thumbs button:hover::after { background: rgba(24, 18, 15, .3); }
.lightbox__thumbs button.is-active::after { background: transparent; }
.lightbox__thumbs button.is-active { outline: 1px solid var(--paper); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   PREGUNTAS FRECUENTES (acordeón, servicios)
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h-compact) + 40px); display: grid; gap: 26px; }
.faq__img { aspect-ratio: 4 / 3; margin-top: 12px; background: var(--marfil-2); }
.faq__img img { width: 100%; height: 100%; object-fit: cover; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: grid; grid-template-columns: 44px 1fr 22px; align-items: baseline; gap: 12px;
  padding: clamp(20px, 2.2vw, 28px) 0;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--display); font-size: var(--fs-list); font-weight: 400; line-height: 1.25; transition: transform .5s var(--ease); }
.faq__item summary:hover .faq__q { transform: translateX(6px); }
.faq__item summary i { position: relative; width: 14px; height: 14px; align-self: center; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__a { display: grid; gap: 12px; padding: 0 0 clamp(24px, 2.6vw, 34px) 56px; max-width: 46em; animation: faqOpen .6s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   BLOQUE "CONVERSEMOS" (cierre de todas las páginas)
   ========================================================= */
.contact-cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 8vw, 140px); align-items: center; }
.contact-cta__title { margin-top: 24px; font-size: clamp(3.4rem, 8.5vw, 8.6rem); line-height: .95; }
.contact-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(32px, 4vw, 48px); }
.contact-cta__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-cta__list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-cta__list dt { padding-top: .35em; font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.contact-cta__list dd { font-family: var(--display); font-variant-numeric: lining-nums; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.contact-cta__list a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-cta__list a:hover { border-color: currentColor; }

/* =========================================================
   FORMULARIO (Contacto, ficha de propiedad, etc.)
   ========================================================= */
.form { position: relative; display: grid; gap: 30px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Chips de interés */
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { width: 100%; margin-bottom: 14px; padding: 0; }
.form__chips label { position: relative; cursor: pointer; }
.form__chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form__chips span {
  display: inline-block; padding: 10px 18px;
  font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  transition: background-color .35s, color .35s, border-color .35s;
}
.form__chips label:hover span { border-color: var(--taupe); }
.form__chips input:checked + span { background: var(--taupe); color: var(--paper); border-color: var(--taupe); }
.form__chips input:focus-visible + span { outline: 1px solid var(--taupe); outline-offset: 3px; }

/* Campos con línea inferior y etiqueta flotante */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 24px 0 10px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; outline: none;
  font-family: var(--display); font-size: 1.25rem; font-weight: 400; color: var(--taupe);
  font-variant-numeric: lining-nums;
  -webkit-appearance: none; appearance: none;
  transition: border-color .35s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { cursor: pointer; padding-right: 26px; }
.field--select::after { content: ""; position: absolute; right: 4px; bottom: 20px; width: 7px; height: 7px; border-right: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe); transform: rotate(45deg); pointer-events: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--taupe); }
.field label {
  position: absolute; left: 0; top: 26px;
  font-size: .95rem; font-weight: 400; opacity: .8; pointer-events: none;
  transition: top .35s var(--ease), font-size .35s var(--ease), letter-spacing .35s, opacity .35s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-fixed {
  top: 0; font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: 1;
}
.field__error { display: none; margin-top: 6px; font-size: .75rem; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--taupe-dark); border-bottom-width: 2px; }
.field.is-invalid .field__error { display: block; }

/* Consentimiento */
.check { display: grid; grid-template-columns: 18px 1fr; gap: 14px; font-size: .86rem; line-height: 1.6; cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 3px 0 0;
  border: 1px solid var(--line-strong); display: grid; place-content: center; cursor: pointer;
}
.check input::before { content: ""; width: 8px; height: 8px; background: var(--taupe); transform: scale(0); transition: transform .2s; }
.check input:checked::before { transform: scale(1); }
.check__error { display: none; margin-top: -18px; font-size: .75rem; }
.form.check-invalid .check__error { display: block; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.form__actions .btn { min-width: 220px; }
.form__actions .btn:disabled { opacity: .6; cursor: progress; }
.form__note { font-size: .8rem; opacity: .85; }

/* Mensaje de envío exitoso */
.form__success {
  position: absolute; inset: -4px; z-index: 5;
  display: grid; align-content: center; justify-items: start; gap: 18px;
  background: var(--paper);
}
.form__success[hidden] { display: none; }

/* =========================================================
   MODAL DE VIDEO
   ========================================================= */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: clamp(16px, 5vw, 80px);
  background: rgba(30, 23, 20, .94);
  opacity: 0; transition: opacity .5s var(--ease);
}
.video-modal[hidden] { display: none; }
.video-modal.is-open { opacity: 1; }
.video-modal video { width: min(100%, 1400px); max-height: 82vh; background: #000; }
.video-modal video[hidden] { display: none; }
.video-modal__frame { width: min(100%, 1400px, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; }
.video-modal__close {
  position: absolute; top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 12px;
  color: var(--paper); font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.video-modal__close i { position: relative; width: 30px; height: 30px; }
.video-modal__close i::before, .video-modal__close i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 15px; height: 1px; background: currentColor; transform: rotate(45deg); }
.video-modal__close i::after { transform: rotate(-45deg); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--taupe); color: var(--paper); overflow: hidden; }
.footer__brand { display: grid; justify-items: center; gap: 28px; padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line-light); text-align: center; }
.footer__brand img { width: clamp(190px, 18vw, 250px); height: auto; }
.footer__brand p { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 300; max-width: 30em; opacity: .92; }
.footer__cols {
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr .8fr; gap: 32px;
  padding: clamp(48px, 6vw, 72px) 0;
  font-size: .92rem; line-height: 1.8;
}
.footer__cols h3 { margin-bottom: 16px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; opacity: .75; }
.footer__cols a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__cols a:hover { border-color: currentColor; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-light); border-radius: 50%; transition: background-color .35s, color .35s; }
.footer__social a:hover { background: var(--paper); color: var(--taupe); border-color: var(--paper); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 84px 30px 0; border-top: 1px solid var(--line-light); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 50;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--whatsapp); color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  transition: transform .45s var(--ease), opacity .3s;
}
.whatsapp:hover { transform: translateY(-3px); }
.whatsapp svg { width: 24px; height: 24px; fill: currentColor; }

/* =========================================================
   MOVIMIENTO
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* Imagen que se descubre con una cortina */
.curtain { position: relative; overflow: hidden; }
.curtain::after { content: ""; position: absolute; inset: 0; background: var(--marfil); transform-origin: top; transition: transform 1.4s var(--ease-in-out); }
.section--marfil .curtain::after { background: var(--paper); }
.curtain.is-visible::after { transform: scaleY(0); }
.curtain img { transform: scale(1.12); transition: transform 2.2s var(--ease); }
.curtain.is-visible img { transform: scale(1); }

/* Texto que entra línea por línea desde una máscara */
.lines .line { display: block; overflow: hidden; padding-bottom: .06em; }
.lines .line > span { display: block; transform: translateY(108%); transition: transform 1.3s var(--ease); }
.lines.is-visible .line > span { transform: none; }
.lines .line:nth-child(2) > span { transition-delay: .1s; }
.lines .line:nth-child(3) > span { transition-delay: .2s; }
.lines .line:nth-child(4) > span { transition-delay: .3s; }

/* Dibujo de líneas SVG */
.draw { stroke-dasharray: 1800; stroke-dashoffset: 1800; }
.is-visible .draw { animation: draw 2.8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  :root { --header-h: 84px; }
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .header__logo { justify-self: start; }
  .header__logo .logo-full { width: 124px; }
  .header__logo .logo-compact { left: 0; transform: translateY(-50%); width: 180px; }
  .burger { display: block; }

  .search__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__field { padding: 8px 16px 6px; }
  .search__field select, .search__field input { font-size: 1rem; }
  .search__field--select::after { right: 16px; bottom: 15px; }
  .search__bar .search__field { border-bottom-width: 1px; }
  .search__bar .search__field:nth-child(2n) { border-right-width: 0; }
  .search__submit { justify-content: center; min-height: 56px; }
  .search__advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__advanced .search__field:nth-child(n) { border-right-width: 1px; border-bottom-width: 1px; }
  .search__advanced .search__field:nth-child(2n) { border-right-width: 0; }
  .search__advanced .search__field:nth-last-child(-n+2) { border-bottom-width: 0; }

  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .contact-cta__grid { grid-template-columns: 1fr; }
  .prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__img { display: none; }
}

@media (max-width: 640px) {
  .grid-lines { grid-template-columns: repeat(2, 1fr); }
  .grid-lines i:nth-child(n+3) { display: none; }
  .grid-lines i:nth-child(2) { border-right: 1px solid var(--line-light-soft); }

  .search__field label { font-size: .56rem; letter-spacing: .18em; }
  .search__field select, .search__field input { font-size: .98rem; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .contact-cta__list > div { grid-template-columns: 1fr; gap: 4px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .prop-grid { grid-template-columns: 1fr; }
  .prop-card--cta { grid-template-columns: 1fr; }
  .specs--large { display: grid; grid-template-columns: 1fr 1fr; }
  .specs--large li, .specs--large li:first-child { padding: 16px 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .specs--large li:nth-child(2n) { border-left: 1px solid var(--line); }
  .lightbox__nav { display: none; }
  .lightbox__stage { padding: 0; }
  .lightbox__thumbs { gap: 8px; padding: 14px var(--gutter) 20px; }
  .lightbox__thumbs button { width: 64px; height: 48px; }
  .lightbox__stage img { max-height: calc(100svh - 170px); }
}

/* Elegir cómo escribir un correo (links mailto:, solo en computador; ver sistema.js) */
.mail-menu {
  position: fixed; z-index: 400; min-width: 240px;
  padding: 14px 18px 6px; background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(59, 46, 40, .1);
  animation: mailIn .35s var(--ease);
}
@keyframes mailIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mail-menu__to {
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 1.05rem; font-style: italic; color: var(--taupe);
}
.mail-menu li + li { border-top: 1px solid var(--line); }
.mail-menu a, .mail-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0;
  font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--taupe); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: padding .4s var(--ease);
}
.mail-menu a:hover, .mail-menu button:hover { padding-left: 6px; }
.mail-menu .icon { width: 16px; height: 16px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal, .lines .line > span { opacity: 1; transform: none; }
  .curtain::after { display: none; }
}
