/* ==========================================================================
   AURUM LIVING — Sistema de diseño
   Paleta: tinta (#14151A), marfil (#F7F4EC), latón/oro (#B8934C),
   musgo (#3E4A3D), piedra (#8A8579)
   Tipografía: Fraunces (display) + Inter (texto / utilidad)
   Firma visual: "marcas de plano" — esquinas en L que evocan planos
   arquitectónicos, presentes en tarjetas de propiedad y separadores.
   ========================================================================== */

:root {
  --ink: #14151a;
  --ink-soft: #24262e;
  --ivory: #f7f4ec;
  --ivory-dim: #efe9da;
  --gold: #b8934c;
  --gold-dim: #8c6f3a;
  --moss: #3e4a3d;
  --moss-light: #5c6b58;
  --stone: #8a8579;
  --line: #ddd6c6;
  --line-dark: #33352f;
  --white: #ffffff;
  --success: #4c6b4f;
  --reserved: #b8853a;
  --sold: #8a5050;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 2px;
  --gap: clamp(1.25rem, 2.5vw, 2rem);

  --shadow-card: 0 1px 2px rgba(20, 21, 26, 0.04), 0 8px 24px rgba(20, 21, 26, 0.06);
  --shadow-lift: 0 4px 8px rgba(20, 21, 26, 0.06), 0 16px 40px rgba(20, 21, 26, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dim);
  display: inline-block;
  margin-bottom: 0.9em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--gold-dim); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-outline.on-dark { border-color: rgba(247,244,236,0.5); color: var(--ivory); }
.btn-outline.on-dark:hover { background: var(--ivory); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ivory); }
.btn-whatsapp { background: #2f5b46; color: #fff; }
.btn-whatsapp:hover { background: #244634; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Marca de plano (firma visual) ---------- */
.blueprint-corners { position: relative; }
.blueprint-corners::before,
.blueprint-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gold);
  opacity: 0.9;
  z-index: 2;
}
.blueprint-corners::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.blueprint-corners::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.logo em { color: var(--gold); font-style: italic; }
.logo small { font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.22em; color: var(--stone); text-transform: uppercase; display: block; }

.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-dim); }

.nav-toggle { display: none; background: none; border: none; padding: 0.5em; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 1.5px; background: var(--ink);
  position: relative; transition: 0.25s;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 24px; }
.nav-toggle span::after { position: absolute; top: 7px; width: 24px; }

.header-cta { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: var(--ivory); transform: translateX(100%); transition: transform 0.35s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 2rem clamp(1.25rem,4vw,3rem); gap: 1.5rem; }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(20,21,26,0.35) 0%, rgba(20,21,26,0.55) 55%, rgba(20,21,26,0.88) 100%), var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.hero-inner { padding: 6rem 0 4.5rem; max-width: 780px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--ivory); }
.hero p.lede { color: rgba(247,244,236,0.86); font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-scroll { position: absolute; right: clamp(1.25rem,4vw,3rem); bottom: 2.2rem; writing-mode: vertical-rl; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,244,236,0.7); display: flex; align-items: center; gap: 0.8rem; }
.hero-scroll::after { content: ""; width: 1px; height: 40px; background: var(--gold); display: block; }

/* ---------- Secciones genéricas ---------- */
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark p { color: rgba(247,244,236,0.75); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-ivory-dim { background: var(--ivory-dim); }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.divider.gold { background: var(--gold); width: 64px; height: 2px; margin: 1.2rem 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de servicio / pilar ---------- */
.pillar-card {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pillar-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.pillar-card .num { font-family: var(--font-display); font-size: 0.85rem; color: var(--gold); display: block; margin-bottom: 1rem; }

/* ---------- Propiedades: tarjetas ---------- */
.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ivory-dim); }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.property-card:hover .property-media img { transform: scale(1.05); }
.status-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  padding: 0.4em 0.8em; border-radius: 2px; color: #fff;
}
.status-disponible { background: var(--success); }
.status-reservado { background: var(--reserved); }
.status-vendido { background: var(--sold); }
.property-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.property-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.property-title { font-size: 1rem; font-weight: 600; margin: 0; }
.property-loc { font-size: 0.85rem; color: var(--stone); }
.property-specs { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--stone); margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.property-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: 0.6rem; }
.property-actions .btn { flex: 1; padding: 0.7em 1em; font-size: 0.82rem; }

/* ---------- Filtros de búsqueda ---------- */
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  align-items: end;
}
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, 1fr); } }
.filters label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); margin-bottom: 0.5em; }
.filters select, .filters input {
  width: 100%; padding: 0.7em 0.8em; border: 1px solid var(--line); background: var(--ivory);
  font-family: var(--font-body); font-size: 0.9rem; border-radius: var(--radius);
}
.filters .btn { height: 42px; }
.results-meta { font-size: 0.85rem; color: var(--stone); margin-bottom: 1.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--stone); }

/* ---------- Franja de confianza / stats ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 2.5rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { flex: 1; min-width: 140px; }
.trust-item .stat { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-dim); display: block; }
.trust-item .label { font-size: 0.82rem; color: var(--stone); }

/* ---------- Testimonios ---------- */
.quote-card { padding: 2rem; border-left: 2px solid var(--gold); background: var(--white); }
.quote-card p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.quote-card cite { font-style: normal; font-size: 0.82rem; color: var(--stone); }

/* ---------- Timeline / pasos ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.4rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); position: absolute; top: 0; left: 0; }

/* ---------- Oportunidades internacionales: tarjetas país ---------- */
.country-card { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: var(--ivory); }
.country-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.country-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,21,26,0.15), rgba(20,21,26,0.92)); z-index: -1; }
.country-card .body { padding: 2rem; }
.country-card h3 { color: var(--ivory); }
.country-card .tag { display: inline-block; background: rgba(184,147,76,0.9); color: var(--ink); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3em 0.7em; margin-bottom: 0.8em; }

/* ---------- Disclaimer / aviso ---------- */
.disclaimer-box {
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.6rem;
  font-size: 0.88rem;
  color: var(--stone);
}

/* ---------- Formularios ---------- */
.form-field { margin-bottom: 1.3rem; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.85em 1em; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-body); font-size: 0.95rem; border-radius: var(--radius);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--stone); margin-top: -0.6rem; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .post-media { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 1.2rem; background: var(--ivory-dim); }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dim); margin-bottom: 0.5em; }
article.post-content { max-width: 720px; margin: 0 auto; }
article.post-content h2 { margin-top: 1.6em; }
article.post-content p { font-size: 1.02rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #2f5b46; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(20,21,26,0.25);
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,244,236,0.8); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--ivory); font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2em; }
.footer-grid a { display: block; font-size: 0.88rem; margin-bottom: 0.7em; color: rgba(247,244,236,0.72); transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(247,244,236,0.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: rgba(247,244,236,0.5); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Marcadores de posición de imagen (pendientes de foto real) ---------- */
.img-placeholder {
  position: relative;
  width: 100%; height: 100%;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(184,147,76,0.06) 0px, rgba(184,147,76,0.06) 1px, transparent 1px, transparent 14px),
    var(--ivory-dim);
  border: 1px dashed var(--gold);
  color: var(--stone);
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder .ph-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  color: var(--gold-dim); max-width: 240px; line-height: 1.5;
}
.img-placeholder .ph-icon { display:block; margin: 0 auto 0.6rem; opacity: 0.6; }

/* ---------- Aviso pendiente (para textos/datos aún por confirmar) ---------- */
.pending-note {
  display: inline-block;
  background: #fff8ec;
  border: 1px solid var(--gold);
  color: var(--gold-dim);
  font-size: 0.72rem;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  margin-left: 0.4em;
  vertical-align: middle;
}

.page-hero { background: var(--ink); color: var(--ivory); padding: 5.5rem 0 3rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--ivory); margin-bottom: 0.3em; }
.page-hero p { color: rgba(247,244,236,0.75); max-width: 640px; }
