/* ===== Variables de marca HB Bienes Raices — direccion editorial ===== */
:root {
	--hb-primario: #0B2F4C;
	--hb-dorado: #A9884F;
	--hb-verificado: #0F6E56;
	--hb-verificado-bg: #E1F5EE;
	--hb-bruma: #EEF2F1;
	--hb-borde: #D8DEDC;
	--hb-texto: #1B1E23;
	--hb-texto-secundario: #57626C;
	--hb-blanco: #FFFFFF;
	--hb-display: 'Fraunces', Georgia, serif;
	--hb-fuente: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Reset minimo ===== */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--hb-fuente); color: var(--hb-texto); background: var(--hb-blanco); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--hb-display); font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; color: var(--hb-primario); }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(22px, 4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--hb-texto-secundario); }

.hbbr-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== Etiquetas editoriales (eyebrow / hairline) ===== */
.hbbr-eyebrow { display: block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--hb-dorado); font-weight: 600; margin-bottom: 12px; }
.hbbr-hairline { height: 1px; background: linear-gradient(to right, var(--hb-dorado), transparent 60%); }

/* ===== Header ===== */
.hbbr-header { background: var(--hb-blanco); position: sticky; top: 0; z-index: 50; }
.hbbr-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.hbbr-logo { font-family: var(--hb-display); font-size: 20px; color: var(--hb-primario); display: flex; align-items: baseline; gap: 8px; letter-spacing: 0.3px; }
.hbbr-logo small { font-family: var(--hb-fuente); font-size: 10px; color: var(--hb-texto-secundario); font-weight: 500; letter-spacing: 2px; }
.hbbr-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.hbbr-nav__whatsapp { border: 1px solid var(--hb-primario); color: var(--hb-primario); padding: 8px 16px; }

/* ===== Secciones generales ===== */
main section { padding: 56px 0; border-bottom: 1px solid var(--hb-borde); }
main section:last-of-type { border-bottom: none; }

/* ===== Hero asimetrico ===== */
.hbbr-hero { position: relative; padding-top: 64px !important; overflow: hidden; background: var(--hb-bruma); }
.hbbr-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hbbr-hero__marca-agua { position: absolute; right: -60px; top: -60px; opacity: 0.05; pointer-events: none; }
.hbbr-hero h1 { max-width: 520px; }
.hbbr-subheadline { max-width: 440px; font-size: 16px; margin: 18px 0 26px; }
.hbbr-microcopy { font-size: 12px; color: var(--hb-texto-secundario); margin-top: 12px; }
.hbbr-hero__form { max-width: 440px; }
.hbbr-hero__sello { width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid var(--hb-dorado); background: var(--hb-blanco); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 0 auto; }
.hbbr-hero__sello span { font-size: 10px; letter-spacing: 1.5px; color: var(--hb-primario); font-weight: 600; margin-top: 8px; line-height: 1.4; }
@media (max-width: 780px) { .hbbr-hero__grid { grid-template-columns: 1fr; } .hbbr-hero__sello { width: 110px; height: 110px; } }

/* ===== Grids ===== */
.hbbr-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hb-borde); border: 1px solid var(--hb-borde); margin: 24px 0; }
.hbbr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 24px 0; }
@media (max-width: 780px) { .hbbr-grid-4 { grid-template-columns: 1fr 1fr; } .hbbr-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hbbr-grid-4, .hbbr-grid-3 { grid-template-columns: 1fr; } }

.hbbr-card-dolor, .hbbr-dato { background: var(--hb-bruma); padding: 20px; font-size: 14px; }
.hbbr-card-valor { background: var(--hb-blanco); border: 1px solid var(--hb-borde); padding: 22px; }
.hbbr-card-valor h3 { font-size: 16px; margin-bottom: 6px; }
.hbbr-cierre-dolor { text-align: center; font-weight: 500; color: var(--hb-primario); font-family: var(--hb-display); font-size: 18px; }

/* ===== Proceso — numeracion legitima (es una secuencia real) ===== */
.hbbr-timeline { list-style: none; counter-reset: paso; padding: 0; margin: 0; }
.hbbr-timeline li { counter-increment: paso; display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hb-borde); }
.hbbr-timeline li:last-child { border-bottom: none; }
.hbbr-timeline li::before { content: counter(paso, decimal-leading-zero); font-family: var(--hb-display); font-size: 20px; color: var(--hb-dorado); width: 34px; flex-shrink: 0; }
.hbbr-timeline li span { color: var(--hb-texto-secundario); font-size: 14px; }
.hbbr-timeline li strong { color: var(--hb-primario); display: block; margin-bottom: 2px; }

/* ===== Tarjeta de propiedad — sello sobrepuesto como firma de marca ===== */
.hbbr-tarjeta-propiedad { display: block; background: var(--hb-blanco); border: 1px solid var(--hb-borde); }
.hbbr-tarjeta-propiedad__img { position: relative; aspect-ratio: 4/3; background: var(--hb-bruma); overflow: hidden; }
.hbbr-tarjeta-propiedad__img img { width: 100%; height: 100%; object-fit: cover; }
.hbbr-tarjeta-propiedad__body { padding: 18px; }
.hbbr-tarjeta-propiedad__body h3 { font-size: 17px; margin-bottom: 2px; }
.hbbr-tarjeta-propiedad__precio { color: var(--hb-primario); font-weight: 600; font-size: 18px; margin: 6px 0 4px; }
.hbbr-tarjeta-propiedad__zona, .hbbr-tarjeta-propiedad__detalle { font-size: 13px; margin: 0 0 4px; }

.hbbr-badge-verificada { position: absolute; top: 12px; left: 12px; width: 46px; height: 46px; border-radius: 50%; background: var(--hb-blanco); border: 1px solid var(--hb-dorado); display: flex; align-items: center; justify-content: center; }
.hbbr-badge-verificada::before { content: '✓'; color: var(--hb-verificado); font-size: 18px; font-weight: 700; }
/* Version en texto (usada dentro de la ficha individual, no sobre imagen) */
.hbbr-badge-verificada--texto { position: static; width: auto; height: auto; border-radius: 4px; padding: 4px 12px; background: var(--hb-verificado-bg); border: none; font-size: 12px; color: var(--hb-verificado); font-weight: 600; }
.hbbr-badge-verificada--texto::before { content: ''; }

.hbbr-placeholder { color: var(--hb-texto-secundario); font-style: italic; grid-column: 1 / -1; }

/* ===== Botones ===== */
.hbbr-btn-primario, .hbbr-btn-secundario { display: inline-block; padding: 14px 28px; font-size: 14px; letter-spacing: 0.3px; margin-top: 14px; }
.hbbr-btn-primario { background: var(--hb-primario); color: var(--hb-bruma); }
.hbbr-btn-secundario { background: transparent; color: var(--hb-primario); border: 1px solid var(--hb-primario); }

/* ===== FAQ ===== */
.hbbr-faq details { border-bottom: 1px solid var(--hb-borde); padding: 18px 0; }
.hbbr-faq summary { cursor: pointer; font-weight: 500; color: var(--hb-primario); }
.hbbr-faq summary::marker { color: var(--hb-dorado); }

/* ===== Filtros del catalogo ===== */
.hbbr-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 34px; padding-bottom: 24px; border-bottom: 1px solid var(--hb-borde); }
.hbbr-filtros select, .hbbr-filtros input, .hbbr-filtros button { padding: 11px 14px; border: 1px solid var(--hb-borde); font-size: 14px; font-family: var(--hb-fuente); background: var(--hb-blanco); }
.hbbr-filtros button { background: var(--hb-primario); color: var(--hb-blanco); border: none; cursor: pointer; }

/* ===== Ficha de propiedad ===== */
.hbbr-ficha__precio { font-family: var(--hb-display); color: var(--hb-primario); font-size: 30px; margin: 6px 0 16px; }
.hbbr-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 24px 0; }
.hbbr-ficha__datos { text-align: center; background: var(--hb-bruma); padding: 24px; }
.hbbr-ficha__datos strong { display: block; font-family: var(--hb-display); color: var(--hb-primario); font-size: 20px; }
.hbbr-ficha__datos span { font-size: 12px; color: var(--hb-texto-secundario); }
.hbbr-video-wrapper { position: relative; padding-top: 56.25%; margin: 24px 0; }
.hbbr-video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.hbbr-footer { background: var(--hb-primario); color: var(--hb-bruma); padding: 44px 0; }
.hbbr-footer .hbbr-logo { color: var(--hb-bruma); }
.hbbr-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.hbbr-footer p { color: #9FB0BB; }

/* ===== WhatsApp flotante ===== */
.hbbr-whatsapp-flotante { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; background: var(--hb-verificado); color: var(--hb-blanco); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(11,47,76,0.25); z-index: 100; }
