/* Property Maps · estilos compartidos (landing y proyectos) */

:root {
  --navy: #00224a;
  --navy-2: #0b3a78;
  --navy-deep: #001631;
  --orange: #ff5a00;
  --orange-btn: #e04e00;
  --orange-soft: #ffe6d6;
  --paper: #eef2f6;
  --white: #ffffff;
  --ink: #0d1b2e;
  --muted: #4a5b72;
  --line: #c9d3df;
  --line-dark: rgba(255, 255, 255, 0.16);
  --sold: #d5dbe3;
  --ok: #1d7a4f;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius-s: 6px;
  --radius-m: 12px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36em; }
.muted { color: var(--muted); }
.num { }

.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 + p { margin-top: 18px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-s);
  font-size: 1.0625rem; font-weight: 700; text-decoration: none; letter-spacing: 0;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange-btn); color: var(--white); }
.btn-primary:hover { background: #c74500; }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-wa { background: #1a8f4c; color: var(--white); }
.btn-wa:hover { background: #157a40; }
.btn-block { width: 100%; }

.text-link {
  font-weight: 700; color: var(--navy); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--orange);
}
.text-link:hover { color: var(--orange-btn); }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 34, 74, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand-project {
  display: flex; flex-direction: column; line-height: 1.1;
  padding-left: 14px; border-left: 1px solid var(--line-dark);
}
.brand-project strong { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-project span { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none;
  font-weight: 500; color: rgba(255, 255, 255, 0.86);
}
.nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav .btn { min-height: 44px; padding: 0 18px; margin-left: 10px; font-size: 1rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; min-height: 52px; }
  .brand img { height: 32px; }
}
@media (max-width: 520px) {
  .brand-project span { display: none; }
}

/* ---------- Fondo cartográfico ---------- */

.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/curvas-azul.svg") center / cover no-repeat;
}
.topo-light::before { background-image: url("../img/curvas-claro.svg"); opacity: 0.7; }

/* ---------- Landing · hero con fotos de las parcelas ---------- */

/* Mismo alto para el banner de la portada y el de El Quillay: la pantalla bajo la cabecera */
:root { --hero-h: min(calc(100svh - 72px), 880px); }
/* Teléfonos angostos: el texto del banner no cabe en la pantalla; ambos crecen al mismo alto */
@media (max-width: 380px) { :root { --hero-h: max(min(calc(100svh - 72px), 880px), 640px); } }

.hero-pm { position: relative; min-height: var(--hero-h); display: flex; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-pm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 22, 49, 0.66) 0%, rgba(0, 22, 49, 0.3) 42%, rgba(0, 22, 49, 0) 68%),
    linear-gradient(180deg, rgba(0, 22, 49, 0) 55%, rgba(0, 22, 49, 0.6) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(24px, 5vh, 72px);
  padding-block: clamp(40px, 7vh, 120px) clamp(22px, 3.5vh, 44px);
}
.hero-pm h1 { max-width: 14ch; font-size: clamp(2.5rem, 6vw, 5rem); text-shadow: 0 2px 24px rgba(0, 22, 49, 0.35); }
.hero-pm .lead { max-width: 40ch; color: rgba(255, 255, 255, 0.92); margin-top: 24px; text-shadow: 0 1px 12px rgba(0, 22, 49, 0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 18px; }
.hero-credit { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.hero-credit svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.hero-credit b { display: block; font-weight: 700; }
.hero-credit small { display: block; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.hero-credit:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button {
  width: 44px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
}
.hero-dots button::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px;
  background: rgba(255, 255, 255, 0.4); border-radius: 2px; transition: background 0.2s;
}
.hero-dots button[aria-pressed="true"]::before { background: var(--orange); }
.hero-dots button:hover::before { background: rgba(255, 255, 255, 0.8); }

@media (max-width: 760px) {
  .hero-pm::after { background: linear-gradient(180deg, rgba(0, 22, 49, 0) 20%, rgba(0, 22, 49, 0.5) 50%, rgba(0, 22, 49, 0.82) 100%); }
}

/* ---------- Landing · proyectos ---------- */

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.project-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(420px, 46vw, 560px); border-radius: var(--radius-m); overflow: hidden;
  text-decoration: none; color: var(--white); background: var(--navy);
}
.project-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 22, 49, 0) 30%, rgba(0, 22, 49, 0.88) 100%);
}
.project-tile:hover img { transform: scale(1.04); }
.project-body { position: relative; z-index: 1; padding: clamp(22px, 3vw, 36px); }
.project-place { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 10px; }
.project-place svg { width: 18px; height: 18px; color: var(--orange); }
.project-body h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.project-body p { margin: 12px 0 22px; max-width: 30em; color: rgba(255, 255, 255, 0.86); }
.project-go {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  background: var(--white); color: var(--navy); border-radius: var(--radius-s); font-weight: 700;
}
.project-tile:hover .project-go { background: var(--orange); color: var(--white); }
.project-go svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
}

/* ---------- Landing · proceso ---------- */

.process { background: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 1.0625rem;
  position: relative; z-index: 1; margin-bottom: 22px;
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; max-width: 24em; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 36px 68px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
}

/* ---------- Landing · garantías ---------- */

.assurances { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(8px, 6vw, 96px); align-items: start; }
.assurance-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.assurance-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.assurance-list svg { width: 34px; height: 34px; color: var(--orange-btn); }
.assurance-list h3 { margin-bottom: 6px; }
.assurance-list p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .assurances { grid-template-columns: 1fr; }
}

/* ---------- Landing · contacto general ---------- */

.chooser { background: var(--navy); color: var(--white); }
.chooser .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.chooser p.lead { color: rgba(255, 255, 255, 0.8); margin-top: 18px; }
.chooser-links { display: grid; gap: 14px; }
.chooser-link {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark);
  text-decoration: none; transition: background-color 0.15s, border-color 0.15s;
}
.chooser-link:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.chooser-link img { width: 72px; height: 72px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.chooser-link strong { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.chooser-link span { color: rgba(255, 255, 255, 0.72); font-size: 0.9375rem; }
.chooser-link .arrow { margin-left: auto; width: 24px; height: 24px; color: var(--orange); flex: none; }
.chooser-mail { margin-top: 28px; color: rgba(255, 255, 255, 0.75); }
.chooser-mail a { color: var(--white); font-weight: 700; }
@media (max-width: 860px) { .chooser .wrap { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding-block: 48px 40px; font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-footer img { height: 34px; width: auto; }
.site-footer a { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal { flex-basis: 100%; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #1a8f4c; color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 22, 49, 0.35); text-decoration: none;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #157a40; }
.wa-panel {
  position: fixed; right: 18px; bottom: 92px; z-index: 60; width: min(340px, calc(100vw - 36px));
  background: var(--white); color: var(--ink); border-radius: var(--radius-m);
  box-shadow: 0 18px 48px rgba(0, 22, 49, 0.3); padding: 20px; display: none;
}
.wa-panel.open { display: block; }
.wa-panel h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.wa-panel p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 14px; }
.wa-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; font-weight: 700; color: var(--navy); }
.wa-panel a + a { margin-top: 8px; }
.wa-panel a:hover { border-color: var(--navy); background: var(--paper); }
.wa-panel a svg { width: 18px; height: 18px; color: var(--orange-btn); }

/* =========================================================
   Páginas de proyecto
   ========================================================= */

.hero-project { position: relative; min-height: var(--hero-h); display: flex; align-items: flex-end; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-project .media { position: absolute; inset: 0; }
.hero-project .media img, .hero-project .media video { width: 100%; height: 100%; object-fit: cover; }
.hero-project::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 22, 49, 0.78) 0%, rgba(0, 22, 49, 0.35) 55%, rgba(0, 22, 49, 0) 100%),
    linear-gradient(180deg, rgba(0, 22, 49, 0.2) 0%, rgba(0, 22, 49, 0) 30%, rgba(0, 22, 49, 0.6) 100%);
}
.hero-project .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 7vh, 120px) clamp(32px, 5vh, 72px); }
.hero-project .project-logo { height: clamp(88px, 11vw, 132px); width: auto; margin-bottom: 26px; }
.hero-project h1 { max-width: 13ch; }
.hero-project .place { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 18px; color: rgba(255, 255, 255, 0.9); }
.hero-project .place svg { width: 20px; height: 20px; color: var(--orange); }
.hero-project .lead { color: rgba(255, 255, 255, 0.88); margin-top: 22px; }

.facts { background: var(--navy); color: var(--white); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Cuatro bloques del mismo ancho: título en una línea y cifra en una línea, centrados */
.facts dl > div { padding: 26px 12px; border-left: 1px solid var(--line-dark); text-align: center; }
.facts dl > div:first-child { border-left: 0; }
.facts dt { font-size: 0.875rem; color: rgba(255, 255, 255, 0.66); margin-bottom: 6px; white-space: nowrap; }
.facts dd { margin: 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
@media (max-width: 760px) {
  .facts .wrap { padding-inline: 0; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div { padding: 22px 8px; }
  .facts dl > div:nth-child(odd) { border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-text p { color: var(--muted); max-width: 34em; }
.about-text h2 { margin-bottom: 24px; }
.features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.features svg { width: 24px; height: 24px; color: var(--orange-btn); flex: none; margin-top: 1px; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); }
.mosaic img:first-child { grid-row: span 2; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .mosaic { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* ---------- Plano de lotes ---------- */

.lots-section { background: var(--white); }
.lots-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.lots-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 18px; }
.filter { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.filter button { border: 0; background: var(--white); padding: 10px 16px; cursor: pointer; font-weight: 500; font-size: 0.9375rem; }
.filter button + button { border-left: 1px solid var(--line); }
.filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.legend .l-free { background: var(--white); border: 2px solid var(--navy); }
.legend .l-sold { background: var(--sold); }
.legend .l-river { background: #d8e9ff; border: 2px solid #2f6fc4; }
.legend .l-big { background: var(--orange-soft); border: 2px solid var(--orange-btn); }
.lots-updated { font-size: 0.8125rem; color: var(--muted); margin-left: auto; }

.lot-groups { display: grid; gap: 28px; }
.lot-group h3 { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.lot {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-height: 70px; padding: 8px 10px; text-align: left; cursor: pointer;
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius-s);
  transition: background-color 0.12s, color 0.12s, transform 0.12s;
}
.lot b { font-size: 1.0625rem; font-weight: 800; line-height: 1; }
.lot small { font-size: 0.75rem; color: var(--muted); }
.lot.is-river { background: #eef5ff; border-color: #2f6fc4; }
.lot.is-big { background: #fff4ec; border-color: var(--orange-btn); }
.lot.is-sold, .lot.is-na { background: var(--sold); border-color: var(--sold); color: #5d6b7e; cursor: default; }
.lot.is-sold small, .lot.is-na small { color: #7d8a9b; }
.lot.is-sold::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.55) 6px 8px);
}
.lot:not(.is-sold):not(.is-na):hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.lot:not(.is-sold):not(.is-na):hover small { color: rgba(255, 255, 255, 0.75); }
.lot[aria-pressed="true"] { background: var(--orange-btn) !important; border-color: var(--orange-btn) !important; color: var(--white) !important; }
.lot[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85) !important; }
.lot[hidden] { display: none; }

.lot-panel {
  position: sticky; top: 96px; border-radius: var(--radius-m); background: var(--paper);
  border: 1px solid var(--line); padding: 26px;
}
.lot-panel .empty { color: var(--muted); margin: 0; }
.lot-panel h3 { font-size: 1.75rem; letter-spacing: -0.02em; }
.lot-panel dl { margin: 18px 0 22px; display: grid; gap: 0; }
.lot-panel dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lot-panel dt { color: var(--muted); }
.lot-panel dd { margin: 0; font-weight: 700; text-align: right; }
.lot-panel .btn + .btn { margin-top: 10px; }
.price-note { font-size: 0.8125rem; color: var(--muted); margin: 14px 0 0; }

.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.price-cards div { padding: 16px; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); }
.price-cards span { display: block; font-size: 0.8125rem; color: var(--muted); }
.price-cards strong { font-size: 1.125rem; }

@media (max-width: 980px) {
  .lots-layout { grid-template-columns: 1fr; }
  .lot-panel { position: static; padding: 0; background: none; border: 0; }
  .lot-panel .empty { display: none; }
  .price-cards { margin-top: 4px; }
}

/* Teléfono: plano compacto (solo el número) y la ficha del lote sube desde abajo */
.lot-sheet, .sheet-backdrop { display: none; }
@media (max-width: 980px) {
  .sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0, 22, 49, 0.5);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
  .lot-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    max-height: 82vh; overflow-y: auto; background: var(--white); color: var(--ink);
    border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0, 22, 49, 0.25);
    padding: 12px var(--gutter) calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.35s;
  }
  .lot-sheet.open { transform: none; visibility: visible; transition-delay: 0s; }
  .lot-sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }
  .sheet-close {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--paper); display: grid; place-items: center; cursor: pointer;
  }
  .sheet-close svg { width: 20px; height: 20px; }
  .sheet-body h3 { padding-right: 52px; }
}
@media (max-width: 600px) {
  .lots-toolbar { gap: 10px 14px; }
  .legend { font-size: 0.8125rem; gap: 6px 14px; }
  .lots-updated { margin-left: 0; }
  .lot-groups { gap: 22px; }
  .lot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .lot { min-height: 0; aspect-ratio: 1 / 1; padding: 0; align-items: center; justify-content: center; text-align: center; }
  .lot b { font-size: 1rem; }
  .lot small { display: none; }
}

/* ---------- Tour 360 ---------- */

.tour { background: var(--navy); color: var(--white); overflow: hidden; }
.tour .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tour p.lead { color: rgba(255, 255, 255, 0.82); margin: 20px 0 30px; }
.tour-preview { position: relative; display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 6 / 5; max-height: 560px; width: 100%; text-decoration: none; }
.tour-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tour-preview:hover img { transform: scale(1.04); }
.tour-preview span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.95); color: var(--navy); font-weight: 800; white-space: nowrap;
}
.tour-preview span svg { width: 22px; height: 22px; color: var(--orange-btn); }
@media (max-width: 860px) { .tour .wrap { grid-template-columns: 1fr; } }

/* ---------- Condiciones ---------- */

.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.terms > div { padding: 28px clamp(12px, 2.5vw, 32px) 8px 0; }
.terms > div + div { padding-left: clamp(12px, 2.5vw, 32px); border-left: 1px solid var(--line); }
.terms strong { display: block; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.terms p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .terms { grid-template-columns: 1fr; }
  .terms > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Galería ---------- */

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m); }
.gallery figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.gallery-nav { display: flex; gap: 8px; margin-left: auto; }
.gallery-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; }
.gallery-nav button:hover { border-color: var(--navy); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-head { display: flex; align-items: flex-end; gap: 24px; }
@media (max-width: 640px) { .gallery { grid-auto-columns: 84%; } .gallery-nav { display: none; } }

/* ---------- Ubicación ---------- */

.location { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.location iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-m); background: var(--sold); }
.distances { list-style: none; margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.distances span { color: var(--muted); }
.distances strong { text-align: right; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }

/* ---------- Contacto / formulario ---------- */

.contact { background: var(--navy); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact .lead { color: rgba(255, 255, 255, 0.82); margin: 18px 0 32px; }
.contact-direct { display: grid; gap: 12px; max-width: 360px; }
.contact-direct .btn { justify-content: flex-start; }
.contact-mail { margin-top: 22px; color: rgba(255, 255, 255, 0.75); font-size: 0.9375rem; }
.contact-mail a { color: var(--white); font-weight: 700; }

.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-m); padding: clamp(22px, 3.5vw, 40px); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: var(--white); font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 34, 74, 0.15); }
.field.has-error input, .field.has-error select { border-color: #c4281c; }
.field .err { color: #c4281c; font-size: 0.875rem; display: none; }
.field.has-error .err { display: block; }
.phone { display: flex; }
.phone span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); background: var(--paper); color: var(--muted); }
.phone input { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 20px; }
.form-foot small { display: block; color: var(--muted); margin-top: 12px; font-size: 0.8125rem; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); font-weight: 500; display: none; }
.form-status.ok { display: block; background: #e3f4ea; color: #12512f; }
.form-status.fail { display: block; background: #fde8e6; color: #8f1d14; }
.form-done { text-align: left; }
.form-done svg { width: 48px; height: 48px; color: var(--ok); margin-bottom: 14px; }
.form-done h3 { margin-bottom: 8px; }
.form-done p { color: var(--muted); }

@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Aviso modo local ---------- */

.dev-note { font-size: 0.8125rem; background: #fff6d6; color: #6b5300; border-radius: var(--radius-s); padding: 10px 12px; margin-top: 12px; }

/* ---------- Mirador · video limpio y presentación debajo ---------- */

.hero-video { background: var(--navy); }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 72px); object-fit: cover; }
.intro-project { background: var(--navy); color: var(--white); padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-dark); }
.intro-project .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 56px; }
.intro-project h1 { max-width: 14ch; }
.intro-project .lead { color: rgba(255, 255, 255, 0.86); margin-top: 18px; }
.intro-project .hero-actions { margin-top: 0; }
@media (max-width: 860px) {
  .intro-project .wrap { grid-template-columns: 1fr; }
}
/* En el teléfono el video gana alto; el texto que trae va al centro y no se corta */
@media (max-width: 600px) {
  .hero-video video { aspect-ratio: 4 / 3; }
}

/* ---------- Animaciones de lectura ----------
   Solo corren con html.anim (lo pone el script del <head> si hay IntersectionObserver
   y la persona no pidió reducir el movimiento). site.js marca cada elemento con data-a. */

:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

.hero-slide img { transform: scale(1.07); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }

.anim [data-a] { transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }

.anim [data-a="rise"] { opacity: 0; transform: translateY(26px); }
.anim [data-a="rise"].is-in { opacity: 1; transform: none; }

.anim [data-a="lines"] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0 0.1em; margin: -0.14em 0 -0.1em; }
.anim [data-a="lines"] .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0s)); }
.anim [data-a="lines"].is-in .w > span { transform: none; }

.anim [data-a="wipe"] { clip-path: inset(100% 0 0 0); }
.anim [data-a="wipe"].is-in { clip-path: inset(0 0 0 0); }
.anim [data-a="wipe"] img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.anim [data-a="wipe"].is-in img { transform: none; }

.anim [data-a="stagger"] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * var(--gap, 90ms) + var(--d, 0s)); }
.anim [data-a="stagger"].is-in > * { opacity: 1; transform: none; }

/* La línea punteada entre los pasos se dibuja después de cada número */
.anim .steps[data-a] li::after { transform: scaleX(0); transform-origin: left center; transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 180ms + 0.35s); }
.anim .steps[data-a].is-in li::after { transform: none; }
@media (max-width: 860px) {
  .anim .steps[data-a] li::after { transform: scaleY(0); transform-origin: center top; }
}

/* El plano se arma lote por lote */
.anim [data-a="lots"] .lot { opacity: 0; transform: scale(0.6); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); transition-delay: calc(var(--i, 0) * 14ms); }
.anim [data-a="lots"].is-in .lot { opacity: 1; transform: none; }


/* ---------- Páginas legales (privacidad, términos) ---------- */

.legal { max-width: 46rem; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(72px, 10vw, 120px); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.02; color: var(--navy); }
.legal .fecha { margin: 14px 0 32px; color: var(--muted); font-size: 0.9375rem; }
.legal h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; margin: 48px 0 14px; color: var(--navy); }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.45em; }
.legal li::marker { color: var(--orange); }
.legal a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.legal .ficha { background: var(--white); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 20px 24px; margin: 18px 0 26px; }
.legal .ficha p { margin: 0 0 6px; }
.legal .ficha p:last-child { margin-bottom: 0; }
.legal .indice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 24px; margin: 0 0 8px; }
.legal .indice ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal .indice li { break-inside: avoid; font-size: 0.9375rem; margin-bottom: 0.35em; }
.legal .indice a { text-decoration: none; color: var(--navy); font-weight: 500; }
.legal .indice a:hover { text-decoration: underline; }
.legal .otra { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.form-foot small a { color: inherit; }
@media (max-width: 640px) {
  .legal .indice ol { columns: 1; }
  .legal p, .legal li { font-size: 1rem; }
  .legal .ficha { padding: 16px 18px; }
}

/* ---------- Consentimiento del formulario ---------- */

.field.consent { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; margin-top: 4px; }
.field.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange-btn); cursor: pointer; }
.field.consent label { font-weight: 400; font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.field.consent label a { color: var(--navy-2); font-weight: 700; }
.field.consent .err { grid-column: 1 / -1; }
.field.consent.has-error input { outline: 2px solid #c4281c; outline-offset: 2px; }
