:root {
  --navy: #082f49;
  --navy-900: #061927;
  --blue: #0c4968;
  --gold: #d7a75b;
  --gold-light: #f0c983;
  --cream: #f7efe4;
  --ink: #13202a;
  --muted: #66727d;
  --white: #ffffff;
  --line: rgba(8, 47, 73, 0.14);
  --shadow: 0 22px 60px rgba(6, 25, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: rgba(6, 25, 39, 0.94);
  border-bottom: 1px solid rgba(240, 201, 131, 0.28);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.language-toggle {
  min-width: 46px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(240, 201, 131, 0.42);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-toggle:hover {
  color: #061927;
  background: var(--gold-light);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 25, 39, 0.9) 0%, rgba(8, 47, 73, 0.7) 42%, rgba(6, 25, 39, 0.1) 100%),
    linear-gradient(0deg, rgba(6, 25, 39, 0.72), rgba(6, 25, 39, 0.02) 52%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 4200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(6, 25, 39, 0.52);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-slider-button:hover {
  background: rgba(6, 25, 39, 0.78);
}

.hero-slider-prev {
  left: clamp(14px, 3vw, 36px);
}

.hero-slider-next {
  right: clamp(14px, 3vw, 36px);
}

.hero-slider-dots {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gold-light);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0 clamp(44px, 7vw, 76px);
  color: var(--white);
}

.hero-logo {
  width: min(310px, 80vw);
  margin-bottom: 32px;
  background: rgba(6, 25, 39, 0.86);
  border: 1px solid rgba(240, 201, 131, 0.24);
  padding: 16px 22px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.75rem, 6.2vw, 5.65rem);
}

h2 {
  color: var(--navy-900);
  font-size: clamp(1.95rem, 3.9vw, 3.35rem);
}

h3 {
  color: var(--navy-900);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
}

.hero-copy {
  max-width: 600px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions,
.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.button-primary {
  color: #061927;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 28px rgba(215, 167, 91, 0.24);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(215, 167, 91, 0.24);
}

.button-whatsapp {
  color: var(--white);
  background: #128c7e;
}

.button-sms {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.realtor-section,
.properties-section,
.contact-section {
  padding: clamp(68px, 9vw, 120px) 0;
}

.realtor-section {
  background: linear-gradient(180deg, var(--cream), #ffffff);
}

.realtor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(280px, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.portrait-wrap {
  position: relative;
  min-height: 520px;
}

.portrait-main,
.portrait-secondary {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.portrait-main {
  height: min(66vw, 560px);
  border: 8px solid var(--white);
}

.portrait-secondary {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: min(220px, 42vw);
  height: min(260px, 48vw);
  border: 6px solid var(--cream);
}

.realtor-copy p:not(.section-kicker),
.section-heading p,
.contact-section p,
.property-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.stats-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.stats-list div {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: var(--white);
}

.stats-list dt {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.stats-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.split-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(360px, 46vw, 620px);
  overflow: hidden;
  background: var(--navy-900);
}

.split-gallery-image {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 46vw, 620px);
  object-fit: cover;
}

.properties-section {
  background: #f8fafb;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.property-sections {
  display: grid;
  gap: clamp(48px, 7vw, 78px);
}

.property-group {
  scroll-margin-top: 96px;
}

.property-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.property-group-heading h3 {
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
}

.property-group-heading p:not(.section-kicker) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.property-count {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--navy);
  background: rgba(215, 167, 91, 0.16);
  border: 1px solid rgba(215, 167, 91, 0.36);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.property-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 47, 73, 0.08);
}

.slider {
  position: relative;
  min-height: 260px;
  background: var(--navy-900);
}

.slider-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.slider-preview img,
.slider img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.slider-preview img {
  transition: transform 520ms ease;
}

.slider-preview:hover img {
  transform: scale(1.035);
}

.slider-button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--white);
  background: rgba(6, 25, 39, 0.68);
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-button:hover {
  background: rgba(6, 25, 39, 0.9);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-count {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(6, 25, 39, 0.74);
  border: 1px solid rgba(240, 201, 131, 0.34);
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
}

.property-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
}

.property-card h3 {
  font-size: clamp(1.28rem, 1.65vw, 1.68rem);
  line-height: 1.22;
}

.property-title-button {
  display: inline;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
}

.property-title-button:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-meta span {
  padding: 8px 10px;
  color: var(--navy);
  background: rgba(215, 167, 91, 0.14);
  border: 1px solid rgba(215, 167, 91, 0.32);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.property-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.property-table th,
.property-table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.property-table th {
  width: 38%;
  color: var(--navy);
  font-weight: 800;
}

.property-table td {
  color: var(--muted);
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(6, 25, 39, 0.96), rgba(8, 47, 73, 0.9)),
    url("muestra-color.jpeg") center/cover;
}

.contact-section h2,
.contact-section p {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #061927;
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.property-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.property-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.property-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 25, 39, 0.76);
  backdrop-filter: blur(12px);
}

.property-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(240, 201, 131, 0.36);
  box-shadow: 0 28px 80px rgba(6, 25, 39, 0.34);
}

.property-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(6, 25, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.property-modal-gallery {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 620px;
  background: var(--navy-900);
}

.property-modal-image-wrap {
  position: relative;
  min-height: 540px;
}

.property-modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.property-modal-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(6, 25, 39, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.property-modal-prev {
  left: 16px;
}

.property-modal-next {
  right: 16px;
}

.property-modal-counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(6, 25, 39, 0.74);
  border: 1px solid rgba(240, 201, 131, 0.34);
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
}

.property-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.property-modal-thumb {
  flex: 0 0 84px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.property-modal-thumb.is-active {
  border-color: var(--gold-light);
}

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

.property-modal-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  overflow-y: auto;
}

.property-modal-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.property-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-right: 48px;
}

.property-modal-meta span {
  padding: 8px 10px;
  color: var(--navy);
  background: rgba(215, 167, 91, 0.14);
  border: 1px solid rgba(215, 167, 91, 0.32);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.property-modal-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.property-modal-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.property-modal-table th,
.property-modal-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.property-modal-table th {
  width: 34%;
  color: var(--navy);
  font-weight: 800;
}

.property-modal-table td {
  color: var(--muted);
}

.footer-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.floating-contact-stack {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 30;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.floating-socials {
  display: grid;
  gap: 8px;
}

.floating-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(6, 25, 39, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-social:hover {
  box-shadow: 0 16px 34px rgba(6, 25, 39, 0.24);
  transform: translateY(-2px);
}

.floating-social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--white);
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(18, 140, 126, 0.34);
  animation: whatsapp-shake 4.2s ease-in-out infinite;
}

.floating-whatsapp::before,
.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.58);
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

.floating-whatsapp::after {
  animation-delay: 1.2s;
}

.floating-whatsapp-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes whatsapp-shake {
  0%,
  78%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  82% {
    transform: translateX(-2px) rotate(-3deg);
  }

  86% {
    transform: translateX(2px) rotate(3deg);
  }

  90% {
    transform: translateX(-1px) rotate(-2deg);
  }

  94% {
    transform: translateX(1px) rotate(2deg);
  }
}

@media (max-width: 1040px) {
  .properties-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
  }

  .language-toggle {
    position: absolute;
    top: 20px;
    right: 18px;
  }

  .hero {
    min-height: 740px;
  }

  .hero-slider-button {
    display: none;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(6, 25, 39, 0.96) 0%, rgba(6, 25, 39, 0.7) 58%, rgba(6, 25, 39, 0.28) 100%);
  }

  .realtor-grid,
  .contact-grid,
  .property-group-heading {
    grid-template-columns: 1fr;
  }

  .property-group-heading {
    display: grid;
    align-items: start;
  }

  .portrait-wrap {
    min-height: auto;
    padding-bottom: 0;
  }

  .portrait-secondary {
    display: none;
  }

  .slider,
  .slider-preview,
  .slider-preview img,
  .slider img {
    min-height: 340px;
  }

  .property-modal {
    place-items: center;
    padding: 44px 14px 68px;
  }

  .property-modal-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
  }

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

  .property-modal-image-wrap,
  .property-modal-image-wrap img {
    min-height: 340px;
  }

  .property-modal-info {
    overflow: visible;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button,
  .property-actions .button,
  .hero-actions .button {
    flex: 1 1 180px;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.76rem;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0;
    padding-bottom: 4px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 6px 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-logo {
    width: 250px;
  }

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

  .split-gallery,
  .split-gallery-image {
    min-height: 260px;
  }

  .property-info {
    padding: 22px;
  }

  .properties-list {
    grid-template-columns: 1fr;
  }

  .property-table th,
  .property-table td,
  .property-modal-table th,
  .property-modal-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .property-table th,
  .property-modal-table th {
    border-bottom: 0;
  }

  .property-modal {
    padding: 48px 10px 78px;
  }

  .property-modal-dialog {
    max-height: calc(100vh - 126px);
    max-height: calc(100dvh - 126px);
  }

  .property-modal-image-wrap,
  .property-modal-image-wrap img {
    min-height: 280px;
  }

  .property-modal-thumb {
    flex-basis: 72px;
    height: 54px;
  }

  .floating-contact-stack {
    right: 14px;
    bottom: 14px;
    gap: 9px;
  }

  .floating-social {
    width: 38px;
    height: 38px;
  }

  .floating-whatsapp {
    width: 58px;
    height: 58px;
  }

  .floating-whatsapp-icon {
    width: 38px;
    height: 38px;
  }
}
