*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
 }
/*=======HEADER=====*/
header{
    background-color: #d2dfdf;                     
    display: flex;                                   
    align-items: center;                            
    height: 190px;                                   
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);     
    backdrop-filter: blur(10px);                    
}
div {
    display: flex;                                    
    justify-content: center;                          
    align-items: center;                            
    color: #25343F;                                
    gap: 20px;                                        
    height: 100%;                                    
    padding: 1rem 1rem;                               
}

nav{
    display: flex;                                    
    gap: 200px;                                        
    padding: 1rem 1rem;                                
}

nav a{
 text-decoration: none;                                
 color:#25343F;                                       
 font-size: 30px;                                       
 font-weight: 600;                                      
 border-bottom: 2px solid transparent;                  
 transition: .4s ease;                                
}
/*=========BOTONES======*/
nav a:hover {
    border-bottom: 2px solid #273c4b;                   
}
.templo{
    width: 90px;                                     
    border-radius: 5px;                                     
   
}
#hero{      
    display: flex;                                      
    flex-direction: column;                             
    justify-content:space-between;                           
    align-items: center;                                
    text-align: center;                                 
    padding: 0 1rem;                                     
}
#hero h2{
    font-size: 3rem;                                     
    margin-bottom: 1rem;
}

.nav-list{
    list-style-type: none;
 display: flex;                                          
 gap: 1rem;                                              
}

.nav-list li a{
    text-decoration: none;                                 
    color: #25343F;                                      
}
.navbar {
            height: 80px;                                 
            display: flex;                                 
            align-items: center;                          
            background: #EAEFEF;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);     
            position: sticky;                             
            top: 0;
            z-index: 1000;
}
.nav-links {
            display: flex;                                 
            gap: 150px;                                     
            list-style: none;
 }
.nav-links a {
            text-decoration: none;                           
            color: var(--darck);                             
            font-weight: 700;                                 
            transition: 0.3s;                                
            }

#propiedades {
    padding: 4rem 2rem;                                        
    max-width: 1200px;
    margin: 0 auto;

}

#propiedades h2{
    text-align: center;
    margin-bottom: 2rem;
}
.propiedades-grid{
 display: grid;                                                 
 grid-template-columns: repeat(auto-fit, minmax(1fr 1fr 1fr));  
 gap: 2rem;                                                   
}
.propiedades-card{
    background: white;                                          
    border-radius: 10px;                                           
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);                  
}

.propiedades-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.propiedades-card h3{
    padding: 1rem;                                                   
    color: #333;                                                  
}
.precio{
 color: rgb(101, 152, 235);  
 font-weight: bold;     
 padding: 0 1rem;                                                  
}

.descripcion {
    padding: .5rem 1rem;                                        
    color: #2e4759;                                             
}

.propiedades-card button{
    margin: 1rem;
    padding: .5rem 1rem;                                           
    background-color:#333;                                    
    color: white;                                                   
    border: none;
    border-radius: 5px;                                               
    cursor: pointer;
}

.propiedades-card button:hover{
    background-color: #000;                    
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 150px; /* Tamaño inicial */
  padding: 10px 40px 10px 15px;
  border-radius: 25px;
  border: 2px solid #ddd;
  transition: width 0.4s ease-in-out, border-color 0.3s; /* La magia ocurre aquí */
  outline: none;
}

/* Cuando el usuario hace clic (focus), la barra se alarga */
.search-box input:focus {
  width: 300px; 
  border-color: #3498db;
}

.search-box button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
}

/* solución un poco compleja*/

/* 11 */
@media (prefers-color-scheme: dark) {
    body {
        background: #25343F;
        color: #ffffff;
    }
}

/* 12 */
@media (hover: hover) {
    button:hover {
        opacity: 0.8;
    }
}