/* ==========================================================================
   La Marquesa de Priorato · Landing page
   Mobile-first styles. No frameworks.
   ========================================================================== */

:root {
  --ink: #15201B;
  --ink-deep: #0E1613;
  --paper: #F2F4F1;
  --sage: #E7ECE4;
  --white: #FFFFFF;
  --line: #D5DBD6;
  --line-soft: #DDE3DE;
  --text-2: #44514A;
  --muted: #55625B;
  --green: #3E6B57;
  --link: #1F5F8B;
  --accent: #D4A63A;
  --error: #B3261E;

  --on-dark: #F4F6F2;
  --on-dark-2: #C9D4CD;
  --on-dark-3: #A9B8AF;

  --st-available: #2E7D32; /* Verde */
  --st-reserved: #1565C0; /* Azul */
  --st-sold: #C62828; /* Rojo */

  --placeholder-bg: #FFF1CC;
  --placeholder-ink: #6B4E00;
  --placeholder-line: #C79A1E;

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --forest: #1F3A2E;
  --cream: #FAF7F0;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --radius: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2F7DB5; outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--on-dark);
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--sage { background: var(--sage); }
.section--white { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0;
  font: 700 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.h2 {
  margin: 14px 0 0;
  font: 700 clamp(30px, 3.6vw, 48px)/1.05 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lead {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.note--sm { font-size: 13px; }

.placeholder {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px dashed var(--placeholder-line);
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
  font-weight: 600;
}
.placeholder--dark { background: transparent; color: #F1D48A; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 16px/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--on-dark); border: 0; }
.btn--dark:hover { color: var(--on-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.btn--outline-light { border-color: rgba(244, 246, 242, .45); color: var(--on-dark); font-weight: 600; }
.btn--outline-light:hover { color: var(--on-dark); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

.pill {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #AEB8B1;
  background: var(--white);
  color: var(--ink);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.pill.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pill--sm { padding: 0 14px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand__logo { height: 48px; width: auto; }
.brand__divider { width: 1px; height: 34px; background: var(--line); }
.brand__name { display: flex; flex-direction: column; gap: 4px; }
.brand__name strong { font: 800 19px/1 var(--font-display); letter-spacing: -.01em; }
.brand__name span { font: 600 10px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Project + comparator ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 24px 64px;
  align-items: end;
}
.split .lead { margin: 0; }
.split__text { display: flex; flex-direction: column; gap: 14px; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 2 / 1;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: #AFC08A;
  box-shadow: 0 20px 50px rgba(21, 32, 27, .16);
  user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.compare__tag {
  position: absolute; top: 16px;
  padding: 8px 12px; border-radius: 999px;
  font: 700 13px/1 var(--font-body);
  pointer-events: none;
}
.compare__tag--before { left: 16px; background: rgba(21, 32, 27, .85); color: var(--on-dark); }
.compare__tag--after { right: 16px; background: var(--accent); color: var(--ink); }
.compare__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare:focus-within .compare__handle { outline: 3px solid #2F7DB5; outline-offset: 3px; }

.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Interactive plan ---------- */
.plan-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.plan-header > div:first-child { max-width: 640px; }
.tabs { display: flex; gap: 8px; }

.plan-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.plan-col { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; }
.plan-hint { margin: 0; font-weight: 600; font-size: 13px; color: var(--muted); }
@media (min-width: 761px) { .plan-hint { display: none; } }

.plan {
  position: relative;
  min-width: 720px;
  padding: 30px 30px 30px 84px;
  border-radius: 18px;
  background: #C9D0CB;
  transition: background-color .3s ease;
}
.plan__road-label {
  position: absolute; left: 42px; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font: 700 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #3D4842;
}
.plan__grid { display: flex; flex-direction: column; gap: 24px; }
.plan__gate {
  position: absolute; left: 12px; bottom: 14px;
  width: 60px; padding: 9px 0;
  border-radius: 8px;
  background: var(--white); color: var(--ink);
  font: 700 11px/1.1 var(--font-body);
  text-align: center;
  transition: all .25s ease;
}

.block {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: var(--sage);
  transition: box-shadow .25s ease, outline-color .25s ease;
}
.block__label { font: 700 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.block__lots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

.lot {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transition: transform .15s ease, opacity .25s ease;
}
.lot--available { background: var(--st-available); color: var(--white); }
.lot--reserved { background: var(--st-reserved); color: var(--white); }
.lot--sold { background: var(--st-sold); color: var(--white); }
.lot:hover { transform: scale(1.05); }
.lot.is-selected {
  z-index: 2;
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}
.lot__model {
  position: absolute; top: 5px; right: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--white);
}

.lamp {
  display: none;
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  background: #FFD86B;
  box-shadow: 0 0 0 5px rgba(255, 216, 107, .35), 0 0 18px rgba(255, 216, 107, .9);
}
.lamp--tl { top: -20px; left: -20px; }
.lamp--tr { top: -20px; right: -20px; }
.lamp--bl { bottom: -20px; left: -20px; }
.lamp--br { bottom: -20px; right: -20px; }

/* Infrastructure mode: lots dimmed, the active layer is highlighted on the plan */
.plan[data-mode="infra"] .lot { opacity: .32; }
.plan[data-mode="infra"] .lot.is-selected { outline: 0; transform: none; box-shadow: none; }
.plan[data-mode="infra"][data-layer="vias"] { background: #38433E; }
.plan[data-mode="infra"][data-layer="vias"] .plan__road-label { color: #E8EDE9; }
.plan[data-mode="infra"][data-layer="bordillos"] .block { outline: 4px solid var(--white); outline-offset: 3px; }
.plan[data-mode="infra"][data-layer="agua"] .block { box-shadow: 0 0 0 5px #2F7DB5; }
.plan[data-mode="infra"][data-layer="alcantarillado"] .block { outline: 3px dashed #1F7A68; outline-offset: 4px; }
.plan[data-mode="infra"][data-layer="electricidad"] .block { outline: 3px dashed #8A6A10; outline-offset: 4px; }
.plan[data-mode="infra"][data-layer="iluminacion"] .lamp { display: block; }
.plan[data-mode="infra"][data-layer="acceso"] .plan__gate {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(212, 166, 58, .35);
  transform: scale(1.1);
}

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-weight: 500; font-size: 14px; color: #33403A; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; }
.swatch--available { background: var(--st-available); }
.swatch--reserved { background: var(--st-reserved); }
.swatch--sold { background: var(--st-sold); }
.swatch--model { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--white); }

.plan-panel {
  flex: 1 1 320px;
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(21, 32, 27, .08);
}
.panel { display: flex; flex-direction: column; gap: 18px; }
.panel h3 { margin: 10px 0 0; font: 800 44px/1 var(--font-display); letter-spacing: -.03em; }
.panel__sub { margin: 6px 0 0; font-weight: 500; color: var(--muted); }
.panel__title { margin: 0; font: 800 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.panel__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

.status {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  font: 700 14px/1 var(--font-body);
}
.status--available { background: var(--st-available); color: var(--white); }
.status--reserved { background: var(--st-reserved); color: var(--white); }
.status--sold { background: var(--st-sold); color: var(--white); }

.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.specs div { padding: 14px; border-radius: 12px; background: var(--paper); }
.specs dt { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 8px 0 0; font: 700 19px/1.2 var(--font-body); }

.model-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--on-dark); font-weight: 500; font-size: 14px; }
.layer-list { display: flex; flex-wrap: wrap; gap: 8px; }
.layer-card { padding: 16px; border-radius: 14px; background: var(--paper); }
.layer-card p { margin: 0; }
.layer-card p:first-child { font-weight: 700; font-size: 17px; }
.layer-card p + p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Location ---------- */
.location { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.location__list { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.map {
  flex: 2 1 520px;
  min-width: 0;
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #E3EAE1;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map text { font-family: var(--font-body); }
.route { fill: none; stroke: #7D8A83; stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; opacity: .75; transition: all .25s ease; }
.route.is-active { stroke: var(--ink); stroke-width: 5; stroke-dasharray: none; opacity: 1; }
.route-point { fill: var(--white); stroke: var(--muted); stroke-width: 2; transition: all .25s ease; }
.route-point.is-active { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.map__tag {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px dashed var(--placeholder-line);
  background: var(--placeholder-bg); color: var(--placeholder-ink);
  font: 600 12px/1.3 var(--font-body);
}
.map__badge {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.map__badge span:first-child { font-weight: 500; font-size: 13px; color: var(--on-dark-2); }
.map__badge span:last-child { font: 800 26px/1 var(--font-display); letter-spacing: -.02em; color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field legend { font-weight: 600; font-size: 15px; line-height: 1.2; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
/* ---------- Contact form ---------- */
.form-card { padding: clamp(22px, 3vw, 32px); border-radius: 24px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 16px 40px rgba(21, 32, 27, .08); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form .field { gap: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-width: 0; min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #C3CBC5;
  background: var(--white); color: var(--ink);
  font-size: 16px; line-height: 1.4;
}
.input.is-invalid { border-color: var(--error); }
.input--code { flex: none; width: 112px; padding: 0 10px; }
textarea.input { resize: vertical; }
.phone-row { display: flex; gap: 8px; }
.error { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--error); }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid #C3CBC5;
  font-weight: 500; font-size: 15px; cursor: pointer;
}
.radio input, .consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: #33403A; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.success { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.success__icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--ink); }
.success h3 { margin: 0; font: 800 30px/1.1 var(--font-display); letter-spacing: -.02em; }
.success p { margin: 0; line-height: 1.6; color: var(--text-2); }
.link-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--link); font-weight: 600; font-size: 15px; text-decoration: underline; cursor: pointer; }

.site-footer { padding: 48px 0 96px; background: var(--ink-deep); color: var(--on-dark-2); font-size: 14px; line-height: 1.5; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand strong { font: 800 20px/1 var(--font-display); color: var(--on-dark); }
.logo-plate { align-self: flex-start; display: inline-flex; padding: 10px 14px; border-radius: 12px; background: var(--white); }
.logo-plate img { height: 56px; width: auto; }
.site-footer__info { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-content: flex-start; font-weight: 500; }
.site-footer nav a { color: #DCE3DE; }
.legal { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.6; color: var(--on-dark-3); }

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}
.fab:hover { color: var(--ink); }

/* ---------- Plan gallery ---------- */
.plan-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
  margin-top: 24px;
}
.plan-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .plan-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .plan-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
.plan-gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.plan-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}
.plan-gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.plan-gallery__item:hover img {
  transform: scale(1.03);
}
.plan-gallery__label {
  display: block;
  padding: 12px 16px;
  font: 600 14px/1.3 var(--font-body);
  color: var(--ink);
  background: var(--white);
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: none;
  padding: 0;
  margin: auto;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: rgba(14, 22, 19, 0.95);
  backdrop-filter: blur(8px);
}
.lightbox::backdrop {
  background: rgba(14, 22, 19, 0.95);
  backdrop-filter: blur(8px);
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox__content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}
.lightbox__content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}
.lightbox__content img.is-zoomed {
  max-width: none;
  max-height: none;
  width: auto;
  height: 250vh;
  margin: auto;
  cursor: zoom-out;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .lot:hover { transform: none; }
}


/* ==========================================================================
   Revisión 26-oct-2026 · observaciones del cliente
   ========================================================================== */

/* Italic serif accent inside headings (Cassia style) */
.h2 em, .form-hero__title em, .hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green);
}
.eyebrow--light { color: #E9D49B; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--glass {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--glass:hover { color: #fff; background: rgba(255, 255, 255, .2); }

/* ---------- Top bar (replaces the navigation menu) ---------- */
.topbar {
  background: var(--forest);
  color: #EAF1EC;
  font: 600 13px/1 var(--font-body);
  letter-spacing: .04em;
  overflow: hidden;
}
.topbar__track {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 0;
  padding: 11px var(--gutter);
}
.topbar__track span { display: inline-flex; align-items: center; white-space: nowrap; text-transform: uppercase; }
.topbar__track span + span::before {
  content: ""; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: var(--accent);
}
.topbar strong { color: var(--accent); margin-left: 4px; }
.topbar__promo { text-transform: none !important; color: #F3DFA6; }
.topbar__dup { display: none !important; }
@media (max-width: 900px) {
  .topbar__track { justify-content: flex-start; flex-wrap: nowrap; width: max-content; animation: ticker 26s linear infinite; padding-left: 16px; }
  .topbar__track span:first-child::before { content: none; }
  .topbar__dup { display: inline-flex !important; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header: logo + one action ---------- */
.site-header { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-header .btn { white-space: nowrap; }
.brand__name strong { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .brand { gap: 8px; }
  .brand__divider, .brand__name span { display: none; }
  .brand__logo { height: 38px; }
  .brand__name strong { font-size: 16px; }
}

/* ---------- Hero with moving background ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
  background: #2B2A22;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; }
.hero__video, .hero__still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__still { z-index: 0; }
.hero__video { z-index: 1; opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(40, 30, 18, .30) 0%, rgba(30, 24, 16, .58) 70%),
    linear-gradient(180deg, rgba(25, 20, 12, .45) 0%, rgba(25, 20, 12, .25) 40%, rgba(20, 16, 10, .70) 100%);
}
.hero__inner {
  position: relative; z-index: 3;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 22px;
  padding-top: clamp(56px, 9vh, 110px);
  padding-bottom: clamp(56px, 9vh, 110px);
  text-align: center;
}
.hero__project {
  margin: 0;
  font: 500 clamp(18px, 2vw, 24px)/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero__title {
  margin: 0;
  max-width: 17ch;
  font: italic 500 clamp(42px, 6.4vw, 88px)/1.02 var(--font-serif);
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.price-card {
  position: relative;
  margin-top: 10px;
  padding: 30px 40px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(22, 20, 14, .52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.price-card__ribbon {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font: 700 12px/1 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.price-card__label { margin: 0; font: 600 15px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.price-card__amount { margin: 6px 0 10px; font: 800 clamp(52px, 7vw, 84px)/1 var(--font-display); letter-spacing: -.03em; color: #F2D27A; }
.price-card__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.88); }
.price-card__facts li::before { content: "✓ "; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); color: rgba(255, 255, 255, .8);
  font: 600 11px/1 var(--font-body);
}
@media (max-width: 520px) {
  .hero { min-height: 88vh; }
  .price-card { padding: 26px 22px 18px; width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Shared section bits ---------- */
.media-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(21, 32, 27, .78); color: var(--on-dark);
  font: 600 12px/1 var(--font-body);
}
.homes__gallery > .media-tag { top: 14px; left: 14px; }
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 14px; }
.section-head--center { margin: 0 auto; text-align: center; }
.media-tag { z-index: 2; }

/* ---------- Benefits ---------- */
.intro-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.intro-split__media { position: relative; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(21, 32, 27, .16); }
.intro-split__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.benefits {
  margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 14px;
}
.benefit {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}
.benefit svg {
  width: 40px; height: 40px; margin-bottom: 8px; padding: 8px;
  border-radius: 12px; background: var(--sage);
  fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.benefit strong { font: 700 18px/1.2 var(--font-display); }
.benefit span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Amenities / linear park ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.amenities__media { position: relative; border-radius: 24px; overflow: hidden; background: #333; box-shadow: 0 24px 50px rgba(21, 32, 27, .2); }
.amenities__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.amenities__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.amenities__copy .h2, .amenities__copy .lead { margin: 0; }
.amenity-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.amenity-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--white); font-weight: 600; font-size: 15px; }
.amenity-list__icon { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--forest); }
.amenity-list__icon svg { width: 20px; height: 20px; fill: none; stroke: #F2D27A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .amenity-list { grid-template-columns: 1fr; } }

/* ---------- Plan panel price ---------- */
.specs__price { background: var(--forest) !important; color: #fff; }
.specs__price dt { color: #CFE0D5 !important; }
.specs__price dd { color: #F2D27A; }

/* ---------- Homes ---------- */
.homes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.homes__gallery { position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; }
.homes__gallery figure { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 44px rgba(21, 32, 27, .16); }
.homes__gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.homes__second { width: 58%; margin: -22% 0 0 auto !important; border: 6px solid var(--paper); }
.homes__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.homes__copy .h2, .homes__copy .lead { margin: 0; }
.home-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.home-price__label { width: 100%; font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home-price__amount { font: 800 clamp(28px, 3vw, 36px)/1 var(--font-display); letter-spacing: -.02em; }

/* ---------- Prices ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 18px; align-items: stretch; }
.price-box { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.price-box--main { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: 0 24px 50px rgba(31, 58, 46, .3); }
.price-box__kicker { margin: 0; font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.price-box--main .price-box__kicker { color: #CFE0D5; }
.price-box__amount { margin: 0; font: 800 clamp(30px, 3.2vw, 40px)/1.05 var(--font-display); letter-spacing: -.02em; }
.price-box--main .price-box__amount { color: #F2D27A; }
.price-box__amount--sm { font-size: clamp(26px, 2.6vw, 32px); }
.price-box ul { margin: 0 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.price-box--main ul { color: #E2ECE6; }
.price-box li { padding-left: 22px; position: relative; }
.price-box li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--accent); }

/* ---------- Location carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 48px) / 4));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .carousel__track { grid-auto-columns: 74%; } }
.place-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 26px rgba(21, 32, 27, .1);
  transition: transform .2s ease, border-color .2s ease;
}
.place-card:hover { transform: translateY(-3px); }
.place-card.is-active { border-color: var(--forest); }
.place-card__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.place-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Illustrated fallbacks until the real photos are added in img/cerca-*.webp */
.place-card__img--lake { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F7D9A6'/%3E%3Cstop offset='1' stop-color='%23B9D8E0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='400' height='300' fill='url(%23s)'/%3E%3Cpath d='M0 170L70 110L130 150L210 80L290 140L350 105L400 130V300H0Z' fill='%236E8F7A'/%3E%3Cpath d='M0 200L90 160L170 190L260 150L400 185V300H0Z' fill='%234F7462'/%3E%3Cellipse cx='200' cy='245' rx='170' ry='34' fill='%237FB3C4'/%3E%3C/svg%3E"); }
.place-card__img--edu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect width='400' height='300' fill='%23DCE7E0'/%3E%3Crect x='80' y='120' width='240' height='130' fill='%23F4F1EA'/%3E%3Cpath d='M60 125L200 60L340 125Z' fill='%233E6B57'/%3E%3Cg fill='%2399B3A5'%3E%3Crect x='105' y='145' width='26' height='80'/%3E%3Crect x='150' y='145' width='26' height='80'/%3E%3Crect x='224' y='145' width='26' height='80'/%3E%3Crect x='269' y='145' width='26' height='80'/%3E%3C/g%3E%3Crect x='186' y='180' width='28' height='70' fill='%231F3A2E'/%3E%3Crect y='250' width='400' height='50' fill='%23A9C2B2'/%3E%3C/svg%3E"); }
.place-card__img--view { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect width='400' height='300' fill='%23F2D9B8'/%3E%3Ccircle cx='300' cy='80' r='34' fill='%23F5B971'/%3E%3Cpath d='M0 230L120 120L200 180L260 140L400 220V300H0Z' fill='%23557A66'/%3E%3Cpath d='M150 160v-60M150 100l-14 14M150 100l14 14' stroke='%231F3A2E' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M0 260h400v40H0Z' fill='%233E5E4D'/%3E%3C/svg%3E"); }
.place-card__img--city { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect width='400' height='300' fill='%23E8E1D3'/%3E%3Cg fill='%23F7F4EE' stroke='%23C8BBA4' stroke-width='3'%3E%3Crect x='40' y='150' width='80' height='110'/%3E%3Crect x='130' y='120' width='90' height='140'/%3E%3Crect x='230' y='160' width='70' height='100'/%3E%3Crect x='310' y='140' width='60' height='120'/%3E%3C/g%3E%3Cpath d='M160 120V80l15-20 15 20v40' fill='%23D4A63A'/%3E%3Crect y='260' width='400' height='40' fill='%23B8A88B'/%3E%3C/svg%3E"); }
.place-card__img--spa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect width='400' height='300' fill='%23DDE9E6'/%3E%3Cpath d='M0 150L90 90L170 140L260 70L400 140V300H0Z' fill='%2389A894'/%3E%3Cellipse cx='200' cy='235' rx='160' ry='45' fill='%2379B5BE'/%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='6' stroke-linecap='round' opacity='.85'%3E%3Cpath d='M150 200c-12-14 12-22 0-36'/%3E%3Cpath d='M200 196c-12-14 12-22 0-36'/%3E%3Cpath d='M250 200c-12-14 12-22 0-36'/%3E%3C/g%3E%3C/svg%3E"); }
.place-card__time {
  position: absolute; top: 12px; left: 12px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--forest); color: #F2D27A;
  font: 800 14px/1 var(--font-display);
}
.place-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.place-card__body strong { font: 700 16px/1.25 var(--font-display); }
.place-card__body span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.carousel__btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer;
}
.carousel__btn:hover { background: var(--ink); color: #fff; }
.map { flex: none; min-height: 380px; border-radius: 22px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map__badge {
  left: 50%; bottom: 18px; transform: translateX(-50%);
  flex-direction: row; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--forest); white-space: nowrap; pointer-events: none;
}
.map__badge span:first-child { font-size: 14px; font-weight: 600; color: #fff; }
.map__badge span:last-child { font-size: 18px; color: #F2D27A; }

/* ---------- Big full-screen form ---------- */
.form-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 100px) 0;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}
.form-hero__bg { position: absolute; inset: 0; }
.form-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 24s ease-in-out infinite alternate; }
.form-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20, 34, 27, .88) 0%, rgba(20, 34, 27, .72) 45%, rgba(20, 34, 27, .45) 100%);
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.form-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 960px) { .form-hero__inner { grid-template-columns: 1fr; } }
.form-hero__intro { display: flex; flex-direction: column; gap: 16px; }
.form-hero__intro p { margin: 0; font-size: 18px; line-height: 1.6; color: #E2ECE6; }
.form-hero__intro .eyebrow { font-size: 13px; }
.form-hero__title { margin: 0; font: 800 clamp(36px, 4.6vw, 62px)/1.02 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.form-hero__title em { color: #F2D27A; }
.form-hero__list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.form-hero__list li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 13px; }
.form-hero .form-card { color: var(--ink); padding: clamp(22px, 3vw, 36px); border: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.visit { padding: 18px; border-radius: 16px; background: var(--sage); }
.visit legend { float: left; width: 100%; margin-bottom: 12px; font: 700 16px/1.2 var(--font-display); }
.visit__row { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 420px) { .visit__row { grid-template-columns: 1fr; } }
.visit .radio { background: var(--white); }

/* ---------- Footer spacing (no closing band anymore) ---------- */
.site-footer { padding-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  .topbar__track { animation: none; flex-wrap: wrap; width: auto; }
  .topbar__dup { display: none !important; }
  .form-hero__bg img { animation: none; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .benefit { padding: 16px 14px; }
  .benefit svg { width: 34px; height: 34px; padding: 6px; margin-bottom: 4px; }
  .benefit strong { font-size: 15px; }
  .benefit span { font-size: 13px; }
}

.legal--credits { margin-top: 10px; padding-top: 0; border-top: 0; font-size: 11px; opacity: .75; }
