:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  color: #14211e;
  background: #f3f5f3;
  font-family: Sora, "Segoe UI", sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
.demo-bar {
  max-width: 100vw;
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 1rem;
  background: #10211e;
  color: #f3f1ea;
  font-size: 0.76rem;
}
.demo-bar > * { min-width: 0; overflow-wrap: anywhere; }
.demo-bar a { color: #f3e6cf; }
.top {
  width: min(1240px, calc(100% - 1.4rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
.logo { font-weight: 650; text-decoration: none; letter-spacing: -0.03em; }
.logo em { font-style: normal; color: #a68456; }
nav { display: flex; gap: 1rem; margin-left: auto; }
nav a { text-decoration: none; font-size: 0.9rem; }
nav a.is-on { color: #0f3d36; font-weight: 650; }
.nav-toggle, .btn, .btn.claro {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.nav-toggle { display: none; background: transparent; border: 1px solid #cfd6d2; }
.btn { background: #0f3d36; color: #f3f1ea; border: 0; display: inline-flex; }
.btn.claro { background: #fff; color: #14211e; border: 1px solid #cfd6d2; }
.pagina { width: min(1240px, calc(100% - 1.4rem)); margin: 0 auto 2rem; }
h1, h2 { letter-spacing: -0.03em; font-weight: 600; }
h1 { margin: 0 0 0.4rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lead { max-width: 40rem; color: #3e4a46; }
.app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 0.8rem;
  align-items: start;
}
.panel, .map { position: sticky; top: 0.6rem; }
.col-lista {
  max-height: calc(100vh - 7.2rem);
  overflow: auto;
  padding-right: 0.15rem;
}
.panel, .fila, .zona, .asesor, .resumen {
  background: #fff;
  border-radius: 16px;
}
.panel { padding: 0.9rem; display: grid; gap: 0.55rem; }
label { display: grid; gap: 0.2rem; font-size: 0.75rem; font-weight: 650; }
select {
  border: 1px solid #e1e6e3;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: #fff;
}
.cuenta { margin: 0 0 0.45rem; color: #52605b; font-size: 0.88rem; }
.lista { display: grid; gap: 0.55rem; }
.fila {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.45rem;
  text-decoration: none;
  border: 2px solid transparent;
}
.fila.is-on { border-color: #a68456; }
.fila img { width: 148px; height: 108px; object-fit: cover; border-radius: 12px; background: #e4ebe7; }
.fila h3 { margin: 0 0 0.2rem; font-size: 0.98rem; overflow-wrap: anywhere; }
.fila p { margin: 0; color: #52605b; font-size: 0.82rem; overflow-wrap: anywhere; }
.price { margin: 0 0 0.15rem; font-weight: 650; }
.map {
  position: sticky;
  height: min(520px, calc(100vh - 7.2rem));
  aspect-ratio: 300 / 520;
  border-radius: 16px;
  overflow: hidden;
  background: #e7eee9;
}
.map svg { width: 100%; height: 100%; display: block; }
#pines { position: absolute; inset: 0; }
.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #0f3d36;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 33, 30, 0.35);
  padding: 0;
  cursor: pointer;
}
.pin.is-on { background: #a68456; }
.bloque { margin-top: 1.3rem; }
.zonas, .asesores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.asesores { grid-template-columns: repeat(3, 1fr); }
.zona, .asesor { display: grid; gap: 0.25rem; padding: 0.9rem; text-decoration: none; }
.zona span, .asesor span { color: #52605b; font-size: 0.85rem; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f3d36;
  color: #f3e6cf;
  font-size: 0.8rem;
  font-weight: 650;
}
.ficha-asesor { grid-template-columns: auto 1fr; align-items: center; padding: 0.7rem; }
.ficha-asesor div { display: grid; gap: 0.1rem; }
.ficha-asesor strong, .ficha-asesor span { display: block; }
.ficha-top { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 0.8rem; }
.shot { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; background: #e4ebe7; }
.thumbs { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.thumb { width: 78px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #e4ebe7; cursor: pointer; }
.thumb.is-on { border-color: #a68456; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.resumen { padding: 1rem; display: grid; align-content: start; gap: 0.45rem; }
.resumen .price { font-size: 1.45rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.video {
  margin: 0.8rem 0;
  min-height: 140px;
  border-radius: 16px;
  background: #10211e;
  color: #f3f1ea;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1rem;
}
.datos { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.datos th, .datos td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid #eef2f0; }
.datos th { width: 30%; color: #52605b; }
.migas, .aviso, .empty { color: #52605b; }
.aviso { background: #fff; border-radius: 12px; padding: 0.7rem; }
.pie { width: min(1240px, calc(100% - 1.4rem)); margin: 0 auto 1.4rem; color: #66716d; font-size: 0.84rem; }
.top.nav-open nav { display: flex; }
@media (max-width: 980px) {
  .app, .ficha-top, .zonas, .asesores { grid-template-columns: 1fr; }
  .fila { grid-template-columns: 104px minmax(0, 1fr); }
  .fila img { width: 104px; height: 84px; }
  .panel, .map { position: static; }
  .col-lista { max-height: none; overflow: visible; }
  .map { position: relative; height: 320px; aspect-ratio: auto; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; flex-basis: 100%; flex-direction: column; }
}
@media print {
  .demo-bar, .top, .acciones, .thumbs, .pie, .video { display: none !important; }
}
