/* ============================================================
   BROKIN INMOBILIARIA — CUSTOM CSS
   ============================================================ */

/* ── Variables de color ── */
:root {
  --wa-green:     #25D366;
  --wa-dark:      #128C7E;
  --brand-accent: #167373;
  --brand-dark:   #0e4d4d;
  --skeleton-bg:  #e8e8e8;
  --skeleton-hl:  #f5f5f5;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 6px 20px rgba(0,0,0,0.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.18);
  --radius:       10px;
}

/* ================================================================
   HERO / SUBHEADER — FALLBACK BACKGROUND (sin !important para que
   el inline style del CMS pueda sobreescribir background-image)
   ================================================================ */
.subheader.hero-fallback {
  background-color: #1a3a4f;
  background-size: cover;
  background-position: center;
}

.banner.hero-fallback {
  background-color: #0f2027;
  background-size: cover;
  background-position: center;
}

/* Imagen lazy: fade-in al cargar */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazy-img.loaded {
  opacity: 1;
}

/* ================================================================
   BOTÓN FLOTANTE WHATSAPP
   ================================================================ */
#wa-float {
  position: fixed;
  bottom: 30px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

#wa-float .wa-bubble {
  background: var(--wa-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

#wa-float .wa-bubble svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

#wa-float:hover .wa-bubble {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}

#wa-float .wa-label {
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

#wa-float:hover .wa-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}
#wa-float .wa-bubble {
  animation: wa-pulse 2.5s ease-out 2s 3;
}

/* ================================================================
   SKELETON LOADERS
   ================================================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--skeleton-bg) 25%,
    var(--skeleton-hl) 50%,
    var(--skeleton-bg) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}

.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  margin-bottom: 24px;
}

.skeleton-img  { height: 220px; width: 100%; }
.skeleton-body { padding: 16px; }
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long   { width: 90%; }

/* ================================================================
   BÚSQUEDA POR TEXTO
   ================================================================ */
.search-text-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-text-wrapper input[type="text"] {
  padding-right: 42px;
  border-radius: 8px;
}

.search-text-wrapper .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

/* ================================================================
   BARRA DE CONTROLES DE LISTADO
   ================================================================ */
.listing-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.listing-controls-bar .results-count {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.listing-controls-bar .results-count strong {
  color: var(--brand-accent);
  font-size: 16px;
}

.sort-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: #555;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--brand-accent); }

/* ================================================================
   FILTROS ACTIVOS
   ================================================================ */
.acr-listing-active-filters a {
  background: #f0f8f8;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 6px 0;
  transition: background 0.2s, color 0.2s;
}

.acr-listing-active-filters a:hover {
  background: var(--brand-accent);
  color: #fff;
  text-decoration: none;
}

/* ================================================================
   BOTÓN LIMPIAR FILTROS
   ================================================================ */
#limpiar-filtros {
  display: none;
  font-size: 12px;
  color: #e74c3c;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
}
#limpiar-filtros:hover { color: #c0392b; }

/* ================================================================
   TARJETAS DE PROPIEDAD — MEJORAS DE UI
   ================================================================ */
.listing {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.listing:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.listing-thumbnail {
  position: relative;
  overflow: hidden;
}

.listing-thumbnail img.propiedades-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
  background-color: #eee;
  display: block;
}

.listing-thumbnail:hover img.propiedades-img {
  transform: scale(1.05);
}

/* Gradiente en la imagen para mejorar legibilidad de badges */
.listing-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

/* Badges mejorados */
.listing-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.listing-badge.venta   { background: #e74c3c; color: #fff; }
.listing-badge.renta   { background: #2980b9; color: #fff; }
.listing-badge.sale    { background: var(--brand-accent); color: #fff; }

/* Precio destacado */
.precio-style {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--brand-accent);
}

/* Body de la tarjeta */
.listing-body {
  padding: 16px;
  background: #fff;
}

.listing-title {
  font-size: 15px;
  margin: 8px 0;
  line-height: 1.4;
}

.listing-title a {
  color: #222;
  transition: color 0.2s;
}

.listing-title a:hover { color: var(--brand-accent); }

/* Foto asesor */
.listing-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8e8e8;
  background-color: #f0f0f0;
  flex-shrink: 0;
}

/* Iconos de características */
.acr-listing-icons {
  display: flex;
  gap: 14px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.acr-listing-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
}

.acr-listing-icon i {
  color: var(--brand-accent);
  font-size: 16px;
}

/* ================================================================
   IMAGEN DE ASESOR — FALLBACK
   ================================================================ */
.listing-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  background-color: #f0f0f0;
}

/* ================================================================
   CATEGORÍAS EN INICIO
   ================================================================ */
.acr-category {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  margin-bottom: 24px;
}

.acr-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.acr-category-thumb {
  position: relative;
  overflow: hidden;
}

.acr-category-thumb img.categorias-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.acr-category:hover .acr-category-thumb img.categorias-img {
  transform: scale(1.06);
}

.acr-category-body {
  background: rgba(0,0,0,0.55);
  padding: 14px 16px;
}

.acr-category-body h5 a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.acr-category-body span {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

/* ================================================================
   SIDEBAR DE FILTROS — MEJORADO
   ================================================================ */
.sidebar-widget {
  border-radius: var(--radius);
  border: 1px solid #eef0f2;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.acr-collapse-trigger.acr-custom-chevron-wrapper {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

/* ================================================================
   FORMULARIO HERO — SEARCH BOX MEJORADO
   ================================================================ */
.acr-filter-form .form-control {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.banner .acr-filter-form {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Labels blancos en el hero */
.banner .acr-filter-form label {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
}

/* ================================================================
   NOTIFICACIÓN / TOAST
   ================================================================ */
.brokin-toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9998;
  display: none;
  box-shadow: var(--shadow-md);
  max-width: 300px;
}

.brokin-toast.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SECCIÓN HERO GRADIENT (herramienta de diseño)
   ================================================================ */
.hero-gradient {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364) !important;
}

/* ================================================================
   FORMULARIO DE CONTACTO — FEEDBACK
   ================================================================ */
.form-sending {
  opacity: 0.6;
  pointer-events: none;
}

.form-success-msg,
.form-error-msg {
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  display: none;
}

.form-success-msg {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-error-msg {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ================================================================
   PROPIEDAD NUEVA — BADGE "NUEVO"
   ================================================================ */
.badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f39c12;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* ================================================================
   CTA SECTIONS — MEJORADO
   ================================================================ */
.cta.item1 { border-left: 4px solid var(--brand-accent); }
.cta.item2 { border-left: 4px solid #e74c3c; }

/* ================================================================
   HERO — TEXTO Y FILTRO
   ================================================================ */

/* Sombra en texto del hero para legibilidad sobre cualquier imagen */
.banner .title,
.banner .subtitle {
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

/* Subtítulo hero: tamaño ligeramente mayor, más espacio */
.banner .subtitle {
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  opacity: 0.92;
}

/* ── Ícono lupa: centrado solo dentro del input, ignorando el label ── */
.search-text-wrapper {
  position: relative;
}

.search-text-wrapper .search-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;   /* 48px input ÷ 2 – ~10px icon = ~14px desde abajo */
  top: auto;
  transform: none;
  pointer-events: none;
  color: #aaa;
  font-size: 15px;
}

/* Caja del formulario en hero: más premium */
.banner.banner-3 .acr-filter-form {
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 28px 28px 0;
  background-color: #fff;
}

/* Espacio suficiente debajo del banner para que el formulario absoluto no tape la sección siguiente */
.banner.banner-3 {
  margin-bottom: 120px;
}

@media (max-width: 991px) {
  .banner.banner-3 {
    margin-bottom: 260px;
  }
}

@media (max-width: 768px) {
  .banner.banner-3 {
    margin-bottom: 320px;
  }
}

/* Inputs dentro del formulario hero: más altura y radio */
.banner .acr-filter-form .form-control {
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  color: #333;
  background-color: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.banner .acr-filter-form .form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(1,187,188,0.12);
  background-color: #fff;
}

/* Labels dentro del hero */
.banner .acr-filter-form label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

/* Botón buscar en el hero */
.banner .acr-filter-form .btn-custom {
  height: 48px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ================================================================
   TÍTULOS DE SECCIÓN
   ================================================================ */

/* h5 etiqueta de sección (ej: "Tipos de propiedades") */
.section-title-wrap h5.custom-primary {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

/* h2 título de sección */
.section-title-wrap .title {
  font-size: 28px;
  font-weight: 800;
  color: #101737;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

/* ================================================================
   CATEGORÍAS — IMAGEN Y OVERLAY
   ================================================================ */

/* Imagen consistente en altura */
.acr-category-thumb img.categorias-img,
.acr-category-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.acr-category:hover .acr-category-thumb img {
  transform: scale(1.06);
}

/* Overlay inferior del nombre de categoría: más oscuro y definido */
.acr-category-body {
  background-color: rgba(10,15,40,0.78);
  border-radius: 0 0 10px 10px;
  padding: 16px 18px;
  margin: 0;
  width: 100%;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(2px);
}

.acr-category-body h5 a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.acr-category-body h5 a:hover {
  color: #01BBBC;
}

.acr-category-body span {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 500;
}

/* Override: el tema pone background:#fff en hover — mantenemos el overlay oscuro */
.acr-category-thumb:hover .acr-category-body {
  background-color: rgba(10,15,40,0.88);
}

.acr-category-thumb:hover .acr-category-body h5 a {
  color: #fff;
}

.acr-category-thumb:hover .acr-category-body span {
  color: rgba(255,255,255,0.8);
}

/* Icono de categoría más sutil */
.acr-category-thumb > i {
  background-color: rgba(1,187,188,0.15);
  color: #01BBBC;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

/* ================================================================
   CTA COMPRAR / VENDER — MEJORA VISUAL
   ================================================================ */

.cta.cta-2 {
  border-radius: 14px;
  border-left: 4px solid transparent;
  padding: 36px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-image: none;
  background-color: #fff;
}

.cta.cta-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.cta.cta-2.item1 {
  border-left-color: #01BBBC;
  background-image: linear-gradient(135deg, rgba(1,187,188,0.04) 0%, #fff 60%);
}

.cta.cta-2.item2 {
  border-left-color: #519fff;
  background-image: linear-gradient(135deg, rgba(81,159,255,0.06) 0%, #fff 60%);
}

.cta.cta-2 > i {
  font-size: 54px;
  flex-shrink: 0;
}

.cta.cta-2.item1 > i { color: #01BBBC; }
.cta.cta-2.item2 > i { color: #519fff; }

.cta.cta-2 h4 {
  font-size: 18px;
  font-weight: 700;
  color: #101737;
  margin-bottom: 10px;
}

.cta.cta-2 p {
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

.cta.cta-2 .btn-link {
  font-weight: 700;
  font-size: 14px;
}

/* ================================================================
   TARJETAS DE PROPIEDAD — REFINAMIENTO
   ================================================================ */

/* Imagen: altura fija y object-fit para consistencia */
.listing .listing-thumbnail img.propiedades-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.listing .listing-thumbnail {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

/* Tarjeta completa: radio unificado con sombra suave */
.listing {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #fff;
  border: 1px solid #f0f2f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 30px;
}

.listing:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}

/* Body de la tarjeta */
.listing .listing-body {
  padding: 20px;
}

/* Badge tipo de propiedad */
.listing-badge.sale {
  background-color: #01BBBC;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 5px 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Precio: más prominente */
.listing .listing-price {
  font-size: 20px;
  font-weight: 800;
  color: #101737;
  margin-bottom: 10px;
}

.listing .listing-price .precio-style {
  color: #01BBBC;
}

/* Autor: separador visual */
.listing .listing-author {
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 14px;
}

/* Línea separadora antes de iconos */
.listing .acr-listing-icons {
  border-top: 1px solid #f0f2f5;
  padding-top: 12px;
  margin-top: 10px;
}

/* Descripción: max 3 líneas */
.listing-text.limited-text-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Foto del asesor */
.listing .listing-author img {
  width: 40px;
  height: 40px;
  border: 2px solid #f0f2f5;
}

/* ================================================================
   APP DOWNLOAD CTA (footer-2 del index)
   ================================================================ */

.acr-footer.footer-2 {
  background: linear-gradient(135deg, #0e4d4d 0%, #01BBBC 100%);
}

.acr-footer.footer-2 .footer-top {
  background: transparent;
}

.acr-footer.footer-2 h4 {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.acr-footer.footer-2 .btn-custom-2.grey {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}

.acr-footer.footer-2 .btn-custom-2.grey:hover {
  background-color: rgba(255,255,255,0.28);
  color: #fff;
}

.acr-footer.footer-2 .btn-custom-2.grey i {
  color: #fff;
}

/* ================================================================
   FAQ SIDEBAR — INFOGRAPHICS-5
   ================================================================ */

.infographics-5 .acr-infographic-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  border: 1px solid #eef0f2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  margin-bottom: 16px;
}

.infographics-5 .acr-infographic-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.infographics-5 .acr-infographic-item > i {
  font-size: 32px;
  color: #01BBBC;
  margin-bottom: 0;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(1,187,188,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infographics-5 .acr-infographic-item h5 {
  font-size: 15px;
  font-weight: 700;
  color: #101737;
  margin-bottom: 6px;
}

.infographics-5 .acr-infographic-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 12px;
}

/* ================================================================
   ACORDEÓN FAQ
   ================================================================ */

.accordion.with-gap .card {
  border-radius: 10px !important;
  border: 1px solid #eef0f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 10px;
}

.accordion.with-gap .card-header {
  font-weight: 600;
  font-size: 15px;
  color: #101737;
  cursor: pointer;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s;
}

.accordion.with-gap .card-header:hover {
  background: #f8fafb;
}

.accordion.with-gap .card-body {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  padding: 18px 20px;
  background: #fff;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  .cta.cta-2 {
    margin-bottom: 20px;
  }
  .infographics-5 .acr-infographic-item {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  #wa-float {
    bottom: 18px;
    right: 16px;
  }
  #wa-float .wa-bubble {
    width: 52px;
    height: 52px;
  }
  .listing .listing-thumbnail img.propiedades-img {
    height: 200px;
  }
  .listing-controls-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .banner.banner-3 .acr-filter-form {
    padding: 18px 16px 0;
  }
  .cta.cta-2 {
    padding: 24px 20px;
  }
  .section-title-wrap .title {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .acr-category-thumb img.categorias-img,
  .acr-category-thumb img {
    height: 160px;
  }
  .listing .listing-thumbnail img.propiedades-img {
    height: 185px;
  }
  .infographics-5 .acr-infographic-item {
    padding: 18px 16px;
  }
}

/* ================================================================
   MEJORAS UX/UI — Proyectos, Categorías (logo fallback) y tarjetas
   Agregado por integración Brokin IA / adecuaciones web.
   ================================================================ */

/* ── Categoría "Buscar por Tipo" sin imagen → logo de la inmobiliaria ── */
.acr-category-thumb.categoria-sin-img {
  background: #f4f7f9;
}
.acr-category-thumb.categoria-sin-img img.categorias-img {
  object-fit: contain !important;
  padding: 26px;
  background: #f4f7f9;
}

/* ── Listado de Proyectos: ancho completo + 4 por fila ── */
.section-proyectos { padding-top: 32px; }
.section-proyectos .container-fluid { max-width: 1860px; }
.proyectos-grid { margin-left: -10px; margin-right: -10px; }
.proyectos-grid > [class^="col"] { padding-left: 10px; padding-right: 10px; }

/* ── Tarjetas de Proyectos (compactas) ── */
.proy-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 40, 55, .07);
  border: 1px solid #f0f2f5;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.proy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(20, 40, 55, .15);
}
.proy-card-thumb {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
  background: #f4f7f9;
}
.proy-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.proy-card:hover .proy-card-thumb img {
  transform: scale(1.06);
}
.proy-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(22, 115, 115, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.proy-card-body {
  padding: 13px 15px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.proy-card-body h6 {
  margin: 0 0 5px;
  font-size: 15.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proy-card-body h6 a { color: #1b2a33; }
.proy-card-body h6 a:hover { color: #167373; }
.proy-card-body p {
  color: #6c7a86;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proy-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.proy-card-foot .proy-precio {
  font-weight: 700;
  color: #167373;
  font-size: 14px;
}
.proy-card-foot .btn-custom.btn-sm { padding: 6px 13px; font-size: 12px; }

/* ── Detalle de proyecto: galería e info más atractivas ── */
.agent-wrapper .listing-thumbnail .listing-thumbnail-slider-main img {
  border-radius: 14px;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  background: #f4f7f9;
}
.agent-wrapper .sidebar-author.listing-agent img#logo-side {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: #f4f7f9;
  padding: 4px;
}

/* ── Detalle de propiedad / asesor: logo de respaldo bien encuadrado ── */
.listing-author img,
.acr-agent-thumb img {
  background: #f4f7f9;
}

@media (max-width: 576px) {
  .proy-card-thumb { height: 190px; }
}

/* ================================================================
   LISTADO DE PROPIEDADES — ancho completo + tarjetas compactas (4 por fila)
   ================================================================ */
.section-propiedades { padding-top: 32px; }
.section-propiedades .container-fluid { max-width: 1860px; }

/* La grilla de resultados ocupa todo el ancho de su columna */
#propiedades-container.propiedades-list { margin-left: -10px; margin-right: -10px; }
#propiedades-container.propiedades-list > [class^="col"] { padding-left: 10px; padding-right: 10px; }

/* FORZAR 4 por fila de lg en adelante (independiente del ancho de la columna
   de resultados). Antes, en laptops/zoom caía a 3 por usar col-lg-4.          */
@media (min-width: 992px) {
  #propiedades-container.propiedades-list > [class^="col"] {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}
/* md: 2 por fila · móvil: 1 por fila */
@media (min-width: 768px) and (max-width: 991.98px) {
  #propiedades-container.propiedades-list > [class^="col"] {
    flex: 0 0 50%; max-width: 50%;
  }
}

/* Imagen SIEMPRE ajustada al recuadro (recorta y llena, sin deformar) */
.listing-compact .listing-thumbnail { height: 148px; overflow: hidden; background: #f4f7f9; }
.listing-compact .listing-thumbnail img.propiedades-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Tarjeta compacta (más baja, menos espacios en blanco) ── */
.listing.listing-compact { margin-bottom: 16px; }

/* Imagen más baja */
.listing-compact .listing-thumbnail img.propiedades-img { height: 148px; }

/* Cuerpo con menos padding */
.listing-compact .listing-body { padding: 11px 13px 12px; }

/* Autor más bajo y separador más fino */
.listing-compact .listing-author { padding-bottom: 8px; margin-bottom: 8px; }
.listing-compact .listing-author img { width: 32px; height: 32px; }
.listing-compact .listing-author .listing-author-body p { font-size: 12.5px; margin-bottom: 0; line-height: 1.25; }
.listing-compact .listing-author .listing-date { font-size: 10.5px; }
.listing-compact .listing-author .btn-custom.btn-sm { padding: 4px 11px; font-size: 11.5px; }

/* Título a una línea */
.listing-compact .listing-title {
  font-size: 14.5px; margin-bottom: 3px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* Precio más contenido */
.listing-compact .listing-price { font-size: 15px; margin-bottom: 4px; }

/* Descripción a una sola línea y sin hueco inferior */
.listing-compact .listing-text {
  font-size: 12px; line-height: 1.45; margin-bottom: 0;
  -webkit-line-clamp: 1;
}

/* Iconos: fila más apretada */
.listing-compact .acr-listing-icons {
  padding-top: 7px; margin-top: 7px; gap: 6px; flex-wrap: nowrap;
}
.listing-compact .acr-listing-icon { font-size: 11.5px; }
.listing-compact .acr-listing-icon i { font-size: 15px; }
.listing-compact .acr-listing-icon-value { font-size: 11.5px; }

/* Pie: "Ver Detalles" + logo compacto, alineados */
.listing-compact .listing-gallery-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 9px;
}
.listing-compact .listing-gallery-wrapper .btn-custom.btn-sm { padding: 6px 13px; font-size: 12px; }
.listing-compact .logo_inmobiliaria {
  max-height: 26px; max-width: 84px; width: auto; object-fit: contain; opacity: .85;
}

/* Sidebar de filtros un poco más compacto en pantallas grandes */
@media (min-width: 1200px) {
  .section-propiedades .sidebar.sidebar-left { position: sticky; top: 100px; }
}

/* Móvil: una columna y se mantiene legible */
@media (max-width: 575px) {
  #propiedades-container.propiedades-list > [class^="col"] { flex: 0 0 100%; max-width: 100%; }
  .listing-compact .listing-thumbnail { height: 200px; }
}

/* ================================================================
   LISTADO DE ASESORES — ancho completo + tarjetas compactas (4 por fila)
   ================================================================ */
.section-asesores { padding-top: 32px; }
.section-asesores .container-fluid { max-width: 1860px; }
.asesores-grid { margin-left: -10px; margin-right: -10px; }
.asesores-grid > [class^="col"] { padding-left: 10px; padding-right: 10px; }

/* Tarjeta de asesor compacta */
.section-asesores .acr-agent {
  padding: 16px 14px;
  border: 1px solid #f0f2f5;
  border-radius: 12px;
  margin-bottom: 16px;
}
.section-asesores .acr-agent .acr-agent-thumb {
  width: 104px; height: 104px; margin: 0 auto 12px;
}
.section-asesores .acr-agent .acr-agent-thumb .acr-dots {
  width: 124px; height: 124px;
}
.section-asesores .acr-agent-body h6 { font-size: 15.5px; margin-bottom: 3px; }
.section-asesores .acr-agent-body span { font-size: 12.5px; }
.section-asesores .acr-agent-body p {
  margin: 9px 0 12px; font-size: 12.5px; line-height: 1.5; color: #6c7a86;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.section-asesores .acr-agent .btn-custom.btn-sm {
  width: auto; padding: 6px 16px; font-size: 12px;
}

/* Foto del asesor siempre circular y bien encuadrada */
.section-asesores .acr-agent .acr-agent-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #f4f7f9;
}
