/* Encabezados de búsqueda: foto sin texto y contenido HTML separado. */
.ban {
  --bw: min(1368px, calc(100vw - 64px));
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  width: var(--bw);
  min-height: 220px;
  margin: 24px auto 0;
  border: 1px solid rgba(18, 52, 59, 0.09);
  border-radius: 20px;
  overflow: hidden;
  --banner-text: #f7f4ee;
  --banner-label: #d6c3a5;
  --banner-sub: #e0e9e5;
  background: linear-gradient(180deg, #11383f, #163c43);
  color: var(--banner-text);
}
.ban .bl {
  display: none;
}
.ban .br {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  background-image: url("../images/banners/venta.jpg");
  background-size: cover;
  background-position: center 55%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.16) 12%,
    rgba(0, 0, 0, 0.68) 27%,
    #000 43%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.16) 12%,
    rgba(0, 0, 0, 0.68) 27%,
    #000 43%
  );
  pointer-events: none;
}
.ban .bt {
  position: relative;
  z-index: 1;
  width: 57%;
  padding: 34px 40px;
}
.ban .bk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--banner-label);
  font:
    600 11px/1.3 Figtree,
    system-ui,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ban .bk::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.6;
}
.ban h2 {
  max-width: 580px;
  margin: 0;
  color: var(--banner-text);
  font:
    600 clamp(26px, 2.5vw, 36px)/1.18 Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.ban p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--banner-sub);
  font:
    400 15px/1.55 Figtree,
    system-ui,
    sans-serif;
}
.ban.rent {
  --banner-text: #12343b;
  --banner-label: #12343b;
  --banner-sub: #314f51;
  background: #d6ded6;
}
.ban.rent .br {
  background-image: url("../images/banners/renta.jpg");
}
.ban.buy {
  background: linear-gradient(180deg, #11383f, #163c43);
}
.ban.auc {
  --banner-text: #12343b;
  --banner-label: #12343b;
  --banner-sub: #314f51;
  background: linear-gradient(180deg, #deccb1, #dccbaf);
}
.ban.auc .br {
  background-image: url("../images/banners/remate.jpg");
  background-position: center 72%;
}
.ban.inf .br {
  background-image: url("../images/banners/infonavit.jpg");
  background-position: center;
}
@media (max-width: 760px) {
  .ban {
    --bw: calc(100vw - 32px);
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
    border-radius: 16px;
  }
  .ban .bt {
    width: 100%;
    padding: 25px 24px;
  }
  .ban .br {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: 200px;
    margin-top: -24px;
    background-position: center 56%;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 16%,
      #000 42%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 16%,
      #000 42%
    );
  }
  .ban h2 {
    font-size: 28px;
    max-width: 100%;
  }
  .ban p {
    font-size: 14px;
    max-width: 100%;
  }
}
@media (max-width: 400px) {
  .ban h2 {
    font-size: 25px;
  }
}
#v-list .wrap {
  max-width: 1432px;
}
.mmode {
  display: inline-flex;
  margin-bottom: 14px;
}
.cyimgw {
  position: relative;
}
.cymap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(251, 248, 242, 0.96);
  color: var(--deep);
  font:
    600 14px Figtree,
    sans-serif;
  box-shadow: 0 8px 20px rgba(18, 52, 59, 0.22);
  cursor: pointer;
  transition: transform 0.15s;
}
.cymap:hover {
  color: var(--teal);
  transform: translateY(-1px);
}
.cyact .mapb {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top {
  padding-bottom: 24px;
}
.top .status {
  color: var(--muted);
  margin: -14px auto 12px;
  min-height: 0;
}
.top .status:empty {
  display: none;
}
#cyMapSec {
  scroll-margin-top: 110px;
}
@media (max-width: 600px) {
  .panel {
    padding: 40px 22px 0;
    border-radius: 26px;
    margin-bottom: 64px;
  }
  .pbg {
    border-radius: 26px;
  }
}
.panel h1 {
  margin: 0;
}
.tabw {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  max-width: 1080px;
  margin: 0 auto 14px;
}
.tabw .tabs {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
@media (max-width: 600px) {
  .tabs button {
    padding: 10px 9px;
    font-size: 14px;
  }
}
.photo {
  width: 86%;
  justify-self: center;
  align-self: center;
}
@media (max-width: 1000px) {
  .photo {
    width: 100%;
  }
}
@media (max-width: 1000px) {
  .pbg .bz {
    display: none;
  }
}
/* banner de inicio (proporciones del diseño) */
.top .wrap {
  max-width: 1200px;
}
.top .panel {
  --W: min(1136px, calc(100vw - 64px));
  padding: 3.6% 5.2% 2%;
  margin-bottom: 0;
  border-radius: calc(var(--W) * 0.03);
}
.top .pbg {
  border-radius: calc(var(--W) * 0.03);
  background: radial-gradient(
    90% 120% at 22% 8%,
    #17606a 0%,
    #10464f 45%,
    #0c3a42 100%
  );
}
.top .hgrid {
  grid-template-columns: minmax(0, 1fr) 44.6%;
  gap: 0 calc(var(--W) * 0.03);
  max-width: none;
  margin: 0;
  align-items: stretch;
}
.top .hgrid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(var(--W) * 0.034);
}
.top .panel h1 {
  font:
    800 max(32px, calc(var(--W) * 0.044))/1.06 Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}
.top .photo {
  width: 100%;
  aspect-ratio: 3/2;
  height: auto;
  border-radius: calc(var(--W) * 0.027);
  justify-self: stretch;
  align-self: end;
}
.top .tabs {
  max-width: none;
  align-self: flex-start;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.top .search {
  max-width: none;
  width: calc(var(--W) * 0.92);
  margin: calc(var(--W) * 0.024) 0 0 calc(var(--W) * -0.011);
}
@media (max-width: 1000px) {
  .pbg .ol {
    display: none;
  }
  .top .panel {
    --W: calc(100vw - 64px);
    padding: 30px 22px 22px;
    border-radius: 26px;
  }
  .top .pbg {
    border-radius: 26px;
  }
  .top .hgrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .top .hgrid > div:first-child {
    gap: 22px;
  }
  .top .panel h1 {
    font-size: clamp(32px, 8.5vw, 46px);
  }
  .top .search {
    width: 100%;
    margin: 24px 0 0;
  }
}
.dside {
  position: static;
}
.cm {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cmh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cmh h3 {
  font:
    600 17px Sora,
    sans-serif;
  color: var(--deep);
  margin: 0;
}
.cmh span {
  font-size: 13px;
  color: var(--muted);
}
.cmh b {
  color: var(--deep);
}
#cmBox {
  margin-bottom: 0;
}
#cmBox textarea,
.cmrf textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(18, 52, 59, 0.16);
  border-radius: 16px;
  background: #fff;
  font:
    400 15px Figtree,
    sans-serif;
  color: var(--ink);
  resize: vertical;
  min-height: 84px;
  outline: 0;
}
.cmrf textarea {
  min-height: 60px;
  border-radius: 14px;
}
#cmBox textarea:focus,
.cmrf textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 89, 99, 0.15);
}
.cmf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}
.cmf .sbtn {
  width: auto;
}
.cmc {
  font-size: 12px;
  color: var(--muted);
}
.cml {
  margin-top: 6px;
}
.cmi {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cav {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--deep);
  display: grid;
  place-items: center;
  font:
    700 14px Sora,
    sans-serif;
}
.cav.me {
  background: var(--teal);
  color: #fff;
}
.cmb {
  min-width: 0;
  flex: 1;
}
.cmb > b {
  color: var(--deep);
  font-size: 14px;
}
.cmb time {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.cmb > p {
  margin: 3px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}
.cmr {
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--sand);
  background: rgba(214, 195, 165, 0.22);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  word-break: break-word;
}
.cmr b {
  display: block;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 2px;
}
.cmx {
  border: 0;
  background: none;
  color: var(--teal);
  font:
    600 13px Figtree,
    sans-serif;
  cursor: pointer;
  padding: 6px 0;
}
.cmx:hover {
  text-decoration: underline;
}
.cmrf {
  margin-top: 8px;
}

/* Inicio: menos adornos y fotografía de la vivienda como protagonista. */
.top .pbg .dc {
  display: none;
}
.top .pbg {
  box-shadow: none;
}
.top .panel h1 {
  text-shadow: none;
  font-weight: 600;
}
.top .tabs,
.tabw .tabs {
  box-shadow: none;
}
.top .photo {
  border-radius: 18px;
  box-shadow: none;
}
.top .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Catálogo inicial vacío. Los banners promocionales conservan sus imágenes. */






.hb-empty-catalog { grid-column: 1 / -1; width:100%; padding:36px 20px; border:1px dashed rgba(18,52,59,.2); border-radius:16px; background:rgba(214,195,165,.1); text-align:center; }
.hb-empty-catalog p { margin:10px 0 18px; }
.hb-no-photo { display:grid; place-items:center; min-height:160px; width:100%; height:100%; background:#eeeae2; color:#526366; text-align:center; padding:20px; }
.hb-auth-welcome { display:flex; flex-direction:column; justify-content:center; align-items:center; width:100%; height:100%; padding:32px; background:linear-gradient(145deg,#12343b,#1f5963); color:#f8f5ee; text-align:center; }
.hb-auth-welcome b { font-size:36px; }
