:root {
    --primary-gold: #b38b6d; 
    --dark-brown: #7d5a44;
    --light-bg: #fdfbf9;
    --white: #ffffff;
    --text-color: #4a4a4a;
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* --- Header --- */
header {
    padding: 20px;
    text-align: center;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { max-width: 150px; height: auto; }

/* --- Hero & Search --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1582268611958-ebfd161ef9cf?auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.search-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 1000px;
    width: 100%;
    border-bottom: 4px solid var(--primary-gold);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; color: var(--dark-brown); text-transform: uppercase; }
.form-group select, .form-group input { padding: 12px; border: 1px solid #e0e0e0; border-radius: 2px; }

.btn-search {
    background-color: var(--primary-gold);
    color: white; border: none; padding: 12px;
    font-weight: 600; cursor: pointer; text-transform: uppercase;
    transition: 0.3s; align-self: flex-end;
}
.btn-search:hover { background-color: var(--dark-brown); }

/* --- Secciones Comunes --- */
section { padding: 80px 10%; }
.bg-alt { background-color: #f0ece9; }
.section-title {
    text-align: center; font-family: 'Playfair Display', serif;
    font-size: 2.2rem; color: var(--dark-brown); margin-bottom: 50px;
}

/* --- Grid de Propiedades --- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.card { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; }
.card-img { height: 220px; background-size: cover; background-position: center; }
.card-content { padding: 25px; }
.card-price { font-size: 1.4rem; color: var(--primary-gold); font-weight: 700; }
.card-location { font-weight: 600; margin: 5px 0; color: #333; }

/* Enlaces de Tarjetas */
.card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}
.card-link:hover {
    transform: translateY(-5px);
}

/* --- Sección Mapa y Contacto --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-container iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 15px;
    border: 1px solid #eee; border-radius: 2px; box-sizing: border-box;
}

.btn-send {
    background: var(--dark-brown); color: white; border: none;
    padding: 15px 40px; cursor: pointer; text-transform: uppercase; width: 100%;
}

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    section { padding: 50px 5%; }
}

footer { background: #1a1a1a; color: #999; padding: 40px; text-align: center; font-size: 0.8rem; }



/* Contenedor para alinear logo y bandera */
.header-container {
    display: flex;
    justify-content: center; /* El logo a la izquierda, bandera a la derecha */
    align-items: center;
    max-width: 1200px; /* Ajusta según el ancho de tu web */
    margin: 0 auto;
    gap: 20px;
    padding: 10px 20px;
}

/* Estilo del enlace de idioma */
.lang-switch {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333; /* Color del texto EN */
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    gap: 8px; /* Espacio entre bandera y texto */
    transition: opacity 0.3s;
}

.lang-switch:hover {
    opacity: 0.7;
}

/* Tamaño de la bandera */
.flag-icon {
    width: 25px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
}
