/* body  */

body {
  background-color: #F5F5F5; /* Negro profundo */
  color: #003366; /* Texto en blanco hueso */
  font-family: "Poppins", sans-serif; /* Fuente moderna y elegante */
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ✅ Ajuste de los encabezados */
h1, h2, h3, h4, h5, h6 {
  color: #003366; /* Dorado metálico */
  font-weight: bold;
}

/* ✅ Ajuste de los enlaces */
a, li {
  color: #003366; /* Dorado metálico */
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #00A8E8; /* Dorado brillante */
  text-decoration: underline;
}

/* ✅ Ajuste de los botones */
.btn-custom {
  background-color: #003366; /* Fondo dorado */
  color: #1C1C1C; /* Texto negro profundo */
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.btn-custom:hover {
  background-color: #00A8E8; /* Dorado más brillante */
  color: #1C1C1C;
}

/* ✅ Ajuste del contenedor principal para centrar contenido */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}



/* menu */
    /* Navbar styles */
    .navbar-custom {
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
      transition: background-color 0.5s ease;
    }
    .navbar-transparent {
      background-color: transparent;
    }
    .navbar-scrolled {
      background-color: #F4F6F8 ;
    }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28201, 160, 94, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }
    .navbar-toggler {
      background-color: transparent;
      border: 1px solid #003366;
    }

.navbar-custom {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.5s ease;
  }
  .navbar-transparent {
    background-color: transparent;
  }
  .navbar-scrolled {
    background-color: #F4F6F8;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28201, 160, 94, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  .navbar-toggler {
    background-color: transparent;
    border: 1px solid #003366;
  }
  .navbar-custom .navbar-brand {
    color: #003366 !important; /* Dorado metálico */
    font-weight: bold;
    font-size: 1.5rem;
  }
  .navbar-custom .navbar-nav .nav-link {
    color: #003366 !important; /* Blanco Hueso */
    font-size: 1.5rem;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
  }
  .navbar-custom .navbar-nav .nav-link:hover,
  .navbar-custom .navbar-nav .nav-link.active {
    color: #00A8E8 !important; /* Dorado Brillante */
  }
  .navbar-custom .dropdown-menu {
    background-color: #1C1C1C; /* Fondo del dropdown */
    border: 1px solid #003366; /* Borde dorado */
  }
  .navbar-custom .dropdown-item {
    color: #F5F5F5 !important;
  }
  .navbar-custom .dropdown-item:hover {
    background-color: #003366; /* Fondo dorado */
    color: #1C1C1C !important; /* Texto oscuro para contraste */
  }
  .navbar-custom .form-control {
    background-color: #F5F5F5;
    border: 1px solid #003366;
    color: #1C1C1C;
    transition: border 0.3s ease-in-out;
  }
  .navbar-custom .form-control:focus {
    border-color: #00A8E8;
    box-shadow: 0 0 10px rgba(233, 195, 140, 0.5);
  }



    /* Spinner styles */
#spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;  /* Centra horizontalmente */
  align-items: center;      /* Centra verticalmente */
  z-index: 9999;
}

#spinner img {
  height: 100px;
  width: auto;  /* Asegura que la imagen mantenga su proporción */
}

/* footer  */


.social-icons a {
  color: #333; /* Cambia el color de los iconos */
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #d4af37; /* Cambia el color al pasar el cursor */
}



/* styles de aside de contenido inicio */

/* =========================================================
   COLUMNA DERECHA
========================================================= */

.zi-sidebar-column {
    min-width: 0;
}

.zi-sidebar-wrapper {
    width: 100%;
}

.zi-sidebar-card {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e2eaf2;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 48, 92, 0.08);
}


/* =========================================================
   ENCABEZADOS DE TARJETAS
========================================================= */

.zi-sidebar-card-header {
    padding: 22px 22px 12px;
}

.zi-sidebar-label {
    display: block;
    margin-bottom: 7px;
    color: #0875f5;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zi-sidebar-title {
    margin: 0;
    color: #003b73;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}


/* =========================================================
   INFORMACIÓN COMERCIAL
========================================================= */

.zi-about-card::before {
    display: block;
    width: 100%;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        #006eff 0%,
        #00a2ff 55%,
        #17bd86 100%
    );
}

.zi-sidebar-content {
    padding: 0 22px 22px;
}

.zi-rich-content {
    color: #405367;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.zi-rich-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

.zi-rich-content p:last-child {
    margin-bottom: 0;
}

.zi-rich-content strong,
.zi-rich-content b {
    color: #003b73;
    font-weight: 700;
}

.zi-rich-content a {
    color: #006eff;
    font-weight: 600;
    text-decoration: none;
}

.zi-rich-content a:hover {
    text-decoration: underline;
}

.zi-rich-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 12px;
}

.zi-rich-content iframe,
.zi-rich-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    border: 0;
    border-radius: 12px;
}


/* =========================================================
   ARTÍCULOS DESTACADOS
========================================================= */

.zi-featured-list {
    padding: 0 14px 14px;
}

.zi-featured-article {
    margin: 0;
}

.zi-featured-article + .zi-featured-article {
    border-top: 1px solid #edf1f5;
}

.zi-featured-link {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 15px 7px;
    color: inherit;
    text-decoration: none;
    border-radius: 13px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.zi-featured-link:hover {
    color: inherit;
    text-decoration: none;
    background-color: #f5faff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 61, 115, 0.08);
}

.zi-featured-thumbnail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 86px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #edf4fb,
        #dceafa
    );
    border-radius: 12px;
}

.zi-featured-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zi-featured-link:hover .zi-featured-thumbnail img {
    transform: scale(1.06);
}

.zi-featured-thumbnail.zi-image-error::before {
    padding: 8px;
    color: #7890a8;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    content: "Sin imagen";
}

.zi-no-image {
    padding: 8px;
    color: #7890a8;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

.zi-featured-content {
    min-width: 0;
}

.zi-featured-category {
    display: block;
    margin-bottom: 4px;
    color: #16815e;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zi-featured-title {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: #003b73;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zi-featured-description {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #687a8c;
    font-size: 0.77rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zi-featured-more {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: #006eff;
    font-size: 0.74rem;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.zi-featured-link:hover .zi-featured-more {
    gap: 8px;
}

.zi-featured-empty {
    padding: 10px 8px 20px;
    color: #718092;
    font-size: 0.88rem;
    text-align: center;
}

.zi-featured-empty p {
    margin: 0;
}


/* =========================================================
   ANUNCIOS
========================================================= */

.zi-ads-wrapper {
    width: 100%;
}

.zi-ad-card {
    padding: 14px;
    background-color: #ffffff;
}

.zi-ad-label {
    margin-bottom: 10px;
    color: #8996a3;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.zi-ad-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.zi-ad-content img {
    display: inline-block;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
}

.zi-ad-content iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    border: 0;
}

.zi-ad-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.zi-ad-content ins {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.zi-ad-content table {
    width: 100% !important;
    max-width: 100% !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .zi-sidebar-column {
        margin-top: 32px;
    }

    .zi-sidebar-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        align-items: start;
    }

    .zi-sidebar-card {
        margin-bottom: 0;
    }

    .zi-ads-wrapper {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .zi-featured-link {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .zi-featured-thumbnail {
        width: 100px;
        height: 90px;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767.98px) {

    .zi-sidebar-wrapper {
        display: block;
    }

    .zi-sidebar-card {
        margin-bottom: 22px;
    }

    .zi-ads-wrapper {
        display: block;
    }

    .zi-featured-link {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .zi-featured-thumbnail {
        width: 105px;
        height: 92px;
    }

}


@media (max-width: 420px) {

    .zi-sidebar-card-header {
        padding: 19px 18px 10px;
    }

    .zi-sidebar-content {
        padding: 0 18px 19px;
    }

    .zi-sidebar-title {
        font-size: 1.2rem;
    }

    .zi-featured-list {
        padding: 0 10px 10px;
    }

    .zi-featured-link {
        grid-template-columns: 91px minmax(0, 1fr);
        gap: 11px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .zi-featured-thumbnail {
        width: 91px;
        height: 84px;
    }

    .zi-featured-description {
        display: none;
    }

    .zi-ad-card {
        padding: 10px;
    }

}



/* tarjeta del asesor en contenido inicio */

/* =========================================================
   TARJETA DEL ASESOR
========================================================= */

.zi-asesor-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.zi-asesor-header {
    display: flex;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.zi-asesor-foto-wrapper {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
}

.zi-asesor-foto {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #e9eef5;
    border-radius: 12px;
}

.zi-asesor-datos {
    flex: 1 1 auto;

    /*
     * Esta propiedad es indispensable cuando el elemento
     * está dentro de un contenedor flex.
     */
    min-width: 0;
    overflow: hidden;
}

.zi-asesor-nombre {
    display: block;
    margin-bottom: 7px;
    color: #003b73;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.zi-asesor-contacto {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.84rem;
    line-height: 1.4;
}

.zi-asesor-contacto i {
    flex: 0 0 14px;
    width: 14px;
    margin-top: 3px;
    text-align: center;
}

.zi-asesor-contacto a {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: #6c757d;
    text-decoration: none;

    /*
     * Permite dividir correos largos sin desbordar la tarjeta.
     */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.zi-asesor-contacto a:hover {
    color: #006eff;
    text-decoration: underline;
}

.zi-asesor-email {
    width: 100%;
    min-width: 0;
}

.zi-asesor-estadisticas {
    color: #6c757d;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   PANTALLAS PEQUEÑAS
========================================================= */

@media (max-width: 420px) {

    .zi-asesor-header {
        gap: 11px;
        align-items: flex-start;
    }

    .zi-asesor-foto-wrapper,
    .zi-asesor-foto {
        width: 62px;
        height: 62px;
    }

    .zi-asesor-foto-wrapper {
        flex-basis: 62px;
    }

    .zi-asesor-contacto {
        font-size: 0.78rem;
    }

}



/* aside izquierdo de contenido inicio  */

/* =========================================================
   COLUMNA IZQUIERDA DE PROPIEDADES
========================================================= */

.zi-properties-sidebar {
    min-width: 0;
}

.zi-properties-sidebar-inner {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 49, 94, 0.08);
}


/* =========================================================
   ENCABEZADO
========================================================= */

.zi-mini-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.zi-mini-header-main {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
}

.zi-mini-header-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    font-size: 1rem;
    background: linear-gradient(
        135deg,
        #006eff,
        #00a0ff
    );
    border-radius: 12px;
    box-shadow: 0 7px 15px rgba(0, 110, 255, 0.22);
}

.zi-mini-header-text {
    min-width: 0;
}

.zi-mini-label {
    display: block;
    margin-bottom: 2px;
    color: #77889a;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zi-mini-heading {
    margin: 0;
    color: #003b73;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.zi-mini-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    color: #006eff;
    font-size: 0.8rem;
    font-weight: 800;
    background: #edf5ff;
    border: 1px solid #d7e9ff;
    border-radius: 999px;
}


/* =========================================================
   FILTRO ACTIVO
========================================================= */

.zi-mini-filter-active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
    padding: 9px 11px;
    background: #f6f9fc;
    border: 1px solid #e6edf4;
    border-radius: 10px;
}

.zi-mini-filter-label {
    color: #738397;
    font-size: 0.72rem;
}

.zi-mini-filter-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 9px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    background: #006eff;
    border-radius: 999px;
}


/* =========================================================
   BUSCADOR
========================================================= */

.zi-mini-search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 17px;
}

.zi-mini-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #7e8ea0;
    font-size: 0.85rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.zi-mini-search-input {
    display: block;
    width: 100%;
    height: 43px;
    padding: 8px 42px 8px 39px;
    color: #263b50;
    font-size: 0.88rem;
    background: #f8fafc;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.zi-mini-search-input::placeholder {
    color: #9aa7b4;
}

.zi-mini-search-input:focus {
    background: #ffffff;
    border-color: #1680ff;
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.12);
}

.zi-mini-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    padding: 0;
    color: #748496;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.zi-mini-search-clear:hover {
    color: #ffffff;
    background: #006eff;
}


/* =========================================================
   LISTADO
========================================================= */

.zi-mini-list {
    width: 100%;
    min-width: 0;
}

.zi-mini-item {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 13px 5px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #edf1f5;
    transition:
        padding 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.zi-mini-item:last-of-type {
    border-bottom: 0;
}

.zi-mini-item:hover {
    z-index: 2;
    padding-right: 8px;
    padding-left: 8px;
    color: inherit;
    text-decoration: none;
    background: #f4f9ff;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(0, 61, 115, 0.08);
    transform: translateY(-1px);
}


/* =========================================================
   IMAGEN
========================================================= */

.zi-mini-thumb-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 66px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #edf4fb,
        #dceafa
    );
    border-radius: 11px;
}

.zi-mini-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zi-mini-item:hover .zi-mini-thumb {
    transform: scale(1.07);
}

.zi-mini-no-image,
.zi-mini-thumb-wrapper.zi-mini-image-error::before {
    color: #7990a8;
    font-size: 1.25rem;
    content: "\f015";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.zi-mini-info {
    min-width: 0;
}

.zi-mini-title {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    color: #003b73;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zi-mini-price {
    margin-bottom: 4px;
    color: #15875d;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.3;
}

.zi-mini-location {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    min-width: 0;
    color: #748496;
    font-size: 0.72rem;
    line-height: 1.35;
}

.zi-mini-location i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #f04452;
    font-size: 0.68rem;
}

.zi-mini-location span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zi-mini-arrow {
    color: #a7b3bf;
    font-size: 0.7rem;
    text-align: center;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.zi-mini-item:hover .zi-mini-arrow {
    color: #006eff;
    transform: translateX(3px);
}


/* =========================================================
   SIN RESULTADOS
========================================================= */

.zi-mini-empty {
    padding: 30px 15px;
    color: #718195;
    font-size: 0.82rem;
    text-align: center;
}

.zi-mini-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #006eff;
    font-size: 1.1rem;
    background: #edf5ff;
    border-radius: 50%;
}

.zi-mini-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #003b73;
    font-size: 0.9rem;
}

.zi-mini-empty p {
    margin: 0;
}


/* =========================================================
   ESCRITORIO
========================================================= */

@media (min-width: 992px) {

    .zi-properties-sidebar-inner {
        position: sticky;
        top: 100px;
    }

    .zi-mini-list {
        max-height: calc(100vh - 260px);
        padding-right: 5px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #cbd8e5 transparent;
    }

    .zi-mini-list::-webkit-scrollbar {
        width: 5px;
    }

    .zi-mini-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .zi-mini-list::-webkit-scrollbar-thumb {
        background: #cbd8e5;
        border-radius: 20px;
    }

    .zi-mini-list::-webkit-scrollbar-thumb:hover {
        background: #9eb1c4;
    }

}


/* =========================================================
   TABLET Y MÓVIL
========================================================= */

@media (max-width: 991.98px) {

    .zi-properties-sidebar {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .zi-properties-sidebar-inner {
        position: static;
    }

    .zi-mini-list {
        max-height: none;
        overflow: visible;
    }

    .zi-mini-item {
        grid-template-columns: 90px minmax(0, 1fr) 18px;
    }

    .zi-mini-thumb-wrapper {
        width: 90px;
        height: 76px;
    }

}


@media (max-width: 420px) {

    .zi-properties-sidebar-inner {
        padding: 16px;
        border-radius: 15px;
    }

    .zi-mini-item {
        grid-template-columns: 76px minmax(0, 1fr) 14px;
        gap: 10px;
    }

    .zi-mini-thumb-wrapper {
        width: 76px;
        height: 68px;
    }

    .zi-mini-title {
        font-size: 0.8rem;
    }

    .zi-mini-price {
        font-size: 0.74rem;
    }

    .zi-mini-location {
        font-size: 0.68rem;
    }

}

/* contenido-categorias  */

/* =========================================================
   ARTÍCULOS DE CATEGORÍA
========================================================= */

.zi-category-article-image {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
    border-radius: 14px;
}

.zi-category-article h4,
.zi-category-article h5 {
    color: #003b73;
    font-weight: 750;
    line-height: 1.3;
}

.zi-category-article p {
    color: #596b7d;
    line-height: 1.65;
}


/* =========================================================
   COLUMNA DERECHA
========================================================= */

.zi-category-sidebar-section {
    width: 100%;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 49, 94, 0.07);
}

.zi-category-sidebar-section h4 {
    margin-bottom: 15px;
    color: #003b73;
    font-size: 1.2rem;
    font-weight: 800;
}

.zi-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}


/* =========================================================
   ARTÍCULOS DESTACADOS
========================================================= */

.zi-category-featured-list {
    width: 100%;
}

.zi-category-featured-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}

.zi-category-featured-item:first-child {
    padding-top: 0;
}

.zi-category-featured-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.zi-category-featured-image {
    display: block;
    width: 84px;
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
}

.zi-category-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zi-category-featured-content {
    min-width: 0;
}

.zi-category-featured-content a {
    color: #003b73;
    font-size: 0.84rem;
    line-height: 1.35;
    text-decoration: none;
}

.zi-category-featured-content p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: #68798a;
    font-size: 0.75rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   PUBLICIDAD
========================================================= */

.zi-category-ads {
    width: 100%;
    margin-top: 24px;
}

.zi-category-ad {
    width: 100%;
    margin-bottom: 22px;
    padding: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 49, 94, 0.07);
}

.zi-category-ad-label {
    margin-bottom: 9px;
    color: #8a98a6;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.zi-category-ad-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.zi-category-ad-content img,
.zi-category-ad-content iframe,
.zi-category-ad-content video,
.zi-category-ad-content ins {
    max-width: 100% !important;
}

.zi-category-ad-content img,
.zi-category-ad-content video {
    height: auto !important;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767.98px) {

    .zi-category-article-image {
        height: 220px;
    }

    .zi-category-sidebar-section {
        margin-top: 22px;
    }

}



/* contenido-proopieda   */

/* =========================================================
   CORRECCIÓN DE CONTRASTE EN MÓVIL Y MODO OSCURO
   Mantiene la ficha de propiedad con apariencia clara
========================================================= */

.zi-page-content {
    color-scheme: light;

    --bs-body-color: #334155;
    --bs-secondary-color: #64748b;
    --bs-emphasis-color: #0f2742;
    --bs-body-bg: #ffffff;
    --bs-border-color: #dfe7ef;

    color: #334155;
}


/* =========================================================
   FONDOS DE TARJETAS
========================================================= */

.zi-page-content .zi-card,
.zi-page-content .widget-card,
.zi-page-content #formBuscadorRapido {
    color: #334155 !important;
    background-color: #ffffff !important;
    border-color: #e1e8f0 !important;
}


/* =========================================================
   TÍTULOS
========================================================= */

.zi-page-content h1,
.zi-page-content h2,
.zi-page-content h3,
.zi-page-content h4,
.zi-page-content h5,
.zi-page-content h6,
.zi-page-content .mini-title,
.zi-page-content .zi-asesor-nombre {
    color: #12395d !important;
}


/* =========================================================
   TEXTO NORMAL Y SECUNDARIO
========================================================= */

.zi-page-content p,
.zi-page-content .prop-location,
.zi-page-content .mini-meta,
.zi-page-content .zi-asesor-contacto,
.zi-page-content .zi-asesor-estadisticas {
    color: #526579 !important;
}

.zi-page-content .text-muted {
    color: #586b7e !important;
}

.zi-page-content .text-secondary {
    color: #526579 !important;
}

.zi-page-content .text-dark {
    color: #263b50 !important;
}


/* =========================================================
   DESCRIPCIÓN DE LA PROPIEDAD
========================================================= */

.zi-page-content .zi-property-description {
    color: #405468 !important;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.zi-page-content .zi-property-description p,
.zi-page-content .zi-property-description span,
.zi-page-content .zi-property-description div,
.zi-page-content .zi-property-description li {
    color: inherit !important;
}


/* =========================================================
   CHIPS, BADGES Y DATOS
========================================================= */

.zi-page-content .zi-chip {
    color: #334155 !important;
    background-color: #f5f9fd !important;
    border-color: #dce6f0 !important;
}

.zi-page-content .badge.text-bg-light {
    color: #334155 !important;
    background-color: #eef4fa !important;
}

.zi-page-content .mini-meta .badge {
    color: #334155 !important;
}


/* =========================================================
   FORMULARIOS
========================================================= */

.zi-page-content .form-label,
#modalContactarAsesor .form-label {
    color: #334155 !important;
    font-weight: 650;
}

.zi-page-content .form-control,
.zi-page-content .form-select,
#modalContactarAsesor .form-control,
#modalContactarAsesor .form-select {
    color: #263b50 !important;
    background-color: #ffffff !important;
    border-color: #d7e1eb !important;
}

.zi-page-content .form-control::placeholder,
#modalContactarAsesor .form-control::placeholder {
    color: #8b99a8 !important;
    opacity: 1;
}

.zi-page-content .form-control:focus,
.zi-page-content .form-select:focus,
#modalContactarAsesor .form-control:focus {
    color: #263b50 !important;
    background-color: #ffffff !important;
    border-color: #1680ff !important;
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.10) !important;
}


/* =========================================================
   MODAL DE CONTACTO
========================================================= */

#modalContactarAsesor .modal-content {
    color: #334155 !important;
    background-color: #ffffff !important;
}

#modalContactarAsesor .modal-header,
#modalContactarAsesor .modal-body {
    color: #334155 !important;
    background-color: #ffffff !important;
}

#modalContactarAsesor .modal-title {
    color: #12395d !important;
}


/* =========================================================
   RESULTADOS DEL BUSCADOR RÁPIDO
========================================================= */

#zonaResultadosRapido {
    color: #334155 !important;
}

#zonaResultadosRapido a,
#zonaResultadosRapido .text-dark {
    color: #263b50 !important;
}

#zonaResultadosRapido small {
    color: #64748b !important;
}


/* =========================================================
   CORRECCIÓN ESPECÍFICA PARA TELÉFONOS
========================================================= */

@media (max-width: 767.98px) {

    .zi-page-content {
        color: #334155 !important;
    }

    .zi-page-content .zi-card,
    .zi-page-content .widget-card {
        background-color: #ffffff !important;
    }

    .zi-page-content .prop-header h1 {
        color: #12395d !important;
        font-size: 1.35rem;
        line-height: 1.35;
    }

    .zi-page-content .prop-location {
        color: #526579 !important;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .zi-page-content .zi-property-description {
        color: #405468 !important;
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .zi-page-content .mini-meta {
        color: #5b6f82 !important;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .zi-page-content .zi-asesor-contacto a {
        color: #526579 !important;
    }

}