/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 102, 204, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 102, 204, 0.7), rgba(0, 102, 204, 0.5)), url('../assets/images/fondo.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

.btn:hover {
    background: #004d99;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Propiedades destacadas */
.featured-properties {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: #0066cc;
    font-size: 2.5rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-info {
    padding: 20px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.property-location {
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-right: 5px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.feature {
    text-align: center;
}

.feature-value {
    font-weight: 700;
    color: #0066cc;
}

.feature-label {
    font-size: 0.8rem;
    color: #666;
}

/* Footer */
/* Estilos del footer actualizado */
footer {
    background: #004d99;
    color: white;
    padding: 60px 20px 30px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p, .footer-column a {
    color: #b3e0ff;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}

/* Botones de WhatsApp en el footer */
.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white !important;
    padding: 12px 20px;
    border-radius: 30px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.whatsapp-contact-btn {
    display: inline-block;
    background: transparent;
    color: #25D366 !important;
    padding: 10px 15px;
    border-radius: 30px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    border: 2px solid #25D366;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-contact-btn:hover {
    background: #25D366;
    color: white !important;
    transform: translateY(-2px);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    width: 220px;
    border-radius: 30px;
}

.whatsapp-text {
    opacity: 0;
    width: 0;
    font-size: 0.9rem;
    margin-left: 0;
    white-space: nowrap;
    transition: all 0.3s;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    width: auto;
    margin-left: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3e0ff;
}

/* Responsive para botón flotante */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .whatsapp-float:hover {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .whatsapp-float:hover {
        width: 180px;
    }
}

/* Estilos para propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

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

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.property-badge.disponible {
    background: #28a745;
}

.property-badge.vendido {
    background: #dc3545;
}

.property-badge.alquilado {
    background: #ffc107;
    color: #000;
}

.property-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

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

.property-location i {
    color: #ff6b6b;
    margin-right: 5px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.property-features span {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.property-features i {
    font-size: 16px;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.property-type {
    margin-bottom: 15px;
}

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-badge.casa {
    background: #e3f2fd;
    color: #1976d2;
}

.type-badge.apartamento {
    background: #f3e5f5;
    color: #7b1fa2;
}

.type-badge.terreno {
    background: #e8f5e9;
    color: #388e3c;
}

.type-badge.local {
    background: #fff3e0;
    color: #f57c00;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.btn-ver-detalle {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-ver-detalle:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.btn-ver-detalle i {
    margin-right: 8px;
}

/* Mensajes de error y loading */
.no-properties, .error-properties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-properties i, .error-properties i {
    color: #6c757d;
    margin-bottom: 20px;
}

.no-properties h3, .error-properties h3 {
    color: #495057;
    margin-bottom: 10px;
}

.no-properties p, .error-properties p {
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-reintentar {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-reintentar:hover {
    background: #0056b3;
}

/* Estilos para detalle de propiedad */
.property-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.property-detail-header {
    margin-bottom: 30px;
}

.property-detail-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.property-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.property-location {
    color: #666;
    font-size: 16px;
}

.property-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.property-status.disponible {
    background: #d4edda;
    color: #155724;
}

.property-featured {
    background: #fff3cd;
    color: #856404;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.property-gallery {
    margin-bottom: 40px;
}

.property-swiper {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

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

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
    opacity: 1;
    border: 2px solid #ff6b6b;
}

.property-detail-content {
    margin-top: 40px;
}

.property-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.property-main-info h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

.property-main-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature i {
    font-size: 24px;
    color: #ff6b6b;
    margin-right: 15px;
}

.feature-label {
    flex: 1;
    color: #666;
    font-size: 14px;
}

.feature-value {
    font-weight: 600;
    color: #333;
}

.price-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.price-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 25px;
}

.btn-whatsapp, .btn-contactar {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-contactar {
    background: #ff6b6b;
    color: white;
}

.btn-contactar:hover {
    background: #ee5a24;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 60px 20px;
}

.error i {
    color: #dc3545;
    margin-bottom: 20px;
}

.error h3 {
    color: #dc3545;
    margin-bottom: 10px;
}

.error p {
    color: #666;
    margin-bottom: 20px;
}

.error .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-info-grid {
        grid-template-columns: 1fr;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr;
    }
    
    .property-swiper {
        height: 300px;
    }
}

/* Estilos para la página de propiedades */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.filters-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.filters-container p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.filter-group label i {
    margin-right: 8px;
}

.filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.filter-select option {
    background: #764ba2;
    color: white;
}

.filter-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-filter {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-filter:not(.secondary) {
    background: white;
    color: #764ba2;
}

.btn-filter:not(.secondary):hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-filter.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-filter.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.counters {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.counter-item i {
    font-size: 18px;
}

.counter-item span:last-child {
    font-weight: 600;
    font-size: 18px;
}

/* Contenedor principal */
.properties-page-container {
    min-height: 500px;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header de resultados */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.view-btn:hover:not(.active) {
    background: #f8f9fa;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Lista de propiedades */
.properties-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.property-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.property-list-item:hover {
    transform: translateY(-3px);
}

.list-item-image {
    position: relative;
    height: 200px;
}

.list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.list-badge.disponible { background: #28a745; }
.list-badge.vendido { background: #dc3545; }
.list-badge.alquilado { background: #ffc107; color: #000; }

.list-item-content {
    padding: 20px 20px 20px 0;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.list-item-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.list-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
    margin-left: 15px;
}

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

.list-item-location i {
    color: #ff6b6b;
    margin-right: 5px;
}

.list-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.list-item-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.list-item-features i {
    color: #667eea;
}

.list-item-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.list-item-type.casa { background: #e3f2fd; color: #1976d2; }
.list-item-type.apartamento { background: #f3e5f5; color: #7b1fa2; }
.list-item-type.terreno { background: #e8f5e9; color: #388e3c; }

.list-item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

.btn-ver-detalle, .btn-whatsapp-list {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-ver-detalle {
    background: #667eea;
    color: white;
    border: none;
}

.btn-ver-detalle:hover {
    background: #5a67d8;
}

.btn-whatsapp-list {
    background: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp-list:hover {
    background: #1da851;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-number:hover:not(.active) {
    background: #f8f9fa;
    border-color: #667eea;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-results i {
    color: #667eea;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

.no-results a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    text-align: center;
    padding: 40px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    margin: 20px 0;
}

.error-message i {
    font-size: 36px;
    margin-bottom: 15px;
}

.error-message p {
    margin-bottom: 15px;
}

.error-message button {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.error-message button:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-list-item {
        grid-template-columns: 1fr;
    }
    
    .list-item-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .view-options, .sort-options {
        width: 100%;
    }
    
    .view-options {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .counters {
        justify-content: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .list-item-actions {
        flex-direction: column;
    }
    
    .btn-ver-detalle, .btn-whatsapp-list {
        width: 100%;
        justify-content: center;
    }
}


/* ===== MODAL DE CONTACTO ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

/* Formulario */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group i {
    color: #3498db;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.checkbox-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    font-weight: normal;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #3498db;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.btn-submit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 15px;
    }
}

/* Deshabilitar scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}
/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}