:root {
    --primary: #0B5C34;
    --secondary: #F9A826;
    --brown: #8D5A3B;
    --light: #F8F6F3;
    --black: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: var(--light);
}

.nav-link,
.footer-title,
.section-title,
.accordion-header {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .5px;
}

/* ==========================
TOP BAR
========================== */

.topbar {
    background: var(--brown);
    color: var(--light);
    font-size: .85rem;
}

/* ==========================
HEADER
========================== */

.main-header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: .4s ease;
    background: var(--light);
}

.main-header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* ==========================
NAVIGATION
========================== */

.nav-link {
    position: relative;
    color: #184229;
    font-weight: 500;
    font-size: 1.35em;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background: var(--secondary);
    transition: .3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================
BUTTON
========================== */

.btn-main {
    background: linear-gradient(135deg,
            var(--primary),
            #117647);

    color: var(--secondary);
    border-radius: 999px;
    padding: 14px 30px;
    font-weight: 600;
    transition: .35s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 92, 52, .25);
}

/* ==========================
HERO
========================== */

.hero {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url("images/image-background-corrales.jpg") center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url(../images/image-background-corrales.jpg);
    background-size: cover;
    background-repeat: repeat-x;
    background-position: bottom;
}

/* ==========================
BOOKING FORM
========================== */

.booking-form {
    backdrop-filter: blur(14px);
    background: #f0e9e3;
    border-radius: 999px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

.booking-form input {
    color: #ddd4cc;
}

/* ==========================
FEATURES
========================== */

.features {
    margin-top: -70px;
    position: relative;
    z-index: 20;
}

.feature-card {
    background: var(--light);
    border-radius: 22px;
    padding: 25px;
    transition: .4s;
}

.feature-card img {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.icon-circle {
    width: 85px;
    height: 70px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-link {
    color: var(--secondary);
}

.tab-link:hover {
    color: var(--brown);
    text-decoration: underline;
}

/* ==========================
ANIMATIONS
========================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all .9s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width:991px) {

    .booking-form {
        border-radius: 25px;
    }

    .hero {
        min-height: 950px;
    }

}

/* =====================================
ABOUT SECTION
===================================== */

.about-section {
    background: #faf8f6;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #5A3825;
    line-height: 1.1;
}

.section-text {
    max-width: 700px;
    color: #555;
    line-height: 1.8;
}

/* =====================================
IMAGE COMPOSITION
===================================== */

.image-composition {
    min-height: 520px;
}

.about-main-image {

    width: 95%;
    height: 430px;
    object-fit: cover;

    border-radius: 24px;

    box-shadow:
        0 25px 50px rgba(0, 0, 0, .12);

    transition: .6s ease;
}

.about-main-image:hover {
    transform: scale(1.02);
}

.about-floating-image {

    position: absolute;

    right: 0;
    bottom: 40px;

    width: 48%;
    height: 250px;

    object-fit: cover;

    border-radius: 30px;

    border: 15px solid var(--light);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, .18);

    transition: .5s ease;
}

.about-floating-image:hover {
    transform: translateY(-8px);
}

/* =====================================
ACCORDION
===================================== */

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accordion-item {

    background: var(--light);

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid #e7dfd7;

    transition: .4s ease;
}

.accordion-item.active {
    background: #efe5dd;
}

.accordion-header {

    width: 100%;
    border: none;

    background: none;

    cursor: pointer;

    padding: 28px 30px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    font-size: 1.75rem;
    font-weight: 600;

    color: #2c2c2c;
}

.accordion-icon {

    transition: .4s;
    font-size: 1.5rem;
    color: #e5d8cf;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {

    max-height: 0;

    overflow: hidden;

    transition:
        max-height .5s ease,
        padding .4s ease;

    padding: 0 30px;
}

.accordion-item.active .accordion-content {

    max-height: 300px;

    padding:
        0 30px 30px 30px;
}

.accordion-content p {

    color: #555;
    line-height: 1.9;
}

/* =====================================
RESPONSIVE
===================================== */

@media(max-width:991px) {

    .section-title {
        font-size: 2.3rem;
    }

    .image-composition {
        min-height: auto;
    }

    .about-main-image {
        width: 100%;
        height: 420px;
    }

    .about-floating-image {

        width: 55%;
        height: 180px;

        right: -10px;
        bottom: 20px;
    }

    .accordion-header {

        font-size: 1.15rem;
        padding: 22px;
    }

}

@media(max-width:768px) {

    .about-main-image {
        height: 350px;
    }

    .about-floating-image {

        width: 65%;
        height: 160px;
    }

}

/* =====================================
SERVICIOS
===================================== */

.services-section {

    background: #faf8f6;

    position: relative;
    padding-bottom: 50px;
}

.services-title {

    color: var(--brown);

    font-size: 3rem;
}

/* =====================================
CARDS
===================================== */

.service-card {

    text-align: center;

    padding: 1px;

    border-radius: 28px;

    transition: all .45s ease;

    position: relative;
}

.service-card:hover {

    transform: translateY(-10px);
}

/* =====================================
LOGOS
===================================== */

.logo-wrapper {

    height: 340px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    overflow: visible;
}

.service-logo {

    max-width: 100%;
    max-height: 225px;

    object-fit: contain;

    transition:
        transform .7s ease,
        filter .7s ease,
        drop-shadow .7s ease;
}

/* Hover principal */

.service-card:hover .service-logo {

    transform:
        scale(1.02) translateY(-6px);

}

/* efecto flotante */

.service-card:hover .service-logo {

    animation:
        floatingLogo 2.5s ease-in-out infinite;
}

/* =====================================
TEXTOS
===================================== */

.service-name {

    font-family: var(--heading-font);

    font-size: 2.2rem;

    color: #2f2f2f;

    margin-bottom: 8px;
}

.service-subtitle {

    color: #8f8f8f;

    font-size: 1.2rem;

    font-weight: 600;

    margin-bottom: 25px;
}

.service-text {

    color: #444;

    line-height: 1.8;

    font-size: 1rem;

    max-width: 420px;

    margin: auto auto 35px;
}

/* =====================================
BOTON
===================================== */

.service-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 210px;

    height: 62px;

    border-radius: 999px;

    text-decoration: none;

    background: #f4a11b;

    color: white;

    font-size: 1.1rem;

    font-weight: 600;

    transition: .35s ease;
}

.service-btn:hover {

    background: #df920f;
    color: lemonchiffon;

    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(244, 161, 27, .25);
}

/* =====================================
RESPONSIVE
===================================== */

@media(max-width:1200px) {

    .services-title {

        font-size: 4rem;
    }

}

@media(max-width:991px) {

    .logo-wrapper {

        height: 260px;
    }

    .service-logo {

        max-height: 220px;
    }

    .service-name {

        font-size: 1.8rem;
    }

}

@media(max-width:768px) {

    .services-title {

        font-size: 3rem;
    }

    .service-card {

        padding: 20px;
    }

    .service-btn {

        width: 100%;
    }

}

/* =====================================
FOOTER
===================================== */

.footer-section {

    background: #054e26;

    color: var(--light);

    padding-top: 90px;
    padding-bottom: 35px;

    position: relative;
}

.footer-logo {

    width: 50px;

    transition: .4s ease;
}

.footer-logo:hover {

    transform: scale(1.05);
}

.footer-description {

    color: rgba(255, 255, 255, .85);

    line-height: 1.9;

    font-size: .95rem;
}

.footer-title {

    font-size: 1.7rem;

    font-weight: 600;

    margin-bottom: 30px;

    color: var(--light);
}

.footer-contact {

    margin-top: 25px;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.footer-contact img {
    height: 25px;
}

.footer-contact li {

    display: flex;
    gap: 12px;

    color: rgba(255, 255, 255, .88);

    line-height: 1.7;
}

.footer-links {

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.footer-links a {

    color: rgba(255, 255, 255, .85);

    transition: .3s;
}

.footer-links a:hover {

    color: var(--secondary);

    padding-left: 8px;
}

.footer-schedule {

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.footer-schedule p {

    color: rgba(255, 255, 255, .88);

    line-height: 1.8;
}

.footer-schedule strong {

    color: #fff;
}

/* =====================================
NEWSLETTER
===================================== */

.newsletter-form {

    position: relative;

    margin-bottom: 30px;
}

.newsletter-form input {

    width: 100%;

    height: 60px;

    border: none;

    outline: none;

    padding: 0 75px 0 20px;

    border-radius: 999px;

    background: var(--light);

    color: #333;
}

.newsletter-form button {

    position: absolute;

    right: 8px;
    top: 8px;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    background: var(--secondary);

    color: var(--light);

    transition: .3s;
}

.newsletter-form button:hover {

    transform: rotate(15deg);
}

/* =====================================
SOCIAL
===================================== */

.social-icons {

    display: flex;
    gap: 15px;
}

.social-icons a {

    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: var(--secondary);

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--light);

    font-weight: 600;

    transition: .35s ease;
}

.social-icons a:hover {

    transform: translateY(-6px);

    background: var(--light);

    color: #054e26;
}

/* =====================================
BOTTOM
===================================== */

.footer-divider {

    height: 1px;

    background:
        rgba(220, 161, 75, .6);

    margin-top: 50px;
    margin-bottom: 30px;
}

.footer-bottom {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 25px;

    flex-wrap: wrap;
}

.footer-bottom p {

    color: rgba(255, 255, 255, .85);
}

.footer-policy {

    display: flex;
    gap: 25px;

    flex-wrap: wrap;
}

.footer-policy a {

    color: rgba(255, 255, 255, .85);

    transition: .3s;
}

.footer-policy a:hover {

    color: var(--secondary);
}

/* =====================================
RESPONSIVE
===================================== */

@media(max-width:991px) {

    .footer-section {

        padding-top: 70px;
    }

    .footer-title {

        margin-bottom: 20px;
    }

}

@media(max-width:768px) {

    .footer-bottom {

        text-align: center;

        justify-content: center;
    }

    .footer-policy {

        justify-content: center;
    }

    .social-icons {

        justify-content: center;
    }

}