/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #1f2328;
    --forest: #1f3a2b;
    --leaf: #5c8f6a;
    --terra: #d8744d;
    --sand: #f3ede4;
    --cream: #fffaf4;
    --muted: #5f6a75;
    --white: #ffffff;
    --shadow: 0 14px 40px rgba(23, 26, 30, 0.12);
    --shadow-soft: 0 10px 30px rgba(23, 26, 30, 0.08);
    --border-radius: 14px;
    --transition: all 0.3s ease;
}

body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 60%, var(--white) 100%);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", "Times New Roman", serif;
    color: var(--forest);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 244, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 35, 40, 0.08);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-mark {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--forest);
}

.brand-sub {
    font-size: 0.95rem;
    color: var(--muted);
}

.top-cta {
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    background: var(--forest);
    color: var(--white);
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}

.top-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(216, 116, 77, 0.12), transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(92, 143, 106, 0.15), transparent 60%);
    z-index: 0;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 1.6rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(31, 58, 43, 0.08);
    color: var(--forest);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--terra);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(216, 116, 77, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(216, 116, 77, 0.35);
}

.btn-ghost {
    border: 1px solid rgba(31, 58, 43, 0.2);
    color: var(--forest);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(31, 58, 43, 0.08);
}

.hero-points {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.hero-points li {
    position: relative;
    padding-left: 1.6rem;
}

.hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--leaf);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--forest);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.hero-media {
    display: grid;
    gap: 1.4rem;
}

.media-card,
.media-mini {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media-card img {
    height: 360px;
    object-fit: cover;
    width: 100%;
}

.media-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

.media-mini img {
    height: 160px;
    object-fit: cover;
}

.mini-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(31, 58, 43, 0.85);
    color: var(--white);
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Sections */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    background: var(--cream);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(31, 35, 40, 0.08);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--muted);
}

/* Gallery Section */
.gallery {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.gallery-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    background: var(--cream);
    color: var(--forest);
    font-weight: 600;
}

/* Location Section */
.location {
    background: var(--sand);
    padding: 4rem 0;
}

.location-details {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.location-item {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item strong {
    color: var(--forest);
    display: block;
    margin-bottom: 0.5rem;
}

.location-item ul {
    list-style: none;
    margin-top: 0.5rem;
}

.location-item li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--muted);
}

.location-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--leaf);
    font-weight: bold;
}

/* CTA Band */
.cta-band {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, rgba(31, 58, 43, 0.08) 0%, rgba(216, 116, 77, 0.12) 100%);
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: var(--muted);
    max-width: 520px;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--forest);
}

.contact-section .section-title,
.contact-intro {
    color: var(--white);
}

.contact-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--forest);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem;
    border: 1px solid rgba(31, 35, 40, 0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(216, 116, 77, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--terra);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(216, 116, 77, 0.32);
}

.submit-btn:disabled {
    background: #b6b6b6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #d9efe1;
    color: #1c5031;
    border: 1px solid #b8e0c4;
    display: block;
}

.form-message.error {
    background-color: #f6d5d7;
    color: #7d1f28;
    border: 1px solid #efb9bc;
    display: block;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

/* Footer */
.footer {
    background-color: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.4rem 0;
    opacity: 0.9;
}

.footer-contact {
    font-size: 0.95rem;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        padding: 3.5rem 0 4rem;
    }

    .hero-media {
        order: -1;
    }

    .media-card img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-img {
        height: 200px;
    }

    .contact-form {
        padding: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-band-inner {
        align-items: flex-start;
    }
}
