/* Carolina Rettig: azul marino y taupe del logo, blanco tiza y arena. */
:root {
  --navy: #1B2533;
  --navy-2: #24324A;
  --navy-3: #0F1622;
  --taupe: #A2947A;
  --taupe-dark: #85775E;
  --sand: #ECE6DC;
  --chalk: #F6F5F1;
  --white: #FFFFFF;
  --ink: #1B2533;
  --ink-soft: #5D6572;
  --line: #E2DDD4;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 22px;
  --topbar-h: 7rem;
  --ease: cubic-bezier(.22, .8, .2, 1);

  font-family: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--chalk);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + .5rem); }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; background: var(--chalk); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 8px; background: var(--navy); color: #fff; }
.skip:focus { top: 1rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

h1, h2, .footer__name { font-family: "Marcellus", Georgia, serif; font-weight: 400; letter-spacing: -.005em; line-height: 1.08; }
h3 { font-weight: 600; letter-spacing: -.005em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.2rem; padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s, transform .25s var(--ease);
}
.btn--small { min-height: 2.7rem; padding: .5rem 1.15rem; font-size: .9375rem; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); box-shadow: 0 16px 34px -14px rgba(27, 37, 51, .7); }
.btn--taupe { background: var(--taupe); color: #fff; }
.btn--taupe:hover { background: var(--taupe-dark); box-shadow: 0 16px 34px -14px rgba(133, 119, 94, .8); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { background: var(--white); color: var(--navy); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

/* Shine sweep */
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-130%); animation: shine 4.5s var(--ease) 2.2s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* Animated gradient border */
.btn--border { border: 0; padding: calc(.8rem + 1.5px) calc(1.6rem + 1.5px); }
.btn--border::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), var(--taupe), #fff, var(--taupe), var(--navy-2), var(--taupe));
  animation: rotate 4s linear infinite;
}
.btn--border::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: inherit; background: var(--white); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotate { to { --angle: 360deg; } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .3s, height .4s var(--ease);
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); height: calc(5.6rem + env(safe-area-inset-top, 0px)); }
.topbar__logo { display: block; flex-shrink: 0; width: 10rem; transition: width .4s var(--ease); }
.topbar.is-scrolled .topbar__logo { width: 7.8rem; }
.topbar__nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; font-weight: 500; font-size: .9875rem; }
.topbar__nav a { position: relative; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--taupe); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.topbar__nav a:hover { color: var(--navy); }
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--taupe), var(--navy)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero::before {
  /* faint roofline pattern in the background */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cpath d='M0 60 60 12l60 48' fill='none' stroke='%23E2DDD4' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(to bottom, #000, transparent 75%); mask: linear-gradient(to bottom, #000, transparent 75%);
}
.hero__grid { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: .45rem; color: var(--taupe-dark); font-weight: 600; font-size: .9375rem; margin-bottom: 1.25rem; animation: fadeUp .8s var(--ease) .1s both; }
.hero__title { font-size: clamp(2.7rem, 6vw, 5.1rem); line-height: 1.04; color: var(--navy); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .w > span { display: inline-block; animation: wordUp 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes wordUp { from { transform: translateY(105%); } }
.hero__lead { max-width: 33rem; margin-top: 1.5rem; color: var(--ink-soft); font-size: clamp(1.08rem, 1.5vw, 1.25rem); animation: fadeUp 1s var(--ease) .7s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; animation: fadeUp 1s var(--ease) .85s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* The house: the logo's roof draws itself, then the photo grows inside it */
.hero__visual { position: relative; padding-top: 1rem; }
.house { position: relative; aspect-ratio: 1 / .92; }
.house__photo {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: polygon(50% 0%, 100% 34%, 100% 100%, 0% 100%, 0% 34%);
  animation: houseIn 1.4s var(--ease) .9s both;
}
.house__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; animation: kenburns 22s ease-in-out 1s infinite alternate; }
@keyframes houseIn { from { clip-path: polygon(50% 0%, 100% 34%, 100% 34%, 0% 34%, 0% 34%); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, 1%); } }
.house__roof {
  position: absolute; left: -7%; right: -7%; top: -5%; width: 114%; height: 41%; overflow: visible; pointer-events: none;
}
.house__roof path {
  fill: none; stroke: var(--taupe); stroke-width: 6; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) .2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.house__window {
  position: absolute; left: 50%; top: 27%; translate: -50% 0; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: clamp(2.6rem, 5vw, 3.6rem); aspect-ratio: 1;
  padding: 6px; background: var(--chalk); border-radius: 4px; box-shadow: 0 10px 24px -10px rgba(27, 37, 51, .5);
}
.house__window i { background: var(--navy); border-radius: 1px; animation: lightOn .5s var(--ease) both; }
.house__window i:nth-child(1) { animation-delay: 2.1s; }
.house__window i:nth-child(2) { animation-delay: 2.25s; }
.house__window i:nth-child(3) { animation-delay: 2.4s; }
.house__window i:nth-child(4) { animation-delay: 2.55s; }
.house__window { animation: fadeIn .4s ease 1.9s both; }
@keyframes lightOn { from { opacity: 0; transform: scale(.4); } }
@keyframes fadeIn { from { opacity: 0; } }
.hero__tag {
  position: absolute; left: 6%; bottom: 7%; z-index: 2; display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .875rem; font-weight: 500; box-shadow: 0 14px 30px -14px rgba(27, 37, 51, .5);
  animation: fadeUp .8s var(--ease) 2.3s both;
}
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: #3BB36B; box-shadow: 0 0 0 0 rgba(59, 179, 107, .6); animation: ping 2s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(59, 179, 107, 0); } }

/* ---------- Finder ---------- */
.finder {
  position: relative; z-index: 3; max-width: var(--wrap); margin: clamp(2rem, 4vw, 3rem) auto 0;
  display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 1rem;
  padding: 1rem; border-radius: 26px; background: var(--white);
  box-shadow: 0 30px 70px -35px rgba(27, 37, 51, .45), 0 0 0 1px var(--line);
  animation: fadeUp 1s var(--ease) 1.1s both;
}
.finder__ops { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--chalk); align-self: center; }
.finder__ops button { position: relative; z-index: 1; padding: .6rem 1.2rem; border: 0; background: none; border-radius: 999px; font-weight: 600; cursor: pointer; transition: color .3s; }
.finder__ops button[aria-checked="true"] { color: #fff; }
.finder__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--navy); transition: transform .45s var(--ease); }
.finder__ops[data-active="arriendo"] .finder__pill { transform: translateX(100%); }
.finder__field { display: grid; gap: .2rem; }
.finder__field span { font-size: .8125rem; font-weight: 600; color: var(--taupe-dark); padding-left: .2rem; }
.finder select, .sort select, .owner__form select, .owner__form input {
  width: 100%; min-height: 3rem; padding: .55rem 2.2rem .55rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--chalk);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231B2533' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1rem;
}
.owner__form input { background-image: none; padding-right: .9rem; cursor: text; }
.finder select:focus, .sort select:focus, .owner__form :is(input, select):focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 4px rgba(162, 148, 122, .2); }
.finder__go { min-height: 3rem; }

/* ---------- Sectors marquee ---------- */
.sectors { overflow: hidden; background: var(--navy); color: var(--sand); }
.sectors__track { display: flex; width: max-content; animation: marquee 34s linear infinite; padding-block: 1.1rem; }
.sectors span { display: inline-flex; align-items: center; gap: 2.25rem; padding-left: 2.25rem; font-family: "Marcellus", serif; font-size: clamp(1.3rem, 2.4vw, 1.9rem); white-space: nowrap; }
.sectors span::after { content: ""; width: 1.4rem; height: .8rem; background: var(--taupe); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 13 12 2l11 11' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 13 12 2l11 11' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: .75rem 3rem; align-items: end; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); color: var(--navy); }
.section-head p { color: var(--ink-soft); }

/* ---------- Listings ---------- */
.listings { padding-block: clamp(4rem, 9vw, 6.5rem); }
.listings__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tabs { display: flex; gap: .35rem; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.tabs button { padding: .55rem 1.15rem; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background-color .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.listings__count { margin-left: auto; color: var(--ink-soft); font-size: .9375rem; }
.sort select { min-height: 2.75rem; background-color: var(--white); }
.demo-note { margin-bottom: 1.25rem; padding: .7rem 1rem; border-radius: 12px; background: var(--sand); color: var(--taupe-dark); font-size: .9375rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); perspective: 1200px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden; cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: cardIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
  transform-style: preserve-3d;
}
.card:hover { --ty: -6px; box-shadow: 0 0 0 1px transparent, 0 34px 60px -30px rgba(27, 37, 51, .5); }
.card::after {
  /* light sheen that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 45%);
}
.card:hover::after { opacity: 1; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sand); }
.card__media > img, .card__media > svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card:hover .card__media > img, .card:hover .card__media > svg { transform: scale(1.06); }
.badges { position: absolute; top: .85rem; left: .85rem; right: .85rem; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--white); color: var(--navy); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.badge--venta { background: var(--navy); color: #fff; }
.badge--arriendo { background: var(--taupe); color: #fff; }
.badge--demo { margin-left: auto; background: rgba(255, 255, 255, .85); color: var(--taupe-dark); font-weight: 600; }
.card__count { position: absolute; right: .85rem; bottom: .85rem; z-index: 1; padding: .25rem .65rem; border-radius: 999px; background: rgba(15, 22, 34, .62); color: #fff; font-size: .78rem; font-weight: 600; }
.card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.3rem 1.3rem; }
.card__price { font-family: "Marcellus", serif; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.card__price small { font-family: "Albert Sans", sans-serif; font-size: .875rem; color: var(--ink-soft); margin-left: .25rem; }
.card__title { font-size: 1.0625rem; font-weight: 600; }
.card__place { display: flex; align-items: center; gap: .35rem; color: var(--ink-soft); font-size: .9375rem; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .35rem 0 0; padding: .8rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.specs > * { display: inline-flex; align-items: center; gap: .35rem; }
.specs svg { width: 1.1rem; height: 1.1rem; color: var(--taupe); }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--ink-soft); }
.empty .btn { margin-top: 1rem; }

/* ---------- Why (dark, spotlight follows the cursor) ---------- */
.why { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 10vw, 7.5rem); background: var(--navy); color: var(--chalk); }
.why__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 20%), rgba(162, 148, 122, .28), transparent 60%);
  transition: background-position .2s;
}
.why::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cpath d='M0 60 60 12l60 48' fill='none' stroke='%232C3A52' stroke-width='1.2'/%3E%3C/svg%3E");
}
.why__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.why__head h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); color: var(--white); }
.why__head p { color: rgba(246, 245, 241, .72); }
.why__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.reason {
  grid-column: span 2; position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .4s, background-color .4s, transform .5s var(--ease);
}
.reason:hover { border-color: rgba(162, 148, 122, .55); background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.reason--big { grid-column: span 3; padding: clamp(1.75rem, 3vw, 2.5rem); background: linear-gradient(150deg, rgba(162, 148, 122, .22), rgba(255, 255, 255, .03) 60%); }
.reason__icon { width: 2.4rem; height: 2.4rem; color: var(--taupe); margin-bottom: 1.25rem; }
.reason h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .5rem; }
.reason--big h3 { font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(1.45rem, 2.5vw, 1.95rem); line-height: 1.2; margin-bottom: .9rem; }
.reason p { color: rgba(246, 245, 241, .7); font-size: .9875rem; }

/* ---------- Services ---------- */
.services { padding-block: clamp(4.5rem, 10vw, 7rem); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem 1.25rem 1.6rem; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--taupe); transition: width 1.2s var(--ease) .3s; }
.steps li.is-in::before { width: 100%; }
.steps__n { display: block; font-family: "Marcellus", serif; font-size: 2.4rem; color: var(--taupe); line-height: 1; margin-bottom: .9rem; }
.steps h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); font-size: .9875rem; }

.owner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 28px; background: var(--sand); }
.owner__copy h3 { font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; margin-bottom: .75rem; }
.owner__copy p { color: var(--ink-soft); }
.owner__form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: end; }
.owner__form label { display: grid; gap: .25rem; }
.owner__form label span { font-size: .8125rem; font-weight: 600; color: var(--taupe-dark); }
.owner__form :is(input, select) { background-color: var(--white); }
.owner__form .btn { grid-column: 1 / -1; }
.owner__form input.invalid { border-color: #C0563B; }

/* ---------- CTA ---------- */
.cta { padding-block: 0 clamp(4.5rem, 9vw, 6.5rem); }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); border-radius: 32px; background: var(--navy); color: var(--chalk);
}
.cta__box h2 { max-width: 44rem; margin: 0 auto; font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--white); }
.cta__box p { margin: 1rem 0 2rem; color: rgba(246, 245, 241, .72); }
.cta__roof { position: absolute; left: -5%; right: -5%; top: 8%; width: 110%; height: 70%; z-index: -1; overflow: visible; }
.cta__roof path { fill: none; stroke: rgba(162, 148, 122, .35); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cta__box.is-in .cta__roof path { animation: draw 2.2s var(--ease) .2s forwards; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: rgba(246, 245, 241, .7); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .9875rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.footer__name { font-size: 2rem; color: var(--white); }
.footer__role { color: var(--taupe); letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; margin: .3rem 0 1rem; }
.footer__bio { max-width: 22rem; }
.footer h3 { color: var(--white); font-size: .9375rem; margin: 0 0 .75rem; }
.footer p { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--taupe); }
.footer__social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer__social a { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); transition: border-color .2s, transform .3s var(--ease); }
.footer__social a:hover { border-color: var(--taupe); transform: translateY(-3px); }
.footer__social svg { width: 1.15rem; height: 1.15rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; }
.footer__legal .credit { color: rgba(246, 245, 241, .45); }
.footer__legal .credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer__legal { margin-top: 3rem; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; z-index: 45; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.2rem .85rem 1rem; border-radius: 999px;
  background: #25D366; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .7);
  animation: fadeUp .8s var(--ease) 2.6s both;
}
.fab svg { width: 1.5rem; height: 1.5rem; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; animation: pulse 2.6s ease-out 3.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* ---------- Property sheet ---------- */
.sheet { width: min(60rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 26px; background: var(--white); color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: rgba(15, 22, 34, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetIn .5s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.sheet__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-height: calc(100dvh - 2rem); }
.sheet__media { position: relative; min-height: 20rem; background: var(--sand); }
.sheet__media > img, .sheet__media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__body { display: flex; flex-direction: column; gap: .8rem; max-height: calc(100dvh - 2rem); padding: clamp(1.5rem, 4vw, 2.5rem); overflow-y: auto; }
.sheet__meta { color: var(--taupe-dark); font-weight: 600; font-size: .875rem; }
.sheet__body h3 { font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; color: var(--navy); }
.sheet__price { font-family: "Marcellus", serif; font-size: 1.9rem; color: var(--navy); }
.sheet__price small { font-family: "Albert Sans", sans-serif; font-size: .9rem; color: var(--ink-soft); margin-left: .3rem; }
.sheet__body > p:not(.sheet__meta):not(.sheet__price) { color: var(--ink-soft); }
.sheet__desc { white-space: pre-line; }
.sheet__place { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .15rem .45rem; margin-top: -.2rem; color: var(--ink-soft); font-weight: 500; }
.sheet__place .icon { width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--taupe-dark); }
.sheet__place a { grid-column: 2; justify-self: start; color: var(--navy); font-size: .875rem; font-weight: 600; text-underline-offset: 3px; }
.sheet__place a:hover { color: var(--taupe-dark); }
.card__price .price-alt, .sheet__price .price-alt { display: block; margin: .35rem 0 0; }
.sheet__features { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.sheet__features li { padding: .3rem .8rem; border-radius: 999px; background: var(--chalk); font-size: .875rem; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.sheet__close { position: absolute; top: .9rem; right: .9rem; z-index: 3; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; }
.sheet__close svg { width: 1.2rem; height: 1.2rem; }
/* Foto completa (sin recortes) sobre un relleno difuminado de la misma foto */
.sheet__media { overflow: hidden; }
.gal__bg { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(22px) brightness(.8); transform: scale(1.1); }
.sheet__media > .gal__img { z-index: 1; object-fit: contain; cursor: zoom-in; }
.gal__full { position: absolute; top: .9rem; left: .9rem; z-index: 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.gal__full svg { width: 1.2rem; height: 1.2rem; }
.gal__full-close, .is-full .gal__full-open { display: none; }
.is-full .gal__full-close { display: block; }
.sheet__media.is-full { position: fixed; inset: 0; z-index: 10; height: auto; min-height: 0; aspect-ratio: auto; background: #0d131c; }
.sheet__media.is-full .gal__bg { opacity: .35; }
.sheet__media.is-full > .gal__img { cursor: zoom-out; }
.sheet__media.is-full .gal__full { left: auto; right: 1rem; top: 1rem; }
.gal__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-top: -1.3rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.gal__nav svg { width: 1.2rem; height: 1.2rem; }
.gal__nav--prev { left: .9rem; }
.gal__nav--prev svg { transform: rotate(180deg); }
.gal__nav--next { right: .9rem; }
.gal__count { position: absolute; left: 50%; bottom: .9rem; z-index: 2; transform: translateX(-50%); padding: .25rem .7rem; border-radius: 999px; background: rgba(15, 22, 34, .62); color: #fff; font-size: .8rem; font-weight: 600; }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .topbar__nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .finder { grid-template-columns: 1fr 1fr; }
  .finder__ops { grid-column: 1 / -1; justify-self: start; }
  .finder__go { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why__grid .reason { grid-column: span 3; }
  .why__grid .reason:last-child { grid-column: span 6; }
}
@media (max-width: 52rem) {
  .hero__grid, .section-head, .why__head, .owner, .sheet__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 30rem; margin-inline: auto; width: 100%; }
  .sheet__media { height: clamp(14rem, 62vw, 24rem); min-height: 0; }
  /* En una columna, la ficha completa (foto + texto) se desplaza junta */
  .sheet__inner { overflow-y: auto; }
  .sheet__body { max-height: none; overflow: visible; }
  .sheet__close { position: fixed; top: 1.9rem; right: 1.9rem; }
}
@media (max-width: 40rem) {
  :root { --topbar-h: 5.8rem; }
  .topbar__logo { width: 7.6rem; }
  .topbar.is-scrolled { height: calc(4.8rem + env(safe-area-inset-top, 0px)); }
  .topbar.is-scrolled .topbar__logo { width: 6.4rem; }
  .finder { grid-template-columns: 1fr; }
  .listings__count { margin-left: 0; flex-basis: 100%; order: 3; }
  .why__grid .reason, .why__grid .reason--big, .why__grid .reason:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .owner__form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { padding: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .house__roof path, .cta__roof path { stroke-dashoffset: 0; }
}
