:root {
  --paper: #f4efe6;
  --paper-2: #ede3d5;
  --ink: #1f211d;
  --muted: #65645e;
  --green: #3f6b55;
  --green-dark: #254735;
  --clay: #a8643e;
  --sand: #ded0bd;
  --white: #ffffff;
  --line: rgba(31, 33, 29, 0.16);
  --shadow: 0 24px 60px rgba(31, 33, 29, 0.13);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(63, 107, 85, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 107, 85, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='480' viewBox='0 0 900 480' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233f6b55' stroke-width='1'%3E%3Cpath d='M-20 110 C80 64 178 70 258 116 S420 174 526 116 722 40 928 114'/%3E%3Cpath d='M-28 190 C108 114 198 144 300 196 S468 260 596 188 760 116 928 188'/%3E%3Cpath d='M-28 284 C104 232 230 238 336 292 S526 366 642 292 790 220 928 284'/%3E%3Cpath d='M-28 374 C116 328 234 334 360 386 S562 452 690 376 810 324 928 370'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center 24vh;
  background-repeat: no-repeat;
  background-size: min(1100px, 130vw) auto;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-solid {
  background: rgba(244, 239, 230, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(31, 33, 29, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

nav a,
.header-cta {
  text-decoration: none;
}

.header-cta {
  border: 1px solid currentColor;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 116px clamp(20px, 6vw, 80px) 34px;
}

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

.hero-media {
  background-image: url("assets/paisaje-zonda-san-juan.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 24, 19, 0.82) 0%, rgba(20, 24, 19, 0.44) 42%, rgba(20, 24, 19, 0.1) 100%),
    linear-gradient(0deg, rgba(20, 24, 19, 0.72), rgba(20, 24, 19, 0.03) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-bottom: 130px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: #f0c5a3;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 104px);
  max-width: 900px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 76px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(20px, 2.1vw, 30px);
  color: rgba(255, 255, 255, 0.9);
}

.availability {
  display: inline-block;
  margin-bottom: 30px;
  color: #ffe5c8;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--green);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(168, 100, 62, 0.55);
  outline-offset: 4px;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  border-color: currentColor;
}

.button.large {
  min-height: 64px;
  padding-inline: 30px;
  font-size: 18px;
}

.quick-facts {
  position: absolute;
  left: clamp(20px, 6vw, 80px);
  right: clamp(20px, 6vw, 80px);
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(20, 24, 19, 0.35);
  backdrop-filter: blur(12px);
}

.quick-facts div {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-facts div:last-child {
  border-right: 0;
}

.quick-facts dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: -1px auto 0;
  background: var(--green-dark);
  color: var(--white);
}

.trust-item {
  min-height: 146px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

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

.trust-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 4vw, 36px);
}

.split,
.location,
.finance,
.form-section,
.visit,
.price-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.section-copy p,
.section-heading p,
.location p,
.finance p,
.visit p,
.form-copy p,
.price-strip p,
.final-cta p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.feature-list,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list article,
.audience-grid article {
  background: rgba(255, 255, 255, 0.56);
  padding: 28px;
}

.feature-list p,
.audience-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.gallery {
  max-width: none;
  padding-left: clamp(20px, 6vw, 80px);
  padding-right: clamp(20px, 6vw, 80px);
  background: rgba(222, 208, 189, 0.36);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 34px;
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  grid-template-rows: repeat(2, 260px);
  gap: 18px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.gallery-main {
  grid-row: span 2;
}

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

.gallery-grid figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(31, 33, 29, 0.72);
  color: var(--white);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.map-frame {
  position: relative;
  min-height: 430px;
  box-shadow: var(--shadow);
  background: var(--sand);
  overflow: hidden;
}

.map-frame iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 430px;
  border: 0;
  display: block;
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 30px;
  color: var(--green-dark);
  text-align: center;
  background:
    linear-gradient(rgba(63, 107, 85, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 107, 85, 0.08) 1px, transparent 1px),
    var(--sand);
  background-size: 38px 38px;
}

.map-fallback strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.price-strip {
  max-width: none;
  padding-left: max(clamp(20px, 6vw, 80px), calc((100vw - var(--max)) / 2 + 36px));
  padding-right: max(clamp(20px, 6vw, 80px), calc((100vw - var(--max)) / 2 + 36px));
  background: var(--green-dark);
  color: var(--white);
}

.price-strip p {
  color: rgba(255, 255, 255, 0.76);
}

.price-callout {
  border-left: 5px solid var(--clay);
  padding: 28px 0 28px 30px;
}

.price-callout strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 48px);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px 20px 18px 46px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  position: relative;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 10px;
  height: 10px;
  background: var(--green);
  transform: rotate(45deg);
}

.visit {
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-section {
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fbf8f2;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.lead-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.faq {
  padding-top: 80px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.final-cta {
  padding: clamp(92px, 12vw, 160px) clamp(20px, 6vw, 80px);
  background:
    linear-gradient(90deg, rgba(31, 33, 29, 0.84), rgba(31, 33, 29, 0.38)),
    url("assets/paisaje-zonda-san-juan.jpg") center / cover;
  color: var(--white);
}

.final-cta h2,
.final-cta p,
.final-cta .hero-actions {
  max-width: 820px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 80px) 86px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-whatsapp {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

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

  nav {
    display: none;
  }

  .quick-facts,
  .trust-band,
  .split,
  .location,
  .finance,
  .form-section,
  .visit,
  .price-strip {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: -104px;
    margin-left: 20px;
    margin-right: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    align-items: center;
    min-height: 92svh;
    padding-bottom: 118px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .trust-band {
    margin-top: 0;
  }

  .trust-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-main {
    grid-row: auto;
  }

  .gallery-grid figure {
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .brand img {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(20, 24, 19, 0.84), rgba(20, 24, 19, 0.35)),
      linear-gradient(0deg, rgba(20, 24, 19, 0.72), rgba(20, 24, 19, 0.02) 54%);
  }

  h1 {
    font-size: clamp(44px, 16vw, 64px);
  }

  h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .feature-list,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 22px;
  }

  .mobile-whatsapp {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 14px 40px rgba(31, 33, 29, 0.28);
    font-weight: 900;
    text-decoration: none;
  }
}
