* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #2D3748;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h2 {
    font-size: 1.4rem;
    color: #1E3A5F;
}

.logo-highlight {
    color: #D4AF37;
}

.logo-tag {
    font-size: 0.7rem;
    color: #718096;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2D3748;
    font-weight: 500;
}

.nav-links a:hover {
    color: #D4AF37;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    height: 70vh;
    background-image: url('fondo3.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #082a56;
    color: white;
}

.btn-primary:hover {
    background: #284f72;
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

/* ========== FILTROS ========== */
.filters-section {
    padding: 60px 0 30px;
    background: #F8F9FA;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-tag {
    color: #D4AF37;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2rem;
    color: #1E3A5F;
    margin-top: 8px;
}

.filters-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.filter-hint {
    width: 100%;
    background: #FEF9E6;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.filter-hint i {
    color: #D4AF37;
    margin-right: 8px;
}

.filter-group {
    flex: 1;
    min-width: 130px;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #4A5568;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
}

.filter-group input:disabled {
    background: #EDF2F7;
    cursor: not-allowed;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* ========== PROPIEDADES - 3 COLUMNAS BIEN ESPACIADAS ========== */
.properties-section {
    padding: 50px 0 80px;
}

.properties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}

.property-card {
    width: calc(33.333% - 17px);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #EDF2F7;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.property-image-card {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-type-card {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1E3A5F;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.property-pets-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.property-info-card {
    padding: 15px;
}

.property-title-card {
    font-size: 1rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 5px;
}

.property-address-card {
    font-size: 0.7rem;
    color: #718096;
    margin-bottom: 10px;
}

.property-details-card {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #4A5568;
    margin-bottom: 10px;
}

.property-details-card i {
    color: #D4AF37;
    width: 14px;
}

.property-price-card {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E3A5F;
}

.property-price-card span {
    font-size: 0.7rem;
    font-weight: normal;
    color: #718096;
}

/* ========== MODAL ========== */
/* ========== MODAL - PANTALLA GRANDE ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 20px auto;
    width: 95%;
    max-width: 1400px;
    border-radius: 24px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1E3A5F;
    cursor: pointer;
    z-index: 10;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.modal-close:hover {
    background: #D4AF37;
    color: white;
    transform: scale(1.05);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* GALERÍA DEL MODAL - MÁS GRANDE */
.modal-gallery {
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    border-radius: 20px;
    padding: 10px;
}

.modal-main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 16px;
    background: #F8F9FA;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #D4AF37;
    color: #1E3A5F;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #1E3A5F;
    background: #F8F9FA;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
}

/* INFORMACIÓN DEL MODAL - MÁS GRANDE */
.modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-info h2 {
    font-size: 2.2rem;
    color: #1E3A5F;
    margin-bottom: 5px;
}

.modal-address {
    color: #718096;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin: 10px 0;
}

.modal-price span {
    font-size: 1rem;
    color: #718096;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #F8F9FA;
    padding: 20px;
    border-radius: 20px;
    margin: 5px 0;
}

.modal-details-grid div {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-details-grid i {
    color: #D4AF37;
    width: 24px;
    font-size: 1.1rem;
}

.modal-description {
    margin: 10px 0;
}

.modal-description h4 {
    font-size: 1.1rem;
    color: #1E3A5F;
    margin-bottom: 10px;
}

.modal-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4A5568;
}

.modal-contact {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #EDF2F7;
}

.modal-contact h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.whatsapp-large:hover {
    background-color: #128C7E;
    transform: scale(1.02);
}


/* ========== ANUNCIAR ========== */
.announce-section {
    padding: 60px 0;
    background: #F8F9FA;
}

.announce-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.announce-text {
    flex: 1;
    min-width: 250px;
}

.announce-text h2 {
    font-size: 1.8rem;
    color: #1E3A5F;
    margin: 15px 0;
}

.benefits-list {
    list-style: none;
    margin-top: 20px;
}

.benefits-list li {
    margin: 10px 0;
}

.benefits-list i {
    color: #D4AF37;
    margin-right: 10px;
}

.announce-form {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 25px;
    border-radius: 20px;
}

.announce-form input,
.announce-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
}

.announce-form button {
    width: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background: #1E3A5F;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: #D4AF37;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .property-card {
        width: calc(50% - 12.5px);
    }
}

@media (max-width: 650px) {
    .property-card {
        width: 100%;
    }
    
    .filters-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .modal-grid {
        flex-direction: column;
    }
    
    .announce-grid {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Botón Descubrir más */
#descubreMasContainer {
    text-align: center;
    margin-top: 40px;
}

.no-results {
    text-align: center;
    padding: 50px;
    background: #F8F9FA;
    border-radius: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* MODAL RESPONSIVE */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-main-image {
        height: 300px;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.8rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 550px) {
    .modal-content {
        width: 98%;
        margin: 10px auto;
    }
    
    .modal-main-image {
        height: 220px;
    }
    
    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-grid {
        padding: 15px;
    }
    
    .whatsapp-large {
        width: 100%;
        justify-content: center;
    }
}