

@font-face {
    font-family: "mifuente";
    src: url(../fonts/SourceSerifPro-Regular.ttf);
}

@font-face {
    font-family: "mifuente2";
    src: url(../fonts/lora.ttf);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    line-height: 2;
    border: solid 2x red;
    overflow-x: hidden;
    overflow-y: auto;
}


/* Globales*/

.titulo23 {
    font-family: "mifuente2";
    margin-bottom: -2rem;
}

.titulo232 {
    font-family: "mifuente2";
    font-size: 3rem;
}

.titulo234 {
    font-family: "mifuente2";
    font-size: 2rem;
}

.titulo2 {
    font-family: "mifuente2";
    text-align: center;
    font-size: 3.2rem;
}

.titulo3 {
    font-family: "mifuente2";
    text-align: center;
    margin-top: -45px;
    font-size: 3.2rem;
}

.subtitulo {
    font-family: "mifuente" !important;
}

img {
    max-width: 100%;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 .5rem;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.6rem;
}


/* Utilidades*/

.contenido-centrado {
    max-width: 800px;
}

.seccion {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.fw-300 {
    font-weight: 300;
}

.centrar-texto {
    text-align: center;
}

.d-block {
    display: block!important;
}


/* Botones */

.blogletra {
    text-decoration: none;
    color: #000000
}

.colorletra {
    color: #DB0D43;
}

.enviar-boton {
    display: flex;
    margin: auto;
    border: none;
    cursor: pointer;
    background-color: #DB0D43;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border-radius: 5px;
}
.enviar-boton:hover{
    scale: .95;
    color:#fff;
}

.boton {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.8rem;
    text-transform: uppercase;
    padding: 1rem 3rem;
    display: inline-block;
    border-radius: 5px;
    text-align: center;
}
.boton:hover{
    scale: .95;
    color:#fff;
}

.boton-amarillo {
    background-color: #DB0D43;
    text-align: center;
}

.boton-verde {
    background-color: #DB0D43;
}

.colorletras{
    color:#db0d43;
}


/* Primera parte */

.correo2 {
    text-decoration: none;
    color: #DB0D43;
    font-family: "mifuente2";
    font-size: 1.7rem;
}

.phone2 {
    text-decoration: none;
    color: #DB0D43;
    font-family: "mifuente2";
    font-size: 1.7rem;
}

.titulo {
    padding-bottom: 2.9rem !important;
}

.precio-anuncio {
    font-size: 2.2rem;
    color: #A98946;
}

.primeraparte {
    color: #DB0D43;
    font-family: "mifuente2";
    font-size: 1rem;
    display: flex;
    justify-content: right;
    margin: 0 15%;
}

@media screen and (max-width: 768px) {
    .primeraparte {
        color: #DB0D43;
        font-family: "mifuente2";
        font-size: 1.7rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.correo,
.phone {
    margin-top: 1.8rem;
    margin-right: 2.5rem;
    margin-left: 3.9rem;
    width: 27px;
    height: 27px;
}


/* Header*/

.eslogan{
    color:white;
    padding-top:19.5%;
    font-family: 'mifuente2';
    font-size:4.5rem;
    display:block;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@media screen and (max-width: 768px){
    .eslogan{
        padding-top:40%;
    }
}
.dropdown_menu li a {
    color:#ffffff;
    text-decoration: none;
}
.dropdown_menu li a:hover{
    scale: .92;
    color:#fff;
}
header{ 
    padding:0 2rem;
    height: 100vh;
    background-color: #000;
    background-image: url(../img/imagen56.jpg);
    background-size: cover;
    background-position: center;
}
.header2{
    padding:0 2rem;
    height: 32vh;
    background-color: #0000009d;
    background-image: url(../img/imagen56.jpg);
    background-size: cover;
    background-position: center;
}
.navbar{
    width: 100%;
    height: 60px;
    margin:0 auto;
    max-width: 1600px;
    display:flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    font-size:1.5rem;
    font-weight: bold;
    color:#fff;
}
.navbar .links{
    display:flex;
    gap:2rem;
    list-style: none;
}
.navbar2{
    padding:0 2rem;
    height: 30vh;
    background-color: #000;
    
    background-size: cover;
    background-position: center;
}
.links a{
    color:#fff;
    text-decoration: none;
    list-style: none;
    font-size: 2rem;
    
}


.navbar .toggle_btn {
    color: #fff;
    font-size:1.2rem;
    cursor: pointer;
    display:none;
}

.action_btn{
    background-color: orange;
    color: #fff;
    padding: .5rem 1rem;
    border:none;
    outline: none;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor:pointer;
    text-decoration: none;
}

.action_btn:hover{
    scale: .95;
    color:#fff;
}
/*DROPDOWN MENU*/
.dropdown_menu{
    position:absolute;
    right: 2rem;
    top:60px;
    height: 0;
    width: 300px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(15px);    
    border-radius: 10px;
    overflow:hidden;
    display:none;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275) ;
}

.dropdown_menu .action_btn{
    width: 100%;
    display:flex;
    justify-content: center;
}

.dropdown_menu li{
    padding: .7rem;
    display:flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu.open{
    height: 240px;
}
/*HERO*/
#hero{
    height: calc(100vh - 60px);
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color:#fff;
}

#hero h1{
    font-size: 3rem;
    margin-bottom: 10%;
}

/*RESPONSIVE DESIGN*/
@media (width<992px){
    .navbar .links,
    .navbar .action_btn {
        display:none;
    }
    .navbar .toggle_btn{
        display:flex;
    }
    .dropdown_menu{
        display:block;
    }
}

@media (width<576px){
    .dropdown_menu{
        left:2rem;
        width: unset;
    }
}

/* Iconos-nosotros*/

.icon-index {
    height: 50px;
}

.fw-300.centrar-texto h2 {
    margin-bottom: 5rem;
}

@media(min-width: 768px) {
    .iconos-nosotros {
        margin-top: 2rem;
        padding: 3rem 2rem 0 2rem;
        background-color: #F7F7F7;
        display: flex;
        justify-content: space-between;
        text-align: center;
    }
}


/*.iconos-nosotros {
    margin-top: 2rem;
    padding: 3rem 2rem 0 2rem;
    background-color: #F7F7F7;
    display: flex;
    justify-content: space-between;
    text-align: center;
}*/

.iconos-nos {
    margin: 0 2rem;
}

.icon-index {
    margin-top: 3rem;
}

.iconos {
    text-align: center;
}

@media (min-width: 768px) {
    .iconos {
        flex-basis: calc(33.3% - 10rem);
    }
}


/*Anuncios*/

@media (min-width:1044px) {
    .contenedor-anuncios {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
        
       
    }
    
}

.anuncio {
    
    flex-basis: calc(33.3% - 1rem);
    border: 1px solid #b5b5b5;
    background: #f5f5f5;
    margin-top: 2rem;
}




.contenido-anuncio {
    padding: 2rem;
    
}

.contenido-anuncio h3,
.contenido-anuncio p {
    margin-top: 0;
}

.precio {
    color: #A98946;
    font-weight: 700;
    margin-top: -10px !important;
}

.ver-todas {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end;
}

.iconos-caracteristicas {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    flex: 1;
    min-width: 40rem;
    height: 5rem;
    min-width: 5rem;
    flex-wrap: wrap;
    
}
.iconos-caracteristicas li{
    padding-left: 0 20px;
    
}


.galerys{
    margin-top: 7rem !important;;
}
@media (min-width:849px){
    .galerys {
        margin: 0 -2rem;
    }
    
}



.espaciado {
    text-align: center;
    margin-top: -2px !important;
}

.separador {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e1e1;
}

.metro {
    height: 3rem;
}

.garage,
.cama {
    height: 3rem;
}

.ducha {
    height: 3.5rem;
}

.iconos-caracteristicas li {
    /*flex: 1;*/
    display: flex;
}

.iconos-caracteristicas li img {
    margin-right: 0.9rem;
    flex: 1;
}
.precioPropiedad{
    display: flex;
    justify-content: space-between;
}
.contenido2{
    display: flex; /* Usa flexbox para alinear los elementos */
  align-items: center;
  gap: 10px;
  color:#000;
  font-family: 'Lato', sans-serif;
  font-weight: normal;
}
.unEspacio{
    padding-bottom:.7rem;
}
.anuncioFoto{
    margin: 0 auto;
    width: 100%;
    
   
  

}


/* Galería imagenes anuncio*/

.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    
    padding-right: 4rem;
    box-sizing: border-box;
    
}


.galeria li {
    margin: 5px;
}

.galeria img {
    width: 150px;
    height: 100px;
}

.modal {
    display: none;
}

.modal:target {
    display: block;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal h3 {
    color: #ffffff;
    font-size: 2.5rem;
    text-align: center;
    margin: 70px 0;
    font-size: "mifuente"
}

.imagen {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen a {
    color: #ffffff;
    font-size: 40px;
    text-decoration: none;
    margin: 0 10px;
}

.imagen a:nth-child(2) {
    margin: 0;
    height: 100%;
    flex-shrink: 2;
}

.imagen img {
    width: auto;
    height: 100%;
    max-width: 100%;
    border: 2px solid #e1e1e1;
    box-sizing: border-box;
}

.cerrar {
    display: block;
    background: #ffffff;
    width: 25px;
    height: 25px;
    margin: 10px auto;
    text-align: center;
    text-decoration: none;
    font-size: 25px;
    color: #000000;
    padding: 5px;
    border-radius: 50%;
    line-height: 25px;
}
.contenedor-imagenes img:first-child {
    align-self: center;
}

/* Contacto home */

.imagen-contacto {
    background-image: url(../img/encuentra.jpg);
    height: 40rem;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.contenido-contacto {
    flex: 0 0 95%;
    color: #ffffff;
}

.contenido-contacto p {
    font-size: 1.8rem;
}


/* Seeción Inferior */

@media (min-width: 768px) {
    .seccion-inferior {
        display: flex;
        justify-content: space-between
    }
    .seccion-inferior .blog {
        flex-basis: 60%;
    }
    .seccion-inferior .testimoniales {
        flex-basis: calc(40% - 2rem);
    }
    
}

.testimoniales {
    margin: 0 2rem;
}

.entrada-blog {
    margin-bottom: 3rem;
    margin: 0 2rem;
}

@media (min-width: 768px) {
    .entrada-blog {
        display: flex;
        justify-content: space-between;
    }
}

.entrada-blog:last-of-type {
    margin-bottom: 0;
}

.entrada-blog .imagen {
    flex-basis: 40%;
}

.entrada-blog .texto-entrada {
    flex-basis: calc(60% - 3rem);
}

.texto-entradaprimera {
    content: "";
    width: -65rem;
    height: 0.2rem;
    background-color: #DB0D43;
    margin-top: 1rem;
}

.margen {
    padding-top: 4rem;
}

.texto-entrada2 {
    content: "";
    width: -100rem;
    height: 0.2rem;
    background-color: #DB0D43;
}

.texto-entrada h4 {
    margin: 0;
    line-height: 1.4;
}

.texto-entrada a {
    color: #000000;
    text-decoration: none;
}

.texto-entrada h4::after {
    content: "";
    display: block;
    width: 19rem;
    height: 0.2rem;
    background-color: #DB0D43;
    margin-top: 1rem;
}

.texto-entrada span {
    color: #DB0D43;
}


/* Testimoniales */

.testimonios {
    background-color: #868B8F;
    font-size: 2.4rem;
    padding: 2rem;
    color: #ffffff;
    border-radius: 2rem;
}

.testimonios p {
    text-align: center;
}


/* Footer */

.footermi {
    text-decoration: none;
    color: #e1e1e1;
}

@media (min-width: 768px) {
    .sitio-footer {
        background-color: #333333;
        margin: 0 -3rem;
        
    }
}

.sitio-footer {
    background-color: #333333;
    padding: 0 2rem;
    
}

@media (min-width: 768px) {
    .contenedor-footer {
        margin: 0 3rem;
        
    }
}

.contenedor-footer {
    padding: 3rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .contenedor-footer {
        display: flex;
        justify-content: space-between;
    }
}

.copyright {
    margin: 0;
    color: #ffffff;
}

.navegacion a{
    color:white;
    padding-right: 1.5rem;
    text-decoration: none;
}
.primero {
    margin-left:2rem;
}
/* PÁGINAS INTERNAS */


/*Nosotros*/

@media (min-width: 768px) {
    .contenido-nosotros {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 3rem;
    }
}

.contenido-nosotros {
    margin: 0 2rem;
}

.texto-nosotros blockquote {
    margin: 0 2rem;
    font-weight: 900;
    font-size: 2rem;
    margin: 0;
    padding: 1rem 0;
}


/*Anuncio*/

.resumen-propiedad {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

@media (min-width:768px) {
    .iconos-caracteristicas{
        flex-direction: column;
        grid-gap:30px;
    }
}


/* Contacto */

.imgcontacto {
    width: 100%;
}

input[type="radio"] {
    width: auto;
    margin: 0;
}

.contacto p {
    font-size: 1.5rem;
    margin: 2rem 0 0 0;
}

legend {
    font-size: 2rem;
    color: #e1e1e1;
}

label {
    font-weight: 500;
    text-transform: uppercase;
    display: block;
}

.botoncito {
    margin-top: 3rem;
    border: none;
}

.inputmail {
    display: flex;
    flex-basis: calc(60% - 1rem);
}

input:not([type="submit"]),
textarea,
select {
    padding: 1rem;
    display: block;
    width: 97%;
    background-color: #e1e1e1;
    margin-bottom: 2rem;
    border: none;
    border-radius: 1.6rem;
}

select {
    width: 99%;
}

textarea {
    height: 12rem;
}

.forma-contacto {
    max-width: 30rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boton:hover {
    cursor: pointer;
}

input[type=radio] {
    margin: .2rem 0 0 .2rem;
}


/* Página entrada */

.imagenesentrada {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
    margin: auto;
    align-items: center;
}


/* Responsive Style */

@media (max-width: 680px) {
    .ps-cookies-banner p {
        width: 100%;
    }
}

/* Menú de barras móvil hamburguesa*/
.mobile-menu {
    display: none;
    width: 4rem;
    
}

@media(max-width:768px) {
    .mobile-menu {
        width: 4rem;
        display:flex;
       padding-left:50%;
       
    }
}


/* Buscador de casas */

.buscador {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
}

.buscador legend {
    font-size: 1.9rem;
    font-weight: thin;
    margin-bottom: 1rem;
    font-family: lato,sans-serif;

}

.campos-buscador {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.campos-buscador label {
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
}

.campos-buscador input, .campos-buscador select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 150px;
}

/*Botón de scroll*/

.figura {
    border-style: solid;
    border-color: transparent transparent brown transparent;
    border-width: 0 11px 15px 11px;
    height: 0;
    position: relative;
    margin: 28px 0 33px 0;
}

.to-top {
    background: rgb(255, 255, 255);
    filter: opacity(0.6);
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1f1f1f;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
}

.to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

/* Buscador de casas */
.buscador {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buscador legend {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campos-buscador {
    display: grid;
    gap: 1.5rem;
    justify-content: space-between;
}

/* Estilo de los labels y sus hijos (inputs/selects) */
.campos-buscador label {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campos-buscador input,
.campos-buscador select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    max-width: 180px;
    background-color: #fff;
    font-size: 1.4rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.campos-buscador input:focus,
.campos-buscador select:focus {
    border-color: #DB0D43;
    outline: none;
}

/* Contenedor del botón para alinearlo con los labels */
.campos-buscador .boton-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinea el botón al final del contenedor */
}

/* Estilo del botón Buscar */
.boton.boton-amarillo {
    background-color: #DB0D43;
    padding: 0.8rem 2rem; /* Ajustado para coincidir con inputs/selects */
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 6px;
    color: #fff; /* Texto blanco */
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 180px; /* Igual que los inputs/selects */
    text-align: center;
    margin-top:2.5rem;
}

.boton.boton-amarillo:hover {
    background-color: #b00b36;
    transform: scale(0.98);
    color: #fff;
}

/* Responsive Design */
@media (min-width: 768px) {
    .campos-buscador {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        align-items: start;
    }
    .campos-buscador label,
    .campos-buscador .boton-container {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .campos-buscador {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 2rem;
    }
    .campos-buscador label,
    .campos-buscador .boton-container {
        width: 100%;
        max-width: none; /* Ocupa todo el ancho disponible */
    }
    .campos-buscador input,
    .campos-buscador select,
    .campos-buscador .boton.boton-amarillo {
        max-width: 100%; /* Ajusta al ancho completo */
    }
    .boton.boton-amarillo {
        margin: 0; /* Elimina márgenes heredados */
    }
}


/* Iconos de características dentro de las casas */
.iconos-caracteristicas {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, auto); /* Columnas ajustadas al contenido */
    gap: 1.5rem; /* Espacio entre iconos */
    justify-content: center; /* Centra el grid en el contenedor */
    margin: 0 auto;
    max-width: 100%; /* Evita desbordamiento */
}

.iconos-caracteristicas li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 150px; /* Limita el ancho máximo de cada elemento */
    min-width: 0; /* Evita que se estire más de lo necesario */
}

.iconos-caracteristicas li img {
    margin-right: 0.9rem;
    height: 3rem; /* Altura fija */
    width: auto; /* Ancho proporcional */
    max-width: 38px; /* Limita el ancho máximo del icono */
}

.iconos-caracteristicas li p {
    margin: 0;
    font-size: 1.4rem; /* Tamaño legible */
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

/* Ajuste para pantallas grandes (> 1200px) */
@media (min-width: 1201px) {
    .iconos-caracteristicas {
        grid-template-columns: repeat(4, auto); /* 4 columnas */
        grid-template-rows: repeat(2, auto); /* 2 filas explícitas */
        max-width: 800px; /* Limita el ancho total en pantallas grandes */
    }
}

/* Ajuste para pantallas entre 1200px y 768px */
@media (min-width: 768px) and (max-width: 1200px) {
    .iconos-caracteristicas {
        grid-template-columns: repeat(4, auto); /* 4 columnas */
        grid-template-rows: repeat(2, auto); /* 2 filas */
        max-width: 700px; /* Ancho máximo ajustado */
        gap: 3rem;
    }
}

/* Ajuste para pantallas pequeñas (< 767px) */
@media (max-width: 767px) {
    .iconos-caracteristicas {
        grid-template-columns: repeat(4, auto); /* 4 columnas */
        grid-template-rows: repeat(2, auto); /* 2 filas */
        gap: 3rem; /* Reduce el espacio */
    }
    .iconos-caracteristicas li {
        max-width: 120px; /* Reduce el ancho máximo */
    }
    .iconos-caracteristicas li img {
        max-width: 38px; /* Iconos más pequeños */
    }
    .iconos-caracteristicas li p {
        font-size: 1.3rem; /* Texto más pequeño */
    }
}



/* Estilos específicos para iconos */
.metro {
    height: 3rem;
}

.garage,
.cama {
    height: 3rem;
}

.ducha {
    height: 3.5rem;
}

/* Separador entre las dos filas */
.separador {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e1e1;
}
/* Buscador de casas */
.buscador {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buscador legend {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campos-buscador {
    display: grid;
    gap: 1.5rem;
    justify-content: space-between;
}

/* Estilo de los labels y sus hijos (inputs/selects) */
.campos-buscador label {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow-wrap: break-word; /* Evita desbordamiento del texto del label */
}

.campos-buscador input,
.campos-buscador select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%; /* Ocupa el ancho disponible */
    max-width: 180px; /* Ancho máximo en pantallas grandes */
    background-color: #fff;
    font-size: 1.4rem;
    color: #333;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Incluye padding y border en el ancho */
}

.campos-buscador input:focus,
.campos-buscador select:focus {
    border-color: #DB0D43;
    outline: none;
}

/* Contenedor del botón para alinearlo con los labels */
.campos-buscador .boton-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinea el botón al final del contenedor */
}

/* Estilo del botón Buscar */
.boton.boton-amarillo {
    background-color: #DB0D43;
    padding: 0.8rem 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 6px;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 180px;
    text-align: center;
}

.boton.boton-amarillo:hover {
    background-color: #b00b36;
    transform: scale(0.98);
    color: #fff;
}

/* Ajuste específico para Año de construcción, Baños y Habitaciones */
.campos-buscador label input[type="number"] {
    max-width: 120px; /* Reduce el ancho máximo para estos campos específicos */
    width: 100%; /* Se adapta al contenedor */
}

/* Responsive Design */
@media (min-width: 768px) {
    .campos-buscador {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        align-items: start;
    }
    .campos-buscador label,
    .campos-buscador .boton-container {
        margin-bottom: 0;
    }
    .campos-buscador label input[type="number"] {
        max-width: 120px; /* Mantiene el tamaño en pantallas grandes */
    }
}

@media (max-width: 767px) {
    .campos-buscador {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 2rem;
    }
    .campos-buscador label,
    .campos-buscador .boton-container {
        width: 100%;
        max-width: none; /* Ocupa todo el ancho disponible */
    }
    .campos-buscador input,
    .campos-buscador select {
        max-width: 100%; /* Ajusta al ancho completo */
    }
    .campos-buscador label input[type="number"] {
        max-width: 100%; /* Se expande al ancho completo en pantallas pequeñas */
    }
    .boton.boton-amarillo {
        margin: 0;
        max-width: 100%; /* Botón ocupa el ancho completo */
    }
}
@media (max-width: 768px) {
    .contenido-anuncio .boton.boton-amarillo {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* Evita desbordamiento */
        padding: 1rem; /* Reduce padding lateral */
        margin: 1rem 0 0 0; /* Elimina márgenes laterales */
        box-sizing: border-box; /* Incluye padding en el ancho */
    }
}

/* Estilo general de las imágenes dentro de .anuncio */
.anuncio img {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: auto; /* Mantiene la proporción */
    max-width: 100%; /* Evita desbordamiento */
    display: block; /* Elimina espacios inferiores */
}

/* Ajuste específico para el rango de 1044px a 805px */
@media (min-width: 805px) and (max-width: 1044px) {
    .anuncio img {
        width: 100%; /* Asegura que cubra todo el ancho */
        height: auto; /* Proporción automática */
        object-fit: cover; /* Cubre el contenedor sin dejar trozos fuera */
    }
}

/* Ajuste general para pantallas menores a 1044px */
@media (max-width: 1044px) {
    .anuncio img {
        width: 100%;
        height: auto;
    }
}
/* Botón de scroll hacia arriba */
.to-top {
    background-color: rgba(219, 13, 67, 0.6); /* #DB0D43 con 60% de opacidad */
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0; /* Oculto por defecto */
    pointer-events: none; /* Desactivado por defecto */
    transition: all 0.4s ease; /* Transición suave */
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.to-top.active {
    bottom: 32px;
    opacity: 1; /* Visible cuando está activo */
    pointer-events: auto; /* Habilitado cuando está activo */
}

/* Flecha dentro del botón */
.to-top .figura {
    border-style: solid;
    border-color: transparent transparent #ffffff transparent; /* Flecha blanca */
    border-width: 0 11px 15px 11px;
    height: 0;
    position: relative;
    margin: 0; /* Eliminamos márgenes para centrarla mejor */
}

/* Hover para hacerlo un poco más visible */
.to-top:hover {
    background-color: rgba(219, 13, 67, 0.8); /* Aumenta ligeramente la opacidad al pasar el ratón */
}

/* Nueva clase específica para el botón de "Contáctanos" */
.contact-button {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

/* Asegurar que el contenedor no permita desbordamientos */
.contact-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* Ajuste responsivo para evitar desbordamientos */
@media screen and (max-width: 768px) {
    .contact-button {
        font-size: 14px;
        padding: 10px 20px;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .contact-button {
        font-size: 12px;
        padding: 8px 16px;
        max-width: 100%;
    }
}

