:root {
  --black: #050505;
  --ink: #111111;
  --soft-ink: #343434;
  --muted: #757575;
  --line: #dedede;
  --paper: #f4f1eb;
  --white: #ffffff;
  --gold: #d3aa45;
  --navy: #06142d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.floating-sales {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid rgba(211, 170, 69, 0.55);
  border-radius: 999px;
  background: rgba(5, 13, 28, 0.58);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.floating-sales span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.floating-sales strong {
  font-size: clamp(1rem, 2vw, 1.24rem);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(1, 9, 24, 0.78), rgba(1, 9, 24, 0));
}

.header-nav,
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-nav a,
.header-right > a:not(.header-action) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  transition:
    color 240ms ease,
    transform 240ms ease;
}

.header-nav a::after,
.header-right > a:not(.header-action)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.header-nav a:hover,
.header-right > a:not(.header-action):hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.header-nav a:hover::after,
.header-right > a:not(.header-action):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-right {
  justify-content: flex-end;
}

.brand {
  width: 142px;
}

.brand img,
.site-footer img {
  width: 100%;
  border-radius: 0;
}

.header-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(211, 170, 69, 0.72);
  border-radius: 8px;
  transition:
    color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.header-action::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 0;
  content: "";
  background: #25d366;
  transition: width 320ms ease;
}

.header-action::after {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  content: "";
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  transition:
    background 260ms ease,
    box-shadow 260ms ease;
}

.header-action:hover {
  border-color: #25d366;
  color: var(--black);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.24);
  transform: translateY(-1px);
}

.header-action:hover::before {
  width: 100%;
}

.header-action:hover::after {
  background: var(--black);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.22);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #06142d;
}

.hero-media::after {
  position: absolute;
  top: 11%;
  right: clamp(42px, 9vw, 170px);
  z-index: 1;
  width: min(760px, 48vw);
  aspect-ratio: 1.28;
  content: "";
  background:
    radial-gradient(circle at 46% 30%, rgba(255, 241, 150, 0.34), transparent 26%),
    radial-gradient(circle, rgba(255, 214, 83, 0.22), transparent 63%);
  filter: blur(2px);
  pointer-events: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(1.04) contrast(1.06) brightness(0.78);
}

.hero-logo-mark {
  position: absolute;
  top: 12%;
  right: clamp(36px, 8vw, 148px);
  z-index: 2;
  width: min(820px, 49vw);
  opacity: 1;
  mix-blend-mode: normal;
  filter: saturate(1.2) contrast(1.14) brightness(1.08) drop-shadow(0 22px 38px rgba(0, 0, 0, 0.48));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 230, 130, 0.18), transparent 20%),
    linear-gradient(to bottom, rgba(1, 10, 27, 0.04), rgba(1, 10, 27, 0.66)),
    linear-gradient(to right, rgba(1, 10, 27, 0.74) 0%, rgba(1, 10, 27, 0.43) 43%, rgba(1, 10, 27, 0.03) 72%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(980px, calc(100% - 36px));
  margin: 0;
  margin-left: clamp(18px, 5vw, 76px);
  padding: 112px 0 58px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

h1 {
  max-width: 600px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.75vw, 6.05rem);
  font-weight: 700;
  line-height: 0.9;
}

h1 span {
  color: var(--gold);
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 0.94;
}

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

.hero-content > p {
  max-width: 540px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-explore {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px !important;
  color: var(--gold) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-explore::after {
  width: 54px;
  height: 1px;
  content: "";
  background: rgba(211, 170, 69, 0.85);
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  align-items: center;
  gap: 12px;
  width: min(1060px, 100%);
  min-height: auto;
  margin-bottom: 22px;
  border: 0;
  background: transparent;
  color: var(--white);
}

.search-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(1.2);
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
}

.search-panel a {
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 240ms ease,
    transform 240ms ease;
}

.search-panel a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 0;
  height: 100%;
  content: "";
  background: linear-gradient(135deg, rgba(211, 170, 69, 0.95), rgba(255, 236, 159, 0.86));
  transition: width 300ms ease;
}

.search-panel a::after {
  display: none;
  content: "";
}

.search-panel a:hover {
  border-color: rgba(211, 170, 69, 0.9);
  color: var(--black);
  transform: translateY(-1px);
}

.search-panel a:hover::before {
  width: 100%;
}

.property-icon {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  transition: color 240ms ease;
}

.search-panel a:hover .property-icon {
  color: var(--black);
}

.icon-home::before {
  position: absolute;
  left: 4px;
  top: 11px;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  content: "";
}

.icon-home::after {
  position: absolute;
  left: 5px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.icon-building::before {
  position: absolute;
  inset: 3px 7px;
  border: 2px solid currentColor;
  content: "";
}

.icon-building::after {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 3px;
  height: 3px;
  content: "";
  background: currentColor;
  box-shadow:
    7px 0 currentColor,
    0 7px currentColor,
    7px 7px currentColor,
    0 14px currentColor,
    7px 14px currentColor;
}

.icon-land::before {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 6px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: skewX(-18deg);
}

.icon-briefcase::before {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 5px;
  height: 18px;
  border: 2px solid currentColor;
  content: "";
}

.icon-briefcase::after {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 10px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  content: "";
}

.icon-palm::before {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 2px;
  height: 18px;
  content: "";
  background: currentColor;
  transform: rotate(7deg);
}

.icon-palm::after {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 22px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  box-shadow:
    7px 2px 0 -1px currentColor,
    -4px 3px 0 -1px currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: static;
  justify-content: flex-start;
}

.primary-button,
.secondary-button,
.text-link,
.property-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 0 26px 0 30px;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    color 260ms ease,
    border-color 260ms ease,
    transform 260ms ease;
}

.primary-button::before,
.secondary-button::before,
.text-link::before,
.property-button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 0;
  content: "";
  background: var(--white);
  transition: width 320ms ease;
}

.primary-button::after,
.secondary-button::after,
.text-link::after,
.property-button::after {
  content: "→";
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 260ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.property-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover::before,
.secondary-button:hover::before,
.text-link:hover::before,
.property-button:hover::before {
  width: 100%;
}

.primary-button:hover::after,
.secondary-button:hover::after,
.text-link:hover::after,
.property-button:hover::after {
  transform: translateX(5px);
}

.primary-button {
  min-width: 245px;
  border: 1px solid rgba(255, 225, 130, 0.86);
  background: linear-gradient(135deg, #ad8732, #f4dc7d);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.primary-button:hover {
  color: var(--black);
}

.secondary-button {
  min-width: 275px;
  border: 1px solid rgba(211, 170, 69, 0.86);
  background: rgba(1, 10, 27, 0.28);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.secondary-button:hover {
  color: var(--black);
}

@media (min-width: 981px) and (max-height: 920px) {
  .hero-content {
    padding-top: 92px;
    padding-bottom: 34px;
  }

  h1 {
    max-width: 570px;
    font-size: clamp(2.8rem, 5.25vw, 5.55rem);
  }

  .hero-content > p {
    max-width: 500px;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-explore {
    margin-bottom: 14px !important;
  }

  .search-panel {
    width: min(1020px, 100%);
    margin-bottom: 18px;
  }

  .search-panel a {
    min-height: 66px;
    padding: 0 24px;
  }

  .hero-logo-mark {
    top: 10%;
    right: clamp(24px, 6vw, 118px);
    width: min(830px, 50vw);
  }

  .primary-button,
  .secondary-button {
    min-height: 52px;
  }
}

.regions,
.catalog,
.forms-section,
.media-section,
.services,
.owner-section,
.contact-section {
  padding: clamp(64px, 8vw, 116px) clamp(18px, 5vw, 70px);
}

.section-title {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-title.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.catalog .section-title.split {
  position: relative;
  z-index: 80;
}

.text-link {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--black);
}

.catalog-category-filter {
  position: relative;
  z-index: 100;
  display: block;
  justify-content: flex-end;
  width: 260px;
  max-width: 100%;
}

.catalog-category-filter.is-open {
  z-index: 150;
}

.category-filter-toggle {
  position: relative;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease;
}

.category-filter-toggle span {
  color: var(--gold);
  font-size: 0.72rem;
}

.category-filter-toggle::after {
  content: "⌄";
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.category-filter-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.category-filter-toggle:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.category-filter-menu {
  position: relative;
  top: auto;
  right: auto;
  z-index: 120;
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(211, 170, 69, 0.42);
  border-radius: 8px;
  background: rgba(1, 12, 29, 0.9);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.category-filter-menu.is-open {
  display: grid;
  gap: 6px;
}

.category-filter-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.category-filter-button:hover,
.category-filter-button.is-active {
  border-color: rgba(211, 170, 69, 0.7);
  background: rgba(211, 170, 69, 0.96);
  color: var(--black);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.region-grid article {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 280px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    url("assets/zonas/valverde-mao.jpg") center / cover;
  color: var(--white);
}

.region-grid article:nth-child(2) {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    url("assets/zonas/esperanza.jpg") center / cover;
}

.region-grid article:nth-child(3) {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    url("assets/zonas/laguna-salada.jpg") center / cover;
}

.region-grid article:nth-child(4) {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    url("assets/zonas/zonas-rurales.jpg") center / cover;
}

.region-grid span {
  font-size: 1.35rem;
  font-weight: 900;
}

.catalog {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #02101d 0%, #06304a 42%, #021826 72%, #010812 100%);
  color: var(--white);
}

.catalog > *:not(.catalog-video):not(.catalog-video-overlay) {
  position: relative;
  z-index: 2;
}

.catalog-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.24) saturate(1.12) contrast(1.04);
  pointer-events: none;
}

.catalog-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(1, 8, 18, 0.18), rgba(1, 8, 18, 0.58)),
    radial-gradient(circle at 80% 8%, rgba(211, 170, 69, 0.16), transparent 24%),
    linear-gradient(90deg, rgba(1, 8, 18, 0.46), rgba(1, 8, 18, 0.08), rgba(1, 8, 18, 0.48));
  pointer-events: none;
}

.catalog .section-title h2 {
  color: var(--white);
}

.catalog-filter {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

.property-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: 20px;
  justify-content: start;
}

.catalog-empty {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  line-height: 1.5;
}

.listing-card.is-hidden {
  display: none;
}

.listing-card {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.listing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  transition: transform 500ms ease;
}

.listing-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.76)),
    linear-gradient(to right, rgba(0, 0, 0, 0.32), transparent 52%);
}

.listing-card:hover img {
  transform: scale(1.035);
}

.card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-content {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.card-price {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
}

.card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 700;
  line-height: 0.94;
}

.card-location,
.card-specs {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.card-cta {
  width: fit-content;
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
}

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

.modal-shell {
  position: relative;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  background: var(--white);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-media,
.modal-details {
  background: var(--white);
}

.media-viewer {
  position: relative;
  overflow: hidden;
  background: #f5f6f7;
}

.media-viewer > img,
.media-viewer > video {
  display: none;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f5f6f7;
}

.media-viewer > .is-active {
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow.prev {
  left: 16px;
}

.gallery-arrow.next {
  right: 16px;
}

.modal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.modal-details h3 {
  max-width: 420px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.listing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
}

.listing-showcase:first-of-type {
  margin-top: 0;
}

.listing-media,
.listing-details {
  background: var(--white);
}

.main-listing-photo,
.main-listing-video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f5f6f7;
}

.listing-gallery {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.listing-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f5f6f7;
}

.sale-gallery {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.listing-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.listing-details h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.listing-price {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.listing-summary {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  background: var(--black);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 20px;
}

.property-specs span {
  min-height: 42px;
  padding: 9px 11px;
  background: #f2f2f2;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
}

.property-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  background: var(--black);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-button::before {
  background: var(--gold);
}

.property-button:hover {
  color: var(--black);
}

.form-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 18px 0 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color 260ms ease,
    transform 260ms ease;
}

.form-button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 0;
  content: "";
  background: var(--gold);
  transition: width 320ms ease;
}

.form-button::after {
  content: "→";
  font-size: 1.1rem;
  transition: transform 260ms ease;
}

.form-button:hover {
  color: var(--black);
  transform: translateY(-1px);
}

.form-button:hover::before {
  width: 100%;
}

.form-button:hover::after {
  transform: translateX(5px);
}

.forms-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.forms-section p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 18px;
  justify-content: start;
  background: transparent;
  align-items: stretch;
}

.form-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--black);
  color: var(--white);
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
}

.form-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.form-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06), transparent 42%, rgba(0, 0, 0, 0.62)),
    linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent 58%);
}

.rent-form-card {
  background-image: url("assets/formularios/alquiler.png");
  background-position: center;
  background-size: cover;
}

.buy-form-card {
  background-image: url("assets/formularios/compra.png");
  background-position: center;
  background-size: cover;
}

.form-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.form-card span {
  position: absolute;
  right: 24px;
  top: 24px;
  bottom: auto;
  left: 24px;
  z-index: 2;
  margin-bottom: 0;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.46);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-card strong {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.listing-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--soft-ink);
  line-height: 1.45;
  list-style: none;
}

.listing-features li {
  position: relative;
  padding-left: 18px;
}

.listing-features li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
}

.media-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.media-copy p:not(.eyebrow),
.owner-section p,
.contact-section p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(211, 170, 69, 0.32);
  background:
    radial-gradient(circle, rgba(211, 170, 69, 0.22), transparent 36%),
    linear-gradient(135deg, #06142d, #050505);
}

.video-placeholder img {
  width: min(520px, 82%);
  opacity: 0.84;
}

.video-placeholder video {
  width: 100%;
  height: 145%;
  object-fit: cover;
  object-position: center bottom;
  transform: translateY(-24%);
  filter: brightness(1.08) contrast(1.1) saturate(1.12);
}

.video-placeholder span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 1px;
  scroll-margin-top: 90px;
}

.services-title {
  grid-column: 1 / -1;
  padding: clamp(36px, 5vw, 64px);
  background: var(--white);
}

.services-title h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.service-item {
  min-height: 270px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--white);
}

.service-item span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 900;
}

.service-item p {
  color: var(--muted);
  line-height: 1.7;
}

.owner-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 40px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.owner-cta,
.whatsapp-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 28px;
  border: 1px solid rgba(211, 170, 69, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.owner-cta span,
.whatsapp-card span {
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.owner-cta strong,
.whatsapp-card strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 36px;
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.whatsapp-card {
  background: #eaf9ef;
  color: #0f5132;
}

.whatsapp-card span {
  color: #0f5132;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 70px);
  background: var(--white);
  color: var(--ink);
}

.site-footer img {
  width: 120px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-nav {
    display: none;
  }

  .brand {
    width: 132px;
  }

  .search-panel,
  .region-grid,
  .listing-showcase,
  .property-card-grid,
  .modal-shell,
  .media-section,
  .forms-section,
  .services,
  .owner-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .search-panel {
    display: flex;
    flex-wrap: wrap;
  }

  .search-panel a {
    flex: 1 1 150px;
  }

  .hero-logo-mark {
    top: 15%;
    right: 24px;
    width: min(500px, 58vw);
    opacity: 1;
  }

  .section-title.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .forms-grid {
    grid-template-columns: 1fr;
    max-width: 330px;
  }

  .listing-card {
    max-width: 430px;
    aspect-ratio: 1 / 1.02;
  }
}

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

  .header-right > a:not(.header-action) {
    display: none;
  }

  .brand {
    width: 116px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 128px;
    padding-bottom: 56px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-background {
    object-position: 63% center;
  }

  .hero-logo-mark {
    top: 118px;
    right: 50%;
    width: min(390px, 82vw);
    opacity: 0.72;
    transform: translateX(50%);
  }

  .hero-actions {
    position: static;
    justify-content: flex-start;
    margin-top: 20px;
  }

  .hero-content > p {
    font-size: 1rem;
  }

  .search-panel a {
    min-height: 54px;
    padding: 0 14px;
  }

  .primary-button,
  .secondary-button,
  .text-link {
    width: 100%;
  }

  .catalog-category-filter {
    width: min(100%, 330px);
  }

  .region-grid article,
  .video-placeholder {
    min-height: 240px;
    height: 240px;
  }

  .listing-card {
    max-width: none;
    aspect-ratio: 1 / 1.12;
  }

  .form-card {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .form-card span,
  .form-card strong {
    right: 18px;
    left: 18px;
  }

  .card-content {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .modal-shell {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .property-modal {
    width: 100%;
    max-height: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-sales {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    min-height: 48px;
    padding: 9px 13px;
  }
}
