/* ===== RD Inmobiliaria · colores de la guía de marca ===== */
:root {
  --verde: #1F4D36;
  --verde-oscuro: #163828;
  --dorado: #C9963F;
  --dorado-oscuro: #9E7228;
  --crema: #F8EDE1;
  --crema-clara: #FCF7F1;
  --blanco: #FFFFFF;
  --texto: #23302A;
  --texto-suave: #5B655F;
  --linea: #E6D7C3;
  --sombra: 0 10px 30px rgba(31, 77, 54, .12);
  --radio: 14px;
  --titulo: "Cinzel", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--crema-clara);
  color: var(--texto);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
h1, h2, h3 { font-family: var(--titulo); color: var(--verde); font-weight: 600; line-height: 1.2; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }

.sobretitulo {
  font-family: var(--titulo);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--dorado-oscuro);
  margin: 0 0 .6rem;
}
.ornamento {
  width: 180px; height: 12px; margin: 14px auto 0;
  background:
    linear-gradient(var(--dorado), var(--dorado)) left center / 45% 1px no-repeat,
    linear-gradient(var(--dorado), var(--dorado)) right center / 45% 1px no-repeat;
  position: relative;
}
.ornamento::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; background: var(--dorado);
  transform: translate(-50%, -50%) rotate(45deg);
}
.ornamento--izq { margin-left: 0; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font: 700 .95rem/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--verde { background: var(--verde); color: var(--blanco); }
.btn--verde:hover { background: var(--verde-oscuro); }
.btn--dorado { background: var(--dorado); color: var(--blanco); }
.btn--dorado:hover { background: var(--dorado-oscuro); }
.btn--borde { border-color: var(--verde); color: var(--verde); background: transparent; }
.btn--borde:hover { background: var(--verde); color: var(--blanco); }
.btn--chico { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--ancho { width: 100%; margin-top: .5rem; }

/* ===== Cabecera ===== */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 247, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marca img { width: 48px; height: 48px; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca__nombre { font-family: var(--titulo); color: var(--dorado-oscuro); letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; }
.marca__nombre b { color: var(--verde); }
.marca__sub { font-family: var(--serif); color: var(--verde); font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--verde); font-weight: 700; font-size: .93rem; }
.nav a:not(.btn):hover { color: var(--dorado-oscuro); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--verde); margin: 5px 0; transition: .2s; }

/* ===== Portada ===== */
.portada {
  background:
    radial-gradient(circle at 85% 20%, rgba(201,150,63,.14), transparent 45%),
    var(--crema);
  border-bottom: 1px solid var(--linea);
}
.portada__grilla { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding-block: 4.5rem; }
.portada h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: .02em; }
.portada h1 em {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--dorado-oscuro); font-size: 1.2em; letter-spacing: 0; text-transform: none;
}
.portada__bajada { font-size: 1.1rem; color: var(--texto-suave); max-width: 34rem; margin: 1.2rem 0 2rem; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.portada__logo img { border-radius: 24px; box-shadow: var(--sombra); width: min(440px, 100%); margin-inline: auto; border: 1px solid var(--linea); }

/* ===== Servicios ===== */
.servicios { background: var(--verde); color: var(--blanco); }
.servicios__grilla { display: grid; grid-template-columns: repeat(4, 1fr); }
.servicio {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: 1.4rem .5rem; font-family: var(--titulo); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
}
.servicio + .servicio { border-left: 1px solid rgba(201,150,63,.4); }
.servicio svg, .dato svg {
  width: 28px; height: 28px; flex: none; fill: none; stroke: var(--dorado); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Secciones ===== */
.seccion { padding-block: 5rem; }
.seccion__titulo { text-align: center; margin-bottom: 2.5rem; }
.seccion__titulo h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.seccion--verde { background: var(--verde); color: #EDE6DA; }
.seccion--verde h2 { color: var(--blanco); }
.seccion--verde .sobretitulo { color: var(--dorado); }

/* ===== Filtros ===== */
.filtros { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filtros__tipos { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--linea); background: var(--blanco); color: var(--verde);
  padding: .5rem 1rem; border-radius: 999px; font: 700 .85rem var(--sans); cursor: pointer;
}
.chip:hover { border-color: var(--dorado); }
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--blanco); }
.buscador input {
  width: min(320px, 100%); padding: .7rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--linea); background: var(--blanco); font: 1rem var(--sans); color: var(--texto);
}
.buscador input:focus { outline: 2px solid var(--dorado); outline-offset: 1px; }
.resultado { color: var(--texto-suave); font-size: .92rem; margin: 0 0 1.2rem; }

/* ===== Tarjetas ===== */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.tarjeta {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden;
  box-shadow: 0 2px 10px rgba(31,77,54,.07); border: 1px solid var(--linea);
  display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0;
  font: inherit; color: inherit; transition: transform .2s, box-shadow .2s;
}
.tarjeta:hover, .tarjeta:focus-visible { transform: translateY(-4px); box-shadow: var(--sombra); }
.tarjeta:focus-visible { outline: 2px solid var(--dorado); outline-offset: 2px; }
.tarjeta__foto { position: relative; aspect-ratio: 4 / 3; background: var(--crema); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; }
.etiqueta {
  position: absolute; top: 12px; left: 12px;
  background: var(--verde); color: var(--blanco);
  font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 6px;
}
.etiqueta--reservada { background: var(--dorado-oscuro); left: auto; right: 12px; }
.tarjeta__cuerpo { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tarjeta__tipo { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dorado-oscuro); font-weight: 700; }
.tarjeta h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.tarjeta__zona { color: var(--texto-suave); font-size: .92rem; }
.tarjeta__pie { margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--linea); }
.precio { font-family: var(--titulo); color: var(--verde); font-weight: 700; font-size: 1.1rem; }
.ver { color: var(--dorado-oscuro); font-weight: 700; font-size: .85rem; }
.vacio { text-align: center; color: var(--texto-suave); padding: 2rem; grid-column: 1 / -1; }

/* ===== Ficha (ventana) ===== */
.ficha {
  width: min(980px, 100% - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radio); background: var(--crema-clara); color: var(--texto);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.ficha::backdrop { background: rgba(22, 56, 40, .7); }
.ficha__cerrar {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--blanco); color: var(--verde); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ficha__cuerpo { display: grid; grid-template-columns: 1fr 1fr; }
.ficha__foto { background: var(--verde); }
.ficha__foto img { width: 100%; height: 100%; object-fit: cover; max-height: 640px; }
.ficha__info { padding: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.ficha__info h2 { font-family: var(--serif); font-size: 1.8rem; }
.ficha__codigo { font-size: .82rem; color: var(--texto-suave); letter-spacing: .08em; }
.ficha__precio { font-family: var(--titulo); font-size: 1.6rem; color: var(--verde); font-weight: 700; border-left: 3px solid var(--dorado); padding-left: .8rem; }
.ficha__datos { margin: 0; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; background: var(--blanco); }
.ficha__datos dt, .ficha__datos dd { margin: 0; padding: .55rem .9rem; border-bottom: 1px solid var(--linea); font-size: .93rem; }
.ficha__datos dt { color: var(--dorado-oscuro); font-weight: 700; background: #FBF4EA; }
.ficha__datos > :nth-last-child(-n+2) { border-bottom: 0; }
.ficha__desc { color: var(--texto); margin: 0; }
.ficha__acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }

/* ===== Quiénes somos ===== */
.nosotros { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.nosotros__img img { border-radius: var(--radio); box-shadow: 0 20px 50px rgba(0,0,0,.3); border: 3px solid rgba(201,150,63,.5); }
.nosotros__texto h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.nosotros__texto p { margin: 1rem 0; }
.nosotros__texto strong { color: var(--dorado); }
.frase { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--dorado); }

/* ===== Ubicación ===== */
.ubicacion { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; }
.ubicacion__datos { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem; }
.dato { display: flex; gap: 1rem; align-items: flex-start; }
.dato div { display: flex; flex-direction: column; }
.dato b { color: var(--verde); font-family: var(--titulo); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.dato a { font-weight: 700; text-decoration: none; }
.ubicacion__mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); min-height: 380px; background: var(--crema); }
.ubicacion__mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Pie ===== */
.pie { background: var(--verde-oscuro); color: #D9D2C5; padding-block: 2.5rem 6rem; font-size: .92rem; }
.pie__fila { display: flex; gap: 1.5rem; align-items: center; }
.pie p { margin: .2rem 0; }
.pie b { color: var(--blanco); }
.pie__legal { font-size: .8rem; opacity: .75; }

/* ===== WhatsApp flotante ===== */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--blanco);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-flotante:hover { transform: scale(1.07); }
.wa-flotante svg { width: 32px; height: 32px; }

/* ===== Celular y tablet ===== */
@media (max-width: 900px) {
  .portada__grilla { grid-template-columns: 1fr; padding-block: 3rem; gap: 2rem; text-align: center; }
  .portada__bajada { margin-inline: auto; }
  .portada__acciones { justify-content: center; }
  .portada__logo { order: -1; }
  .portada__logo img { width: 220px; }
  .servicios__grilla { grid-template-columns: repeat(2, 1fr); }
  .servicio:nth-child(3) { border-left: 0; }
  .servicio:nth-child(n+3) { border-top: 1px solid rgba(201,150,63,.4); }
  .nosotros, .ubicacion { grid-template-columns: 1fr; }
  .ficha__cuerpo { grid-template-columns: 1fr; }
  .ficha__foto img { max-height: 380px; }
  .ficha__info { padding: 1.4rem; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--crema-clara);
    border-bottom: 1px solid var(--linea); box-shadow: var(--sombra);
    display: none; padding: .5rem 16px 1rem;
  }
  .nav.abierto { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; width: 100%; text-align: center; border-bottom: 1px solid var(--linea); }
  .nav .btn { margin-top: 1rem; }
  .seccion { padding-block: 3.5rem; }
  .filtros { flex-direction: column; align-items: stretch; }
  .filtros__tipos { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
  .chip { white-space: nowrap; }
  .buscador input { width: 100%; }
  .servicio { font-size: .75rem; gap: .5rem; }
  .pie__fila { flex-direction: column; text-align: center; }
  .marca__sub { font-size: .85rem; }
}

/* ===== Páginas individuales de propiedades ===== */
.tarjeta { text-decoration: none; }
.migas { font-size: .88rem; color: var(--texto-suave); margin-bottom: 1.2rem; }
.migas a { color: var(--verde); text-decoration: none; font-weight: 700; }
.seccion--ficha { padding-top: 2rem; }
.ficha-pagina {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--crema-clara);
  border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
}
.ficha-pagina h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.ficha__enlace { font-size: .85rem; color: var(--texto-suave); }
.similares { margin-top: 4rem; }
.similares h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.8rem; }
.volver { text-align: center; margin-top: 2rem; }
@media (max-width: 900px) { .ficha-pagina { grid-template-columns: 1fr; } }
