/* ====================================================================
   PRESTIGE LUXURY REAL ESTATE — Sistema de marca aplicado al sitio
   v1.0 · 2026-05-09
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta */
  --raw-umber:   #7A5938;
  --timberwolf:  #D7D0C7;
  --anthracite:  #2D302F;
  --gold:        #C9A35C;

  --raw-umber-dark:   #5C4229;
  --anthracite-soft:  #3F4341;
  --timberwolf-soft:  #ECE7DF;
  --gold-soft:        #E0BE7A;

  --bg:            #FAF8F4;
  --surface:       #FFFFFF;
  --text:          var(--anthracite);
  --text-muted:    #5F5E5A;
  --line:          rgba(45, 48, 47, 0.10);

  /* Tipografía */
  --font-display:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:     'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;

  --tracking-tight:  -0.01em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.30em;

  --max-w:    1320px;
  --gutter:   clamp(1rem, 4vw, 2.5rem);
  --radius:   2px;

  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition:  all 0.4s var(--ease);
}

/* ====== Reset ====== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

button { font-family: inherit; cursor: pointer; }

/* ====== Tipografía ====== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: var(--tracking-wide);
  color: var(--anthracite);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 500; }

p  { margin: 0 0 1.2em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
  border: 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }
section.pad-sm { padding: clamp(2rem, 5vw, 4rem) 0; }

.surface { background: var(--surface); }
.dark    { background: var(--anthracite); color: var(--timberwolf); }
.dark h1, .dark h2, .dark h3 { color: var(--timberwolf); }
.dark a:hover { color: var(--gold-soft); }

/* ====== Navbar ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(45, 48, 47, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 163, 92, 0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--timberwolf);
}
.nav-logo .mono {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400; line-height: 1;
  color: var(--gold);
}
.nav-logo .word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--timberwolf);
}
.nav-links {
  display: flex; gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--timberwolf);
  font-size: 0.78rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-color: var(--gold);
}
.nav-toggle { display: none; background: none; border: 0; color: var(--timberwolf); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--anthracite);
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    gap: 1.2rem;
    border-bottom: 1px solid rgba(201, 163, 92, 0.15);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ====== Botones ====== */
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  background: var(--anthracite);
  color: var(--timberwolf);
  border: 1px solid var(--anthracite);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--anthracite);
}
.btn-ghost {
  background: transparent;
  color: var(--anthracite);
}
.btn-ghost:hover {
  background: var(--anthracite);
  color: var(--timberwolf);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--anthracite);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}
.dark .btn-ghost {
  color: var(--timberwolf);
  border-color: var(--timberwolf);
}
.dark .btn-ghost:hover {
  background: var(--timberwolf);
  color: var(--anthracite);
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(45,48,47,0.55) 0%, rgba(45,48,47,0.85) 100%),
    radial-gradient(ellipse at center, var(--anthracite-soft) 0%, var(--anthracite) 70%);
  color: var(--timberwolf);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-inner {
  padding: 8rem var(--gutter) 4rem;
  max-width: 900px;
}
.hero h1 {
  color: var(--timberwolf);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero p.lead {
  color: var(--timberwolf);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 2.4rem;
  letter-spacing: 0.01em;
}
.hero .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====== Card de propiedad ====== */
.props-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card-prop {
  background: var(--surface);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.card-prop:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(45,48,47,0.10); }
.card-prop .img {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--timberwolf-soft) 0%, var(--timberwolf) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-prop .badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--anthracite);
  color: var(--gold);
  padding: 0.35rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.card-prop .body { padding: 1.6rem 1.4rem; }
.card-prop .codigo {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.card-prop h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.card-prop .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.card-prop .precio {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.card-prop .specs {
  display: flex; gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-prop .specs span strong { color: var(--anthracite); font-weight: 500; }

/* ====== Sección "valores" ====== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}
.value h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 400;
}
.value p { color: var(--text-muted); }

/* ====== Forms ====== */
.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--anthracite);
  border-radius: var(--radius);
  transition: var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.12);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* ====== Footer ====== */
.footer {
  background: var(--anthracite);
  color: var(--timberwolf);
  padding: 5rem var(--gutter) 2rem;
  border-top: 1px solid rgba(201, 163, 92, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li  { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer a   { color: var(--timberwolf); }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(215, 208, 199, 0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(215, 208, 199, 0.7);
  letter-spacing: 0.05em;
}

/* ====== Estados vacíos / placeholders ====== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state h3 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0.6rem;
}

/* ====== WhatsApp flotante ====== */
.wa-float {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--anthracite);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  z-index: 90;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(45,48,47,0.20);
}
.wa-float:hover {
  background: var(--gold);
  transform: translateY(-2px);
}
.wa-float svg { width: 26px; height: 26px; fill: var(--gold); transition: var(--transition); }
.wa-float:hover svg { fill: var(--anthracite); }
