/* =========================================
   HOME.CSS - VERSIÓN FINAL (IMÁGENES RECTANGULARES)
   ========================================= */

/* --- 1. HERO --- */
.hero-section {
    height: 700px;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(71, 23, 12, 0.3); mix-blend-mode: multiply;
    z-index: 1; 
}

.hero-logo {
    position: relative;
    z-index: 2; 
    width: 672px; 
    max-width: 90%; 
    height: auto; 
    display: block;
}

/* --- 2. INTRO BAR --- */
.intro-bar {
    background-color: var(--color-crema);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.intro-bar p {
    font-family: var(--font-body); 
    font-style: normal;
    font-weight: 400;
    font-size: 26px; 
    line-height: 34px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: -0.04em;
    color: #000;
    margin: 0;
    max-width: 1000px;
}

@media (max-width: 768px) {
    .intro-bar p {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -0.02em;
    }
}

/* --- 3. SEARCH SECTION --- */
.search-main-section {
    background-color: #EBE6DE;
    padding: 40px 0 60px; 
}

.search-container-centered {
    max-width: 950px; 
    margin: 0 auto;
    padding: 0 20px;
}

.search-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px; 
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center; 
    margin-bottom: 40px; 
    color: #000;
    text-transform: uppercase;
}

.search-flex-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px; 
    align-items: start;
}

.search-col-actions {
    display: flex;
    flex-direction: column;
}

.field-group { 
    margin-bottom: 15px; 
}

.no-margin-bottom {
    margin-bottom: 8px !important; 
}

/* ETIQUETAS PRINCIPALES (22px) */
.field-group label {
    display: block; 
    font-family: 'Inter', sans-serif;
    font-weight: 600; 
    font-style: normal;
    font-size: 22px; 
    line-height: 100%;
    letter-spacing: 0%;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 10px; 
}

/* OPCIONES CHECKBOX (20px) */
.checkbox-list label {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: 'Inter', sans-serif;
    font-weight: 400; 
    font-style: normal;
    font-size: 20px; 
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 8px; 
    cursor: pointer; 
    color: #333; 
}

/* STATUS LIST (VERTICAL) */
.status-list {
    display: flex;          
    flex-direction: column; 
    gap: 8px;               
    margin-top: 0;          
}

.status-list label {
    margin-bottom: 0;       
    white-space: nowrap;    
}

.checkbox-list input[type="checkbox"] { 
    accent-color: #000; 
    width: 18px; 
    height: 18px; 
}

/* INPUTS GENERALES */
.custom-input, .input-with-symbol input {
    width: 100%; 
    height: 38px; 
    border: 1px solid #000000; 
    border-radius: 5px; 
    background: #fff; 
    padding: 0 12px; 
    font-size: 14px; 
    font-family: var(--font-body); 
    color: #000;
}

/* AJUSTES ANCHOS */
#s-area.custom-input-select {
    width: 140px; 
    height: 38px;
    border: 1px solid #000000;
    border-radius: 5px;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    font-family: var(--font-body);
    color: #000;
    display: block;
}

#s-keyword.custom-input {
    width: 160px; 
    display: block;
}

.input-small { height: 30px !important; font-size: 12px; }


/* --- PRICE SPLIT --- */
.price-split { 
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: nowrap !important; 
    align-items: center;
    gap: 30px; 
    width: 100%;
}

.input-with-symbol { 
    position: relative; 
    flex: 1; 
    min-width: 0;
    max-width: 120px; 
}

.input-with-symbol input {
    width: 100%; 
}

.input-with-symbol span {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: #666;
}


/* --- SELECTOR BUTTONS (CUADRADOS 35px) --- */
.selector-buttons { 
    display: flex; 
    gap: 10px; 
    border: none; 
}

.selector-buttons button {
    flex: none; 
    width: 35px;
    height: 35px;
    background: #fff; 
    border: 1px solid #000000; 
    border-radius: 5px; 
    cursor: pointer; 
    font-family: var(--font-body);
    font-size: 14px; 
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.selector-buttons button:last-child { 
    border-right: 1px solid #000000; 
}

.selector-buttons button.active, .selector-buttons button:hover {
    background-color: var(--color-crema); 
    font-weight: 600;
}

/* ACCIONES */
.search-actions-row {
    display: flex; flex-direction: row; justify-content: space-between; gap: 20px; 
    margin-top: 30px; 
}
.btn-search-rounded, .btn-clear-rounded {
    flex: 1; border: none; padding: 12px 0; font-weight: 700; font-size: 12px;
    text-transform: uppercase; cursor: pointer; letter-spacing: 1px;
    border-radius: 50px; transition: 0.3s; text-align: center;
    font-family: var(--font-body);
}

.btn-search-rounded { 
    background: var(--color-crema); 
    color: #fff; 
}

.btn-search-rounded:hover { 
    background: #B0A690; 
}

.btn-clear-rounded { background: #fff; border: 1px solid #999; color: #000; }
.btn-clear-rounded:hover { background: #f0f0f0; }


/* --- 4. FEATURED PROPERTIES --- */
.section-featured { padding: 80px 0; background: #fff; }
.section-featured .container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.featured-header { text-align: center; margin-bottom: 50px; }

.title-gold {
    font-family: 'Inter', sans-serif;
    font-weight: 400; font-size: 42px; color: var(--color-dorado);
    margin: 0;
    text-transform: none; 
}

/* ESTILOS ESPECÍFICOS DEL CARRUSEL */
.carousel-container {
    position: relative;
    overflow: hidden; 
    width: 100%;
    padding-bottom: 50px; 
}

.carousel-track {
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    width: 100%;
}

.carousel-track .property-card {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    padding: 0 20px; 
}

.carousel-btn {
    position: absolute;
    bottom: 0; 
    left: 50%; 
    background-color: transparent;
    color: #1A1A1A;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 10;
}

.carousel-btn:hover { color: #C5A059; }

.carousel-btn.prev { transform: translateX(-150%); }
.carousel-btn.next { transform: translateX(50%); }


/* --- ESTILOS TARJETA BASE --- */
.property-card {
    background: #fff; border: none; border-radius: 0; overflow: hidden;
    position: relative; cursor: pointer;
}

/* CAMBIO: Altura reducida a 260px para formato rectangular */
.card-img-box {
    width: 100%; 
    height: 260px; 
    overflow: hidden; 
    position: relative; 
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.card-img-box img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease;
}

.property-card:hover .card-img-box img { transform: scale(1.05); }

.card-tag {
    position: absolute; top: 15px; left: 15px; background: #fff; 
    padding: 6px 14px; font-size: 10px; font-weight: 700; 
    text-transform: uppercase; letter-spacing: 1px; color: #000;
}

.card-info-box h3 {
    font-family: var(--font-heading); font-size: 26px; margin: 0 0 8px; 
    font-weight: 400; color: #000;
}

.card-details .price {
    font-family: var(--font-body); font-weight: 400; font-size: 16px; color: #444;
}

/* --- 5. ABOUT TEAM --- */
.about-team-section {
    background-color: var(--color-crema); 
    padding: 100px 0; text-align: center;
}

.about-quote {
    font-family: var(--font-body);
    font-size: 26px;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 50px;
    font-weight: 600;
    color: #333;
}

.btn-contact-white {
    background-color: #fff;
    padding: 22px 65px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    color: #000;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-contact-white:hover { background-color: #f0f0f0; }


/* --- 6. NEWSLETTER --- */
.newsletter-section {
    padding: 100px 0;
    text-align: center;
    background-color: #fff;
}

.title-newsletter {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--color-dorado);
    margin-bottom: 30px;
    text-transform: none; 
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto;
}

/* Estilo "línea" para escribir */
.newsletter-input {
    width: 100%;
    background-color: transparent; 
    border: none;
    border-bottom: 1px solid #000; 
    border-radius: 0; 
    padding: 10px 0; 
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center; 
    outline: none; 
}

.btn-subscribe-rounded {
    background-color: var(--color-crema); 
    color: #000; 
    border: none;
    padding: 22px 65px; 
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: 0.3s;
    width: auto; 
}

.btn-subscribe-rounded:hover {
    background-color: #B0A690; 
}


/* --- 7. TESTIMONIALS --- */
.testimonials-section {
    background-color: #f4f4f4; padding: 80px 20px; text-align: center;
}

.section-title-testimonials {
    font-family: var(--font-display); 
    font-size: 36px; 
    margin-bottom: 40px; 
    color: var(--color-dorado);
}

.testimonial-content { max-width: 800px; margin: 0 auto; }

.testimonial-img {
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    overflow: hidden; 
    margin: 0 auto 20px; 
    background: #ccc;
}

.testimonial-img img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-text-body {
    font-family: var(--font-display); 
    font-size: 20px; 
    font-style: italic; 
    margin-bottom: 20px; 
    color: #444; 
    line-height: 1.4;
}

.testimonial-author {
    font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #000;
}


/* --- 8. CTA JOURNEY --- */
.cta-journey-section { padding: 100px 0; background-color: #fff; }

.cta-flex-container {
    display: flex; align-items: center; justify-content: center; gap: 60px; 
    max-width: 850px; margin: 0 auto;
}

.cta-text-col { flex: 1; text-align: left; }

.cta-title {
    font-family: var(--font-heading, 'Gilda Display', serif);
    font-size: 55px; line-height: 1.1; font-weight: 700; color: #000; margin-bottom: 20px;
}

.cta-subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 18px; font-weight: 300; margin-bottom: 40px; letter-spacing: 0.5px; color: #333;
}

.btn-cta-rounded {
    background-color: var(--color-crema); 
    color: #000; padding: 18px 50px; 
    text-decoration: none; font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    display: inline-block; border-radius: 50px; transition: 0.3s;
}

.btn-cta-rounded:hover { background-color: #B0A690; }

.cta-image-col { flex: 1; max-width: 400px; }

.cta-image-col img {
    width: 100%; height: auto; display: block; border-radius: 2px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    
    .search-flex-container { grid-template-columns: 1fr; gap: 20px; }
    
    .search-actions-row { flex-direction: column; gap: 10px; }
    
    .featured-grid { grid-template-columns: 1fr; }
    
    /* En móvil, el carrusel muestra 1 sola tarjeta */
    .carousel-track .property-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cta-flex-container { flex-direction: column; text-align: center; }
    .cta-text-col { text-align: center; padding: 0 20px; }
    
    .price-split { gap: 10px; }
    
    .about-quote { font-size: 20px; padding: 0 20px; }
}