/* Dash Estate — hoja de estilo principal */

:root {
  --ivory: #faf8f4;
  --bone: #f0eae0;
  --sand: #e3d9c9;
  --ink: #15120e;
  --ink-soft: #3d372f;
  --muted: #8b8175;
  --gold-1: #9a7433;
  --gold-2: #d9b370;
  --gold-3: #f0dcae;
  --gold-line: rgba(154, 116, 51, 0.28);
  --gold-grad: linear-gradient(115deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 52%, var(--gold-2) 66%, var(--gold-1) 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 18px;
  font-weight: 400;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  width: 54px;
  height: 1px;
  background: var(--gold-grad);
  border: 0;
  margin: 26px 0;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 32px;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  font-family: var(--sans);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: #fff; border-color: transparent; }
.btn:hover::before { transform: translateY(0); }

.btn--solid { color: #fff; border-color: transparent; }
.btn--solid::before { transform: translateY(0); }
.btn--solid:hover::before { transform: translateY(0); filter: brightness(1.08); }

.btn--light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--light:hover { color: var(--ink); }
.btn--light::before { background: #fff; }

.btn--wa { border-color: rgba(37, 211, 102, 0.55); }
.btn--wa::before { background: #25d366; }
.btn--wa:hover { color: #fff; }

/* ---------- marca ---------- */
.mark { width: 44px; height: 44px; flex: 0 0 auto; }
.mark path, .mark rect { transition: fill 0.5s var(--ease); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__name em { font-style: normal; }
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.44em;
  color: var(--muted);
  margin-top: 5px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 22px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-solid {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  padding: 13px 0;
  box-shadow: 0 1px 0 var(--gold-line);
}
.site-header.is-over { color: #fff; }
.site-header.is-over .brand__sub { color: rgba(255, 255, 255, 0.65); }
.site-header.is-over .nav a { color: #fff; }
.site-header.is-over .burger span { background: #fff; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-ext::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
  margin-right: 8px;
  vertical-align: middle;
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
  margin-left: auto; margin-right: auto;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.06em;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.26s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0.1) 32%, rgba(10, 8, 6, 0.72) 100%);
}
.hero__inner { padding: 0 0 clamp(70px, 12vh, 130px); width: 100%; }
.hero h1 {
  font-size: clamp(42px, 8.4vw, 104px);
  letter-spacing: 0.015em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; }
.hero__lead {
  max-width: 44ch;
  margin: 28px 0 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  bottom: 26px; right: var(--gutter);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0; top: -46px;
  width: 1px; height: 46px;
  background: var(--gold-2);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(92px); }
}

/* ---------- secciones ---------- */
.section { padding: clamp(84px, 13vh, 150px) 0; position: relative; }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink .eyebrow { color: var(--gold-2); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--rev .split__media { order: 2; }

.split h2 { font-size: clamp(32px, 4.6vw, 58px); }
.split p { color: var(--ink-soft); max-width: 52ch; }
.section--ink .split p { color: rgba(250, 248, 244, 0.72); }

.figure {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.figure.is-in img { transform: scale(1); }
.figure__frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.figure__tag {
  position: absolute;
  left: 0; bottom: 26px;
  background: var(--ivory);
  color: var(--ink);
  padding: 12px 22px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* elemento que "vuela" entre bloques */
.floater {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  will-change: transform;
}
.floater--tr { top: 6%; right: -40px; width: 180px; }
.floater--bl { bottom: 4%; left: -50px; width: 220px; }
.floater svg { width: 100%; height: auto; }

/* ---------- cifras ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}
.stat {
  background: var(--ivory);
  padding: 44px 22px;
  text-align: center;
}
.section--bone .stat { background: var(--bone); }
.stat svg { width: 40px; height: 40px; margin: 0 auto 20px; stroke: var(--gold-1); fill: none; stroke-width: 1.1; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  display: block;
}
.stat__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  display: block;
}

/* ---------- contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  border-top: 1px solid var(--gold-line);
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-list li:last-child { border-bottom: 1px solid var(--gold-line); }
.contact-list span {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 96px;
}
.contact-list a, .contact-list p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0;
}
.contact-list a { position: relative; }
.contact-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.contact-list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- formulario ---------- */
.form { display: grid; gap: 20px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--gold-line);
  background: transparent;
  padding: 14px 0 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: inherit;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-2); }
.field label {
  position: absolute;
  left: 0; top: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
  transform-origin: left;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(0.82);
  color: var(--gold-1);
}
.form__note { font-size: 12px; color: var(--muted); }

/* marcador de foto pendiente */
.photo-ph {
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, var(--bone), var(--sand));
  display: grid;
  place-items: center;
}
.photo-ph > span:first-child {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.photo-ph .figure__frame { border-color: rgba(154, 116, 51, 0.35); }

/* ---------- tarjetas de anuncios ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--gold-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(21, 18, 14, 0.5); }
.card__media { overflow: hidden; position: relative; }
.card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold-grad);
  color: #fff;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 7px 14px;
}
.card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body h3 { font-size: 26px; }
.card__meta { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card__price { font-family: var(--serif); font-size: 24px; margin-top: auto; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.spec { background: var(--ivory); padding: 28px 16px; text-align: center; }
.spec b { font-family: var(--serif); font-weight: 400; font-size: 26px; display: block; }
.spec span { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a:first-child img { aspect-ratio: auto; height: 100%; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.7);
  padding: 70px 0 36px;
  font-size: 13px;
}
.site-footer .brand__name { color: var(--ivory); }
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.12);
}
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.site-footer__bot { padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.1em; }

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 50;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.7);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.wa-fab.is-in { transform: scale(1); }
.wa-fab svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- transición de página ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ivory);
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}
.curtain.is-hidden { opacity: 0; pointer-events: none; }
.curtain__logo { width: min(240px, 54vw); }
.curtain__mark { width: 100%; height: auto; display: block; }

/* ---------- hero interior ---------- */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero__media { inset: -6% 0; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.62) 0%, rgba(10, 8, 6, 0.25) 45%, rgba(10, 8, 6, 0.75) 100%);
}
.page-hero__inner { width: 100%; padding: 0 0 clamp(48px, 8vh, 86px); }
.page-hero h1 { font-size: clamp(36px, 6.4vw, 78px); }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 48ch; margin: 20px 0 0; }

/* relleno dorado del logo */
#fillClip rect { transition: none; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

.line-reveal { display: block; overflow: hidden; }
.line-reveal > * {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.line-reveal.is-in > * { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .burger { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery a:first-child img { aspect-ratio: 4 / 3; }
  .floater { display: none; }
}

@media (max-width: 560px) {
  .hero__scroll { display: none; }
  .btn { padding: 14px 24px; letter-spacing: 0.2em; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact-list span { min-width: 100%; }
  .brand__name { font-size: 18px; }
  .mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .line-reveal > * { opacity: 1; transform: none; }
}
