:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #1e2420;
  background: #f4efe6;
  font-family: Outfit, "Segoe UI", sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.demo-bar, .top, .hero, .banda, section, .pie {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.demo-bar {
  width: 100%;
  max-width: 100vw;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 1.2rem;
  background: #141414;
  color: #f4f1ea;
  font-size: 0.78rem;
}
.demo-bar > * { min-width: 0; overflow-wrap: anywhere; }
.demo-bar a { color: #fff; }
.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.logo {
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 620;
}
.logo em { font-style: normal; color: #1e3a32; }
nav { display: flex; gap: 1.1rem; margin-left: auto; }
nav a { text-decoration: none; font-size: 0.95rem; }
.nav-toggle, .wa {
  border: 0;
  background: #1e3a32;
  color: #f4efe6;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.nav-toggle { display: none; background: transparent; color: #1e2420; border: 1px solid #cfc6b8; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: end;
  padding: 1.2rem 0 2.5rem;
}
.hero > *, .marco { min-width: 0; }
.marco { overflow: hidden; }
.hero h1 {
  margin: 0.3rem 0 0.8rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(2.15rem, 8vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
  overflow-wrap: anywhere;
}
.kicker { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: #6a6258; }
.hero p { max-width: 36rem; font-size: 1.08rem; color: #3d453f; }
.acciones { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: #1e3a32;
  color: #f4efe6;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.btn.claro { background: transparent; color: #1e2420; border: 1px solid #cfc6b8; }
.marco {
  aspect-ratio: 4/5;
  border-radius: 18px 18px 80px 18px;
  overflow: hidden;
  background: #d9d0c3;
}
.marco img { width: 100%; height: 100%; object-fit: cover; }
.banda {
  display: block;
  padding: 0.9rem 0;
  border-top: 1px solid #e3dacd;
  border-bottom: 1px solid #e3dacd;
  color: #5c564c;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
section { padding: 3.2rem 0; }
h2 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.dos p { color: #3d453f; font-size: 1.05rem; }
.foto-ancha { border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; background: #d9d0c3; width: 100%; }
.lista { display: flex; flex-direction: column; }
.item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid #e3dacd;
  text-decoration: none;
}
.item img { width: 220px; height: 140px; object-fit: cover; border-radius: 12px; background: #d9d0c3; }
.item h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.item p { margin: 0; color: #5c564c; }
.precio { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; white-space: nowrap; }
.item-lado { display: grid; justify-items: end; gap: 0.55rem; }
.consultas { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.btn.mini { padding: 0.42rem 0.75rem; font-size: 0.84rem; }
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.servicios article { padding: 1.2rem; background: #fffdf8; border-radius: 16px; }
.servicios h3 { margin: 0 0 0.4rem; }
.servicios p { margin: 0; color: #4e483f; }
.contacto {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.4rem;
  background: #1e3a32;
  color: #f4efe6;
  border-radius: 22px;
  padding: 1.4rem;
}
.contacto h2 { color: #f4efe6; }
.mapa { border: 0; width: 100%; min-height: 280px; border-radius: 14px; background: #d5ddd8; }
form { display: grid; gap: 0.6rem; }
label { display: grid; gap: 0.25rem; font-size: 0.88rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d9d0c3;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
  color: #1e2420;
}
.contacto input, .contacto textarea { border-color: transparent; }
.form-note { margin: 0; background: #e7f0ea; color: #1e3a32; border-radius: 10px; padding: 0.7rem 0.8rem; }
.pie { padding: 1.4rem 0 2rem; color: #6a6258; font-size: 0.9rem; }
.top.nav-open nav { display: flex; }
@media (max-width: 860px) {
  .hero, .dos, .servicios, .contacto, .item { grid-template-columns: minmax(0, 1fr); }
  .item img { width: 100%; height: 190px; }
  .item-lado, .consultas { justify-items: start; justify-content: flex-start; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #f4efe6;
    padding: 0.6rem 0 1rem;
    border-bottom: 1px solid #e3dacd;
  }
  .wa { display: none; }
  .marco { aspect-ratio: 16/11; border-radius: 16px; }
  .hero h1 { font-size: 1.9rem; }
  .top { max-width: calc(100vw - 2rem); }
}

/* ===== Mejoras: ficha en ventana y tasaciones ===== */
.lp-sub { color: #5c564c; margin: -0.4rem 0 1rem; }
.item-abrir { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; display: block; }
.item-abrir img { display: block; transition: filter .2s; }
.item-abrir:hover img { filter: brightness(.92); }
.item-fotos { position: absolute; left: .6rem; bottom: .6rem; background: rgba(20, 20, 20, .72); color: #fff; font-size: .78rem; padding: .2rem .55rem; border-radius: 999px; }
.item-titulo { all: unset; cursor: pointer; }
.item-titulo:hover { text-decoration: underline; text-underline-offset: 3px; }
.item-titulo:focus-visible, .item-abrir:focus-visible { outline: 3px solid #1e3a32; outline-offset: 3px; border-radius: 6px; }
.item .lp-estado { margin-top: .4rem; }
.lp-dialog { font-family: Outfit, "Segoe UI", sans-serif; color: #1e2420; }
.lp-dialog h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; }
.lp-ficha .precio { font-size: 1.6rem; margin: 0 0 .4rem; }
.lp-ficha p { color: #3d453f; margin: 0 0 .6rem; }

.tasar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; background: #fffdf8; border: 1px solid #e3dacd; border-radius: 22px; padding: 1.6rem; }
.tasar h2 { margin-top: 0; }
.tasar > div > p { color: #3d453f; font-size: 1.05rem; }
.tasar-pasos { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.tasar-pasos li { display: flex; gap: .6rem; align-items: center; }
.tasar-pasos li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1e3a32; flex: none; }
.tasar-form .btn { justify-self: start; }
@media (max-width: 860px) { .tasar { grid-template-columns: 1fr; padding: 1.2rem; } }
