/* ----------------- */
/* ----- HOME ------ */
/* ----------------- */

.concept_container{
    min-height: 800px;
}

.concept_section{
    position: absolute;
    width: 60%;
    right: 5px;
}

.concept_section img{
    margin: 0 auto;
}

.banner_section img{
    width:100%;
}

.concept_section h1{
    font-size: 35px;
    font-weight: 800;
    color: #004870;
}

.concept_buttons{
    background-color: #7D82E5;
    padding: 50px 0;
    border-top-left-radius: 30px;
    color: white;
    text-align: unset;
    display: flex;
    flex-wrap: nowrap;
}

.confirm_button_group{
    width: 500px;
    margin-bottom: 20px;
}

.confirm_button_group p{
    color:#004870;
}

.confirm_buttons{
    background-color: #599BF1;
    padding: 30px 10px;
    border-top-left-radius: 30px;
    color: white;
    text-align: unset;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
}

.confirm_buttons .icon{
    margin-left: 20px;
    margin-right: 25px;
}

.concept_buttons .icon{
    flex: 0 0 25%;
}

.concept_buttons .info{
    flex: 0 0 75%;
}

.concept_buttons h2{
    font-size: 30px;
    font-weight: 800;
}

/* ------------------------- */
/* ----- FORM SECTION ------ */
/* ------------------------- */

.form_header{
    max-width: 1150px;
    margin: 0 auto;
}

.register-page{
    background-color: white;
    overflow-x: hidden;
}

.register-page .row:first-child{
    max-width: 1150px;
}

.register-page .card{
    box-shadow: unset;
}

.register-page .card-body{
    background-color:#EFEFEF;
}

.register-page .card-header{
    background-color:white!important;
    color: #004870!important;
    padding:.75rem 0;
    font-family: Poppins;
    font-size: 35px;
    font-weight: 800;
}

.register-page .card-body .form-group label{
    color: #004870;
    font-family: Poppins;
    font-weight: 400;
}

.register-page .card-body .form-group .form-control{
    border: 0!important;
    border-radius: 0px;
}

.register-page .select2-selection{
    border: 0;
    border-radius: 0px;
}

.form_section{
    margin: 0 auto;
    max-width: 1145px;
}


.register-page .card-tools .btn-danger{
    float:right;
    background-color: #E00B1A;
    border: 0;
    border-radius: 5px;
    padding: 8px 25px;
}

.register-page .card-tools .btn-success{
    background-color: #004870;
    border: 0;
    border-radius: 5px;
    margin-left: 20px;
    padding: 8px 25px;
}

.register-page .card-footer{
    background-color: #EFEFEF;
}

/* ------------------------- */
/* ----- CONFIRM PAGE ------ */
/* ------------------------- */

.form_message{
    color: #004870;
    font-family: Poppins;
}

.form_message{
    margin-bottom: 50px;
    margin-top: 20px;
}

.confirm_title{
    color:#004870;
    font-size: 30px;
    margin-bottom: 30px;
}

/* ------------------- */
/* ----- FOOTER ------ */
/* ------------------- */

.main_footer{
    background-color: #004870;
    width: 100%;
    padding: 80px 0;
    font-family: Poppins;
    background-position: 40vw 100%;
}

.footer_content{
    max-width: 1150px;
    margin: 0 auto;
}

.upper_footer{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
}

.upper_footer p{
    font-weight: 300;
}

.upper_footer .sections{
    margin: 0 5px;
}

.upper_footer .footer_headlines{
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 20px;
}

.upper_footer ul,
.lower_footer ul{
    list-style-type: none;
    padding: 0;
    color: white;
}

.upper_footer li a,
.lower_footer li a{
    color: white;
    font-weight: 300;
}

.lower_footer p{
    margin-bottom: 5px;
}

.upper_footer h3{
    font-size: 16px;
    font-weight: 800;
    margin-top: 30px;
}

.lower_footer{
    color: white;
    margin-top: 50px;
    font-weight: 400;
}

.lower_footer_list li{
    display: inline;
    font-weight: 500;
}


/* ------------------------- */
/* ----- MEDIA QUERYS ------ */
/* ------------------------- */

@media(max-width:768px){
    .concept_section{
        width: 100%;
        padding: 5%;
    }

    .concept_buttons{
        flex-wrap: wrap;
    }

    .concept_container{
        background-position: left bottom;
        min-height: 1000px;
    }

    .upper_footer .sections:first-child{
        margin-bottom: 50px;
    }

    .upper_footer .sections{
        margin-bottom: 20px;
    }

    .main_footer{
        background-position: bottom;
        background-size: contain;
    }

    .upper_footer{
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .lower_footer{
        padding: 0 10px;
    }

    .form_section{
        padding: 20px;
    }

    .concept_buttons .icon{
        flex: unset;
        margin: 5px 20px;
    }
    
    .concept_buttons .info{
        flex: unset;
        margin: 0 20px;
    }
}

/* ------------------------- */
/* ---- CLASS SELECT 2 ----- */
/* ------------------------- */

select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
    opacity:0.6;
    cursor:no-drop;
}

.field-label {
    font-weight: bold !important;
    margin-top: 10px;
    margin-bottom: 0px;
    text-decoration: underline;
}


.modal-backdrop {
  background-color: #0b1220;
}

.modal-backdrop.show {
  opacity: .35 !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


 /* ====== Modal base (overlay) ====== */
  #modalSelectInmueble {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  #modalSelectInmueble.is-open {
    display: flex;
  }

  /* Backdrop con blur y transparencia, no opaco */
  #modalSelectInmueble::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 24, 0.35); /* semitransparente */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 0;
  }

  #modalSelectInmueble .modal-dialog {
    width: min(620px, calc(100% - 32px));
    margin: 0; /* lo centra el flex del overlay */
    z-index: 1; /* por encima del backdrop */
  }

  /* Caja del modal */
  #modalSelectInmueble .modal-content {
    background: #0d6efd;
    color: #fff;
    border-radius: 14px;
    box-shadow:
      0 10px 30px rgba(0,0,0,0.25),
      0 2px 10px rgba(0,0,0,0.15);
    overflow: visible;
    padding: 10px;
  }

  /* Header */
  #modalSelectInmueble .modal-header {
    border: 0;
    padding: 20px 20px 8px;
    position: relative;
  }
  #modalSelectInmueble .modal-title {
    margin: 6px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
  }
  #modalSelectInmueble small {
    display: block;
    margin-top: 4px;
    opacity: 0.8;
    text-align: center;
  }

  /* Botón cerrar (X) */
  #modalSelectInmueble .close,
  #modalSelectInmueble #btnCloseModalInmueble {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
  }

  /* Body */
  #modalSelectInmueble .modal-body {
    padding: 12px 20px 6px;
  }
  #modalSelectInmueble .form-group {
    margin: 0 0 12px 0;
  }
  #modalSelectInmueble label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
  }

  /* Select SOLO dentro del modal */
  #modalSelectInmueble select {
    width: 100%;
    background: #0d6efd;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    outline: none;
    appearance: none;
    position: relative;
    z-index: 2;
  }
  #modalSelectInmueble select:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
    border-color: #fff;
  }
  /* Flecha del select (simple) */
  #modalSelectInmueble .form-group {
    position: relative;
  }
  #modalSelectInmueble .form-group::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 38px;
    pointer-events: none;
    opacity: 0.9;
  }

  /* Footer y botones */
  #modalSelectInmueble .modal-footer {
    border: 0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px 18px;
  }
  #modalSelectInmueble .btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
  }
  #modalSelectInmueble .btn-light {
    background: #fff;
    color: #0d6efd;
  }
  #modalSelectInmueble .btn-outline-light {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85);
  }
  #modalSelectInmueble .btn:hover {
    filter: brightness(0.95);
  }

  /* Icono casita centrado y limpio */
  #modalSelectInmueble .fa-home {
    display: block;
    text-align: center;
    margin-bottom: 6px;
  }

  /* Evitar scroll del body cuando el modal esté abierto */
  body.pm-no-scroll {
    overflow: hidden;
  }

/* El overlay puede seguir bloqueando el body */
body.pm-no-scroll { overflow: hidden; }

/* Que el contenido del modal tenga altura limitada y SCROLL propio */
#modalSelectInmueble .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* El body del modal SI tiene scroll */
#modalSelectInmueble .modal-body {
  overflow: auto;
  max-height: 60vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* (Opcional) Header/Footer pegados arriba/abajo cuando hay scroll en el body */
#modalSelectInmueble .modal-header,
#modalSelectInmueble .modal-footer {
  flex: 0 0 auto;
}
#modalSelectInmueble .modal-body {
  flex: 1 1 auto;
}

/* Select2: asegura scroll en la lista de resultados */
.select2-container .select2-results__options {
  max-height: 50vh;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Si usas scope al modal para z-index, mantenlo: */
#modalSelectInmueble .select2-container { z-index: 10050 !important; }
#modalSelectInmueble .select2-container--open { z-index: 10060 !important; }
#modalSelectInmueble .select2-dropdown { z-index: 10070 !important; }
#modalSelectInmueble .select2-results__options { z-index: 10080 !important; }
