/* Fallback con métricas ajustadas a Poppins — evita CLS cuando la fuente carga async */
@font-face {
    font-family: 'Poppins-fallback';
    src: local('Arial');
    size-adjust: 104.72%;
    ascent-override: 96.75%;
    descent-override: 22.00%;
    line-gap-override: 0%;
}

main {
    background-color: #fff;
}

.busqueda {
    width: 100%;
    min-height: 100vh;
    height: auto;
    background-color: #efe6ee;
    position: relative;
    overflow: hidden;
    padding: 3rem 1rem;
}

#bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#pixel-city-stage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* form excluido deliberadamente para darle z-index mayor que los quick-filters */
.busqueda > *:not(#pixel-city-stage):not(#bg):not(form) {
    position: relative;
    z-index: 2;
}

.busqueda > form {
    position: relative;
    z-index: 3;
}

.fondo,
.fondo-bg {
    background-color: #F2EBF3;
    background-image:
        /* Puntos purpura dispersos - tiles grandes (equiv. patrones e,f,g del SVG original) */
        radial-gradient(circle at 22px  16px,  #9b6391 1.5px, transparent 1.5px),
        radial-gradient(circle at 103px 26px,  #9b6391 1.5px, transparent 1.5px),
        radial-gradient(circle at 34px  147px, #9b6391 1.5px, transparent 1.5px),
        radial-gradient(circle at 199px 115px, #9b6391 1.5px, transparent 1.5px),
        radial-gradient(circle at 66px  26px,  #9b6391 1px,   transparent 1px),
        radial-gradient(circle at 54px  109px, #9b6391 1px,   transparent 1px),
        radial-gradient(circle at 111px 111px, #9b6391 1px,   transparent 1px),
        /* Puntos medianos dispersos (equiv. patrones b,h,c,d) */
        radial-gradient(circle at 4px   10px,  #c4b0c4 1px,   transparent 1px),
        radial-gradient(circle at 32px  76px,  #c4b0c4 1px,   transparent 1px),
        radial-gradient(circle at 58px  40px,  #c4b0c4 1px,   transparent 1px),
        radial-gradient(circle at 93px  84px,  #c4b0c4 1px,   transparent 1px),
        radial-gradient(circle at 14px  55px,  #c4b0c4 1px,   transparent 1px),
        /* Textura sutil de fondo (equiv. patron a) */
        radial-gradient(circle, #e3dce4 1px, transparent 1px);
    background-size:
        280px 195px, 280px 195px, 280px 195px, 280px 195px,
        119px 143px, 119px 143px, 119px 143px,
        95px 107px,  95px 107px,  95px 107px,  95px 107px, 95px 107px,
        18px 18px;
    background-attachment: fixed;
}

.fondo {
    width: 100%;
    padding: 3rem 1rem;
}
#titlemain {
    font-style: normal;
    font-weight: 900;
    font-size: 48px;
    line-height: 58px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    text-decoration-color: teal;
}

/* ESTILOS PARA CARACTERISTICAS DE CREBI */
.features-crebi {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 20px;
    padding: 0 100px 0 100px;
}

@media (max-width: 768px) {
    .features-crebi {
        padding: 0 16px;
    }
}

.feature {
  display: flex;             /* coloca h3 y p en línea */
  flex-direction: row;       /* uno al lado del otro */
  align-items: center;       /* centra verticalmente */
  justify-content: center;   /* centra horizontalmente dentro del contenedor */
  gap: 12px;                 /* espacio entre h3 y p */
  padding: 12px;             /* opcional: espacio interior */
  box-sizing: border-box;
  text-align: center;        /* mantiene el texto centrado si se envuelve */
}

/* ESTILOS PARA CARACTERISTICAS DE CREBI */
.prices {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
    padding: 0 200px 0 200px;
    justify-content: center;
    align-items: center;
    text-align: center;

    p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .prices {
        grid-template-columns: repeat(1,1fr);
        padding: 0 16px;
        gap: 20px;
    }
}

.card-price {
    display: grid;
    grid-template-rows: 1fr 200px auto;
    gap: 5px;
    width: 100%;
    max-height: 500px;
    padding: 10px;
    border-radius: 15px;
    background: rgba(155, 100, 145, 0.17); /* Gris con 50% de opacidad */
    backdrop-filter: blur(62px); /* Efecto de vidrio mate */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombras suaves */
}

.prices:hover> :not(:hover) {
    filter: blur(5px);
    opacity:  0.2;
}

/* VIDEO */
iframe {
    width: 60%;
    height: 415px;
}

/* Detalle predio */
.grid-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 400px;

    .column {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    }
}

.grid-columns .column:nth-child(2) {
    display: flex;
    flex-direction: column;
    max-height: 400px; /* altura máxima igual a la del contenedor */
    overflow: hidden;  /* oculta lo que se desborda */
}

.accordion-scrollable {
    overflow-y: auto;
    padding-right: 8px;
    flex-grow: 1;
}

.grid-columns img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.predio-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.blog-layout {
    display: grid;
    grid-template-columns: auto 180px;
    gap: 2rem;
    align-items: stretch;
}
/* Contenedor de la flecha — alinea a la derecha respetando el padding del grid */
.blog-arrow-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 100px 0;
}

.blog-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 200, 200, 0.35);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: background 0.3s ease, color 0.2s;
    white-space: nowrap;
}

.blog-arrow span {
    font-size: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.blog-arrow:hover {
    background: rgba(155, 99, 145, 0.15);
    color: #9b6391;
}

.blog-arrow:hover span {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .blog-arrow-row { padding: 10px 40px 0; }
}

@media (max-width: 600px) {
    .blog-arrow-row { padding: 10px 16px 0; }
}

@media (max-width: 1520px) {
   .prices {
        grid-template-columns: repeat(2,1fr);
   }
}

@media (max-width: 1179px) {
    .grid-columns {
        grid-template-columns: 1fr;       /* 1 columna */
        grid-template-rows: repeat(2, 1fr); /* 2 filas */
        height: 800px;
    }
}

@media (max-width:862px) {
    .busqueda {
        padding: 2rem 1rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23F2EBF3' stroke-width='0.4' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cuse fill='%23f0e9f1' href='%23s' y='2'/%3E%3Cuse fill='%23f0e9f1' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23ede6ee' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23ede6ee' href='%23s'/%3E%3Cuse fill='%23ebe4ec' href='%23s' x='2'/%3E%3Cuse fill='%23ebe4ec' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%23e8e1e9'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%23e8e1e9'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%23e6dfe7'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%23F2EBF3'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23e3dce4'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%239B6391'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%239B6391'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='rotate(180 1000 750) scale(20.1) translate(-950.25 -712.69)'%3E%3Cg fill='%239B6391'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url("#a#a")' width='100%25' height='100%25'/%3E%3Crect fill='url("#b#b")' width='100%25' height='100%25'/%3E%3Crect fill='url("#h#h")' width='100%25' height='100%25'/%3E%3Crect fill='url("#c#c")' width='100%25' height='100%25'/%3E%3Crect fill='url("#d#d")' width='100%25' height='100%25'/%3E%3Crect fill='url("#e#e")' width='100%25' height='100%25'/%3E%3Crect fill='url("#f#f")' width='100%25' height='100%25'/%3E%3Crect fill='url("#g#g")' width='100%25' height='100%25'/%3E%3C/svg%3E");
        background-size: cover;
        background-position: center;
    }

    #bg {
        display: none;
    }
}

@media (max-width:600px) {


    iframe {
        width: 60%;
        height: 215px;
    }
}

/*PENDIENTE REVISAR QUE SE USA Y QUE SE MUEVE A MAIN*/



.titulo {
    background-color: #fff;
    padding: 20px;
    text-align: center;
}
.titulo h1 {
    margin: 0;
}

.caracteristicas {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.caracteristica {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 100%; 
    max-width: 300px;
    text-align: center;
}

.caracteristica img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.caracteristica h3 {
    margin-top: 10px;
}

@media (min-width: 600px) {
    .caracteristica {
        width: 45%;
    }
}

@media (min-width: 1024px) {
    .caracteristica {
        width: 30%;
    }
}

.video {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video iframe {
    display: block;
    margin: 0 auto;
}

.tarjetas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.tarjetas .tarjeta {
    width: 150px;
    height: 250px;
    border-radius:7px;
    background: #3FC38C;
    cursor: pointer;
    transition: 0.1s ease;    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}  




.card-text {
    width: 100%;
}


/* Columnas de detalles del predio */
.columnas { /*DIV PRINCIPAL*/

    display: flex;
    flex-wrap: wrap;
    width: auto;
    margin: 2em;
    padding: 1em;
    column-gap: 10px;
}

.columna { /*DIV SECUNDARIO*/

    width: 30%;
    height: 100%;
}

/* Responsive para tarjeta de planes */
@media (max-width: 768px) {
    .tarjetas .tarjeta {
        width: 120px; 
        height: 200px;
    }
}

@media (max-width: 480px) {
    .tarjetas .tarjeta {
        width: 100%;
        height: 250px;
    }
}


.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}

}

.b-example-divider {
width: 100%;
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}

.bi {
vertical-align: -.125em;
fill: currentColor;
}

.nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}

.nav-scroller .nav {
display: flex;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
--bd-violet-bg: #712cf9;
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
--bs-btn-font-weight: 600;
--bs-btn-color: var(--bs-white);
--bs-btn-bg: var(--bd-violet-bg);
--bs-btn-border-color: var(--bd-violet-bg);
--bs-btn-hover-color: var(--bs-white);
--bs-btn-hover-bg: #6528e0;
--bs-btn-hover-border-color: #6528e0;
--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
--bs-btn-active-color: var(--bs-btn-hover-color);
--bs-btn-active-bg: #5a23c8;
--bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
display: block !important;
}

.suggestions {
    /* border: 1px solid #ccc; */
    background: #fff;
    position: absolute;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);            
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.input-group-relative {
    position: relative;
}

.card-img-top {
width: 100%;
height: 200px;
object-fit: cover;
}

.modal-header {
  background: linear-gradient(135deg, #846584 0%, #a687a6 100%);
  color: white;
  border-radius: 10px 10px 0 0;
}

.form-steps{
    padding: 20px 0px 20px 0px;
}

.analysis-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #aa5795 15%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.analysis-feature {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.analysis-feature h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    width: 100%;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    border: 4px solid #3fc38c;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-description {
    opacity: 0.9;
    line-height: 1.8;
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #9b6391;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px #a46995;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;

  /* 👇 claves */
  padding: 0;
  line-height: 0;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  display: block;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #3fc38c;
}


.quick-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
     list-style: none;
    padding: 0;  
}

.quick-filter {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #54B48C;
    border: 1px solid #54B48C;
    border-radius: 20px;
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-filter:hover {
    background: #3fa070;
    color: white;
    border-color: #3fa070;
}

#searchForm {
    width: 100%;
}

.search-container {
    width: 100%;
    max-width: 900px;
    background: white;
    padding: 2rem 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 0 auto 2rem;
    box-sizing: border-box;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-tab {
    padding: 0.75rem 1.5rem;
    background: #f7fafc;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s;
}

.search-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1fr;
    gap: 1rem;
    align-items: end;
}

/* Evita que inputs/selects expandan las columnas más allá de su fracción asignada */
.search-form > *,
.search-form .search-ubicacion-wrap {
    min-width: 0;
}

.search-submit-btn {
    width: 100%;
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    min-width: 0;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 1100px) {
    .search-form {
        grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    }
    /* El campo de área ocupa su celda normal; el botón va a full width */
    .search-form .form-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .search-form .form-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .search-container {
        padding: 1.25rem;
    }

    .search-tabs {
        flex-direction: column;
    }

    .search-tab {
        text-align: center;
    }

    .search-form {
        grid-template-columns: 1fr;
    }
}

        .price-chart-demo {
            background: #f7fafc;
            padding: 2rem;
            border-radius: 12px;
            border: 2px solid #e2e8f0;
            margin-bottom: 1.5rem;
        }

        .chart-bars {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .chart-bar-item {
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 1rem;
            align-items: center;
        }

        .chart-label {
            font-weight: 600;
            color: #4a5568;
            text-align: right;
        }

        .chart-bar {
            background: #e2e8f0;
            height: 40px;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }

        .chart-fill {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 1rem;
            transition: width 0.5s ease;
        }

        .chart-value {
            color: white;
            font-weight: 700;
            font-size: 0.875rem;
        }

        .chart-footer {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e2e8f0;
            color: #718096;
            text-align: center;
        }

        
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.btn-rent {
  background-color: #10b981;
}

.btn-sale {
  background-color: #9b6391;
}

.btn-comuna {
  background-color: #374151;
}

canvas {
  max-width: 550px;
  margin: auto;
  display: block;
  height: 400px;
}

#real-estate-chart .chart-wrapper {
  max-width: 900px;
  margin: auto;
  height: 1000px;   /* 👈 ESTO ES CLAVE */
}

#real-estate-chart canvas {
  width: 100%;
  height: 100%;
}
.roi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.30rem;
  width: 100%;
}

.roi-card {
  background: rgba(16, 185, 129, 0.9); /* menos transparente */
  color: #ffffff;
  padding: 0.2rem 0.2rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.2rem;
  border: 1px solid rgba(16, 185, 129, 0.6);
}

.roi-card:nth-child(even) {
  background: rgba(155, 99, 145, 0.9);
  border-color: rgba(155, 99, 145, 0.6);
}

.roi-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.roi-label {
  display: block;
  font-size: 0.65rem;
}

/* Ancla de posicionamiento para el dropdown de ubicación */
.search-ubicacion-wrap {
    position: relative;
}

.autocomplete-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2d8e8;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(100, 60, 100, .15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.autocomplete-group {
    padding: 5px 12px 2px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9b6391;
    pointer-events: none;
    user-select: none;
}

.autocomplete-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: .875rem;
    color: #333;
    transition: background .1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f4ecf7;
    color: #4a3050;
}

.autocomplete-empty {
    padding: 10px 14px;
    color: #aaa;
    font-size: .82rem;
    cursor: default;
    pointer-events: none;
}

/* Responsive: en móvil el dropdown ocupa el ancho del campo visible */
@media (max-width: 576px) {
    .autocomplete-results {
        max-height: 180px;
        font-size: .82rem;
    }
    .autocomplete-item {
        padding: 7px 12px;
        font-size: .82rem;
    }
}
.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 300px; /* desktop */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .chart-wrapper {
    height: 220px;
    }
}

.global-loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    width: 90%;
    max-width: 320px;
}

@media (max-width: 576px) {
    .loading-content {
        max-width: 260px;
    }

    #loadingText {
        font-size: 0.9rem;
    }
}

/* ── Tarjeta promocional "búsqueda personalizada" ── */
/* Selector doble para superar especificidad de .card-crebi en main.css */
.card-crebi.card-ayuda-busqueda {
    background: linear-gradient(150deg, #4a2f52 0%, #7b5a8a 60%, #9b7ca8 100%) !important;
    cursor: default;
    display: flex;
    align-items: stretch;
    box-shadow: 0 6px 24px rgba(75, 40, 90, 0.35);
}

.card-crebi.card-ayuda-busqueda:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 32px rgba(75, 40, 90, 0.45);
}

.card-ayuda-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 0.75rem;
    flex: 1;
}

.card-ayuda-icon {
    font-size: 2.5rem;
    color: #f5d0ff;
    margin-bottom: 0.25rem;
}

.card-ayuda-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f5e8ff;
    margin: 0;
    line-height: 1.3;
}

.card-ayuda-desc {
    font-size: 0.87rem;
    color: #ddc8ef;
    margin: 0;
    line-height: 1.55;
}

.card-ayuda-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
}

.card-ayuda-btn-form {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    color: #f0e0ff;
    font-weight: 600;
}

.card-ayuda-btn-form:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

.card-ayuda-btn-wa {
    background: #25D366;
    border: none;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.card-ayuda-btn-wa:hover {
    background: #1ebe5d;
    color: #fff;
}


/* ══ Breadcrumbs globales CREBI ══════════════════════════════════════════ */
nav[aria-label="breadcrumb"] {
  padding: 10px 0 4px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 5px 14px;
  background: rgba(154,92,154,.07);
  border: 1px solid rgba(154,92,154,.15);
  border-radius: 20px;
  font-size: 12.5px;
  line-height: 1.4;
  --bs-breadcrumb-divider: '›';
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #7B3F7B;
}
.breadcrumb-item a {
  color: #7B3F7B;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-item a:hover {
  color: #3fc38c;
  text-decoration: none;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: #c4a0c4;
  font-size: 15px;
  font-weight: 400;
  padding: 0 6px;
  line-height: 1;
}
.breadcrumb-item.active {
  color: #5c2e5c;
  font-weight: 600;
}
