body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: rgba(247, 247, 247, 0.9);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 200px;
    right: 200px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Agregado 2023-05-14 */
}

nav img {
    width: 128px;
    height: 60px;
    margin: 20px 0;
}

.form-container {
    background-color: rgba(54, 57, 63, 0.85);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 160px auto 20px;
    z-index: 1;
    position: relative;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    margin-right: 10px;
}

#direccion-field {
    flex-basis: 40%;
}

#tipo_propiedad-field {
    flex-basis: 15%;
}

.form-field-group {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex-basis: 10%;
}

.hyphen {
    color: white;
    position: relative;
    top: 7px;
    left: -5px;
    margin-left: 13px;  /* Ajusta según necesidad */
    margin-right: 13px;  /* Ajusta según necesidad */
}



label {
    color: white;
    margin-bottom: 5px; /* Modificado 2023-05-14 */
}

button {
    background-color: #6EC1E4;
    color: white;
    font-size: 16px;
    padding: 10px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    /* Agregado el 2023-05-14 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

button:hover {
    background-color: #5db2d0;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 0;
    margin-top: 0px;
}

footer {
    background-color: #2287B2;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
    /* Agregado el 2023-05-14 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

footer p {
    margin: 0; /* Agregado el 2023-05-14 */
}

@media (min-width: 992px) {
    .form-field:last-child {
        margin-right: 0;
        order: 1;
    }
}

@media (max-width: 991px) {
    #direccion-field,
    #tipo_propiedad-field {
        flex-basis: 100%;
    }
    
    .form-field-group {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    #direccion-field,
    #tipo_propiedad-field {
        flex-basis: 100%;
    }
    
    .form-field-group {
        flex-basis: 100%;
    }
}

#showhideForm{
	display: none;
}	

#myDIV {
    z-index: 20;
    position: relative;
    margin: -35px auto 20px;
    max-width: 550px; /* Increased max-width for a wider popup */
    background-color: white; /* Changed background for better contrast */
    
    border-radius: 10px;
    padding: 20px;
      
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;  
}

#myDIV, #myDIV * {
    color: #333; /* Ensuring all text inside has good contrast */
}

#myDIV .etiqueta_set {
    color: white;
}

.form-field-sii-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-basis: 100%;
    width: 100;
    color: #fafafa;
}





.wrap {
    margin-bottom: 0.5rem;
    }
    
.wrap_check {
    display: flex;
    align-items: center;
    margin-top: 20px; /* Modificado el 2023-05-14 */
}
    
    

.wrap_check label {
    margin-left: 10px; /* Agrega un margen a la izquierda de la etiqueta para dar espacio al checkbox */
    cursor: pointer;
  }

  .cheque_label { /* Agregado el 2023-05-14 */
    font-size: 0.8rem;
}

  
  legend {
    color: white;
    font-size: 1.3em;
    display: block;
    margin: 0 auto;
    text-align: center;
  }

#warning_sii {
    display: none;
    z-index: 25;
    background-color: rgba(205, 92, 92, 0.7);
    color: white;

    margin: 0;
    border-radius: 10px;
    padding: 0px;
    width: 350px;
    max-width: 1200px;
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}


#encabezado{
	position: relative;
	z-index: 2; /* The z-index should be higher than Google Maps */
	width: 75%;
	background: white;
	height: 20%;
	opacity: .90;
	margin:auto;
	margin-top:10px; 
}

#infowindow-content .title {
    font-weight: bold;
  }
  
#temporales{
	position: relative;
	z-index: 6; /* The z-index should be higher than Google Maps */
}

#infowindow-content {
    display: none;
  }

#map #infowindow-content {
    display: inline;
  }
  
select:disabled {
	opacity: 1;
	color: black;
}    
.etiqueta_set{
	width: 220px;
	text-align: left;
}
.etiqueta_bus{
	display: inline-block;
	text-align: left;
}
.cajas{
	width: 90%;
	background-color:rgb(170,170,170);
	cursor:not-allowed;
}	
.cajas_ene{
	width: 90%;
	background-color: white;
	cursor:auto;
}	
.cheque{
    margin-right: 0.5rem;
    transform: scale(0.8);
    cursor: pointer;
}	
.linea{
	display: inline-block;
	position: relative;
    float: left;	
}

/* Agregado 2023-05-07 */
/* Estilo para el fondo oscuro opaco */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
  }  
  
  /* Estilo para el contenedor del formulario de popup */
  #myDIV {
    display: none;
    background-color: rgba(90, 94, 101, 0.85);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    /* Agregue estilos adicionales según sea necesario, como tamaño, colores, bordes, etc. */
  }

  /* Agregado 2023-05-13 */
  .cerrar {
    position: absolute;
    top: 1px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #706e6e;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
  }
  .cerrar:hover {
      opacity: 1; /* Full opacity on hover */
  }
  
/* Agregado 2023-05-13 para Resultado */
.ancho {
    left: 0;
    right: 0;
    margin: 0; 
}

.contenido {
    text-align: center;
    padding: 20px;
    margin-top: 65px;
    width: 100%;
    box-sizing: border-box;
}

.titulo-principal {
    color: #2387B2;
    font-size: 24px;
    margin-bottom: 10px;
}

.texto-secundario {
    color: #2387B2;
    font-size: 18px;
    line-height: 1.5;
}

.div-compraexitosa {
    margin-top: 30px;
    
}

.div-estimacion {
    position: relative;
    background-color: #2387B2;
    padding: 20px;
    margin: 0;
    width: 100%;
}

.titulo-estimacion {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.valor-estimacion {
    color: white;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

button.boton-descarga,
a.boton-descarga {
    background-color: #6EC1E4;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none; /* Agregado para eliminar el subrayado del enlace */
    transition: background-color 0.3s, color 0.3s; /* Transición suave al cambiar el color */
}

.boton-descarga:hover {
    background-color: #66b2ff; /* Color celeste claro */
    color: white !important; /* Asegura que el texto siga visible */
}

input,select {
    border-radius: 10px;
    /* Agregado 2023-05-14: */
    height: 34px; 
    margin-bottom: 0;
    padding: 0 10px; 
  }


/* Agregado 22/05/2024 */
nav.nav-links {
    position: absolute;
    top: 10px; /* Ajusta esto según sea necesario para alinear verticalmente con "Mapa" y "Satélite" */
    right: 20px; /* Ajuste para no topar con el final del header */
    display: flex;
    align-items: center;
    font-family: 'Roboto', Arial, sans-serif; /* Fuente moderna */
}

nav.nav-links a {
    display: inline-block;
    margin-left: 15px;
    padding: 8px 20px; /* Espaciado interno para el estilo de botón */
    text-decoration: none; /* Quita el subrayado */
    color: white; /* Color del texto */
    background-color: #6c757d; /* Color de fondo más suave */
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s, color 0.3s; /* Transición suave al cambiar el color */
}

nav.nav-links a:hover {
    background-color: #66b2ff; /* Color celeste claro */
    color: white !important; /* Asegura que el texto siga visible */
}

/* --- Styles for ROL Selection Container (Easy to Customize) --- */
#rol-selection-container {

    background-color: #d8d5d5; /* Example background color */
    color: #222121; /* Example text color */
    border: 1px solid #ccc;
    padding: 15px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
}

.rol-selection-title {
    margin-bottom: 13px;
}

/* --- Styles for Tabs in resultado_ajax.html (Easy to Customize) --- */
.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.tab-link.active {
    background-color: #fff;
    border-bottom: 2px solid #fff;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

.tab-content.active {
    display: block;
}
