:root {
  --ink: #161814;
  --muted: #5c6158;
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --sand: #e7dccb;
  --bronze: #8d6844;
  --bronze-deep: #6b4d30;
  --forest: #1b2a25;
  --line: rgba(22, 24, 20, 0.14);
  --shadow: 0 18px 50px rgba(22, 24, 20, 0.12);
  --header: 72px;
  --bar: 72px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--bronze-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section { padding: 72px 0; scroll-margin-top: 84px; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lede {
  max-width: 38rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 16px;
  color: #f6f1e8;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(246, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.nav-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  min-width: 220px;
  padding: 10px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.menu.is-open { display: grid; }
.menu a {
  padding: 12px 12px;
  text-decoration: none;
}
.site-header .header-wa { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #f7f3ec;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.18), rgba(16, 18, 15, 0.78)),
    url("fotos/fachada.jpg") center 30% / cover no-repeat;
}
.hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto calc(var(--bar) + 28px);
  padding-bottom: 4px;
}
.hero h1 {
  max-width: 10ch;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.hero-copy .eyebrow { color: #e6d3b4; }
.hero .dot { display: none; }
.hero .place { display: block; }
.hero p { max-width: 28rem; margin-top: 16px; font-size: 1.08rem; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}
.btn-light { background: #f6f1e8; color: var(--ink); }
.btn-line { border-color: rgba(246, 241, 232, 0.7); color: #f6f1e8; }
.btn-dark { background: var(--forest); color: #f6f1e8; }
.btn-bronze { background: var(--bronze); color: #fffaf3; }
.btn-full { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--forest);
  color: #f6f1e8;
}
.stats div { padding: 22px 18px; border-top: 1px solid rgba(246, 241, 232, 0.12); }
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 520;
}
.stats span { color: rgba(246, 241, 232, 0.72); font-size: 0.92rem; }

.split {
  display: grid;
  gap: 28px;
}
.split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

.gallery-head, .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}
.hint { color: var(--muted); font-size: 0.92rem; }
.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track button {
  flex: 0 0 84%;
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.gallery-track img { width: 100%; height: 280px; object-fit: cover; }
.gallery-track .caption { display: block; padding: 10px 2px 0; font-size: 0.92rem; }

.dark { background: var(--forest); color: #f6f1e8; }
.dark .eyebrow { color: #e6d3b4; }
.dark .lede, .amenity p { color: rgba(246, 241, 232, 0.74); }
.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.amenity {
  padding: 16px;
  border: 1px solid rgba(246, 241, 232, 0.16);
  min-height: 132px;
}
.amenity strong { display: block; margin: 18px 0 6px; font-size: 1.02rem; }
.amenity span {
  font-family: var(--serif);
  color: #e6d3b4;
  font-size: 1.1rem;
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.plan-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.plan-tab.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plan-layout { display: grid; gap: 18px; }
.plan-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
}
.plan-sheet svg { width: 100%; height: auto; }
.plan-copy h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 520;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.specs li { border-top: 1px solid var(--line); padding-top: 8px; }
.specs span { display: block; color: var(--muted); font-size: 0.82rem; }
.rooms { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }

.location {
  display: grid;
  gap: 18px;
}
.map {
  min-height: 280px;
  border: 0;
  width: 100%;
  background: var(--sand);
}
.address { margin-top: 12px; }

.form-card, .success {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}
.form-card { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
}
textarea { min-height: 110px; resize: vertical; }
.fine { color: var(--muted); font-size: 0.82rem; }
.success h3 { font-family: var(--serif); font-size: 2rem; font-weight: 520; margin-bottom: 8px; }

.site-footer {
  padding: 28px 0 120px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap { display: grid; gap: 8px; }

.wa-float {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #1f7a4d;
  color: white;
  box-shadow: var(--shadow);
}
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 241, 232, 0.96);
  border-top: 1px solid var(--line);
}
dialog {
  width: min(960px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}
dialog::backdrop { background: rgba(16, 18, 15, 0.82); }
dialog img { width: 100%; max-height: 78vh; object-fit: contain; margin-inline: auto; }
dialog figcaption { color: #f6f1e8; padding: 10px 4px 0; }
#lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f6f1e8;
  cursor: pointer;
}

@media (min-width: 800px) {
  .nav-toggle, .action-bar { display: none; }
  .menu {
    display: flex;
    position: static;
    min-width: 0;
    padding: 0;
    gap: 8px;
    background: transparent;
    color: inherit;
    border: 0;
    box-shadow: none;
  }
  .menu a { text-decoration: none; padding: 8px 10px; }
  .site-header .header-wa { display: inline-flex; margin-left: 8px; }
  .site-header.is-solid .header-wa { background: var(--forest); color: var(--cream); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats div + div { border-left: 1px solid rgba(246, 241, 232, 0.12); }
  .split, .plan-layout, .location, .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }
  .split img { height: 520px; }
  .gallery-track {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    overflow: visible;
  }
  .gallery-track button { flex: auto; }
  .gallery-track button:first-child { grid-row: span 2; }
  .gallery-track button:first-child img { height: 100%; min-height: 560px; }
  .amenities { grid-template-columns: repeat(4, 1fr); }
  .hero-copy { margin-bottom: 64px; }
  .hero .dot { display: inline; }
  .hero .place { display: inline; }
  .hint { display: none; }
  .gallery-head { flex-direction: row; align-items: end; justify-content: space-between; }
  .wa-float { display: grid; }
  .wa-float { bottom: 24px; }
  .site-footer { padding-bottom: 40px; }
  .contact-grid { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
