@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --green: #244c3b;
    --green-light: #3d7057;
    --cream: #faf9f5;
    --white: #ffffff;
    --text: #26352d;
    --muted: #758078;
    --accent: #e7eee5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.header {
    width: 100%;
    min-height: 85px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--green);
}

.logo span {
    color: var(--green-light);
}

.navbar {
    display: flex;
    gap: 35px;
}

.navbar a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--green);
}

.btn {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 14px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

.hero {
    min-height: 590px;
    padding: 70px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

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

.eyebrow {
    display: inline-block;
    color: var(--green-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1.12;
    color: var(--green);
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--green-light);
}

.hero-content p {
    color: var(--muted);
    font-size: 16px;
    max-width: 460px;
    margin-bottom: 30px;
}

.hero-image {
    height: 430px;
    overflow: hidden;
    border-radius: 180px 180px 12px 12px;
}

.hero-image img {
    height: 100%;
}

.services {
    padding: 100px 8%;
    background: var(--white);
    text-align: center;
}

.section-heading {
    max-width: 600px;
    margin: 0 auto 55px;
}

.section-heading h2,
.about h2,
.contact h2 {
    font-family: 'Playfair Display', serif;
    color: var(--green);
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-heading p,
.about p,
.contact p {
    color: var(--muted);
    font-size: 15px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 40px 28px;
    background: var(--cream);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(36, 76, 59, 0.08);
}

.service-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    background: var(--accent);
    color: var(--green);
    border-radius: 50%;
    font-size: 25px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--green);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
}

.about {
    padding: 110px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.about h2 {
    max-width: 500px;
    margin-bottom: 22px;
}

.about p {
    max-width: 470px;
    margin-bottom: 30px;
}

.about-image {
    height: 390px;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    height: 100%;
}

.contact {
    padding: 95px 8%;
    background: var(--accent);
    text-align: center;
}

.contact p {
    margin-bottom: 28px;
}

footer {
    padding: 35px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--green);
}

footer .logo,
footer .logo span {
    color: var(--white);
}

footer p {
    color: #d5e0d8;
    font-size: 12px;
    text-align: right;
}

/* Adaptación para tablets y celulares */

@media (max-width: 900px) {
    .header {
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 18px;
    }

    .navbar {
        gap: 18px;
    }

    .hero,
    .about {
        padding: 65px 5%;
        gap: 35px;
    }

    .services,
    .contact {
        padding: 75px 5%;
    }
}

@media (max-width: 650px) {
    .header {
        justify-content: center;
    }

    .navbar {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header > .btn {
        padding: 10px 15px;
    }

    .hero,
    .about {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 45px;
    }

    .hero-image {
        height: 300px;
        border-radius: 120px 120px 10px 10px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 280px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    footer p {
        text-align: center;
    }
}

/* Animaciones de entrada */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* SECCIÓN DE CONTACTO */

.contact-heading {
    max-width: 650px;
    margin: 0 auto 45px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.contact-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(36, 76, 59, 0.09);
}

.contact-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--green);
    font-size: 23px;
}

.contact-card h3 {
    color: var(--green);
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--muted);
    font-size: 14px;
}

.contact-btn {
    margin-top: 5px;
}

@media (max-width: 650px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}