 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

/* HEADER */
header {
    background: #1a1a2e;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e8c848;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
}

.btn-admin {
    background: #e8c848;
    color: #1a1a2e !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #e8c848;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.filtros {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filtros select, .filtros button {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.filtros button {
    background: #e8c848;
    color: #1a1a2e;
    font-weight: bold;
}

/* PROPIEDADES */
#propiedades {
    padding: 60px 40px;
}

#propiedades h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a1a2e;
}

.grid-propiedades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.tarjeta img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tarjeta-info {
    padding: 20px;
}

.tarjeta-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.precio {
    font-size: 22px;
    font-weight: bold;
    color: #e8c848;
    margin-bottom: 10px;
}

.zona {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-whatsapp-prop {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

/* CONTACTO */
#contacto {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 60px 40px;
}

#contacto h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #e8c848;
}

#contacto p {
    margin-bottom: 25px;
    font-size: 18px;
}

.btn-whatsapp {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: #0f0f1a;
    color: #666;
    text-align: center;
    padding: 20px;
}

.cargando {
    text-align: center;
    color: #666;
    grid-column: 1/-1;
}
/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 13px;
        margin-left: 0;
    }

    .btn-admin {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .filtros {
        flex-direction: column;
        align-items: center;
    }

    .filtros select, .filtros button {
        width: 100%;
        max-width: 300px;
    }

    #propiedades {
        padding: 30px 15px;
    }

    .grid-propiedades {
        grid-template-columns: 1fr;
    }
}