:root {
  --ink: #1c1915;
  --ink-soft: #4a433c;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --sand: #d8cbb4;
  --gold: #b8894a;
  --gold-deep: #8c6230;
  --terracotta: #9c4a32;
  --white: #fffdf8;
  --line: rgba(28, 25, 21, 0.12);
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.12);
  --radius: 18px;
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #07111f;
  padding: 4px 16px;
  border-radius: 12px;
  height: 108px;
  width: 132px;
  overflow: hidden;
}

.brand-logo {
  height: 100px;
  width: 100px;
  object-fit: contain;
  display: block;
}

body[data-market="Estados Unidos"] .brand-logo-wrap {
  height: 88px;
  width: 116px;
  padding: 4px 14px;
}

body[data-market="Estados Unidos"] .brand-logo {
  height: 80px;
  width: 80px;
}

.brand-logo[hidden],
.brand-mark[hidden],
.brand-name[hidden] {
  display: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-name span {
  color: var(--gold-deep);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--gold-deep);
}

.nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 25, 21, 0.15) 0%, rgba(28, 25, 21, 0.72) 100%),
    linear-gradient(90deg, rgba(28, 25, 21, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 70px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  max-width: 12ch;
  margin-bottom: 18px;
}

.hero p {
  max-width: 46ch;
  font-size: 18px;
  color: rgba(255, 253, 248, 0.86);
  margin-bottom: 36px;
}

.search-panel {
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.search-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fff;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  align-self: end;
  min-width: 140px;
}

.btn-primary:hover {
  background: var(--gold-deep);
}

.usa-banner {
  background: #07111f;
  color: var(--white);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.usa-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin: 6px 0 8px;
}

.usa-banner .btn-primary {
  background: #c9a24a;
  color: #07111f;
  min-width: 220px;
}

.usa-banner .eyebrow {
  color: #d8cbb4;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
}

.muted {
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -48px;
  position: relative;
  z-index: 3;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(28, 25, 21, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  height: 220px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
}

.badge {
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.badge.gold {
  background: var(--gold);
  color: var(--white);
}

.heart {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
  font-size: 16px;
}

.heart.active {
  background: var(--terracotta);
  color: #fff;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price {
  font-family: var(--font-serif);
  font-size: 24px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.spec {
  background: var(--paper-2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.filters {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.filter-box {
  background: var(--white);
  border-radius: 22px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 92px;
  min-width: 0;
  overflow: hidden;
}

.filter-box input,
.filter-box select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.filter-box h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 18px;
}

.filter-box .field {
  margin-bottom: 14px;
}

.range-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
}

.chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--ink-soft);
}

.empty {
  background: var(--white);
  border-radius: 22px;
  padding: 48px 24px;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
}

.about-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  margin: 10px 0 16px;
}

.pillars {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.pillar span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
}

.contact-wrap {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-wrap h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-wrap .field label {
  color: rgba(255, 253, 248, 0.7);
}

.contact-wrap .field input,
.contact-wrap .field select,
.contact-wrap .field textarea {
  background: rgba(255, 253, 248, 0.08);
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.18);
}

.footer {
  padding: 28px 0 48px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.55);
  display: none;
  z-index: 80;
  padding: 24px;
  overflow: auto;
}

.modal.open {
  display: block;
}

.modal-card {
  width: min(980px, 100%);
  margin: 24px auto;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
  background: var(--ink);
}

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

.gallery-main {
  height: 360px;
}

.gallery-side {
  display: grid;
  gap: 8px;
}

.gallery-side img {
  height: 176px;
}

.detail {
  padding: 28px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.detail h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
}

.close {
  border: 0;
  background: var(--paper-2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  margin-top: 22px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.feature-list li,
.amenity-list li {
  list-style: none;
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.amenity-list li {
  background: var(--paper-2);
}

.side-box {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
}

.side-box .price {
  margin-bottom: 8px;
}

.listing-video {
  width: 100%;
  max-height: 360px;
  border-radius: 16px;
  margin-top: 10px;
  background: #07111f;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 14px;
  display: none;
  z-index: 90;
}

.toast.show {
  display: block;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-inline,
.contact-mail {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a {
  color: var(--ink-soft);
}

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

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .search-grid,
  .stats,
  .cards,
  .filters,
  .about-grid,
  .contact-wrap,
  .gallery,
  .detail-grid,
  .feature-list,
  .usa-banner {
    grid-template-columns: 1fr;
  }

  .usa-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-box {
    position: static;
  }

  .gallery-main,
  .gallery-side img {
    height: 220px;
  }
}
