* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a472a;
    --secondary-color: #2d5a3d;
    --accent-color: #25D366;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: url('imagenes/casas.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.5),
                 0 0 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 15px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 
                 0 0 15px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.35);
    padding: 15px 30px;
    border-radius: 10px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.badge {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 80px;
}

/* Text Sections */
.text-section {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.intro-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: left;
}

.intro-text:last-child {
    margin-bottom: 0;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Image Sections */
.image-section {
    margin: 60px auto;
    max-width: 900px;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features-section {
    background: var(--light-bg);
    padding: 60px 20px;
    border-radius: 20px;
    margin: 60px auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Properties Section */
.properties-section {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.property-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.property-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.property-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 60px auto;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.cta-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-list li {
    font-size: 1rem;
    line-height: 1.8;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.cta-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-note {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 20px;
}

/* Info Section */
.info-section {
    background: var(--light-bg);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
}

.info-box h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-list li {
    font-size: 1rem;
    line-height: 1.8;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.info-note {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

/* Closing Section */
.closing-section {
    max-width: 900px;
    margin: 60px auto;
}

.closing-box {
    background: var(--light-bg);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
}

.closing-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.closing-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: left;
}

.closing-text:last-child {
    margin-bottom: 0;
}

.closing-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 20px 40px;
    margin-top: 80px;
    border-top: 4px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-signature {
    text-align: center;
    margin-bottom: 20px;
}

.signature-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.signature-link:hover {
    transform: scale(1.05);
}

.signature-image {
    width: 600px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.signature-link:hover .signature-image {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.footer-info {
    text-align: center;
    width: 100%;
}

.contact-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 25px auto;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    flex-direction: column;
    padding: 10px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-text {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    padding: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    transform: translateY(-50%) scale(1.2);
    color: var(--accent-color);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid,
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .badges {
        flex-direction: column;
        align-items: center;
    }

    .feature-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-box h2,
    .info-box h2 {
        font-size: 1.5rem;
    }

    .modal-nav {
        font-size: 40px;
        padding: 10px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .intro-text,
    .closing-text {
        font-size: 1rem;
    }

    .content-section {
        margin-bottom: 50px;
    }

    .footer {
        padding: 40px 20px 30px;
    }

    .signature-image {
        padding: 15px;
    }

    .footer-text {
        font-size: 1.5rem;
    }

    .footer-contact {
        font-size: 1rem;
    }
}

