/* -------------------
   VARIABLES & RESET
   ------------------- */
:root {
    --primary: #1B365D;       /* Azul Navy */
    --primary-dark: #0f2341;
    --accent: #C5A059;        /* Dorado/Beige (Toque de lujo) */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F4F7F6;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; } /* Empuja el footer hacia abajo */

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* -------------------
   HEADER & NAV
   ------------------- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 60px; display: block; } /* Tamaño ajustado profesional */

.menu { display: flex; gap: 30px; }

.menu a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.menu a:hover, .menu a.active { color: var(--accent); }

.menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--accent); transition: width 0.3s;
}
.menu a:hover::after, .menu a.active::after { width: 100%; }

/* -------------------
   HERO & TITLES
   ------------------- */
.hero {
    background: linear-gradient(rgba(27, 54, 93, 0.9), rgba(27, 54, 93, 0.8)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; font-weight: 800; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 3rem 0;
    position: relative;
}

/* -------------------
   GRID DE PROPIEDADES
   ------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }

/* Esto hace que las tarjetas se pongan una al lado de otra */
.grid-props {
    display: grid;
    /* Esto obliga a crear columnas de igual tamaño */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px;
    padding: 20px 0;
    /* Importante: alinea las tarjetas al principio para que no se estiren */
    align-items: start; 
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%; /* Para que todas midan lo mismo de alto sin romperse */
    transition: transform 0.3s ease;
}


/* Evita que la imagen se estire demasiado */
.card-img {
    width: 100%;
    height: 250px; /* Altura fija para todas las portadas */
    object-fit: cover; /* Recorta la foto para que no se deforme */
    border-radius: 10px 10px 0 0;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Pequeño salto al pasar el ratón */
}

.card-info { padding: 25px; }
.card-price { color: var(--accent); font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; color: var(--primary); }
.card-features { font-size: 0.9rem; color: var(--text-light); border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}
.btn:hover { background: var(--accent); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); width: 100%; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* -------------------
   PÁGINA CONTACTO (FORMULARIO)
   ------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 { color: var(--primary); margin-bottom: 20px; }
.info-item { display: flex; align-items: center; margin-bottom: 20px; gap: 15px; }
.info-item span { font-weight: 600; color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}

/* -------------------
   FOOTER
   ------------------- */
.footer { background: var(--primary); color: var(--white); padding: 50px 20px; text-align: center; margin-top: auto; }
.footer p { opacity: 0.7; font-size: 0.9rem; margin-bottom: 20px; }
.footer-links a { color: var(--white); margin: 0 15px; opacity: 0.8; font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; color: var(--accent); }

/* -------------------
   RESPONSIVE
   ------------------- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 20px; }
    .menu { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .contact-layout { grid-template-columns: 1fr; }
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}