:root {
  --ink: #151923;
  --muted: #68707d;
  --paper: #faf8f4;
  --mist: #eef4f6;
  --line: rgba(22, 24, 25, 0.13);
  --forest: #173f4f;
  --copper: #c96f4a;
  --gold: #e3bd76;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(21, 25, 24, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 30px rgba(22, 24, 25, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  opacity: 0.74;
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transition: right 160ms ease;
}

.main-nav a:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 56px) 42px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.78), rgba(13, 38, 50, 0.38) 52%, rgba(5, 10, 9, 0.1)),
    linear-gradient(0deg, rgba(17, 25, 35, 0.42), rgba(17, 25, 35, 0.04) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  color: #101311;
  background: var(--gold);
}

.button.glass {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4vw, 56px);
  bottom: 42px;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 13, 12, 0.42);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 56px);
}

.section,
.trust-strip div,
.edge-grid article,
.guide-grid article,
.service-grid article,
.territory-grid article,
.valley-cards article,
.zone-detail {
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

.section:hover {
  transform: translateY(-2px);
}

.trust-strip div:hover,
.edge-grid article:hover,
.guide-grid article:hover,
.service-grid article:hover,
.territory-grid article:hover,
.valley-cards article:hover,
.zone-detail:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(21, 25, 24, 0.12);
}

.landscape-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 6vw, 86px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 43, 59, 0.94), rgba(23, 63, 79, 0.72)),
    url("assets/paisaje-cordoba-valles.png") center / cover;
}

.landscape-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(17, 23, 34, 0.52), transparent);
  pointer-events: none;
}

.landscape-copy,
.valley-cards {
  position: relative;
  z-index: 1;
}

.landscape-intro .eyebrow {
  color: var(--gold);
}

.landscape-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.06rem;
  line-height: 1.75;
}

.valley-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: end;
}

.valley-cards article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.valley-cards span,
.valley-cards strong {
  display: block;
}

.valley-cards span {
  margin-bottom: auto;
  color: var(--gold);
  font-weight: 900;
}

.valley-cards strong {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.valley-cards p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.58;
}

.edge {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(135deg, #102b3b, #151923 60%, #4a2d24);
}

.edge .eyebrow {
  color: var(--gold);
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.edge-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.edge-grid strong,
.edge-grid span {
  display: block;
}

.edge-grid strong {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.edge-grid span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

.intro,
.section-head,
.services,
.territory {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.intro > p,
.section-head > p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.territory {
  background: var(--white);
}

.territory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.territory-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.territory-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter,
.zone-list button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 750;
}

.filter.active,
.zone-list button.active {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(22, 24, 25, 0.06);
  cursor: pointer;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

.property-card:hover,
.property-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(201, 111, 74, 0.45);
  box-shadow: 0 24px 60px rgba(21, 25, 24, 0.14);
  outline: none;
}

.property-card:hover .property-media,
.property-card:focus-visible .property-media {
  transform: scale(1.025);
}

.property-card.hidden {
  display: none;
}

.property-media {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  transition: transform 240ms ease;
}

.property-media span {
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.48);
  font-size: 0.82rem;
  font-weight: 800;
}

.media-stone {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent),
    linear-gradient(135deg, #4b4a55, #d3b891 48%, #173f4f);
}

.media-green {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent),
    linear-gradient(135deg, #173f4f, #79a6b4 52%, #d9c18b);
}

.media-lake {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent),
    linear-gradient(135deg, #102b3b, #6ea7bd 50%, #c96f4a);
}

.photo-casa-costa {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 58%),
    url("assets/properties/casa-con-costa.jpg");
}

.photo-casa-faro {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 58%),
    url("assets/properties/casa-faro.jpg");
}

.photo-casa-faro-2 {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 58%),
    url("assets/properties/casa-faro-2.jpg");
}

.photo-terreno-triangulo {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 58%),
    url("assets/properties/terreno-triangulo.jpg");
}

.photo-lote-condominio {
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 58%),
    url("assets/properties/lote-condominio.jpg");
}

.property-body {
  padding: 20px;
}

.property-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.property-topline strong {
  color: var(--forest);
}

.property-body p {
  color: var(--muted);
  line-height: 1.55;
}

.property-link {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--forest);
  background: var(--paper);
  cursor: pointer;
  font-weight: 850;
}

.property-card:hover .property-link {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 0;
}

dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.zones {
  background: var(--mist);
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.zone-detail {
  max-width: 880px;
  padding: clamp(24px, 4vw, 42px);
  border-left: 4px solid var(--copper);
  background: var(--white);
  box-shadow: var(--shadow);
}

.zone-detail p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cordoba-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(28px, 6vw, 86px);
  background: var(--white);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.guide-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.services {
  background: var(--ink);
  color: var(--white);
}

.services .eyebrow {
  color: var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.service-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(30px, 7vw, 90px);
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 56px);
  background: var(--white);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.lead-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--forest);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #111722;
}

.site-footer a {
  color: var(--gold);
}

.property-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.property-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-gallery {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  min-height: 560px;
  background: #101820;
}

.modal-gallery > img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
}

.modal-thumbs button {
  height: 82px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.modal-thumbs button.active {
  border-color: var(--gold);
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  padding: clamp(26px, 4vw, 46px);
}

.modal-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.modal-price {
  display: block;
  margin-bottom: 20px;
  color: var(--forest);
  font-size: 1.25rem;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.modal-facts {
  margin: 24px 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: 860px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .trust-strip,
  .property-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro,
  .edge,
  .landscape-intro,
  .territory,
  .cordoba-guide,
  .section-head,
  .services,
  .contact {
    grid-template-columns: 1fr;
  }

  .edge-grid,
  .guide-grid,
  .territory-grid,
  .valley-cards,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    min-height: auto;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 250, 247, 0.98);
    box-shadow: var(--shadow);
  }

  .site-header.open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 10px;
  }

  .hero {
    min-height: 820px;
    padding-top: 104px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }

  dl {
    grid-template-columns: 1fr;
  }

  .contact {
    padding-bottom: 76px;
  }
}
