/* Capital Renting — landing casa campestre Santa Verónica */

:root {
  /* Color */
  --ink: #0e2424;
  --ink-2: #153333;
  --bone: #f6f1e8;
  --sand: #ebe3d4;
  --line: #d9cfbd;
  --teal: #46a7a8;
  --teal-deep: #1f6b6c;
  --teal-soft: #b9d7d5;
  --text: #1b2a2a;
  --muted: #566664;
  --wa: #1faa59;

  /* Tipografía: Fraunces (títulos) + Figtree (texto) */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.050rem + .350vw, 1.3125rem);
  --fs-xl: clamp(1.300rem, 1.200rem + .450vw, 1.5625rem);
  --fs-2xl: clamp(1.950rem, 1.450rem + 2.100vw, 3.125rem);
  --fs-3xl: clamp(2.500rem, 1.550rem + 4vw, 4.625rem);
  --fs-num: clamp(2.500rem, 1.800rem + 2.900vw, 4rem);

  /* Forma: una sola escala de radios */
  --r-sm: 4px;   /* fotos */
  --r-md: 6px;   /* botones y filtros */
  --r-lg: 10px;  /* marcos de video */

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bone); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* Títulos */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 50;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); line-height: 1.040; letter-spacing: -.022em; }
h2 { font-size: var(--fs-2xl); line-height: 1.120; letter-spacing: -.018em; }
h3 { font-size: var(--fs-xl); line-height: 1.250; letter-spacing: -.010em; }

/* Rótulo de sección: rombo de la marca + texto en minúscula */
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .010em; color: var(--teal-deep);
}
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--teal); transform: rotate(45deg); flex: none; }
.kicker-light { color: var(--teal-soft); }

.ico { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: var(--fs-sm); }
.btn-lg { min-height: 58px; padding: 16px 30px; }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--ink-2); }
.btn-line, .btn-ghost { border-color: rgba(246, 241, 232, .450); color: var(--bone); }
.btn-line:hover { border-color: var(--bone); background: rgba(246, 241, 232, .080); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-light .ico { color: var(--wa); }
.btn-dark .ico { color: #4fd58a; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: 16px;
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-solid { background: rgba(14, 36, 36, .960); padding-block: 10px; }
.header-row { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--serif); font-variation-settings: "SOFT" 50; font-size: 1.125rem; font-weight: 420; letter-spacing: .010em; }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: rgba(246, 241, 232, .880); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  padding-block: 12px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--bone); border-color: var(--teal); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--bone); background: var(--ink); isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 28, 28, .920) 0%, rgba(10, 28, 28, .740) 42%, rgba(10, 28, 28, .380) 100%),
    linear-gradient(180deg, rgba(10, 28, 28, .550) 0%, rgba(10, 28, 28, 0) 26%, rgba(10, 28, 28, 0) 70%, rgba(10, 28, 28, .700) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.200fr) minmax(0, .800fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 120px 72px; }
.eyebrow { font-size: var(--fs-base); font-weight: 500; color: var(--teal-soft); margin-bottom: 20px; }
.lead { margin-top: 24px; max-width: 52ch; font-size: var(--fs-lg); line-height: 1.550; color: rgba(246, 241, 232, .900); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }

.hero-video { justify-self: end; width: min(100%, 372px); }
.video-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #071414;
  box-shadow: 0 0 0 1px rgba(246, 241, 232, .180), 0 32px 64px -32px rgba(0, 0, 0, .700);
}
.hero-video .video-frame { max-height: min(74svh, 660px); margin-inline: auto; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 12px; font-size: var(--fs-sm); color: rgba(246, 241, 232, .720); text-align: center; }
.sound-btn {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border: 0; border-radius: var(--r-md); background: rgba(246, 241, 232, .950); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 600; transition: background-color .2s;
}
.sound-btn:hover { background: #fff; }
.sound-btn[hidden] { display: none; }

/* Cifras */
.facts { background: var(--bone); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: clamp(26px, 3.600vw, 44px) 16px clamp(26px, 3.600vw, 44px) clamp(16px, 2.400vw, 32px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.num { font-family: var(--serif); font-variation-settings: "SOFT" 50; font-weight: 360; font-size: var(--fs-num); line-height: 1; letter-spacing: -.020em; color: var(--ink); }
.num small { font-size: .400em; margin-left: 4px; letter-spacing: 0; color: var(--teal-deep); }
.lbl { font-size: var(--fs-sm); color: var(--muted); }

/* Secciones */
.section { padding-block: var(--section); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }

/* La casa */
.casa-grid { display: grid; grid-template-columns: minmax(0, .920fr) minmax(0, 1.080fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.casa-copy h2 { margin-bottom: 24px; }
.casa-copy p { color: var(--muted); max-width: 54ch; }
.casa-copy p + p { margin-top: 16px; }
.price-card {
  margin-top: 36px; padding-block: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-block: 1px solid var(--line);
}
.price-lbl { display: block; font-size: var(--fs-sm); color: var(--muted); }
.price-txt { display: block; font-family: var(--serif); font-variation-settings: "SOFT" 50; font-size: var(--fs-xl); line-height: 1.250; color: var(--ink); }
.casa-media { position: relative; padding-bottom: 14%; }
.casa-media img { border-radius: var(--r-sm); object-fit: cover; }
.m-a { width: 86%; aspect-ratio: 4 / 3; margin-left: auto; }
.m-b { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 8px solid var(--bone); }

/* Ficha de la propiedad */
.ficha { margin-top: var(--section); display: grid; grid-template-columns: minmax(0, .820fr) minmax(0, 1.180fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ficha-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); }
.ficha-body h3 { font-size: var(--fs-2xl); line-height: 1.120; letter-spacing: -.018em; margin-bottom: 20px; }
.ficha-list { border-top: 1px solid var(--text); }
.ficha-list > div { display: grid; grid-template-columns: 9.500rem 1fr; gap: 16px; align-items: baseline; padding-block: 15px; border-bottom: 1px solid var(--line); }
.ficha-list dt { font-size: var(--fs-sm); color: var(--muted); }
.ficha-list dd { font-family: var(--serif); font-variation-settings: "SOFT" 50; font-size: var(--fs-xl); line-height: 1.300; color: var(--ink); }
.ficha-list dd span { font-family: var(--sans); font-size: var(--fs-base); color: var(--muted); }

/* Galería */
.galeria { background: var(--sand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-md); border: 1px solid #c4b8a1; background: transparent;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text); transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.masonry { columns: 3 300px; column-gap: 12px; }
.shot { display: block; margin-bottom: 12px; break-inside: avoid; overflow: hidden; border-radius: var(--r-sm); background: #d6ccb9; cursor: zoom-in; }
.shot img { width: 100%; transition: opacity .2s; }
.shot:hover img { opacity: .880; }
.shot[hidden] { display: none; }

/* De noche */
.noche { color: var(--bone); padding-block: var(--section); background: #071616; }
.noche-grid { display: grid; grid-template-columns: minmax(0, .800fr) minmax(0, 1.200fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.noche-copy h2 { margin-bottom: 20px; }
.noche-copy p { max-width: 46ch; color: rgba(246, 241, 232, .880); margin-bottom: 32px; }
.noche-media { display: grid; grid-template-columns: minmax(0, 1.700fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.video-frame.wide { aspect-ratio: 16 / 9; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: rgba(246, 241, 232, .950); display: grid; place-items: center; transition: background-color .2s;
}
.play-btn:hover { background: #fff; }
.play-btn svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 3px; }
.play-btn[hidden] { display: none; }

/* Ubicación */
.ubi-grid { display: grid; grid-template-columns: minmax(0, .900fr) minmax(0, 1.100fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ubi-copy h2 { margin-bottom: 20px; }
.ubi-copy > p { color: var(--muted); max-width: 52ch; }
.ubi-list { margin: 28px 0 12px; border-top: 1px solid var(--text); }
.ubi-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ubi-list b { font-family: var(--serif); font-variation-settings: "SOFT" 50; font-weight: 380; font-size: var(--fs-xl); color: var(--ink); white-space: nowrap; }
.ubi-copy > .ubi-note { font-size: var(--fs-sm); margin-bottom: 28px; }
.ubi-map { aspect-ratio: 5 / 4; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); }
.ubi-map iframe { width: 100%; height: 100%; border: 0; }

/* Cierre */
.cierre { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--bone); padding-block: clamp(88px, 13vw, 168px); text-align: center; }
.cierre-bg { position: absolute; inset: 0; z-index: -2; }
.cierre-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cierre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 28, 28, .840); }
.cierre-inner { max-width: 780px; }
.cierre .kicker { justify-content: center; }
.cierre h2 { font-size: var(--fs-3xl); line-height: 1.040; letter-spacing: -.022em; margin-bottom: 20px; }
.cierre p { color: rgba(246, 241, 232, .880); max-width: 50ch; margin-inline: auto; }
.tel { margin-top: 24px; }
.tel a { font-size: var(--fs-lg); font-weight: 500; text-underline-offset: 5px; text-decoration-color: rgba(246, 241, 232, .400); }

/* Footer */
.site-footer { background: #091a1a; color: rgba(246, 241, 232, .780); padding-block: 56px 28px; font-size: var(--fs-sm); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.footer-row img { width: 108px; height: 108px; }
.footer-row p { max-width: 36ch; font-family: var(--serif); font-variation-settings: "SOFT" 50; font-size: var(--fs-xl); line-height: 1.300; color: var(--bone); }
.footer-row ul { display: grid; gap: 4px; text-align: right; }
.footer-row a { display: inline-block; padding-block: 10px; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-row a:hover { color: var(--bone); border-color: var(--teal); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(246, 241, 232, .120); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(246, 241, 232, .600); }

/* CTA fijo */
.sticky-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 14px 22px 14px 18px;
  background: var(--wa); color: #fff; border-radius: var(--r-md); text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .550);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), background-color .2s;
}
.sticky-wa .ico { width: 24px; height: 24px; }
.sticky-wa.is-on { opacity: 1; pointer-events: auto; }
.sticky-wa:hover { background: #17964d; }

/* Visor */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 13, 13, .970); color: var(--bone); }
.lightbox::backdrop { background: rgba(5, 13, 13, .970); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 14px; padding: 56px 8px 20px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 2px; }
.lightbox figcaption { margin: 0; display: flex; gap: 18px; color: rgba(246, 241, 232, .860); }
#lbCount { color: rgba(246, 241, 232, .560); white-space: nowrap; }
.lb-nav, .lb-close { width: 52px; height: 52px; border-radius: var(--r-md); border: 1px solid rgba(246, 241, 232, .300); background: transparent; display: grid; place-items: center; margin: 0 14px; transition: background-color .2s, border-color .2s; }
.lb-nav:hover, .lb-close:hover { background: rgba(246, 241, 232, .120); border-color: var(--bone); }
.lb-nav svg, .lb-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: 14px; right: 6px; z-index: 2; }

/* Entrada: solo un fundido corto */
.js .reveal { opacity: 0; transition: opacity .5s var(--ease); }
.js .reveal.is-in { opacity: 1; }

/* Tablet */
@media (max-width: 1020px) {
  .main-nav { display: none; }
}

/* Móvil */
@media (max-width: 820px) {
  :root { --fs-base: 1rem; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 28, 28, .780) 0%, rgba(10, 28, 28, .700) 45%, rgba(10, 28, 28, .960) 100%); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 112px 48px; gap: 40px; }
  .hero-copy { min-height: calc(100svh - 190px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-bg { height: 100svh; }
  .hero-video { justify-self: center; width: min(100%, 340px); }
  .hero-video .video-frame { max-height: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .brand img { width: 34px; }
  .brand-name { font-size: 1rem; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  .casa-grid, .ubi-grid, .noche-grid, .ficha { grid-template-columns: 1fr; }
  .casa-media { order: -1; }
  .price-card .btn { flex: 1 1 100%; }
  .ficha-media img { aspect-ratio: 4 / 3; }
  .ficha-list > div { grid-template-columns: 6.500rem 1fr; gap: 12px; }
  .ficha-list dd span { display: block; }

  .masonry { columns: 2; column-gap: 8px; }
  .shot { margin-bottom: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .section-head { align-items: start; flex-direction: column; gap: 20px; }
  .section-head > * { max-width: 100%; }

  .noche-media { grid-template-columns: 1fr; gap: 28px; }
  .noche-video { justify-self: center; width: min(100%, 300px); }
  .ubi-map { aspect-ratio: 1 / 1; }

  .footer-row { grid-template-columns: 1fr; justify-items: start; gap: 20px; }
  .footer-row ul { text-align: left; }
  .site-footer { padding-bottom: 104px; }

  .sticky-wa { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; padding-inline: 8px; }
  .lb-nav { position: absolute; bottom: 18px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lightbox img { max-height: calc(100dvh - 210px); }
  .lightbox figcaption { flex-direction: column; align-items: center; gap: 2px; text-align: center; padding-bottom: 76px; }
}

@media (max-width: 520px) {
  .header-row .btn span { display: none; }
  .header-row .btn { padding: 10px; width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; }
}
