body{
    display:inline-block;
	overflow-x: clip;
	cursor:default;
    width: -webkit-fill-available;
    background-color:#D2D7DC;
}
.ir-arriba{
    background-repeat: no-repeat;
    font-size: 20px;
    color: white;
    cursor: pointer;
    position: fixed;
    bottom: 90px;
    right: 0px;
    z-index: 2;
    background-color: rgba(0,0,0,0.4);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 5px;
    width: 40px;
}
.ir-arriba:hover{
     background-color: rgba(0,0,0,0.7);
}
.ir-arriba p {
    display:flex;
    justify-content:center;
    font-size:25px;
}
header div{
	display: grid;
	grid-template-columns: repeat(3,1fr);
	background-color: #0279b5;
}
header div a img{
	margin: 5px auto;
    grid-column: 2/3;
	width: 100px;
	height:auto;
	display:flex;
}
.x{
    grid-column: 3;
    text-align: right;
    margin-top: 25px;
    margin-right: 25px;
    text-decoration: none;
    color: rgb(0,0,0);
    font-size: 35px;
}
.content{
	grid-template-rows: repeat(2,1fr);
	background-color: #D2D7DC;
}
h1{
    color: white;
    margin-left: 20px;
    grid-column: 1;
    text-align: center;
}


.imagen {
  width: 100%;
  height: auto;
  position: relative;
  background-color:white;
}
.imagen img{
    height:450px;
}
.imagen a{
    display: flex;
    justify-content: center;
}

.modal{
    display: none;
}

.modal:target{
    display: block;
    position: fixed;
    background: rgba(0,0,0,0.95);
    top: 0;
    left: 0;
    width: 101%;
    height: 101%;
    z-index: 2;
    overflow-y: overlay;
}

.cabezera{
    margin: 5px;
    height: 10%;
    box-sizing: border-box;
}

.cerrar{
    display: inline-block;
    text-decoration: none;
    font-size: 30px;
    color: #fff;
    padding: 15px;
    float: right;
    margin-right: 50px;
    margin-top: 20px;
}
.imajen {
    grid-row: 1/2;
    width: 100%;
    height: 500px;
    background-color: white;
}
.imajen form{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imajen img{
    height: 100%;
    object-fit:contain;
}
.button{
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: space-evenly;
}
.button div{
    width: 40%;
}
.button div img{
    width:100%;
    object-fit:contain
}
.button_1{
    text-decoration: none;
    font-size:65px; 
    border: none;
    color: white;
    opacity: 0.9;
    background-color: transparent;
    cursor: pointer;
}
.button_2{
    text-decoration: none;
    font-size:65px; 
    border: none;
    color: white;
    opacity: 0.9;
    background-color: transparent;
    cursor: pointer;
}

.texto{
	width: 100%;
	height: auto;
	background-color:#D2D7DC;
}
.texto_1{
    grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}
.informacion{
	padding: 30px;
	width: 800px;
	word-spacing: 0.15em;
}
.informacion h2{
    width: 100%;
}
.informacion p{
	position: relative;
	display: block;
	padding: 10px;
	line-height: 25px;
}
.mai {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-top:10px;
    align-items: flex-start;
}
.mail {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border-left: 6px solid #2c3e50; /* Borde decorativo en el lado izquierdo */
}
.mail label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
    color: #2c3e50;
    text-transform: uppercase;
}
.mail input[type="text"],
.mail input[type="email"],
.mail input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 16px;
    color: #2c3e50;
    background-color: #f8f8f8;
    transition: border-color 0.3s ease;
}
.mail input[type="text"]:focus,
.mail input[type="email"]:focus,
.mail input[type="tel"]:focus {
    border-color: #2980b9;
    outline: none;
}
.mail input[type="submit"] {
    background-color: #2980b9;
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}
.mail input[type="submit"]:hover {
    background-color: #1f6391;
}

.content_2{
    display:flex;
    margin-bottom:75px;
    margin-top: 50px;
}
#map { 
    position: relative; 
    width: 400px;
    height: 300px;
    margin:auto;
    scale:1.2;
}

.hipoteca {
    font-family: Arial, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 100px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hipoteca h2 {
    color: #333;
    text-align: center;
}

.hipoteca input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.hipoteca button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.hipoteca button:hover {
    background-color: #0056b3;
}
#result{
    display: none;
}
#results{
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 30px;
    padding-left: 30px;
    background: #e9eef5 ;
    z-index:1;
}
.results_1{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}
.results_1 h2{
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 30px;
}

.results_p{
    margin-top:20px;
    text-align: left;
    padding-left: 150px;
    font-size: 20px;
}
#mortgage-form div{
    padding-top: 25px;
    margin-left: 10px;
}
#mortgage-form button{
    display: block;
    margin: auto;
    margin-top: 40px;
}
.Cerrar-montgage{
    display: flex;
    justify-content: flex-end;
    padding-right: 100px;
    align-items: center;
    grid-column: span 2;
}
.Cerrar-montgage a{
    text-decoration: none;
    color: black;
}
.Cerrar-montgage a:hover{
    color: red;
}
#whatsapp {
    display: table;
    background-color: #25D366; /* Color de WhatsApp */
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin: auto;
    margin-top: 100px;
}

#whatsapp:hover {
    background-color: #128C7E; /* Color de WhatsApp al pasar el ratón */
}

#whatsapp-container_1{
    display: none;
}

#whatsapp-container {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
#whatsapp-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    margin: 80px;
    padding: 35px;
}
.salir{
    text-align: end;
}
.salir a{
    text-decoration: none;
    color: black;
}
.salir a:hover{
    color: red;
}
#whatsapp-confirm{
    text-decoration: none;
    color: black;
}

.wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#whatsapp-confirm {
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #313133;
  background: #4FD1C5;
  background: linear-gradient(90deg, rgba(129,230,217,1) 0%, rgba(79,209,197,1) 100%);
  border: none;
  border-radius: 1000px;
  box-shadow: 12px 12px 24px rgba(79,209,197,.64);
  transition: all 0.3s ease-in-out 0s;
  cursor: pointer;
  outline: none;
  position: relative;
  padding: 10px;
  }

#whatsapp-confirm::before {
content: '';
  border-radius: 1000px;
  min-width: calc(300px + 12px);
  min-height: calc(60px + 12px);
  border: 6px solid #00FFCB;
  box-shadow: 0 0 60px rgba(0,255,203,.64);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all .3s ease-in-out 0s;
}

#whatsapp-confirm:hover, #whatsapp-confirm:focus {
  color: #313133;
  transform: translateY(-6px);
}

#whatsapp-confirm:hover::before, #whatsapp-confirm:focus::before {
  opacity: 1;
}

#whatsapp-confirm::after {
  content: '';
  width: 30px; height: 30px;
  border-radius: 100%;
  border: 6px solid #00FFCB;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring 1.5s infinite;
}

#whatsapp-confirm:hover::after, #whatsapp-confirm:focus::after {
  animation: none;
  display: none;
}
.button_plan{
    width:100%;
    margin-left:300px;
}

.contactar-button{
    display: inline-block;
    padding: 15px 25px;
    margin-left:10px;
    text-decoration: none;
    border: none;
    background-color: rgb(255,255,255);
    color: rgb(0,0,0);
    border-radius: 0px 0px 20px 20px;
    cursor: pointer
}

.modal-1{
    display:none;
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    top: 0;
    left: 0;
    width: 101%;
    height: 101%;
    z-index: 1000000;
    overflow-y: overlay;
}

.cabezera{
    margin: 5px;
    height: 10%;
    box-sizing: border-box;
}
.cerrar1{
    border: none;            /* Quita el borde */
    font: inherit;           /* Hereda la fuente del elemento padre */
    outline: none;   
    display: inline-block;
    text-decoration: none;
    font-size: 30px;
    color: #fff;
    padding: 15px;
    float: right;
    margin-right: 50px;
    margin-top: 20px;
    background-color: rgb(0,0,0);
}

.button1{
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: space-evenly;
}
.button1 div{
    width: 90%;
}
.button1 div img{
    width:100%;
    object-fit:contain;
    
}
.button1 div video{
    width:100%;
    object-fit:contain;
    
}
@media screen and (max-width: 1000px){
    .results_p{
        width: auto;
    }
    .content_2{
        display:block;
    }
    #map{
        margin-bottom:100px;
    }
    .imagen img{
        height:400px;
    }
    .button div{
        width:80%;
    }
}
@media screen and (max-width: 800px){
   .button_plan{
       margin-left:200px;
   } 
}
@media screen and (max-width: 700px){
    .results_p{
        padding-left: 50px;
    }
    .cerrar{
        margin-right: 5px;
        margin-top: 2px;
        font-size:20px;
    }
    .button_plan{
       margin-left:150px;
   } 
}
@media screen and (max-width: 500px){
    #whatsapp-box{
        margin: 0;
    }
    .results_p{
        padding-left: 0;
    }
    #whatsapp{
        display: inline-block;
    }
    .imagen img{
        height:300px;
    }
    .button_plan{
       margin-left:50px;
   }
}
@media screen and (max-width: 400px){
    .results_p{
        font-size: 15px;
    }
    .Cerrar-montgage {
        padding-right: 50px;
    }
    .imagen img{
        height:200px;
    }
    .button_plan{
       margin-left:10px;
   }
}
@media screen and (max-width: 350px){
    #whatsapp-box{
        padding: 15px;
    }
    .results_1 h2{
        font-size: 25px;
    } 
    .imagen img{
        height:150px;
    }
}

.salir_1{
    display: contents;
}
.salir_1:hover{
    color: red;
}



@media screen and (max-width: 999px){
    
}

@media screen and (max-width: 550px){
	header div img{
		width: 50px;
	}
	header div a{
		margin: 0;
		margin-right: 10px;
		margin-top: 10px;
		font-size: 20px;
	}
	
	.button_1{
        font-size: 40px;
    }
    .button_2{
    	font-size: 40px;
    }
    .mail{
    	width: 300px;
    }
    #map{
        scale:1;
    }
}


@media screen and (max-width: 400px){
    #map{
        scale:0.99;
        width:300px;
    }
}
@media screen and (max-width: 350px){
    .button_1{
        font-size: 25px;
    }
    .button_2{
    	font-size: 25px;
    }
    #map{
        width: 250px;
        height: 200px;
    }
}

.footer {
	display: flex;
    background-color: #0279b5;
    padding: 50px;
    font-family: 'Playfair Display', serif;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
}

.footer a{
	color: #fff;
	text-decoration: none;
	text-align: center;
}

.footer_1 {
	height: auto;
	color: #fff;
	font-size: 19px;
}

.footer_1 h4{
	padding: 10px;
    font-size: 30px;
}

.footer_1-1{
	padding: 10px;
} 

.footer_1-1 a{
    opacity: 0.9;
}

.footer_1-1 a:hover{
	opacity: 1;
}

.footer_1-1_p{
	opacity: 0.9;
}
.footer_1-2{
    padding: 10px;
}
.footer_1-2 a{
    opacity: 0.9;
}

.footer_1-2 a:hover{
	opacity: 1;
}

.footer_1-3{
    padding: 10px;
}
.footer_1-3 a{
    opacity: 0.9;
}

.footer_1-3 a:hover{
	opacity: 1;
}

.legal{
    display:flex;
    justify-content:center;
    margin-top:30px;
    margin-bottom:50px;
    flex-wrap: wrap;
}
.legal p{
    color:white;
    margin-left:10px;
}
.legal a{
    margin-left:10px;
}
.legal a:hover{
    color:rgba(0,0,0,0.5);
}