@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-page: #F0F1EB;
    --primary: #0A7484;
    --primary-dark: #02353C;
    --primary-linear: linear-gradient(to right, #075C69, #0A7484);
    --secondary-light: #515355;
    --secondary-dark: #34393F;
    --default-padding: 0 2rem;
    --bg-benefits: #0E0E1F;
}

h1,
h2,
h3,
.title,
.contrast {
    font-family: "Lora", sans-serif;
}

p,
a,
button,
span {
    font-family: "Inter", sans-serif;
}

a {
    text-decoration: none;
}

p {
    color: var(--secondary-light);
}

body {
    background: var(--bg-page);
}

.contrast {
    background: var(--primary-linear);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    width: 280px;
    border-radius: 30px;
    background: var(--primary-linear);
    padding: 10px 18px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition:
    box-shadow 0.3s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.cta-whatsapp::before{
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    transform: skewX(-25deg);

    background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: slowShimmer 4s infinite; 
}
.cta-whatsapp:hover{
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.title-container {
    text-align: center;
    width: 90%;
    margin: 0 auto;

    h2 {
        color: var(--primary-dark);
        margin-bottom: 6px;
        font-size: 2.4rem;
    }

    p {
        color: var(--secondary-light);
    }
}


/* Animation */
@keyframes spin {
    from {
        transform: translateX(0);
    }

    to {
        transform: translate(calc(-100% - 1rem));
    }
}

@keyframes alert {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes revealImage {
    from {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes slowShimmer {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fade-up {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
}

.fade-up.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Header */
#navbar {
    display: none;
}

.hero {
    background: var(--bg-page) url('../assets/bg-texture-hero.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: end;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
    position: relative;

    .logo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: max-content;
        gap: 2px;
        margin-bottom: 1.5rem;

        .title {
            font-size: 1.3rem;
            font-weight: 500;
        }

        .small {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
    }

    .hero-content {

        .text-content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            position: relative;
            z-index: 3;

            h1 {
                font-size: clamp(1.8rem, 3.5vw, 3.5rem);
                color: var(--secondary-dark);
                line-height: 1.1;
            }
        }
    }

    .hero-image {
        max-width: 642px;
        width: 100%;
        margin-top: 3rem;
        position: relative;

        opacity: 0;
        animation: revealImage 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.2s;
        will-change: transform, opacity;

        img {
            width: 100%;
        }
    }

    .hero-image::before {
        content: '';
        position: absolute;
        inset: 0;

        background: linear-gradient(rgba(240, 241, 235, 0) 50%, #F0F1EB);
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(240, 241, 235, 0) 50%, #F0F1EB);
}

/* Main */
main {

    #transformations {
        width: 100%;
        background: var(--bg-page) url('../assets/bg-transformation.webp');
        background-repeat: repeat;
        background-size: 320px;
        position: relative;
        --position: 50%;

        >* {
            position: relative;
            z-index: 3;
        }

        .waves {
            display: block;
            width: 100%;
            height: auto;
            margin: 1rem 0 0;
            color: var(--bg-page);
            position: relative;
            z-index: 2;
        }

        .cards {
            padding: 0 1rem;
            margin: 3rem 0 5rem;
            display: flex;
            align-items: stretch;
            justify-content: center;
            gap: 3rem;
            flex-wrap: wrap;

            .card {
                max-width: 420px;
                width: 100%;
                position: relative;
                text-align: center;
                background: var(--bg-page) url('../assets/texture-card.webp');
                background-size: cover;
                background-position: center;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 20px 10px;
                gap: 1rem;
                border: 1px solid #FFFFFF;
                border-radius: 12px;
                box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

                h2 {
                    font-family: "Playfair Display", sans-serif;
                    color: #1E332F;
                    line-height: 1.2;
                    font-size: 1.6rem;
                }

                .wrapper {
                    display: flex;
                    position: relative;
                    max-width: max-content;
                    height: 236px;
                    border-radius: 20px;
                    overflow: hidden;
                    border: 3px solid #FFFFFF;
                    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
                    z-index: 8;


                    .img-before-after {
                        position: relative;

                        .image {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            object-position: left;
                        }

                        .before {
                            position: absolute;
                            inset: 0;
                            width: var(--position);
                        }
                    }

                    .barSlider {
                        position: absolute;
                        inset: 0;
                        -webkit-appearance: none;
                        width: 100%;
                        background: transparent;
                    }

                    .barSlider::-webkit-slider-thumb {
                        -webkit-appearance: none;
                        height: 40px;
                        width: 40px;
                        border-radius: 50%;
                        cursor: pointer;
                        opacity: 0;
                    }

                    .slider {
                        position: absolute;
                        inset: 0;
                        pointer-events: none;

                        .slider-bar {
                            position: absolute;
                            background: #FFFFFF;
                            width: 3px;
                            height: 100%;
                            top: 0;
                            left: var(--position);
                            transform: translateX(-50%);
                        }

                        .slider-icon {
                            position: absolute;
                            top: 50%;
                            left: var(--position);
                            transform: translate(-50%, -50%);
                            width: 32px;
                            height: 32px;
                            background: #FFF;
                            border-radius: 100%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.2);
                        }
                    }
                }

                .wrapper::before {
                    content: 'Arraste para comparar';
                    font-family: "Inter", sans-serif;
                    font-weight: 500;
                    font-size: 0.8rem;
                    position: absolute;
                    z-index: 10;
                    bottom: 6%;
                    left: 50%;
                    transform: translateX(-50%);
                    background: rgba(255, 255, 255, 0.6);
                    backdrop-filter: blur(5px);
                    color: var(--secondary-light);
                    width: 160px;
                    border-radius: 60px;
                    padding: 8px;
                    animation: alert 2s infinite;
                    display: var(--display-before, block);
                }

                .small {
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    color: #2F7A0A;
                    font-size: 0.8rem;

                    img {
                        width: 18px;
                    }
                }
            }
        }

        .carousel {
            margin: 3rem 0 5rem;
            padding-left: 1rem;
            overflow: hidden;
            display: flex;
            gap: 1rem;
            align-items: center;
            position: relative;

            .carousel-wrapper {
                display: flex;
                align-items: center;
                gap: 1rem;
                animation: spin 8s infinite linear;
                transform: translate(calc(-100% - 1rem));
            }

            .container-img-carousel {
                img {
                    border-radius: 12px;
                }
            }
        }

        .carousel::before {
            content: '';
            position: absolute;
            inset: 0;

            background: linear-gradient(to right, #F8F4F4 0%, rgba(248, 244, 244, 0) 30%, rgba(248, 244, 244, 0) 70%, #F8F4F4 100%);
            z-index: 4;
        }
    }

    #transformations::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: rgba(240, 241, 235, 0.90);
    }

    #indicated {
        background: #F0F1EB url('../assets/paper-bg.webp');
        background-size: cover;
        background-position: center;
        position: relative;
        padding: var(--default-padding);
        min-height: 100vh;
        overflow: hidden;

        >* {
            position: relative;
            z-index: 2;
        }

        .title-container {
            margin: 3rem auto 5rem;
            padding-bottom: 2rem;
        }

        .indicated-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            position: relative;
            width: 100%;

            .indicated-img {
                position: absolute;
                top: -100px;
                left: -120px;
                z-index: -1;

                img {
                    opacity: 0.2;
                }
            }

            .cards-benefits {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 1.2rem;

                img {
                    width: 92px;
                    border-radius: 8px;
                }

                .card {
                    display: flex;
                    align-items: center;
                    background: #FFFFFF;
                    padding: 10px 20px;
                    border-radius: 10px;
                    gap: 2rem;
                    border: 1px solid var(--primary);
                    max-width: 720px;
                    width: 100%;
                    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;

                    p {
                        flex-basis: 100%;
                    }
                }
            }
        }
    }

    #indicated::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(to bottom,
                #F0F1EB 0%,
                rgba(240, 241, 235, 0.6) 25%,
                rgba(240, 241, 235, 0.6) 75%,
                #F0F1EB 100%);
        z-index: 1;
    }

    .cta {
        background: #FFFFFF;
        max-width: 620px;
        text-align: center;
        margin: 5rem auto 0;
        padding: 2rem 1rem;
        border-radius: 12px;
        position: relative;
        z-index: 3;

        h3 {
            text-wrap: balance;
            font-size: 1.4rem;
            font-weight: 600;
        }

        p {
            margin: 1rem 0;
        }

        .contrast {
            display: block;
        }

        .cta-whatsapp {
            margin: 2rem auto 0;
        }
    }

    #benefits {
        margin-top: 3rem;
        min-height: 100vh;
        overflow: hidden;

        .waves {
            width: 100%;
        }

        .waves.bottom {
            margin-top: -90px;
            position: relative;
            z-index: 3;
        }

        .content {
            background: #0E0E1F;
            background-size: cover;
            min-height: 100vh;
            margin-top: -80px;
            position: relative;
            z-index: 3;
            padding: 3rem 0;

            h2 {
                padding: 4rem 0;
                color: #FFFFFF;
            }

            .cards {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 2rem;
                width: 100%;
                max-width: 900px;
                margin: 0 auto;
                padding: 0 2rem;
            }

            .card {
                background: #F0F1EB;
                padding: 1rem 1rem 3rem;
                text-align: center;
                border-radius: 8px;
                position: relative;
                overflow: hidden;
                box-shadow: rgba(10, 116, 132, 0.5) 0px 7px 29px 0px;

                .icon {
                    width: 72px;
                    height: 72px;
                    border-radius: 12px;
                    padding: 10px;
                    background: #C2D8D6;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin: 0 auto;

                    img {
                        width: 42px;
                    }
                }

                h3 {
                    font-size: 1.4rem;
                    margin: 1rem 0;
                    color: #02353C;
                    font-weight: 600;
                }

                p {
                    line-height: 1.3;
                }
            }

            .card::before {
                content: '';
                position: absolute;
                inset: 0;
                background: linear-gradient(to bottom,
                        rgba(240, 241, 235, 0) 80%, rgba(1, 155, 204, 0.15));
                pointer-events: none;
            }


            .cta-whatsapp {
                margin: 4rem auto 2rem;
            }
        }
    }

    #services {

        .title-container {
            margin: 0 auto 2rem;
        }

        .carousel-container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;

            .carousel-btn {
                background: #FFF;
                border: none;
                border-radius: 50%;
                width: 38px;
                height: 38px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
                cursor: pointer;
                position: absolute;
                z-index: 10;
                transition: opacity 0.3s;
            }

            .carousel-btn.prev {
                left: -30px;
            }

            .carousel-btn.next {
                right: -30px;
            }

            .carousel-btn:disabled {
                opacity: 0.3;
                cursor: not-allowed;
            }

            .cards-services {
                overflow: hidden;
                width: 100%;
                padding: 20px 0;

                .carousel-track {
                    display: flex;
                    gap: 20px;
                    transition: transform 0.4s ease-in-out;
                }

                .card-service {
                    flex: 0 0 calc((100% - 40px) / 3);
                    background: #FFFFFF;
                    border-radius: 20px;
                    overflow: hidden;
                    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
                    border: 1px solid #dfdddd;

                    .image-service {
                        position: relative;

                        img {
                            width: 100%;
                        }
                    }

                    .image-service::before {
                        content: '';
                        position: absolute;
                        inset: 0;
                        background:
                            linear-gradient(to bottom, rgba(255, 255, 255, 0) 30%, #FFF 90%);
                    }

                    .info {
                        padding: 0px 1rem 1rem;

                        h3 {
                            font-family: "Inter", sans-serif;
                            color: var(--secondary-dark);
                            font-size: 1.3rem;
                        }

                        p {
                            margin: 1rem 0;
                            min-height: 72px;
                        }

                        .cta-whatsapp {
                            border-radius: 12px;
                            width: 100%;

                            svg {
                                width: 22px;
                            }

                            span {
                                font-size: 1rem;
                            }
                        }
                    }
                }

            }
        }

        .cta {
            margin-bottom: 5rem;

            p {
                color: #51769B;
            }
        }
    }

    #about-us {
        background: #F0F1EB url('../assets/bg-about-us.webp');
        background-position: center right;
        background-size: cover;
        min-height: 100vh;
        position: relative;
        margin: 3rem 0 6rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        gap: 1rem;

        >* {
            position: relative;
            z-index: 3;
        }

        .perfil {
            img {
                border-radius: 50%;
                border: 5px solid #FFFFFF;
            }
        }

        .info {
            max-width: 920px;

            .title {
                margin-bottom: 2rem;
                margin: 0 auto 2rem;
            }

            h2 {
                font-weight: 500;
                font-size: 2.1rem;
                color: var(--secondary-dark);
                margin-bottom: 10px;
                line-height: 1.2;
            }

            .phase {
                font-style: italic;
                font-family: "Lora", sans-serif;
                font-size: 1rem;
            }

            .history {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 1rem;
                font-size: 1.1rem;
                line-height: 1.4;
                color: var(--secondary-light);
            }

            .details {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                gap: 1rem;
                margin: 2rem 0 0;


                svg {
                    width: 18px;
                    fill: #6F7072;
                }

                .detail-card {
                    padding: 10px 16px;
                    border-radius: 30px;
                    background: rgba(255, 255, 255, 0.5);
                    backdrop-filter: blur(6px);
                    border: 2px slid #FFFFFF;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    color: var(--primary-dark);
                    width: max-content;
                    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
                }
            }

            .line {
                width: 100%;
                height: 1px;
                background: rgba(204, 204, 204, 0.8);
                margin: 3rem 0;
            }

            .phase.end {
                font-size: 1.3rem;
            }
        }
    }

    #about-us::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        background: rgba(240, 241, 235, 0.85);
    }

    #testimonials {
        padding: 0 1rem;
        margin-bottom: 6rem;

        .swiper-container-inner {
            width: 100%;
            overflow: visible;
            margin: 2rem 0;
        }

        .mySwiper {
            width: 100%;
            overflow: hidden;
            padding: 20px 0 60px 0;
        }

        .testimonial-card {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 1rem;
            background: #FFF;
            padding: 25px;
            border-radius: 15px;
            box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
            margin-bottom: 20px;

            .comment {
                color: rgba(87, 83, 78, 0.8);
                font-style: italic;
                line-height: 1.4;
            }

            .client {
                display: flex;
                align-items: center;
                gap: 10px;

                .photo_client {
                    img {
                        border-radius: 50%;
                        border: 2px solid #FFFFFF;
                        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
                    }

                    span {
                        font-weight: 600;
                    }
                }

                .name-client {
                    p {
                        font-size: 0.9em;
                    }

                    p:first-child {
                        font-weight: 600;
                    }

                    p:last-child {
                        color: #A8A29E;
                        font-size: 0.8em;
                        margin-top: 2px;
                    }
                }
            }
        }

        .swiper-pagination {
            bottom: 10px !important;
        }

        .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            background: #D6D3D1;
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            background: var(--primary) !important;
            width: 25px;
            border-radius: 5px;
        }
    }

    #faq {
        margin: 3rem 0;
        padding: 3rem 1rem;
        background: url('../assets/bg-faq.webp');
        position: relative;

        >* {
            position: relative;
            z-index: 3;
        }

        .title-container {
            margin-bottom: 3rem;

            h2 {
                color: #F0F0F0;
            }

            p {
                color: rgba(220, 220, 220, 0.9);
            }
        }


        .content {
            padding: 1rem;
            background: #FFFFFF;
            max-width: 820px;
            margin: 2rem auto 1rem;
            border-radius: 20px;

            svg {
                width: 14px;
            }

            .reduce {
                width: 14px;
                color: #4071DB;
                display: none;
            }

            .card {
                border-bottom: 1px solid rgba(61, 230, 255, 0.3);
                padding: 2rem 0;
                cursor: pointer;

                .question {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    gap: 1rem;

                    h3 {
                        color: var(--secondary-light);
                        font-weight: 400;
                        font-family: "Inter", sans-serif;
                        flex-basis: 90%;
                        font-size: 1.1rem;
                    }

                    .icon {
                        width: 24px;
                        height: 24px;
                        background: #E0EAFF;
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        .expand {
                            fill: #8BA0CD;
                        }
                    }
                }

                .answer {
                    overflow: hidden;
                    height: 0;
                    line-height: 1.4;
                    width: 90%;
                    transition: height 0.2s ease-in;
                }

                .answer-content {
                    padding: 1rem 0 0;

                }
            }

            .card.active .icon {
                background: #B2F5FF;
            }

            .card.active .reduce {
                display: flex;
            }

            .card.active .expand {
                display: none;
            }

            .card.active h3 {
                color: var(--primary);
                font-weight: 500;
            }

            .card:last-child {
                border-bottom: none;
            }
        }
    }

    #faq::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            linear-gradient(135deg, #058A9E 0%, rgba(5, 138, 158, 0.90) 50%, #058A9E 100%);
    }

    #cta-end {
        margin: 5rem 0 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        img {
            max-width: 920px;
            width: 100%;
        }

        .info {
            margin-top: -20px;
            text-align: center;

            h2 {
                font-size: 2.2rem;
                color: var(--primary-dark);
                text-wrap: balance;
            }

            .cta-whatsapp {
                margin: 1rem auto;
                border-radius: 12px;
            }
        }
    }
}

.whatsapp-fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-fixed-btn:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 60%;
    height: 60%;
}