/* Pradere Propiedades · demo de inmobiliaria de Algenib.
   Criterio (relevado el 15/10): la foto manda y el marco desaparece. Una sola
   familia (Schibsted Grotesk), jerarquía por tamaño y no por peso, un solo
   acento (el verde de los plátanos de Castelar), datos en texto plano, sin
   íconos de cama y baño, sin sombras, sin degradés, sin
   versalitas arriba de cada sección y sin animación de entrada. */
:root {
  --fondo: #ffffff;
  --papel: #f5f5f2;
  --tinta: #161616;
  --gris: #66665f;
  --linea: #e3e3de;
  --linea-2: #c9c9c2;
  --verde: #1f4d3a;
  --verde-f: #e7efe9;
  --texto: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1280px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 16px/1.55 var(--texto); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Sin cifras tabulares: en Schibsted Grotesk el punto de los miles queda
   ancho y los precios se leen "$480 . 000". */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.caja { width: min(100% - 3rem, var(--ancho)); margin-inline: auto; }
.suave { color: var(--gris); }
.chico { font-size: 14px; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }

/* botones y controles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 46px; padding: 0 1.25rem; border: 1px solid var(--verde); background: var(--verde); color: #fff; border-radius: 3px; text-decoration: none; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: #163a2b; }
.btn.claro { background: #fff; color: var(--tinta); border-color: var(--linea-2); }
.btn.claro:hover { border-color: var(--tinta); }
.btn[disabled] { opacity: .5; cursor: default; }
.enlace { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.enlace:hover { color: var(--verde); }
.campo { height: 44px; border: 1px solid var(--linea-2); border-radius: 3px; background: #fff; padding: 0 .75rem; }
.campo:focus { outline: 2px solid var(--verde); outline-offset: 0; border-color: var(--verde); }
label.chk { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
label.chk input { width: 16px; height: 16px; accent-color: var(--verde); }

/* encabezado */
.cab { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.cab-in { display: flex; align-items: center; gap: 2rem; height: 64px; }
.marca { text-decoration: none; font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; display: flex; gap: .55rem; align-items: center; }
.marca i { width: 22px; height: 22px; border-radius: 2px; background: var(--verde); display: inline-block; position: relative; }
.marca i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 12px; border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; }
.marca small { font-weight: 400; color: var(--gris); font-size: 13px; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--gris); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tinta); }
.cab .btn { height: 38px; font-size: 15px; padding: 0 1rem; }

/* tarjeta de propiedad */
.tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
.tarjeta { text-decoration: none; display: block; }
.tarjeta .foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--papel); border-radius: 2px; }
.tarjeta .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tarjeta:hover .foto img { transform: scale(1.025); }
.tarjeta .op { position: absolute; left: .7rem; top: .7rem; background: #fff; font-size: 13px; padding: .15rem .5rem; border-radius: 2px; }
.tarjeta .fila1 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .8rem; }
.tarjeta h3 { font-size: 1.12rem; }
.tarjeta .precio { font-weight: 500; white-space: nowrap; }
.tarjeta .fila2 { display: flex; justify-content: space-between; gap: 1rem; color: var(--gris); font-size: 14px; margin-top: .2rem; }
.tarjeta .datos { font-size: 14px; margin-top: .45rem; }
.tarjeta:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* pie */
.pie { border-top: 1px solid var(--linea); padding: 3rem 0 7rem; color: var(--gris); font-size: 14px; margin-top: 5rem; }
.pie .caja { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.pie b { display: block; color: var(--tinta); font-weight: 500; margin-bottom: .35rem; }
.demo { display: inline-block; margin-top: .9rem; padding: .25rem .55rem; border: 1px solid var(--linea-2); border-radius: 2px; }

/* el chat con la marca de la inmobiliaria */
.lw { --lw-acento: #1f4d3a; --lw-radio: 4px; }
.lw-lanzador { display: none !important; }
.lw-panel { border-radius: 4px !important; }
.lw-panel__cab { background: var(--verde) !important; }
.lw-entrada, .lw-enviar { border-radius: 3px !important; }
.lw-sug { border-radius: 3px !important; }
.lw-link { color: var(--verde); font-weight: 500; }
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.lw-panel.lw-pensando { border: 2px solid transparent !important; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--giro), #1f4d3a, #9cc3ad, #e3e3de, #6f9c83, #1f4d3a) border-box !important; animation: giro 2.2s linear infinite; }
@keyframes giro { to { --giro: 360deg; } }

/* la barra del asistente (un solo punto de entrada al chat) */
.barra-ia { position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 35; width: min(620px, calc(100% - 2rem)); }
.barra-ia form { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--linea-2); border-radius: 4px; padding: .35rem .35rem .35rem .85rem; box-shadow: 0 10px 28px -18px rgba(0,0,0,.4); }
.barra-ia svg { width: 15px; height: 15px; fill: var(--verde); flex: none; }
.barra-ia input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .5rem 0; font-size: 15px; }
.barra-ia input:focus { outline: none; }
.barra-ia form:focus-within { border-color: var(--tinta); }
.barra-ia button { height: 38px; padding: 0 1rem; background: var(--verde); color: #fff; border: 0; border-radius: 3px; font-weight: 500; font-size: 15px; }
.barra-ia[hidden], body.sin-barra .barra-ia { display: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie .caja { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 640px) {
  .caja { width: min(100% - 2rem, var(--ancho)); }
  .tarjetas { grid-template-columns: 1fr; gap: 1.8rem; }
  .marca small { display: none; }
  .barra-ia { bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tarjeta .foto img { transition: none; }
  .lw-panel.lw-pensando { animation: none; }
}
