/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #1241C7;
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* Grid de propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.property-info {
    padding: 15px;
}

.property-info h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.property-features {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #f0f0f0;
}

/* Ficha de propiedad */
.property-gallery {
    margin-bottom: 30px;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.agent-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Perfil de agente */
.agent-profile {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agent-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
footer {
    background: #1241C7;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-profile {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
}


/* Sección de contacto del agente */
.agent-contact-section {
    background: linear-gradient(135deg, #7086C5 0%, #1241C7 100%);
    color: white;
    padding: 50px 0;
    margin-top: 50px;
}

.agent-contact-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.agent-contact-section > .container > p {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1.1em;
}

.agent-contact-card {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.agent-contact-photo {
    flex-shrink: 0;
}

.agent-contact-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1241C7;
}

.agent-contact-info {
    flex: 1;
}

.agent-contact-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.agent-position {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.agent-contact-details {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 1.2em;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.contact-text {
    flex: 1;
    font-size: 1.1em;
}

.contact-text a {
    color: #3498db;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.contact-actions {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .agent-contact-photo {
        margin: 0 auto;
    }
    
    .agent-contact-photo img {
        width: 100px;
        height: 100px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .whatsapp-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .agent-contact-section h2 {
        font-size: 1.5em;
    }
}