* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%),
                url('../images/interior-inmobiliaria.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

.card-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bottom-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-left {
    flex: 1;
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
}

.card-social {
    grid-column: span 1;
}

.card-contact {
    grid-column: span 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.card-contact h3 {
    grid-column: 1 / -1;
}

.logo {
    margin-bottom: 10px;
}

.logo img {
    max-width: 100px;
    height: auto;
    display: inline-block;
}

h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: left;
}

.subtitle {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
    text-align: left;
}

.card h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.card p {
    color: #555;
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #333333;
    padding: 15px 40px;
    font-size: 1.05em;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.cta-button:active {
    transform: translateY(0);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

footer {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 0.85em;
    padding: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 640px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .bottom-cards {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .header-left {
        text-align: center;
    }

    h1 {
        font-size: 1.6em;
        text-align: center;
    }

    .subtitle {
        text-align: center;
    }

    .logo img {
        max-width: 100px;
    }

    .card-social,
    .card-contact {
        grid-column: 1 / -1;
    }

    .card-contact {
        grid-template-columns: 1fr;
    }

    .card-contact h3 {
        grid-column: auto;
    }
}