/* --- ESTILOS GENERALES Y HERO SECTION --- */
.hero-section-new {
    position: relative;
    width: 100%;
    color: #fff;
    margin-bottom: 120px; /* Espacio debajo de la sección hero */
    overflow: hidden; /* Para asegurar que nada se salga del contenedor */
}

.carrusel-home-new {
    width: 100%;
    position: relative;
    height: 95vh; /* Altura del carrusel */
    min-height: 750px;
    max-height: 900px;
}

/* Estilos para los botones del carrusel (si usas Slick Carousel u otro similar) */
.carrusel-home-new .slick-next, 
.carrusel-home-new .slick-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.3); /* Fondo semitransparente para visibilidad */
    border: none;
    outline: none;
    z-index: 1000;
    color: #fff; /* Color del icono */
    font-size: 20px; /* Tamaño del icono */
    border-radius: 4px; /* Bordes redondeados */
    transition: background-color 0.2s ease;
}
.carrusel-home-new .slick-next:hover, 
.carrusel-home-new .slick-prev:hover {
    background-color: rgba(255, 255, 255, 0.6); /* Color al pasar el ratón */
}
.carrusel-home-new .slick-next { right: 1rem; }
.carrusel-home-new .slick-prev { left: 1rem; }

.img-carrusel-new {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%; /* Ocupa toda la altura del contenedor */
    position: absolute; /* Para el apilamiento si hay múltiples imágenes */
    top: 0;
    left: 0;
}

/* --- ESTILOS DEL TEXTO PRINCIPAL (IZQUIERDA) --- */
.hero-text-new {
    position: absolute;
    top: 55%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 45%;
    animation: fadeInLeft 1s ease-out forwards; /* Animación de entrada */
}

.hero-text-paragraph-new {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px; /* Espacio debajo del párrafo */
}

.hero-text-title-new {
    font-family: "DM Sans", sans-serif;
    font-size: 62px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

/* --- ESTILOS DEL FORMULARIO DE BÚSQUEDA (DERECHA) --- */
.cont-search-new {
    position: absolute;
    top: 55%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    max-width: 380px;
    padding: 28px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    animation: fadeInRight 1s ease-out forwards; /* Animación de entrada */
}

.filter-group-new { margin-bottom: 16px; }
.filter-group-new:last-of-type { margin-bottom: 20px; }

.filter-group-new label {
    display: block;
    margin-bottom: 8px;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
}

.buttons-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Para 3 botones */
    border-radius: 4px;
    overflow: hidden; /* Asegura que los bordes redondeados se apliquen */
    border: 1px solid #E0E0E0; /* Borde general para los botones */
}
.buttons-new .btn-new {
    padding: 12px 5px;
    background-color: #FFFFFF;
    color: #333;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
    margin: 0; /* Elimina márgenes predeterminados */
    border: none; /* Elimina bordes individuales, se usa el borde general */
    border-left: 1px solid #E0E0E0; /* Borde izquierdo para los botones internos */
    z-index: 1; /* Para que el borde del 'selected' se vea encima */
}
.buttons-new .btn-new:first-child {
    border-left: none; /* El primer botón no necesita borde izquierdo */
}
.buttons-new .btn-new.selected {
    background-color: #54a0ff; /* Color principal de la marca (ajustar si tienes una variable $color) */
    color: #fff;
    font-weight: 700;
    border-color: #54a0ff; /* Mismo color que el fondo para unificar */
    z-index: 2; /* Para asegurar que el borde del botón seleccionado se vea */
}

.select-new {
    width: 100%;
    border-radius: 4px;
    background: #F7F7F7;
    border: 1px solid #E0E0E0;
    padding: 12px 16px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: #333;
    -webkit-appearance: none; /* Elimina el selector nativo de Chrome */
    -moz-appearance: none; /* Elimina el selector nativo de Firefox */
    appearance: none; /* Elimina el selector nativo estándar */
    /* Icono de flecha para el select */
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.41 0.589996L6 5.17L10.59 0.589996L12 2L6 8L0 2L1.41 0.589996Z' fill='%23555'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center; /* Posición del icono de flecha */
    background-size: 12px 8px; /* Tamaño del icono de flecha */
}

.btn-search-new {
    width: 100%;
    border-radius: 4px;
    background: #54a0ff; /* Color principal de la marca (ajustar si tienes una variable $color) */
    border: none;
    color: #fff;
    padding: 14px 16px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 16px; /* Espacio sobre el botón */
}
.btn-search-new:hover {
    opacity: 0.9; /* Efecto de opacidad al pasar el ratón */
}

/* --- ESTILOS RESPONSIVOS --- */
@media (max-width: 1200px) {
    .hero-text-new { left: 5%; }
    .cont-search-new { right: 5%; }
    .hero-text-new .hero-text-title-new { font-size: 54px; }
}

@media (max-width: 992px) {
    .hero-section-new {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        text-align: center;
        margin-bottom: 60px;
    }
    .carrusel-home-new { height: 100vh; min-height: 0; }
    .carrusel-home-new .img-carrusel-new { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
    .hero-section-new::before { /* Fondo semitransparente para el texto sobre el carrusel */
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: -1;
    }
    .hero-text-new, .cont-search-new {
        position: static; /* Quita posicionamiento absoluto */
        transform: none;
        max-width: 450px;
        width: 100%;
        margin: 0 auto 30px auto; /* Centra y añade margen inferior */
        right: auto;
        left: auto;
    }
    .hero-text-new { margin-top: 60px; } /* Espacio superior para el texto */
    .hero-text-new .hero-text-title-new { font-size: 42px; }
}

/* --- TÍTULOS DE SECCIÓN --- */
.section-title-new {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 40px; /* Espacio debajo del título */
    text-align: center;
}

/* --- SECCIÓN DE BÚSQUEDA (PARALLAX) --- */
.search-new {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
    url("../index_files/images/propiedad.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed; /* Efecto parallax */
    padding: 80px 0; /* Espaciado vertical */
}
.search-new .container .row {
    padding-top: 60px;
    padding-bottom: 60px;
}

.search-title-new {
    color: #FFF;
    font-family: "DM Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 33px;
    margin-bottom: 16px; /* Espacio debajo del título */
}
.search-description-new {
    color: #FFF;
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.btn-search-cta-new {
    color: #FFF;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
    background-color: #54a0ff; /* Color principal de la marca (ajustar si tienes una variable $color) */
    padding: 24px 36px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    display: inline-block; /* Para que el padding funcione correctamente */
}
.btn-search-cta-new:hover {
    opacity: 0.9;
}

/* --- ANIMACIONES (Opcional, para un toque moderno) --- */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, -50%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, -50%, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, -50%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, -50%, 0);
    }
}