/* Solazmar design system — shared by the site, the investor journey and the portals. */
:root {
  --espresso: #1a110b;
  --espresso-2: #24180f;
  --espresso-3: #33231666;
  --sand: #f6f0e6;
  --sand-2: #ede3d2;
  --sand-3: #e2d4bd;
  --paper: #fffcf6;
  --gold: #c8922e;
  --gold-2: #e8c47c;
  --gold-3: #a8741c;
  --sea: #0d3a41;
  --sea-2: #155a60;
  --sea-3: #2b7c78;
  --foam: #d4e8e3;
  --coral: #c4613f;
  --leaf: #3d8a64;
  --ink: #23180f;
  --muted: #7b6b5b;
  --line: #2318101f;
  --line-2: #23181033;
  --gold-grad: linear-gradient(135deg, #f3d48e 0%, #c8922e 45%, #9a6517 100%);
  --sea-grad: linear-gradient(160deg, #0d3a41 0%, #0a2b31 60%, #071f24 100%);
  --r-s: 10px;
  --r: 18px;
  --r-l: 28px;
  --shadow: 0 1px 2px #1a110b0d, 0 8px 24px -8px #1a110b26;
  --shadow-l: 0 2px 4px #1a110b0f, 0 30px 60px -20px #1a110b4d;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-2); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 340;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -.025em;
  line-height: .98;
  margin: 0;
}
.display em, .h2 em, .h3 em {
  font-style: italic;
  font-weight: 300;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.h2 {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: 'opsz' 120, 'SOFT' 40;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 420;
  font-variation-settings: 'opsz' 48;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 11.5px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.on-dark .eyebrow { color: var(--gold-2); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.on-dark .lead { color: #e9dfcfcc; }
.num { font-variant-numeric: tabular-nums; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.on-dark .fine { color: #e9dfcf99; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 168px) 0; position: relative; }
.on-dark { background: var(--espresso); color: var(--sand); }
.on-sea { background: var(--sea-grad); color: var(--sand); }
.stack > * + * { margin-top: var(--s, 20px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--espresso);
  --fg: var(--sand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font: 650 15px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--espresso); box-shadow: 0 14px 30px -12px #c8922e99; }
.btn:active { transform: scale(.97); }
.btn .arr { transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn.gold { --bg: transparent; color: var(--espresso); background: var(--gold-grad); }
.btn.gold::before { background: var(--espresso); }
.btn.gold:hover { color: var(--sand); }
.btn.ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px transparent, 0 14px 30px -12px #c8922e99; }
.btn.light { --bg: var(--sand); --fg: var(--espresso); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link {
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font: 600 13.5px/1 var(--sans);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--espresso); color: var(--sand); border-color: var(--espresso); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--leaf); box-shadow: 0 0 0 4px #3d8a6426; }
.dot.hold { background: var(--gold); box-shadow: 0 0 0 4px #c8922e26; }
.dot.sold { background: var(--coral); opacity: .75; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: #ffffff1f; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid #ffffff2e; color: #fff; font: 600 13px/1 var(--sans);
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  position: relative;
}
.glow { position: relative; overflow: hidden; }
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), #e8c47c33, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.glow:hover::after { opacity: 1; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .label { font: 650 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
textarea.input { height: auto; min-height: 120px; padding: 14px 18px; resize: vertical; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px #c8922e26; }
.on-dark .input { background: #ffffff0d; border-color: #ffffff24; color: var(--sand); }
.on-dark .input::placeholder { color: #e9dfcf66; }

/* range */
input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer;
  --p: 50%;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--line-2) var(--p));
}
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 4px 14px -4px #1a110b66;
  transition: transform .25s var(--ease-out);
}
input[type='range']:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), box-shadow .5s, transform .6s var(--ease-out), color .4s;
  color: #fff;
}
.hdr .in { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .5s var(--ease); }
.hdr.solid {
  background: #f6f0e6d9; color: var(--ink);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.solid .in { height: 68px; }
.hdr.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand b { font: 420 23px/1 var(--display); letter-spacing: -.01em; font-variation-settings: 'opsz' 48; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font: 600 14px/1 var(--sans); text-decoration: none; opacity: .86; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.lang {
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid currentColor;
  background: transparent; font: 700 12px/1 var(--sans); letter-spacing: .08em; cursor: pointer; opacity: .8;
}
.lang:hover { opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .4s var(--ease-out); }
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-cta .btn { display: none; }
  .hdr-cta { margin-left: auto; }
}
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--espresso); color: var(--sand);
  display: grid; align-content: center; gap: 8px; padding: 32px var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-out);
}
.drawer.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.drawer a.big { font: 340 clamp(40px, 11vw, 64px)/1.1 var(--display); text-decoration: none; letter-spacing: -.02em; }
.drawer .close { position: absolute; top: 20px; right: var(--gutter); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(18% 8% 18% 8% round 28px); transition: clip-path 1.4s var(--ease-out); }
[data-reveal='clip'].in { clip-path: inset(0 0 0 0 round var(--r-l)); }
[data-reveal='clip'] img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
[data-reveal='clip'].in img { transform: scale(1); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%);
  background: var(--espresso); color: var(--sand); padding: 14px 20px; border-radius: 14px;
  font-weight: 600; box-shadow: var(--shadow-l); transition: transform .6s var(--ease-out); max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Grain ---------- */
.grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Masterplan ---------- */
.plan-svg { width: 100%; height: auto; display: block; }
.plan-svg .lot { cursor: pointer; transition: fill .3s, opacity .3s, filter .3s; stroke: #fffcf6; stroke-width: 2.5; }
.plan-svg .lot.disponible { fill: #3d8a64; }
.plan-svg .lot.apartado { fill: #c8922e; }
.plan-svg .lot.vendido { fill: #c4613f; opacity: .38; cursor: default; }
.plan-svg .lot.disponible:hover, .plan-svg .lot.apartado:hover { fill: #e8c47c; filter: drop-shadow(0 6px 10px #1a110b55); }
.plan-svg .lot.sel { fill: var(--espresso) !important; opacity: 1 !important; filter: drop-shadow(0 8px 16px #1a110b66); }
.plan-svg .lot.fav { fill: var(--gold) !important; opacity: 1 !important; stroke: var(--espresso); stroke-width: 3; }
.plan-svg .lot.dim { opacity: .12; }
.plan-svg .lbl { font: 700 15px var(--sans); fill: #fffcf6; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.plan-svg .lbl.vendido { fill: #7b3a24; opacity: .6; }
.plan-svg .road { fill: none; stroke: #e2d4bd; stroke-linecap: round; stroke-linejoin: round; }
.plan-svg .road-t { font: 700 13px var(--sans); letter-spacing: .25em; fill: #a8957c; text-anchor: middle; }
.plan-svg .green { fill: #cfe0c6; }
.plan-svg .pol-t { font: italic 400 30px var(--display); fill: #23180f; opacity: .55; text-anchor: middle; pointer-events: none; }
.plan-svg .tree { fill: #9fbf8f; opacity: .7; }
