/* ==========================================================================
   MARÍA CELESTE ORTIZ — Ajuste visual de páginas con diseño propio
   No cambia marcado ni contenido: re-tematiza variables y detalles.
   ========================================================================== */

/* Paleta del sitio nuevo aplicada sobre las variables de la página */
html:root {
  --brand-blue: #0E1A24;
  --brand-blue-light: #1C2B37;
  --brand-gold: #B3175A;
  --brand-gold-light: #C2185B;

  --text-primary: #0E1A24;
  --text-secondary: #56626E;
  --text-muted: #6B7783;

  --surface: #FFFFFF;
  --surface-alt: #F6F7F9;
  --border: #E3E7EC;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(14, 26, 36, .06);
  --shadow-md: 0 4px 16px rgba(14, 26, 36, .08);
  --shadow-lg: 0 8px 32px rgba(14, 26, 36, .10);
  --shadow-hover: 0 12px 40px rgba(14, 26, 36, .14);
}

.search-hero { background: linear-gradient(160deg, #0E1A24 0%, #1C2B37 100%) !important; }

/* Títulos: la serif de la plantilla pasa a la tipografía del sitio */
.search-hero h2,
.search-hero h1 {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.015em;
  font-size: clamp(30.4px, 3.4vw, 40px) !important;
}
.search-hero p { color: rgba(255,255,255,.78) !important; }

/* Foco de los filtros con el acento nuevo */
.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
  border-color: #B3175A !important;
  box-shadow: 0 0 0 3px rgba(179, 23, 90, .12) !important;
}

/* Botón de búsqueda */
.btn-search {
  letter-spacing: .02em;
  font-weight: 600 !important;
}
.btn-search:hover {
  background: #0E1A24 !important;
  box-shadow: 0 4px 12px rgba(14, 26, 36, .25) !important;
}

/* Contador y chips */
.results-bar .count { font-weight: 700; }
.filter-chip__clear:hover { background: #0E1A24 !important; }

/* Fichas de propiedad: mismo lenguaje que la home */
.prop-card { border-color: #E3E7EC !important; }
.prop-card__badge {
  letter-spacing: .12em;
  border-radius: 2px !important;
  padding: 6px 10px !important;
}
.card-price { letter-spacing: -.02em; }
.prop-card__cta, .btn-ver, .btn-details {
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
}
.property-card-features i,
.prop-card__location i { color: #B3175A !important; }

/* Barra lateral de destacadas */
.sidebar-card, .widget-card { border-color: #E3E7EC !important; }

/* Enlaces de títulos al pasar el mouse */
.prop-card__title a:hover { color: #B3175A !important; }
/* Cabecera y títulos de la ficha de propiedad */
.site-header { background: #fff !important; }
.site-header .mcx-topbar,
.site-header .mcx-header { display: block !important; visibility: visible !important; opacity: 1 !important; }
.mcx-brand img { display: block !important; }
h1, h2, h3 {
  font-family: "Poppins", sans-serif !important;
  letter-spacing: -.015em;
}
h1 { line-height: 1.15; }
/* ==========================================================================
   CAPA DE CALIDAD — fichas y listado de propiedades
   ========================================================================== */

/* --- Banda de búsqueda --- */
.search-hero {
  padding: 64px 0 72px !important;
  background:
    radial-gradient(900px 380px at 78% -10%, rgba(179,23,90,.28), transparent 62%),
    linear-gradient(160deg, #0E1A24 0%, #1C2B37 100%) !important;
}
.search-hero h2 { letter-spacing: -.02em !important; }
.search-hero p { font-size: 17.9px !important; }

/* --- Barra de filtros --- */
.filter-bar {
  border: 1px solid #E3E7EC !important;
  box-shadow: 0 18px 50px -24px rgba(14,26,36,.45) !important;
}
.filter-bar label {
  font-size: 11.5px !important;
  letter-spacing: .14em !important;
  color: #56626E !important;
}
.filter-bar .form-select, .filter-bar .form-control {
  border-color: #E3E7EC !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.btn-search {
  background: #B3175A !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-search:hover {
  transform: translateY(-2px);
  background: #8C1248 !important;
  box-shadow: 0 12px 26px -12px rgba(179,23,90,.65) !important;
}

/* --- Resultados --- */
.results-bar h3 { letter-spacing: -.01em; }
.results-bar .count {
  border-radius: 999px !important;
  padding: 3px 12px !important;
  font-size: 13.1px !important;
  background: #B3175A !important;
}

/* --- Ficha de propiedad --- */
.prop-card {
  border-radius: 12px !important;
  border: 1px solid #E3E7EC !important;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease !important;
  will-change: transform;
}
.prop-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(179,23,90,.35) !important;
  box-shadow: 0 24px 50px -22px rgba(14,26,36,.42) !important;
}
.prop-card__img-wrap { position: relative; }
.prop-card__img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,26,36,.42) 0%, rgba(14,26,36,0) 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.prop-card:hover .prop-card__img-wrap::after { opacity: 1; }

.prop-card__badge {
  border-radius: 3px !important;
  padding: 6px 11px !important;
  font-size: 11.5px !important;
  letter-spacing: .1em !important;
  box-shadow: 0 4px 14px -6px rgba(14,26,36,.5);
}
.prop-card__badge--venta { background: #B3175A !important; }
.prop-card__badge--alquiler { background: #0E1A24 !important; }

.card-price {
  font-size: 29.6px !important;
  letter-spacing: -.025em !important;
  line-height: 1.15 !important;
}
.card-area { font-size: 15.2px !important; color: #56626E !important; }
.prop-card__title { font-size: 17.3px !important; line-height: 1.35 !important; }
.prop-card__title a:hover { color: #B3175A !important; }
.prop-card__location { font-size: 14.7px !important; }
.prop-card__location i { color: #B3175A !important; }

.property-card-features {
  border-top: 1px solid #EDF0F3 !important;
  gap: 5.6px;
}
.property-card-features > * { font-size: 13.8px !important; color: #56626E; }
.property-card-features i { color: #B3175A !important; font-size: 16px !important; }

.prop-card__cta, .btn-ver, .btn-details {
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.prop-card:hover .prop-card__cta,
.prop-card:hover .btn-ver,
.prop-card:hover .btn-details {
  background: #B3175A !important;
  border-color: #B3175A !important;
  color: #fff !important;
}

/* --- Ficha individual --- */
.detail-meta__tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 3px;
  background: #FAEDF2; color: #8C1248 !important;
  font-size: 11.5px !important; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.card-spec, .action-card {
  border: 1px solid #E3E7EC !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px -26px rgba(14,26,36,.35) !important;
}
.feature-item i, .card-spec i { color: #B3175A !important; }
.thumb-item {
  border-radius: 8px !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.thumb-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(14,26,36,.45);
}
.share-btn {
  border: 1px solid #E3E7EC !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.share-btn:hover {
  background: #B3175A !important;
  border-color: #B3175A !important;
  color: #fff !important;
}
/* ==========================================================================
   CAPA DE CALIDAD — blog y notas
   ========================================================================== */

/* Barra lateral del blog */
.wgs-box, .sidebar-right .wgs {
  border: 1px solid #E3E7EC !important;
  border-radius: 12px !important;
  padding: 22px 22px 18px !important;
  background: #fff;
  box-shadow: 0 16px 40px -30px rgba(14,26,36,.4);
}
.wgs-heading {
  font-family: "Poppins", sans-serif !important;
  font-size: 16.3px !important;
  letter-spacing: -.01em;
  padding-bottom: 12px;
  margin-bottom: 14px !important;
  border-bottom: 2px solid #B3175A;
  display: inline-block;
}
.blog-recent a, .wgs-recents a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #EDF0F3;
  font-size: 15.2px;
  line-height: 1.45;
  color: #1C2B37;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.blog-recent a:hover, .wgs-recents a:hover { color: #B3175A !important; padding-left: 4px; }
.blog-recent a:last-child, .wgs-recents a:last-child { border-bottom: 0; }

/* Formulario de suscripción del blog */
.newsletter-form-container {
  border: 1px solid #E3E7EC !important;
  border-radius: 12px !important;
  background: #F6F7F9 !important;
  padding: 26px !important;
}
.newsletter-form .form-control, .newsletter-form input[type="email"] {
  border: 1px solid #E3E7EC !important;
  border-radius: 6px !important;
  height: 46px;
  padding: 0 14px;
}
.newsletter-form .form-control:focus, .newsletter-form input[type="email"]:focus {
  border-color: #B3175A !important;
  box-shadow: 0 0 0 3px rgba(179,23,90,.12) !important;
  outline: none;
}
.btn-subscribe, .newsletter-form .btn {
  background: #B3175A !important;
  border-color: #B3175A !important;
  color: #fff !important;
  border-radius: 6px !important;
  height: 46px;
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.btn-subscribe:hover, .newsletter-form .btn:hover {
  background: #8C1248 !important;
  transform: translateY(-1px);
}

/* Archivo de noticias */
.archive-section { border-top: 1px solid #E3E7EC; padding-top: 28px; }
.archive-section a { color: #B3175A !important; font-weight: 600; }

/* --- Nota individual --- */
.contenido-noticia {
  max-width: 76ch;
  font-size: 17.3px !important;
  line-height: 1.85 !important;
  color: #3C4854;
}
.contenido-noticia > p:first-of-type {
  font-size: 18.9px !important;
  color: #1C2B37;
  line-height: 1.7 !important;
}
.contenido-noticia p { margin-bottom: 18.4px; }
.contenido-noticia h2, .contenido-noticia h3 {
  margin-top: 35.2px !important;
  margin-bottom: 12.8px !important;
  color: #0E1A24;
}
.contenido-noticia img { border-radius: 10px; }
.contenido-noticia blockquote {
  border-left: 3px solid #B3175A;
  background: #FAEDF2;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 25.6px 0;
  font-style: italic;
  color: #1C2B37;
}
.contenido-noticia a { color: #B3175A; }

/* Compartir */
.share-section { border-top: 1px solid #E3E7EC; border-bottom: 1px solid #E3E7EC; padding: 18px 0; margin: 32px 0; }
.share-buttons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #E3E7EC; color: #56626E;
  margin-right: 8px; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.share-buttons a:hover {
  background: #B3175A; border-color: #B3175A; color: #fff !important; transform: translateY(-2px);
}

/* Fuente de la nota */
.fuente-referencia {
  background: #F6F7F9;
  border-left: 3px solid #B3175A;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: 14.7px !important;
  color: #56626E;
}
.archive-link { color: #B3175A !important; font-weight: 600; }
/* Jerarquía de botones: compartir va como secundario (es un mailto) */
a[href^="mailto:"].btn {
  background: transparent !important;
  border: 1px solid #D9DFE5 !important;
  color: #1C2B37 !important;
  box-shadow: none !important;
}
a[href^="mailto:"].btn:hover {
  background: #fff !important;
  border-color: #B3175A !important;
  color: #B3175A !important;
}
/* ==========================================================================
   TEXTOS QUE LA PÁGINA DEFINE EN rem (raíz de 10px) — ahora en píxeles
   ========================================================================== */
.search-hero h1, .search-hero h2 {
  font-size: 38px !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  color: #FFFFFF !important;
}
.search-hero p {
  font-size: 18px !important;
  color: rgba(255,255,255,.8) !important;
  margin-bottom: 28px !important;
}
.filter-bar label {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  color: #56626E !important;
}
.filter-bar .form-select,
.filter-bar .form-control,
.filter-bar .input-group-text,
.filter-bar input::placeholder {
  font-size: 16px !important;
  color: #1C2B37 !important;
}
.filter-bar .form-select { height: 52px !important; }
.btn-search { font-size: 16px !important; letter-spacing: .03em !important; }

.results-bar h3 { font-size: 22px !important; }
.results-bar .count { font-size: 13px !important; }
.filter-chip { font-size: 14px !important; }

/* Fichas */
.card-price { font-size: 27px !important; }
.card-area { font-size: 15px !important; }
.prop-card__title { font-size: 17px !important; }
.prop-card__title a { font-size: 17px !important; }
.prop-card__location { font-size: 15px !important; }
.property-card-features span,
.property-card-features div { font-size: 14px !important; }
.prop-card__cta, .btn-ver, .btn-details { font-size: 15px !important; }

/* Blog: barra lateral y notas */
.wgs-heading, .wgs-title { font-size: 18px !important; }
.blog-recent a, .wgs-recents a { font-size: 15px !important; }
.newsletter-form-container label { font-size: 14px !important; }
.btn-subscribe { font-size: 15px !important; }
.archive-section a, .archive-link { font-size: 16px !important; }

/* Nota */
.contenido-noticia p { font-size: 18px !important; }
.fuente-referencia { font-size: 15px !important; }
.share-section { font-size: 14px !important; }
/* ==========================================================================
   FICHA DE PROPIEDAD — panel de valor, specs, WhatsApp y compartir
   (la página los define en rem con raíz de 10px)
   ========================================================================== */
.action-card__label {
  font-size: 13px !important;
  letter-spacing: .14em !important;
  color: #56626E !important;
}
.action-card__price {
  font-size: 34px !important;
  letter-spacing: -.02em !important;
  line-height: 1.1 !important;
  color: #0E1A24 !important;
}
.card-specs .feature-item span,
.property-features .feature-item span {
  font-size: 15px !important;
  color: #3C4854 !important;
  display: block;
  margin-top: 6px;
}
.card-specs .feature-item i,
.property-features .feature-item i {
  font-size: 19px !important;
  color: #B3175A !important;
}
.card-specs { padding: 22px 0 !important; }

.btn-whatsapp {
  font-size: 15px !important;
  letter-spacing: .04em !important;
  padding: 16px 20px !important;
  border-radius: 6px !important;
}
.share-section__label {
  font-size: 13px !important;
  letter-spacing: .12em !important;
  color: #56626E !important;
}
.share-btn { font-size: 16px !important; }

/* Título y ficha técnica */
.detail-header h1, .detail-title { font-size: 38px !important; line-height: 1.15 !important; }
.detail-meta__tag { font-size: 12px !important; }
.detail-body p, .property-description p { font-size: 18px !important; line-height: 1.75 !important; }
/* ==========================================================================
   MAPA DE UBICACIÓN — ficha y listado
   ========================================================================== */
.mcx-mapsec {
  background: #fff;
  border: 1px solid #E3E7EC;
  border-radius: 12px;
  padding: 26px;
  margin: 40px 0 10px;
  box-shadow: 0 18px 40px -30px rgba(14,26,36,.35);
}
.mcx-mapsec__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.mcx-mapsec__head h2 {
  font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 600;
  color: #0E1A24; margin: 0; letter-spacing: -.01em;
}
.mcx-mapsec__head h2 i { color: #B3175A; margin-right: 8px; }
.mcx-mapsec__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #B3175A !important;
  text-decoration: none !important; border-bottom: 1px solid rgba(179,23,90,.3);
  padding-bottom: 2px; transition: border-color .2s ease;
}
.mcx-mapsec__link:hover { border-color: #B3175A; }

.mcx-map { height: 380px; border-radius: 10px; overflow: hidden; background: #F6F7F9; z-index: 0; }
.mcx-map--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 30px; height: auto;
  border: 1px dashed #D9DFE5; color: #56626E;
}
.mcx-map--empty i { font-size: 30px; color: #B3175A; margin-bottom: 6px; }
.mcx-map--empty p { font-size: 17px !important; color: #1C2B37 !important; margin: 0; font-weight: 600; }
.mcx-map--empty span { font-size: 14px !important; color: #56626E !important; }

.mcx-map__foot {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: 14px !important; color: #3C4854 !important; margin: 14px 0 0;
}
.mcx-map__foot i { color: #B3175A; }
.mcx-map__note { color: #6B7783 !important; font-size: 13px !important; }

/* Pin del mapa */
.mcx-pin {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50% 50% 50% 4px;
  background: #B3175A; color: #fff; font-size: 17px;
  transform: rotate(-45deg); box-shadow: 0 6px 14px -4px rgba(14,26,36,.45);
}
.mcx-pin i { transform: rotate(45deg); }

/* Enlace al mapa en las tarjetas del listado */
.prop-card__location--link {
  text-decoration: none !important;
  transition: color .2s ease;
  cursor: pointer;
}
.prop-card__location--link:hover { color: #B3175A !important; }
.prop-card__location--link .prop-card__maptag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: auto; padding: 3px 9px; border-radius: 3px;
  background: #FAEDF2; color: #8C1248;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 720px) {
  .mcx-map { height: 280px; }
  .mcx-mapsec { padding: 18px; }
}
/* Barra de resultados con acceso al mapa */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.results-bar__map {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 6px;
  border: 1px solid #E3E7EC; background: #fff;
  font-size: 13.5px; font-weight: 600; color: #1C2B37 !important;
  text-decoration: none !important; transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.results-bar__map i { color: #B3175A; }
.results-bar__map:hover { border-color: #B3175A; color: #B3175A !important; background: #FAEDF2; }