:root {
  color-scheme: light;
  --pine: #152e27;
  --pine-dark: #10241e;
  --ink: #1a3028;
  --paper: #faf8f2;
  --leaf: #f7cf77;
  --mist: #efede3;
  --line: #ccd5c7;
  --muted: #4b6055;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.055em; line-height: 1; text-wrap: balance; }
:focus-visible { outline: 3px solid #a66636; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 10; padding: .7rem 1rem; color: var(--pine); background: var(--leaf); }
.header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem clamp(1.25rem, 5vw, 5rem); background: var(--pine-dark); color: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 1.45rem/1 var(--display); white-space: nowrap; }
.brand img { width: 3.25rem; height: 3.25rem; flex: none; }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
nav a { text-decoration: none; color: #e6ede0; }
nav a:hover, .property-line a:hover { text-decoration-thickness: 2px; }
nav a:hover { text-decoration-line: underline; text-underline-offset: .25em; }
.button { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1.2rem; border: 1px solid transparent; border-radius: 3rem; text-decoration: none; font-weight: 650; font-size: .93rem; line-height: 1.25; text-align: center; }
.button-outline { border-color: #a3b1a5; }
.button-outline:hover { background: #ffffff18; }
.button-accent { background: var(--leaf); color: var(--pine-dark); }
.button-accent:hover { background: #ecf4cd; }
.button-dark { background: var(--pine); color: white; }
.button-dark:hover { background: #27483c; }
.hero { display: grid; grid-template-columns: 43fr 57fr; background: var(--pine); color: var(--paper); }
.hero-text { padding: clamp(2.4rem, 5.5vw, 6rem) clamp(1.25rem, 5vw, 5rem); align-content: center; }
.kicker { display: flex; align-items: center; gap: .65rem; font-size: .9rem; font-weight: 650; letter-spacing: .045em; }
.hero .kicker { color: var(--leaf); }
.kicker span { width: 1.8rem; height: 1px; background: currentColor; }
h1 { margin: .75rem 0 1rem; font-size: clamp(2.75rem, 6.5vw, 7rem); line-height: .9; }
.hero-summary { max-width: 28ch; color: #e3ecdf; font-size: clamp(1.02rem, 1.45vw, 1.27rem); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; margin: 1.45rem 0 1.1rem; }
.hero-price strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.45rem); line-height: 1.15; }
.hero-price span { font-size: .9rem; color: #d4e0d3; }
.hero-image { display: grid; position: relative; min-height: clamp(30rem, 48vw, 43rem); overflow: hidden; }
.hero-image img { position: absolute; height: 100%; object-fit: cover; object-position: 48% 44%; }
.hero-image figcaption { align-self: end; justify-self: end; position: relative; background: var(--paper); color: var(--pine); margin: 1.25rem; font-size: .88rem; padding: .58rem .9rem; }
.property-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: 1.15rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); font-size: .94rem; }
.property-line span:first-child, .property-line a { font-weight: 650; }
.property-line a { text-underline-offset: .25em; }
.section { width: min(100% - clamp(2.5rem, 10vw, 10rem), 78rem); margin-inline: auto; padding-block: clamp(3.8rem, 8vw, 7.5rem); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: .9rem 3rem; align-items: end; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
h2 { font-size: clamp(2.65rem, 5.7vw, 5.3rem); }
.section-head p { max-width: 45ch; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.17rem); }
.feature { display: grid; grid-template-columns: 1.4fr 1fr; margin-bottom: 1rem; background: var(--mist); }
.feature:last-child { margin-bottom: 0; }
.feature-kitchen { grid-template-columns: 1fr 1.4fr; }
.feature-kitchen img { order: 1; }
.feature img { height: clamp(18rem, 35vw, 33rem); object-fit: cover; }
.feature-pool img { object-position: 50% 56%; }
.feature-copy { align-content: center; display: grid; gap: .9rem; padding: clamp(1.4rem, 4.5vw, 4rem); }
.feature-copy h3, .contact-card h3 { font-size: clamp(2rem, 3.65vw, 3.45rem); }
.feature-copy > p:last-child { color: var(--muted); max-width: 36ch; }
.gallery-section { background: var(--mist); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.filters button { min-height: 2.75rem; border: 1px solid #788c7c; border-radius: 2rem; padding: .55rem .95rem; color: var(--ink); background: transparent; font-size: .9rem; }
.filters button:hover { background: #dce7d8; }
.filters button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: white; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.photo { width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.photo-image { width: 100%; overflow: hidden; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.photo:hover img { transform: scale(1.035); }
.photo-copy { padding: .8rem .95rem .95rem; display: grid; gap: .2rem; }
.photo-title { font-weight: 650; }
.photo-description { color: var(--muted); font-size: .91rem; }
.more { display: flex; margin: 1.75rem auto 0; }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.property-location { margin-top: 1.2rem; font-weight: 650; }
.contact-card { padding: clamp(1.45rem, 4vw, 3.4rem); background: var(--pine); color: var(--paper); }
.contact-card > p { margin-top: .75rem; }
.contact-card .button { margin-top: 1rem; }
.contact-price strong { font: 1.7rem var(--display); }
.phone { font-size: .9rem; color: #d4e0d3; }
footer { flex-wrap: wrap; padding-block: 1.35rem; }
footer > a:last-child { font-size: .9rem; }
dialog { width: min(94%, 62rem); max-height: 96dvh; border: 1px solid #779186; color: var(--paper); background: var(--pine-dark); padding: .6rem clamp(.75rem, 3vw, 1.7rem) .85rem; }
dialog::backdrop { background: #08140fee; }
.viewer-header, .viewer-actions { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.viewer-header > p { font-size: .9rem; color: var(--leaf); }
.viewer-header button, .viewer-actions button { min-width: 2.75rem; min-height: 2.75rem; background: transparent; color: inherit; border: 1px solid #a3b1a5; border-radius: 3rem; }
.viewer-header button { font-size: 1.45rem; line-height: 1; }
.viewer-actions button { padding: .3rem .8rem; }
.viewer-header button:hover, .viewer-actions button:hover { background: #ffffff20; }
.viewer-figure { margin: .6rem 0 .85rem; }
.viewer-figure img { height: min(59dvh, 43rem); object-fit: contain; }
.viewer-figure figcaption { display: grid; text-align: center; margin-top: .55rem; }
.viewer-figure figcaption span { color: #d4e0d3; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 45fr 55fr; }
  .hero-image { min-height: 28rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .header { flex-wrap: wrap; padding-block: .7rem; gap: .65rem; }
  .header .button { font-size: .85rem; padding-inline: .8rem; }
  nav { flex-basis: 100%; order: 1; justify-content: space-between; gap: .5rem; font-size: .9rem; }
  nav a { padding-block: .3rem; }
  .hero, .section-head, .feature, .contact { grid-template-columns: 1fr; }
  .hero-text { padding-block: 2.5rem 1.9rem; }
  h1 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .hero-image { min-height: 0; aspect-ratio: 5 / 4; }
  .hero-image figcaption { margin: .75rem; }
  .property-line span:first-child { flex-basis: 100%; }
  .feature-kitchen img { order: 0; }
  .feature img { height: auto; aspect-ratio: 4 / 3; }
  .photo-copy { padding: .65rem; }
}
@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo img { transition: none; }
}

.hero { background: var(--paper); color: var(--ink); }
.hero-summary, .hero-price span, .hero .kicker { color: var(--muted); }
.hero-text { border-bottom: 1px solid var(--line); }
.hero-price { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.hero .button-accent { background: var(--pine); color: white; }
.hero .button-accent:hover { background: #284b40; }
.button { border-radius: .35rem; }
.feature { background: transparent; }
.feature-copy { border-block: 1px solid var(--line); }
.photo-copy { border-bottom: 1px solid var(--line); }
.photo-title { font: 400 1.35rem/1.22 var(--display); }
::selection { background: #f7cf77; color: #122d2a; }

.house-facts { display: flex; flex-wrap: wrap; gap: .85rem 1.65rem; margin: 1.65rem 0 0; }
.house-facts div { display: flex; flex-direction: column-reverse; gap: .25rem; }
.house-facts dt { color: var(--muted); font-size: .87rem; }
.house-facts dd { margin: 0; font: 400 clamp(1.25rem,2vw,1.7rem)/1.1 var(--display); }

.house-spread { isolation: isolate; }
.house-spread .pool-inset {
  inset: auto 1.25rem 1.25rem auto;
  width: 27%;
  height: 39%;
  object-fit: cover;
  border: 5px solid var(--paper);
  box-shadow: 0 5px 18px #18251e40;
}
@media (max-width: 740px) {
  .house-spread .pool-inset { right: .75rem; bottom: .75rem; border-width: 3px; }
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open],.gallery .photo { animation: aparecer .22s ease-out; }
  dialog[open]::backdrop { animation: oscurecer .2s ease-out; }
  .button,.filters button,.viewer-actions button { transition: background-color .18s,color .18s; }
  @keyframes aparecer { from { opacity: .65; transform: translateY(5px); } }
  @keyframes oscurecer { from { opacity: 0; } }
}

.aviso {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; z-index: 30;
  background: #1c211b; color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 600;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aviso { transition: none; } }

/* Tomas en video */
.house-spread video.pool-inset { position: absolute; display: block; background: var(--pine); }
.video-section { background: var(--pine-dark); color: var(--paper); }
.video-section .section-head p { color: #c9d6c8; }
.tomas { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(11.5rem, 21vw, 16.5rem); gap: clamp(.75rem, 1.6vw, 1.25rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .9rem; scrollbar-color: #5d7a6c transparent; }
.toma { scroll-snap-align: start; display: grid; gap: .6rem; }
.toma video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0b1a15; border-radius: .35rem; cursor: pointer; }
.toma figcaption { font: 400 1.2rem/1.2 var(--display); }
@media (max-width: 700px) {
  .tomas { grid-auto-columns: 62%; margin-inline: calc(clamp(1.25rem, 5vw, 5rem) * -1); padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
}
