﻿/*------------------------------- SLIDER ------------------------------*/
.slider {
    width: 100%;
    max-width: 100vw;
    height: 85vh;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.slider-list {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
}

    .slider-list img {
        width: 1920px;
        max-width: 100vw;
        height: 100%;
        object-fit: cover;
    }

.slider-button {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

    .slider-button button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--other-color-2);
        color: white;
        border: none;
        font-family: monospace;
        font-weight: bold;
        cursor: pointer;
        opacity: 0.3;
        transition: all ease 0.5s;
    }

    .slider-button button:hover {
        opacity: 1;
    }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: white;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

    .slider-dots li {
        list-style: none;
        width: 10px; 
        height: 10px;
        background-color: white;
        margin: 0 8px; 
        border-radius: 50%;
        transition: 0.3s ease; 
        cursor: pointer;
    }

        .slider-dots li.active {
            background-color: var(--main-color); 
            opacity: 1; 
        }

        .slider-dots li:not(.active) {
            background-color: white;
        }

        .slider-dots li:hover {
            transform: scale(1.2); 
        }

@media (max-width: 1550px) {
    .slider {
        height: 80vh;
    }
}

@media (max-width: 1450px) {
    .slider {
        height: 75vh;
    }
}

@media (max-width: 1350px) {
    .slider {
        height: 70vh;
    }
}

@media (max-width: 1250px) {
    .slider {
        height: 65vh;
    }
}

@media (max-width: 1150px) {
    .slider {
        height: 60vh;
    }
}

@media (max-width: 1050px) {
    .slider {
        height: 55vh;
    }
}

@media (max-width: 950px) {
    .slider {
        height: 50vh;
    }
}

@media (max-width: 850px) {
    .slider {
        height: 45vh;
    }
}

@media (max-width: 750px) {
    .slider {
        height: 40vh;
    }
}

@media (max-width: 650px) {
    .slider {
        height: 35vh;
    }
}

@media (max-width: 550px) {
    .slider {
        height: 30vh;
    }

    .slider-list img {
        object-fit: contain;
        object-position: top
    }

    .slider-button {
        top: 10vh; 
    }

    .slider-button button {
        width: 30px;
        height: 30px;
        font-size: 8px;
    }

    .slider-button i {
        font-size: 8px;
    }

    .slider-dots {
        display: none;
    }
}

/*------------------------------- CATEGORY ------------------------------*/
.category-header-container {
    text-align: center;
}

.category-header {
    display: inline-block;
    font-size: var(--h1-font);
    color: var(--other-color);
    position: relative;
    padding: 2.5rem 0 3rem;
    margin-top: 30px;
    letter-spacing: 1px;
}

    .category-header::after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        background: var(--other-color);
        margin: 3px auto 0;
        border-radius: 1px;
    }

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--second-color);
    outline: 0.5rem solid rgba(0, 0, 0, .1);
    outline-offset: -1rem;
    text-align: center;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, .1);
    border-radius: 12px;
    margin: 0 auto;
    transition: all 0.3s ease;
    flex: 1 1 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
    min-height: 220px;
    min-height: 350px;
}

    .category-card:hover {
        outline: .2rem solid var(--main-color);
        outline-offset: 0rem;
        transform: scale(1.03);
    }

    .category-card img {
        margin: 1rem 0;
        height: 12rem;
        max-width: 100%;
        object-fit: contain;
    }

    .category-card h3 {
        font-size: var(--h3-font);
        line-height: 1.4;
        color: var(--other-color);
        padding: 15px;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        white-space: normal;
        min-height: 50px;
    }

.category-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--second-color);
    background: var(--main-color);
    border: none;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 8px;
}

@media (max-width: 1300px) {
    .category-card {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (max-width: 799px) {
    .category-header {
        font-size: var(--m-h1-font);
        margin-top: 0;
    }

    .category-container {
        padding: 0 0.5rem;
    }

    .category-card {
        flex: 1 1 100%;
        max-width: 70%;
    }

        .category-card img {
            height: 10rem;
        }

        .category-card h3 {
            font-size: var(--m-h3-font);
        }
}

/*------------------------------- WHYUS ------------------------------*/
.whyus {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 1rem;
}

.whyus-header-container {
    text-align: center;
}

.whyus-header {
    display: inline-block;
    font-size: var(--h1-font);
    color: var(--other-color);
    position: relative;
    padding: 2.5rem 0 3rem;
    margin-top: 30px;
    letter-spacing: 1px;
}

    .whyus-header::after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        background: var(--other-color);
        margin: 3px auto 0;
        border-radius: 1px;
    }

.whyus-container {
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.whyus-question {
    background-color: white;
    color: var(--other-color);
    cursor: pointer;
    font-size: var(--h3-font);
    width: 100%;
    padding: 1.5rem;
    border: none;
    outline: none;
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

    .whyus-active,
    .whyus-question:hover {
        background-color: var(--second-color);
    }

    .whyus-question i {
        font-size: 1.4rem;
        transition: transform 0.3s ease-in-out;
    }

.whyus-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 1.5rem;
    background-color: var(--second-color);
}

    .whyus-answer p {
        color: var(--other-color-2);
        font-size: 1rem;
        line-height: 1.4;
        padding-bottom: 1.5rem;
    }

@media (max-width: 799px) {
    .whyus {
        max-width: 100%;
        padding: 0 1rem;
    }

    .whyus-header {
        font-size: var(--m-h1-font);
    }

    .whyus-question {
        font-size: var(--m-h3-font);
        padding: 1.2rem;
    }

        .whyus-question i {
            font-size: 1.3rem;
        }

    .whyus-answer {
        padding: 0 1rem;
    }

        .whyus-answer p {
            font-size: var(--m-p-font);
            padding-bottom: 1rem;
        }
}

/*--------------------------------- CTA -------------------------------*/
.cta {
    margin: 70px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    height: 40vh;
    padding: 20px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h4 {
    color: var(--second-color);
    font-size: var(--h2-font);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.cta h2 {
    color: var(--second-color);
    font-size: var(--h1-font);
    padding: 10px 0;
    max-width: 800px;
}

.cta span {
    color: #25D366;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 6px #0000001a;
    transition: all 0.5s ease;
    margin-top: 10px;
}

    .whatsapp-button:hover {
        background-color: #25D366;
        box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
        transform: scale(1.1);
    }

    .whatsapp-button i {
        margin-left: 10px;
        font-size: 25px;
    }

@media (max-width: 768px) {
    .cta {
        height: auto;
        padding: 40px 20px;
    }

        .cta h4 {
            font-size: var(--m-h3-font);
        }

        .cta h2 {
            font-size: var(--m-h1-font);
        }

    .whatsapp-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}