@font-face {
    font-family: 'Montserrat';
    src: url('../Font/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Sole Serif Display';
    src: url('../Font/sole-serif-display-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff5e0;
}

/* MAIN */

.main-content {
    min-height: 100vh;
    background-color: #fff5e0;
}

/* HERO */

.hero {
    width: 100%;
    min-height: calc(100vh - 90px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 4rem 2rem;
    background-color: #fff5e0;
}

.hero-content {
    width: 100%;
    max-width: 1500px;
    min-height: 640px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 4rem 2rem;

    background-image: linear-gradient(
        rgba(0, 0, 0, 0.48),
        rgba(0, 0, 0, 0.48)
    ), url("../Imagenes/depas.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 12px 35px rgba(18, 37, 72, 0.25);
}

.hero-center {
    width: 100%;
    max-width: 850px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.7rem;

    text-align: center;
}

.hero-brand {
    margin: 0;

    color: #fff5e0;
    font-family: 'Sole Serif Display', serif;
    font-size: 2.6rem;
}

#hero-title {
    max-width: 800px;
    margin: 0;

    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    line-height: 1.15;
}

/* BUSCADOR */

.search-form {
    width: 100%;
    max-width: 820px;
    height: 72px;

    display: flex;
    align-items: center;

    padding: 0.45rem;

    border-radius: 999px;
    background-color: rgba(255, 245, 224, 0.85);
    backdrop-filter: blur(6px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

/* Contenedor del select */
.select-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
}

/* Select */
.select-wrapper select {
    width: 100%;
    height: 100%;

    padding: 0 3rem 0 1.5rem;

    border: none;
    outline: none;
    box-shadow: none;

    border-radius: 999px 0 0 999px;

    background-color: #ffffff;
    color: #122548;

    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-wrapper select:focus,
.select-wrapper select:focus-visible,
.select-wrapper select:active {
    border: none;
    outline: none;
    box-shadow: none;
}

/* Flecha personalizada */
.select-wrapper i {
    position: absolute;
    right: 1.4rem;
    top: 50%;

    transform: translateY(-50%);

    color: #122548;
    font-size: 0.85rem;

    pointer-events: none;
}

/* Botón */
.form-boton {
    height: 100%;
    min-width: 170px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    border: none;
    outline: none;

    border-radius: 0 999px 999px 0;

    background-color: #122548;
    color: #fff5e0;

    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.25s ease, color 0.25s ease;
}

.form-boton:hover {
    background-color: #f3cc5a;
    color: #122548;
}

.form-boton:focus,
.form-boton:focus-visible,
.form-boton:active {
    outline: none;
    box-shadow: none;
}

/* Responsive buscador */
@media (max-width: 900px) {
    .search-form {
        height: auto;
        max-width: 90%;

        flex-direction: column;
        border-radius: 24px;

        padding: 1rem;
        gap: 0.8rem;
    }

    .select-wrapper {
        width: 100%;
        height: 48px;
    }

    .form-boton {
        width: 100%;
        height: 48px;
        min-width: 0;
    }
}

/* CATEGORÍAS DE PROPIEDADES */

.property-categories {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;

    padding: 4rem 2rem;
    background-color: #fff5e0;
}

.section1-heading {
    width: 100%;
    max-width: 460px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 2rem;
}

.section1-heading h2 {
    width: 70%;
    margin: 0;

    color: #122548;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    line-height: 1.15;
    text-align: left;
}

.line {
    width: 70%;
    height: 4px;

    margin: 1rem 0 1.5rem;

    background-color: #000000;
    border-radius: 30px;
}

.section1-heading p {
    width: 100%;
    margin: 0;

    color: #122548;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: left;
}

.view-all-button {
    align-self: center;

    display: inline-block;
    min-width: 170px;

    margin-top: 1.5rem;
    padding: 0.8rem 2rem;

    color: #fff5e0;
    background-color: #122548;

    border-radius: 30px;

    text-align: center;
    text-decoration: none;

    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;

    transition: background-color 0.25s ease, transform 0.25s ease;
}

.view-all-button:hover {
    background-color: #1d3769;
    transform: scale(1.04);
}

/* CARDS DE CATEGORÍAS */

.categories-grid {
    width: 100%;
    max-width: 850px;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card {
    width: 100%;
    min-height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 1.3rem;

    border-radius: 20px;
    overflow: hidden;

    color: #fff5e0;
    text-decoration: none;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 10px 30px rgba(18, 37, 72, 0.15);

    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-casa {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ), url("../Imagenes/casa1.webp");
}

.card-terreno {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ), url("../Imagenes/terreno.webp");
}

.card-renta {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ), url("../Imagenes/departamento1.webp");
}

.category-card h3,
.category-card p {
    margin: 0;
    padding: 0.5rem;

    color: #fff5e0;
    font-family: 'Montserrat', sans-serif;

    transition: color 0.3s ease;
}

.category-card h3 {
    font-size: 1.5rem;
}

.category-card p {
    font-size: 1rem;
}

.movcard:hover {
    transform: translateX(-20px);
    box-shadow: 0 14px 35px rgba(18, 37, 72, 0.22);
}

.movcard:hover h3,
.movcard:hover p {
    color: #f3cc5a;
}

/* CIUDADES */
.cities-section {
    width: 100%;
    padding: 4rem 0;
    background-color: #fff5e0;
    overflow: hidden;
}

.cities-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cities-header h2 {
    margin: 0;
    color: #122548;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
}

.cities-header p {
    margin-top: 1rem;
    color: #122548;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

/* Ventana visible */
.cities-carousel {
    position: relative;
    width: 100%;
}

/* Sombra izquierda */
.cities-carousel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 120px;
    height: 100%;

    background: linear-gradient(
        to right,
        #fff5e0 0%,
        rgba(255, 245, 224, 0) 100%
    );

    z-index: 2;
    pointer-events: none;
}

/* Sombra derecha */
.cities-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 120px;
    height: 100%;

    background: linear-gradient(
        to left,
        #fff5e0 0%,
        rgba(255, 245, 224, 0) 100%
    );

    z-index: 2;
    pointer-events: none;
}

/* Tira que se mueve */
.cities-track {
    display: flex;
    gap: 2rem;
    width: max-content;

    animation: moveCities 22s linear infinite;
}

/* Cards */
.city-card {
    width: 360px;
    height: 180px;

    flex-shrink: 0;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 1.5rem;

    border-radius: 15px;
    overflow: hidden;
    cursor: default;


    text-decoration: none;
    color: #fff5e0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 10px 30px rgba(18, 37, 72, 0.15);

    transition: transform 0.3s ease;
}

.city-card h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #fff5e0;
}

.city-card:hover h3 {
    color: #f3cc5a;
}

.city-card:hover {
    transform: scale(1.04);
}

/* Imágenes de fondo */
.city-obregon {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    ), url("../Imagenes/CiudadObregon.webp");
}

.city-san-carlos {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    ), url("../Imagenes/Sancarlos.webp");
}

.city-guaymas {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    ), url("../Imagenes/Guaymas.webp");
}

.city-navojoa {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    ), url("../Imagenes/Navojoa.webp");
}

/* Animación */
@keyframes moveCities {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pausa al pasar el mouse */

/* Responsive */
@media (max-width: 768px) {
    .city-card {
        width: 280px;
        height: 160px;
    }

    .cities-header h2 {
        font-size: 1.8rem;
    }
}

/* QUIÉNES SOMOS */

.about-section {
    width: 100%;
    min-height: 70vh;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;

    padding: 3rem 2rem;
    background-color: #fff5e0;
}

.about-image {
    width: 100%;
    max-width: 660px;
}

.about-img {
    width: 100%;
    max-width: 70vw;
    height: auto;
    max-height: 500px;

    display: block;

    border-radius: 15px;
    object-fit: cover;
}

.about-content {
    width: 100%;
    max-width: 720px;

    padding: 3rem;

    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(18, 37, 72, 0.15);
}

.about-content h2 {
    margin: 0;

    color: #122548;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
}

.about-content p {
    margin-top: 1rem;

    color: #122548;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    line-height: 1.35;
}

/* LO QUE NOS DEFINE */

.company-values {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 4rem 2rem;
    background-color: #fff5e0;
}

.company-card {
    width: 100%;
    max-width: 1200px;

    padding: 3rem 2rem 5rem;

    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(18, 37, 72, 0.15);
}

#values-title {
    width: 100%;
    margin: 0 0 3.5rem;

    text-align: center;
    color: #122548;

    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
}

.values-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;

    align-items: start;
}

.value-card {
    display: grid;
    grid-template-rows: 70px 90px auto;
    justify-items: center;

    text-align: center;
}

.value-icon {
    width: 62px;
    height: 62px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #122548;
    color: #fff5e0;

    border-radius: 12px;
    font-size: 1.7rem;
}

.value-card h3 {
    margin: 0;
    align-self: center;

    color: #122548;

    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
}

.value-card p {
    width: 100%;
    max-width: 280px;
    margin: 0;

    color: #122548;

    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero-content {
        min-height: 520px;
        padding: 3rem 1.5rem;
    }

    #hero-title {
        font-size: 1.8rem;
    }

    .search-form {
        height: auto;
        max-width: 90%;
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
        gap: 0.8rem;
    }

    .search-form select,
    .form-boton {
        width: 100%;
        height: 48px;
        border-radius: 999px;
    }

    .form-boton {
        min-width: 0;
    }

    .property-categories {
        flex-direction: column;
        gap: 2rem;

        padding: 3rem 1.5rem;
    }

    .section1-heading {
        max-width: 100%;
        padding: 1rem;

        display: flex;
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .section1-heading h2 {
        width: 100%;
        text-align: center;
    }

    .line {
        width: 70%;
        margin: 1rem auto;
    }

    .section1-heading p {
        max-width: 500px;
        text-align: center;
    }

    .view-all-button {
        align-self: center;
    }

    .categories-grid {
        max-width: 100%;
    }

    .movcard:hover {
        transform: none;
    }

    .about-section {
        flex-direction: column;
        gap: 2rem;
    }

    .about-content {
        max-width: 100%;
    }

    .about-image {
        justify-content: center;
    }

    .about-img {
        max-width: 100%;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .value-card {
        grid-template-rows: auto;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        font-size: 1.1rem;
    }

    #hero-title {
        font-size: 1.5rem;
    }

    .section1-heading h2 {
        width: 100%;
        font-size: 2rem;
    }

    .line {
        width: 100%;
    }

    .section1-heading p {
        font-size: 1rem;
    }

    .view-all-button {
        align-self: center;
    }

    .category-card {
        min-height: 190px;
    }

    .city-card {
        width: 280px;
        height: 160px;
    }

    .cities-header h2 {
        font-size: 1.8rem;
    }

    .company-card {
        padding: 2.5rem 1.5rem;
    }

    #values-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .value-card h3 {
        font-size: 1.7rem;
    }
}