:root {
    --main-bg: #F5F0E7;
    --navbar-bg: #254D32;
    --main-text: #254D32;
    --secondary-text: #999999;
    --container-padding: 7vw;
    --section-padding: 5vw;
}
html, body {
    margin: 0;
    padding: 0;
    background: var(--main-bg);
    font-family: 'Poppins', Arial, sans-serif;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
}
/* Navbar */
nav {
    background: var(--navbar-bg);
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1em;
}

.hero-btn, .navbar-btn, .hero-btn:link, .hero-btn:visited {
    display: inline-block;
    text-decoration: none;
}
.navbar-btn:hover,
.navbar-btn:focus {
    background: var(--main-text);   /* #254D32 */
    color: #fff;
    transition: background 0.2s, color 0.2s;
}
.hero-btn:hover,
.hero-btn:focus,
.cta-btn:hover,
.cta-btn:focus {
    background: var(--main-text);   /* #254D32 */
    color: #fff;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.navbar-btn {
    margin: 17px 0;
    padding: 8px 12px;
    background: #fff;
    color: var(--navbar-bg);
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1em;
}
/* Hero */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 0 var(--container-padding);
    margin-bottom: 16em;
}
.hero-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    width: 100%;
}
.hero-title {
    color: var(--main-text);
    font-size: 40px;
    letter-spacing: -0.04em;
    line-height: 1em;
    font-weight: 400;
    margin: 0;
}
.hero-subtitle {
    color: var(--secondary-text);
    font-size: 40px;
    letter-spacing: -0.04em;
    line-height: 1em;
    font-weight: 400;
    margin: 0;
}

.hero-spacer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 40px;
}
.hero-btn {
    padding: 8px 12px;
    background: #000000;
    border: none;
    border-radius: 100px;
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
    line-height: 1em;
    cursor: pointer;
    font-weight: 400;
}
/* Servicios */
.services-section {
    margin-top: 80px;
    padding: 0 var(--container-padding);
}
.service-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--section-padding);
}
.service-box.reverse {
    flex-direction: row-reverse;
}
.service-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.service-info h2 {
    color: var(--main-text);
    font-size: 32px;
    letter-spacing: -0.03em;
    line-height: 1em;
    font-weight: 400;
    margin: 0 0 12px 0;
}
.service-info p {
    color: var(--secondary-text);
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1.2em;
    margin: 0;
    font-weight: 400;
}
.service-text {
    width: 70%;
}
.service-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-img img {
    height: 480px;
    width: auto;
    border-radius: 20px;
    object-fit: cover;
    max-width: 100%;
}
/* CTA */
.cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20em var(--container-padding);
}
.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}
.cta-box h3 {
    color: var(--main-text);
    font-size: 32px;
    letter-spacing: -0.03em;
    line-height: 1em;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 400;
}
.cta-box p {
    color: var(--secondary-text);
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1.1em;
    text-align: center;
    margin: 0;
}
.cta-btn {
    margin-top: 21px;
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.77,0,.18,1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}
/* Responsive */
@media (max-width: 900px) {
    :root {
        --container-padding: 5vw;
        --section-padding: 2vw;
    }
    .hero-section{
        margin-bottom: 7em;
    }
    .service-info h2{
        font-size: 28px;
    }
    .service-info p {
        font-size: 18px;
    }
    .service-text {
        width: 80%;
    }
    .service-img img {
        max-height: 300px;
    }
    .cta-section {
        padding: 15em var(--container-padding);
    }
}
@media (max-width: 600px) {
    :root {
        --container-padding: 3vw;
        --section-padding: 1vw;
    }
    .hero-section{
        margin-bottom: 0;
    }
    .hero-title, .hero-subtitle {
        font-size: 32px;
        text-align: center;
    }
    .services-section{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .service-box, .service-box.reverse  {
        flex-direction: column-reverse;
        align-items: center;
    }
    .service-text {
        width: 90%;
        margin-top: 20px;
    }
    .service-info h2 {
        text-align: left;
        font-size: 24px;
    }
    .service-info p, .cta-box p {
        font-size: 18px;
    }
    .service-img img {
        max-height: 350px;
    }
    .cta-section {
        padding: 10em var(--container-padding);
    }
    .cta-box h3 {
        font-size: 22px;
    }
}