* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
}


:root {
    --box-shadow-container: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    --default-padding: 0 20px;
    --text-secondary: #699B85;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    border-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: var(--box-shadow-container);
    overflow: hidden;
    background: #FCFAF8;
}

a {
    text-decoration: none;
}

h2 {
    text-align: center;
}


/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero  -----------*/

/* Navbar */
#navbar {
    position: fixed;
    z-index: 20;
    max-width: 420px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: rgba(255, 255, 255, .8);
    backdrop-filter: blur(15px);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;

    p {
        color: rgba(44, 44, 207, 0.6);
        font-weight: bold;
    }

    a {
        color: #555555;
        font-size: 1em;
    }

}

/* Initial image global*/
.img-placeholder {
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

.img-high-res {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.img-high-res.loaded {
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Main */
#hero {
    margin-top: 70px;
    width: 100%;
    height: max-content;

    .profile-container {
        position: relative;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 240px;

        .profile-photo {
            position: relative;
            border-radius: 50%;

            img {
                border-radius: 50%;
                width: 140px;
                border: 1px solid #FFFFFF;
            }

            img:last-child {
                box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
            }
        }

        .text-content {
            text-align: center;

            h1 {
                font-size: 1.5em;
            }

            .subtitle {
                font-size: .9em;
                color: #699B85;
                text-transform: uppercase;
                font-weight: 600;
            }
        }

    }

    .hero-image-wrapper {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        height: 75vh;
        overflow: hidden;

        .hero-image {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
        }
    }


}

#services {
    display: flex;
    flex-direction: column;
    gap: 1.8em;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;

    .title-content {
        margin: 5em 0 1em;
        padding: var(--default-padding);


        h2 {
            font-size: 1.2em;
            color: #737373;
            margin-bottom: 10px;
            text-align: center;
        }
    }

    .card {
        max-width: 320px;
        background: #FFFFFF;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--box-shadow-container);
        display: flex;
        flex-direction: column;

        .image-service {
            position: relative;

            .info-service {
                width: 300px;
                margin: 0 auto;
                position: absolute;
                background: rgba(255, 255, 255, 0.85);
                bottom: 20px;
                left: 0;
                right: 0;
                border-radius: 20px;
                padding: 10px;
                display: flex;
                justify-content: space-between;

                .type-time {
                    display: flex;
                    flex-direction: column;
                    gap: 4px;

                    h3 {
                        font-size: 1em;
                    }

                    .time {
                        display: flex;
                        align-items: center;
                        gap: 4px;
                    }

                    svg {
                        width: 18px;
                        fill: var(--text-secondary);
                    }

                    span {
                        font-size: .9em;
                        color: var(--text-secondary);
                        font-weight: 600;
                    }
                }

                .priecing {
                    color: #C5A059;
                    font-weight: 900;
                    font-size: 1.1em;
                }
            }
        }

        .text-service {
            padding: 20px;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1.1em;

            p {
                color: #737C78;
                font-size: 0.9em;
            }
        }

        .cta-whatsapp {
            background: var(--text-secondary);
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 30px;
            padding: 10px;
            gap: 4px;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
            transition: transform 0.3s ease, background 0.3s ease;

            img {
                width: 24px;
            }

            span {
                text-transform: uppercase;
                color: #FFFFFF;
                font-weight: 600;
                font-size: 0.9em;
            }
        }

        .cta-whatsapp:hover {
            background: #4d8d71;
            transform: translateY(-4px);
        }
    }
}

#testimonials {
    margin-top: 4em;
    background-color: #F4F5F2;
    padding: 30px 0;

    h2 {
        margin-bottom: 1.5em;
    }

    .cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2em;
        padding: var(--default-padding);

        .card {
            max-width: 360px;
            background: #FFFFFF;
            border-radius: 20px;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
            display: flex;
            flex-direction: column;
            padding: 14px;
            gap: 1em;

            .rating {
                img {
                    width: 18px;
                }
            }

            .comment {
                font-family: "Belleza", sans-serif;
                line-height: 1.3;
                font-weight: 500;
                font-size: 1em;
            }

            .client {
                display: flex;
                align-items: center;
                gap: 10px;

                .image-client {
                    color: var(--text-secondary);
                    font-weight: 600;
                    padding: 10px;
                    border-radius: 30px;
                    background: #F0F5F3;
                }

                .info-client {
                    h3 {
                        font-size: 0.95em;
                    }

                    .description {
                        font-size: 0.8em;
                        color: #7D8682;
                        text-transform: uppercase;
                    }
                }
            }
        }
    }

}

#faq {
    margin-top: 4em;
    padding: var(--default-padding);

    .questions {
        margin: 2em 0;
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .quest {
        background: #F4F5F2;
        border: 2px solid #E5E3DF;
        border-radius: 20px;
        padding: 14px;
        display: block;
        cursor: pointer;
        width: 100%;
        contain: content;

        .text-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .arrow-indicator {
            transition: transform 0.2s ease;
        }
    }

    .quest.opened {
        grid-template-rows: auto 1fr;
        max-height: 600px;
        border: 1px solid var(--text-secondary);
        box-shadow: rgba(105, 155, 133, 0.2) 0px 7px 29px 0px;
    }

    .response-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        will-change: max-height;
    }

    .response {
        margin: 0;
        padding-top: 1em;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .quest.opened .response-wrapper {
        max-height: 300px;
    }

    .quest.opened .response {
        opacity: 1;
    }

    .quest.opened .arrow-indicator {
        transform: rotate(180deg);
    }
}

#contact {
    margin-top: 4em;

    .social-media {
        padding: var(--default-padding);
        margin: 1em 0;
        display: flex;
        flex-direction: column;
        gap: 0.8em;

        .card {
            display: flex;
            background-color: #6A9C86;
            justify-content: center;
            align-items: center;
            max-width: 400px;
            border-radius: 30px;
            padding: 10px 40px;
            position: relative;
            border: 1px solid #FFFFFF;
            box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
            transition: background 0.3s ease, opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);

            .icon {
                position: absolute;
                top: 55%;
                left: 2%;
                transform: translateY(-50%);
            }

            img {
                width: 34px;
            }

            .text-content {
                display: flex;
                flex-direction: column;
                color: #FFFFFF;
                text-align: center;

                h3 {
                    font-weight: 600;
                    font-size: 1em;
                }

                p {
                    font-size: 0.80em;
                }
            }
        }

        .card:hover {
            background-color: #4d8d71;
        }
    }
}

footer {
    margin: 2em 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .accessibility-statement {
        border: none;
        background: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.9em;
        cursor: pointer;
        margin-top: 1em;

        p {
            color: #57534E;
        }

        svg {
            fill: #57534E;
        }
    }

    .accessibility-statement:hover {
        p {
            color: #2e2c2a;
        }
    }

    .accessibility-statement:hover svg {
        fill: #2e2c2a;
    }

    .credits {
        margin-top: 1em;
        font-size: 0.75rem;
        opacity: 0.85;

        a {
            color: #2f6f63;
        }
    }

    .credits:hover {
        opacity: 1;
        text-decoration: underline;
    }

}

.footer-cta {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    background: #131820;
    font-family: "Manrope", sans-serif;
}

.footer-copy {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #dadada;
    width: 90%;
    margin: 0 auto 12px;
    font-weight: 600;
}

.footer-price {
    font-size: 0.9rem;
    color: #FFF;
    margin-bottom: 20px;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    width: 220px;
    display: block;
    padding: 14px 16px;
    background-color: #3a5f4d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 auto;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* CTA secundário */
.btn-secondary {
    background: none;
    border: none;
    color: #dadada;
    fill: #dadada;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-secondary:hover {
    opacity: 0.7;
}

/* Modal */
#accessibilityDialog {
    position: relative;
    z-index: 99999;
    max-width: 380px;
    border-radius: 20px;
    background: #FFF;
    border: none;
    font-family: "Manrope", sans-serif;
    margin: 16px auto;
    overflow: hidden;
    width: calc(100% - 20px);
    position: fixed;
    top: 50%;
    transform: translateY(-50%);

    opacity: 0;
    transform: translateY(-40%) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;

    h2 {
        font-size: 1.3em;
        margin-bottom: 1em;
        padding-bottom: 1em;
        border-bottom: 1px solid #ccc;
    }

    .dialog-inner {
        max-height: 85vh;
        overflow-y: auto;
        padding: 30px 20px;
    }

    .text-content {
        border-bottom: 1px solid #ccc;
        margin-bottom: 2em;

        p {
            margin: 0.8em 0 2em;
            font-size: 0.9em;
        }

        ul {
            list-style: none;
            padding-left: 0;
            margin: 2em 0;

            li {
                position: relative;
                padding-left: 1.25rem;
                margin-bottom: 6px;
                font-size: 0.9em;
            }

            li::before {
                content: "•";
                position: absolute;
                left: 0;
                top: 0;
                color: #6b8f7a;
            }
        }

        .italic {
            font-style: italic;
        }

        .contrast {
            font-weight: 700;
        }

        .social-media {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            margin-top: -10px;
            gap: 8px;

            a:first-child {
                fill: #BE185D;
            }

            a:last-child {
                fill: green;
            }
        }
    }

    .text-content:last-child {
        border-bottom: none;
    }

    .close-dialog {
        color: #db1f1f;
        background: none;
        font-weight: 500;
        padding: 6px 12px;
        border: none;
        border-radius: 30px;
        font-size: 1.1em;
        cursor: pointer;
    }
}

#accessibilityDialog.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

#accessibilityDialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    #accessibilityDialog {
        transition: none;
    }
}